Managing the Administrator Credentials for a Database System
Learn how to change the administrator credentials for an OCI Database with PostgreSQL database system.
When you create a database system, you set the database system administrator credentials. Administrators don't get superuser access, but they do get assigned an oci_admin_role
. An OCI Database with PostgreSQL admin user can create users and roles and enable certain extensions.
You can change the password of the administrator, but you can't change the username.
Use the
oci psql db-system reset-master-user-password
,oci psql db-system reset-master-user-password-plain-text-password-details
, oroci psql db-system reset-master-user-password-vault-secret-password-details
command and required parameters to reset passwords:oci psql db-system reset-master-user-password --db-system-id <db_system_OCID> --password-details <file://password-details.json> [OPTIONS]
oci psql db-system reset-master-user-password-plain-text-password-details --db-system-id <db_system_OCID> --password-details-password <example-password> [OPTIONS]
oci psql db-system reset-master-user-password-vault-secret-password-details --db-system-id <db_system_OCID> --password-details-secret-id <secret_OCID> --password-details-secret-version <secret_version> [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the ResetMasterUserPassword operation to reset the master password credentials for the database.
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.