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 initora 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(51oradata1icpora1INI6icporaORA4 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(51oradata1icpora1INI6icporaORA4 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(51oradata1icpora1INI6icporaORA4 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 %ie 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/ON6 /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(51oradata1icpora1INI6icporaORA4 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@ 'A6AAS@ JICPORAJ NOR@S@6*OBS ARC0IF@*OB ( /A*OB=I*@S !G + /A*OB/@/@RS + . /A'A6A=I*@S !55 - /AINS6ANC@S > G /A*OB0IS6ORH !>G>> *OB=I*@ > BROP ! 4':1oracle1product1!5(51oradata1icpora1R@'O5!*OB4 SIL@ !55/, ? BROP ( 4':1oracle1product1!5(51oradata1icpora1R@'O5(*OB4 SIL@ !55/, !5 BROP + 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(51oradata1icpora1SHSA5!'=4, !G 4':1oracle1product1!5(51oradata1icpora1AA/CO5!'=4, ! !> !? (5
Control file created S*2 R@COF@R 'A6AAS@ /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