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 rman備份pdbOracle
- Oracle 12c系列(五)|PDB RefreshOracle
- Oracle 12c系列(六)|Relocate a PDBOracle
- Oracle 12c系列(二)|PDB的建立Oracle
- oracle 12c PDB隨CDB啟動和連結PDB的方式Oracle
- Oracle 12c RMAN Cross-Platform Transport of a Closed PDBOracleROSPlatform
- Oracle ORA-4031解決思路Oracle
- Oracle 12c系列(七) | Non-CDB轉換為PDBOracle
- Oracle 12c RMAN Performing Cross-Platform Transport of a PDB Using InconsistentOracleROSPlatform
- 【故障解決】12c中的APEX,ORA-65346: The PDB version is lower and components
- 【ASK_ORACLE】Oracle 12c之CDB與PDB的備份與恢復(一)什麼是CDB與PDB?Oracle
- 12c pdb基本操作
- Oracle 12C 中CDB和PDB的引數檔案管理Oracle
- 12C關於CDB、PDB的官方解釋
- 【BAK_ORACLE】Oracle 12c之CDB與PDB的備份與恢復(三)CDB與PDB的備份方式Oracle
- 【RECO_ORACLE】Oracle 12c之CDB與PDB的備份與恢復(四)PDB的幾種恢復方式Oracle
- oracle 12c中CDB和PDB的備份還原實驗Oracle
- 【12c cdb pdb】實驗
- Oracle 12c 使用FILE_NAME_CONVERT建立pdb報錯 ORA-01276Oracle
- 【PDB】 為Oracle pdb新增服務(pdb add service)Oracle
- Oracle 建立PDB-Plugging In an Unplugged PDBOracle
- [20181010]12c clone pdb.txt
- github訪問受限解決辦法Github
- 【PDB】pdb閃回,Oracle還原點Oracle
- 【PDB】Oracle跨PDB檢視查詢Oracle
- 【PDB】Oracle PDB資源管理參考Oracle
- 【PDB】Oracle pdb維護常用sql命令OracleSQL
- Oracle 12c系列(九) | 通過unplug與plug方式升級pdb資料庫Oracle資料庫
- 爬蟲受限的三種解決方案爬蟲
- 【PDB】Oracle 建立pdb說明(create pluggable database)OracleDatabase
- oracle 12c 針對cdb的差異0備與對pdb進行恢復Oracle
- Oracle 12.2 新特性: Online PDB relocate (PDB hot move)Oracle
- Oracle:PDB 引數管理Oracle
- 爬蟲IP受限的三個解決方法爬蟲
- win10 wifi受限怎麼解決_window10無線網受限怎麼辦Win10WiFi
- Oracle 建立PDB-from ScratchOracle
- Oracle 建立PDB-本地克隆Oracle