Oracle CDBVIEW
Version 12.2.0.1

General Information
Library Note Morgan's Library Page Header
The Library is currently in the process of being upgraded from Oracle Database Version 12.1.0.2 to 12.2.0.1. Demos are being upgraded to reflect the new Container paradigm as well as EBR (Edition Based Redefinition) and may contain references to CDBs, PDBs, and other objects you may not be familiar with such as CDB_OBJECTS_AE: Welcome to 12c.

Also important ... there are rumors on the web about SPARC and Solaris being discontinued. Welcome to the age of fake news. There is absolutely not a byte of truth to these irresponsible rumors.
Purpose Creates CDB views for all DBA views. Source code is all clear-text.
AUTHID DEFINER
Dependencies
CDBVIEW_INTERNAL DBMS_STANDARD OBJ$
CDEF$ GETLONG USER$
COM$    
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

This package appears to be broken in 12.1.0.2
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 (new 12.2)
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
CDBVIEW_INTERNAL
Container Database
DBMS_PDB
Packages
Pluggable Database
What's New In 12cR1
What's New In 12cR2

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-2017 Daniel A. Morgan All Rights Reserved