ORACLE导出导入库
导出
exp ECPDATA/ECPDATA@ajiaecpdb file=E:\ECPDB_FULL.DMP full=y
导入
新建数据库
SQLPLUS连接数据库
sqlplus System/xxxxxx@ajiaecpdb
执行下面这段SQL
注意修改
DATAFILE 'E:\app\Administrator\oradata\AJIAECPDB\ECP_DATA01' SIZE 10M
DATAFILE 'E:\app\Administrator\oradata\AJIAECPDB\ECP_IDX01' SIZE 10M
的路径
CREATE SMALLFILE TABLESPACE "ECP_DATA" DATAFILE 'E:\app\Administrator\oradata\AJIAECPDB\ECP_DATA01' SIZE 10M AUTOEXTEND ON NEXT 2M MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO ; CREATE SMALLFILE TABLESPACE "ECP_IDX" DATAFILE 'E:\app\Administrator\oradata\AJIAECPDB\ECP_IDX01' SIZE 10M AUTOEXTEND ON NEXT 2M MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO ; CREATE USER "ECPDATA" PROFILE "DEFAULT" IDENTIFIED BY "ECPDATA" DEFAULT TABLESPACE "ECP_DATA" TEMPORARY TABLESPACE "TEMP" ACCOUNT UNLOCK ; GRANT "CONNECT" TO "ECPDATA"; GRANT "RESOURCE" TO "ECPDATA"; GRANT UNLIMITED TABLESPACE TO "ECPDATA"; GRANT ALTER ANY INDEX TO "ECPDATA"; GRANT ALTER ANY SEQUENCE TO "ECPDATA"; GRANT ALTER ANY TABLE TO "ECPDATA"; GRANT ALTER ANY TRIGGER TO "ECPDATA"; GRANT CREATE ANY INDEX TO "ECPDATA"; GRANT CREATE ANY SEQUENCE TO "ECPDATA"; GRANT CREATE ANY TABLE TO "ECPDATA"; GRANT CREATE ANY TRIGGER TO "ECPDATA"; GRANT CREATE ANY VIEW TO "ECPDATA"; GRANT DROP ANY INDEX TO "ECPDATA"; GRANT DROP ANY SEQUENCE TO "ECPDATA"; GRANT DROP ANY TABLE TO "ECPDATA"; GRANT DROP ANY TRIGGER TO "ECPDATA"; GRANT DROP ANY VIEW TO "ECPDATA"; GRANT SELECT ANY DICTIONARY TO "ECPDATA"; GRANT SELECT ANY SEQUENCE TO "ECPDATA"; GRANT SELECT ANY TABLE TO "ECPDATA";
导入
imp ECPDATA/ECPDATA@ajiaecpdb file=E:\ECPDB_FULL.DMP full=y