Moving a Database System Between Compartments
Move an OCI Database with PostgreSQL database system to another compartment.
- On the Database systems list page, find the database system that you want to work with. If you need help finding the list page or the database system, see Listing OCI Database with PostgreSQL Database Systems.
- From the Actions menu, select Move resource.
- In the Move resource panel, select the destination compartment from the list.
- Select Move resource.
Use the
oci psql db-system change-compartmentcommand and required parameters to move a database system:oci psql db-system change-compartment --db-system-id <db-system_OCID> --compartment-id <destination_compartment_OCID> [OPTIONS]To get your database system's OCID, see Listing Database Systems.
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.