904 Bedford St, New York NY 10014

(+1) 5184-453-1514

Administrating the Root Container (CDB)- Containers and Pluggables

When you manage a CDB, for the most part you are connecting to the root container as SYS and performing tasks as you would with a non-CDB database.

I would recommend different users for different tasks, such as backing up, creating new PDBs, and cloning. Even though these are SYSDBA-level tasks, it still makes sense to leave SYSOPER permissions to a different user instead of the risk of shutting down a CDB.

Enough of the separation of duties soapbox. However, there are several points to be aware of thatare specific to maintaining a CDB. The following tasks can be performed only while connected to the root container with SYSDBA privileges:

•     Starting/stopping the instance

•     Enabling/disabling archive log mode

•     Managing instance settings that affect all databases with the CDB, such as overall memory size

•     Backup and recovery of all data files within the database

•     Managing control files (adding, restoring, removing, and so on)

•     Managing online redo logs

•     Managing the root UNDO tablespace

•      Managing the root TEMP tablespace

•      Creating common users and roles

•     Creating PDBs and application containers

Connecting to the Root Container

Connecting to the root container as SYS allows you to perform all the tasks you normally associate with database administration.

You can connect as SYS locally from the database server through OS authentication or a network connection (which requires a listener and password file).

It is recommended that there are roles that are set up for CDB administrators to be able to use individual accounts and not log in via SYS.

Logins on the server would be needed only when performing the server tasks; otherwise, the connection to the CDB through a network connection should be what is allowed for security and compliance.

Search

Popular Posts

  • Recovery Catalog Versions – RMAN Backups and Reporting
    Recovery Catalog Versions – RMAN Backups and Reporting

    I recommend that you create a recovery catalog for each version of the target databases that you are backing up. Doing so will save you some headaches with compatibility issues and upgrades. I have found it easier to use a recovery catalog when the database version of the rman client is the same version used…

  • Registering a Target Database – RMAN Backups and Reporting
    Registering a Target Database – RMAN Backups and Reporting

    Now, you can register a target database with the recovery catalog. Log in to the target database server. Ensure that you can establish connectivity to the recovery catalog database. For instance, one approach is to populate the TNS_ADMIN/tnsnames.ora file with an entry that points to the remote database. On the target database server, register the…

  • Creating a Recovery Catalog – RMAN Backups and Reporting
    Creating a Recovery Catalog – RMAN Backups and Reporting

    When I use a recovery catalog, I prefer to have a dedicated database that is used only for the recovery catalog. This ensures that the recovery catalog is not affected by any maintenance or downtime required by another application (and vice versa). Listed next are the steps for creating a recovery catalog: 1. Create a…

Tags