Vous êtes sur la page 1sur 62

System Copy activity

1. Taking the control file to trace alter database backup controlfile to trace as 'V:\bkpcontrolfile\cf180510.bak';

Production Import queue

Delete the datafiles in NEQ

Copy the files from production

Rename the Control files

Use brrestore command to restore

C:\Documents and Settings\neqadm>brrestore -b bedggubb.and -m full BR0401I BRRESTORE 7.00 (40) BR0405I Start of file restore: redghwdp.rsb 2010-05-18 15.51.25 BR0484I BRRESTORE log file: M:\oracle\NEQ\sapbackup\redghwdp.rsb

BR0454W Values of oracle_sid are different: current 'NEQ', backup bedggubb.and 'NEP' BR0455W Value 'NEQ' of oracle_sid will be used for restore

BR0454W Values of oracle_home are different: current 'D:\oracle\NEQ\102', backup bedggubb.and 'D:\oracle\NEP\102' BR0455W Value 'D:\oracle\NEQ\102' of oracle_home will be used for restore BR0454W Values of sapdata_home are different: current 'M:\oracle\NEQ', backup bedggubb.and 'V:\oracle\NEP' BR0455W Value 'M:\oracle\NEQ' of sapdata_home will be used for restore

BR0280I BRRESTORE time stamp: 2010-05-18 15.51.26 BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRRESTORE: c BR0280I BRRESTORE time stamp: 2010-05-18 15.51.27 BR0257I Your reply: 'c' BR0259I Program execution will be continued...

BR0427I Files from the old sapdata_home V:\oracle\NEP will be restored into the new sapdata_home M:\oracle\NEQ BR0370I Directory M:\ORACLE\NEQ\SAPDATA1\SR3_1 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA1\SR3_2 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA1\SR3_3 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA1\SR3_4 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA1\SR3_5 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA2\SR3_10 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA2\SR3_6 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA2\SR3_7 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA2\SR3_8 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA2\SR3_9 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA3\SR3_11 created

BR0370I Directory M:\ORACLE\NEQ\SAPDATA3\SR3_12 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA3\SR3_13 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA3\SR3_14 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA3\SR3_15 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA4\SR3_16 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA4\SR3_17 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA4\SR3_18 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA4\SR3_19 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA4\SR3_20 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA1\SR3700_1 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA1\SR3700_2 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA1\SR3700_3 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA1\SR3700_4 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA2\SR3700_5 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA2\SR3700_6 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA2\SR3700_7 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA2\SR3700_8 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA3\SR3700_10 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA3\SR3700_11 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA3\SR3700_12 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA3\SR3700_9 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA4\SR3700_13 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA4\SR3700_14 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA4\SR3700_15 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA4\SR3700_16 created

BR0370I Directory M:\ORACLE\NEQ\SAPDATA4\SR3DB_1 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA4\SR3DB_2 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA4\SR3DB_3 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA1\SR3USR_1 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA3\UNDO_1 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA1\SYSAUX_1 created BR0370I Directory M:\ORACLE\NEQ\SAPDATA1\SYSTEM_1 created

BR0456I Probably the database must be recovered due to restore from online backup

BR0280I BRRESTORE time stamp: 2010-05-18 15.51.27 BR0407I Restore of database: NEQ BR0408I BRRESTORE action ID: redghwdp BR0409I BRRESTORE function ID: rsb BR0449I Restore mode: FULL BR0411I Database files for restore: N:\oracle\NEP\origlogA\cntrl\cntrlNEP.dbf N:\oracle\NEP\origlogB\cntrl\cntrlNEP.dbf M:\oracle\NEP\sapdata1\cntrl\cntrlNEP.dbf BR0419I Files will be restored from backup: bedggubb.and 2010-05-18 10.34.51 BR0416I 44 files found to restore, total size 137861.758 MB BR0424I Files will not be decompressed BR0421I Restore device type: disk BR0420I Files will be restored from directory: M:\NEPBKP4NEQREFRESH\bedggubb

BR0280I BRRESTORE time stamp: 2010-05-18 15.51.27 BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRRESTORE: c BR0280I BRRESTORE time stamp: 2010-05-18 15.52.10 BR0257I Your reply: 'c' BR0259I Program execution will be continued...

BR0351I Restoring M:\ORACLE\NEQ\SAPDATA1\SR3_1\SR3.DATA1 BR0355I from M:\NEPBKP4NEQREFRESH\bedggubb\SR3.DATA1 ...

Execute the below script for changing the SID from NEP to NEQ STARTUP NOMOUNT CREATE CONTROLFILE SET DATABASE "NEQ" RESETLOGS MAXLOGFILES 255 MAXLOGMEMBERS 3 MAXDATAFILES 254 MAXINSTANCES 50 MAXLOGHISTORY 9741 LOGFILE GROUP 1 (

'N:\ORACLE\NEQ\ORIGLOGA\LOG_G11M1.DBF', 'O:\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\SAPDATA3\SR3_15\SR3.DATA15', 'M:\ORACLE\NEQ\SAPDATA4\SR3_16\SR3.DATA16', 'M:\ORACLE\NEQ\SAPDATA4\SR3_17\SR3.DATA17', 'M:\ORACLE\NEQ\SAPDATA4\SR3_18\SR3.DATA18', 'M:\ORACLE\NEQ\SAPDATA4\SR3_19\SR3.DATA19', 'M:\ORACLE\NEQ\SAPDATA4\SR3_20\SR3.DATA20', 'M:\ORACLE\NEQ\SAPDATA1\SR3700_1\SR3700.DATA1', 'M:\ORACLE\NEQ\SAPDATA1\SR3700_2\SR3700.DATA2', 'M:\ORACLE\NEQ\SAPDATA1\SR3700_3\SR3700.DATA3', 'M:\ORACLE\NEQ\SAPDATA1\SR3700_4\SR3700.DATA4', 'M:\ORACLE\NEQ\SAPDATA2\SR3700_5\SR3700.DATA5', 'M:\ORACLE\NEQ\SAPDATA2\SR3700_6\SR3700.DATA6', 'M:\ORACLE\NEQ\SAPDATA2\SR3700_7\SR3700.DATA7', 'M:\ORACLE\NEQ\SAPDATA2\SR3700_8\SR3700.DATA8', 'M:\ORACLE\NEQ\SAPDATA3\SR3700_9\SR3700.DATA9', 'M:\ORACLE\NEQ\SAPDATA3\SR3700_10\SR3700.DATA10',

'M:\ORACLE\NEQ\SAPDATA3\SR3700_11\SR3700.DATA11', 'M:\ORACLE\NEQ\SAPDATA3\SR3700_12\SR3700.DATA12', 'M:\ORACLE\NEQ\SAPDATA4\SR3700_13\SR3700.DATA13', 'M:\ORACLE\NEQ\SAPDATA4\SR3700_14\SR3700.DATA14', 'M:\ORACLE\NEQ\SAPDATA4\SR3700_15\SR3700.DATA15', 'M:\ORACLE\NEQ\SAPDATA4\SR3700_16\SR3700.DATA16', 'M:\ORACLE\NEQ\SAPDATA1\SR3USR_1\SR3USR.DATA1', 'M:\ORACLE\NEQ\SAPDATA4\SR3DB_1\SR3DB.DATA1', 'M:\ORACLE\NEQ\SAPDATA4\SR3DB_2\SR3DB.DATA2', 'M:\ORACLE\NEQ\SAPDATA4\SR3DB_3\SR3DB.DATA3' CHARACTER SET UTF8 ;

Sap* with password as pass

Increase the table space