Home » RDBMS Server » Server Administration » Archive log file generating (10g Linux)
Archive log file generating [message #488629] Mon, 10 January 2011 04:57 Go to next message
pokhraj_d
Messages: 117
Registered: December 2007
Senior Member
Hi ,

I want to know how many archive log generating in One hour at the peak time.
We have 6 nodes RAC multiplex 2.

Is there are any query through which I can achieve the above purpose.

Note: As this is a prod instance client is not happy to implement Log Miner utility.


Regards-
P
Re: Archive log file generating [message #488630 is a reply to message #488629] Mon, 10 January 2011 05:01 Go to previous messageGo to next message
knight
Messages: 111
Registered: January 2009
Senior Member
v$archived_log
Quote:
We have 6 nodes RAC multiplex 2.

can you tell what is multiplex 2?

you can also go on check manually at archiving locations
Re: Archive log file generating [message #488631 is a reply to message #488630] Mon, 10 January 2011 05:07 Go to previous messageGo to next message
pokhraj_d
Messages: 117
Registered: December 2007
Senior Member
There are 3 log group each have 2 members and 2 thread#.
Re: Archive log file generating [message #488634 is a reply to message #488629] Mon, 10 January 2011 05:28 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Just query gv$archived_log.

Regards
Michel
Re: Archive log file generating [message #488636 is a reply to message #488634] Mon, 10 January 2011 05:32 Go to previous messageGo to next message
pokhraj_d
Messages: 117
Registered: December 2007
Senior Member
Hi,
I wanted to know the exact query. I know the view gv$archived_log
Re: Archive log file generating [message #488641 is a reply to message #488636] Mon, 10 January 2011 05:46 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
I let you find it, this is a good exercise to improve your SQL skills.
If you can't do it, come back with your tries.

Regards
Michel
Re: Archive log file generating [message #488661 is a reply to message #488641] Mon, 10 January 2011 06:44 Go to previous messageGo to next message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
Are you sure about gv$archived_log? Generally speaking, if a view is populated from the control_file, you get the same rows returned from each instance.
Re: Archive log file generating [message #488662 is a reply to message #488661] Mon, 10 January 2011 07:05 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
On one of our 2 nodes RAC, I have:
SQL> select inst_id, count(*) from gv$archived_log group by inst_id;
   INST_ID   COUNT(*)
---------- ----------
         2       3136
         1       3136

All nodes are aware of the other ones archived logs. It is the condition to be able to be able to recover the other instance modification and release the resources (locks) in case of a node failure.

Regards
Michel

[Updated on: Mon, 10 January 2011 07:07]

Report message to a moderator

Re: Archive log file generating [message #488681 is a reply to message #488662] Mon, 10 January 2011 09:17 Go to previous messageGo to next message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
Precisely! The view has the same rows twice.
It's the same with all the gv$ views that are populated from the controlfile: gv$datafile or gv$logfile will give you each file twice.
Re: Archive log file generating [message #488689 is a reply to message #488681] Mon, 10 January 2011 10:40 Go to previous message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Archived log files are not the same ones, I'm pretty sure, I'm no more currently at office but tomorrow morning I will post that the files under inst_id 1 are not the same ones than under inst_id 2 (I hope Smile ). gv$archived_log sees the data concerning all the instances, so you have to only query it on one node to get the information for all of them.

Regards
Michel
Previous Topic: Specifying Nonstandard Block Sizes for Tablespaces
Next Topic: Continously changing data blocks
Goto Forum:
  


Current Time: Sun Dec 01 13:06:09 CST 2024