Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Unix account from PL/SQL ??

RE: Unix account from PL/SQL ??

From: Jesse, Rich <Rich.Jesse_at_qtiworld.com>
Date: Fri, 07 Dec 2001 08:12:26 -0800
Message-ID: <F001.003D77A3.20011207071028@fatcity.com>

Assuming you're on Oracle 8i (you don't say):

  1. select SYS_CONTEXT('USERENV','OS_USER') from dual;
  2. I believe this is because the $ORACLE_HOME/bin/oracle executable has an owner of "oracle" and has the sticky bit set on it's security. If you "ls -l $ORACLE_HOME/bin/oracle", you should see the security on the file as "-rwsr-s--x", with the "s" being the sticky bit. Try a "man chmod" for more info.

HTH! :)

Rich Jesse                          System/Database Administrator
Rich.Jesse_at_qtiworld.com             Quad/Tech International, Sussex, WI USA


-----Original Message-----
Sent: Thursday, December 06, 2001 20:25
To: Multiple recipients of list ORACLE-L

Hi all,

I've got 2 questions here : (Platform : Sun Solaris) :

  1. What is the command in PL/SQL to get unix userID who logged in when I execute PL/SQL script ?
  2. I have created a new user : ABC123, and the primary group is oinstall. When I start oracle instance using ABC123, how come the process still belong to another user (oracle) ?

Any feedback would be greatly appreciated

Thanks & Regards
Herman
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Jesse, Rich
  INET: Rich.Jesse_at_qtiworld.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Dec 07 2001 - 10:12:26 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US