RMAN-07540: Cleanup is required for the VPC user schema

今天在使用12C进行虚拟恢复目录测试的时候遇到这样的问题

在使用虚拟恢复目录用户连接我们我们的catalog的时候,报了如下的错误

[07:06:38 oracle(db)@kiwi admin]$ rman target sys/oracle@enmo catalog kiwi/kiwi@testdb

Recovery Manager: Release 12.1.0.2.0 - Production on Thu Oct 22 07:06:42 2015

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

connected to target database: ENMO (DBID=735078679)
connected to recovery catalog database
RMAN-07540: Cleanup is required for the VPC user schema

关于RMAN-07540的报错,我们查看12.1的官方文档

RMAN-07540: Cleanup is required for the VPC user schema
Cause: The VPC user specified in the connect string does have extra privileges granted.
Action: Execute '?/rdbms/admin/dbmsrmanvpc.sql' after connecting to a catalog database as SYS to cleanup VPC users schemas.
说是我们vpc的用户的权限过多,这个时候我们需要回收一部分的权限,我们可以通过下面的脚本来进行回收,按照它的提示来进行操作,不行,出现如下的提示

Usage: dbmsrmanvpc.sql <base catalog schema name> [...]
       dbmsrmanvpc.sql -all

This script performs an upgrade of RMAN base catalog and corresponding
VPC users schemas to a new VPD model.  RMAN base catalog schema names
have to be supplied as command line parameters.  Up to 10 schema names
can be supplied per script execution.  When -all is specified the
script attempts to detect the RMAN base catalog schemas automatically
and perform the upgrade.

我们还需要在后面添加一个-all的参数

@?/rdbms/admin/dbmsrmanvpc.sql -all

然后我们再连接catalog数据库的时候,问题排除

[07:13:44 oracle(db)@kiwi admin]$ rman target sys/oracle@enmo catalog kiwi/kiwi@testdb

Recovery Manager: Release 12.1.0.2.0 - Production on Thu Oct 22 07:13:45 2015

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

connected to target database: ENMO (DBID=735078679)
connected to recovery catalog database




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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值