在用oracle11g導出表時,出現錯誤,如下所示:
G:\Myoracle\oracle\product\11.2.0\dbhome_1\BIN>expuserid=scott/m123456@myora1 tables=(產品信息)file=F:\a1.dmp
Export:Release 11.2.0.1.0 - Production on 星期二 7月 15 17:18:56 2014
Copyright(c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
EXP-00056:遇到 ORACLE 錯誤 12154
ORA-12154:TNS: 無法解析指定的連接標識符
EXP-00000:導出終止失敗
解決方法:1.Service 和Listener服務打開。
2.再set oracle_sid(注意:exp userid=scott/m123456@myora1tables=(產品信息) file=F:\a1.dmp 中的myora1是tnsnames.ora的名稱)