Get JDBC Connection Information Dialog Box
You can use the Get JDBC Connection Information dialog box to create or edit a JDBC or Hive connection. This topic describes the options in the dialog box.
Designer displays the Get JDBC Connection Information dialog box when you do one of the following:
- Select JDBC or Hive and select OK in the New Data Source dialog box.
- In the Catalog Manager, right-click a data source and select New JDBC Connection or New Hive Connection from the shortcut menu, then select JDBC in the Select Connection Type dialog box.
- In the Catalog Manager, right-click a data source and select New Hive Connection from the shortcut menu.
- In the Catalog Manager, right-click an existing JDBC or Hive connection and select Edit Connection from the shortcut menu.
- Select OK in the Create Connection dialog box.
- In the Page Report Manager, right-click the root folder Reports and select Export on the shortcut menu.
- In the Publish to Logi Report Server dialog box, select a catalog in the resource box, select the More Options button, then in the Connection tab, select a JDBC connection and select the Modify button.
You see the following options in the dialog box:
Connection List
The drop-down list contains the connection information that you previously added. The format of the connection information is:
JDBC URL/(JDBC Driver Name)
For example:
jdbc:oracle:thin:@192.168.1.1:OracleDB(oracle.jdbc.driver.OracleDriver)
Designer fills in the JDBC URL and driver name in the corresponding text boxes after you choose one of the connection items from the Connection List.
Use ODBC Data Source
Select to use an ODBC data source for the connection.
- DSN Name
Specify the name for the ODBC data source.
Use Connection Pool
Select to connect the database through a WebLogic connection pool.
Driver
Designer selects the option by default and disables it if you select Use ODBC Data Source or Use Connection Pool. Here you should type the JDBC driver class name which you want to use for this connection; otherwise, Designer tries all the JDBC drivers that you have added in the file jdbcdrivers.properties in <install_root>\bin
for the JDBC URL that you provide, when it tries to setup a database connection. That is to say, you can also add names of the JDBC drivers into that property file.
URL
Specify the valid JDBC URL which can establish a connection to the database.
User
Specify the user ID used for accessing the database.
Password
Specify the password used for accessing the database.
Designer disables all the above options when you use the dialog box for editing an existing connection in the Catalog Manager.
Test Connection
Designer displays the button when you use the dialog box for creating a connection. You can select it to test whether the specified connection information can connect to the database successfully.
More Options/Less Options
Select to show or hide the options for configuring the connection to meet the special requirements of the database.
OK
Select to apply all changes and close the dialog box.
Cancel
Select to close the dialog box without saving any changes.
Help
Select to view information about the dialog box.
Options
Experienced users can configure the JDBC or Hive connection to meet the special requirements of the database in the following tabs:
Qualifier Tab
Use this tab to specify the qualifier options for the connection.
Name Pattern
You can specify whether or not to use catalog or schema in data manipulation in this box.
- Unqualified Name
Select to include neither catalog nor schema in data manipulation. If you add a table or view from a different schema, you can create queries on it and use the queries to build reports, but when you run the reports, the table or view applies the default schema and you get an error that the table or view does not exist.Example: SELECT t.c FROM t
- 2-Part Names
Select to use schema in data manipulation. If you want to use tables and views from more than one schema, you must use 2 part or 3 part names.Example: SELECT schema.t.c FROM schema.t
- 3-Part Names
Select to use both catalog and schema in data manipulation.Example: SELECT catalog.schema.t.c from catalog.schema.t
This is very useful when you want to build reports that get data from more than one catalog and/or schema. If you only use an unqualified name, the SQL statement that Designer generates does not contain the catalog and schema name, and therefore Designer may not be able to find the table or view in the default schema and/or catalog.
Quote Qualifier
You can specify the characters, and then the qualifier name which contains the characters that you do not want to quote in this box. In Designer, you need quotes with the character defined by the DBMS. The default character is double quotation marks (" ").
- Default (JDBC)
Select to get the extra name characters from JDBC. - User Defined
Select to modify the quote character according to the database system being used.- Extra Characters
Specify the extra characters for identifier names. - Quote Character
Specify the quote character.
- Extra Characters
Modify Qualifier
You can edit the current qualifier in this box.
- Qualifier
The drop-down list contains all the available qualifiers. You can change the current qualifier by selecting one from the drop-down list. The default value is the first one in the list. If the database dose not support qualifier, Designer does not display the drop-down list, and you cannot type the qualifier name. - Apply To
Specify to which data resources to apply the modified qualifier.- Tables
Select to apply the modified qualifier to all tables in the connection. - Views
Select to apply the modified qualifier to all views in the connection. - Imported SQLs
Select to apply the modified qualifier to all imported SQLs in the connection - Stored Procedures
Select to apply the modified qualifier to all stored procedures in the connection.
- Tables
Designer does not record the changes that you make in the Modify Qualifier box, meaning, if you change any value in the box and apply it, when you open the dialog box the next time, Designer displays its original value.
Restore Default
Select to restore the values in the tab to their defaults.
Apply
Select to accept the changes.
Date Format Tab
Different database systems use different Date and Time formats for Date and Time values. You can use the Date Format tab to specify the format, so that when Designer sends the SQL statement with Date or Time parameters, they can be correctly translated into the format of your database system. For example, in an Oracle database, the default Date format is "dd-MMM-yy"; while , in a MySQL database system, it is "yyyy-MM-dd". Thus, you need to modify the Date format in the connection object accordingly, in order for the Designer generated SQL statements to function correctly with the database.
Date Format
Specify the date format.
Time Format
Specify the time format.
Timestamp Format
Specify the timestamp format.
Symbol | Meaning | Presentation |
---|---|---|
y | year | number |
M | month in year | number |
d | day in month | number |
h | hour in day (0~23) | number |
m | minute in hour | number |
s | second in minute | number |
S | millisecond | number |
Transaction Tab
Use this tab to specify the transaction options for the connection.
Read Only
- Default
Select to accept the settings from the database that you are connecting to. - Read Only
Select to allow users to access the database in read-only mode. - Read & Write
Select to allow users to access the database in read-write mode.
Transaction Mode
- Default
Select to accept the settings from the database that you are connecting to. - None
Transactions are not supported. - Read Uncommitted
Transactions are not isolated from each other. If the DBMS supports other transaction isolation levels, it ignores whatever mechanism it uses to implement those levels, so that they do not adversely affect other transactions. Transactions running at the Read Uncommitted level are usually read-only.When you set the Read Only option and select the Transaction Isolation option of "Read Uncommitted", it provides faster access to the data; however, if a database transaction is rolled back, the read retrieves an invalid row and results in an inaccurate report.
- Read Committed
When one transaction is reading, updating or deleting a row, other transactions cannot update or delete it until this transaction has been committed or rolled back. - Repeatable Read
When one transaction is updating, deleting several rows or inserting new rows into them, the other transactions cannot also update or delete these rows, until this transaction has been committed or rolled back. - Serializable
When one transaction is updating, deleting several rows or inserting new rows into them, the other transactions cannot update, delete these rows, or insert any new rows into these rows, until this transaction has been committed or rolled back.
Schema Tab
Use this tab to specify the schema options for the connection.
Schema
You can choose the required schemas and show them in the Add Tables/Views/Synonyms dialog box in this box.
- Schema List
The box lists the schemas for you to choose. - Included Schemas
The box shows the schemas that you select. - Add button
Select to add the specified schemas to the Included Schemas box. - Remove button
Select to remove the specified schemas from the Included Schemas box. - Load All Schemas
Select to show all the schemas in database.
You can modify the current schema in this box.
- Schema List
The drop-down list contains all the available schemas. You can change the current schema by selecting one from the drop-down list. - Apply To
Specify to which data resources to apply the modified schema.- Tables
Select to apply the specified schema to all tables in the connection. - Views
Select to apply the specified schema to all views in the connection. - Stored Procedures
Select to apply the specified schema to all stored procedures in the connection.
- Tables
Designer does not record the changes that you make in the Modify Schema box, meaning, if you change any value in the box and apply it, when you open the dialog box the next time, Designer displays its original value.
Restore Default
Select to restore the values in the tab to their defaults.
Apply
Select to accept the changes.
Other Tab
When you use parameters to build queries, there may be special characters in the parameter values like a back slash (\), and you would like Designer to interpret them literally, rather than as a special character. In this case, you can replace the special characters with another string according to your database, for example, for an MySQL database, use "\\" to represent "\". You can specify these settings in the Other tab.
Characters to Be Replaced
Specify the characters that need to be replaced in parameter values when Designer passes the parameter values to queries.
Replaced By
Specify the characters to replace with.