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 >> Database Switching

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: Database Switching
 Tony  Posted: Apr 05, 2007 09:00:47 AM

 Total Post: 26
 Joined: Dec, 2006






 Hi There

I nedd a little bit help on database switching
How can one change from one database to the other. I tried using the following command

set ORACLE_SID=Oracle_Cat

in the command prompts of the oracle user and i quearied the v$database to see if the DB name has changed but nothing happened. I have 2 DBs; Traindb and Oracle_Cat which the latter i want it to use as the recovery catalogue database.

Please help

tonygys@yahoo.co.uk

 bigPapas
Posted: Apr 05, 2007 09:48:56 AM  

 Total Post: 14
 Joined: Apr, 2007






 
Create a control file to trace,
alter database backup controlfile to trace;
Then find and rename the trace file to something readable.
Clean up the trace file to delete extra lines with # or REM,
Now add the set command, and change the SID to the new sid you wish to create: example....
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE set DATABASE "NEWSID" RESETLOGS ARCHIVELOG
... data file list ...
CHARACTER SET ...
;
save new control/trace file.
at O.S. level, Change the ORACLE_SID to the sid you wish to create.
then sqlplus '/as sysdba' and run the control/trace file. then alter database open resetlogs.

 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