Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Steps to switch Database used by PF

  1. Add jdbc driver to classpath of application.
  2. Create policy_user user in database.
  3. Create policy_admin database.
  4. Edit the defaultConfig that is sent to start up your application and switch out the driver for the new database driver.

    Example DB Config
    "databaseProviderParameters": {
            "name": "PolicyProviderParameterGroup",
            "implementation": "org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl",
            "databaseDriver": "org.postgresql.jdbc.Driver",
            "databaseUrl": "jdbc:postgresql://localhost:5432/policyadmin",
            "databaseUser": "policy_user",
            "databasePassword": "cG9saWN5X3VzZXI=",
            "persistenceUnit": "PolicyMariaDb"
        },


  • No labels