Last Archived log's information. [message #518662] |
Fri, 05 August 2011 06:33 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hello All,
Is there any way to find out the last archived file's:
A) sequence no
B) Date and time
C) As well as the log group name.
I have 4 Log group.
Regards:
Muktha
|
|
|
|
Re: Last Archived log's information. [message #518674 is a reply to message #518665] |
Fri, 05 August 2011 07:23 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hi Michel,
The previous post shows the below code. In where i am not able to see the Date and Time of ONLY THE LAST ARCHIVED FILE.
select thread#, sequence#, applied
from v$archived_log
Kindly help me out?
Regards:
Muktha
|
|
|
|
Re: Last Archived log's information. [message #518909 is a reply to message #518678] |
Mon, 08 August 2011 07:18 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hi Michel,
Sorry for the previous query (I had lost myself, where i was writing).
Here is the answer for the my last query.
select a.thread#,a.group#,b.name,b.sequence#
from
v$log a,v$archived_log b
where a.sequence#=b.sequence#
and b.applied='NO'
order by b.sequence#
Thanks and Regards
Muktha
|
|
|
|