当前位置:网站首页>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]

边栏推荐
- Jvxetable implant j-popup with slot
- PDK工艺库安装-CSMC
- Classes and objects (I) detailed explanation of this pointer
- Mysql database master-slave cluster construction
- Pay attention to the details of pytoch code, and it is easy to make mistakes
- 网站进行服务器迁移前应做好哪些准备?
- How to download GB files from Google cloud hard disk
- JS array list actual use summary
- 清除浮动的方式
- Web Security (V) what is a session? Why do I need a session?
猜你喜欢

What preparations should be made for website server migration?

Is it difficult for an information system project manager?

【经验】win11上安装visio

P2802 go home

Station B Liu Erden softmx classifier and MNIST implementation -structure 9
![[JVM] [Chapter 17] [garbage collector]](/img/f4/e6ff0e3edccf23399ec12b7913749a.jpg)
[JVM] [Chapter 17] [garbage collector]

Report on market depth analysis and future trend prediction of China's arsenic trioxide industry from 2022 to 2028
![[force buckle]43 String multiplication](/img/fd/de63e6185af4b6293e748aaf7cee29.jpg)
[force buckle]43 String multiplication

Migrate Infones to stm32
[email protected]树莓派"/>[email protected]树莓派
随机推荐
JS array list actual use summary
Station B Liu Erden softmx classifier and MNIST implementation -structure 9
After the project is released, index Html is cached
59. Spiral matrix
网络协议模型
[JVM] [Chapter 17] [garbage collector]
29io stream, byte output stream continue write line feed
Analysis of grammar elements in turtle Library
Leetcode 701 insertion operation in binary search tree -- recursive method and iterative method
[SQL Server Express Way] - authentification et création et gestion de comptes utilisateurs
[experience] install Visio on win11
数字经济破浪而来 ,LTD是权益独立的Web3.0网站?
【经验】win11上安装visio
授予渔,从0开始搭建一个自己想要的网页
Redis消息队列
无代码六月大事件|2022无代码探索者大会即将召开;AI增强型无代码工具推出...
Vulhub vulnerability recurrence 72_ uWSGI
How to download GB files from Google cloud hard disk
[SQL Server fast track] - authentication and establishment and management of user accounts
wib3.0 跨越,在跨越(ง •̀_•́)ง