Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Changing Instance Name ( No DB_NAME) Oracle
  • Rman Notes -1 Oracle
  • How to choose Driver table in SQL statement Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • Find nth max and min. Oracle
  • Building Our Own Namespaces with “Create Context” Oracle
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • myfile Oracle
  • DBMS_Shared_pool pinning triggers Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • Create type and Grant on it. Oracle
  • Changing default shell Linux/Unix
  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress
  • Good Link from metalink 1 Oracle

Creating a Container Database using dbaascli

Posted on 08-Apr-2026 By Admin

Creating a Container Database (CDB) in Oracle Database Cloud Service Using dbaascli

As a database administrator working with Oracle Database Cloud Service (DBCS), you have powerful command-line tools at your disposal. One of these is dbaascli, which allows you to perform various database operations directly from the server. Today, I’ll walk you through creating a Container Database (CDB) using this utility.

Why Use dbaascli?

The dbaascli utility provides a streamlined way to perform common database administration tasks in Oracle Cloud environments. It’s particularly useful for:

  • Automating database operations
  • Performing tasks without needing to log in to the database directly
  • Managing databases in Oracle Cloud environments

Creating a CDB with dbaascli

Here’s the command I recently used to create a new CDB in our Oracle Cloud environment:

dbaascli database create \
--dbName MYCDB1 \
--dbUniqueName MYCDB1 \
--dbSID MYCDB1 \
--oracleHome /u02/app/oracle/product/19.0.0.0/dbhome_1 \
--dbCharset WE8MSWIN1252 \
--dbNCharset AL16UTF16 \
--createAsCDB true \
--nodeList vmhost1,vmhost2 \
--honorNodeNumberForInstance true

Let’s break down each parameter:

Required Parameters

  • --dbName: The global database name (MYCDB1 in this case)
  • --dbUniqueName: The unique database name (typically same as dbName for single-instance databases)
  • --dbSID: The system identifier for the database instance
  • --oracleHome: The Oracle home directory where the database software is installed
  • --createAsCDB: Set to “true” to create a Container Database

Character Set Parameters

  • --dbCharset: The database character set (WE8MSWIN1252 for Western European Windows)
  • --dbNCharset: The national character set (AL16UTF16 for Unicode support)

RAC-Specific Parameters

  • --nodeList: Comma-separated list of nodes in the RAC cluster (vmhost1,vmhost2)
  • --honorNodeNumberForInstance: When set to “true”, instance numbers will match node numbers

Post-Creation Steps

After running this command, you should:

  1. Verify the database creation was successful by checking the alert log
  2. Connect to the CDB using SQL*Plus or your preferred tool
  3. Create any required Pluggable Databases (PDBs) using the CREATE PLUGGABLE DATABASE command
  4. Set up any necessary backup and recovery procedures

Best Practices

  1. Naming Conventions: Use consistent naming for your databases to make administration easier
  2. Character Sets: Choose character sets carefully based on your application requirements
  3. RAC Configuration: For RAC environments, ensure all nodes are properly configured before database creation
  4. Documentation: Document your database creation parameters for future reference

Troubleshooting

If you encounter issues during database creation:

  • Check the log files in the $ORACLE_BASE/diag/rdbms directory
  • Verify that the Oracle home path is correct
  • Ensure you have sufficient storage space
  • Check that all nodes in a RAC environment are accessible

The dbaascli utility is a powerful tool for Oracle Cloud database administrators. By mastering commands like this, you can efficiently manage your database environment while maintaining consistency across your infrastructure.

Have you used dbaascli for database operations? Share your experiences in the comments!

Uncategorized

Post navigation

Previous Post: track_autoupgrade_copy_progress.sql
Next Post: find_pdbs.sql

Related Posts

  • find_pdbs.sql Uncategorized
  • find_encr_wallet.sql Uncategorized
  • SAT Mathematics 10 questions and answer at the end. Uncategorized
  • top 10 AI news today Uncategorized

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (350)
  • SQL Server (6)
  • Uncategorized (5)
  • Videos (0)

Recent Posts

  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sql23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • Jai Shree Ram Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • MYSQL and Oracle Comparison for Oracle DBA MYSQL
  • How to find where datafile is created dbf_info.sql Oracle
  • Gathering statistics with DBMS_STATS Oracle
  • v$backup.status information Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme