2026-03-12 20:23:15
This commit is contained in:
25
timhall/21c/blockchain_tables.sql
Normal file
25
timhall/21c/blockchain_tables.sql
Normal file
@@ -0,0 +1,25 @@
|
||||
-- -----------------------------------------------------------------------------------
|
||||
-- File Name : https://oracle-base.com/dba/21c/blockchain_tables.sql
|
||||
-- Author : Tim Hall
|
||||
-- Description : Display blockchain tables in the specified schema, or all schemas.
|
||||
-- Call Syntax : @blockchain_tables (schema or all)
|
||||
-- Last Modified: 23/12/2020
|
||||
-- -----------------------------------------------------------------------------------
|
||||
set linesize 200 verify off trimspool on
|
||||
|
||||
column schema_name format a30
|
||||
column table_name format a30
|
||||
column row_retention format a13
|
||||
column row_retention_locked format a20
|
||||
column table_inactivity_retention format a26
|
||||
column hash_algorithm format a14
|
||||
|
||||
SELECT schema_name,
|
||||
table_name,
|
||||
row_retention,
|
||||
row_retention_locked,
|
||||
table_inactivity_retention,
|
||||
hash_algorithm
|
||||
FROM dba_blockchain_tables
|
||||
WHERE schema_name = DECODE(UPPER('&1'), 'ALL', schema_name, UPPER('&1'));
|
||||
|
||||
20
timhall/21c/certificates.sql
Normal file
20
timhall/21c/certificates.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
-- -----------------------------------------------------------------------------------
|
||||
-- File Name : https://oracle-base.com/dba/21c/certificates.sql
|
||||
-- Author : Tim Hall
|
||||
-- Description : Display certificates in the specified schema, or all schemas.
|
||||
-- Call Syntax : @certificates (schema or all)
|
||||
-- Last Modified: 23/12/2020
|
||||
-- -----------------------------------------------------------------------------------
|
||||
set linesize 200 verify off trimspool on
|
||||
|
||||
column user_name format a10
|
||||
column distinguished_name format a30
|
||||
column certificate format a30
|
||||
|
||||
select user_name,
|
||||
certificate_guid,
|
||||
distinguished_name,
|
||||
substr(certificate, 1, 25) || '...' as certificate
|
||||
from dba_certificates
|
||||
where user_name = DECODE(UPPER('&1'), 'ALL', user_name, UPPER('&1'))
|
||||
order by user_name;
|
||||
23
timhall/21c/sql_macros.sql
Normal file
23
timhall/21c/sql_macros.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
-- -----------------------------------------------------------------------------------
|
||||
-- File Name : https://oracle-base.com/dba/21c/sql_macros.sql
|
||||
-- Author : Tim Hall
|
||||
-- Description : Displays information about SQL macros for the specific schema, or all schemas.
|
||||
-- Call Syntax : @sql_macros (schema or all)
|
||||
-- Last Modified: 27/12/2020
|
||||
-- -----------------------------------------------------------------------------------
|
||||
set linesize 150 verify off trimspool on
|
||||
column owner format a30
|
||||
column object_name format a30
|
||||
column procedure_name format a30
|
||||
column sql_macro format a9
|
||||
|
||||
select p.owner,
|
||||
o.object_type,
|
||||
p.sql_macro,
|
||||
p.object_name,
|
||||
p.procedure_name
|
||||
from dba_procedures p
|
||||
join dba_objects o on p.object_id = o.object_id
|
||||
where p.sql_macro != 'NULL'
|
||||
and p.owner = decode(upper('&1'), 'ALL', p.owner, upper('&1'))
|
||||
order by p.owner, o.object_type, p.sql_macro, p.object_name, p.procedure_name;
|
||||
Reference in New Issue
Block a user