热门标签 | HotTags
当前位置:  开发笔记 > 数据库 > 正文

使用可传输表空间将Oracle9i升级到10g

1.在Oracle9i所在服务器上安装oracle10g,并建库,创建用户scott,不创建用户表空间:SQLselect*fromv$version;BANNER----------------------------------------------------------------OracleDatabase10gEnterpriseEditionRelease10.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

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
推荐阅读
  • 本文介绍了Python高级网络编程及TCP/IP协议簇的OSI七层模型。首先简单介绍了七层模型的各层及其封装解封装过程。然后讨论了程序开发中涉及到的网络通信内容,主要包括TCP协议、UDP协议和IPV4协议。最后还介绍了socket编程、聊天socket实现、远程执行命令、上传文件、socketserver及其源码分析等相关内容。 ... [详细]
  • Linux服务器密码过期策略、登录次数限制、私钥登录等配置方法
    本文介绍了在Linux服务器上进行密码过期策略、登录次数限制、私钥登录等配置的方法。通过修改配置文件中的参数,可以设置密码的有效期、最小间隔时间、最小长度,并在密码过期前进行提示。同时还介绍了如何进行公钥登录和修改默认账户用户名的操作。详细步骤和注意事项可参考本文内容。 ... [详细]
  • 本文介绍了在开发Android新闻App时,搭建本地服务器的步骤。通过使用XAMPP软件,可以一键式搭建起开发环境,包括Apache、MySQL、PHP、PERL。在本地服务器上新建数据库和表,并设置相应的属性。最后,给出了创建new表的SQL语句。这个教程适合初学者参考。 ... [详细]
  • 本文介绍了在rhel5.5操作系统下搭建网关+LAMP+postfix+dhcp的步骤和配置方法。通过配置dhcp自动分配ip、实现外网访问公司网站、内网收发邮件、内网上网以及SNAT转换等功能。详细介绍了安装dhcp和配置相关文件的步骤,并提供了相关的命令和配置示例。 ... [详细]
  • 本文介绍了如何使用php限制数据库插入的条数并显示每次插入数据库之间的数据数目,以及避免重复提交的方法。同时还介绍了如何限制某一个数据库用户的并发连接数,以及设置数据库的连接数和连接超时时间的方法。最后提供了一些关于浏览器在线用户数和数据库连接数量比例的参考值。 ... [详细]
  • Centos7.6安装Gitlab教程及注意事项
    本文介绍了在Centos7.6系统下安装Gitlab的详细教程,并提供了一些注意事项。教程包括查看系统版本、安装必要的软件包、配置防火墙等步骤。同时,还强调了使用阿里云服务器时的特殊配置需求,以及建议至少4GB的可用RAM来运行GitLab。 ... [详细]
  • 本文介绍了在Hibernate配置lazy=false时无法加载数据的问题,通过采用OpenSessionInView模式和修改数据库服务器版本解决了该问题。详细描述了问题的出现和解决过程,包括运行环境和数据库的配置信息。 ... [详细]
  • 本文介绍了Oracle数据库中tnsnames.ora文件的作用和配置方法。tnsnames.ora文件在数据库启动过程中会被读取,用于解析LOCAL_LISTENER,并且与侦听无关。文章还提供了配置LOCAL_LISTENER和1522端口的示例,并展示了listener.ora文件的内容。 ... [详细]
  • 图解redis的持久化存储机制RDB和AOF的原理和优缺点
    本文通过图解的方式介绍了redis的持久化存储机制RDB和AOF的原理和优缺点。RDB是将redis内存中的数据保存为快照文件,恢复速度较快但不支持拉链式快照。AOF是将操作日志保存到磁盘,实时存储数据但恢复速度较慢。文章详细分析了两种机制的优缺点,帮助读者更好地理解redis的持久化存储策略。 ... [详细]
  • 计算机存储系统的层次结构及其优势
    本文介绍了计算机存储系统的层次结构,包括高速缓存、主存储器和辅助存储器三个层次。通过分层存储数据可以提高程序的执行效率。计算机存储系统的层次结构将各种不同存储容量、存取速度和价格的存储器有机组合成整体,形成可寻址存储空间比主存储器空间大得多的存储整体。由于辅助存储器容量大、价格低,使得整体存储系统的平均价格降低。同时,高速缓存的存取速度可以和CPU的工作速度相匹配,进一步提高程序执行效率。 ... [详细]
  • 如何在服务器主机上实现文件共享的方法和工具
    本文介绍了在服务器主机上实现文件共享的方法和工具,包括Linux主机和Windows主机的文件传输方式,Web运维和FTP/SFTP客户端运维两种方式,以及使用WinSCP工具将文件上传至Linux云服务器的操作方法。此外,还介绍了在迁移过程中需要安装迁移Agent并输入目的端服务器所在华为云的AK/SK,以及主机迁移服务会收集的源端服务器信息。 ... [详细]
  • 本文讨论了在数据库打开和关闭状态下,重新命名或移动数据文件和日志文件的情况。针对性能和维护原因,需要将数据库文件移动到不同的磁盘上或重新分配到新的磁盘上的情况,以及在操作系统级别移动或重命名数据文件但未在数据库层进行重命名导致报错的情况。通过三个方面进行讨论。 ... [详细]
  • 学习SLAM的女生,很酷
    本文介绍了学习SLAM的女生的故事,她们选择SLAM作为研究方向,面临各种学习挑战,但坚持不懈,最终获得成功。文章鼓励未来想走科研道路的女生勇敢追求自己的梦想,同时提到了一位正在英国攻读硕士学位的女生与SLAM结缘的经历。 ... [详细]
  • 本文介绍了通过mysql命令查看mysql的安装路径的方法,提供了相应的sql语句,并希望对读者有参考价值。 ... [详细]
  • ALTERTABLE通过更改、添加、除去列和约束,或者通过启用或禁用约束和触发器来更改表的定义。语法ALTERTABLEtable{[ALTERCOLUMNcolu ... [详细]
author-avatar
霸气小米鱼鱼_156
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有