To move a connection to another compartment
Open a command prompt and run oci dbtools connection
change-compartment to move a connection to another compartment:
oci dbtools connection change-compartment --connection-id <connection_ocid> --compartment-id <<destination_compartment_ocid>>