今日繼exp操作後的imp操作又遇到一錯誤,tns簡單連接居然連接不上。
執行如下語句,
- imp ***/***@192.168.90.10/orcl file=.....
報錯:TNS:destination host unreachable
於是使用一下
- $sqlplus ***/***@192.168.90.10/orcl
- SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 20 12:24:51 2012
- Copyright (c) 1982, 2005, Oracle. All rights reserved.
- ERROR:
- ORA-12543: TNS:destination host unreachable
- Enter user-name:
根據http://tomszrp.itpub.net/post/11835/294062 這上面的說法,
我按照 sqlplus ***/***@//192.168.90.10/branch 方式可以進去。
後來,我發現原來我2邊的庫不一樣,所以用 sqlplus ***/***@192.168.90.10/branch 這樣的方式報錯。
本地是10g庫,遠程(192.168.90.10)是11g的庫。
但是,如果2邊庫版本一致用sqlplus user/passwd@IP/server 方式是可以連進去的。
另外朋友提交,11g新特性:
Create a database link with the new host:port/service syntax