oracle12154错误 Linux,关于“EXP-00056: ORACLE error 12154 encountered”的解决方法
有用戶問到這樣一個問題,在進行導出操作時如何轉(zhuǎn)義口令中的@符號?
由于缺省的Oracle會將@符號后面的字串當作服務名來解析,所以不加處理是不行的。
有的企業(yè)因為安全規(guī)則的需要,口令中都會加入@符號。
假定用戶口令如下:
SQL> alter user eygle identified by "eygle@com";
User altered.
如果缺省導出會出現(xiàn)如下錯誤:
[oracle@jumper oracle]$ exp eygle/eygle@com file=eygle.dmp tables=test
Export: Release 9.2.0.4.0 - Production on Fri Jan 4 11:17:48 2008
Copyright (c) 1982, 2002, Oracle Corporation.? All rights reserved.
EXP-00056: ORACLE error 12154 encountered
ORA-12154: TNS:could not resolve service name
EXP-00000: Export terminated unsuccessfully
通過轉(zhuǎn)義,可以成功導出:
[oracle@jumper oracle]$ exp eygle/\"eygle@com\" file=eygle.dmp tables=test
Export: Release 9.2.0.4.0 - Production on Fri Jan 4 11:12:10 2008
Copyright (c) 1982, 2002, Oracle Corporation.? All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning option
JServer Release 9.2.0.4.0 - Production
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table? ? ? ? ? ? ? ? ? ? ? ? ? TEST? ? ? 4136 rows exported
-The End-
總結(jié)
以上是生活随笔為你收集整理的oracle12154错误 Linux,关于“EXP-00056: ORACLE error 12154 encountered”的解决方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php如何判断多文件上传,php多文件上
- 下一篇: oracle 密码文件作用,测试 ora