{"id":354,"date":"2020-11-30T15:53:39","date_gmt":"2020-11-30T07:53:39","guid":{"rendered":"http:\/\/www.821121.com\/?p=354"},"modified":"2021-01-05T10:20:48","modified_gmt":"2021-01-05T02:20:48","slug":"%e6%96%b0%e7%89%b9%e6%80%a7%ef%bc%9acdb-pdb%e7%9a%84%e7%bb%b4%e6%8a%a4%e5%91%bd%e4%bb%a4%ef%bc%9a%e5%b0%86non-cdb%e6%95%b0%e6%8d%ae%e5%af%bc%e5%85%a5pdb","status":"publish","type":"post","link":"http:\/\/www.821121.com\/?p=354","title":{"rendered":"12C\u65b0\u7279\u6027\uff1aCDB\/PDB\u7684\u7ef4\u62a4\u547d\u4ee4\uff1a\u5c06non-CDB\u6570\u636e\u5bfc\u5165PDB"},"content":{"rendered":"<h2>1\u3001\u521b\u5efa\u6d4b\u8bd5\u6570\u636e<\/h2>\n<p>\u767b\u5f55non-CDB\uff0c\u521b\u5efa\u6570\u636e<\/p>\n<pre><code class=\"language-sql\">[oracle@cat1 ~]$ export ORACLE_SID=orcl1\n[oracle@cat1 ~]$ sqlplus \/ as sysdba\n\nSQL*Plus: Release 19.0.0.0.0 - Production on Mon Nov 30 14:47:57 2020\nVersion 19.3.0.0.0\n\nCopyright (c) 1982, 2019, Oracle.  All rights reserved.\n\nConnected to:\nOracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production\nVersion 19.3.0.0.0\n\nSQL&gt; create user test identified by test;\n\nUser created.\n\nSQL&gt; grant dba to test;\n\nGrant succeeded.\n\nSQL&gt; conn test\/test\nConnected.\nSQL&gt; create table test1 as select * from dba_tables;\n\nTable created.\n\nSQL&gt; select count(*) from dba_tables;\n\n  COUNT(*)\n----------\n      2179\n\nSQL&gt; <\/code><\/pre>\n<h2>2\u3001\u5bfc\u51fanon-CDB\u6570\u636e<\/h2>\n<p>\u521b\u5efa\u8def\u5f84<\/p>\n<pre><code class=\"language-sql\">SQL&gt; conn system\/oracle\nConnected.\nSQL&gt; create directory for_exp as &#039;\/tmp&#039;;\n\nDirectory created.<\/code><\/pre>\n<p>\u4fee\u6539\u4e3a\u53ea\u8bfb\u6a21\u5f0f<\/p>\n<pre><code class=\"language-sql\">SQL&gt; select tablespace_name from dba_tablespaces;\n\nTABLESPACE_NAME\n--------------------------------------------------------------------------------\nSYSTEM\nSYSAUX\nUNDOTBS1\nTEMP\nUSERS\nUNDOTBS2\n\n6 rows selected.\n\nSQL&gt; alter tablespace users read only;\n\nTablespace altered.\n\nSQL&gt; <\/code><\/pre>\n<p>\u5bfc\u51fa\u6570\u636e<\/p>\n<pre><code class=\"language-sql\">[oracle@cat1 ~]$ expdp system\/oracle directory=for_exp dumpfile=expfull.dmp full=y transportable=always logfile=exp.log\n\nExport: Release 19.0.0.0.0 - Production on Mon Nov 30 14:59:23 2020\nVersion 19.3.0.0.0\n\nCopyright (c) 1982, 2019, Oracle and\/or its affiliates.  All rights reserved.\n\nUDE-28002: operation generated ORACLE error 28002\nORA-28002: the password will expire within 7 days\n\nConnected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production\nStarting &quot;SYSTEM&quot;.&quot;SYS_EXPORT_FULL_02&quot;:  system\/******** directory=for_exp dumpfile=expfull.dmp full=y transportable=always logfile=exp.log \nProcessing object type DATABASE_EXPORT\/EARLY_OPTIONS\/VIEWS_AS_TABLES\/TABLE_DATA\nProcessing object type DATABASE_EXPORT\/NORMAL_OPTIONS\/TABLE_DATA\nProcessing object type DATABASE_EXPORT\/NORMAL_OPTIONS\/VIEWS_AS_TABLES\/TABLE_DATA\nProcessing object type DATABASE_EXPORT\/SCHEMA\/TABLE\/TABLE_DATA\nProcessing object type DATABASE_EXPORT\/SCHEMA\/TABLE\/INDEX\/STATISTICS\/INDEX_STATISTICS\nProcessing object type DATABASE_EXPORT\/SCHEMA\/TABLE\/STATISTICS\/TABLE_STATISTICS\nProcessing object type DATABASE_EXPORT\/STATISTICS\/MARKER\nProcessing object type DATABASE_EXPORT\/PLUGTS_FULL\/FULL\/PLUGTS_TABLESPACE\nProcessing object type DATABASE_EXPORT\/PLUGTS_FULL\/PLUGTS_BLK\nProcessing object type DATABASE_EXPORT\/END_PLUGTS_BLK\nProcessing object type DATABASE_EXPORT\/PRE_SYSTEM_IMPCALLOUT\/MARKER\nProcessing object type DATABASE_EXPORT\/PRE_INSTANCE_IMPCALLOUT\/MARKER\nProcessing object type DATABASE_EXPORT\/TABLESPACE\nProcessing object type DATABASE_EXPORT\/PROFILE\nProcessing object type DATABASE_EXPORT\/SCHEMA\/USER\nProcessing object type DATABASE_EXPORT\/RADM_FPTM\nProcessing object type DATABASE_EXPORT\/GRANT\/SYSTEM_GRANT\/PROC_SYSTEM_GRANT\nProcessing object type DATABASE_EXPORT\/SCHEMA\/GRANT\/SYSTEM_GRANT\nProcessing object type DATABASE_EXPORT\/SCHEMA\/ROLE_GRANT\nProcessing object type DATABASE_EXPORT\/SCHEMA\/DEFAULT_ROLE\nProcessing object type DATABASE_EXPORT\/SCHEMA\/ON_USER_GRANT\nProcessing object type DATABASE_EXPORT\/SCHEMA\/TABLESPACE_QUOTA\nProcessing object type DATABASE_EXPORT\/RESOURCE_COST\nProcessing object type DATABASE_EXPORT\/TRUSTED_DB_LINK\nProcessing object type DATABASE_EXPORT\/DIRECTORY\/DIRECTORY\nProcessing object type DATABASE_EXPORT\/DIRECTORY\/GRANT\/OWNER_GRANT\/OBJECT_GRANT\nProcessing object type DATABASE_EXPORT\/SYSTEM_PROCOBJACT\/PRE_SYSTEM_ACTIONS\/PROCACT_SYSTEM\nProcessing object type DATABASE_EXPORT\/SYSTEM_PROCOBJACT\/PROCOBJ\nProcessing object type DATABASE_EXPORT\/SYSTEM_PROCOBJACT\/POST_SYSTEM_ACTIONS\/PROCACT_SYSTEM\nProcessing object type DATABASE_EXPORT\/SCHEMA\/PROCACT_SCHEMA\nProcessing object type DATABASE_EXPORT\/EARLY_OPTIONS\/VIEWS_AS_TABLES\/TABLE\nProcessing object type DATABASE_EXPORT\/EARLY_POST_INSTANCE_IMPCALLOUT\/MARKER\nProcessing object type DATABASE_EXPORT\/NORMAL_OPTIONS\/TABLE\nProcessing object type DATABASE_EXPORT\/NORMAL_OPTIONS\/VIEWS_AS_TABLES\/TABLE\nProcessing object type DATABASE_EXPORT\/NORMAL_POST_INSTANCE_IMPCALLOUT\/MARKER\nProcessing object type DATABASE_EXPORT\/SCHEMA\/TABLE\/TABLE\nProcessing object type DATABASE_EXPORT\/SCHEMA\/TABLE\/COMMENT\nProcessing object type DATABASE_EXPORT\/SCHEMA\/TABLE\/INDEX\/INDEX\nProcessing object type DATABASE_EXPORT\/FINAL_POST_INSTANCE_IMPCALLOUT\/MARKER\nProcessing object type DATABASE_EXPORT\/AUDIT_UNIFIED\/AUDIT_POLICY_ENABLE\nProcessing object type DATABASE_EXPORT\/POST_SYSTEM_IMPCALLOUT\/MARKER\n. . exported &quot;SYS&quot;.&quot;KU$_USER_MAPPING_VIEW&quot;               6.070 KB      37 rows\n. . exported &quot;SYSTEM&quot;.&quot;REDO_DB&quot;                          25.59 KB       1 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$WORKSPACES_TABLE$&quot;              12.10 KB       1 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$HINT_TABLE$&quot;                    9.984 KB      97 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$INSTALLATIONS&quot;               6.960 KB       2 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$WORKSPACE_PRIV_TABLE$&quot;          7.078 KB      11 rows\n. . exported &quot;SYS&quot;.&quot;DAM_CONFIG_PARAM$&quot;                   6.531 KB      14 rows\n. . exported &quot;SYS&quot;.&quot;TSDP_SUBPOL$&quot;                        6.328 KB       1 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$NEXTVER_TABLE$&quot;                 6.375 KB       1 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$PROPS&quot;                       6.234 KB       5 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$ENV_VARS$&quot;                      6.015 KB       3 rows\n. . exported &quot;SYS&quot;.&quot;TSDP_PARAMETER$&quot;                     5.953 KB       1 rows\n. . exported &quot;SYS&quot;.&quot;TSDP_POLICY$&quot;                        5.921 KB       1 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$VERSION_HIERARCHY_TABLE$&quot;       5.984 KB       1 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$EVENTS_INFO$&quot;                   5.812 KB      12 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$AUDIT_ACTIONS&quot;               5.757 KB       8 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$DIP_EVENTS&quot;                  5.539 KB       2 rows\n. . exported &quot;AUDSYS&quot;.&quot;AUD$UNIFIED&quot;:&quot;AUD_UNIFIED_P0&quot;     122.7 KB     150 rows\n. . exported &quot;AUDSYS&quot;.&quot;AUD$UNIFIED&quot;:&quot;SYS_P201&quot;           51.90 KB       2 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$AUDIT&quot;                           0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$COMPARTMENTS&quot;                    0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$DIP_DEBUG&quot;                       0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$GROUPS&quot;                          0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$LAB&quot;                             0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$LEVELS&quot;                          0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$POL&quot;                             0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$POLICY_ADMIN&quot;                    0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$POLS&quot;                            0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$POLT&quot;                            0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$PROFILE&quot;                         0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$PROFILES&quot;                        0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$PROG&quot;                            0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$SESSINFO&quot;                        0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$USER&quot;                            0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$USER_COMPARTMENTS&quot;               0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$USER_GROUPS&quot;                     0 KB       0 rows\n. . exported &quot;LBACSYS&quot;.&quot;OLS$USER_LEVELS&quot;                     0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;AUD$&quot;                                    0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;DAM_CLEANUP_EVENTS$&quot;                     0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;DAM_CLEANUP_JOBS$&quot;                       0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;TSDP_ASSOCIATION$&quot;                       0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;TSDP_CONDITION$&quot;                         0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;TSDP_FEATURE_POLICY$&quot;                    0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;TSDP_PROTECTION$&quot;                        0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;TSDP_SENSITIVE_DATA$&quot;                    0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;TSDP_SENSITIVE_TYPE$&quot;                    0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;TSDP_SOURCE$&quot;                            0 KB       0 rows\n. . exported &quot;SYSTEM&quot;.&quot;REDO_LOG&quot;                             0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$BATCH_COMPRESSIBLE_TABLES$&quot;         0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$CONSTRAINTS_TABLE$&quot;                 0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$CONS_COLUMNS$&quot;                      0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$LOCKROWS_INFO$&quot;                     0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$MODIFIED_TABLES$&quot;                   0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$MP_GRAPH_WORKSPACES_TABLE$&quot;         0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$MP_PARENT_WORKSPACES_TABLE$&quot;        0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$NESTED_COLUMNS_TABLE$&quot;              0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$RESOLVE_WORKSPACES_TABLE$&quot;          0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$RIC_LOCKING_TABLE$&quot;                 0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$RIC_TABLE$&quot;                         0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$RIC_TRIGGERS_TABLE$&quot;                0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$UDTRIG_DISPATCH_PROCS$&quot;             0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$UDTRIG_INFO$&quot;                       0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$VERSION_TABLE$&quot;                     0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$VT_ERRORS_TABLE$&quot;                   0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$WORKSPACE_SAVEPOINTS_TABLE$&quot;        0 KB       0 rows\n. . exported &quot;MDSYS&quot;.&quot;RDF_PARAM$&quot;                        6.515 KB       3 rows\n. . exported &quot;SYS&quot;.&quot;AUDTAB$TBS$FOR_EXPORT&quot;               5.953 KB       2 rows\n. . exported &quot;SYS&quot;.&quot;DBA_SENSITIVE_DATA&quot;                      0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;DBA_TSDP_POLICY_PROTECTION&quot;              0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;FGA_LOG$FOR_EXPORT&quot;                      0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;NACL$_ACE_EXP&quot;                           0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;NACL$_HOST_EXP&quot;                      6.976 KB       2 rows\n. . exported &quot;SYS&quot;.&quot;NACL$_WALLET_EXP&quot;                        0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;SQL$TEXT_DATAPUMP&quot;                       0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;SQL$_DATAPUMP&quot;                           0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;SQLOBJ$AUXDATA_DATAPUMP&quot;                 0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;SQLOBJ$DATA_DATAPUMP&quot;                    0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;SQLOBJ$PLAN_DATAPUMP&quot;                    0 KB       0 rows\n. . exported &quot;SYS&quot;.&quot;SQLOBJ$_DATAPUMP&quot;                        0 KB       0 rows\n. . exported &quot;SYSTEM&quot;.&quot;SCHEDULER_JOB_ARGS&quot;                   0 KB       0 rows\n. . exported &quot;SYSTEM&quot;.&quot;SCHEDULER_PROGRAM_ARGS&quot;               0 KB       0 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$EXP_MAP&quot;                        7.718 KB       3 rows\n. . exported &quot;WMSYS&quot;.&quot;WM$METADATA_MAP&quot;                       0 KB       0 rows\n. . exported &quot;SYSTEM&quot;.&quot;SYS_EXPORT_FULL_01&quot;                   0 KB       0 rows\nMaster table &quot;SYSTEM&quot;.&quot;SYS_EXPORT_FULL_02&quot; successfully loaded\/unloaded\n******************************************************************************\nDump file set for SYSTEM.SYS_EXPORT_FULL_02 is:\n  \/tmp\/expfull.dmp\n******************************************************************************\nDatafiles required for transportable tablespace USERS:\n  +DATA\/ORCL\/DATAFILE\/users.267.1051309053    \u300a===\u6ce8\u610f\u8fd9\u4e2a\u5730\u65b9\u7684\u6570\u636e\u6587\u4ef6\uff0c\u9700\u8981cp\u5230pdb\u7684\u6570\u636e\u6587\u4ef6\u8def\u5f84\u4e0b\nJob &quot;SYSTEM&quot;.&quot;SYS_EXPORT_FULL_02&quot; successfully completed at Mon Nov 30 15:01:45 2020 elapsed 0 00:02:20<\/code><\/pre>\n<h2>3\u3001\u767b\u5f55PDB\uff0c\u521b\u5efa\u8def\u5f84<\/h2>\n<pre><code class=\"language-sql\">[oracle@cat1 admin]$ sqlplus system\/oracle@PDB2_WHS\n\nSQL*Plus: Release 19.0.0.0.0 - Production on Mon Nov 30 15:08:59 2020\nVersion 19.3.0.0.0\n\nCopyright (c) 1982, 2019, Oracle.  All rights reserved.\n\nLast Successful login time: Sun May 01 2005 21:15:47 +08:00\n\nConnected to:\nOracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production\nVersion 19.3.0.0.0\n\nSQL&gt; create directory for_exp as &#039;\/tmp&#039;;\n\nDirectory created.<\/code><\/pre>\n<p>\u67e5\u770b\u8868\u7a7a\u95f4\uff0c\u5df2\u7ecf\u5b58\u5728users\u8868\u7a7a\u95f4\uff0c\u5c06\u5176rename\u4e3ausers02<\/p>\n<pre><code class=\"language-sql\">SQL&gt; select tablespace_name from dba_tablespaces;\n\nTABLESPACE_NAME\n--------------------------------------------------------------------------------\nSYSTEM\nSYSAUX\nUNDOTBS1\nTEMP\nUNDO_2\nUSERS\n\nSQL&gt; alter tablespace users rename to user02;<\/code><\/pre>\n<p>\u67e5\u770bPDB\u6570\u636e\u6587\u4ef6\u8def\u5f84:<\/p>\n<pre><code class=\"language-sql\">SQL&gt; select file_name from dba_data_files;\n\nFILE_NAME\n--------------------------------------------------------------------------------\n+DATA1\/WHS1\/B4D6EBAED583686DE0532900A8C0FDBB\/DATAFILE\/users.280.1057335893\n+DATA1\/WHS1\/B4D6EBAED583686DE0532900A8C0FDBB\/DATAFILE\/undo_2.279.1057335893\n+DATA1\/WHS1\/B4D6EBAED583686DE0532900A8C0FDBB\/DATAFILE\/undotbs1.281.1057335893\n+DATA1\/WHS1\/B4D6EBAED583686DE0532900A8C0FDBB\/DATAFILE\/sysaux.283.1057335893\n+DATA1\/WHS1\/B4D6EBAED583686DE0532900A8C0FDBB\/DATAFILE\/system.282.1057335893<\/code><\/pre>\n<p>\u62f7\u8d1d\u6570\u636e\u6587\u4ef6<\/p>\n<pre><code class=\"language-sql\">ASMCMD&gt; cp +DATA\/ORCL\/DATAFILE\/users.267.1051309053 +DATA1\/WHS1\/B4D6EBAED583686DE0532900A8C0FDBB\/DATAFILE\/users_1.dbf\ncopying +DATA\/ORCL\/DATAFILE\/users.267.1051309053 -&gt; +DATA1\/WHS1\/B4D6EBAED583686DE0532900A8C0FDBB\/DATAFILE\/users_1.dbf<\/code><\/pre>\n<h2>4\u3001\u5bfc\u5165\u6570\u636e<\/h2>\n<pre><code class=\"language-sql\">[oracle@cat1 tmp]$ impdp system\/oracle@PDB2_WHS directory=for_exp full=y dumpfile=expfull.dmp transport_datafiles=&#039;+DATA1\/WHS1\/B4D6EBAED583686DE0532900A8C0FDBB\/DATAFILE\/users_1.dbf&#039; logfile=imp.log cluster=N\n\nImport: Release 19.0.0.0.0 - Production on Mon Nov 30 15:34:17 2020\nVersion 19.3.0.0.0\n\nCopyright (c) 1982, 2019, Oracle and\/or its affiliates.  All rights reserved.\n\nConnected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production\nORA-39002: invalid operation\nORA-39126: Worker unexpected fatal error in KUPW$WORKER.DISPATCH_WORK_ITEMS [SELECT old_value FROM &quot;SYSTEM&quot;.&quot;SYS_IMPORT_FULL_01&quot; WHERE process_order = :1] \nORA-25153: Temporary Tablespace is Empty\n\nORA-06512: at &quot;SYS.DBMS_SYS_ERROR&quot;, line 95\nORA-06512: at &quot;SYS.KUPW$WORKER&quot;, line 12613\nORA-06512: at &quot;SYS.DBMS_SYS_ERROR&quot;, line 95\nORA-06512: at &quot;SYS.DBMS_LOB&quot;, line 741\nORA-06512: at &quot;SYS.KUPW$WORKER&quot;, line 13683\n\n----- PL\/SQL Call Stack -----\n  object      line  object\n  handle    number  name\n0x63dba548     33476  package body SYS.KUPW$WORKER.WRITE_ERROR_INFORMATION\n0x63dba548     12641  package body SYS.KUPW$WORKER.DETERMINE_FATAL_ERROR\n0x63dba548     13961  package body SYS.KUPW$WORKER.DISPATCH_WORK_ITEMS\n0x63dba548      2429  package body SYS.KUPW$WORKER.MAIN\n0x63e78870         2  anonymous block\n\nKUPW: In procedure DISPATCH_WORK_ITEMS\nKUPW: Open Cursor Check took 0 seconds\nKUPW: In procedure SEND_MSG. Fatal=0\nKUPC$QUEUE.TRANSCEIVE\nKUPC$QUEUE.TRANSCEIVE\nKUPW: Saved debug_info: 0\nKUPW: Master debug flags: 0\nKUPW: Current debug_info: 0\nDBMS_LOB.CREATETEMPORARY v_md_xml_clob\nKUPW: In procedure DETERMINE_FATAL_ERROR with ORA-25153: Temporary Tablespace is Empty\nORA-06512: at &quot;SYS.DBMS_LOB&quot;, line 741<\/code><\/pre>\n<p>\u4ee5\u4e0a\u62a5\u9519\u6ca1\u6709\u4e34\u65f6\u8868\u7a7a\u95f4\uff0c\u786e\u8ba4\u67e5\u770b\uff1a<\/p>\n<pre><code class=\"language-sql\">[oracle@cat1 ~]$ sqlplus system\/oracle@PDB2_WHS\n\nSQL*Plus: Release 19.0.0.0.0 - Production on Mon Nov 30 15:36:28 2020\nVersion 19.3.0.0.0\n\nCopyright (c) 1982, 2019, Oracle.  All rights reserved.\n\nLast Successful login time: Mon Nov 30 2020 15:34:17 +08:00\n\nConnected to:\nOracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production\nVersion 19.3.0.0.0\n\nSQL&gt; select tablespace_name,status from dba_tablespaces where tablespace_name=&#039;TEMP&#039;;\n\nTABLESPACE_NAME\n--------------------------------------------------------------------------------\nSTATUS\n---------------------------\nTEMP\nONLINE\n\nSQL&gt;  select file_name,tablespace_name from dba_temp_files;\n\nno rows selected<\/code><\/pre>\n<p>\u786e\u5b9e\u6ca1\u6709\u6570\u636e\u6587\u4ef6\uff0c\u624b\u52a8\u589e\u52a0\u6570\u636e\u6587\u4ef6<\/p>\n<pre><code class=\"language-sql\">SQL&gt; alter tablespace temp add tempfile &#039;+DATA1&#039; SIZE 1g AUTOEXTEND OFF;\n\nTablespace altered.\n\nSQL&gt;  select file_name,tablespace_name from dba_temp_files;\n\nFILE_NAME\n--------------------------------------------------------------------------------\nTABLESPACE_NAME\n--------------------------------------------------------------------------------\n+DATA1\/WHS1\/B4D6EBAED583686DE0532900A8C0FDBB\/TEMPFILE\/temp.301.1057851553\nTEMP<\/code><\/pre>\n<p><strong>\u5bfc\u5165\u6570\u636e<\/strong><\/p>\n<pre><code class=\"language-sql\">[oracle@cat1 tmp]$ impdp system\/oracle@PDB2_WHS directory=for_exp full=y dumpfile=expfull.dmp transport_datafiles=&#039;+DATA1\/WHS1\/B4D6EBAED583686DE0532900A8C0FDBB\/DATAFILE\/users_1.dbf&#039; logfile=imp.log cluster=N\n\nImport: Release 19.0.0.0.0 - Production on Mon Nov 30 15:45:20 2020\nVersion 19.3.0.0.0\n\nCopyright (c) 1982, 2019, Oracle and\/or its affiliates.  All rights reserved.\n\nConnected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production\nMaster table &quot;SYSTEM&quot;.&quot;SYS_IMPORT_FULL_01&quot; successfully loaded\/unloaded\nStarting &quot;SYSTEM&quot;.&quot;SYS_IMPORT_FULL_01&quot;:  system\/********@PDB2_WHS directory=for_exp full=y dumpfile=expfull.dmp transport_datafiles=+DATA1\/WHS1\/B4D6EBAED583686DE0532900A8C0FDBB\/DATAFILE\/users_1.dbf logfile=imp.log cluster=N \nProcessing object type DATABASE_EXPORT\/PRE_SYSTEM_IMPCALLOUT\/MARKER\nProcessing object type DATABASE_EXPORT\/PRE_INSTANCE_IMPCALLOUT\/MARKER\nProcessing object type DATABASE_EXPORT\/PLUGTS_FULL\/PLUGTS_BLK\nProcessing object type DATABASE_EXPORT\/TABLESPACE\nORA-31684: Object type TABLESPACE:&quot;UNDOTBS1&quot; already exists\n\nORA-31684: Object type TABLESPACE:&quot;TEMP&quot; already exists\n\nProcessing object type DATABASE_EXPORT\/PROFILE\nProcessing object type DATABASE_EXPORT\/SCHEMA\/USER\nProcessing object type DATABASE_EXPORT\/RADM_FPTM\nProcessing object type DATABASE_EXPORT\/GRANT\/SYSTEM_GRANT\/PROC_SYSTEM_GRANT\nProcessing object type DATABASE_EXPORT\/SCHEMA\/GRANT\/SYSTEM_GRANT\nProcessing object type DATABASE_EXPORT\/SCHEMA\/ROLE_GRANT\nORA-39083: Object type ROLE_GRANT failed to create with error:\nORA-01917: user or role &#039;GSMROOTUSER&#039; does not exist\n\nFailing sql is:\n GRANT &quot;GSMROOTUSER_ROLE&quot; TO &quot;GSMROOTUSER&quot;\n\nProcessing object type DATABASE_EXPORT\/SCHEMA\/DEFAULT_ROLE\nORA-39083: Object type DEFAULT_ROLE:&quot;GSMROOTUSER&quot; failed to create with error:\nORA-01918: user &#039;GSMROOTUSER&#039; does not exist\n\nFailing sql is:\n ALTER USER &quot;GSMROOTUSER&quot; DEFAULT ROLE ALL\n\nProcessing object type DATABASE_EXPORT\/SCHEMA\/ON_USER_GRANT\nORA-39083: Object type ON_USER_GRANT failed to create with error:\nORA-31625: Schema GSMROOTUSER is needed to import this object, but is unaccessible\nORA-01435: user does not exist\n\nFailing sql is:\n GRANT INHERIT PRIVILEGES ON USER &quot;GSMROOTUSER&quot; TO &quot;PUBLIC&quot;\n\nProcessing object type DATABASE_EXPORT\/SCHEMA\/TABLESPACE_QUOTA\nProcessing object type DATABASE_EXPORT\/RESOURCE_COST\nProcessing object type DATABASE_EXPORT\/TRUSTED_DB_LINK\nProcessing object type DATABASE_EXPORT\/DIRECTORY\/DIRECTORY\nORA-31684: Object type DIRECTORY:&quot;FOR_EXP&quot; already exists\n\nProcessing object type DATABASE_EXPORT\/DIRECTORY\/GRANT\/OWNER_GRANT\/OBJECT_GRANT\nProcessing object type DATABASE_EXPORT\/SYSTEM_PROCOBJACT\/PRE_SYSTEM_ACTIONS\/PROCACT_SYSTEM\nProcessing object type DATABASE_EXPORT\/SYSTEM_PROCOBJACT\/PROCOBJ\nProcessing object type DATABASE_EXPORT\/SYSTEM_PROCOBJACT\/POST_SYSTEM_ACTIONS\/PROCACT_SYSTEM\nProcessing object type DATABASE_EXPORT\/SCHEMA\/PROCACT_SCHEMA\nORA-39083: Object type PROCACT_SCHEMA failed to create with error:\nORA-31625: Schema GSMROOTUSER is needed to import this object, but is unaccessible\nORA-01435: user does not exist\n\nFailing sql is:\nBEGIN \nsys.dbms_logrep_imp.instantiate_schema(schema_name=&gt;SYS_CONTEXT(&#039;USERENV&#039;,&#039;CURRENT_SCHEMA&#039;), export_db_name=&gt;&#039;ORCL&#039;, inst_scn=&gt;&#039;2070080&#039;);COMMIT; END; \n\nProcessing object type DATABASE_EXPORT\/EARLY_OPTIONS\/VIEWS_AS_TABLES\/TABLE\nProcessing object type DATABASE_EXPORT\/EARLY_OPTIONS\/VIEWS_AS_TABLES\/TABLE_DATA\n. . imported &quot;SYS&quot;.&quot;KU$_EXPORT_USER_MAP&quot;                 6.070 KB      37 rows\nProcessing object type DATABASE_EXPORT\/EARLY_POST_INSTANCE_IMPCALLOUT\/MARKER\nProcessing object type DATABASE_EXPORT\/NORMAL_OPTIONS\/TABLE\nProcessing object type DATABASE_EXPORT\/NORMAL_OPTIONS\/TABLE_DATA\n. . imported &quot;SYSTEM&quot;.&quot;REDO_DB_TMP&quot;                      25.59 KB       1 rows\n. . imported &quot;WMSYS&quot;.&quot;E$WORKSPACES_TABLE$&quot;               12.10 KB       1 rows\n. . imported &quot;WMSYS&quot;.&quot;E$HINT_TABLE$&quot;                     9.984 KB      97 rows\n. . imported &quot;WMSYS&quot;.&quot;E$WORKSPACE_PRIV_TABLE$&quot;           7.078 KB      11 rows\n. . imported &quot;SYS&quot;.&quot;AMGT$DP$DAM_CONFIG_PARAM$&quot;           6.531 KB      14 rows\n. . imported &quot;SYS&quot;.&quot;DP$TSDP_SUBPOL$&quot;                     6.328 KB       1 rows\n. . imported &quot;WMSYS&quot;.&quot;E$NEXTVER_TABLE$&quot;                  6.375 KB       1 rows\n. . imported &quot;WMSYS&quot;.&quot;E$ENV_VARS$&quot;                       6.015 KB       3 rows\n. . imported &quot;SYS&quot;.&quot;DP$TSDP_PARAMETER$&quot;                  5.953 KB       1 rows\n. . imported &quot;SYS&quot;.&quot;DP$TSDP_POLICY$&quot;                     5.921 KB       1 rows\n. . imported &quot;WMSYS&quot;.&quot;E$VERSION_HIERARCHY_TABLE$&quot;        5.984 KB       1 rows\n. . imported &quot;WMSYS&quot;.&quot;E$EVENTS_INFO$&quot;                    5.812 KB      12 rows\n. . imported &quot;AUDSYS&quot;.&quot;AMGT$DP$AUD$UNIFIED&quot;:&quot;AUD_UNIFIED_P0&quot;  122.7 KB     150 rows\n. . imported &quot;AUDSYS&quot;.&quot;AMGT$DP$AUD$UNIFIED&quot;:&quot;SYS_P201&quot;   51.90 KB       2 rows\n. . imported &quot;LBACSYS&quot;.&quot;OLS_DP$OLS$AUDIT&quot;                    0 KB       0 rows\n. . imported &quot;LBACSYS&quot;.&quot;OLS_DP$OLS$COMPARTMENTS&quot;             0 KB       0 rows\n. . imported &quot;LBACSYS&quot;.&quot;OLS_DP$OLS$GROUPS&quot;                   0 KB       0 rows\n. . imported &quot;LBACSYS&quot;.&quot;OLS_DP$OLS$LAB&quot;                      0 KB       0 rows\n. . imported &quot;LBACSYS&quot;.&quot;OLS_DP$OLS$LEVELS&quot;                   0 KB       0 rows\n. . imported &quot;LBACSYS&quot;.&quot;OLS_DP$OLS$POL&quot;                      0 KB       0 rows\n. . imported &quot;LBACSYS&quot;.&quot;OLS_DP$OLS$POLS&quot;                     0 KB       0 rows\n. . imported &quot;LBACSYS&quot;.&quot;OLS_DP$OLS$POLT&quot;                     0 KB       0 rows\n. . imported &quot;LBACSYS&quot;.&quot;OLS_DP$OLS$PROFILE&quot;                  0 KB       0 rows\n. . imported &quot;LBACSYS&quot;.&quot;OLS_DP$OLS$PROG&quot;                     0 KB       0 rows\n. . imported &quot;LBACSYS&quot;.&quot;OLS_DP$OLS$USER&quot;                     0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;AMGT$DP$AUD$&quot;                            0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;AMGT$DP$DAM_CLEANUP_EVENTS$&quot;             0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;AMGT$DP$DAM_CLEANUP_JOBS$&quot;               0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DP$TSDP_ASSOCIATION$&quot;                    0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DP$TSDP_CONDITION$&quot;                      0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DP$TSDP_FEATURE_POLICY$&quot;                 0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DP$TSDP_PROTECTION$&quot;                     0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DP$TSDP_SENSITIVE_DATA$&quot;                 0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DP$TSDP_SENSITIVE_TYPE$&quot;                 0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DP$TSDP_SOURCE$&quot;                         0 KB       0 rows\n. . imported &quot;SYSTEM&quot;.&quot;REDO_LOG_TMP&quot;                         0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$BATCH_COMPRESSIBLE_TABLES$&quot;          0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$CONSTRAINTS_TABLE$&quot;                  0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$CONS_COLUMNS$&quot;                       0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$LOCKROWS_INFO$&quot;                      0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$MODIFIED_TABLES$&quot;                    0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$MP_GRAPH_WORKSPACES_TABLE$&quot;          0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$MP_PARENT_WORKSPACES_TABLE$&quot;         0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$NESTED_COLUMNS_TABLE$&quot;               0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$RESOLVE_WORKSPACES_TABLE$&quot;           0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$RIC_LOCKING_TABLE$&quot;                  0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$RIC_TABLE$&quot;                          0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$RIC_TRIGGERS_TABLE$&quot;                 0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$UDTRIG_DISPATCH_PROCS$&quot;              0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$UDTRIG_INFO$&quot;                        0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$VERSION_TABLE$&quot;                      0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$VT_ERRORS_TABLE$&quot;                    0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$WORKSPACE_SAVEPOINTS_TABLE$&quot;         0 KB       0 rows\nProcessing object type DATABASE_EXPORT\/NORMAL_OPTIONS\/VIEWS_AS_TABLES\/TABLE\nProcessing object type DATABASE_EXPORT\/NORMAL_OPTIONS\/VIEWS_AS_TABLES\/TABLE_DATA\n. . imported &quot;MDSYS&quot;.&quot;RDF_PARAM$TBL&quot;                     6.515 KB       3 rows\n. . imported &quot;SYS&quot;.&quot;AMGT$DP$AUDTAB$TBS$FOR_EXPORT&quot;       5.953 KB       2 rows\n. . imported &quot;SYS&quot;.&quot;DP$DBA_SENSITIVE_DATA&quot;                   0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DP$DBA_TSDP_POLICY_PROTECTION&quot;           0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;AMGT$DP$FGA_LOG$FOR_EXPORT&quot;              0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;NACL$_ACE_IMP&quot;                           0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;NACL$_HOST_IMP&quot;                      6.976 KB       2 rows\n. . imported &quot;SYS&quot;.&quot;NACL$_WALLET_IMP&quot;                        0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DATAPUMP$SQL$TEXT&quot;                       0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DATAPUMP$SQL$&quot;                           0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DATAPUMP$SQLOBJ$AUXDATA&quot;                 0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DATAPUMP$SQLOBJ$DATA&quot;                    0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DATAPUMP$SQLOBJ$PLAN&quot;                    0 KB       0 rows\n. . imported &quot;SYS&quot;.&quot;DATAPUMP$SQLOBJ$&quot;                        0 KB       0 rows\n. . imported &quot;SYSTEM&quot;.&quot;SCHEDULER_JOB_ARGS_TMP&quot;               0 KB       0 rows\n. . imported &quot;SYSTEM&quot;.&quot;SCHEDULER_PROGRAM_ARGS_TMP&quot;           0 KB       0 rows\n. . imported &quot;WMSYS&quot;.&quot;E$EXP_MAP&quot;                         7.718 KB       3 rows\n. . imported &quot;WMSYS&quot;.&quot;E$METADATA_MAP&quot;                        0 KB       0 rows\nProcessing object type DATABASE_EXPORT\/NORMAL_POST_INSTANCE_IMPCALLOUT\/MARKER\nProcessing object type DATABASE_EXPORT\/SCHEMA\/TABLE\/TABLE\nProcessing object type DATABASE_EXPORT\/SCHEMA\/TABLE\/TABLE_DATA\n. . imported &quot;SYSTEM&quot;.&quot;SYS_EXPORT_FULL_01&quot;                   0 KB       0 rows\nProcessing object type DATABASE_EXPORT\/SCHEMA\/TABLE\/COMMENT\nProcessing object type DATABASE_EXPORT\/SCHEMA\/TABLE\/INDEX\/STATISTICS\/INDEX_STATISTICS\nProcessing object type DATABASE_EXPORT\/SCHEMA\/TABLE\/STATISTICS\/TABLE_STATISTICS\nProcessing object type DATABASE_EXPORT\/STATISTICS\/MARKER\nProcessing object type DATABASE_EXPORT\/END_PLUGTS_BLK\nProcessing object type DATABASE_EXPORT\/FINAL_POST_INSTANCE_IMPCALLOUT\/MARKER\nProcessing object type DATABASE_EXPORT\/AUDIT_UNIFIED\/AUDIT_POLICY_ENABLE\nProcessing object type DATABASE_EXPORT\/POST_SYSTEM_IMPCALLOUT\/MARKER\nJob &quot;SYSTEM&quot;.&quot;SYS_IMPORT_FULL_01&quot; completed with 7 error(s) at Mon Nov 30 15:46:56 2020 elapsed 0 00:01:35<\/code><\/pre>\n<h2>5\u3001\u9a8c\u8bc1\uff1a<\/h2>\n<pre><code class=\"language-sql\">[oracle@cat1 ~]$ sqlplus test\/test@PDB2_WHS\n\nSQL*Plus: Release 19.0.0.0.0 - Production on Mon Nov 30 15:49:05 2020\nVersion 19.3.0.0.0\n\nCopyright (c) 1982, 2019, Oracle.  All rights reserved.\n\nConnected to:\nOracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production\nVersion 19.3.0.0.0\n\nSQL&gt; select count(*) from test1;\n\n  COUNT(*)\n----------\n      2178\n\nSQL&gt; <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u521b\u5efa\u6d4b\u8bd5\u6570\u636e \u767b\u5f55non-CDB\uff0c\u521b\u5efa\u6570\u636e [<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-354","post","type-post","status-publish","format-standard","hentry","category-oracle-12c"],"_links":{"self":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=354"}],"version-history":[{"count":2,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/354\/revisions"}],"predecessor-version":[{"id":1257,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/354\/revisions\/1257"}],"wp:attachment":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=354"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}