以下是我的配置:
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命令运行正常,能够响应。