Home  >  Article  >  Database  >  备份、引入ORA数据库(ERP克隆)RedHat 5.5+Oracle 11g (64bit)

备份、引入ORA数据库(ERP克隆)RedHat 5.5+Oracle 11g (64bit)

WBOY
WBOYOriginal
2016-06-07 16:58:561149browse

将整个金蝶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;

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn