Set the following properties when working with PostgreSQL data in SQL*Plus and SQL Developer. The driver provides several connection properties that streamline accessing PostgreSQL data just as you would an Oracle database. Set Connection Properties for Compatibility with Oracle You can modify the DSN by editing the system data sources file ( /etc/odbc.ini) and defining the required connection properties.ĭriver = CData ODBC Driver for PostgreSQLįor specific information on using these configuration files, please refer to the help documentation (installed and found online). If you are installing the CData ODBC Driver for PostgreSQL in a Linux environment, the driver installation predefines a system DSN. You can access and create 32-bit DSNs on a 64-bit system by opening the 32-bit ODBC Data Source Administrator from C:\Windows\SysWOW64\odbcad32.exe. Note: If you need to modify the DSN or create other PostgreSQL DSNs, you must use a system DSN and the bitness of the DSN must match your Oracle system. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs. This is the last step of the driver installation. If you have not already, first specify connection properties in an ODBC DSN (data source name). If the Database property is not specified, the data provider connects to the user's default database. To connect to PostgreSQL, set the Server, Port (the default port is 5432), and Database connection properties and set the User and Password you wish to use to authenticate to the server. Information for connecting to PostgreSQL follows, along with different instructions for configuring a DSN in Windows and Linux environments. You can also create the database link and execute queries from SQL Developer.Ĭonnect to PostgreSQL as an ODBC Data Source This article shows how to use the CData ODBC Driver for PostgreSQL to create a database link from PostgreSQL to Oracle and to query PostgreSQL data through the SQL*Plus tool. The Oracle Database Gateway for ODBC and Heterogeneous Services technology enable you to connect to ODBC data sources as remote Oracle databases.
0 Comments
Leave a Reply. |