To restart a PDB (Pluggable Database) in an Oracle RAC (Real Application Clusters) environment, you can use the following commands:
- Connect to the CDB (Container Database) as a privileged user:sqlplus / as sysdba
- Determine the name of the PDB that you want to restart:SELECT name FROM v$pdbs;
- Switch to the PDB that you want to restart:ALTER SESSION SET CONTAINER=<PDB_NAME>;
- Check the current status of the PDB:SELECT name, open_mode FROM v$pdbs WHERE name='<PDB_NAME>';
- If the PDB is currently open, close it:ALTER PLUGGABLE DATABASE <PDB_NAME> CLOSE;
- Wait for the PDB to close:SELECT name, open_mode FROM v$pdbs WHERE name='<PDB_NAME>';
- Once the PDB is closed, restart it:ALTER PLUGGABLE DATABASE <PDB_NAME> OPEN;
- Check the status of the PDB to confirm that it has been restarted:SELECT name, open_mode FROM v$pdbs WHERE name='<PDB_NAME>';
That's it! You
have successfully restarted a PDB in an Oracle RAC environment using commands.
No comments:
Post a Comment