Oracle CDBVIEW
Version 19.3

General Information
Library Note Morgan's Library Page Header
Which has the higher priority in your organization: Deploying a new database or securing the ones you already have? Looking for a website, and resources, dedicated solely to securing Oracle databases? Check out DBSecWorx.
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 18c
What's New In 19c

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
  DBSecWorx