首页 新闻 搜索 专区 学院

Oracle10g利用透明网关连接Sql Server2008运行语句出现Ora-12154错误

0
悬赏园豆:40 [待解决问题]

以下是我的配置:

initAAA.ora文件:

HS_FDS_CONNECT_INFO="SERVER=SERVER-PC\MSSQLSERVER2008;DATABASE=OA"
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER

listener.ora文件:

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = D:\oracle\product\10.2.0\tg_1)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (GLOBAL_DBNAME=OA) 
      (SID_NAME=OA)
      (ORACLE_HOME =D:\oracle\product\10.2.0\tg_1)
      (PROGRAM=tg4msql)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = MY-PC)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
  )

ADR_BASE_LISTENER = D:\oracle\product\10.2.0\tg_1

tnsnames.ora文件:

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

UltratekOA=
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = MY-PC)(PORT = 1521))
    )
    (CONNECT_DATA =
     (SERVICE_NAME=OA)
    )
  (HS=OK)
  )

DBLINK创建语句:

create database link mylink connect to sa identified by sasasasa using 'OA';

SQL测试语句:

SELECT * FROM Dept@OA;

出现以下错误:

利用tnsping OA命令运行正常,能够响应。

我本猿类的主页 我本猿类 | 初学一级 | 园豆:2
提问于:2013-10-11 16:17
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册