A dynamic connection is a group of connection properties that can be used to override the original data source connections in a catalog. Administrators can modify some of the original catalog connection properties, and then save these modified properties as a dynamic connection. For a dynamic connection, administrators can define a database user mapping table which is a table containing the columns: SID, database user, and database password. Then when an end user running a report, if there are dynamic connections available to his SID, the user can select a dynamic connection to apply. Logi Report Server manages dynamic connections in the server system database.
Dynamic connections are categorized at organization level. If the system administrator creates a dynamic connection, the connection is available to users that are not from any organizations. If an organization administrator creates a dynamic connection, the connection is available to users of the organization. If a dynamic connection is defined in an organization, all users/groups/roles must be from the same organization. If a connection is defined outside of all organizations, all users/groups/roles must be from outside of all organizations. System administrator can define, view and edit all the dynamic connections.
Developer users can also call API methods for using dynamic connections.
Select the following links to view the topics:
- In the Logi Report Server console, point to Administration on the system toolbar, and then select Connection > Dynamic Connections from the drop-down menu to open the Dynamic Connections page.
- Select the New Dynamic Connection link. Report Server displays the New Dynamic Connection dialog box.
- Select Browse to select a catalog in the Select Catalog dialog box.
- From the Data Source Name drop-down list, select a data source available in the selected catalog.
- From the Connection Name drop-down list, select a connection to connect to the data source.
- Select Properties to edit properties of the selected connection. To change a property's value, first select the check box beside it, then type a value in the Value text box or select a value from the drop-down list. Initially all the properties are unselected and uneditable. Whenever a property is unselected, it always shows the original value regardless of whether you have changed the value or not.
Property Name Description Date Format Specifies the default Date format corresponding to the database. The Date format Logi Report supports follows that of Java. Description Specifies the description of the connection. Driver Specifies the class name of the JDBC driver such as oracle.jdbc.driver.OracleDriver. Is JNDI Data Source Specifies whether it is a JNDI data source. JNDI Data Source Name Specifies the JNDI data source name when the Is JNDI Data Source property is true. Name Specifies the name of the connection which, by default, is the connection URL, but can also be a user friendly name for the connection. Name Pattern Specifies whether or not catalog or schema is used in data manipulation. Choose an option from the drop-down list.
- Unqualified - Neither catalog nor schema is included in data manipulation. Example: SELECT t.c FROM t
- Qualified_2part - Uses schema in data manipulation. Example: SELECT schema.t.c FROM schema.t
- Qualified_3part- Uses both catalog and schema in data manipulation. Example: SELECT catalog.schema.t.c from catalog.schema.t
Read Only Specifies the mode to open the connection to the JDBC data source. The initial setting is Default which uses the mode specified by the DBMS Administrator which could be read only or read & write. Choose an option from the drop-down list.
- Default - May be read & write or read only depending on the DBMS default setting.
- Read only - Allows the driver to optimize performance for reporting which does not need to write to the DBMS.
- Read & write - Opens the DBMS with updates enabled which requires more processing to ensure concurrency control.
Time Format Specifies the default time format corresponding to the database. Timestamp Format Specifies the default timestamp format corresponding to the database. The Timestamp formats Logi Report supports follows that of Java. Transaction Mode Specifies the transaction mode for the connection. Choose an option from the drop-down list.
- Default - Indicates the transaction information cannot be got from JDBC connection.
- None - Indicates that transactions are not supported.
- Read_uncommitted - Dirty reads, non-repeatable reads and phantom reads can occur. This mode will speed up the transaction of the catalog.
- Read_committed - Dirty reads are prevented; non-repeatable reads and phantom reads can occur.
- Repeatable_read - Dirty reads and non-repeatable reads are prevented; phantom reads can occur.
- Serializable - Dirty reads, non-repeatable reads and phantom reads are prevented.
URL Specifies the JDBC URL which establishes the connection to the database, for example, jdbc:oracle:thin:@localhost:1521:ORCL. User Defined Extra Characters Specifies extra characters of user defined quote qualifier. User Defined Quote Characters Specifies the quote character of user defined quote qualifier. Default Database User Specifies the user name for connecting to the database, which is determined by the database DBA. Null means using the default database user name. Default Database Password Specifies the password for connecting with the database, which is determined by the database DBA. Null means using the default database password.
- Select Add Database User Mapping to define the mapping relationship between SID and database user/password as follows: from the SID drop-down list, select a user, role or group name, double-click in the text box of Database User and Database Password and type database user name and password, then select Test Connection to test whether the user name and password can connect to the database.
Within a dynamic connection, make sure that an SID is mapped to only one pair of database user and name.
- Select OK to create the dynamic connection.
The dynamic connection is then added in the dynamic connection table which consists of the following columns.
|Catalog||Displays the catalogs of the dynamic connections with the full resource path, for example,
|Data Source||Displays the data source names of the dynamic connections in the catalog.|
|Connection Name||Displays the dynamic connection names. You can select a connection name to edit the dynamic connection.|
|SID||Displays the security identifiers (SID). An SID can be a group, a role, or a user in the Logi Report Server security system.|
|Organization Name||Shows the organizations that the SIDs belong to. The column is available to system admin when the Organization feature is enabled.|
|Database User||Displays the database user names of the dynamic connections. Null means using the default database user name.|
|Database password||Displays the database passwords of the dynamic connections. The passwords are masked.|
Administrators can perform the following tasks for the dynamic connections in the dynamic connection table:
Sorting the dynamic connections
Dynamic connections can be sorted by columns except for Database Password in the dynamic connection table. To sort the dynamic connections by a column, select on the column name.
Searching for a dynamic connection
First select a search category from the drop-down list, then type the text in the text box and select to start the search. The x button in the text box is used to clear the input text. After the results are filtered, to return to the state before search, select x in the text box.
There are the following search categories:
Searches for catalogs.
- Connection Name
Searches for connection names.
Searches for SIDs.
- Database User
Searches for database users.
For example, in order to find the dynamic connections which use the catalog SampleReprts.cat, you can select Catalog from the search category drop-down list and type sam as the keyword. Logi Report will search for sam in the Catalog column and the dynamic connections whose catalogs contain the text will be kept in the dynamic connection table.
Editing a dynamic connection
Select the connection name to open the Edit Dynamic Connection dialog box, in which you can edit the properties of the dynamic connection as you want.
Deleting dynamic connections
Select the check boxes ahead of the dynamic connections and select Delete above the dynamic connection table. To delete all the dynamic connections at a time, select the check box on the column header and select Delete.
When running a report or scheduling a task to run a report, if there are dynamic connections available to the log-in user, the user needs to select one. Logi Report Server then passes the changed connection properties of the selected dynamic connection into the Report Engine. The Report Engine will merge the changed properties with the other original catalog connection properties to setup the database connection.
One user can have multiple dynamic connections for one catalog data source, so when there are multiple dynamic connections for a log-in user:
- For direct run, link reports, API run, getting parameter values from the database, and getting filter values from the database, the first available dynamic connection is applied automatically.
- For advanced run, the user needs to select a dynamic connection from the available ones.
- For schedule run, if the selected dynamic connection cannot be found when running reports, then the first available dynamic connection will be applied.