Skip to main content

on-premise WF5 not able to work with Oracle Database

Comments

6 comments

  • Stefan Schweigert

    Hi Hua,

     

    In order for Geocortex Workflow on-prem to properly access the Oracle database, you need to configure the databasesettings.js file using the OracleDatabase connection string with the appropriate format, as outlined: https://docs.geocortex.com/workflow/latest/help/Default.htm#wf5/help/database-connections.htm

     

    The workflow is attempting to connect with the database multiple times, but eventually fails when no results are returned.

     

    Thanks, Stefan

    0
  • K L

    I thought the use of databasesetting.json file is optional

     

    <To configure connection strings in the database settings file:This procedure is optional. If you prefer, you can specify the connection string each time you use an activity that accesses the database.>

    0
  • Permanently deleted user

    hi Stefan,

     

    Thanks for your quick reply. I have tried to set database connection string into databasesetting.json. Unfortunately this didn't work for me as well, I got the same behavior with trying to connect to database many times.

     

    Would you provide a sample of working database connection string to oracle database? I have tried database connection string as below:

     

    Data Source=(DESCRIPTION=(ADDRESS =(PROTOCOL=TCP)(HOST=<hostname>)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=<service name>)));User Id=<user>;Password=<password>

     

    and connection strings displayed on the image:

     

    Oracle-error1

     

    Any input is highly appreciated!

    0
  • Stefan Schweigert

    Yes, this configuration method is optional, but is the preferred method for storing this sensitive information.

     

    A very basic configuration follows this syntax:

     

    "OracleServer":"User Id=system;Password=myPass;DataSource=localhost:1521;"

     

    The only difference that I see is "Data Source" vs. "DataSource" in the connection string.

     

    0
  • Sean McClurkan

    Try moving the User and Password to the beginning of the connect string:

    "[Connection Config Name]": "User Id=[username]; Password=[password]; Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=[server name])(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=[service name])));"

    Not sure why this matters, but it seems to for the Workflow 5 connect strings.

        

    0
  • Permanently deleted user

    Thanks Sean and Stefan who replied to me. Unfortunately it didn't work for me, any other ideas? Thanks a lot !

    0

Please sign in to leave a comment.