Solaris 10 - problem with connect to Oracle 10.2.0.2 with ORA_SYSDBA



Sorry for my poor English.

After connect in SYSDBA to an Oracle 10.2.0.2 Database, all system
command return '-1' (No child processes).

Problem detect on a Solaris 10 x86 server :

Details :
perl -MDBI -e 'DBI->installed_versions'
Perl : 5.008006 (i86pc-solaris-thread-multi)
OS : solaris (2.10)
DBI : 1.42
DBD::Sponge : 11.10
DBD::Proxy : 0.2004
DBD::Oracle : 1.15
DBD::File : 0.30
DBD::ExampleP : 11.12
DBD::DBM : 0.01

It's a production server, I can't upgrade DBD::Oracle for the moment.
It's the first application on the server to use perl,others only use
shell/sqlplus

This code will show the problem :

use DBD::Oracle qw(:ora_session_modes);

my $dsn = "dbi:Oracle:"; # no dbname here
print "TWO_TASK not defined\n" if (not defined($ENV{TWO_TASK}));
print "ORACLE_SID : $ENV{ORACLE_SID} \n";

my $dbh = DBI->connect($dsn, "", "", { ora_session_mode =>
ORA_SYSDBA });
$dbh->{RaiseError} = 1;

my $sth = $dbh->prepare( "select sysdate from dual" );
$sth->execute();
my $date=$sth->fetchrow();
print "Date : $date \n";
$sth->finish();
$dbh->disconnect();

my $ret=system("date");

print "retour : $ret";


Result on my machine :
TWO_TASK not defined
ORACLE_SID : KJD00
Date : 30-JUL-08
mercredi, 30 juillet 2008, 14:32:22 MEST
retour : -1


Get you the same result as me?

.



Relevant Pages

  • Partial Summary: ufsdump from a remote server via ssh
    ... not a path issue but Openssh is not there in Solaris 8. ... (One reply corrected my original command: ... I'm exploring a solution to do "ufsdump" from a Solaris 8 server (which ... currently also has an 'ssh command not found problem') to a remote ...
    (SunManagers)
  • Re: NFS mount problem
    ... solaris systems. ... the command seems to work and no errors ... Did you export the Filesystems to this server? ... can mount any NFS filesystems at all? ...
    (comp.sys.sun.admin)
  • Help! How to remove huge file?
    ... My server runs Solaris 2.8 OS. ... Today I find there is log file that has grown ... But I can not remove it with "rm" command. ...
    (comp.unix.solaris)
  • Command Help
    ... I have a server kept in remote location where i dont have a system admin to ... Is there any command in Solaris to get the NIC's connected to the network ... I m sure that the server is having qfe0-qfe3. ...
    (SunManagers)
  • Re: parsing a command from a config file
    ... appears still to be the child itself). ... But on OSes (Solaris) where ... the command. ...
    (comp.unix.programmer)