本記事では CData サポート担当からこんなことを聞かれたらどこを確認すべきか?という観点で、よく頂くお問合せ内容をご紹介します。
記事はこちら →The CData ODBC Driver for OracleOCI can be used from any platform or development technology that supports ODBC, including Sybase PowerBuilder. This article shows how to connect to Oracle data and execute queries from the Database Painter and controls such as the DataWindow.
Follow the steps below to use the Database Painter tool to create a database profile based on an ODBC DSN (data source name) for OracleOCI. In the Database Painter, you can use wizards and the UI to work with Oracle data.
Oracle への接続には、PATH variable をアップデートして、ネイティブDLL が含まれるフォルダロケーションが含まれていることを確認します。ネイティブDLL は、インストールディレクトリのlib フォルダにあります。完了したら次のプロパティを設定します:
You can use standard PowerBuilder objects to connect to ODBC data sources and execute queries. The following example shows how to retrieve Oracle data into a DataWindow. You can add the following code to the open method:
SQLCA.DBMS = "ODBC"
SQLCA.DBParm = "ConnectString='DSN=CData Oracle Source'"
CONNECT USING SQLCA;
dw_customers.SetTransObject(SQLCA);
dw_customers.Retrieve();