View
215
Download
0
Category
Preview:
Citation preview
7/25/2019 Creating Db From Cold Backup
1/3
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 !-:!?: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
7/25/2019 Creating Db From Cold Backup
2/3
S*2 alter database open
alter database open
;
@RROR at line !:
ORA35!!-: cannot identif")lock data file ! 3 see '>!+?-( 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,
! 4':1oracle1product1!5(51oradata1icpora1AA/CO5('=4,
!> 4':1oracle1product1!5(51oradata1icpora1@'P5!'=4,
!? 4':1oracle1product1!5(51oradata1icpora1N'O6S('=4,
(5 4':1oracle1product1!5(51oradata1icpora1S@RS5!'=4,
7/25/2019 Creating Db From Cold Backup
3/3
(! 4':1oracle1product1!5(51oradata1icpora1AIS7A*@R65!'=4,
(( 4':1oracle1product1!5(51oradata1icpora1RISK/@6@R5!'=4
(+ C0ARAC6@R S@6 /S
Recommended