`
jianghs
  • 浏览: 23081 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

MB连接Oracle数据库 郁闷的事情

阅读更多
这三天太郁闷了,一直想使用MB连接oracle10g,但一点进展也没有,看到了IBM上的infocenter,仍然难以成功。

Configure an ODBC data source using the ODBC Data Source Administrator:
Click Start > Settings > Control Panel > Administrative Tools > Data Sources (ODBC).
Click the System DSN tab.
When you define a new data source, select the appropriate driver for your database and complete the dialog that is displayed. Refer to your relevant database product documentation for more information.


The Default Configuration wizard and the database commands to create a broker, or a database, on Windows automatically create the ODBC data source names (DSNs) for you.
Oracle
When you define a data source for Oracle, choose the driver:
MQSeries DataDirect Technologies 5.00 32-BIT Oracle

The ODBC Oracle Driver Setup dialog opens.
Complete these steps to configure the driver:
On the General tab:
Enter the DSN name, description, and server name (where the server name is the "Service Name" that resolves to a "Connect Descriptor", for example through a mapping in the TSNAMES.ORA file).
Select the appropriate Oracle client version from the list.
On the Advanced tab:
Select Enable SQLDescribeParam.
Select Procedure Returns Results. The resultant ODBC definition in the Windows registry has a string value called ProcedureRetResults with the value 1.
Click Start > Run.
Type REGEDIT in the Open field.
Click OK.
Use REGEDIT to navigate to the correct location. Create a new registry subkey for each of your DSNs that reference an Oracle database.
HKEY_LOCAL_MACHINE
    SOFTWARE
        ODBC
            ODBC.INI
Click OK to close ODBC Data Source Administrator.
Right-click DSN. Select New > String Value.
Specify WorkArounds for the string.
Right-click WorkArounds.
Select Modify.
Type the data value 536870912.

You have now configured your ODBC data source names on Windows.
分享到:
评论
1 楼 excuse 2009-09-16  
需要两步设置:
0.前提,你的ORACLE客户端已安装在服务器上
1.配置系统DSN时选择 MQSeries DataDirect Technologies 5.00 32-BIT Oracle 作为oracle的驱动,修改注册表,按infocenter中所讲,添加WorkArounds

2.同时,在MB命令行控制台上,执行下列语句
>mqsisetdbparms BROKER代理名 -n ORACLEDBoracleODBC名 -u 用户名 -p 密码

相关推荐

    dbvis_windows_9_0_6.exe

    DbVisualizer使用JAVA开发的,目前拿他来做Oracle、MySQL、PostgreSQL甚至包括 MS SQL Server 数据库管理都是一件非常轻松的事情。 新版本已经集成了JDBC 的jar包,所以在安装6.0版本时要选中JDBC 的jar包,不然在...

    IT人才选拔考试(含答案).docx

    - 序列是Oracle数据库中用于自动生成数值的一种对象。选项`Cycle`用于指定当序列达到最大值或最小值后,是否继续从头开始生成值。如果设置了`Cycle`选项,则序列会在达到边界值后重新开始计数,这在某些应用场景中...

    基于J2EE框架的个人博客系统项目毕业设计论文(源码和论文)

    Blog记载了日常发生的事情和自己的兴趣爱好,把自己的思想和知识和他人分享、交流,同时又通过“六度空间”结识了更多志趣相投的朋友;而越来越多专业知识的 Blog 的出现,让我们看到了 Blog 更多所蕴涵的巨大的...

    vc++ 应用源码包_1

    演示了不同的数据库的各种操作(连接、删除、添加……等等) ATL开发指南源码 内部包含了atl控件的开发以及如何应用,演示了COM的包容与集合、自动化、事件和连接点、枚举器和集合以及线程管理等等。 ATL实现的...

    vc++ 应用源码包_2

    演示了不同的数据库的各种操作(连接、删除、添加……等等) ATL开发指南源码 内部包含了atl控件的开发以及如何应用,演示了COM的包容与集合、自动化、事件和连接点、枚举器和集合以及线程管理等等。 ATL实现的...

    vc++ 应用源码包_6

    演示了不同的数据库的各种操作(连接、删除、添加……等等) ATL开发指南源码 内部包含了atl控件的开发以及如何应用,演示了COM的包容与集合、自动化、事件和连接点、枚举器和集合以及线程管理等等。 ATL实现的...

    vc++ 应用源码包_5

    演示了不同的数据库的各种操作(连接、删除、添加……等等) ATL开发指南源码 内部包含了atl控件的开发以及如何应用,演示了COM的包容与集合、自动化、事件和连接点、枚举器和集合以及线程管理等等。 ATL实现的...

    vc++ 应用源码包_3

    演示了不同的数据库的各种操作(连接、删除、添加……等等) ATL开发指南源码 内部包含了atl控件的开发以及如何应用,演示了COM的包容与集合、自动化、事件和连接点、枚举器和集合以及线程管理等等。 ATL实现的...

Global site tag (gtag.js) - Google Analytics