微前端架构如何改变企业的开发模式与效率提升
305
2024-01-03
小编给大家分享一下oracle如何使用odbc连接dm7,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!
上传软件包到服务器,运行以下命令:
tar zxf unixODBC-2.3.0.tar.gz
cd unixODBC-2.3.0
./configure --with-iconv-char-enc=GB18030 --enable-iconv=yes
make && make install
cd /usr/local/etc
vim odbc.ini
[DM7]
Description = DM ODBC DSN
Driver = DM7 ODBC DRIVER
SERVER = 192.168.1.33
UID = SYSDBA
PWD = SYSDBA
TCP_PORT = 5236
vim odbcinst.ini
[DM7 ODBC DRIVER]
Description = ODBC DRIVER FOR DM7
Driver = /dmdbms/bin/libdodbc.so
threading = 0
isql -v DM7 SYSDBA SYSDBA
file $ORACLE_HOME/bin/dg4odbc
ELF 64-bit LSB executable, x86-64
cd /oracle/app/oracle/product/11.2.0/hs/admin
vim initDM7.ora
HS_FDS_CONNECT_INFO = DM7
HS_FDS_TRACE_LEVEL = debug
set ODBCINI=/usr/local/etc/odbc.ini
HS_FDS_SHAREABLE_NAME = /usr/local/lib/libodbc.so
cd $ORACLE_HOME/network/admin
vim listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = DM7)
(ORACLE_HOME = /oracle/app/oracle/product/11.2.0)
(PROGRAM = dg4odbc)
)
)
vim tnsnames.ora
DM7 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = DM7)
)
(HS=OK)
)
lsnrctl status
sqlplus "/as sysdba"
SQL> create public database link dmlink connect to "SYSDBA" identified by SYSDBA using DM7;
SQL> select name,status$ from v$instance@dmlink;
看完了这篇文章,相信你对“oracle如何使用odbc连接dm7”有了一定的了解,如果想了解更多相关知识,欢迎关注行业资讯频道,感谢各位的阅读!
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~