Home >Database >Mysql Tutorial >oracle_datapump类型外部表

oracle_datapump类型外部表

WBOY
WBOYOriginal
2016-06-07 17:24:32914browse

将卸载的2个DMP文件拷贝到另外DB,放在原来相同的user_data_dir下,利用2生成的DDL语句建立外表即可。

1、卸载数据(可以并行)

    create table dp_user_objects
organization external
(
type oralce_datapump
default directory user_data_dir
location ('user_objects1.dmp','user_objects2.dmp')
)
parallel 2
as select * from user_objects;

2、在源数据库上调用select  dbms_metadata.get_ddl('TABLE','dp_user_objects')  FROM DUAL;

3、将卸载的2个DMP文件拷贝到另外DB,,放在原来相同的user_data_dir下,利用2生成的DDL语句建立外表即可。

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