在nocdb转pdb的时候遇到小bug
在nocdb轉為pdb之后,發現有一個應用賬號。從pdb使用expdp導出。導入其他nocdb。報錯ORA-01917: user or role 'HUE' does not exist
[oracle@lxtrac06 ~]$ more 1HUE.log?
;;;?
Import: Release 12.2.0.1.0 - Production on Wed May 9 23:20:59 2018
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
;;;?
Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
import done in AL32UTF8 character set and AL16UTF16 NCHAR character set
export done in UTF8 character set and AL16UTF16 NCHAR character set
Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/******** directory=test DUMPFILE=HUE.dmp logfile=1HUE.log?
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
ORA-39083: Object type SYSTEM_GRANT failed to create with error:
ORA-01917: user or role 'HUE' does not exist
Failing sql is:
GRANT CREATE SESSION TO "HUE"
ORA-39083: Object type SYSTEM_GRANT failed to create with error:
ORA-01917: user or role 'HUE' does not exist‘。
在pdb上面,使用該賬號登陸數據庫,報下列錯誤
Errors in file /u01/app/oracle/diag/rdbms/bigcdb/BIGCDB/trace/BIGCDB_ora_32410.trc (incident=241057) (PDBNAME=CDB$ROOT):
ORA-00600: internal error code, arguments: [kziaVrfyAcctStatInRootCbk: !user], [HUE], [], [], [], [], [], [], [], [], [], []
Incident details in: /u01/app/oracle/diag/rdbms/bigcdb/BIGCDB/incident/incdir_241057/BIGCDB_ora_32410_i241057.trc
處理方法:
alter session set container=MANCO2;?
create table backup_user$ as select * from user$;?
update user$ set spare1=0 where name='APEX_PUBLIC_USER';?
commit;?
conn / as sysdba?
shutdown abort?
startup
在mos上面查找發現是一個bug。
ORA-00600 When Trying To Connect Through The SQL Plus using the APEX_PUBLIC_USER After Conversion Of A Non-CDB to PDB On 12.2 Database (文檔 ID 2309896.1)
In this Document
APPLIES TO:
Oracle Application Express (formerly HTML DB) - Version 4.0.2.00.07 and later
Information in this document applies to any platform.
SYMPTOMS
After conversion from a NON-CDB (12cR2) to a PDB with noncdb_to_pdb.sql, when trying to connect to the new PDB as APEX_PUBLIC_USER using SQL*Plus the following error is raised:?
[oracle@server admin]$ sqlplus?
APEX_PUBLIC_USER/password@ip_adress:1521/manco2?
SQL*Plus: Release 12.2.0.1.0 Production on Fri Apr 28 08:34:05 2017?
Copyright (c) 1982, 2016, Oracle. All rights reserved.?
ERROR:?
ORA-00600: internal error code, arguments: [kziaVrfyAcctStatInRootCbk:?
!user],?
[APEX_PUBLIC_USER], [], [], [], [], [], [], [], [], [], []
CAUSE
The issue has been identified as the product defect and documented over the?Bug 25979661?- ORA-00600: [KZIAVRFYACCTSTATINROOTCBK: !USER] [APEX_PUBLIC_USER]
?
SOLUTION
The bug is still being worked by the Development and the workaround is available to override this issue.
As a workaround you can make APEX_PUBLIC_USER local user by updating user$.spare1 column in the PDB.
sqlplus / as sysdba?
alter session set container=MANCO2;?
create table backup_user$ as select * from user$;?
update user$ set spare1=0 where name='APEX_PUBLIC_USER';?
commit;?
conn / as sysdba?
shutdown abort?
startup
?
REFERENCES
BUG:25979661?- ORA-00600: [KZIAVRFYACCTSTATINROOTCBK: !USER] [APEX_PUBLIC_USER]
轉載于:https://www.cnblogs.com/erwadba/p/9017820.html
總結
以上是生活随笔為你收集整理的在nocdb转pdb的时候遇到小bug的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 学习笔记(46):Python实战编程-
- 下一篇: Cadence Allegro智能创建P