1826780 Members
1684 Online
109702 Solutions
New Discussion

Users accessing a system

 
SOLVED
Go to solution
Coolmar
Esteemed Contributor

Users accessing a system

Hi,

How can you tell how many users are accessing the system. I mean the users that access Oracle that wouldn't show up with a "who" or "w" - from an HP view rather than going into Oracle as a dba?
4 REPLIES 4
Sundar_7
Honored Contributor
Solution

Re: Users accessing a system

Oracle creates a process with the name "oracle" for every connection to the instance.

For ex if the SID of your DB is test1 , you can grep for oracletest1. This will give you the count of the oracle connections

LOCAL=NO means the connection is remote. LOCAL=YES means the connection was made from the system.
Learn What to do ,How to do and more importantly When to do ?
Geoff Wild
Honored Contributor

Re: Users accessing a system

Don't know off the top of my head if you can pick up users - but you can see connections from machines with a netstat -a

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Granite
Frequent Advisor

Re: Users accessing a system

Hi Sally,

As pointed by Sundar, you can grep the DB connections like this :

--> No. of connections,
remote, ps -ef|grep -i local=no|wc -l
local, ps -ef|grep -i local=yes|wc -l

regds,Granite

HPmania - The World of HP
Coolmar
Esteemed Contributor

Re: Users accessing a system

Thanks!