Re: DBD::Oracle with oracle child process with parent ID of 1



Kong, Alan wrote:

Hi all,

Does anyone know why the oracle child process initiated by my perl
program with parent ID of 1?

My system is HPUX 11.11 with PERL5.8.0, DBI1.48, DBD-Oracle-1.16,
Oracle10.2.0.

I have another system with HPUX11.00, PERL5.6.1, DBI1.48,
DBD-Oracle-1.16, Oracle8.1.7 where oracle child process is the pid of
perl program which initiated it.

When a process's parent exits, the unix kernel assigns process 1
(the init process) to be the parent. This is normal unix
behavior, and the way all "daemons" run.

The difference between your systems is probably that you are
connecting differently. In the one case, you're connecting
via sqlnet listener, and on the other, via the 'beq' scheme.

When you connect via typical sqlnet setup, your client program
(be is perl, sqlplus, or anything) makes a TCP connection to
the oracle listener, and the listener starts the oracle client
process for your connection. That process then runs as 'daemon'.

When you connect directly by setting ORACLE_SID, your program
itself starts the oracle process, so it's the parent.

Note this has nothing to do with perl or DBI. This is just
oracle behavior and the same with any oracle client application.
Also, this is perfectly normal.

Mark
.



Relevant Pages

  • RE: DBD::Oracle with oracle child process with parent ID of 1
    ... there when I login to Oracle with SQL*PLUS, only when I run PERL DBI ... connecting to Oracle shows the child process like an orphan process. ... Subject: DBD::Oracle with oracle child process with parent ID of 1 ... The difference between your systems is probably that you are connecting ...
    (perl.dbi.users)
  • Re: ANNOUNCE: DBD:Oracle 1.18
    ... Well a warning in one compiler is better than and error in an other so I ... This might be a problem more with the older oracle OCI in your client. ... perl -Mblib t/26exe_array.t ...
    (perl.dbi.users)
  • Re: DBD Oracle 1.20 ORA-24334 Error
    ... On the premise instant client and also tried to run perl Makefile.PL -V ... the status after having connected to Oracle ... Failed 2/33 tests, 93.94% okay ...
    (perl.dbi.users)
  • Re: float bug? perl 5.8, DBI and oracle 10.2.0
    ... If you want to store high precision numbers in oracle, you've got 38 decimal digits to play with, and with minimal coaxing perl will handle them as strings at the appropriate points so that the exact values go in and come out. ... I haven't done any numerical work in 10 years or so, but I seem to recall that one can reasonably expect 6 or so decimal significant digits from a 32 bit floating point number - I'll go out on a limb and hazard that one can expect 12 or so digits from a 64 bit floating point number - at any rate I'd be very surprised to get 18 significant digits. ...
    (perl.dbi.users)
  • RE: Memory fault(coredump) with two DBD type connections
    ... I get a core dump ... all the libraries are the same threaded model(single threaded perl uses ... I am running Perl 5.8.8 with DBD-Oracle 1.19 compiled against Oracle ... when I try to connect to the same Oracle database AND same DB2 database ...
    (perl.dbi.users)