Home » RDBMS Server » Server Administration » Monitoring script required for Oracle 9.2.0.7.0 on Windows 2000 Server (Oracle 9.2.0.7.0 on Windows 2000 Server)
Monitoring script required for Oracle 9.2.0.7.0 on Windows 2000 Server [message #450604] Thu, 08 April 2010 04:51 Go to next message
catchme55555@yahoo.co.in
Messages: 20
Registered: September 2009
Junior Member

Hi all,

Greetings of the day.
My manager is asking to create a SQL scrip, which will provide following information. Can anyone help me ?
Our database is 9.2.0.7.0 on Windows 2000 Server
- How many records Insert / Update or Delete daily in my Oracle database?
- Check Archive log / Redo Log switching information?
- Check database growth ?

Expecting a prompt reply !

Regards,
Sanju
Re: Monitoring script required for Oracle 9.2.0.7.0 on Windows 2000 Server [message #450607 is a reply to message #450604] Thu, 08 April 2010 04:57 Go to previous messageGo to next message
Michel Cadot
Messages: 68665
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
OK, what is your problem in doing these ones?
Or do you expect we spend our time to do your work?

Regards
Michel
Re: Monitoring script required for Oracle 9.2.0.7.0 on Windows 2000 Server [message #450621 is a reply to message #450607] Thu, 08 April 2010 07:00 Go to previous messageGo to next message
catchme55555@yahoo.co.in
Messages: 20
Registered: September 2009
Junior Member

Hi Michel,

I am not expecting that some one will do my job, rather i am looking for suggestion. I have already done the script for database rate growth yearwise.
But i am not getting clue how to find out 'How many records Insert,Update or Delete daily in my Oracle database?'

If you have spare time to reply me, would be a great help for me.

Thank you,
Sanju


Re: Monitoring script required for Oracle 9.2.0.7.0 on Windows 2000 Server [message #450623 is a reply to message #450621] Thu, 08 April 2010 07:08 Go to previous messageGo to next message
Michel Cadot
Messages: 68665
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This information is not in the database by default.

You have to either activate audit and query dba_audit_trail or monitoring on the tables and query dba_tab_modifications.

Regards
Michel
Re: Monitoring script required for Oracle 9.2.0.7.0 on Windows 2000 Server [message #450626 is a reply to message #450623] Thu, 08 April 2010 07:24 Go to previous messageGo to next message
catchme55555@yahoo.co.in
Messages: 20
Registered: September 2009
Junior Member

Thank you so much Michel.

Re: Monitoring script required for Oracle 9.2.0.7.0 on Windows 2000 Server [message #451246 is a reply to message #450626] Tue, 13 April 2010 05:06 Go to previous messageGo to next message
catchme55555@yahoo.co.in
Messages: 20
Registered: September 2009
Junior Member

Hi Michel,
Greetings of the day ! Hope you are fine nad well.

Can you please suggest me some document link for "audit and query dba_audit_trail" for finding out how many records Insert / Update or Delete daily in my Oracle database 9.2.0.7.0 ?

Regards,
Sanju
Re: Monitoring script required for Oracle 9.2.0.7.0 on Windows 2000 Server [message #451247 is a reply to message #450604] Tue, 13 April 2010 05:10 Go to previous messageGo to next message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
Have you looked in the documentation?
Re: Monitoring script required for Oracle 9.2.0.7.0 on Windows 2000 Server [message #451251 is a reply to message #451246] Tue, 13 April 2010 05:16 Go to previous messageGo to next message
Michel Cadot
Messages: 68665
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
http://www.oracle.com/pls/db102/homepage put "audit" or "dba_audit_trail" in Quick Search field and click on "Search" button.

Regards
Michel
Re: Monitoring script required for Oracle 9.2.0.7.0 on Windows 2000 Server [message #451839 is a reply to message #451251] Sat, 17 April 2010 05:25 Go to previous messageGo to next message
catchme55555@yahoo.co.in
Messages: 20
Registered: September 2009
Junior Member

Hi Michel,
Greetings of the day ! Hope you are fine and well.
I have done the following implementation on my development database for finding out how many records Insert / Update or Delete

1)Create pfile from spfile.
2)Shutdown the database
3) Add the following parameter in your pfile
a)audit_trail='db'
b)audit_sys_operations='true'
c)optimizer_mode=FIRST_ROWS_1

4)Start the database with pfile
5)Then run the cataudit.sql script ( Login as SYSBDA)

Note: The auditing table will be installed in the SYSTEM tablespace. It is therefore important that you have enough space
available in this tablespace before you enable auditing.

6)Shutdown the database
7) Re start the database
Cool Now check the following view:
SQL>select name, value from v$parameter where name like 'audit%';
SQL>select value from v$parameter where name='optimizer_mode';

9)SQL> AUDIT ALL BY <user-name> BY ACCESS;

10)SQL> AUDIT SELECT TABLE, UPDATE TABLE, INSERT TABLE, DELETE TABLE BY <user-name>BY ACCESS;

11)SQL> AUDIT EXECUTE PROCEDURE BY <user-name>BY ACCESS;

12)SQL> SELECT username,timestamp,owner,obj_name,action_name FROM dba_audit_trail WHERE owner = '<user-name>' ORDER BY timestamp;

Example
=======
SQL> conn <user-name>/password
Connected.
SQL> create table test (name varchar(10));
Table created.
SQL> insert into test values('simi');
1 row created.
SQL> insert into test values('rimi');
1 row created.
SQL>commit;
SQL> select * from name;
test
====
simi
rimi

SQL> delete from name;
2 rows deleted.

SQL> drop table name;
Table dropped.

Run the following query to track the output.
SQL> SELECT username,timestamp,owner,obj_name,action_name FROM dba_audit_trail WHERE owner = '<user-name>' ORDER BY timestamp;

------------------
Regards,
Sanju
Re: Monitoring script required for Oracle 9.2.0.7.0 on Windows 2000 Server [message #451850 is a reply to message #451839] Sat, 17 April 2010 09:07 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
It would be helpful if you followed Posting Guidelines - http://www.orafaq.com/forum/t/88153/0/
Re: Monitoring script required for Oracle 9.2.0.7.0 on Windows 2000 Server [message #451851 is a reply to message #451839] Sat, 17 April 2010 09:17 Go to previous message
Michel Cadot
Messages: 68665
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Good, have you any question?

Regards
Michel
Previous Topic: dtatbase is not statrting
Next Topic: HIGH LOAD AVERAGE even CPU usage is not high.
Goto Forum:
  


Current Time: Sat Jun 29 00:08:17 CDT 2024