Search code examples
oracle-apexweblogicconnection-pool

connect oracle apex application to multiple databases


is there any simple way to connect an oracle apex application to another database other than apex admin database (like using WebLogic data source).

I read this but there are a lot of problem with that.

Run these commands ``

java -jar ords.war setup --database AML2 Enter number for [1] Basic [2] TNS [3] Custom URL [1]:3 Enter the Custom JDBC URL:sys/Syspass//192.168.1.1:1521/AML2

java -jar ords.war map-url --type base-path --workspace-id NEW_DB /NEW_DB AML2

`` And get success message after executing each command but when create and execute new workspace and app in the specified path (NEW_DB) get this error

The connection pool named: aml2_pu does not exist

how to resolve this problem or is there any simple or clear way to define connection in a file or WebLogic data source. thanks for your attention


Solution

  • An APEX installation is in the database, it doesn't "connect to the database", there also isn't something like an "admin database" - as such, it cannot connect to other databases. Your apex application and the data for that application live in the same database instance.

    However, if you want to work with data from other databases in your application you can of course do so. The "old way" is using database links, however, nowadays connecting over rest is the way to go.

    The documentation you are referencing is for having ORDS pointing to multiple databases. It is possible to have a single ORDS installation point to multiple APEX instances - in a previous job we used to have dev/uat/int instance on the same ORDS instance. Each of those databases have their own apex installation.