Moving a Database System to Another Compartment

Move an OCI Database with PostgreSQL database system to another compartment.

    1. Open the navigation menu and select Databases. Under PostgreSQL, select DB Systems.
    2. (Optional) In the List scope section, under Compartment, select a compartment.
    3. Select the database system that you want to move.
    4. On the database system details page, select Move resource.
    5. In the Move resource window, select the compartment that you want to move the database system to.
    6. Select Move resource.
  • Use the oci psql db-system change-compartment command and required parameters to move a database system:

    oci psql db-system change-compartment --db-system-id <database_OCID> --compartment-id <destination_compartment_OCID> [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the ChangeDbSystemCompartment operation to move a database system to another compartment.

    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.