轉自:http://blog.itpub.net/84738/viewspace-442854/
先用exp導出空表
exp username/password rows=n file=export.dmp [tables=XXXXXXXXX]
rows=n表示不導出數據,如果沒有tables,默認導出全部用戶表
然后用imp生成表定義文件
imp username/password rows=n file=export.dmp indexfile=schema.sql [full=y]
indexfile表示導入到sql文件中
然后在指定路徑.sql 就有該文件,打開后,需要替換掉 REM為空,執行下出現錯誤,再把出錯的地方刪掉即可