RMAN 创建catalog 数据库创建笔记

==========================

--RMAN 创建catalog 数据库

==========================

[oracle@L-DB-128-36 bin]$ sqlplus / as sysdba
 
SQL*Plus: Release 10.2.0.4.0 - Production on 星期三 3月 9 15:32:00 2011
 
Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
 
 
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
--创建表空间
SQL> create tablespace rman_catalog;
 
Tablespace created.

--创建用户并授权
SQL> create user rman identified by rman default tablespace rman_catalog temporary tablespace temp; 
grant connect,resource,create session,recovery_catalog_owner to rman;
User created.
SQL> 
Grant succeeded.
SQL> 
SQL> 
SQL> 
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

--注册数据库
[oracle@L-DB-128-36 bin]$ rman
 
Recovery Manager: Release 10.2.0.4.0 - Production on 星期三 3月 9 15:35:18 2011
 
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
 
RMAN> connect catalog 
rman/rman@zjport;
 
connected to recovery catalog database
 
RMAN> register database; 
 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of register command at 03/09/2011 15:35:48
RMAN-06428: recovery catalog is not installed
 
RMAN> create catalog tablespace rman_catalog;
 
recovery catalog created
 
RMAN> register database; 
 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of register command at 03/09/2011 15:36:44
RMAN-06171: not connected to target database
 
RMAN> connect catalog 
rman/rman@zjport;
 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-06167: already connected
 
RMAN> connect target 
sys/oracle@zjport;
 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
ORA-01017: invalid username/password; logon denied
 
RMAN> connect target 
sys/zjport@zjport;
 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog
 
RMAN> register database; 
 
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
 
RMAN> exit



本文转自zylhsy 51CTO博客,原文链接:http://blog.51cto.com/yunlongzheng/511440,如需转载请自行联系原作者

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值