Oracle CDBVIEW
Version 18.1.0.0

General Information
Library Note Morgan's Library Page Header
Are you prepared for the release of Oracle Database 18c ... the first autonomous database? We are here at the Library. It is time for DBAs to stop fighting robots with their fingers and losing ... time to start using our intelligence and winning.
Purpose Creates CDB views for all DBA views. Source code is all clear-text.
AUTHID DEFINER
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

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
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 12cR2
What's New In 18cR1

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