DBD::Oracle How to set v$session.program BEFORE connect DBD::Oracle How to set v$session.program BEFORE connect oracle oracle

DBD::Oracle How to set v$session.program BEFORE connect


http://docs.oracle.com/cd/B19306_01/server.102/b14237/dynviews_2088.htm says

PROGRAM     VARCHAR2(48)    Operating system program name

It means you should rename somehow your binary to the expected value.

There are a few hints to doing this:http://www.perlmonks.org/?node_id=500714

perldoc perlvar:

   $0      Contains the name of the program being executed.           On some (but not all) operating systems assigning to $0           modifies the argument area that the "ps" program sees. On some           platforms you may have to use special "ps" options or a           different "ps" to see the changes. Modifying the $0 is more           useful as a way of indicating the current program state than it           is for hiding the program you're running.

...