A detailed explanation of the recovery database of Rman heterogeneous machine

Source: Internet
Author: User

Experimental environment:

Source database server Name: Our database global name and SID:ORCL

Target database server name: Beijing only database software, no new database

1. The source database backs up the data and copies it to the target database server

\\192.168.2.7 \E$\APP\ADMINISTRATOR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SPFILEORCL. ORA

Copied to

E:\app\Administrator\product\11.2.0\dbhome_1\database

2. Create service services on target database

Oradim-new-sid ORCL

3. Using the source database SPFile generation Pfile

The source database's

App\administrator\product\11.2.0\dbhome_1 \DATABASE\SPFILEORCL. ORA

Copy to target database

E:\app\Administrator\product\11.2.0\dbhome_1 \DATABASE\SPFILEORCL. ORA

sql> create pfile= ' E:\backup\pfile_orcl.ora ' from SPFile;

The file has been created.

4. Modify the configuration file if the source data and the target database directory structure are inconsistent

E:\backup\pfile_orcl.ora

Here the target database is simply installed with Oracle software and there is no new Oracle database, so a new directory is required to guarantee and

The directory set in the Pfile file is consistent.

mkdir E:\APP\ADMINISTRATOR\ADMIN\ORCL

mkdir E:\app\Administrator\admin\orcl\adump

mkdir E:\app\Administrator\admin\orcl\dpdump

mkdir E:\app\Administrator\admin\orcl\pfile

mkdir E:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL

mkdir E:\APP\ADMINISTRATOR\ORADATA\ORCL

mkdir E:\backup\archivelog

5. Build SPFile on the target database according to the modified Pfile

Sql>create spfile from pfile= ' E:\backup\pfile_orcl.ora ';

6. Target database boot to Nomount state

sql> startup Nomount;

The ORACLE routine has started.

Total System Global area 1185853440 bytes

Fixed Size 2175168 bytes

Variable Size 352325440 bytes

Database buffers 822083584 bytes

Redo buffers 9269248 bytes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.