ACE Director Alum Daniel Morgan, founder of Morgan's Library, is scheduling
complimentary technical Workshops on Database Security for the first 30
Oracle Database customers located anywhere in North America, EMEA, LATAM, or
APAC that send an email to
asra_us@oracle.com. Request a Workshop for
your organization today.
Purpose
Undocumented but related to Optimizer Stats Collection. The package appears to be protected with an ACCESSIBLE BY clause from being run stand-alone.
AUTHID
CURRENT_USER
Dependencies
COL$
DBMS_STANDARD
DUAL
COLHISTREC
DBMS_STATS
FINALHIST$
COLHISTTAB
DBMS_STATS_INTERNAL
MON_MODS_ALL$
DBMS_ASSERT
DBMS_STATS_LIB
PLITBLM
DBMS_SQLDIAG
DBMS_UTILITY
WRI$_OPTSTAT_SYNOPSIS_HEAD$
Documented
No
First Available
18.1
Security Model
Owned by SYS with EXECUTE granted to PUBLIC
Direct access to this package is prevented by means of an Accessible By clause.
dbms_stats_internal_agg.agg_pdb_shard_tstats(
owner IN VARCHAR2,
tab_name IN VARCHAR2,
tab_type IN NUMBER,
nrows OUT NUMBER,
nblks OUT NUMBER,
im_imcu_count OUT NUMBER,
im_block_count OUT NUMBER,
pdb_or_shard_count IN NUMBER);
dbms_stats_internal_agg.can_derive_col_histogram(
nnv IN NUMBER,
tobjn IN NUMBER,
icol IN NUMBER,
colsize IN OUT NUMBER,
derive_global_histogram OUT BOOLEAN);
dbms_stats_internal_agg.construct_global_height_cur(tab_type IN NUMBER) RETURN VACHAR2;
SELECT dbms_stats_internal_agg.construct_global_height_cur(1)
FROM dual;
*
ERROR at line 1:
ORA-06553: PLS-904: insufficient privilege to access object
DBMS_STATS_INTERNAL_AGG
dbms_stats_internal_agg.construct_global_hybrid_cur(tab_type IN NUMBER) RETURN VARCHAR2;
SELECT dbms_stats_internal_agg.construct_global_hybrid_cur(1)
FROM dual;
*
ERROR at line 1:
ORA-06553: PLS-904: insufficient privilege to access object DBMS_STATS_INTERNAL_AGG
SELECT dbms_stats_internal_agg.construct_sql_ndv_histogram(2)
FROM dual;
*
ERROR at line 1:
ORA-06553: PLS-904: insufficient privilege to access object DBMS_STATS_INTERNAL_AGG
dbms_stats_internal_agg.derive_global_histogram(
owner IN VARCHAR2,
tab IN VARCHAR2,
tobjn IN NUMBER,
intcoln IN NUMBER,
cht IN OUT sys.colhisttab,
mnb IN NUMBER,
cind IN NUMBER,
histtype IN OUT VARCHAR2,
ndv IN NUMBER,
nmin IN NUMBER,
nnv IN NUMBER,
ssize IN OUT NUMBER,
ssizesq IN OUT NUMBER,
popcnt IN OUT NUMBER,
popcntsq IN OUT NUMBER,
auto_sample IN BOOLEAN);
dbms_stats_internal_agg.get_act_epval_nullcnt(
ownername IN VARCHAR2,
tab_name IN VARCHAR2,
tobjn IN NUMBER,
icol IN NUMBER,
col_name IN VARCHAR2,
tab_type IN NUMBER,
act_nonnull_cnt OUT NUMBER,
act_null_cnt OUT NUMBER);
dbms_stats_internal_agg.get_agg_colstats(
tab_ num IN NUMBER,
total_rows IN NUMBER,
ndv_needed IN BOOLEAN,
dop IN NUMBER,
hybrid_global_ndv OUT BOOLEAN,
pdb_or_shard_count IN NUMBER)
RETURN dbms_stats_internal.aggcoltab;
dbms_stats_internal_agg.get_nnv_hist(
ownername IN VARCHAR2,
tab_name IN VARCHAR2,
tobjn IN NUMBER,
icol IN NUMBER,
col_name IN VARCHAR2,
tab_type IN NUMBER,
nnvhist OUT NUMBER,
nnvNonHist OUT NUMBER);