0

0

使用可传输表空间将Oracle 9i升级到10g

php中文网

php中文网

发布时间:2016-06-07 17:58:02

|

1018人浏览过

|

来源于php中文网

原创

1. 在Oracle 9i所在服务器上安装oracle 10g,并建库,创建用户scott,不创建用户表空间: SQL select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.1

1. 在Oracle 9i所在服务器上安装oracle 10g,并建库,创建用户scott,不创建用户表空间:
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod


PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> select tablespace_name,file_name,bytes/1024/1024 from dba_data_files;
TABLESPACE_NAME                FILE_NAME                                          BYTES/1024/1024
------------------------------ -------------------------------------------------- ---------------
SYSTEM                         /home/db/Oracle/oradata/mbs/MBS/datafile/o1_mf_sys             410
                               tem_80bnvf2j_.dbf
UNDOTBS1                       /home/db/Oracle/oradata/mbs/MBS/datafile/o1_mf_und             305
                               otbs1_80bnvm5g_.dbf
SYSAUX                         /home/db/Oracle/oradata/mbs/MBS/datafile/o1_mf_sys             130
                               aux_80bnvnr8_.dbf
SQL> create user scott identified by tiger;
User created.
SQL> grant dba to scott;
Grant succeeded.
2. 检查9i环境,确认需要传输的表空间是自包含的
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
PL/SQL Release 9.2.0.4.0 - Production
CORE    9.2.0.3.0       Production
TNS for Linux: Version 9.2.0.4.0 - Production
NLSRTL Version 9.2.0.4.0 - Production
SQL> select tablespace_name,file_name,bytes/1024/1024 from dba_data_files;
TABLESPACE_NAME                FILE_NAME                                          BYTES/1024/1024
------------------------------ -------------------------------------------------- ---------------
SYSTEM                         /home/db/Oracle/oradata/mbs/system01.dbf                       325
UNDOTBS1                       /home/db/Oracle/oradata/mbs/undotbs01.dbf                      200
USERS                          /home/db/Oracle/oradata/mbs/users01.dbf                        100
SQL> select owner,table_name,tablespace_name from dba_tables where table_name='TEST';
OWNER                          TABLE_NAME                     TABLESPACE_NAME
------------------------------ ------------------------------ ------------------------------
SYS                            TEST                           USERS
SCOTT                          TEST                           USERS
SQL> EXECUTE SYS.DBMS_TTS.TRANSPORT_SET_CHECK('users',TRUE,TRUE);
PL/SQL procedure successfully completed.
SQL> SELECT * FROM SYS.TRANSPORT_SET_VIOLATIONS;
VIOLATIONS
------------------------------------------------------------------------------------------------------------------------------------
Sys owned object  TEST in tablespace USERS not allowed in pluggable set
提示在users表空间中存在sys用户的表test,这不能包含在需要传输的表空间中。
将其删除:
SQL> drop table sys.test;
Table dropped.
SQL> EXECUTE SYS.DBMS_TTS.TRANSPORT_SET_CHECK('users',TRUE,TRUE);
PL/SQL procedure successfully completed.
SQL> SELECT * FROM SYS.TRANSPORT_SET_VIOLATIONS;
no rows selected
没有返回,代表在表空间users与其他表空间不存在依赖关系
3.导出表空间中的元数据
--首先将表空间users设为read only
SQL> alter tablespace users read only;
Tablespace altered.
--导出表空间users中表的元数据
[Oracle@rhel ~]$ exp \'/ as sysdba\' TRANSPORT_TABLESPACE=y TABLESPACES=(users) TTS_FULL_CHECK=y
Export: Release 9.2.0.4.0 - Production on Wed Jul 18 02:15:28 2012
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses ZHS16GBK character set (possible charset conversion)
Note: table data (rows) will not be exported
About to export transportable tablespace metadata...
For tablespace USERS ...
. exporting cluster definitions
. exporting table definitions
. . exporting table                           TEST
. exporting referential integrity constraints
. exporting triggers
. end transportable tablespace metadata export
Export terminated successfully without warnings.
4. 导出数据库中其它对象,以full=y rows=n方式导出
[Oracle@rhel ~]$ exp SYSTEM/oracle FULL=y FILE=full.dmp ROWS=n statistics=none
Export: Release 9.2.0.4.0 - Production on Wed Jul 18 02:16:22 2012
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses ZHS16GBK character set (possible charset conversion)
Note: table data (rows) will not be exported
About to export the entire database ...
. exporting tablespace definitions
. exporting profiles
. exporting user definitions
. exporting roles
. exporting resource costs
. exporting rollback segment definitions
. exporting database links
. exporting sequence numbers
. exporting directory aliases
. exporting context namespaces
. exporting foreign function library names
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions
. exporting system procedural objects and actions
. exporting pre-schema procedural objects and actions
. exporting cluster definitions
. about to export SYSTEM's tables via Conventional Path ...
. . exporting table            AQ$_INTERNET_AGENTS
. . exporting table       AQ$_INTERNET_AGENT_PRIVS
. . exporting table                    DEF$_AQCALL
. . exporting table                   DEF$_AQERROR
. . exporting table                  DEF$_CALLDEST
. . exporting table               DEF$_DEFAULTDEST
. . exporting table               DEF$_DESTINATION
. . exporting table                     DEF$_ERROR
. . exporting table                       DEF$_LOB
. . exporting table                    DEF$_ORIGIN
. . exporting table                DEF$_PROPAGATOR
. . exporting table       DEF$_PUSHED_TRANSACTIONS
. . exporting table                  DEF$_TEMP$LOB
. . exporting table       LOGSTDBY$APPLY_MILESTONE
. . exporting table        LOGSTDBY$APPLY_PROGRESS
. . exporting table                LOGSTDBY$EVENTS
. . exporting table            LOGSTDBY$PARAMETERS
. . exporting table                 LOGSTDBY$PLSQL
. . exporting table                   LOGSTDBY$SCN
. . exporting table                  LOGSTDBY$SKIP
. . exporting table      LOGSTDBY$SKIP_TRANSACTION
. . exporting table        REPCAT$_AUDIT_ATTRIBUTE
. . exporting table           REPCAT$_AUDIT_COLUMN
. . exporting table           REPCAT$_COLUMN_GROUP
. . exporting table               REPCAT$_CONFLICT
. . exporting table                    REPCAT$_DDL
. . exporting table             REPCAT$_EXCEPTIONS
. . exporting table              REPCAT$_EXTENSION
. . exporting table                REPCAT$_FLAVORS
. . exporting table         REPCAT$_FLAVOR_OBJECTS
. . exporting table              REPCAT$_GENERATED
. . exporting table         REPCAT$_GROUPED_COLUMN
. . exporting table      REPCAT$_INSTANTIATION_DDL
. . exporting table            REPCAT$_KEY_COLUMNS
. . exporting table           REPCAT$_OBJECT_PARMS
. . exporting table           REPCAT$_OBJECT_TYPES
. . exporting table       REPCAT$_PARAMETER_COLUMN
. . exporting table               REPCAT$_PRIORITY
. . exporting table         REPCAT$_PRIORITY_GROUP
. . exporting table      REPCAT$_REFRESH_TEMPLATES
. . exporting table                 REPCAT$_REPCAT
. . exporting table              REPCAT$_REPCATLOG
. . exporting table              REPCAT$_REPCOLUMN
. . exporting table         REPCAT$_REPGROUP_PRIVS
. . exporting table              REPCAT$_REPOBJECT
. . exporting table                REPCAT$_REPPROP
. . exporting table              REPCAT$_REPSCHEMA
. . exporting table             REPCAT$_RESOLUTION
. . exporting table      REPCAT$_RESOLUTION_METHOD
. . exporting table  REPCAT$_RESOLUTION_STATISTICS
. . exporting table    REPCAT$_RESOL_STATS_CONTROL
. . exporting table          REPCAT$_RUNTIME_PARMS
. . exporting table              REPCAT$_SITES_NEW
. . exporting table           REPCAT$_SITE_OBJECTS
. . exporting table              REPCAT$_SNAPGROUP
. . exporting table       REPCAT$_TEMPLATE_OBJECTS
. . exporting table         REPCAT$_TEMPLATE_PARMS
. . exporting table     REPCAT$_TEMPLATE_REFGROUPS
. . exporting table         REPCAT$_TEMPLATE_SITES
. . exporting table        REPCAT$_TEMPLATE_STATUS
. . exporting table       REPCAT$_TEMPLATE_TARGETS
. . exporting table         REPCAT$_TEMPLATE_TYPES
. . exporting table    REPCAT$_USER_AUTHORIZATIONS
. . exporting table       REPCAT$_USER_PARM_VALUES
. . exporting table        SQLPLUS_PRODUCT_PROFILE
. about to export OUTLN's tables via Conventional Path ...
. . exporting table                            OL$
. . exporting table                       OL$HINTS
. . exporting table                       OL$NODES
. about to export DBSNMP's tables via Conventional Path ...
. about to export SCOTT's tables via Conventional Path ...
. . exporting table                           TEST
. exporting synonyms
. exporting views
. exporting referential integrity constraints
. exporting stored procedures
. exporting operators
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting triggers
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting user history table
. exporting default and system auditing options
. exporting statistics
Export terminated successfully without warnings.
5.将表空间及数据库其它对象导入
[Oracle@rhel ~]$imp \'/ as sysdba\' TRANSPORT_TABLESPACE=y FILE=expdat.dmp DATAFILES=('/home/db/oracle/oradata/mbs/users01.dbf')
[Oracle@rhel ~]$ imp \'/ as sysdba\' FILE=full.dmp ignore=y full=y
Import: Release 10.2.0.1.0 - Production on Wed Jul 18 02:23:19 2012
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V09.02.00 via conventional path
Warning: the objects were exported by SYSTEM, not by you
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses ZHS16GBK character set (possible charset conversion)
. importing SYSTEM's objects into SYSTEM
IMP-00017: following statement failed with Oracle error 1119:
"CREATE TEMPORARY TABLESPACE "TEMPTS1" BLOCKSIZE 8192 TEMPFILE  '/home/db/or"
"acle/oradata/mbs/temp01.dbf' SIZE 20971520       EXTENT MANAGEMENT LOCAL  U"
"NIFORM. SIZE 1048576"
IMP-00003: Oracle error 1119 encountered
ORA-01119: error in creating database file '/home/db/Oracle/oradata/mbs/temp01.dbf'
ORA-27038: created file already exists
Additional information: 1
IMP-00017: following statement failed with Oracle error 959:
"ALTER USER "SYS" IDENTIFIED BY VALUES '8A8F025737A9097A' TEMPORARY TABLESPA"
"CE "TEMPTS1""
IMP-00003: Oracle error 959 encountered
ORA-00959: tablespace 'TEMPTS1' does not exist
IMP-00017: following statement failed with Oracle error 959:
"ALTER USER "SYSTEM" IDENTIFIED BY VALUES '2D594E86F93B17A1' TEMPORARY TABLE"
"SPACE "TEMPTS1""
IMP-00003: Oracle error 959 encountered
ORA-00959: tablespace 'TEMPTS1' does not exist
IMP-00061: Warning: Object type "SYSTEM"."REPCAT$_OBJECT_NULL_VECTOR" already exists with a different identifier
"CREATE TYPE "REPCAT$_OBJECT_NULL_VECTOR" TIMESTAMP '2012-07-18:01:24:33' OI"
"D 'C509B28C83DBA46FE040007F0100762C'          AS OBJECT"
"("
"  -- type owner, name, hashcode for the type represented by null_vector"
"  type_owner      VARCHAR2(30),"
"  type_name       VARCHAR2(30),"
"  type_hashcode   RAW(17),"
"  -- null_vector for a particular object instance"
"  -- ROBJ REVISIT: should only contain the null image, and not version#"
"  null_vector     RAW(2000)"
")"
. importing SYS's objects into SYS
. importing SYSTEM's objects into SYSTEM
. importing SYS's objects into SYS
. importing SYSTEM's objects into SYSTEM
. importing OUTLN's objects into OUTLN
. importing DBSNMP's objects into DBSNMP
. importing SCOTT's objects into SCOTT
. importing SYSTEM's objects into SYSTEM
. importing SYS's objects into SYS
. importing SYSTEM's objects into SYSTEM
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_AUDIT_ATTRIBUTE" ADD CONSTRAINT "REPCAT$_AUDIT_ATTRIBU"
"TE_C1" CHECK ((data_type_id in (2, 4, 5, 6, 7) and"
"                  data_length is not null)"
"              or (data_type_id not in (2, 4, 5, 6, 7) and"
"                  data_length is null)"
"                 ) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_CONFLICT" ADD CONSTRAINT "REPCAT$_CONFLICT_C1" CHECK ("
"conflict_type_id in (1, 2, 3)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_EXTENSION" ADD CONSTRAINT "REPCAT$_EXTENSION_CODE" CHE"
"CK (extension_code IN (0)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_EXTENSION" ADD CONSTRAINT "REPCAT$_EXTENSION_EXPORTREQ"
"" CHECK (export_required IN ('Y', 'N')) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_EXTENSION" ADD CONSTRAINT "REPCAT$_EXTENSION_STATUS" C"
"HECK (extension_status IN (0, 1, 2, 3, 4)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_EXTENSION" ADD CONSTRAINT "REPCAT$_EXTENSION_PUSH_TO_M"
"DEF" CHECK (push_to_mdef IN ('Y', 'N')) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_EXTENSION" ADD CONSTRAINT "REPCAT$_EXTENSION_PUSH_TO_N"
"EW" CHECK (push_to_new IN ('Y', 'N')) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_FLAVORS" ADD CONSTRAINT "REPCAT$_FLAVORS_C2" CHECK (pu"
"blished is NULL or (published in ('Y','N','O'))) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_FLAVOR_OBJECTS" ADD CONSTRAINT "REPCAT$_FLAVOR_OBJECTS"
"_VERSION" CHECK (version# >= 0 AND version#
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_GENERATED" ADD CONSTRAINT "REPCAT$_GENERATED_OBJ" CHEC"
"K (reason IN (0, 1, 2, 3, 4, 5, 6, 7, 9, 10)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_PRIORITY_GROUP" ADD CONSTRAINT "REPCAT$_PRIORITY_GROUP"
"_C1" CHECK (data_type_id in (1, 2, 3, 4, 5, 6, 7)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_PRIORITY_GROUP" ADD CONSTRAINT "REPCAT$_PRIORITY_GROUP"
"_C2" CHECK ((data_type_id in (4, 7) and"
"                  fixed_data_length is not null)"
"              or (data_type_id in (1, 2, 3, 5, 6) and"
"                  fixed_data_length is null)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_REFRESH_TEMPLATES" ADD CONSTRAINT "REFRESH_TEMPLATES_C"
"1" CHECK ((public_template in ('Y','N'))"
"   or public_template is NULL) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_REPCAT" ADD CONSTRAINT "REPCAT$_REPCAT_STATUS" CHECK ("
"status IN (0, 1, 2)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_REPCATLOG" ADD CONSTRAINT "REPCAT$_REPCATLOG_REQUEST" "
"CHECK (request IN (-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,"
"                                       11, 12, 13, 14, 15, 16, 17,"
"                                       18, 19, 20, 21, 22, 23, 24, 25)) ENA"
"BLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_REPCATLOG" ADD CONSTRAINT "REPCAT$_REPCATLOG_TYPE" CHE"
"CK (type IN (-1, 0, 1, 2, 4, 5, 7, 8, 9, 11, 12, -3,"
"                                    13, 14, 32, 33)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_REPCATLOG" ADD CONSTRAINT "REPCAT$_REPCATLOG_STATUS" C"
"HECK (status IN (0, 1, 2, 3, 4)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_REPCOLUMN" ADD CONSTRAINT "REPCAT$_REPCOLUMN_VERSION" "
"CHECK (version# >= 0 AND version#
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_REPOBJECT" ADD CONSTRAINT "REPCAT$_REPOBJECT_TYPE" CHE"
"CK (type IN (-1, 1, 2, 4, 5, 7, 8, 9, 11, 12, -3,"
"                                      -4, 13, 14, 32, 33)) ENABLE NOVALIDAT"
"E"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_REPOBJECT" ADD CONSTRAINT "REPCAT$_REPOBJECT_VERSION" "
"CHECK (version# >= 0 AND version#
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_REPOBJECT" ADD CONSTRAINT "REPCAT$_REPOBJECT_STATUS" C"
"HECK (status IN (0, 1, 2, 3, 4, 5, 6)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_REPOBJECT" ADD CONSTRAINT "REPCAT$_REPOBJECT_GENPACKAG"
"E" CHECK (genpackage IN (0, 1, 2)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_REPOBJECT" ADD CONSTRAINT "REPCAT$_REPOBJECT_GENTRIGGE"
"R" CHECK (gentrigger IN (0, 1, 2)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_REPPROP" ADD CONSTRAINT "REPCAT$_REPPROP_HOW" CHECK (h"
"ow IN (0, 1, 2, 3)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_SITES_NEW" ADD CONSTRAINT "REPCAT$_SITES_NEW_FULL_INST"
"" CHECK (full_instantiation IN ('Y', 'N')) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_TEMPLATE_OBJECTS" ADD CONSTRAINT "REPCAT$_TEMPLATE_OBJ"
"ECTS_VER" CHECK (object_version# >= 0 AND object_version#
"OVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_TEMPLATE_PARMS" ADD CONSTRAINT "REPCAT$_TEMPLATE_PARMS"
"_C1" CHECK (user_override in ('Y','N')) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_TEMPLATE_SITES" ADD CONSTRAINT "REPCAT$_TEMPLATE_SITES"
"_C1" CHECK (status in (-100,-1,0,1)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
IMP-00017: following statement failed with Oracle error 2264:
"ALTER TABLE "REPCAT$_TEMPLATE_SITES" ADD CONSTRAINT "REPCAT$_TEMPLATE_SITES"
"_C2" CHECK ((site_name is not null and repapi_site_id is null) or"
"   (site_name is null and repapi_site_id is not null)) ENABLE NOVALIDATE"
IMP-00003: Oracle error 2264 encountered
ORA-02264: name already used by an existing constraint
. importing OUTLN's objects into OUTLN
. importing SCOTT's objects into SCOTT
. importing SYSTEM's objects into SYSTEM
. importing SYS's objects into SYS
. importing SYSTEM's objects into SYSTEM
. importing SYS's objects into SYS
. importing SYSTEM's objects into SYSTEM
. importing SYS's objects into SYS
. importing SYSTEM's objects into SYSTEM
. importing SYS's objects into SYS
. importing SYSTEM's objects into SYSTEM
. importing SYS's objects into SYS
. importing SYSTEM's objects into SYSTEM
. importing SYS's objects into SYS
. importing SYSTEM's objects into SYSTEM
. importing SYS's objects into SYS
. importing SYSTEM's objects into SYSTEM
. importing OUTLN's objects into OUTLN
. importing SYSTEM's objects into SYSTEM
. importing OUTLN's objects into OUTLN
. importing SYSTEM's objects into SYSTEM
. importing OUTLN's objects into OUTLN
. importing SYSTEM's objects into SYSTEM
. importing SYS's objects into SYS
. importing SYSTEM's objects into SYSTEM
About to enable constraints...
Import terminated successfully with warnings.
6.编译失效对象
SQL> @?/rdbms/admin/utlrp.sql
SQL> select owner,object_name,object_type,status from dba_objects where status 'VALID';
no rows selected
7.确认数据已经被导入到10g
SQL> select tablespace_name,file_name,bytes/1024/1024 from dba_data_files;
TABLESPACE_NAME                FILE_NAME                                          BYTES/1024/1024
------------------------------ -------------------------------------------------- ---------------
SYSTEM                         /home/db/Oracle/oradata/mbs/MBS/datafile/o1_mf_sys             410
                               tem_80bnvf2j_.dbf
UNDOTBS1                       /home/db/Oracle/oradata/mbs/MBS/datafile/o1_mf_und             305
                               otbs1_80bnvm5g_.dbf
SYSAUX                         /home/db/Oracle/oradata/mbs/MBS/datafile/o1_mf_sys             140
                               aux_80bnvnr8_.dbf
USERS                          /home/db/Oracle/oradata/mbs/users01.dbf                        100
SQL> select count(*) from scott.test;
  COUNT(*)
----------
      5786

热门AI工具

更多
DeepSeek
DeepSeek

幻方量化公司旗下的开源大模型平台

豆包大模型
豆包大模型

字节跳动自主研发的一系列大型语言模型

通义千问
通义千问

阿里巴巴推出的全能AI助手

腾讯元宝
腾讯元宝

腾讯混元平台推出的AI助手

文心一言
文心一言

文心一言是百度开发的AI聊天机器人,通过对话可以生成各种形式的内容。

讯飞写作
讯飞写作

基于讯飞星火大模型的AI写作工具,可以快速生成新闻稿件、品宣文案、工作总结、心得体会等各种文文稿

即梦AI
即梦AI

一站式AI创作平台,免费AI图片和视频生成。

ChatGPT
ChatGPT

最最强大的AI聊天机器人程序,ChatGPT不单是聊天机器人,还能进行撰写邮件、视频脚本、文案、翻译、代码等任务。

相关专题

更多
JavaScript浏览器渲染机制与前端性能优化实践
JavaScript浏览器渲染机制与前端性能优化实践

本专题围绕 JavaScript 在浏览器中的执行与渲染机制展开,系统讲解 DOM 构建、CSSOM 解析、重排与重绘原理,以及关键渲染路径优化方法。内容涵盖事件循环机制、异步任务调度、资源加载优化、代码拆分与懒加载等性能优化策略。通过真实前端项目案例,帮助开发者理解浏览器底层工作原理,并掌握提升网页加载速度与交互体验的实用技巧。

1

2026.03.06

Rust内存安全机制与所有权模型深度实践
Rust内存安全机制与所有权模型深度实践

本专题围绕 Rust 语言核心特性展开,深入讲解所有权机制、借用规则、生命周期管理以及智能指针等关键概念。通过系统级开发案例,分析内存安全保障原理与零成本抽象优势,并结合并发场景讲解 Send 与 Sync 特性实现机制。帮助开发者真正理解 Rust 的设计哲学,掌握在高性能与安全性并重场景中的工程实践能力。

21

2026.03.05

PHP高性能API设计与Laravel服务架构实践
PHP高性能API设计与Laravel服务架构实践

本专题围绕 PHP 在现代 Web 后端开发中的高性能实践展开,重点讲解基于 Laravel 框架构建可扩展 API 服务的核心方法。内容涵盖路由与中间件机制、服务容器与依赖注入、接口版本管理、缓存策略设计以及队列异步处理方案。同时结合高并发场景,深入分析性能瓶颈定位与优化思路,帮助开发者构建稳定、高效、易维护的 PHP 后端服务体系。

106

2026.03.04

AI安装教程大全
AI安装教程大全

2026最全AI工具安装教程专题:包含各版本AI绘图、AI视频、智能办公软件的本地化部署手册。全篇零基础友好,附带最新模型下载地址、一键安装脚本及常见报错修复方案。每日更新,收藏这一篇就够了,让AI安装不再报错!

50

2026.03.04

Swift iOS架构设计与MVVM模式实战
Swift iOS架构设计与MVVM模式实战

本专题聚焦 Swift 在 iOS 应用架构设计中的实践,系统讲解 MVVM 模式的核心思想、数据绑定机制、模块拆分策略以及组件化开发方法。内容涵盖网络层封装、状态管理、依赖注入与性能优化技巧。通过完整项目案例,帮助开发者构建结构清晰、可维护性强的 iOS 应用架构体系。

87

2026.03.03

C++高性能网络编程与Reactor模型实践
C++高性能网络编程与Reactor模型实践

本专题围绕 C++ 在高性能网络服务开发中的应用展开,深入讲解 Socket 编程、多路复用机制、Reactor 模型设计原理以及线程池协作策略。内容涵盖 epoll 实现机制、内存管理优化、连接管理策略与高并发场景下的性能调优方法。通过构建高并发网络服务器实战案例,帮助开发者掌握 C++ 在底层系统与网络通信领域的核心技术。

27

2026.03.03

Golang 测试体系与代码质量保障:工程级可靠性建设
Golang 测试体系与代码质量保障:工程级可靠性建设

Go语言测试体系与代码质量保障聚焦于构建工程级可靠性系统。本专题深入解析Go的测试工具链(如go test)、单元测试、集成测试及端到端测试实践,结合代码覆盖率分析、静态代码扫描(如go vet)和动态分析工具,建立全链路质量监控机制。通过自动化测试框架、持续集成(CI)流水线配置及代码审查规范,实现测试用例管理、缺陷追踪与质量门禁控制,确保代码健壮性与可维护性,为高可靠性工程系统提供质量保障。

79

2026.02.28

Golang 工程化架构设计:可维护与可演进系统构建
Golang 工程化架构设计:可维护与可演进系统构建

Go语言工程化架构设计专注于构建高可维护性、可演进的企业级系统。本专题深入探讨Go项目的目录结构设计、模块划分、依赖管理等核心架构原则,涵盖微服务架构、领域驱动设计(DDD)在Go中的实践应用。通过实战案例解析接口抽象、错误处理、配置管理、日志监控等关键工程化技术,帮助开发者掌握构建稳定、可扩展Go应用的最佳实践方法。

61

2026.02.28

Golang 性能分析与运行时机制:构建高性能程序
Golang 性能分析与运行时机制:构建高性能程序

Go语言以其高效的并发模型和优异的性能表现广泛应用于高并发、高性能场景。其运行时机制包括 Goroutine 调度、内存管理、垃圾回收等方面,深入理解这些机制有助于编写更高效稳定的程序。本专题将系统讲解 Golang 的性能分析工具使用、常见性能瓶颈定位及优化策略,并结合实际案例剖析 Go 程序的运行时行为,帮助开发者掌握构建高性能应用的关键技能。

50

2026.02.28

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
Node.js 教程
Node.js 教程

共57课时 | 12.7万人学习

CSS3 教程
CSS3 教程

共18课时 | 6.6万人学习

Git 教程
Git 教程

共21课时 | 4万人学习

关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号