Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
cancel
Showing results for 
Search instead for 
Did you mean: 

Session Info - URGENT

jilpangs
Occasional Advisor

Session Info - URGENT

Hi,

Management would like to generate a report on
seesions tracking. We need the following info on reports..

--Database Name
--User ID
--User Name
--Schema Accessed
--Object (Table / View) Accessed
--First time Accessed (In current month)
--Last time Accessed (In current month)
--How many times logged in (In current month)

If any one doing similat task. Can you please let me know how to maintain these info in a table and generate report out of it.

If you have any scripts and table structures..that would be helpful.

Thanks
Raj

5 REPLIES
Steven E. Protter
Exalted Contributor

Re: Session Info - URGENT

My approach would be to do this:

desc v$sessions, dba_users, dba_tables and other needed tables. Oracle has a little chart they hand out showing the important table structures.

Most of what you are looking for is in the system tables.

I'm also relatively certain that this has been done before on itrc. A little search might help you.

http://www2.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fsearch.hp.com%2Fredirect.html%3Furl%3Dhttp%253A%2F%2Fforums1.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%253FthreadId%253D206034%26qt%3D%252Boracle%2B%252Bdatabase%2B%2B%252Bmanagement%2B%252Breport%2B%26hit%3D2&aid=SEARCH_FORUMS&pil=2&serStr=oracle+database+management+report&pir=2

My search:

http://www2.itrc.hp.com/service/james/search.do?todo=search&searchtext=oracle+database+management+report&from=forums&origin=0&submit.x=2&wpa=forums1.itrc.hp.com%3A80&submit.y=5&searchcategory=ALL&hpl=1&searchcriteria=allwords&rn=25&source=7000&presort=rank&chkServStor=on&esc=us-support3.external.hp.com&admit=-1335382922+1108660312959+28353475

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
jilpangs
Occasional Advisor

Re: Session Info - URGENT

Hi,

I'm able to keep track of login time ,
logoff time etc for a particular instance.

However , is it possible to findout what are the objects (tables,views ) accessed during a session ?

Please help URGENT !!!

Thanks
Raj
jilpangs
Occasional Advisor

Re: Session Info - URGENT

Hi,

I'm able to keep track of login time ,
logoff time etc for a particular instance.

However , is it possible to findout what are the objects (tables,views ) accessed during a session ?

Please help URGENT !!!

Thanks
Raj
Yogeeraj_1
Honored Contributor

Re: Session Info - URGENT

is it possible to findout what are the objects (tables,views ) accessed during a session ?

hi,

one way to find out what objects are accessed during a session is to enable SQL_TRACE and analyze.

if you need any further help, do let us know.

regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Steve Steel
Honored Contributor

Re: Session Info - URGENT

Hi


Look at

http://forums.dbasupport.com/oracle/ora10g/session_tracing101.shtml

press next at the bottom to read on

Good base


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)