时间:2021-07-01 10:21:17 帮助过:42人阅读
将整个金蝶EAS数据库移动至另一个环境中,用于开发测试:备份Oracle数据库:(也可以通过外部工具PL-SQL)[oracle@rcno8 ~]$ sql
备份Oracle数据库:(也可以通过外部工具PL-SQL)
[oracle@rcno8 ~]$ sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Tue Nov 23 10:58:56 2010
Copyright (c) 1982, 2009, Oracle.All rights reserved.
Enter user-name: conn/as sysdba
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
在数据库下执行:
create directory kdbak as '/EASData/EASBAK'
rc0819数据库)
expdp system/kingdee@//127.0.0.1:1521/orcl schemas=rc0819 directory=kdbak dumpfile=rc0819_20100928.dmp logfile=rc0819_20100928.log job_name=rc0819_20100928_job
++++++++++++++++++++++++++++++++++++++
在数据库中执行:
SQL>
create tablespace "EAS_D_RCTEST20101123_STANDARD" datafile '/oradata/EAS_D_RCTEST20101123_STANDARD.ORA' size 2000M;
alter database datafile '/oradata/EAS_D_RCTEST20101123_STANDARD.ORA' autoextend on;
create temporary tablespace "EAS_T_RCTEST20101123_STANDARD" tempfile '/oradata/EAS_T_RCTEST20101123_STANDARD.ORA' size 500M;
alter database tempfile '/oradata/EAS_T_RCTEST20101123_STANDARD.ORA' autoextend on;
create user RCTEST20101123 identified by kingdee default tablespaceEAS_D_RCTEST20101123_STANDARD temporary tablespaceEAS_T_RCTEST20101123_STANDARD;
grant dba to RCTEST20101123;
impdp system/kingdee@//127.0.0.1:1521/orcl directory=kdbak dumpfile=rc0819_20101123.dmp logfile=imprc0819_20101123.log remap_schema=rc0819:RCTEST20101123 remap_tablespace=EAS_D_RC0819_STANDARD:EAS_D_RCTEST20101123_STANDARD,EAS_T_RC0819_STANDARD:EAS_T_RCTEST20101123_STANDARD job_name=imprc0819_20101123;
,