Oracle CDBVIEW
Version 19.3

General Information
Library Note Morgan's Library Page Header
For how many years have you been working with physical servers that are starving your database of the memory necessary to deploy important new performance features such as the Result Cache, Memoptimize Pool, In-Memory Aggregation, In-Memory Column Store, and Full Database Caching? Too long? Contact me to learn how to improve all queries ... not just some queries.
Purpose Creates CDB views for all DBA views. Source code is all clear-text.
AUTHID CURRENT_USER
Dependencies
CDBVIEW_INTERNAL DBMS_STANDARD OBJ$
COM$ GETLONG USER$
Documented No
First Available 12.1.0
Security Model Owned by SYS with EXECUTE granted to the EXECUTE_CATALOG_ROLE role
Source {ORACLE_HOME}/rdbms/admin/catcdbviews.sql
Subprograms
 
CREATE_CDBVIEW
Creates, or recreates, the CDB Views cdbview.create_cdbview(
chk_upgrd    IN BOOLEAN,
owner        IN VARCHAR2,
oldview_name IN VARCHAR2,
newview_name IN VARCHAR2);


True indicates the call is part of an upgrade and the views are not recreated.
False indicates the call is not part of an upgrade and all CDB views are (re)created.
-- do not run the following statements ... they are examples found in {ORACLE_HOME}/rdbms/admin files
exec cdbview.create_cdbview(FALSE,'SYS','DBA_CONTEXT','XXX_CONTEXT');
 
GETLONG
opcode = 1 accesses view$, opcode = 2 accesses cdef$ cdbview.getlong(
opcode  IN NUMBER
p_rowid IN ROWID)
RETURN VARCHAR2;
exec cdbview.getlong(1,'AAAABfAABAAAARhAAC');

Related Topics
Built-in Functions
Built-in Packages
CDBVIEW_INTERNAL
Container Database
DBMS_PDB
Pluggable Database
What's New In 18cR3
What's New In 19cR3

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2019 Daniel A. Morgan All Rights Reserved