First, use DBCA to create a recovery catalog database, follow the steps and options below
Click Next;
Select Create DATABASE, click Next;
Using general purpose or transaction processing, click Next;
Fill in the Global database name, click Next;
Cancel "Configure Em" in EM
Cancel "Enable automatic maintenance Tasks" in Automatic maintenance management, click Next;
Use the same administrative password for all accounts, click Next;
The storage type uses the file system, selects all database files to use the common location, the database file location selects Oracle_base\oradata, clicks Next;
Select "Specify Quick Recovery area", select the Quick Recovery area location, click Next;
By default, click Next;
In the Character Set option, select Use Unicode and click Next;
Confirm the location of the file, after the error, click Next;
Select "CREATE DATABASE" and click Finish;
Wait for the creation process to complete.
Ii. Creating a Recovery Catalog database table space
sql> Create tablespace rcat datafile ' D:\app\Administrator\oradata\rcat01.dbf ' size 15m;
Third, create a recovery directory user
Sql> create user Rcatowner identified by "qwe123" default tablespace rcat quota unlimited on rcat;
Iv. Grant Recovery directory user Recovery_catalog_owner role
Sql> Grant Recovery_catalog_owner to Rcatowner;
V. Connect to Rman and create a recovery directory
C:\users\administrator>rman Catalog Rcatowner@rcat
rman> Create Catalog
Six, simultaneously connects to the target database and restores the catalog database, registers the target database in the recovery catalog database
C:\users\administrator>setoracle_sid=test
C:\users\administrator>rman Target/catalog Rcatowner@rcat
rman> Register database;
Register the recovery directory to be used through Oracle Enterprisemanager.
A) in EM, navigate to the Availability >recovery Catalog settings (Availability > Recovery directory setting).
b Click Add Recovery Catalog (Add Recovery directory).
c) Enter the following information, and then click Next:
Host (main): <your_hostname>
Port (ports): 1521
Sid:rcat
Recovery Catalog Username (Restore directory user name): Rcatowner
Recovery Catalog Password (Restore directory password): qwe123
(d) On the Review page, click Finish.
e) return to the Recovery Catalog Settings page, select Use Recovery
Catalog (using the recovery directory). Make sure that the recovery directory you just registered is selected in the Drop-down list.
Then enter the following values:
Recovery Catalog Username (Restore directory user name): Rcatowner
Recovery Catalog Password (Restore directory password): qwe123
Username (username): Oracle
Password (password): qwe123
f) Click Save As Preferred credential (save as preferred ID), and then click OK.
Attention:
1, for several different database operations, before the operation to set the environment variables.
In Windows
Open cmd, enter set ORACLE_SID=ORCL, then Sqlplus/as SYSDBA, followed by operations for ORCL Library.
In Linux
$. Oraenv, enter ORCL at the prompt, then Sqlplus/as sysdba, followed by actions for the ORCL library
2, the Rcat database in the first use, is in the non-archive mode, as required to decide whether to change to archive mode.
3, when using the OEM to add the recovery directory, the use of the SYS user login is not the case (using Sqlplus login is possible), through the test analysis, may be I manually built a test database, ORCL and test two libraries open at the same time, OEMs cannot decide which library to connect to, and when I close the test database (using shutdown immediate), OEMs can successfully open them.