6.0
/
This document introduces how to connect to the Oracle database.
Driver Package
Oracle 11.1
Oracle 11.2/11g R2
Oracle 12.1/12c R1
Oracle 12.2/12c R2
Oracle 13 and later versions
Oracle 19c
(Built-in) Download not required
Oracle 9.2.0/9i
Oracle 10.1
Oracle 10.2/10g R2
ojdbc14.jar
For details about how to upload the driver package, see the "Uploading the Database Driver" section in Driver Management.
Before connecting FineBI to the database, you need to collect the following information:
IP address and port number of the database server
Database name
Username and password of the database
Schema of the database to be connected
1. Log in to FineBI as the admin, choose System Management > Data Connection > Data Connection Management, click Create, and select Data Connection, as shown in the following figure.
2. Find the Oracle database, as shown in the following figure.
3. Enter the connection information collected in the "Connection Information Collection" section. To use the built-in driver, select Default from the Driver drop-down list. To use the driver uploaded by yourself, select Custom and select the driver as needed.
Click Click to Connect Database, and select the required schema, as shown in the following figure.
The following table introduces the driver, database name, and URL.
Driver
Database Name
URL
oracle.jdbc.driver
OracleDriver
Sid_name
jdbc:oracle:thin:@IP address:Port number:Sid_name
Service_name
jdbc:oracle:thin:@//IP address:Port number/Service_name
or
jdbc:oracle:thin:@IP address:Port number/Service_name
TNSname
(You need to ensure that the tnsnames.ora file exists in the Oracle installation directory.)
jdbc:oracle:thin:@TNSName
The following describes TNSName.
In the URL jdbc:oracle:thin:@TNSName, the value of TNSName is the same as that of ORCL in the tnsnames.ora file, as shown in the following figure.
The complete URL is jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST =(ADDRESS=(PROTOCOL=TCP)(HOST =localhost)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl))).
4. Click Test Connection. If the connection is successful, click Save, as shown in the following figure.
Two methods are available to add database tables to FineBI.
Adding Database Tables
Adding SQL Datasets
In Oracle9i, a field value with the precision 0 will be recognized as a text instead of a number. (For example, the field value 38 obtained by column.getSize() will be recognized as a text.) This phenomenon does not occur in the Oracle database of other versions.
The BI platform will automatically release idle connections from the Oracle connection pool after a period of inactivity. Sometimes, the previous connections remain in the pool simply because they are reused by subsequent users. The function can prevent leakage issues caused by unreleased connections.
If the name of a field in the Oracle database contains special characters (for example, date#$%?/2"), an error will be reported when you select the field in a self-service dataset. In this case, you need to select the driver package ojdbc14.jar to connect to the database. For details, see the "Version/Driver" section.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy