Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

0

积分

0

好友

9

主题
1#
发表于 2013-4-23 14:30:52 | 查看: 2145| 回复: 1
数据泵的INCLUDE=TABLE:"LIKE 'TAB%'"   like子项我想指定多个,怎么写啊
2#
发表于 2013-4-23 20:19:14

include=TABLE:\" in \(select table_name from user_tables where table_name like \'MACLEAN_T1\%\' or table_name like \'MACLEAN_T2\%\' \) \"

这种方法即可

SQL> create table maclean_t1abc(t1 int);

Table created.

SQL> create table maclean_t2abc(t1 int);

Table created.


[oracle@vrh8 ~]$ expdp maclean/oracle dumpfile=temp:mac.dmp schemas=maclean include=TABLE:\" in \(select table_name from user_tables where table_name like \'MACLEAN_T1\%\' or table_name like \'MACLEAN_T2\%\' \) \"

Export: Release 10.2.0.5.0 - 64bit Production on Tuesday, 23 April, 2013 8:16:44

Copyright (c) 2003, 2007, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "MACLEAN"."SYS_EXPORT_SCHEMA_01":  maclean/******** dumpfile=temp:mac.dmp schemas=maclean include=TABLE:" in (select table_name from user_tables where table_name like 'MACLEAN_T1%' or table_name like 'MACLEAN_T2%' ) "
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 0 KB
Processing object type SCHEMA_EXPORT/TABLE/TABLE
. . exported "MACLEAN"."MACLEAN_T1ABC"                       0 KB       0 rows
. . exported "MACLEAN"."MACLEAN_T2ABC"                       0 KB       0 rows
Master table "MACLEAN"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for MACLEAN.SYS_EXPORT_SCHEMA_01 is:
  /tmp/mac.dmp
Job "MACLEAN"."SYS_EXPORT_SCHEMA_01" successfully completed at 08:16:49

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-11-16 15:30 , Processed in 0.046815 second(s), 20 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569