標籤:ext base 檔案夾 ogr 結束 test add sha evel
1.建立odbc
2.在 product\11.2.0\dbhome_1\hs\admin\ 下拷貝initdg4odbc,把名字改為initcrmsql(init+所建odbc的名稱)
HS_FDS_CONNECT_INFO =crmsql #odbc名稱HS_FDS_TRACE_LEVEL= 0HS_FDS_RECOVERY_ACCOUNT=sa #要串連的資料庫名稱HS_FDS_RECOVERY_PWD=123456 #要串連的資料密碼
3.配置 product\11.2.0\dbhome_1\NETWORK\ADMIN 檔案夾下 listener,增加
SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = E:\app\Administrator\product\11.2.0\dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ONLY:E:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll") ) # 增加開始 (SID_DESC = (SID_NAME = crmsql) (ORACLE_HOME = E:\app\Administrator\product\11.2.0\dbhome_1) (PROGRAM =dg4odbc) ) # 增加結束 )
tnsnames檔案中增加
crmsql= (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST= 192.168.2.4)(PORT=1521)) (CONNECT_DATA=(SID=crmsql)) (HS=OK) )
3.重啟oracle監聽。
4.開啟sql plus,輸入連續的oracle的使用者名稱和帳號。
create public database link crmsql connect to sa indentified by "123456" using ‘crmsql‘;
5.驗證
select * from [email protected]
Oracle使用hs odbc串連mssql2008