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