Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> SCN

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: SCN
 Bishal  Posted: May 02, 2008 04:46:15 AM

 Total Post: 207
 Joined: Apr, 2008






 how do we find out the SCN for restoring database..
any query for it?

 Murtuja
Posted: May 02, 2008 04:56:16 AM  

 Total Post: 857
 Joined: Jan, 2006






 
First run this command
RMAN> list backup of archivelog all summary;

Note down highest key from output of above command.

Then

RMAN> list backupset highest_key

Next_SCN will give you SCN.


 GOPU
Posted: May 02, 2008 05:01:07 AM  

 Total Post: 333
 Joined: Apr, 2008






 
suppose we are not using the RMAN backup ? how to find it ?

 Bishal
Posted: May 02, 2008 05:01:17 AM  

 Total Post: 207
 Joined: Apr, 2008






 
thanx murtuja... so while recovering this is latest SCN right?
so we should use that right?

 Murtuja
Posted: May 02, 2008 05:03:18 AM  

 Total Post: 857
 Joined: Jan, 2006






 
Hi Gopu,

We can find out SCN using below query.

SQL> SELECT archivelog_change#-1 FROM v$database;

 GOPU
Posted: May 02, 2008 05:04:51 AM  

 Total Post: 333
 Joined: Apr, 2008






 
Thanks Murtuja..... :)

 Murtuja
Posted: May 02, 2008 05:18:02 AM  

 Total Post: 857
 Joined: Jan, 2006






 
Hi,

SQL> SELECT current_scn FROM v$database;

will give current SCN.And I think it's more reliable then ARCHIVE_CHANGE#.

 Bishal
Posted: May 02, 2008 05:22:15 AM  

 Total Post: 207
 Joined: Apr, 2008






 
there is no current_scn column in v$database;

 Murtuja
Posted: May 02, 2008 05:54:20 AM  

 Total Post: 857
 Joined: Jan, 2006






 
Yes,"CURRENT_SCN" is not available in Oracle 9i.

 GOPU
Posted: May 02, 2008 06:02:04 AM  

 Total Post: 333
 Joined: Apr, 2008






 
It is available from 10g only ?

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi333
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software