Using Oracle as the External Database

  • Last update: June 22, 2026
  • Overview

    Function Description

    A FineDataLink system with an external database configured is stable in cluster environments or when dealing with high-volume data.

    You can configure Oracle as the external database during initial setup or in System Management.

    iconNote:

    If an external database is configured, do not modify its username and password. Otherwise, the project startup will fail.

    If you need to modify them, see Changing the Username and Password of the External Database.

    External Database Preparation

    Database Version

    The following table describes the supported types and versions of the external database.

    Database TypeSupported Database Version
    Oracle

    Oracle standalone

    10g (10.2), 10.2.0.1.0

    11g (11.0.2.1), 11g (11.0.2.4), 11.0.2.4, 11.2.0.2.0

    12c, 12c V12.2, 19c

    Oracle cluster:

    11g, 12c

    Hardware Configuration

    TypeMinimum ConfigurationRecommended Configuration
    Memory

    1 GB

    2 GB

    CPU

    4 cores

    8 cores

    Network speed

    50 Mbps

    100 Mbps

    FineDB-occupied space

    1 GB

    2 GB

    Server disk space

    100 GB

    200 GB

    Disk read/write speed

    50 MB/s

    100 MB/s

    iconNotes:

    1. Modify the occupied space according to the usage. You can set it to be one to two times larger than the size of the finedb folder in webapps/webroot/WEB-INF/embed (considering future use).                                                                                          

    2. The recommended size of memory is intended for the project configuration database.

    3. The external database should be in the same network segment as the project to avoid network fluctuations.

    Creating a Database

    Creating an Account

    For an Oracle database, you are advised to create a separate account before configuration. (Create a tablespace and specify it as the default tablespace for the user.)

    To create a user, run the following statement:

    CREATE USER "Username" IDENTIFIED BY "Password" ACCOUNT UNLOCK DEFAULT TABLESPACE "Tablespace name" 

    iconNotes:

    1. Due to restrictions in Oracle 12c, you must prefix the username with C## when creating a user; otherwise, the user account cannot be used properly.              

    2. Username in the SQL statement is also the schema name. Select this schema in the "Setting Item" section.

    To assign permissions, run the following statements:

    GRANT "CONNECT", "RESOURCE" TO "Username"
    ALTER USER "Username" QUOTA UNLIMITED ON "Tablespace name"

    Creating a Tablespace

    Create a FineDB tablespace in an Oracle database to store migration data.

    iconNotes:

    1. Different FineDataLink projects cannot share the same FineDB tablespace. Otherwise, data may become conflicted.

    2. You are advised to use an empty tablespace when migrating data from the FineDB database.

    Replacing the Driver

    Database VersionDriver Replacement
    10g

    FineDataLink comes with the ojdbc14.jar driver package. No replacement is needed.

    11g, 12c

    1. Download the ojdbc8.jar driver package from the Oracle official website.

    2. Stop the FineDataLink project.

    3. Delete the ojdbc14.jar driver package from FineDataLink installation directory/webapps/webroot/WEB-INF/lib.

    4. Upload the ojdbc8.jar driver package to FineDataLink installation directory/webapps/webroot/WEB-INF/lib.

    5. Restart the FineDataLink project.

    External Database Configuration

    Checking the Configuration

    If you are using the Data Pipeline function, pause the running synchronization tasks before configuring the external database.

    image 1.png

    External Database Configuration Entries

    The three external database configuration entries are as follows.

    1. You (the super admin) can configure an external database for the system upon first login, as shown in the following figure.

    image 2.png

    2. For systems that use built-in databases, you (the super admin) can log in to the system, choose System Management > System Setting > General > External Database > To Be Configured, and configure the external database for the system for the first time, as shown in the following figure.

    image 3.png

    3. For systems for which external databases have been enabled, you (the super admin) can log in to the system, choose System Management > System Setting > General > External Database > Configured, and migrate data to a new external database for the system, as shown in the following figure.

    image 4.png

    Configuring the External Database

    After you access the external database configuration page, select the database type and enter the information of the actual database, as shown in the following figure.

    image 5.png

    Setting Item

    The following table describes each setting item.

    Setting ItemDescription
    Database type

    Select oracle.

    Driver

    No manual modification is required.

    Database name

    Enter the instance name.

    iconNote:
    The name can contain only numbers, letters, underscores (_), and periods (.).

    Username/Host/Password/Port

    Enter these values based on the actual database configuration.

    iconNote:
    The hostname can contain only numbers, letters, underscores (_), hyphens (-), and periods (.).

    Mode

    You can select a mode from the drop-down list.

    After correctly setting the values of the above parameters, select Click to Connect Database from the drop-down list. The system will automatically connect to the database and read schemas. Select a schema (preferably the one matching the database username).

    iconNote:
    If a prompt indicating database connection failure is displayed, check the settings above.

    image 6.png

    URL

    The database connection URL can be set as follows:

    1. Oracle standalone

    jdbc:oracle:thin:@Host:Port number:System identifier
    2. Oracle cluster

    Format 1: jdbc:oracle:thin:@//Host:Port number/Service name

    Format 2: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=Host1)(PORT=Port number))(ADDRESS=(PROTOCOL=TCP)(HOST=Host2)(PORT=Port number)))(LOAD_BALANCE=yes)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=Service name)))

    Migrating Data to the Database to Be Enabled

    You can determine whether to tick Migrate Data to Database to Be Enabled as needed. The following describes the details:

    1. If the new external database is empty, and Migrate Data to Database to Be Enabled is ticked:

    After you click Enable New Database, the platform data of the original FineDB database will be migrated to the new external database.

    2. If the platform data already exists in the new external database, and Migrate Data to Database to Be Enabled is ticked:

    After you click Enable New Database, the message "The platform data already exists in the database. Before data import, the original platform data will be cleared. Sure to connect to the database?" pops up.

    After you click OK, the original platform data will be cleared, and the platform data of the original FineDB database will be migrated to the new external database.

    image 7.png

    3. If the new external database is empty, and Migrate Data to Database to Be Enabled is unticked:

    After you click Enable New Database, the message "The target database is a new database and can be used after the current data is migrated to the target database." pops up.

    After you click OK, the platform data of the original FineDB database will be migrated to the new external database.

    image 8.png

    4. If the platform data already exists in the new external database, and Migrate Data to Database to Be Enabled is unticked:

    After you click Enable New Database, the project automatically checks whether the JAR package version corresponding to the data in the target database is consistent with that in the current project.

    • If the versions are inconsistent, the message "Unable to enable it. Project version required to enable the new database: xxx Current project version: xxx Ensure the project versions are consistent!" is displayed. In this case, you cannot proceed with the external database configuration.

    image 9.png

    • If the JAR package versions are consistent and the original FineDB database is a built-in database, the new external database is enabled directly.

    • If the JAR package versions are consistent and the original FineDB database is an external database, the system automatically backs up the original database configuration before migration, generates a db.properties.bak file in webapps/webroot/WEB-INF/config, and enables the new external database, as shown in the following figure.

    image 11.png

    Successful Migration

    Wait for the migration to complete. Different pop-up prompts may be displayed depending on the migration situation.

    1. If the new external database uses data from the original FineDB database:

    The message "The target database has been enabled successfully." pops up. Click OK to complete the migration, as shown in the following figure.

    image 11.png

    2. If the new external database uses its own existing data and the original FineDB database is a built-in database:

    The message "Successfully switched to the target database. If data is different between the old and new databases, system running may be affected. You are advised to restart the project for normal use." pops up.

    Click OK and restart the project to complete the migration, as shown in the following figure.

    image 12.png

    3. If the new external database uses its own existing data and the original FineDB database is an external database:

    The following two messages pop up:

    • Successfully switched to the target database. If data is different between the old and new databases, system running may be affected. You are advised to restart the project for normal use.

    • The original database configuration has been backed up to the config folder. You can use the backup file to restore the database configuration if necessary.

    Click OK and restart the project to complete the migration, as shown in the following figure.

    image 13.png

    Deleting the Data Connection to the Built-in Database

    The built-in FineDB database is an HSQL database that creates an in-memory database when used, which will occupy a large amount of memory when the data volume is large.

    Therefore, after configuring the external database, check whether a data connection to the built-in FineDB database exists in Data Connection.

    If so, delete the data connection in time. Otherwise, the connection will continue to occupy server memory.

    image 14.png

     

    附件列表


    主题: System Management
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy