| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- -- Purpose:
- -- Verify the face-collection schema, privileges, quotas, and business objects.
- -- Execution:
- -- Run with a DBA-capable account inside ORCLPDB.
- set pagesize 100
- set linesize 220
- column username format a20
- column account_status format a20
- column default_tablespace format a24
- column temporary_tablespace format a24
- column granted_role format a30
- column privilege format a30
- column table_name format a32
- column sequence_name format a32
- column index_name format a36
- column tablespace_name format a24
- prompt =========================
- prompt Current container
- prompt =========================
- show con_name
- prompt =========================
- prompt User basic info
- prompt =========================
- select username,
- account_status,
- default_tablespace,
- temporary_tablespace
- from dba_users
- where username = 'FACE_COLLECT';
- prompt =========================
- prompt Tablespace quota
- prompt =========================
- select username,
- tablespace_name,
- bytes / 1024 / 1024 as used_mb,
- max_bytes / 1024 / 1024 as max_mb
- from dba_ts_quotas
- where username = 'FACE_COLLECT'
- order by tablespace_name;
- prompt =========================
- prompt System privileges
- prompt =========================
- select privilege
- from dba_sys_privs
- where grantee = 'FACE_COLLECT'
- order by privilege;
- prompt =========================
- prompt Created tables
- prompt =========================
- select table_name
- from dba_tables
- where owner = 'FACE_COLLECT'
- order by table_name;
- prompt =========================
- prompt Created sequences
- prompt =========================
- select sequence_name
- from dba_sequences
- where sequence_owner = 'FACE_COLLECT'
- order by sequence_name;
- prompt =========================
- prompt Created indexes
- prompt =========================
- select index_name,
- table_name,
- tablespace_name
- from dba_indexes
- where owner = 'FACE_COLLECT'
- order by table_name, index_name;
|