Create RMAN catalog for physical backup

Source: Internet
Author: User

1. scenario description;
Catalog database 192.168.1.206: 1521 grid
Target database 192.168.1.201: 1521 ql
2. Create the rman tablespace on the catalog database
 
SQL> create tablespace rman datafile '/u01/app/Oracle/oradata/gird/rman. dbf' size 500 m autoextend on next 100 m maxsize unlimited;
Tablespace created.
 
3. Create an rman user on the catalog database
 
SQL> create user rman identified by rman default tablespace rman quota 500 m on rman;
User created.
 
4. grant permissions to the rman user on the catalog database
SQL> grant connect, resource to rman;
Grant succeeded.
SQL> grant recovery_catalog_owner to rman;
Grant succeeded.
 
5. Modify tnsname. ora on target database
[Oracle @ test admin] $ more tnsnames. ora
RMAN =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.206) (PORT = 1521 ))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = gird.57ql.com)
)
)
6. Register a database
 
[Oracle @ test/] $ rman target/catalogrman/rman @ rman;
Recovery Manager: Release 11.2.0.3.0-Production on Mon Sep 3 16:12:41 2012
Copyright (c) 1982,201 1, Oracle and/or its affiliates. All rights reserved.
Connected to target database: QL (DBID = 2286587371)
Connected to recovery catalog database
 
RMAN> create catalog tablespace "RMAN ";
Recovery catalog created
 
RMAN> register database;
Database registered in recovery catalog
Starting full resync of recovery catalog
Full resync complete
 
7. Back up the database
RMAN> backup database;
Finished Control File and SPFILE Autobackup at 03-SEP-12
RMAN> exit

8. Summary
Using catalog database to store rman backup metadata is very common in the production environment and is highly secure. The reponsitory database of grid control can be integrated with the catalog database.

Related Article

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.