> But the user need select access to v$mystat

connect as sysdba and grant select on v_$mystat to <user>;

HTH
GovindanK

> Thanks all for the input.
>
> the script is select sid,serial# from v$session where sid=(select sid from
> v$mystat where rownum=1)
>
> But the user need select access to v$mystat
>
> Chuan
>
> -----Original Message-----
> Sent: Friday, 29 August 2003 15:19
> To: Multiple recipients of list ORACLE-L
>
>
> Hi Chuan,
>
> can v$session help you
>
> this view has information like machine, osuser, username, sid, program,
> and
> others
>
> SQL> desc v$session
>
> SQL> select columns,... from v$session where username = 'SCOTT' and
> machine
> = 'YOUR_HOSTNAME'
>
> if you do telnet you will get 2 rows (if scoot is only use by you)
>
> is not
>
> Sinardy
>
> -----Original Message-----
> Sent: 29 August 2003 12:34
> To: Multiple recipients of list ORACLE-L
>
>
> DABs,
>
>   Is there any way in my connection to get the sid and serial# for my own
> connection?
>
> Suppose I connect to Oracle db by >sqlplus scott/[EMAIL PROTECTED]
> In this connection,
>
> SQL>
>
> What shoud I input to get this sid and serial#?
>
> TIA
>
> Chuan
> Important: This transmission is intended only for the use of the addressee
> and may contain confidential or legally privileged information.  If you
> are
> not the intended recipient, you are notified that any use or dissemination
> of this communication is strictly prohibited.  If you receive this
> transmission in error please notify the author immediately by telephone
> and
> delete all copies of this transmission together with any attachments.
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author:
>   INET: [EMAIL PROTECTED]
>
> Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
> San Diego, California        -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (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.net
> --
> Author: Sinardy Xing
>   INET: [EMAIL PROTECTED]
>
> Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
> San Diego, California        -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (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).
> Important: This transmission is intended only for the use of the addressee
> and may contain confidential or legally privileged information.  If you
> are
> not the intended recipient, you are notified that any use or dissemination
> of this communication is strictly prohibited.  If you receive this
> transmission in error please notify the author immediately by telephone
> and
> delete all copies of this transmission together with any attachments.
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author:
>   INET: [EMAIL PROTECTED]
>
> Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
> San Diego, California        -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (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.net
-- 
Author: Corniche Park
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).

Reply via email to