Creating DB From Cold Backup

Published on October 2021 | Categories: Documents | Downloads: 1 | Comments: 0 | Views: 47
of x
Download PDF   Embed   Report

Comments

Content

 

Scenario: I have new database ROCK and old database ICPORA, I have cold backup of ICPORA, and Now I want recreate ICPORA at ROCK database I have taken backup of both database ! Cop" all datafiles, controlfiles, redolo#s, archivelo#s, init files fro$ ICPORA to new database ROCK %oradata& 'elete all files fro$ ROCK database after backup and paste ICPORA files ( Check initora file and $odif")specif" the correct paths for Archive*o#, Controlfiles and other files

+ If "ou have new database with the old ' na$e then #o to step - otherwise step . In $" situation I have new database with na$e ROCK, so I need ICPORA service)instance to operate, for that I need to create new service ICPORA . create new service with old database na$e with ORA'I/ utilit" 0:12oradi$ 3new 3sid icpora 3intpwd icpora 3start$ode $ 3pfile 4':1oracle1product1!5(51oradata1icpora1INI6icporaORA4 Instance created - 0:12set oracle7sid8icpora 0:12s9lplus S*;Plus: Release !5(5!5 3 Production on <ed =eb !> !-:!?:5( (55? Cop"ri#ht %c& !?>( @nter user3na$e: s"s as s"sdba @nter password: Connected to an idle instance S*2 startup no$ount pfile84':1oracle1product1!5(51oradata1icpora1INI6icporaORA4 ORAC*@ instance started 6otal S"ste$ Blobal Area !5+.!>(. b"tes =iDed SiEe !(-+!(. b"tes Fariable SiEe .>G-+?-!G b"tes 'atabase uffers ->>!+?-( b"tes Redo uffers !+-(+( b"tes S*2 startup $ount pfile84':1oracle1product1!5(51oradata1icpora1INI6icporaORA4 ORAC*@ instance started 6otal S"ste$ Blobal Area !5+.!>(. b"tes =iDed SiEe !(-+!(. b"tes Fariable SiEe .>G-+?-!G b"tes 'atabase uffers ->>!+?-( b"tes Redo uffers !+-(+( b"tes 'atabase $ounted

 

S*2 alter database open alter database open ; @RROR at line !: ORA35!!-: cannot identif")lock data file ! 3 see '<R trace file ORA35!!!5: data file !: 4@:1'A6A=I*@S1SHS6@/5!'=4 Note: 6he above error is encountered because the contents)infor$ation stored in the control file is different fro$ the current situation %ie paths of files& <e need to recreate the controlfile, the below co$$and will #enerate a script for recreatin# a controlfile in udu$p folder S*2 alter database backup controlfile to trace 'atabase altered G Cop" the i$portant contents of script #enerated in udu$p folder and $odif" with new paths and eDecute it Note eDecute in NO/ON6 /ode S*2 shutdown i$$ediate ORA35!!5?: database not open 'atabase dis$ounted ORAC*@ instance shut down S*2 startup no$ount pfile84':1oracle1product1!5(51oradata1icpora1INI6icporaORA4 ORAC*@ instance started 6otal S"ste$ Blobal Area !5+.!>(. b"tes =iDed SiEe !(-+!(. b"tes Fariable SiEe .>G-+?-!G b"tes 'atabase uffers ->>!+?-( b"tes Redo uffers !+-(+( b"tes S*2 CR@A6@ CON6RO*=I*@ R@S@ 'A6AAS@ JICPORAJ NOR@S@6*OBS ARC0IF@*OB ( /A*OB=I*@S !G + /A*OB/@/@RS + . /A'A6A=I*@S !55 - /AINS6ANC@S > G /A*OB0IS6ORH !>G>>  *OB=I*@ > BROP ! 4':1oracle1product1!5(51oradata1icpora1R@'O5!*OB4 SIL@ !55/, ? BROP ( 4':1oracle1product1!5(51oradata1icpora1R@'O5(*OB4 SIL@ !55/, !5 BROP + 4':1oracle1product1!5(51oradata1icpora1R@'O5+*OB4 SIL@ !55/ !! 33 S6AN'H *OB=I*@ !( 'A6A=I*@ !+ 4':1oracle1product1!5(51oradata1icpora1SHS6@/5!'=4, !. 4':1oracle1product1!5(51oradata1icpora1SHS6@/5('=4, !- 4':1oracle1product1!5(51oradata1icpora1SHSA5!'=4, !G 4':1oracle1product1!5(51oradata1icpora1AA/CO5!'=4, ! !> !? (5

4':1oracle1product1!5(51oradata1icpora1AA/CO5('=4, 4':1oracle1product1!5(51oradata1icpora1@'P5!'=4, 4':1oracle1product1!5(51oradata1icpora1N'O6S('=4, 4':1oracle1product1!5(51oradata1icpora1S@RS5!'=4,

 

(! (( (+ (.

4':1oracle1product1!5(51oradata1icpora1AIS7A*@R65!'=4, 4':1oracle1product1!5(51oradata1icpora1RISK/@6@R5!'=4 C0ARAC6@R S@6 <@>/S<IN!(-( 

Control file created S*2 R@COF@R 'A6AAS@ /edia recover" co$plete S*2 33 All lo#s need archivin# and a lo# switch is needed S*2 A*6@R SHS6@/ ARC0IF@ *OB A** S"ste$ altered S*2 alter database open 'atabase altered 

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close