NOCATALOG连接



怎么样使用NOCATALOG方法登陆RMAN:
打开操作系统,执行,rman target /

点击(此处)折叠或打开

  1. [oracle@centos5 ~]$ rman target /

  2. Recovery Manager: Release 10.2.0.4.0 - Production on Mon May 26 21:43:01 2014

  3. Copyright (c) 1982, 2007, Oracle. All rights reserved.

  4. connected to target database: DB1 (DBID=1440097521)

  5. RMAN>
target /表示目标数据库(使用当前的$ORACLE_SID)
/的意思是本地操作系统验证
口令验证方式:

点击(此处)折叠或打开

  1. [oracle@centos5 ~]$ rman target sys/change_on_install

  2. Recovery Manager: Release 10.2.0.4.0 - Production on Mon May 26 21:44:48 2014

  3. Copyright (c) 1982, 2007, Oracle. All rights reserved.

  4. connected to target database: DB1 (DBID=1440097521)
上面的rman target /涉及了1个数据库。
连接目标数据库有两种方式:
1.本地连接
对于本地RMAN 连接,在操作系统提示符后键入:
1.1

点击(此处)折叠或打开

  1. UNIX: $ ORACLE_SID=DB01; export ORACLE_SID
  2.    $ rman target /
1.2

点击(此处)折叠或打开

  1. Windows NT: C:\\> SET ORACLE_SID=DB01
  2.    C:\\> rman target /
rman target /没有关联到CATALOG库,因为默认是NOCATALOG模式
所以不需要写NOCATALOG,如果要写,如下所示:

点击(此处)折叠或打开

  1. [oracle@centos5 ~]$ rman target / nocatalog

  2. Recovery Manager: Release 10.2.0.4.0 - Production on Mon May 26 21:49:57 2014

  3. Copyright (c) 1982, 2007, Oracle. All rights reserved.

  4. connected to target database: DB1 (DBID=1440097521)
  5. using target database control file instead of recovery catalog
using target database control file instead of recovery catalog
表明了:使用了控制文件代替了恢复目录(CATALOG)
我们把数据库关闭,重新使用RMAN(数据库关闭的情况下)

点击(此处)折叠或打开

  1. [oracle@centos5 ~]$ rman target/

  2. Recovery Manager: Release 10.2.0.4.0 - Production on Mon May 26 21:55:16 2014

  3. Copyright (c) 1982, 2007, Oracle. All rights reserved.

  4. connected to target database (not started)
connected to target database (not started)
2.远程连接
要从另一服务器进行连接,请使用目标数据库的网络服务名:
$ rman target sys/target_pwd@DB01
$ rman target scott/tiger@DB01
如果用普通用户,要确保有RMAN操作权限
键入RMAN 连接命令后,将发生如下事件:
 ①为恢复管理器创建一个用户进程。
 ②该用户进程创建两个Oracle 服务器进程:
a.一个是连接到目标数据库的缺省进程,用于执行SQL 命令、重新同步控制文件和恢复前滚
b.另一个是连接到目标数据库的轮询进程,用于确定远程过程调用(RPC) 的完成情况,是一个守护进程
 ③备份和恢复信息是从控制文件中检索的






来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29173997/viewspace-1170518/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29173997/viewspace-1170518/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值