Oracle密碼中含有特殊字元時exp,imp的使用

來源:互聯網
上載者:User

標籤:

    今天通過exp遷移Oracle 資料,由於密碼含有很有很多特殊字元,弄了好久,都沒成功,
後發在網上找到方法。


1 exp用法
Linux 下(密碼用一對雙引號, 整體userid用對單引號括住)
exp ‘skytf/"?`}:Q*H"@skytf‘"<[email protected]#<>?`}:Q*H"@skytf‘ DIRECT=Y buffer=52428800 FEEDBACK=10000 statistics=none
file=skytf.dmp log=exp_skytf.log

windows下(密碼前後分別用三個雙引號括住):
exp skytf/"""#$adf`%6^dfom"""@skytf  buffer=52428800 file=skytf.dmp log=exp_skytf.log

   
2 這裡順便記錄下exp Query 參數的用法。
Linux:  exp scott/tiger tables=emp query=\"where job=\‘SALESMAN\‘ and sal\<1600\"
Windows  exp>exp userid=tkyte/tkyte tables=t query="""where object_id < 5000""" 
在windows中,需要在WHERE語句的兩端使用三個雙引號


3 使用者串連時的寫法
19:13:20 [email protected]> alter user skytf identified by "#$adf`%6^dfom";
使用者已更改。

19:14:29 [email protected]> conn skytf/"#$adf`%6^dfom"@skytf
已串連。

出處:http://francs3.blog.163.com/blog/static/4057672720109871751980/

Oracle密碼中含有特殊字元時exp,imp的使用

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.