Realm violation Datapatch 禁用DBV database vault

news/2024/7/5 19:29:59 标签: oracle
Datapatch failed with the error ORA-47410: Realm violation for CREATE ROLE (Doc ID 2306010.1)​编辑To Bottom


 

APPLIES TO:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.

SYMPTOMS

Datapatch failed with the below error

[oragpe6@hostname OPatch]$ ./datapatch -verbose
SQL Patching tool version 12.1.0.2.0 Production on Sun Sep 10 19:42:03 2017
Copyright (c) 2012, 2017, Oracle. All rights reserved.

Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_175757_2017_09_10_19_42_03/sqlpatch_invocation.log

Connecting to database...OK
Bootstrapping registry and package to current versions...done
Determining current state...done

Current state of SQL patches:
Patch 19282028 (Database PSU 12.1.0.2.1, Oracle JavaVM Component ():
 Not installed in the binary or the SQL registry
Patch 19877336 (Database PSU 12.1.0.2.2, Oracle JavaVM Component (Jan2015)):
 Not installed in the binary or the SQL registry
Patch 22139226 (Database PSU 12.1.0.2.160119, Oracle JavaVM Component (Jan2016)):
 Installed in the binary registry and the SQL registry
Patch 23321125 (DPLOAD DOESN'T CREATE THE SHARED OBJECTS ACROSS ALL PDBS):
 Installed in the binary registry and APPLY with errors in the SQL registry
Bundle series DBBP:
 ID 170814 in the binary registry and ID 170814 with errors in the SQL registry

Adding patches to installation queue and performing prereq checks...
Installation queue:
 Nothing to roll back
 The following patches will be applied:
  26609798 (DATABASE BUNDLE PATCH 12.1.0.2.170814)
  23321125 (DPLOAD DOESN'T CREATE THE SHARED OBJECTS ACROSS ALL PDBS)

Installing patches...
Patch installation complete. Total patches installed: 2

Validating logfiles...
Patch 26609798 apply: WITH ERRORS
 logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/26609798/21481992/26609798_apply_D_IN02_2017Sep10_19_42_36.log (errors)
  Error at line 14778: ORA-47410: Realm violation for CREATE ROLE on DV_SECANALYST
  Error at line 14795: ORA-47410: Realm violation for CREATE ROLE on DV_MONITOR
  Error at line 14812: ORA-47410: Realm violation for CREATE ROLE on DV_ADMIN
  Error at line 14828: ORA-47410: Realm violation for CREATE ROLE on DV_OWNER
  Error at line 14844: ORA-47410: Realm violation for CREATE ROLE on DV_ACCTMGR
  Error at line 14860: ORA-47410: Realm violation for CREATE ROLE on DV_PUBLIC
 

CHANGES

 Apply JULY 2017 BP 170718 

CAUSE

Oracle Database Vault is enabled for the database
 
Oracle database vault is set to true

SQL> SELECT VALUE FROM V$OPTION WHERE PARAMETER = 'Oracle Database Vault';

VALUE
----------------------------------------------------------------
TRUE
 

SOLUTION

Disable the database vault manually at the database level

1). In SQL*Plus, log in as the Oracle Database Owner (DBV_OWNER) account, and then disable Oracle Database Vault.

sqlplus /as sysdba
SQL> select username from dba_users where username like '%DBV_OWNER%';

USERNAME
--------------------------------------------------------------------------------
DBV_OWNER

sqlplus DBV_OWNER/password
Disable the vault

SQL> EXEC DBMS_MACADM.DISABLE_DV;
SQL> SELECT VALUE FROM V$OPTION WHERE PARAMETER = 'Oracle Database Vault';

2). Restart the database to get the database vault disable
sqlplus /as sysdba
SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP
SQL> SELECT VALUE FROM V$OPTION WHERE PARAMETER = 'Oracle Database Vault';

3). Run the database patch and datapatch went through successful. 

bash-4.1$ ./datapatch -verbose
SQL Patching tool version 12.1.0.2.0 Production on Sun Sep 10 22:49:20 2017
Copyright (c) 2012, 2017, Oracle. All rights reserved.

Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_77767_2017_09_10_22_49_20/sqlpatch_invocatio

Connecting to database...OK
Bootstrapping registry and package to current versions...done
Determining current state...done

Current state of SQL patches:
Patch 19877336 (Database PSU 12.1.0.2.2, Oracle JavaVM Component (Jan2015)):
Not installed in the binary or the SQL registry
Patch 22139226 (Database PSU 12.1.0.2.160119, Oracle JavaVM Component (Jan2016)):
Installed in the binary registry and the SQL registry
Patch 23321125 (DPLOAD DOESN'T CREATE THE SHARED OBJECTS ACROSS ALL PDBS):
Installed in the binary registry and APPLY with errors in the SQL registry
Bundle series DBBP:
ID 170814 in the binary registry and ID 170814 with errors in the SQL registry

Adding patches to installation queue and performing prereq checks...
Installation queue:
Nothing to roll back
The following patches will be applied:
26609798 (DATABASE BUNDLE PATCH 12.1.0.2.170814)
23321125 (DPLOAD DOESN'T CREATE THE SHARED OBJECTS ACROSS ALL PDBS)

Installing patches...
Patch installation complete. Total patches installed: 2

Validating logfiles...
Patch 26609798 apply: SUCCESS
logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/26609798/21481992/26609798_apply_D_ISIS_2017Sep10_22_49_53.log (no error
Patch 23321125 apply: SUCCESS
logfile: T23321125_apply_D_ISIS_2017Sep10_22_50_44.log (no errors)
SQL Patching tool complete on Sun Sep 10 22:55:29 2017
bash-4.1$

4). Enable the database vault back

sqlplus DBV_OWNER/password
Enable the vault

SQL>EXEC DBMS_MACADM.ENABLE_DV;

Restart the database to get the database vault enabled
sqlplus /as sysdba
SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP
SQL> SELECT VALUE FROM V$OPTION WHERE PARAMETER = 'Oracle Database Vault';


http://www.niftyadmin.cn/n/5089059.html

相关文章

Java之SPI

Java的SPI(Service Provider Interface)是一种面向接口编程的机制,用于实现组件之间的解耦和扩展。通过SPI机制,我们可以定义接口,并允许第三方提供不同的实现,从而实现可插拔、可扩展的架构。 SPI讲解 它…

J. 金色传说【10.14训练补题】

Dashboard - The 14-th BIT Campus Programming Contest - Codeforces 题解; 题目要求求出所有多项式的和,可得出每一个出现的符号位是’‘或’-‘的概率相同,而’-后面的算式都相同,可得出只需计算所有可能的多项式中第一个数字…

腾讯云我的世界mc服务器多少钱一年?

腾讯云我的世界mc服务器多少钱?95元一年2核2G3M轻量应用服务器、2核4G5M带宽优惠价218元一年、4核8G12M带宽轻量服务器446元一年,云服务器CVM标准型S5实例2核2G优惠价280元一年、2核4G配置服务器748元一年,腾讯云百科txybk.com分享腾讯云我的…

电脑操作系统你真的搞懂了分类?(第五十三课)

电脑操作系统你真的搞懂了分类?(第五十三课) 1 电脑操作系统的分类 Windows操作系统:由微软公司开发,是全球最流行的操作系统之一,适用于个人电脑、服务器和移动设备等多种平台。Windows系统提供了图形用户界面和大量的应用程序支持,用户可以轻松地使用和管理各种软件和硬…

二十一、【文本工具组】

文章目录 横排文本工具字符选项卡段落文字 横排文本工具 需要注意的是一些不是免费的商业字体,一定不要拿去使用,否则后边很容易会受到法律索赔。 在制作海报等一些图形时,需要经常用到文本工具我们需要对文本进行变形,分段&…

python2 paramiko 各种报错解决方案

一、介绍 paramiko是一个基于SSHv2协议的python库,支持以加密和认证的方式进行远程服务器的连接,用于实现远程文件的上传、下载或通过ssh远程执行命令。 paramiko支持Python(2.7,3.4)版本 paramiko库可直接使用pip …

C. JoyboardCodeforces Round 902

C. Joyboard 样例1列表找规律&#xff1a; #include<iostream> #define int long long using namespace std; signed main() {int T;cin>>T;while(T--){int n,m,k;cin>>n>>m>>k;if(k1){cout<<1<<endl;}else if(k2){cout<<m…

Linux:mongodb数据库源码包安装(4.4.25版本)

环境 系统&#xff1a;centos7 本机ip&#xff1a;192.168.254.1 准备的mongodb包 版本 &#xff1a; 4.4.25 全名称&#xff1a;mongodb-linux-x86_64-rhel70-4.4.25.tgz 下载源码包 Download MongoDB Community Server | MongoDBhttps://www.mongodb.com/try/downloa…