To connect to a PDB that you have created, you must ensure that an entry is added in the Oracle “tnsnames.ora” file and the status of the PDB is in read-write mode. When a PDB is created, a default Oracle service with the same name as the Pluggable Database name is created automatically. However, an entry to the “tnsnames.ora” file might not have been added.
The following is an example of a “tnsnames.ora” file with only an entry of a CDB called salesdb:
1 |
After you create a PDB, ensure that the entry for the PDB has been added to the “tnsnames.ora” file. |
2 |
Ensure that the status of the PDB is set to read-write. |
You can perform various queries of the databases by using SQL*Plus.
The following is an example of the query and response for a non-CDB database:
The following is an example of the query and response for a CDB database:
You can list the containers in a CDB. For example:
You can list the PDBs and their status in a CDB. For example:
If you intend to target a PDB for backup and restore jobs, be aware that the following operations are not available:
• |
Using the CONFIGURE command |
• |
Using DBPITR and Flashback recovery when using shared undo mode |
• |
Using the IMPORT CATALOG command |
• |
Using the REGISTER DATABASE command |
• |
Using the RESET DATABASE command |
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. 利用規約 プライバシー Cookie Preference Center