错误如下:
C:\>rman target frank/frank@frank
恢复管理器: Release 11.2.0.1.0 - Production on 星期二 6月 17 09:59:00 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: 内部恢复管理器程序包初始化失败
RMAN-04005: 目标数据库中存在错误:
ORA-01031: 权限不足
该错误的最后说权限不足,之前给了frank用户dba权限,权限依然不足。文档中有一句话:
RMAN connections to a database are specified and authenticated in the same way as SQL*Plus connections to a database. The only difference is that RMAN connections to a target or auxiliary database require the SYSDBA privilege
因此:
C:\>sqlplus sys/frank@frank as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on 星期二 6月 17 10:13:34 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show user
USER 为 "SYS"
SQL> grant sysdba to frank;
授权成功。
C:\>rman target frank/frank@frank
恢复管理器: Release 11.2.0.1.0 - Production on 星期二 6月 17 10:16:56 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到目标数据库: FRANK (DBID=3451555103)
连接成功。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29602308/viewspace-1184660/
,如需转载,请注明出处,否则将追究法律责任。