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: <Jared.Still_at_radisys.com>
Date: Mon, 10 Dec 2001 10:34:21 -0800
Message-ID: <F001.003D904B.20011210093522@fatcity.com>

You must login as sys and

  grant select on v_$session to <<PACKAGE_OWNER>>;

Please take a look at www.orafaq.com as it will answer all of the questions you've asked.

Jared

                                                                                       
                        
                    "Herman                                                            
                        
                    Susantio"            To:     Multiple recipients of list ORACLE-L 
<ORACLE-L_at_fatcity.com>   
                    <sherman_at_bcsis       cc:                                           
                        
                    .com>                Subject:     Re: Unix account from PL/SQL ??  
                        
                    Sent by:                                                           
                        
                    root_at_fatcity.c                                                     
                        
                    om                                                                 
                        
                                                                                       
                        
                                                                                       
                        
                    12/10/01 02:05                                                     
                        
                    AM                                                                 
                        
                    Please respond                                                     
                        
                    to ORACLE-L                                                        
                        
                                                                                       
                        
                                                                                       
                        




Hi jesse,

For no 1, Thanks a million, it works fine

For no 2, yes, I saw the sticky bit in the oracle file.

                is it advisable for us to change the oracle file permission
/ to turn off the sticky bit ?
               Would it affect oracle internally ?


Thanks for Sunny too,
I'm also still curious why I can't access v$session from the package , any idea ?

Regards

> 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).
>

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Herman Susantio
  INET: sherman_at_bcsis.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).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: Jared.Still_at_radisys.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 Mon Dec 10 2001 - 12:34:21 CST

Original text of this message

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