exp中query的使用方法

来源:互联网 发布:小米4 9006端口救砖 编辑:程序博客网 时间:2024/05/17 08:33

经过试验,发现

Solaris下可以这样用:

exp username/passwd file=a.dmp log=a.log tables=(t1,t2) query=/"where domain_id=3/"

注意引号要用转义字符。

别的Unix或Linux系统也许可以用这样的方法。

 

Windows下可以用3对引号也不管用,

exp username/passwd file=a.dmp log=a.log tables=(t1,t2) query="""where domain_id=3"""

 

另:Parfile法,即:

建立一个文件test.par,内容是一些导出参数,例如:

file=a.dmp
log=a.log
tables=(bas_di_point,bas_ai_point)
statistics=none
buffer=1000000
query="where domain_id=3"
然后这样导出:

exp username/passwd parfile=test.par

这种方法在上述两种OS上都可以,据说是万能方法。

 

谨记!

 

 

日期相关:

 

exp iscs/naritech@fsbcc02-1/i1000 file=alarm.dmp tables=alarm_backup query=/"where/ occur_time/<=to_date/(/'2011-04-15/ 23:49:00/',/'yyyy-mm-dd/ hh24:mi:ss/'/)/" buffer=1000000 statistics=none

 

imp iscs/naritech@fsbcc01-1/i1000 file=alarm.dmp tables=alarm_backup buffer=1000000 ignore=y

 

原创粉丝点击