RMAN连接与oracle连接模式的关系

RMAN连接与oracle连接模式的关系

 

总结:

1、   RMAN远程连接只能用于专有服务器连接

2、   RMAN本地连接数据库,可以不使用口令文件与TNSNAMES.ORA文件

 

实验(一)

tnsnames.ora配置

 

TEST =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = dg-pp)(PORT = 1521))

    (CONNECT_DATA =

     (SERVER = DEDICATED)

     # (SERVER = shared)

      (SERVICE_NAME = test)

    )

  )

 

TEST_rman =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = dg-pp)(PORT = 1521))

    (CONNECT_DATA =

     # (SERVER = DEDICATED)

      (SERVER = shared)

      (SERVICE_NAME = test)

    )

  )

 

 rman 登陆结果

 

[ora@dg-pp ~]$ rman target sys/oracle@test

 

Recovery Manager: Release 10.2.0.1.0 - Production on Fri Apr 6 19:13:34 2012

 

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

 

connected to target database: TEST (DBID=2078000993)

 

RMAN> exit

 

 

Recovery Manager complete.

[ora@dg-pp ~]$ rman target sys/oracle@test_rman

 

Recovery Manager: Release 10.2.0.1.0 - Production on Fri Apr 6 19:13:37 2012

 

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

 

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-00554: initialization of internal recovery manager package failed

RMAN-04005: error from target database:

ORA-12520: TNS:listener could not find available handler for requested type of server

 

 

实验(二)

[ora@dg-pp dbs]$ cp orapwtest orapwtest_bk (修改口令文件)

[ora@dg-pp admin]$ cp tnsnames.ora tnsnames.ora_bak(修改tnsnames.ora文件)

[ora@dg-pp admin]$ rman target /

 

Recovery Manager: Release 10.2.0.1.0 - Production on Fri Apr 6 19:15:58 2012

 

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

 

connected to target database: TEST (DBID=2078000993)

 

RMAN>

 

 

总结:

实验(一)

说明:rman远程登陆只能应用于专有服务器连接模式

实验(二)

说明:rman本地连接数据库连接,可以不使用口令文件和tnsnames.ora文件

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值