Oracle 版本:12C
国家字符集: UTF8
尝试用 expdp 做全备份
$ expdp test/oracle DIRECTORY=dmp_dir dumpfile=test_expdp01.dmp full=y logfile=expdp01.log
Export: Release 12.1.0.2.0 - Production on Fri Mar 26 20:33:21 2021
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, OLAP, Advanced Analytics and Real Application Testing options
Starting "TEST"."SYS_EXPORT_FULL_02": test/******** DIRECTORY=dmp_dir dumpfile=expdp01.dmp full=y logfile=expdp01.log
Estimate in progress using BLOCKS method...
Processing object type DATABASE_EXPORT/EARLY_OPTIONS/VIEWS_AS_TABLES/TABLE_DATA
Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/TABLE_DATA
Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/VIEWS_AS_TABLES/TABLE_DATA
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 132.3 MB
Processing object type DATABASE_EXPORT/PRE_SYSTEM_IMPCALLOUT/MARKER
Processing object type DATABASE_EXPORT/PRE_INSTANCE_IMPCALLOUT/MARKER
Processing object type DATABASE_EXPORT/TABLESPACE
Processing object type DATABASE_EXPORT/PROFILE
Processing object type DATABASE_EXPORT/SYS_USER/USER
Processing object type DATABASE_EXPORT/SCHEMA/USER
ORA-39126: Worker unexpected fatal error in KUPW$WORKER.FETCH_XML_OBJECTS [USER:"STUDY"]
ORA-04063: view "SYS.KU$_RADM_FPTM_VIEW" has errors
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPW$WORKER", line 11259
----- PL/SQL Call Stack -----
object line object
handle number name
0x263e7c4b88 27116 package body SYS.KUPW$WORKER
0x263e7c4b88 11286 package body SYS.KUPW$WORKER
0x263e7c4b88 13515 package body SYS.KUPW$WORKER
0x263e7c4b88 3173 package body SYS.KUPW$WORKER
0x263e7c4b88 12035 package body SYS.KUPW$WORKER
0x263e7c4b88 2081 package body SYS.KUPW$WORKER
0x25bee40790 2 anonymous block
KUPF$FILE.WRITE_LOB
KUPF$FILE.WRITE_LOB
MD FilePieces Count: 1
FORALL
FORALL
DBMS_LOB.TRIM
DBMS_LOB.TRIM
DBMS_METADATA.FETCH_XML_CLOB
DBMS_METADATA.FETCH_XML_CLOB
In procedure DETERMINE_FATAL_ERROR with ORA-04063: view "SYS.KU$_RADM_FPTM_VIEW" has errors
Job "TEST"."SYS_EXPORT_FULL_02" stopped due to fatal error at Fri Mar 26 20:33:24 2021 elapsed 0 00:00:03
网上查了些资料,说是因为国家字符集为 UTF8 。
尝试导出用户数据
$expdp test/oracle DIRECTORY=dmp_dir dumpfile=study_expdp20210326.dmp
schemas=study logfile=study_expdp20210326.log
;;;
Export: Release 12.1.0.2.0 - Production on Fri Mar 26 21:15:16 2021
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, OLAP, Advanced Analytics and Real Application Testing options
Starting "TEST"."SYS_EXPORT_SCHEMA_01": test/******** DIRECTORY=dmp_dir dumpfile=study_expdp20210326.dmp schemas=study logfile=study_expdp20210326.log
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 125.5 MB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TYPE/TYPE_SPEC
Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC
Processing object type SCHEMA_EXPORT/PACKAGE/COMPILE_PACKAGE/PACKAGE_SPEC/ALTER_PACKAGE_SPEC
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/INDEX/FUNCTIONAL_INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_INDEX/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
Processing object type SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX
. . exported "STUDY"."STREAMDATA" 4.796 MB 86 rows
. . exported "STUDY"."QUEUEENTRY" 0 KB 0 rows
. . exported "STUDY"."LWCLOCALIZABLEPROPERTYVALUE" 6.778 MB 16479 rows
. . exported "STUDY"."DEFAULTWTCONTAINERTEMPLATE" 1.706 MB 23 rows
. . exported "STUDY"."SERVLETREQUESTS" 29.98 KB 12 rows
....... //此处省略若干行
Master table "TEST"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for TEST.SYS_EXPORT_SCHEMA_01 is:
/oradata/dmp_dir/study_expdp20210326.dmp
Job "TEST"."SYS_EXPORT_SCHEMA_01" successfully completed at Fri Mar 26 21:16:23 2021 elapsed 0 00:01:07
成功!