oracle catalog 设置,Oracle 配备 catalog

1: catalog 数据库上创建表空间:

export Oracle_SID=ORCL

create tablespacermantsdatafile '/home/oracle/rman/rmants.ora' size20M;

注意:这里面表空间名一定不要叫rman,如果叫rman,接下来操作会报错,因为rman是关键字;

2. catalog 数据库上创建用户:

SQL>Create userrmanidentified byrmandefault tablespacermants

2temporary tablespacetempquota unlimited onrmants;

SQL>grant recovery_catalog_ownerto rman;

本次举例子2个数据库在同一台服务器上。

接下来进入target数据库

1、[oracle@aoracle admin]$ vi tnsnames.ora

catalog =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.190.140)(PORT = 1521))

)

(CONNECT_DATA =

(SID = ORCL)

)

)

2、[oracle@aoracle ~]$ tnsping catalog

看是否能连上。

3、在主数据库上:

export ORACLE_SID=niutest

[oracle@aoracle ~]$ rman target / catalog rman/rman@catalog

****此处如果出现有关连TNS错误,则将listener.ora加上一个连接串

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = PLSExtProc)

(ORACLE_HOME = /home/lc_orauser/app)

(PROGRAM = extproc)

)

(SID_DESC =

(GLOBAL_DBNAME = ORCL)

(ORACLE_HOME = /home/lc_orauser/app)

(SID_NAME = ORCL)

)

)

4、如果3成功后,则:

RMAN> create catalog tablespace  rmants;

recovery catalog created

5、在target库中注册catalog库

RMAN> register database;

database registered in recovery catalog

starting full resync of recovery catalog

full resync complete

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值