Creating Catalog

in rman database 
show parameter DB_UNIQUE_NAME
show parameter db_create_file_dest


To create a tablespace by using OMF
ALTER SYSTEM SET db_create_file_dest='/u01/app/oracle/oradata' scope=both;
create tablespace RMAN datafile size 700m;


To create rman user
create user RMAN identified by rman default tablespace RMAN;
ALTER USER RMAN QUOTA UNLIMITED ON RMAN;
GRANT recovery_catalog_owner TO RMAN;

To Create Catalog
rman catalog RMAN/rman@RMAN
CREATE CATALOG;

To register database

register database;

To resync catalog with control file
resync catalog;