Posts

Showing posts with the label Pluggable Database

How to create a PDB in Oracle (pluggable database)

To create a Pluggable Database (PDB) in Oracle, you will need to first create a Container Database (CDB). A CDB is a special type of Oracle database that can host one or more PDBs within it. Here's a simplified example of the steps involved in setting up a PDB: 1. Create a new Container Database (CDB) using the CREATE DATABASE command. For example: CREATE DATABASE cdb1  ADMIN USER admin IDENTIFIED BY password  DEFAULT TABLESPACE users  DATAFILE '/u01/app/oracle/oradata/cdb1/system01.dbf' SIZE 50M REUSE  SYSAUX DATAFILE '/u01/app/oracle/oradata/cdb1/sysaux01.dbf' SIZE 50M REUSE  DEFAULT TEMPORARY TABLESPACE temp UNDO TABLESPACE undotbs1  LOGFILE GROUP 1 '/u01/app/oracle/oradata/cdb1/redo01.log' SIZE 50M, '/u01/app/oracle/oradata/cdb1/redo02.log' SIZE 50M, '/u01/app/oracle/oradata/cdb1/redo03.log' SIZE 50M; 2. Once the CDB has been created, you can create a new PDB within it using the CREATE PLUGGABLE DATABASE...

Oracle Pluggable Databases

Oracle Pluggable Databases (PDBs) are a feature of Oracle 12c and above that allow a single Oracle instance to host multiple, independent databases within it. This can be useful in a number of different scenarios, and can help organizations to better manage their database infrastructure and resources.  PDB for development One common use case for Oracle PDBs is for testing and development purposes. PDBs allow organizations to create multiple copies of their production databases, each with its own unique set of data and schema objects. This can be useful for testing new applications or making changes to the database schema without affecting the production environment. PDB for consolidation Another use case for Oracle PDBs is for consolidation of multiple databases onto a single server. This can help to reduce the number of servers required to support an organization's database infrastructure, and can also make it easier to manage and maintain those databases. PDBs can also be use...