Friday , November 15 2024

Query Whether the Oracle Database is CDB or Non-CDB

You can query the CDB column in the V$DATABASE view to see if a database is CDB. If the current database is CDB, the column value will be YES, otherwise the CDB column value will be NO.

You can get information about container in CDB with a query like below.

Connect with SQLPlus, make sure you are in the root container, and then run the query.

Loading

About dbtut

We are a team with over 10 years of database management and BI experience. Our Expertises: Oracle, SQL Server, PostgreSQL, MySQL, MongoDB, Elasticsearch, Kibana, Grafana.

Leave a Reply

Your email address will not be published. Required fields are marked *