Oracle 18c ORA-01035: ORACLE only available to users with RESTRICTED SESSION privilege

场景:Oracle 18c 创建pdb,连接用户时提示受限制,在此之前做过共享undo模式转换为本地undo模式参考:https://www.cndba.cn/Expect-le/article/1786,后把pdb删除,再次创建新的pdb。提示以下信息:

SQL> conn hr/oracle@pdbcndba
ERROR:
ORA-01035: ORACLE ֻՊѭ¾ࠓΠRESTRICTED SESSION ȨОµœû§ʹԃ

Warning: You are no longer connected to ORACLE.

SQL> show pdbs

    CON_ID CON_NAME              OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
     2 PDB$SEED              READ ONLY  NO
     4 PDBCNDBA              READ WRITE YES

查看日志

 

Post plug operations are now complete.
Pluggable database PDBCNDBA with pdb id - 3 is now marked as NEW.
****************************************************************
PDBCNDBA(3):Database Characterset for PDBCNDBA is AL32UTF8
PDBCNDBA(3):Accessing dba_registry_sqlpatch hit error: 942
Violations: Type: 2, Count: 3
PDBCNDBA(3):***************************************************************
PDBCNDBA(3):WARNING: Pluggable Database PDBCNDBA with pdb id - 3 is
PDBCNDBA(3):         altered with errors or warnings. Please look into
PDBCNDBA(3):         PDB_PLUG_IN_VIOLATIONS view for more details.
PDBCNDBA(3):***************************************************************
2018-06-29T02:51:11.639362+08:00
PDBCNDBA(3):Encountered error:13509 during AWR registration for pdb:PDBCNDBA
PDBCNDBA(3):Opening pdb with no Resource Manager plan active
PDBCNDBA(3):ORA-7452: resource plan 'INTERNAL_PLAN' does not exist
PDBCNDBA(3):Resource Manager failed to initialize on pdb 3
2018-06-29T02:51:11.788948+08:00
PDBCNDBA(3):LOGMINER: Encountered error:6553 during dictionary build for pdb:PDBCNDBA
PDBCNDBA(3):Logminer will be unable to deliver changes for this PDB.
PDBCNDBA(3):Logical standby users will need to unplug and re-plug this PDB after resolving this error.
PDBCNDBA(3):GoldenGate users already replicating this PDB will need to drop and re-add this PDB in extract.
PDBCNDBA(3):Unable to obtain resource (0) def from self or template (2)
Pluggable database PDBCNDBA opened read write
Completed: alter pluggable database pdbcndba open
2018-06-29T02:56:00.642634+08:00

根据日志提示查看PDB_PLUG_IN_VIOLATIONS提示如下错误信息:

 

SQL> select MESSAGE from PDB_PLUG_IN_VIOLATIONS;

MESSAGE
--------------------------------------------------------------------------------
CDB is using local undo, but no undo tablespace found in the PDB.
Database option CATALOG mismatch: PDB installed version NULL. CDB installed vers
ion 18.0.0.0.0.

解决方法:

提示信息说明因为现在是local undo 模式需要为pdb数据库创建本地undo表空间
在对应的pdb下创建undo表空间
SQL> alter session set container=pdbcndba;

Session altered.
create undo tablespace undo datafile  '/u01/app/oracle/oradata/pdbcndba/undo01.dbf' size 2000m autoextend off ;
重启pdb数据库
alter pluggable database pdbcndba close;
alter pluggable database pdbcndba open;
数据库显示正常
SQL> show pdbs

    CON_ID CON_NAME              OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
     2 PDB$SEED              READ ONLY  NO
     4 PDBCNDBA              READ WRITE NO
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值