ORA-31633: unable to create master table "SYSTEM.SYS_EXPORT_FULL_XX"
ORA-31633: unable to create master table "SYSTEM.SYS_EXPORT_FULL_XX"
EXPDP in Oracle 12c (12.1.0.2) fails with below error.
During performing Data Pump Export backup in a 2 node Oracle 12c RAC database, Data Pump job terminates with below error.
=============================================================
Export: Release 12.1.0.2.0 - Production on Mon Jan 23 10:16:15 2017 Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security, OLAP, Advanced Analytics and Real Application Testing options ORA-31626: job does not exist ORA-31633: unable to create master table "SYSTEM.SYS_EXPORT_FULL_05" ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95 ORA-06512: at "SYS.KUPV$FT", line 1048 ORA-06502: PL/SQL: numeric or value error: character string buffer too small
=============================================================
Note
: - Master table for Data Pump job was not being created hence it was terminating the Data pump job at its initial startup. In above error we can see ORA-06502 that comes most of the time if we have not set streams_pool_size parameter value to enough one but in my case it was sized enough set as below to perform Data Pump Operations.
NAME TYPE VALUE ------------------------------------ -------------------------------- ------------------------------ streams_pool_size big integer 128M
Further we decided to clear any data pump orphaned job left in the database from earlier executions.
-- locate Data Pump master tables: SQL> SELECT o.status, o.object_id, o.object_type, o.owner||'.'||object_name "OWNER.OBJECT" FROM dba_objects o, dba_datapump_jobs j WHERE o.owner=j.owner_name AND o.object_name=j.job_name AND j.job_name NOT LIKE 'BIN$%' ORDER BY 4,2; STATUS OBJECT_ID OBJECT_TYPE OWNER.OBJECT ------- ---------- ----------------------- ---------------------------------------- VALID 1434366 TABLE SYS.SYS_EXPORT_FULL_01 VALID 1434139 TABLE SYS.SYS_EXPORT_SCHEMA_01 VALID 1434144 TABLE SYS.SYS_EXPORT_SCHEMA_02 VALID 1434149 TABLE SYS.SYS_EXPORT_SCHEMA_03 VALID 1434160 TABLE SYS.SYS_EXPORT_SCHEMA_04 VALID 1434377 TABLE SYS.SYS_EXPORT_SCHEMA_05 VALID 1432335 TABLE SYSTEM.SYS_EXPORT_FULL_01 VALID 1434155 TABLE SYSTEM.SYS_EXPORT_FULL_02 VALID 1434339 TABLE SYSTEM.SYS_EXPORT_FULL_03 VALID 1434344 TABLE SYSTEM.SYS_EXPORT_FULL_04 VALID 1434349 TABLE SYSTEM.SYS_EXPORT_FULL_05 VALID 1434354 TABLE SYSTEM.SYS_EXPORT_FULL_06 VALID 1434360 TABLE SYSTEM.SYS_EXPORT_FULL_07 VALID 1434372 TABLE SYSTEM.SYS_EXPORT_FULL_08 VALID 1434392 TABLE SYSTEM.SYS_EXPORT_FULL_09 VALID 1434408 TABLE SYSTEM.SYS_EXPORT_FULL_10 VALID 1434983 TABLE SYSTEM.SYS_EXPORT_FULL_11 -- Below we cleared all Orphaned Data Pump Jobs. SQL> drop table SYS.SYS_EXPORT_FULL_01; Table dropped. SQL> drop table SYS.SYS_EXPORT_SCHEMA_01; Table dropped. SQL> drop table SYS.SYS_EXPORT_SCHEMA_02; Table dropped. SQL> drop table SYS.SYS_EXPORT_SCHEMA_03; Table dropped. SQL> drop table SYS.SYS_EXPORT_SCHEMA_04; Table dropped. SQL> drop table SYS.SYS_EXPORT_SCHEMA_05; Table dropped. SQL> drop table SYSTEM.SYS_EXPORT_FULL_01; Table dropped. SQL> drop table SYSTEM.SYS_EXPORT_FULL_02; Table dropped. SQL> drop table SYSTEM.SYS_EXPORT_FULL_03; Table dropped. SQL> drop table SYSTEM.SYS_EXPORT_FULL_04; Table dropped. SQL> drop table SYSTEM.SYS_EXPORT_FULL_05; Table dropped. SQL> drop table SYSTEM.SYS_EXPORT_FULL_06; Table dropped. SQL> drop table SYSTEM.SYS_EXPORT_FULL_07; Table dropped. SQL> drop table SYSTEM.SYS_EXPORT_FULL_08; Table dropped. SQL> drop table SYSTEM.SYS_EXPORT_FULL_09; Table dropped. SQL> drop table SYSTEM.SYS_EXPORT_FULL_10; Table dropped. SQL> drop table SYSTEM.SYS_EXPORT_FULL_11; Table dropped.
-- Now no orphaned data pump job left in the system.
SQL> SELECT * FROM user_datapump_jobs; no rows selected
SQL> SELECT owner_name, job_name, rtrim(operation) "OPERATION", rtrim(job_mode) "JOB_MODE", state, attached_sessions FROM dba_datapump_jobs WHERE job_name NOT LIKE 'BIN$%' ORDER BY 1,2; 2 3 4 5 no rows selected
-- As, we are clean at this step so tried to run expdp job again.
Export: Release 12.1.0.2.0 - Production on Wed Jan 18 19:33:40 2017 Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security, OLAP, Advanced Analytics and Real Application Testing options ORA-31626: job does not exist ORA-31633: unable to create master table "SYSTEM.SYS_EXPORT_FULL_05" ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95 ORA-06512: at "SYS.KUPV$FT", line 1048 ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Terrible, it failed again with same error.
We then decided to re-load Data Pump packages even our Catalog status was in VALID state in database registry.
-- Decided to re-load data pump packages 1.Catproc.sql
SQL> @$ORACLE_HOME/rdbms/admin/catproc.sql
2.To recompile invalid objects, if any SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql
Note
:- you need to follow proper steps to run catproc.sql script in Oracle RAC database.
=============================================================Tried to fire Data Pump Export job again but failed with same error……
L
è
Tried to trace the data pump session to diagnose it in depth. You should try this step earlier than reloading data pump packages. We set below event tracing and fired Data Pump job again and it generated trace file for that point in time. Make sure you turn off the event after you are done with tracing.
Set event 6502 to trap ORA-6502 and dump a stack trace
SQL> alter system set events '6502 trace name errorstack level 3'; SQL> alter system set events 'sql_trace {process : pname = dw , pname = dm} level=12';
After reviewing the trace file generated, we could see, there was a TRIGGER(
MONITORING_DDL) which was
causing our export job to fail at every attempt.
SQL> select owner, object_name, object_type, status from dba_objects where lower(object_name) like '%monitoring_ddl'; OWNER OBJECT_NAME OBJECT_TYPE STATUS --------------- ------------------------------ ----------------------- ------- SYSTEM MONITORING_DDL TRIGGER VALID SYSTEM MONITORING_DDL TABLE VALID 3 rows selected.
-- We Disabled the Trigger..............
We decided to disable to trigger as it was preventing DDLs operations to be performed other than SYS and SYSTEM users.
SQL> alter trigger system.MONITORING_DDL disable; Trigger altered.
Finally, tried to run Data Pump Export Job again and it went fine.
Export: Release 12.1.0.2.0 - Production on Mon Jan 23 12:37:53 2017 Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security, OLAP, Advanced Analytics and Real Application Testing options FLASHBACK automatically enabled to preserve database integrity. Starting "SYSTEM"."SYS_EXPORT_FULL_01": system/******** directory=EXPORT_DIR dumpfile=expdp_rac1_2017-01-23.dmp logfile=expdp_rac1_2017-01-23.log full=y metrics=y Startup took 8 seconds Estimate in progress using BLOCKS method... Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA Estimated 18894 TABLE_DATA objects in 357 seconds Total estimation using BLOCKS method: 120.9 GB Processing object type DATABASE_EXPORT/TABLESPACE Completed 175 TABLESPACE objects in 18 seconds
FROM http://rajkumar-dba.blogspot.com/2017/01/ora-31633-unable-to-create-master-table.html
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/14659796/viewspace-2648736/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Fatal error in launcher: Unable to create process using '"'Error
- create table,show tables,describe table,DROP TABLE,ALTER TABLE ,怎麼使用?
- ftp_rawlist: Unable to create temporary file.FTP
- MySQL5.6 create table原理分析MySql
- MySQL的create table as 與 like區別MySql
- use azure data studio to create external table for oracleOracle
- iptables報錯!iptables-restore unable to initialize table 'filterRESTFilter
- java.lang.OutOfMemoryError- unable to create new native thread 問題排查JavaErrorthread
- oracle表空間不足:ORA-01653: unable to extend tableOracle
- git拉取程式碼報錯filename too long unable to create fileGit
- [FATAL] [INS-32012] Unable to create directory: /u01/app/19.3.0/grid,APP
- oracle 19c 無法create table解決Oracle
- Docker Swarm Master 學習筆記——Create Your First Service and Scale It LocallyDockerSwarmAST筆記
- 【Case】ORA-20000: Unable to set values for table DBMS_TABCOMP_TEMP_UNCMP
- 【故障處理】ORA-1688: unable to extend table AUDSYS.AUD$UNIFIEDNifi
- 安裝11.2.0.1資料庫軟體報[FATAL] [INS-32035] Unable to create資料庫
- Linux 無許可權建立資料夾( 報錯:Unable to create ... directory.)Linux
- ERROR 1786 (HY000): Statement violates GTID consistency: CREATE TABLE ... SELECTError
- create table 使用select查詢語句建立表的方法分享
- 【SQL】14 UNION 操作符、SELECT INTO 語句、INSERT INTO SELECT 語句、CREATE DATABASE 語句、CREATE TABLE 語句SQLDatabase
- 靜默安裝11.2.0.1資料庫軟體報[FATAL] [INS-32035] Unable to create資料庫
- ORACLE 19C RAC FOR RHEL7 打補丁報錯OPatchException: Unable to create patchObjectOracleExceptionObject
- ORA-20000:unable to analyze table "XXX"."DBMS_TABCOMP_TEMP_UNCMP",insufficient privileges or does no
- MySQL alter table時執行innobackupex全備再看Seconds_Behind_MasterMySqlAST
- spark大批量讀取Hbase時出現java.lang.OutOfMemoryError: unable to create new native threadSparkJavaErrorthread
- ORA-1653: unable to extend table by 1024 in tablespace(oracle表空間滿了的解決方案)Oracle
- mybatis進行資料庫建表 CREATE command denied to user 'root'@'127.0.0.1' for table 問題MyBatis資料庫127.0.0.1
- java.lang.OutOfMemoryError: unable to create new native thread問題排查以及當前系統最大程式數量JavaErrorthread
- ! [rejected] master -> master (fetch first)AST
- 01.svn commit 時提示 Commit failed (details follow) Unable to create pristine install stream 系統找不到指定的路徑MITAI
- create_singlethread_workqueue, create_workqueuethread
- Unable to find a specification for ''
- OUTLOOK - Unable to Delete Meetingsdelete
- git merge origin master git merge origin/master區別GitAST
- git rebase masterGitAST
- 1248:Dungeon MasterAST
- Scrum Master JobGPTScrumASTGPT
- SQL__CREATESQL