private DBD::Oracle?

From: Christian Merz (christian.merz_at_muenchen.de)
Date: 03/23/05


To: <dbi-users@perl.org>
Date: Wed, 23 Mar 2005 08:09:15 +0100

Hello all,

I am still having problems to 'connect internal' when there are different
$ORACLE_HOMEs owned by different $ORACLE_OWNERs.
For example (SunOS sap09 5.7 Generic_106541-32 sun4us sparc FJSV,GPUSK):
    user1: /oracle/elearn/app/oracle/product/9.2.0_32
    user2: /oracle/S13/817_64

(On another host I managed to 'connect sys/pass as sysdba' when there is only
one $ORACLE_OWNER. But this is a 'sub optimal' solution as I do not want to hard
code user/pass in my scripts and this does not work with different
$ORACLE_OWNERs. So...)

Now I am planning to install a 'private DBD::Oracle' but I do not know how to
perform this.

I need somthing like:

installation:
$DEST1='/oracle/DBD_SID1';
$DEST2='/oracle/DBD_SID2';
as owner1: ...; make install $DEST1
as owner2: ...; make install $DEST2

usage:
...
use DBI;
unshift @INC, $DEST1;
my $connect_mode = 2; # 2=SYSDBA
my $dbh = DBI->connect( 'dbi:Oracle:','', '',
        { ora_session_mode => $connect_mode,
          PrintError => 0, AutoCommit => 0 } )
        or die "cannot connect.\n$DBI::errstr";

Can anybody help me? Hint to doc?

TIA,
Christian



Relevant Pages

  • need final word on sysdba
    ... I have a vendor that needed a db created for his product. ... I thought that 9i was supposed to limit sysdba access to only the host ... He insists that he is able to install on other systems, ...
    (comp.databases.oracle.misc)
  • Re: What is exact cause of "No message file for product=RDBMS"
    ... The 10G client install did something that caused everything to go south, ... I always log in as sysdba and issue a startup command.) ... Also, don't use SqlPlus GUI. ...
    (comp.databases.oracle.server)
  • What is exact cause of "No message file for product=RDBMS"
    ... Last think yesterday I installed 10G client on my workstation for testing, putting it in a new oracle home etc. now this morning I can't connect to the local 9i db and I'm not sure why. ... I took the new 10G home out of the path so my sqlplus starts properly, put the oracle_home back to the 9i home (it was now blank after the 10g clinet install) and oracle_sid is set to local db sid as always. ... One of the messages is 01031 and I have no idea why as I'm using the "connect sys/pass as sysdba" like I always do to connect to the idle instance and start it up ...
    (comp.databases.oracle.server)