Edit C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\odbc\7.0.1\help\userguide\postgresql.13.03.html
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <!-- MOTW-DISABLED saved from url=(0014)about:internet --> <title>Configuring and Connecting to Data Sources</title> <link rel="StyleSheet" href="css/postgresql.css" type="text/css" media="all" /> <link rel="StyleSheet" href="css/webworks.css" type="text/css" media="all" /> <script type="text/javascript" language="JavaScript1.2" src="wwhdata/common/context.js"></script> <script type="text/javascript" language="JavaScript1.2" src="wwhdata/common/towwhdir.js"></script> <script type="text/javascript" language="JavaScript1.2" src="wwhdata/common/wwhpagef.js"></script> <script type="text/javascript" language="JavaScript1.2"> <!-- var WebWorksRootPath = ""; // --> </script> <script type="text/javascript" language="JavaScript1.2"> <!-- // Set reference to top level help frame // var WWHFrame = WWHGetWWHFrame("", true); // --> </script> <script type="text/javascript" language="JavaScript1.2" src="scripts/expand.js"></script> </head> <body class="" style="background-color: #FFFFEE;" onload="WWHUpdate();" onunload="WWHUnload();" onkeydown="WWHHandleKeyDown((document.all||document.getElementById||document.layers)?event:null);" onkeypress="WWHHandleKeyPress((document.all||document.getElementById||document.layers)?event:null);" onkeyup="WWHHandleKeyUp((document.all||document.getElementById||document.layers)?event:null);"> <br /> <div class="WebWorks_Breadcrumbs" style="text-align: left;"> <a class="WebWorks_Breadcrumb_Link" href="postgresql.13.01.html#231283">9 The PostgreSQL Wire Protocol Driver </a> : Configuring and Connecting to Data Sources</div> <hr align="left" /> <blockquote> <div class="head_1"><a name="231283">Configuring and Connecting to Data Sources</a></div> <div class="Body"><a name="349641">After you install the driver, you configure data sources to connect to the database. See </a><span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'quikstart.04.1.html#106107', '');">Chapter 1 â??Quick Start Connectâ??</a></span><span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'quikstart.04.1.html#106107', '');"> </a></span>for an explanation of different types of data sources. The data source contains connection options that allow you to tune the driver for specific performance. If you want to use a data source but need to change some of its values, you can either modify the data source or override its values at connection time through a connection string.</div> <div class="Body"><a name="231293">If you choose to use a connection string, you must use specific connection string attributes. </a>See <span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.03.html#231923', '');">â??Using a Connection Stringâ??</a></span> and <span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#243214', '');">Table 9-1</a></span> for an alphabetical list of driver connection string attributes and their initial default values.</div> <div class="head_2"><a name="231303">Data Source Configuration in the UNIX/Linux odbc.ini File</a></div> <div class="Body"><a name="349666">On UNIX and Linux, you must set up the proper ODBC environment before configuring data </a>sources. See <span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'quikstart.04.3.html#106174', '');">â??Environment Configurationâ??</a></span><span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'quikstart.04.3.html#106174', '');"> </a></span>for basic setup information and <span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'unixenv.07.2.html#106206', '');">â??Environment Variablesâ??</a></span><span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'unixenv.07.2.html#106206', '');"> </a></span>for more detail about this procedure.</div> <div class="Body"><a name="349675">Data sources for UNIX and Linux are stored in the system information file (by default, </a>odbc.ini). If you have a Motif GUI environment on Linux, you can configure and modify data sources through the DataDirect ODBC Data Source Administrator for Linux (the Linux ODBC Administrator) using a driver Setup dialog box. (See <span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'unixenv.07.4.html#106311', '');">â??Configuration Through the Administratorâ??</a></span><span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'unixenv.07.4.html#106311', '');"> </a></span>for a detailed explanation of the Administrator.)</div> <div class="Body"><a name="349680">If you do not have a GUI environment, you can configure and modify data sources directly </a>by editing the odbc.ini file and storing default connection values there. See <span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'unixenv.07.4.html#106368', '');">â??Configuration Through the System Information (odbc.ini) Fileâ??</a></span> for detailed information about the specific steps necessary to configure a data source.</div> <div class="Body"><span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#243214', '');" name="295471">Table 9-1</a></span> lists driver connection string attributes that must be used in the odbc.ini file to set the value of the attributes. Note that only the long name of the attribute can be used in the file. The default listed in the table is the initial default value when the driver is installed.</div> <div class="head_2"><a name="231331">Data Source Configuration through a GUI</a></div> <div class="Body"><a name="349721">On Windows, data sources are stored in the Windows Registry. You can configure and </a>modify data sources through the ODBC Administrator using a driver Setup dialog box, as described in this section.</div> <div class="Body"><a name="349730">On UNIX and Linux, data sources are stored in the odbc.ini file. On Linux, you can configure </a>and modify data sources through the Linux ODBC Administrator using a driver Setup dialog box, as described in this section.</div> <div class="Body"><a name="349731">NOTE: This book shows dialog box images that are specific to Windows. If you are using </a>the drivers in the Linux environment, the dialog box that you see may differ slightly from the Windows version. Windows-only and UNIX-only connection options are specifically noted by icons in the Setup dialog box descriptions.</div> <div class="Body"><a name="349732">When the driver is first installed, the values of its connection options are set by default. </a>These values appear on the driver Setup dialog box tabs when you create a new data source. You can change these default values by modifying the data source. In the following procedure, the description of each tab is followed by a table that lists the connection options for that tab and their initial default values. This table links you to a complete description of the options and their connection string attribute equivalents. The connection string attributes are used to override the default values of the data source if you want to change these values at connection time.</div> <div class="hanging_label_head"><span class="Action_bold"><a name="231348">To configure a PostgreSQL data source:</a></span></div> <div class="list_procedure_first_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_first_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">1 </span> </div> </td> <td width="100%"> <div class="list_procedure_first_inner"><a name="349895">Start the ODBC Administrator: </a></div> </td> </tr> </table> </div> <div class="list_bulleted_proc_outer" style="margin-left: 18pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_bulleted_proc_inner" style="width: 18pt; white-space: nowrap;">â? </div> </td> <td width="100%"> <div class="list_bulleted_proc_inner"><a name="349904">On Windows, start the ODBC Administrator by selecting its icon from the DataDirect </a>Connect program group.</div> </td> </tr> </table> </div> <div class="list_bulleted_proc_outer" style="margin-left: 18pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_bulleted_proc_inner" style="width: 18pt; white-space: nowrap;">â? </div> </td> <td width="100%"> <div class="list_bulleted_proc_inner"><a name="349913">On Linux, change to the </a><span class="EquationVariables">install_dir</span>/tools directory and, at a command prompt, enter:</div> </td> </tr> </table> </div> <div class="syntax_embed_sub_first"><a name="349914">odbcadmin</a></div> <div class="Body_Indent_Sub"><a name="349915">where </a><span class="EquationVariables">install_dir</span> is the path to the product installation directory.</div> <div class="list_procedure_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">2 </span> </div> </td> <td width="100%"> <div class="list_procedure_inner"><a name="349916">Select a tab:</a></div> </td> </tr> </table> </div> <div class="list_bulleted_proc_outer" style="margin-left: 18pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_bulleted_proc_inner" style="width: 18pt; white-space: nowrap;">â? </div> </td> <td width="100%"> <div class="list_bulleted_proc_inner"><span class="Action_bold"><a name="349917">User DSN</a></span>: If you are configuring an existing user data source, select the data source name and click <span class="Action_bold">Configure</span> to display the driver Setup dialog box.</div> </td> </tr> </table> </div> <div class="Body_Indent_Sub"><a name="349918">If you are configuring a new user data source, click </a><span class="Action_bold">Add</span> to display a list of installed drivers. Select the driver and click <span class="Action_bold">Finish</span> to display the driver Setup dialog box.</div> <div class="list_bulleted_proc_outer" style="margin-left: 18pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_bulleted_proc_inner" style="width: 18pt; white-space: nowrap;">â? </div> </td> <td width="100%"> <div class="list_bulleted_proc_inner"><span class="Action_bold"><a name="349927">System DSN</a></span>: If you are configuring an existing system data source, select the data source name and click <span class="Action_bold">Configure</span> to display the driver Setup dialog box.</div> </td> </tr> </table> </div> <div class="Body_Indent_Sub"><a name="349928">If you are configuring a new system data source, click </a><span class="Action_bold">Add</span> to display a list of installed drivers. Select the driver and click <span class="Action_bold">Finish</span> to display the driver Setup dialog box.</div> <div class="list_bulleted_proc_outer" style="margin-left: 18pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_bulleted_proc_inner" style="width: 18pt; white-space: nowrap;">â? </div> </td> <td width="100%"> <div class="list_bulleted_proc_inner"><span class="Action_bold"><a name="349929">File DSN</a></span>: If you are configuring an existing file data source, select the data source file and click <span class="Action_bold">Configure</span> to display the driver Setup dialog box.</div> </td> </tr> </table> </div> <div class="Body_Indent_Sub"><a name="349930">If you are configuring a new file data source, click </a><span class="Action_bold">Add</span> to display a list of installed drivers; then, select a driver. Click <span class="Action_bold">Advanced </span>if you want to specify attributes; otherwise, click <span class="Action_bold">Next</span> to proceed. Specify a name for the data source and click <span class="Action_bold">Next</span>. Verify the data source information; then, click <span class="Action_bold">Finish</span> to display the driver Setup dialog box.</div> <div class="Body_Indent"><a name="231375">The General tab of the Setup dialog box appears.</a></div> <div class="picture"><a name="333536"><img class="procedure" src="images/postgregen.gif" width="419" height="448" style="display: block; float: none; left: 0.0; top: 0.0;" alt="The General tab of the ODBC PostgreSQL Wire Protocol Driver Setup dialog box" /></a></div> <div class="Body_Indent"><a name="231384">NOTE: The General tab displays only fields that are required for creating a data source. </a>The fields on all other tabs are optional, unless noted otherwise.</div> <div class="list_procedure_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">3 </span> </div> </td> <td width="100%"> <div class="list_procedure_inner"><a name="231386">On this tab, provide values for any of the options in the following table; then, click </a><span class="Action_bold">Apply. </span>The table provides links to descriptions of the connection options.</div> </td> </tr> </table> </div> <table class="Format_D" cellspacing="0" summary=""> <caption></caption> <tr style="vertical-align: top;"> <td style="padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_column_heads"><a name="231389">Connection Options: General</a></div> </td> <td style="padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_column_heads"><a name="231391">Default</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#234098', '');" name="231396">Data Source Name</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231401">None</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#189881', '');" name="231406">Description</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231411">None</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#197143', '');" name="231416">Host Name</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231421">None</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#272643', '');" name="231426">Port Number</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231431">5432</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#108924', '');" name="231436">Database Name</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231441">None</a></div> </td> </tr> </table> <div class="list_procedure_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">4 </span> </div> </td> <td width="100%"> <div class="list_procedure_inner"><a name="231443">Optionally, click the </a><span class="Action_bold">Advanced</span> tab to specify additional data source settings.</div> </td> </tr> </table> </div> <div class="picture"><a name="333555"><img class="procedure" src="images/postgreadv.gif" width="419" height="513" style="display: block; float: none; left: 0.0; top: 0.0;" alt="The Advanced tab of the ODBC PostgreSQL Wire Protocol Driver Setup dialog box" /></a></div> <div class="Body_Indent"><a name="231456">On this tab, provide values for any of the options in the following table; then, click </a><span class="Action_bold">Apply. </span>The table provides links to descriptions of the connection options.</div> <table class="Format_D" cellspacing="0" summary=""> <caption></caption> <tr style="vertical-align: top;"> <td style="padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_column_heads"><a name="283801">Connection Options: Advanced</a></div> </td> <td style="padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_column_heads"><a name="283803">Default</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#196586', '');" name="283808">Application Using Threads</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="283810">Enabled</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#110499', '');" name="283825">Enable SQLDescribeParam</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="283827">Enabled</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#110534', '');" name="283831">Fetch TSWTZ as Timestamp</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="283834">Disabled</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#169116', '');" name="283839">Fetch TWFS as Time</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="283841">Disabled</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#124905', '');" name="283846">Fetch Ref Cursors</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="283848">Enabled</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#144369', '');" name="283852">Extended Column Metadata</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="283855">Disabled</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#185609', '');" name="283860">Transaction Error Behavior</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="283862">1 - Rollback</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#183534', '');" name="283867">XML Describe Type</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="283869">-10 - SQL_WLONGVARCHAR</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#199864', '');" name="283873">Report Codepage Conversion Errors</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="283876">0 - Ignore Errors</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#223143', '');" name="283888">Login Timeout</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="283890">15</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#199837', '');" name="283895">Query Timeout</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="283897">0</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#192372', '');" name="283902">Initialization String</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="283904">None</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#318945', '');" name="318908">Max Varchar Size</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="318910">None</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#319054', '');" name="318915">Max Long Varchar Size</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="318917">None</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#192326', '');" name="283909">IANAAppCodePage</a><br />UNIX ONLY</div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="283911">4 (ISO 8559-1 Latin-1)</a></div> </td> </tr> </table> <div class="Body_Indent"><span class="Action_bold"><a name="349961">Translate: </a></span>Click <span class="Action_bold">Translate</span> to display the Select Translator dialog box, which lists the translators specified in the ODBC Translators section of the Registry. Progress DataDirect provides a translator named OEM to ANSI that translates your data from the IBM PC character set to the ANSI character set.</div> <div class="Body_Indent"><a name="349962">Select a translator; then, click </a><span class="Action_bold">OK</span> to close this dialog box.</div> <div class="list_procedure_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">5 </span> </div> </td> <td width="100%"> <div class="list_procedure_inner"><a name="231625">Optionally, click the </a><span class="Action_bold">Security</span> tab to specify security data source settings.</div> </td> </tr> </table> </div> <div class="picture"><a name="333581"><img class="procedure" src="images/postgresec.gif" width="419" height="448" style="display: block; float: none; left: 0.0; top: 0.0;" alt="The Security tab of the ODBC PostgreSQL Wire Protocol Driver Setup dialog box" /></a></div> <div class="Body_Indent"><a href="javascript:WWHClickedPopup('ODBC', 'advanced.06.3.html#160782', '');" name="257638">See </a><span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'advanced.06.4.html#118526', '');">â??Using Securityâ??</a></span> for a general description of encryption and its configuration requirements.</div> <div class="Body_Indent"><a name="231639">On this tab, provide values for any of the options in the following table; then, click </a><span class="Action_bold">Apply. </span>The table provides links to descriptions of the connection options.</div> <table class="Format_D" cellspacing="0" summary=""> <caption></caption> <tr style="vertical-align: top;"> <td style="padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_column_heads"><a name="231642">Connection Options: Security</a></div> </td> <td style="padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_column_heads"><a name="231644">Default</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#183510', '');" name="259469">User Name</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="259471">None</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#198033', '');" name="231649">Encryption Method</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231654">0 - No Encryption</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#186357', '');" name="231659">Validate Server Certificate</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231664">Enabled</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#187472', '');" name="231669">TrustStore</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231674">None</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#186091', '');" name="231679">TrustStore Password</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231684">None</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#191096', '');" name="231689">Key Store</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231694">None</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#191121', '');" name="231699">Key Store Password</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231704">None</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#191071', '');" name="231709">Key Password</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231714">None</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#191043', '');" name="231719">Host Name In Certificate</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231724">None</a></div> </td> </tr> </table> <div class="list_procedure_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">6 </span> </div> </td> <td width="100%"> <div class="list_procedure_inner"><a name="231729">Optionally, click the </a><span class="Action_bold">Failover</span> tab to specify failover data source settings.</div> </td> </tr> </table> </div> <div class="picture"><a name="333594"><img class="procedure" src="images/postgrefail.gif" width="419" height="513" style="display: block; float: none; left: 0.0; top: 0.0;" alt="The Failover tab of the ODBC PostgreSQL Wire Protocol Driver Setup dialog box" /></a></div> <div class="Body_Indent"><a href="javascript:WWHClickedPopup('ODBC', 'advanced.06.2.html#106175', '');" name="257655">See </a><span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'advanced.06.2.html#106175', '');">â??Using Failoverâ??</a></span> for a general description of failover and its related connection options.</div> <div class="Body_Indent"><a name="231743">On this tab, provide values for any of the options in the following table; then, click </a><span class="Action_bold">Apply. </span>The table provides links to descriptions of the connection options.</div> <table class="Format_D" cellspacing="0" summary=""> <caption></caption> <tr style="vertical-align: top;"> <td style="padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_column_heads"><a name="231746">Connection Options: Failover</a></div> </td> <td style="padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_column_heads"><a name="231748">Default</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#223120', '');" name="231753">Load Balancing</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231758">Disabled</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#195199', '');" name="231773">Connection Retry Count</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231778">0</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#195227', '');" name="231783">Connection Retry Delay</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231788">3</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#243535', '');" name="248433">Alternate Servers</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="248435">None</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#198912', '');" name="231793">Failover Mode</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231798">0 - Connection</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#198881', '');" name="231803">Failover Granularity</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231808">0 - Non-Atomic</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#198941', '');" name="231813">Failover Preconnect</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231818">Disabled</a></div> </td> </tr> </table> <div class="list_procedure_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">7 </span> </div> </td> <td width="100%"> <div class="list_procedure_inner"><a name="231823">Optionally, click. the </a><span class="Action_bold">Pooling </span>tab to specify pooling data source settings.</div> </td> </tr> </table> </div> <div class="picture"><a name="333607"><img class="procedure" src="images/postgrepool.gif" width="419" height="448" style="display: block; float: none; left: 0.0; top: 0.0;" alt="The Pooling tab of the ODBC PostgreSQL Wire Protocol Driver Setup dialog box" /></a></div> <div class="Body_Indent"><a href="javascript:WWHClickedPopup('ODBC', 'advanced.06.5.html#113515', '');" name="257672">See </a><span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'advanced.06.5.html#113515', '');">â??Using DataDirect Connection Poolingâ??</a></span> for a general description of connection pooling.</div> <div class="Body_Indent"><a name="231837">On this tab, provide values for any of the options in the following table; then, click </a><span class="Action_bold">Apply. </span>The table provides links to descriptions of the connection options.</div> <table class="Format_D" cellspacing="0" summary=""> <caption></caption> <tr style="vertical-align: top;"> <td style="padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_column_heads"><a name="231840">Connection Options: Pooling</a></div> </td> <td style="padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_column_heads"><a name="231842">Default</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#183937', '');" name="231847">Connection Pooling</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231852">Disabled</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#193631', '');" name="231857">Connection Reset</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231862">Disabled</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#121087', '');" name="231866">Max Pool Size</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231872">100</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#121136', '');" name="231877">Min Pool Size</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231882">0</a></div> </td> </tr> <tr style="vertical-align: top;"> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#186714', '');" name="231887">Load Balance Timeout</a></div> </td> <td style="border-bottom-color: Black; border-right-color: Black; border-top-color: Black; padding-bottom: auto; padding-left: auto; padding-right: auto; padding-top: auto; vertical-align: top;"> <div class="table_text"><a name="231892">0</a></div> </td> </tr> </table> <div class="list_procedure_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">8 </span> </div> </td> <td width="100%"> <div class="list_procedure_inner"><a name="231914">At any point during the configuration process, you can click </a><span class="Action_bold">Test Connect</span> to attempt to connect to the data source using the connection options specified in the driver Setup dialog box. A logon dialog box appears (see <span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.03.html#231953', '');">â??Using a Logon Dialog Boxâ??</a></span> for details). Note that the information you enter in the logon dialog box during a test connect is not saved.</div> </td> </tr> </table> </div> <div class="list_bulleted_proc_outer" style="margin-left: 18pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_bulleted_proc_inner" style="width: 18pt; white-space: nowrap;">â? </div> </td> <td width="100%"> <div class="list_bulleted_proc_inner"><a name="231918">If the driver can connect, it releases the connection and displays a </a><span class="Syntax">Connection </span><span class="Syntax">Established</span> message. Click <span class="Action_bold">OK</span>.</div> </td> </tr> </table> </div> <div class="list_bulleted_proc_outer" style="margin-left: 18pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_bulleted_proc_inner" style="width: 18pt; white-space: nowrap;">â? </div> </td> <td width="100%"> <div class="list_bulleted_proc_inner"><a name="231919">If the driver cannot connect because of an incorrect environment or connection </a>value, it displays an appropriate error message. Click <span class="Action_bold">OK</span>.</div> </td> </tr> </table> </div> <div class="Body_Indent"><a name="231920">NOTE: If you are configuring alternate servers for use with the connection failover </a>feature, be aware that the Test Connect button tests only the primary server, not the alternate servers.</div> <div class="list_procedure_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">9 </span> </div> </td> <td width="100%"> <div class="list_procedure_inner"><a name="231921">Click </a><span class="Action_bold">OK</span> or <span class="Action_bold">Cancel</span>. If you click <span class="Action_bold">OK</span>, the values you have specified become the defaults when you connect to the data source. You can change these defaults by using this procedure to reconfigure your data source. You can override these defaults by connecting to the data source using a connection string with alternate values.</div> </td> </tr> </table> </div> <div class="head_2"><a name="231923">Using a Connection String</a></div> <div class="Body"><a name="349934">If you want to use a connection string for connecting to a database, or if your application </a>requires it, you must specify either a DSN (data source name), a File DSN, or a DSN-less connection in the string. The difference is whether you use the DSN=, FILEDSN=, or the DRIVER= keyword in the connection string, as described in the ODBC specification. A DSN or FILEDSN connection string tells the driver where to find the default connection information. Optionally, you may specify <span class="Emphasis">attribute=value</span> pairs in the connection string to override the default values stored in the data source.</div> <div class="Body"><a name="349935">The DSN connection string has the form:</a></div> <div class="syntax_first"><a name="349936">DSN=</a><span class="EquationVariables">data_source_name</span>[;<span class="EquationVariables">attribute=value</span>[;<span class="EquationVariables">attribute=value</span>]...]</div> <div class="Body"><a name="349937">The FILEDSN connection string has the form:</a></div> <div class="syntax_first"><a name="349938">FILEDSN=</a><span class="EquationVariables">filename.</span><span class="Syntax">dsn</span>[;<span class="EquationVariables">attribute=value</span>[;<span class="EquationVariables">attribute=value</span>]...]</div> <div class="Body"><a name="349939">The DSN-less connection string specifies a driver instead of a data source. All connection </a>information must be entered in the connection string because the information is not stored in a data source.</div> <div class="Body"><a name="349940">The DSN-less connection string has the form:</a></div> <div class="syntax_first"><a name="349941">DRIVER=[{]</a><span class="EquationVariables">driver_name</span>[}][;<span class="EquationVariables">attribute=value</span>[;<span class="EquationVariables">attribute=value</span>]...]</div> <div class="Body"><span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'postgresql.13.04.html#243214', '');" name="349968">Table 9-1</a></span> lists the long and short names for each attribute, as well as the initial default value when the driver is first installed. You can specify either long or short names in the connection string.</div> <div class="Body"><a name="311678">An example of a DSN connection string with overriding attribute values for PostgreSQL </a>Wire Protocol is:</div> <div class="syntax_first"><a name="231945">DSN=Accounting;UID=JOHN;PWD=XYZZY</a></div> <div class="Body"><a name="231946">A FILEDSN connection string is similar except for the initial keyword:</a></div> <div class="syntax_first"><a name="231947">FILEDSN=PostgreSQLWP.dsn;UID=JOHN;PWD=XYZZY</a></div> <div class="Body"><a name="330882">A DSN-less connection string must provide all necessary connection information:</a></div> <div class="syntax_first"><a name="330883">DRIVER=DataDirect 7.0 PostgreSQL Wire Protocol;</a></div> <div class="syntax"><a name="330884">HOST=PostgreSQLServer;PORT=5432;UID=JOHN;PWD=XYZZY;DB=Pgredb1</a></div> <div class="head_2"><a name="231953">Using a Logon Dialog Box</a></div> <div class="Body"><a name="231956">Some ODBC applications display a logon dialog box when you are connecting to a data </a>source. In these cases, the data source name has already been specified.</div> <div class="picture"><a name="333619"><img class="Default" src="images/postgrelogon.gif" width="336" height="230" style="display: block; float: none; left: 0.0; top: 0.0;" alt="The Logon to PostgreSQL Wire Protocol dialog box" /></a></div> <div class="Body"><a name="231965">In this dialog box, provide the following information:</a></div> <div class="list_procedure_first_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_first_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">1 </span> </div> </td> <td width="100%"> <div class="list_procedure_first_inner"><a name="231966">In the Host Name field, type either the name or the IP address of the server to which </a>you want to connect.</div> </td> </tr> </table> </div> <div class="Body_Indent"><a name="349972">The IP address can be specified in either IPv4 or IPv6 format, or a combination of the </a>two. See <span class="Cross_ref_"><a href="javascript:WWHClickedPopup('ODBC', 'usingproduct.05.05.html#107073', '');">â??Using IP Addressesâ??</a></span> for details concerning these formats.</div> <div class="list_procedure_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">2 </span> </div> </td> <td width="100%"> <div class="list_procedure_inner"><a name="231975">In the Port Number field, type the number of your PostgreSQL listener. Check with your </a>database administrator for the correct number.</div> </td> </tr> </table> </div> <div class="list_procedure_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">3 </span> </div> </td> <td width="100%"> <div class="list_procedure_inner"><a name="231976">In the Database Name field, type the name of the database to which you want to </a>connect.</div> </td> </tr> </table> </div> <div class="list_procedure_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">4 </span> </div> </td> <td width="100%"> <div class="list_procedure_inner"><a name="231978">If required, type your PostgreSQL user name.</a></div> </td> </tr> </table> </div> <div class="list_procedure_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">5 </span> </div> </td> <td width="100%"> <div class="list_procedure_inner"><a name="231979">If required, type your PostgreSQL password.</a></div> </td> </tr> </table> </div> <div class="list_procedure_outer" style="margin-left: 0pt;"> <table border="0" cellspacing="0" cellpadding="0" summary=""> <tr style="vertical-align: baseline;"> <td> <div class="list_procedure_inner" style="width: 18pt; white-space: nowrap;"> <span class="Numbers">6 </span> </div> </td> <td width="100%"> <div class="list_procedure_inner"><a name="231980">Click </a><span class="Action_bold">OK</span> to log on to the PostgreSQL database installed on the server you specified and to update the values in the Registry.</div> </td> </tr> </table> </div> <script type="text/javascript" language="JavaScript1.2"> <!-- // Clear related topics // WWHClearRelatedTopics(); document.writeln(WWHRelatedTopicsInlineHTML()); // --> </script> </blockquote> <script type="text/javascript" language="JavaScript1.2"> <!-- document.write(WWHRelatedTopicsDivTag() + WWHPopupDivTag() + WWHALinksDivTag()); // --> </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de