ORACLE 12C pdb受限解決思路
報錯資訊
PDB in restricted mode ,getting following error while trying to connect : ORA-01035: ORACLE only available to users with RESTRICTED SESSION privilege SQL> select CON_ID,NAME,OPEN_MODE,RESTRICTED,OPEN_TIME from v$pdbs;
CON_ID NAME OPEN_MODE RESTRICTED OPEN_TIME <<<<<<<<<<< RESTRICTED 3 PDB1 READ WRITE YES 31.01.19 10:22:46,761000000 GMT Pending Errors in pdb_plug_in_violations SQL> select name, cause, type, message, status from pdb_plug_in_violations where type = 'ERROR' and status !='RESOLVED' order
PDB1 Sync Failure ERROR "Sync PDB failed with ORA-65177 during 'alter user "xxx" ...' " PENDING <<<<<<<<< |
原因:PDB PRODUCES SYNC FAILURE
解決方法:
To solve the issue ,delete the offending statement ( alter user "xxx" ) from PDB_SYNC$ for both CDB and PDB
On CDB root ,make a backup of PDB_SYNC$ table and delete de offending rows ===================================================== sqlplus / as sysdba
SQL> col NAME format a30 SQL> col SQLSTMT format a100 SQL> Select CTIME,SQLSTMT,NAME,FLAGS,OPCODE,REPLAY# from PDB_SYNC$;
SQL> create table BKPPDB_SYNC$ as select * from PDB_SYNC$;
SQL> delete from PDB_SYNC$ where SQLSTMT like ('%alter user "xxx"%');
SQL> commit;
On PDB make a backup of PDB_SYNC$ table and delete de offending rows,stop / start the PDB =================================================== SQL> alter session set container=PDB;
SQL> col NAME format a30 SQL> col SQLSTMT format a100 SQL> Select CTIME,SQLSTMT,NAME,FLAGS,OPCODE,REPLAY# from PDB_SYNC$;
SQL> create table BKPPDB_SYNC$ as select * from PDB_SYNC$;
SQL> delete from PDB_SYNC$ where SQLSTMT like ('%alter user "xxx"%');
SQL> commit;
SQL> alter session set container=CDB$ROOT;
SQL> alter pluggable database PDB close;
SQL> alter pluggable database PDB open; |
文件連線: OCI PDB ORA-01035: ORACLE only available to users with RESTRICTED SESSION due to Sync Failure ERROR "Sync PDB failed with ORA-65177 during 'alter user' in pdb_plug_in_violations (Doc ID 2503982.1)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23732248/viewspace-2887279/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- pdb受限解決思路
- Oracle 12c Relocate PDBOracle
- Oracle 12c PDB淺析Oracle
- Oracle 12C -- 使用seed PDB建立新的pdbOracle
- Oracle 12c PDB遷移(一)Oracle
- Oracle 12c系列(六)|Relocate a PDBOracle
- Oracle 12c系列(五)|PDB RefreshOracle
- oracle 12c rman備份pdbOracle
- Oracle 12c PDB淺析(二)Oracle
- Oracle 12C RMAN transport tablespace from PDB of RAC CDB to remote PDBOracleREM
- Oracle 12c系列(二)|PDB的建立Oracle
- ORACLE 12C新特性——CDB與PDBOracle
- oracle 12c使用dblink克隆pdbOracle
- oracle 12c PDB隨CDB啟動和連結PDB的方式Oracle
- Oracle 12c 多租戶 手工建立 pdb 與 手工刪除 pdbOracle
- Oracle 12C RMAN Duplicating Tablespaces Within a PDBOracle
- Oracle 12C RMAN Duplicating the PDB to remote CDBOracleREM
- Oracle 12c CDB&PDB 基本維護Oracle
- Oracle 12c 多租戶在 CDB 中 Plug A PDB,Unplugging A PDBOracle
- Oracle 12c RMAN Cross-Platform Transport of a Closed PDBOracleROSPlatform
- ORACLE 12C PDB 維護基礎介紹Oracle
- Oracle 12c 使用Non-CDB來建立PDBOracle
- Oracle 12C 建立使用者連線pdbOracle
- Oracle 12c PDB中碰到的DG問題Oracle
- Oracle 12c 手工建立 和 刪除 PDB 示例Oracle
- 建立、克隆pdb---oracle 12c 學習(1)Oracle
- Oracle 12c PDB遷移及ORA-00600錯誤分析和解決Oracle
- 12c pdb基本操作
- Oracle 12c 多租戶 CDB 與 PDB 備份Oracle
- Oracle 12c PDB的資料備份恢復Oracle
- oracle 12c pdb測試:建立、開關、刪除Oracle
- 【故障解決】12c中的APEX,ORA-65346: The PDB version is lower and components
- Oracle 12c多租戶特性詳解:PDB 的建立、克隆與維護Oracle
- Oracle 12c多租戶特性詳解:PDB 的出與入 InAndOutOracleNaN
- Oracle 12c多租戶特性詳解:PDB 的備份與恢復Oracle
- Oracle ORA-4031解決思路Oracle
- 當12C PDB遇上JDBCJDBC
- github訪問受限解決辦法Github