![]() |
Enterprise
RTView®
User Guide |
SQL Database Connection Setup Enterprise RTView communicates with your database using either a direct JDBC connection or an ODBC-JDBC bridge connection. Both connections require some setup before Enterprise RTView can communicate with your database. Once you have setup your database connection, you will need to add your database in the Display Builder from the Application Options dialog on the SQL tab. Enterprise RTView will attempt to connect to your database. If Enterprise RTView is unable to connect to your database, this means that either the driver is not setup correctly or that you do not have permission to access the database. NOTE: Databases that have been setup to Use Client Credentials will not connect unless you are logged in and you have objects in your display that are using that connection. If the connection is successful,
and the Get Tables and Columns from Database checkbox is selected
in the Application Options dialog, Enterprise RTView will use information
from this database to populate drop down menus in the Attach
to Data dialog with available tables and
columns. If a Database Repository is found, information from your database
will be merged with data from the repository file. If you deselect
the Get Tables and Columns from Database checkbox Enterprise RTView
will no longer query your database for this information, but the Database
Repository will still be used to populate drop down menus. Using a Database
Repository to populate drop down menus makes
it possible to specify which tables and columns from your database will
be listed in the Attach to Data dialog and gives you the ability to build
displays while databases are offline.
Direct JDBC Connection
ODBC-JDBC Bridge Connection
Register Your Database with ODBC Windows: 1. From the Windows Control Panel, double-click on the ODBC Data Sources icon. If this icon is not listed, double-click on the Administrative Tools icon and then double-click on the Data Sources (ODBC) icon. This will open the ODBC dialog. 2. In the ODBC dialog, click Add. In the Create New Data Source window, select the driver for which you want to setup a data source. Click Finish to bring up the Setup dialog. 3. Enter a Data Source Name. This is the name you will use in Enterprise RTView when creating data attachments. 4. Click the Select button and choose your database. 5. Click OK in the Select Database, Setup, and ODBC dialogs. UNIX: UNIX systems do not come standard with an ODBC driver. Contact your system administrator for information on how to install and setup an ODBC driver for your database.
It is possible to edit an existing Database Repository file, however the file name sqlrepository.xml cannot be modified. If sqlrepository.xml is not found in the specified directory or your current working directory, Enterprise RTView will look in the lib directory. If the Database Repository file is not found, drop down menus will remain empty until databases are added from the Application Options dialog or typed directly into the Attach to SQL Data dialog. To edit an existing Database
Repository file, supported tags and attributes are as follows:
An example Database Repository file: <?xml version="1.0"?>
Excluding
Tables From The Attach To SQL Data Dialog
<?xml version="1.0"?>
Save the sqlexcludedtables.xml file to your RTV_HOME\lib directory. Table information stored in sqlexcludedtables.xml will now be excluded from the initial values of Table Name drop down menus in the Attach to SQL Data dialog. NOTE: It is not necessary to create a Database Repository file in order to use sqlexcludedtables.xml. Enterprise RTView will still use the sqlexcludedtables.xml file to exclude tables from the Attach to SQL Data dialog. If you have an sqlexcludedtables.xml file and you click the Save Database Repository button, the new sqlrepository.xml file will not contain any of the tables listed in your sqlexcludedtables.xml file. To create your own sqlexcludedtables.xml
file
without creating a Database Repository File, supported tags and attributes
are as follows:
NOTE: The file name sqlexcludedtables.xml
cannot be modified.
|
|
|