当前位置:网站首页>Database: ODBC remote access SQL Server2008 in oracel
Database: ODBC remote access SQL Server2008 in oracel
2022-07-06 05:47:00 【Python's path to immortality】
The deployment of the hospital medical record system is ORACLE 11G,his The system is deployed SQL SERVER2008, Now when the medical record is reported, the doctor's ID card field is added in the provincial platform interface . But the hospital staff information is maintained in his Medium . When querying medical records, you call ORACLE View in , Also, the link mode of the previous two databases has not been found , I tried it ODBC visit . In the process of finding information , Found that online blogs often put transparent gateways (gateway) Configuration and ODBC Confusion and unclear description of relevant parameters , Record here :
Environmental statement :
Medical record server OS:windows server 2016
Medical record database : ORACLE 11G
HIS The server OS:windows server 2016
HIS database :SQL SERVER2008
First step : To configure ODBC
1)win+r Search for ODBC the reason being that 64 Bit system , So choose ODBC Data management program (64 position )
2) System DSN-----》 add to
I've configured it here before , Just choose this click configuration to show you a process , You choose to add
The second step : Check and configure dg4odbc
Get into dos Window run dg4odbc See if the following occurs :
If yes, it means dg4odbc Driver installed successfully , If the prompt system does not have this command , Then you can go to E:\app\Administrator\product\11.2.0\dbhome_1\BIN oracle Check whether the tool is available under the installation directory , If yes, it is not configured windows System environment variable , Then just add the path to PAT Environment variable
The third step : To configure initodbc.ora
To this path :E:\app\Administrator\product\11.2.0\dbhome_1\hs\admin find initdg4odbc.ora file , Make a backup , Then change a name ( Can be specified by yourself , But the name will be used later ), I am more famous myself initodbc_sql, Then go in and configure :
Step four : To configure linstener.ora
Configure the listening information under this path :E:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN
You can put the source linstener.ora File backup rename , Easy to restore in case of error . The configuration is as follows :
Step five : Restart monitoring service
Enter into dos And then execute :
lsnrctl stop
lsnrctl start
Pay attention to whether the command is executed successfully , If the step is successful , Please check the above two configuration files
Step six : To configure DBLINK
To oracle Of SQL The window executes the following statement :
establish DBLINK:
create public database link The link name specified by yourself connect to User name of the connected database identified by Password of the connected database using '(description=
(address= (protocol=tcp)(host=127.0.0.1)(port=1521))
(connect_data=(SID=odbc_sql)) ---- Your configuration file is initodbc_sql.ora, So here is odbc_sql
(HS=OK)
)';
remarks : Some of the blog host Fill in oracle Server for ip Address , It's OK , I filled in here oracle The loopback address of the server is the same .port If the port is occupied, fill in 1522, Of course, I'm not occupied here , Just use the default 1521
Inquire about DBLINK Whether the creation was successfully executed :
select * from dba_objects where object_type='DATABASE LINK';
If you find the information, it means that the creation is successful .
If you don't need to DBLINK You can also execute the following statement to delete :
drop public database link The link name specified by yourself
Step seven : Verify access
select Field from SQL SERVER Database form name / View @ The link name specified by yourself
eg:
SELECT USER_ID,UESR_NAME,IDCARD from [email protected]
边栏推荐
- 【华为机试真题详解】检查是否存在满足条件的数字组合
- Station B Liu Erden - linear regression and gradient descent
- Migrate Infones to stm32
- 05. Security of blog project
- Demander le Code de texte standard correspondant à un centre de travail dans l'ordre de production
- B站刘二大人-反向传播
- First knowledge database
- B站刘二大人-线性回归及梯度下降
- ARTS Week 25
- Implementation of linked list in address book management system
猜你喜欢
A master in the field of software architecture -- Reading Notes of the beauty of Architecture
P2802 go home
Station B Liu Erden - linear regression and gradient descent
Station B, Master Liu Er - back propagation
华为BFD的配置规范
P2802 回家
Li Chuang EDA learning notes 12: common PCB board layout constraint principles
什么是独立IP,独立IP主机怎么样?
Construction of yolox based on paste framework
Deep learning -yolov5 introduction to actual combat click data set training
随机推荐
What impact will frequent job hopping have on your career?
What preparations should be made for website server migration?
Jushan database appears again in the gold fair to jointly build a new era of digital economy
Application Security Series 37: log injection
Detailed summary of SQL injection
什么是独立IP,独立IP主机怎么样?
Game push: image / table /cv/nlp, multi-threaded start!
清除浮动的方式
B站刘二大人-反向传播
[Jiudu OJ 08] simple search x
LeetCode_字符串反转_简单_557. 反转字符串中的单词 III
Jvxetable implant j-popup with slot
PDK工藝庫安裝-CSMC
Query the standard text code corresponding to a work center (s) in the production order
[happy Spring Festival] if you feel happy, dance
Pay attention to the details of pytoch code, and it is easy to make mistakes
无代码六月大事件|2022无代码探索者大会即将召开;AI增强型无代码工具推出...
【经验】win11上安装visio
嵌入式面试题(一:进程与线程)
Yunxiaoduo software internal test distribution test platform description document