Moving a Database System to Another Compartment
Move an OCI Database with PostgreSQL database system to another compartment.
- Open the navigation menu and select Databases. Under PostgreSQL, select DB Systems.
- (Optional) In the List scope section, under Compartment, select a compartment.
- Select the database system that you want to move.
- On the database system details page, select Move resource.
- In the Move resource window, select the compartment that you want to move the database system to.
- 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.