exp中query的使用方法
經過試驗,發現
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
?
總結
以上是生活随笔為你收集整理的exp中query的使用方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 怎样查自己的银行卡号
- 下一篇: imp导入时触发器的状态