in reply to Connecting 'as sysdba' using DBD::Oracle
The content of the tnsnames.ora file is:my $database = 'TEST_DB'; my $DSN = "dbi:Oracle:$database"; my $dbh = DBI->connect( $DSN, $DBUSER, $DBPASS, {AutoCommit => 1, RaiseError => 1}) or die " +Can't connect DB [$!]";
With the "sysdba" option '{ora_session_mode => ORA_SYSDBA}, i've got the following error, since that user doesn't have that privilege:.../oracle/product/10.2.0/client_1/network/admin/tnsnames.ora TEST_DB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(Host = 192.168.1.1)(Port = 1526)) (CONNECT_DATA = (SID = TESTDB) ) )
DBI connect('TEST_DB','user',...) failed: ORA-01031: insufficient priv +ileges (DBD ERROR: OCISessionBegin)
|
|---|