Notedb

DB명세서 작성 쿼리 본문

DATABASE/ORACLE

DB명세서 작성 쿼리

NotedbAdmin 2023. 10. 24. 17:29

 

 

.

.

.

.

 

1. HIDDEN PARAMETERS

 

SELECT KSPPINM NAME,

               KSPPSTVL VALUE,

               KSPPSTDF IS_DEFAULT,

               DECODE(BITAND(KSPPIFLG / 256,1),1,'TRUE','FALSE') SES_MODIFIABLE,

               DECODE(BITAND(KSPPIFLG / 65536,3),1,'immediate','2','deferred','3','immediate','false') SYS_MODIFIABLE,

               KSPPDESC DESCRIPTION

FROM SYS.VW_X$KSPPI I, SYS.VW_X$KSPPCV V

WHERE I.INDX = V.INDX

ORDER BY 1;

 

 

 

2. DBA_TABLES

 

SELECT * FROM DBA_TABLES ORDER BY 1,2,3;

 

3. DBA_OBJECTS

 

SELECT OWNER, OBJECT_NAME, SUBOBJECT_NAME, OBJECT_TYPE,STATUS, FROM DBA_OBJECTS ORDER BY 1,2,3;

 

 

4. DBA_SEQUENCES

 

SELECT COUNT(1) FROM DBA_SEQUENCES WHERE ORDER_FLAG ='Y' ;

SELECT COUNT(1) FROM DBA_SEQUENCES WHERE ORDER_FLAG ='N' ;

 

 

5. DBA_JOBS;

 

SELECT * FROM DBA_JOBS;

 

SELECT OWNER

               , JOB_NAME

               , JOB_ACTION

               , REPEAT_INTERVAL

               , JOB_CLASS

               , ENABLED

FROM DBA_SCHEDULER_JOBS WHERE OWNER NOT IN ('SYS','ORACLE_OCM','EXFSYS') ;

 

 

6. PRIVS

 

SELECT * FROM DBA_TAB_PRIVS;

 

SELECT * FROM DBA_SYS_PRIVS;

 

SELECT * FROM DBA_ROLE_PRIVS;

 

 

 

 

'DATABASE > ORACLE' 카테고리의 다른 글

Oracle Block / Extent / Segment / Tablespace (2)  (0) 2023.11.17
Oracle Block / Extent / Segment / Tablespace (1)  (0) 2023.11.17
HWM RESET  (0) 2023.10.20
TABLESPACE 사용량 조회  (2) 2023.10.20
DDL DML DCL TCL description  (0) 2023.10.20