0% found this document useful (0 votes)
14 views28 pages

Compte Rendu TP

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views28 pages

Compte Rendu TP

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 28

1.

SELECT TABLE_NAME
FROM DICTIONARY
WHERE TABLE_NAME LIKE '%TABLES%';

TABLE_NAME
------------------------------
USER_TABLES
USER_OBJECT_TABLES
USER_ALL_TABLES
ALL_TABLES
ALL_OBJECT_TABLES
ALL_ALL_TABLES
DBA_TABLES
DBA_OBJECT_TABLES
DBA_ALL_TABLES
USER_NESTED_TABLES
ALL_NESTED_TABLES

TABLE_NAME
------------------------------
DBA_NESTED_TABLES
ALL_SOURCE_TABLES
DBA_SOURCE_TABLES
USER_SOURCE_TABLES
ALL_SUBSCRIBED_TABLES
DBA_SUBSCRIBED_TABLES
USER_SUBSCRIBED_TABLES
USER_PART_TABLES
ALL_PART_TABLES
DBA_PART_TABLES
USER_PENDING_CONV_TABLES

TABLE_NAME
------------------------------
ALL_PENDING_CONV_TABLES
DBA_PENDING_CONV_TABLES
DBA_ADVISOR_SQLW_TABLES
USER_ADVISOR_SQLW_TABLES
USER_EXTERNAL_TABLES
ALL_EXTERNAL_TABLES
DBA_EXTERNAL_TABLES
USER_TABLESPACES
DBA_TABLESPACES
DBA_TABLESPACE_GROUPS
DBA_TABLESPACE_USAGE_METRICS

TABLE_NAME
------------------------------
USER_EVALUATION_CONTEXT_TABLES
ALL_EVALUATION_CONTEXT_TABLES
DBA_EVALUATION_CONTEXT_TABLES
DBA_QUEUE_TABLES
ALL_QUEUE_TABLES
USER_QUEUE_TABLES
DBA_CACHEABLE_TABLES_BASE
DBA_CACHEABLE_TABLES
DBA_CAPTURE_PREPARED_TABLES
ALL_CAPTURE_PREPARED_TABLES
DBA_FILE_GROUP_TABLESPACES
TABLE_NAME
------------------------------
DBA_FILE_GROUP_TABLES
ALL_FILE_GROUP_TABLESPACES
ALL_FILE_GROUP_TABLES
USER_FILE_GROUP_TABLESPACES
USER_FILE_GROUP_TABLES
DBA_HIST_TABLESPACE_STAT
DBA_XML_TABLES
ALL_XML_TABLES
USER_XML_TABLES
V$TABLESPACE
GV$TABLESPACE

55 ligne(s) sÚlectionnÚe(s).

2. SELECT TABLE_NAME, COLUMN_NAME


2 FROM DICT_COLUMNS
3 WHERE COLUMN_NAME LIKE 'BLOCK%';

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
DBA_ROLLBACK_SEGS BLOCK_ID
USER_TABLES BLOCKS
USER_OBJECT_TABLES BLOCKS
USER_ALL_TABLES BLOCKS
ALL_TABLES BLOCKS
ALL_OBJECT_TABLES BLOCKS
ALL_ALL_TABLES BLOCKS
DBA_TABLES BLOCKS
DBA_OBJECT_TABLES BLOCKS
DBA_ALL_TABLES BLOCKS
USER_TAB_PARTITIONS BLOCKS

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
ALL_TAB_PARTITIONS BLOCKS
DBA_TAB_PARTITIONS BLOCKS
USER_TAB_SUBPARTITIONS BLOCKS
ALL_TAB_SUBPARTITIONS BLOCKS
DBA_TAB_SUBPARTITIONS BLOCKS
ALL_TAB_STATISTICS BLOCKS
DBA_TAB_STATISTICS BLOCKS
USER_TAB_STATISTICS BLOCKS
DBA_LOCK BLOCKING_OTHERS
DBA_DML_LOCKS BLOCKING_OTHERS
USER_SEGMENTS BLOCKS

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
DBA_SEGMENTS BLOCKS
DBA_SEGMENTS_OLD BLOCKS
USER_EXTENTS BLOCKS
DBA_EXTENTS BLOCK_ID
DBA_EXTENTS BLOCKS
DBA_UNDO_EXTENTS BLOCK_ID
DBA_UNDO_EXTENTS BLOCKS
DBA_LMT_USED_EXTENTS BLOCK
DBA_DMT_USED_EXTENTS BLOCK
USER_FREE_SPACE BLOCK_ID
USER_FREE_SPACE BLOCKS

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
DBA_FREE_SPACE BLOCK_ID
DBA_FREE_SPACE BLOCKS
DBA_LMT_FREE_SPACE BLOCK_ID
DBA_LMT_FREE_SPACE BLOCKS
DBA_DMT_FREE_SPACE BLOCK_ID
DBA_DMT_FREE_SPACE BLOCKS
DBA_FREE_SPACE_COALESCED_TMP1 BLOCKS_COALESCED
DBA_FREE_SPACE_COALESCED_TMP6 BLOCKS_COALESCED
DBA_FREE_SPACE_COALESCED BLOCKS_COALESCED
DBA_DATA_FILES BLOCKS
USER_TABLESPACES BLOCK_SIZE

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
DBA_TABLESPACES BLOCK_SIZE
DBA_TEMP_FILES BLOCKS
USER_TS_QUOTAS BLOCKS
DBA_TS_QUOTAS BLOCKS
DBA_RECOVERABLE_SCRIPT_BLOCKS BLOCK_NUM
DBA_RECOVERABLE_SCRIPT_BLOCKS BLOCK_COMMENT
DBA_RECOVERABLE_SCRIPT_ERRORS BLOCK_NUM
DBA_HIST_DATAFILE BLOCK_SIZE
DBA_HIST_FILESTATXS BLOCK_SIZE
DBA_HIST_TEMPFILE BLOCK_SIZE
DBA_HIST_TEMPSTATXS BLOCK_SIZE

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
DBA_HIST_DB_CACHE_ADVICE BLOCK_SIZE
DBA_HIST_BUFFER_POOL_STAT BLOCK_SIZE
DBA_HIST_ACTIVE_SESS_HISTORY BLOCKING_SESSION
DBA_HIST_ACTIVE_SESS_HISTORY BLOCKING_SESSION_STATUS
DBA_HIST_ACTIVE_SESS_HISTORY BLOCKING_SESSION_SERIAL#
V$DLM_ALL_LOCKS BLOCKER
V$DLM_ALL_LOCKS BLOCKED
V$DLM_LOCKS BLOCKER
V$DLM_LOCKS BLOCKED
V$GES_ENQUEUE BLOCKER
V$GES_ENQUEUE BLOCKED

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
V$GES_BLOCKING_ENQUEUE BLOCKER
V$GES_BLOCKING_ENQUEUE BLOCKED
V$GC_ELEMENT BLOCK_COUNT
V$BH BLOCK#
V$LOCK_ELEMENT BLOCK_COUNT
V$BUFFER_POOL BLOCK_SIZE
V$BUFFER_POOL_STATISTICS BLOCK_SIZE
V$CONTROLFILE BLOCK_SIZE
V$SESSION BLOCKING_SESSION
V$SESSION BLOCKING_INSTANCE
V$SESSION BLOCKING_SESSION_STATUS
TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
V$_LOCK BLOCK
V$LOCK BLOCK
V$INSTANCE BLOCKED
V$BACKUP_SET BLOCK_SIZE
V$BACKUP_DATAFILE BLOCKS_READ
V$BACKUP_DATAFILE BLOCK_SIZE
V$BACKUP_DATAFILE BLOCKS
V$BACKUP_REDOLOG BLOCK_SIZE
V$BACKUP_REDOLOG BLOCKS
V$BACKUP_CORRUPTION BLOCKS
V$BACKUP_CORRUPTION BLOCK#

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
V$COPY_CORRUPTION BLOCKS
V$COPY_CORRUPTION BLOCK#
V$DATABASE_BLOCK_CORRUPTION BLOCKS
V$DATABASE_BLOCK_CORRUPTION BLOCK#
V$PROXY_DATAFILE BLOCK_SIZE
V$PROXY_DATAFILE BLOCKS
V$PROXY_ARCHIVEDLOG BLOCK_SIZE
V$PROXY_ARCHIVEDLOG BLOCKS
V$ARCHIVED_LOG BLOCK_SIZE
V$ARCHIVED_LOG BLOCKS
V$DATAFILE_COPY BLOCK_SIZE

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
V$DATAFILE_COPY BLOCKS
V$DATAFILE_HEADER BLOCKS
V$DATAFILE BLOCK1_OFFSET
V$DATAFILE BLOCK_SIZE
V$DATAFILE BLOCKS
V$TEMPFILE BLOCK_SIZE
V$TEMPFILE BLOCKS
V$MANAGED_STANDBY BLOCKS
V$MANAGED_STANDBY BLOCK#
V$SESS_IO BLOCK_CHANGES
V$SESS_IO BLOCK_GETS

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
V$TEMPSEG_USAGE BLOCKS
V$SORT_USAGE BLOCKS
V$ENQUEUE_LOCK BLOCK
V$TRANSACTION_ENQUEUE BLOCK
V$LOGMNR_LOGS BLOCKSIZE
V$STANDBY_APPLY_SNAPSHOT BLOCKSIZE
V$STANDBY_APPLY_SNAPSHOT BLOCK#
V$DB_CACHE_ADVICE BLOCK_SIZE
V$ACTIVE_SERVICES BLOCKED
V$MUTEX_SLEEP_HISTORY BLOCKING_SESSION
GV$MUTEX_SLEEP_HISTORY BLOCKING_SESSION

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
GV$ENQUEUE_LOCK BLOCK
GV$TRANSACTION_ENQUEUE BLOCK
GV$DLM_ALL_LOCKS BLOCKER
GV$DLM_ALL_LOCKS BLOCKED
GV$DLM_LOCKS BLOCKER
GV$DLM_LOCKS BLOCKED
GV$GES_ENQUEUE BLOCKER
GV$GES_ENQUEUE BLOCKED
GV$GES_BLOCKING_ENQUEUE BLOCKER
GV$GES_BLOCKING_ENQUEUE BLOCKED
GV$GC_ELEMENT BLOCK_COUNT

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
GV$BH BLOCK#
GV$LOCK_ELEMENT BLOCK_COUNT
GV$BUFFER_POOL BLOCK_SIZE
GV$BUFFER_POOL_STATISTICS BLOCK_SIZE
GV$CONTROLFILE BLOCK_SIZE
GV$SESSION BLOCKING_SESSION
GV$SESSION BLOCKING_INSTANCE
GV$SESSION BLOCKING_SESSION_STATUS
GV$_LOCK BLOCK
GV$LOCK BLOCK
GV$DATAFILE BLOCK1_OFFSET

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
GV$DATAFILE BLOCK_SIZE
GV$DATAFILE BLOCKS
GV$TEMPFILE BLOCK_SIZE
GV$TEMPFILE BLOCKS
GV$INSTANCE BLOCKED
GV$BACKUP_SET BLOCK_SIZE
GV$BACKUP_DATAFILE BLOCKS_READ
GV$BACKUP_DATAFILE BLOCK_SIZE
GV$BACKUP_DATAFILE BLOCKS
GV$BACKUP_REDOLOG BLOCK_SIZE
GV$BACKUP_REDOLOG BLOCKS

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
GV$BACKUP_CORRUPTION BLOCKS
GV$BACKUP_CORRUPTION BLOCK#
GV$COPY_CORRUPTION BLOCKS
GV$COPY_CORRUPTION BLOCK#
GV$DATABASE_BLOCK_CORRUPTION BLOCKS
GV$DATABASE_BLOCK_CORRUPTION BLOCK#
GV$PROXY_DATAFILE BLOCK_SIZE
GV$PROXY_DATAFILE BLOCKS
GV$PROXY_ARCHIVEDLOG BLOCK_SIZE
GV$PROXY_ARCHIVEDLOG BLOCKS
GV$ARCHIVED_LOG BLOCK_SIZE

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
GV$ARCHIVED_LOG BLOCKS
GV$DATAFILE_COPY BLOCK_SIZE
GV$DATAFILE_COPY BLOCKS
GV$DATAFILE_HEADER BLOCKS
GV$MANAGED_STANDBY BLOCKS
GV$MANAGED_STANDBY BLOCK#
GV$SESS_IO BLOCK_CHANGES
GV$SESS_IO BLOCK_GETS
GV$TEMPSEG_USAGE BLOCKS
GV$SORT_USAGE BLOCKS
GV$LOGMNR_LOGS BLOCKSIZE

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
GV$STANDBY_APPLY_SNAPSHOT BLOCKSIZE
GV$STANDBY_APPLY_SNAPSHOT BLOCK#
GV$DB_CACHE_ADVICE BLOCK_SIZE
GV$ASM_FILE BLOCKS
GV$ASM_FILE BLOCK_SIZE
V$ASM_FILE BLOCKS
V$ASM_FILE BLOCK_SIZE
GV$ASM_DISKGROUP BLOCK_SIZE
V$ASM_DISKGROUP BLOCK_SIZE
GV$ASM_DISKGROUP_STAT BLOCK_SIZE
V$ASM_DISKGROUP_STAT BLOCK_SIZE

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
GV$ACTIVE_SESSION_HISTORY BLOCKING_SESSION_SERIAL#
GV$ACTIVE_SESSION_HISTORY BLOCKING_SESSION_STATUS
GV$ACTIVE_SESSION_HISTORY BLOCKING_SESSION
V$ACTIVE_SESSION_HISTORY BLOCKING_SESSION_SERIAL#
V$ACTIVE_SESSION_HISTORY BLOCKING_SESSION_STATUS
V$ACTIVE_SESSION_HISTORY BLOCKING_SESSION
GV$ACTIVE_SERVICES BLOCKED
GV$TSM_SESSIONS BLOCKING_COMPONENT
V$TSM_SESSIONS BLOCKING_COMPONENT
TABS BLOCKS
DBA_LOCKS BLOCKING_OTHERS

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
V$TEMP_EXTENT_MAP BLOCKS
V$TEMP_EXTENT_MAP BLOCK_ID
GV$TEMP_EXTENT_MAP BLOCKS
GV$TEMP_EXTENT_MAP BLOCK_ID
V$TEMP_EXTENT_POOL BLOCKS_USED
V$TEMP_EXTENT_POOL BLOCKS_CACHED
GV$TEMP_EXTENT_POOL BLOCKS_USED
GV$TEMP_EXTENT_POOL BLOCKS_CACHED
V$TEMP_SPACE_HEADER BLOCKS_FREE
V$TEMP_SPACE_HEADER BLOCKS_USED
GV$TEMP_SPACE_HEADER BLOCKS_FREE

TABLE_NAME COLUMN_NAME
------------------------------ ------------------------------
GV$TEMP_SPACE_HEADER BLOCKS_USED
V$BACKUP_FILES BLOCK_SIZE
V$BACKUP_SET_DETAILS BLOCK_SIZE

212 ligne(s) sÚlectionnÚe(s).


3. desc DICTIONARY
Nom NULL ? Type
----------------------------------------- -------- ----------------------------
TABLE_NAME VARCHAR2(30)
COMMENTS VARCHAR2(4000)

SQL> desc DBA_TAB_COLUMNS;


Nom NULL ? Type
----------------------------------------- -------- ----------------------------
OWNER NOT NULL VARCHAR2(30)
TABLE_NAME NOT NULL VARCHAR2(30)
COLUMN_NAME NOT NULL VARCHAR2(30)
DATA_TYPE VARCHAR2(106)
DATA_TYPE_MOD VARCHAR2(3)
DATA_TYPE_OWNER VARCHAR2(30)
DATA_LENGTH NOT NULL NUMBER
DATA_PRECISION NUMBER
DATA_SCALE NUMBER
NULLABLE VARCHAR2(1)
COLUMN_ID NUMBER
DEFAULT_LENGTH NUMBER
DATA_DEFAULT LONG
NUM_DISTINCT NUMBER
LOW_VALUE RAW(32)
HIGH_VALUE RAW(32)
DENSITY NUMBER
NUM_NULLS NUMBER
NUM_BUCKETS NUMBER
LAST_ANALYZED DATE
SAMPLE_SIZE NUMBER
CHARACTER_SET_NAME VARCHAR2(44)
CHAR_COL_DECL_LENGTH NUMBER
GLOBAL_STATS VARCHAR2(3)
USER_STATS VARCHAR2(3)
AVG_COL_LEN NUMBER
CHAR_LENGTH NUMBER
CHAR_USED VARCHAR2(1)
V80_FMT_IMAGE VARCHAR2(3)
DATA_UPGRADED VARCHAR2(3)
HISTOGRAM VARCHAR2(15)

SQL> select TABLE_NAME from DBA_TAB_COLUMNS where column_name='BLOCK';

TABLE_NAME
------------------------------
V_$_LOCK
V_$LOCK
GV_$ENQUEUE_LOCK
GV_$TRANSACTION_ENQUEUE
V_$ENQUEUE_LOCK
V_$TRANSACTION_ENQUEUE
GV_$_LOCK
GV_$LOCK
DBA_LMT_USED_EXTENTS
DBA_DMT_USED_EXTENTS

10 ligne(s) sÚlectionnÚe(s).

4. select TABLE_NAME from DBA_TAB_COLUMNS where column_name='BLOCK';


TABLE_NAME
------------------------------
V_$_LOCK
V_$LOCK
GV_$ENQUEUE_LOCK
GV_$TRANSACTION_ENQUEUE
V_$ENQUEUE_LOCK
V_$TRANSACTION_ENQUEUE
GV_$_LOCK
GV_$LOCK
DBA_LMT_USED_EXTENTS
DBA_DMT_USED_EXTENTS

10 ligne(s) sÚlectionnÚe(s).

5. SELECT table_name FROM all_tables WHERE owner = 'HR';

TABLE_NAME
------------------------------
REGIONS
LOCATIONS
DEPARTMENTS
JOBS
EMPLOYEES
JOB_HISTORY
COUNTRIES

7 ligne(s) sÚlectionnÚe(s).

6. SELECT owner, COUNT(*) as table_count


FROM all_tables
GROUP BY owner;

OWNER TABLE_COUNT
------------------------------ -----------
MDSYS 37
TSMSYS 1
FLOWS_020100 164
OUTLN 3
CTXSYS 37
HR 7
FLOWS_FILES 1
SYSTEM 138
DBSNMP 21
XDB 11
SYS 669

11 ligne(s) sÚlectionnÚe(s).

7. SELECT object_name, object_type, created, last_ddl_time


FROM all_objects
WHERE owner = 'HR';

OBJECT_NAME OBJECT_TYPE CREATED LAST_DDL


------------------------------ ------------------- -------- --------
REGIONS TABLE 07/02/06 07/02/06
REG_ID_PK INDEX 07/02/06 07/02/06
COUNTRIES TABLE 07/02/06 07/02/06
COUNTRY_C_ID_PK INDEX 07/02/06 07/02/06
LOCATIONS TABLE 07/02/06 07/02/06
LOC_ID_PK INDEX 07/02/06 07/02/06
LOCATIONS_SEQ SEQUENCE 07/02/06 07/02/06
DEPARTMENTS TABLE 07/02/06 07/02/06
DEPT_ID_PK INDEX 07/02/06 07/02/06
DEPARTMENTS_SEQ SEQUENCE 07/02/06 07/02/06
JOBS TABLE 07/02/06 07/02/06

OBJECT_NAME OBJECT_TYPE CREATED LAST_DDL


------------------------------ ------------------- -------- --------
JOB_ID_PK INDEX 07/02/06 07/02/06
EMPLOYEES TABLE 07/02/06 07/02/06
EMP_EMAIL_UK INDEX 07/02/06 07/02/06
EMP_EMP_ID_PK INDEX 07/02/06 07/02/06
EMPLOYEES_SEQ SEQUENCE 07/02/06 07/02/06
JOB_HISTORY TABLE 07/02/06 07/02/06
JHIST_EMP_ID_ST_DATE_PK INDEX 07/02/06 07/02/06
EMP_DETAILS_VIEW VIEW 07/02/06 07/02/06
EMP_DEPARTMENT_IX INDEX 07/02/06 07/02/06
EMP_JOB_IX INDEX 07/02/06 07/02/06
EMP_MANAGER_IX INDEX 07/02/06 07/02/06

OBJECT_NAME OBJECT_TYPE CREATED LAST_DDL


------------------------------ ------------------- -------- --------
EMP_NAME_IX INDEX 07/02/06 07/02/06
DEPT_LOCATION_IX INDEX 07/02/06 07/02/06
JHIST_JOB_IX INDEX 07/02/06 07/02/06
JHIST_EMPLOYEE_IX INDEX 07/02/06 07/02/06
JHIST_DEPARTMENT_IX INDEX 07/02/06 07/02/06
LOC_CITY_IX INDEX 07/02/06 07/02/06
LOC_STATE_PROVINCE_IX INDEX 07/02/06 07/02/06
LOC_COUNTRY_IX INDEX 07/02/06 07/02/06
SECURE_DML PROCEDURE 07/02/06 07/02/06
SECURE_EMPLOYEES TRIGGER 07/02/06 07/02/06
ADD_JOB_HISTORY PROCEDURE 07/02/06 07/02/06

OBJECT_NAME OBJECT_TYPE CREATED LAST_DDL


------------------------------ ------------------- -------- --------
UPDATE_JOB_HISTORY TRIGGER 07/02/06 07/02/06

34 ligne(s) sÚlectionnÚe(s).

8. ALTER TABLE HR.JOB_HISTORY


ADD (observation VARCHAR2(30));

Table modifiÚe.

SELECT object_name, object_type, created, last_ddl_time


FROM all_objects
WHERE owner = 'HR';

OBJECT_NAME OBJECT_TYPE CREATED LAST_DDL


------------------------------ ------------------- -------- --------
REGIONS TABLE 07/02/06 07/02/06
REG_ID_PK INDEX 07/02/06 07/02/06
COUNTRIES TABLE 07/02/06 07/02/06
COUNTRY_C_ID_PK INDEX 07/02/06 07/02/06
LOCATIONS TABLE 07/02/06 07/02/06
LOC_ID_PK INDEX 07/02/06 07/02/06
LOCATIONS_SEQ SEQUENCE 07/02/06 07/02/06
DEPARTMENTS TABLE 07/02/06 07/02/06
DEPT_ID_PK INDEX 07/02/06 07/02/06
DEPARTMENTS_SEQ SEQUENCE 07/02/06 07/02/06
JOBS TABLE 07/02/06 07/02/06

OBJECT_NAME OBJECT_TYPE CREATED LAST_DDL


------------------------------ ------------------- -------- --------
JOB_ID_PK INDEX 07/02/06 07/02/06
EMPLOYEES TABLE 07/02/06 07/02/06
EMP_EMAIL_UK INDEX 07/02/06 07/02/06
EMP_EMP_ID_PK INDEX 07/02/06 07/02/06
EMPLOYEES_SEQ SEQUENCE 07/02/06 07/02/06
JOB_HISTORY TABLE 07/02/06 07/11/23
JHIST_EMP_ID_ST_DATE_PK INDEX 07/02/06 07/02/06
EMP_DETAILS_VIEW VIEW 07/02/06 07/02/06
EMP_DEPARTMENT_IX INDEX 07/02/06 07/02/06
EMP_JOB_IX INDEX 07/02/06 07/02/06
EMP_MANAGER_IX INDEX 07/02/06 07/02/06

OBJECT_NAME OBJECT_TYPE CREATED LAST_DDL


------------------------------ ------------------- -------- --------
EMP_NAME_IX INDEX 07/02/06 07/02/06
DEPT_LOCATION_IX INDEX 07/02/06 07/02/06
JHIST_JOB_IX INDEX 07/02/06 07/02/06
JHIST_EMPLOYEE_IX INDEX 07/02/06 07/02/06
JHIST_DEPARTMENT_IX INDEX 07/02/06 07/02/06
LOC_CITY_IX INDEX 07/02/06 07/02/06
LOC_STATE_PROVINCE_IX INDEX 07/02/06 07/02/06
LOC_COUNTRY_IX INDEX 07/02/06 07/02/06
SECURE_DML PROCEDURE 07/02/06 07/02/06
SECURE_EMPLOYEES TRIGGER 07/02/06 07/02/06
ADD_JOB_HISTORY PROCEDURE 07/02/06 07/02/06

OBJECT_NAME OBJECT_TYPE CREATED LAST_DDL


------------------------------ ------------------- -------- --------
UPDATE_JOB_HISTORY TRIGGER 07/02/06 07/02/06

34 ligne(s) sÚlectionnÚe(s).

9.SELECT OBJECT_NAME, OBJECT_TYPE, OWNER


FROM ALL_OBJECTS
WHERE OBJECT_NAME IN (
SELECT GRANTED_ROLE
FROM DBA_ROLE_PRIVS
WHERE GRANTEE = 'HR'
UNION ALL
SELECT PRIVILEGE
FROM DBA_SYS_PRIVS
WHERE GRANTEE = 'HR'
UNION ALL
SELECT TABLE_NAME
FROM DBA_TAB_PRIVS
WHERE GRANTEE = 'HR'
);

OBJECT_NAME OBJECT_TYPE
------------------------------ -------------------
OWNER
------------------------------
DBMS_STATS PACKAGE
SYS

DBMS_STATS SYNONYM
PUBLIC

DBMS_STATS PACKAGE BODY


SYS

10. SELECT VIEW_NAME FROM ALL_VIEWS WHERE OWNER = 'HR';


VIEW_NAME
------------------------------
EMP_DETAILS_VIEW

11. SELECT CONSTRAINT_NAME, TABLE_NAME, CONSTRAINT_TYPE


FROM ALL_CONSTRAINTS
WHERE OWNER = 'HR';

CONSTRAINT_NAME TABLE_NAME C
------------------------------ ------------------------------ -
REGION_ID_NN REGIONS C
REG_ID_PK REGIONS P
COUNTRY_ID_NN COUNTRIES C
COUNTRY_C_ID_PK COUNTRIES P
COUNTR_REG_FK COUNTRIES R
LOC_CITY_NN LOCATIONS C
LOC_ID_PK LOCATIONS P
LOC_C_ID_FK LOCATIONS R
DEPT_NAME_NN DEPARTMENTS C
DEPT_ID_PK DEPARTMENTS P
DEPT_MGR_FK DEPARTMENTS R

CONSTRAINT_NAME TABLE_NAME C
------------------------------ ------------------------------ -
DEPT_LOC_FK DEPARTMENTS R
JOB_TITLE_NN JOBS C
JOB_ID_PK JOBS P
EMP_LAST_NAME_NN EMPLOYEES C
EMP_EMAIL_NN EMPLOYEES C
EMP_HIRE_DATE_NN EMPLOYEES C
EMP_JOB_NN EMPLOYEES C
EMP_SALARY_MIN EMPLOYEES C
EMP_EMAIL_UK EMPLOYEES U
EMP_EMP_ID_PK EMPLOYEES P
EMP_MANAGER_FK EMPLOYEES R

CONSTRAINT_NAME TABLE_NAME C
------------------------------ ------------------------------ -
EMP_JOB_FK EMPLOYEES R
EMP_DEPT_FK EMPLOYEES R
JHIST_EMPLOYEE_NN JOB_HISTORY C
JHIST_START_DATE_NN JOB_HISTORY C
JHIST_END_DATE_NN JOB_HISTORY C
JHIST_JOB_NN JOB_HISTORY C
JHIST_DATE_INTERVAL JOB_HISTORY C
JHIST_EMP_ID_ST_DATE_PK JOB_HISTORY P
JHIST_EMP_FK JOB_HISTORY R
JHIST_JOB_FK JOB_HISTORY R
JHIST_DEPT_FK JOB_HISTORY R

CONSTRAINT_NAME TABLE_NAME C
------------------------------ ------------------------------ -
SYS_C003108 EMP_DETAILS_VIEW O

34 ligne(s) sÚlectionnÚe(s).

12. SELECT
cols.COLUMN_NAME,
cons.CONSTRAINT_NAME,
cons.CONSTRAINT_TYPE,
cons.SEARCH_CONDITION,
cons.STATUS
FROM
ALL_CONSTRAINTS cons
JOIN
ALL_CONS_COLUMNS cols ON cons.CONSTRAINT_NAME = cols.CONSTRAINT_NAME
WHERE
cons.OWNER = 'HR' AND
cols.TABLE_NAME = '<nom_de_la_table>';

13.SELECT
username,
sid,
serial#,
program,
CASE
WHEN username IS NULL THEN 'PROCESS ARRIERE PLAN'
ELSE 'PROCESSUS UTILISATEUR'
END AS Ident
FROM
v$session;

USERNAME SID SERIAL#


------------------------------ ---------- ----------
PROGRAM
----------------------------------------------------------------
SYSTEM 26 155
sqlplus.exe

30 132
ORACLE.EXE (q001)

36 7
ORACLE.EXE (QMNC)

USERNAME SID SERIAL#


------------------------------ ---------- ----------
PROGRAM
----------------------------------------------------------------
38 6
ORACLE.EXE (q000)

39 1
ORACLE.EXE (MMNL)

40 1
ORACLE.EXE (MMON)

USERNAME SID SERIAL#


------------------------------ ---------- ----------
PROGRAM
----------------------------------------------------------------
41 1
ORACLE.EXE (CJQ0)

42 1
ORACLE.EXE (RECO)

43 1
ORACLE.EXE (SMON)

USERNAME SID SERIAL#


------------------------------ ---------- ----------
PROGRAM
----------------------------------------------------------------
44 1
ORACLE.EXE (CKPT)

45 1
ORACLE.EXE (LGWR)

46 1
ORACLE.EXE (DBW0)

USERNAME SID SERIAL#


------------------------------ ---------- ----------
PROGRAM
----------------------------------------------------------------
47 1
ORACLE.EXE (MMAN)

48 1
ORACLE.EXE (PSP0)

49 1
ORACLE.EXE (PMON)

15 ligne(s) sÚlectionnÚe(s).

14.SELECT status FROM v$instance;


STATUS
------------
OPEN

15. SELECT open_mode FROM v$database;


OPEN_MODE
----------
READ WRITE

16.SELECT ROUND(SUM(value)/1024/1024) AS "SGA Size (MB)" FROM v$sga;

SGA Size (MB)


-------------
768

17.SELECT pool, name, ROUND(bytes/1024/1024) AS "Size (MB)"


FROM v$sgastat
ORDER BY pool, name;

POOL NAME Size (MB)


------------ -------------------------- ----------
java pool free memory 4
large pool free memory 8
large pool PX msg pool 0
shared pool active checkp 0
shared pool Active Session History - 0
shared pool alter system errs: kspnfy 0
shared pool analytic workspace 0
shared pool AQ Propagation Scheduling 0
shared pool archive_lag_target 0
shared pool ArchLog Dest Array 0
shared pool Array of cached attr 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool ASH buffers 15
shared pool ASM file 0
shared pool ASM map operations 0
shared pool ASM rollback operations 0
shared pool Auto tune undo info 0
shared pool AW SGA 0
shared pool AWR Table Info (KEW layer 0
shared pool Background process state 0
shared pool Banner Storage 0
shared pool block media rcv state obj 0
shared pool block_sizes_array 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool bloom filter 0
shared pool branch 0
shared pool branch so 0
shared pool BRANCH TABLE SEGMENTED AR 0
shared pool broker globals 0
shared pool buffer handles 0
shared pool buffer_pool_desc_array 0
shared pool buffers waiting for write 0
shared pool call 0
shared pool CCursor 5
shared pool CGS system incarn array 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool change notification obj m 0
shared pool change notification regis 0
shared pool change tracking recovery 0
shared pool change tracking state cha 0
shared pool channel context areas 0
shared pool channel handle 0
shared pool channel sga anchor 0
shared pool character set memory 0
shared pool character set object 0
shared pool Checkpoint queue 0
shared pool cinfo_kfnsg 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool Cleanup state objects 0
shared pool Client ID trace setting h 0
shared pool Client ID trace settings 0
shared pool client/application info l 0
shared pool Closed Thread SCN Bitvec 0
shared pool constraints 0
shared pool cross-platform compliance 0
shared pool CURSOR STATS 1
shared pool database creation languag 0
shared pool database NCHAR language h 0
shared pool db_block_hash_buckets 2

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool db_files 0
shared pool dbwr actual working sets 0
shared pool DBWR event stats array 0
shared pool dbwr message active flag 0
shared pool dbwr outstanding ios per 0
shared pool dbwr suspend/resume array 0
shared pool dbwr suspend/resume ptr a 0
shared pool dbwr working sets kcbdbws 0
shared pool dbwriter coalesce bitmap 0
shared pool dbwriter coalesce buffer 1
shared pool dbwriter coalesce struct 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool dev2node map 0
shared pool dgtab_kfmdsg 0
shared pool DISPATCHER CONFIG ENTRY 0
shared pool DISPATCHER CONFIG TABLE 0
shared pool dispatcher queue 0
shared pool dispatcher rate 0
shared pool dispatcher service names 0
shared pool DISPATCHERS INFO 0
shared pool distributed_transactions- 0
shared pool dlo fib struct 0
shared pool DML lock 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool done Q child latches 0
shared pool downed inst bit vector 0
shared pool dpslut_kfdsg 0
shared pool dsktab_kfgsg 0
shared pool dummy 0
shared pool enqueue 0
shared pool enqueue resources 0
shared pool ENQUEUE STATS 0
shared pool enqueue_hash 0
shared pool enqueue_hash_chain_latche 0
shared pool error message file name 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool event classes 0
shared pool event descriptor table 0
shared pool event statistics per sess 0
shared pool event statistics ptr arra 0
shared pool event-class map 0
shared pool eventlist to post commits 0
shared pool fdhsh_kffsg 0
shared pool fdrec_kffsg 0
shared pool file # to first dba, exte 0
shared pool file # translation table 0
shared pool File Space Usage 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool FileIdentificatonBlock 0
shared pool FileOpenBlock 0
shared pool fixed allocation callback 0
shared pool free memory 94
shared pool generic process shared st 0
shared pool Global Context Heap descr 0
shared pool groups_kfgbsg 0
shared pool grplut_kfgsg 0
shared pool grptab_kfgsg 0
shared pool heap_kfsg 0
shared pool Heap0: KGL 2

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool hot latch diagnostics 0
shared pool HTTP fixed headers 0
shared pool idtab_kfksg 0
shared pool incr ckpt write count arr 0
shared pool instance cnxn information 0
shared pool invalid low rba queue 0
shared pool jsksncb: 2 0
shared pool jsksncb: 3 0
shared pool jsksncb: 4 0
shared pool jsksncb: 6 0
shared pool jsksncb: 7 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool jsksncb: 8 0
shared pool jsksncb: 9 0
shared pool JSX SGA 0
shared pool KCB buffer wait statistic 0
shared pool KCB incremental ckpt entr 0
shared pool KCB private handles 0
shared pool KCB Table Scan 0
shared pool KCB Table Scan Bitmap 0
shared pool KCB Table Scan Buffer 4
shared pool KCB undo bitvec 0
shared pool KCB where statistics arra 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool kcbl seq io throughput 0
shared pool kcbl state objects 0
shared pool kcbl statistics 0
shared pool KCK type array 0
shared pool kcrfa structures 0
shared pool kcrrny 0
shared pool kea advisor definition ca 0
shared pool kebm run-once actions 0
shared pool kebm slave descriptors 0
shared pool kebm slave message 0
shared pool kebm slave reply 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool kebm test replies 0
shared pool kelr other metrics table 0
shared pool kelr system metrics table 0
shared pool kelt translation table 0
shared pool KESTB existence bitvec 0
shared pool KESTB existence bitvec se 0
shared pool kewr MMON Remote Flush Re 0
shared pool KEWS aggregation objs 0
shared pool KEWS External IDs 0
shared pool KEWS fixed SGA 0
shared pool KEWS sesstat seg tbl 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool KEWS sesstat values 0
shared pool KEWS statistic maps 0
shared pool KEWS statistic metadata 0
shared pool KEWS statistic name 0
shared pool KEWS sysstat values 0
shared pool kfasga 0
shared pool kfdsga 0
shared pool kffsga 0
shared pool KFG SO child 0
shared pool KFG state obj 0
shared pool kfgbsg 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool kfgsga 0
shared pool KFK SGA 0
shared pool kfkhsh_kfdsg 0
shared pool kfkid hash 0
shared pool kfkid hrec 0
shared pool kfkrec_kfdsg 0
shared pool KFM state obj 0
shared pool kfmdsg 0
shared pool kfmsg 0
shared pool kga sga 0
shared pool kghx free lists 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool KGKP randnum 0
shared pool KGKP sga 0
shared pool kgl lock hash table state 0
shared pool kgllk hash table 0
shared pool KGLS heap 3
shared pool KGLS SD 0
shared pool KGLS SGA 0
shared pool KGLS SP 0
shared pool kglsim alloc latch area 0
shared pool kglsim alloc latches 0
shared pool kglsim count of pinned he 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool kglsim free heap list 0
shared pool kglsim free obj list 0
shared pool kglsim hash table 0
shared pool kglsim hash table bkts 2
shared pool kglsim heap 0
shared pool kglsim latch area 0
shared pool kglsim latches 0
shared pool kglsim main lru count 0
shared pool kglsim main lru size 0
shared pool kglsim object batch 0
shared pool kglsim pin list arr 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool kglsim recovery area 0
shared pool kglsim sga 0
shared pool kglsim size of pinned mem 0
shared pool KGSK scheduler 0
shared pool KGSK sga 0
shared pool kgsk subheap descriptor 0
shared pool KGSKI schedule 0
shared pool KGSKI scheduler heap 2 de 0
shared pool KGSKI sga 0
shared pool KGX 0
shared pool kkj jobq wor 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool kkj jobq slav 0
shared pool KKJ SGA 0
shared pool KKJ SHRD WRQS 0
shared pool KKJ WRK LAT 0
shared pool KKKI consumer 0
shared pool kks sga 0
shared pool kks stats 0
shared pool kks stats hds 0
shared pool kks stats latch 0
shared pool kks stats mem 0
shared pool kks stbkt 1

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool kksss 0
shared pool kksss-heap 0
shared pool kkzias 0
shared pool kmgsb circular statistics 0
shared pool knlsg 0
shared pool knlu_txn_init_btree:init 0
shared pool knstsg 0
shared pool kodosgi kodos 0
shared pool kodosgi kopfdo 0
shared pool koh dur heap 0
shared pool kohsg 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool kolbsgi: KOLB's SGA initi 0
shared pool kolfsgi: KOLF's SGA initi 0
shared pool kponfy 0
shared pool kpscad: kpscscon 0
shared pool kpssnfy: kpsssgct 0
shared pool kpummst global in the SGA 0
shared pool KQF optimizer stats table 0
shared pool kqlpaac:value-1 0
shared pool kqlpWrntoStr:string 0
shared pool KQR ENQ 0
shared pool KQR L SO 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool KQR M PO 2
shared pool KQR M SO 1
shared pool KQR S PO 0
shared pool KQR S SO 0
shared pool KRBMROS ANCHOR 0
shared pool KRSF SGA 0
shared pool krvxdka 0
shared pool krvxlctx 0
shared pool krvxmctx 0
shared pool ksb process so list 0
shared pool ksbtnfy: infrequent actio 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool kscdnfyglobalflags 0
shared pool kscdnfyinitflags 0
shared pool kscdnfyinithead 0
shared pool kscdnfyinitnext 0
shared pool kscdnfyinitprev 0
shared pool KSFD SGA I/O b 4
shared pool ksfd shared pool recovery 0
shared pool ksfm state object 0
shared pool KSFQ buffer pool 0
shared pool KSFV SGA 0
shared pool ksfv subheap descriptor 0
POOL NAME Size (MB)
------------ -------------------------- ----------
shared pool KSI Indexes 0
shared pool KSI resource types 0
shared pool ksim client list 0
shared pool KSIR SGA 0
shared pool ksir State Object 0
shared pool KSK SGA 0
shared pool ksleid alloc 0
shared pool ksmd unit test 1 0
shared pool KSN WaitID 0
shared pool kso req alloc 0
shared pool kso req alloc heapds 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool kspd run-time context 0
shared pool kspload:comment 0
shared pool KSQ event description 0
shared pool ksuloi: child latches for 0
shared pool ksuloi: garbage collectio 0
shared pool ksuloi: long op free list 0
shared pool ksuloi: long op statistic 0
shared pool ksuloi: long op used list 0
shared pool ksunfy: is parent statist 0
shared pool ksunfy: nodes of hierarch 0
shared pool ksunfy: system-global sta 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool ksv reaper 0
shared pool ksv slave class 0
shared pool ksws RLB SGA ctx 0
shared pool ksws service events 0
shared pool ksws service object 0
shared pool KSXR global channels 0
shared pool KSXR large reply queue 0
shared pool KSXR pending consumption 0
shared pool KSXR pending messages que 1
shared pool KSXR pending reply queue 0
shared pool KSXR receive buffers 1

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool KSXR SGA 0
shared pool KTC cch latches 0
shared pool KTC latch cleanup 0
shared pool KTC latches 0
shared pool KTCN: Hash Table Segmente 0
shared pool KTCN: Obj Invalidation Se 0
shared pool KTCN: Row Change Segmente 0
shared pool KTF MAPPINGS 0
shared pool KTI latch structure 0
shared pool KTI latches 0
shared pool KTI pool states 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool KTI-UNDO 1
shared pool ktlbk state objects 0
shared pool KTPR HIST TB 0
shared pool KTPR SUBHEAP 0
shared pool KTU lat struct 0
shared pool KTU latch cleanup 0
shared pool KTU latches 0
shared pool KTUR HIST INFO 0
shared pool KUPP subheap desc 0
shared pool kwqicaqe2kc1 0
shared pool kwqmncal: allocate buffer 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool kwqmncini-slv 0
shared pool kwqmncini-tbl 0
shared pool kwrsnfy: kwrs 0
shared pool kxfpdp pointers 0
shared pool kzekm heap descriptor 0
shared pool kzsrs filename 0
shared pool kzull 0
shared pool kzulsg SGA 0
shared pool kzulu 0
shared pool Label Cache Heap descrptr 0
shared pool latch classes 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool latch descriptor table 0
shared pool latch hashvalue table 0
shared pool latch nowait fails or sle 0
shared pool latch recovery alignment 0
shared pool latch recovery structures 0
shared pool latchnum to latch map 0
shared pool lckhsh_kffsg 0
shared pool lckhsr_kffsg 0
shared pool lcktab_kffsg 0
shared pool LGWR debug module memory 0
shared pool LGWR post requested array 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool LGWR-network Server info 0
shared pool library cache 5
shared pool list 0
shared pool LISTEN ADDRESS ENTRY 0
shared pool LISTEN ADDRESS TABLE 0
shared pool LISTEN END-POINT ENTRY 0
shared pool LISTEN END-POINT TABLE 0
shared pool listener addresses 0
shared pool Log Archive Config Contex 0
shared pool log file size history arr 0
shared pool log_checkpoint_timeout 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool log_simultaneous_copies 0
shared pool LRMPD SGA Table 0
shared pool Managed Standby Proc Arra 0
shared pool max allowable # log files 0
shared pool media recovery state obje 0
shared pool memory transfer history 0
shared pool message pool context area 0
shared pool message pool freequeue 1
shared pool messages 0
shared pool modification 0
shared pool Monitor Modification Hash 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool monitoring co 0
shared pool MS alert log 0
shared pool msg Q child latches 0
shared pool MTTR advisory context 0
shared pool multiblock re 0
shared pool mvobj part des 0
shared pool name-service entry 0
shared pool name-service request 0
shared pool name-service table 0
shared pool namhsh_kfdsg 0
shared pool namhsh_kfgsg 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool namrec_kfdsg 0
shared pool Nettimeout Histogram 0
shared pool NETWORK BUFFER 0
shared pool network connections 0
shared pool obj htab chun 0
shared pool obj stat memo 0
shared pool object level 0
shared pool object level stat table 0
shared pool object level stats hash t 0
shared pool object queue 0
shared pool object queue hash buckets 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool object queue hash table d 0
shared pool object stat dummy elem 0
shared pool object stat dummy stat 0
shared pool OS file lock 0
shared pool OS proc request holder 0
shared pool os statistics 0
shared pool osp allocation 0
shared pool osp pool handles 0
shared pool param hash values 0
shared pool parameter blocks 0
shared pool PARAMETER ENTRY 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool Parameter Handle 0
shared pool parameter handle 0
shared pool PARAMETER TABLE 0
shared pool Parameter Table 0
shared pool parameter table block 0
shared pool parameter text value 0
shared pool parameter value memory 0
shared pool partitioning d 0
shared pool PCursor 3
shared pool peplm.c:latch array 0
shared pool PG latch table 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool plis struct 0
shared pool PLS cca hp desc 0
shared pool PLS chunk 0
shared pool PLS non-lib hp 0
shared pool PL/SQL DIANA 2
shared pool PL/SQL MPCODE 2
shared pool plugin datafile array 0
shared pool plwda:PLW_STR_NEW_LEN_VEC 0
shared pool plwda:PLW_STR_NEW_RVAL 0
shared pool plwda:PLW_STR_NEW_VAL_VEC 0
shared pool plwpil:wa 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool plwppwp:garbage handle 0
shared pool plwppwp:PLW_STR_NEW_LEN_V 0
shared pool plwppwp:PLW_STR_NEW_VAL_V 0
shared pool plwshs:temphdl 0
shared pool plwspv:PLW_STR_NEW_VAL 0
shared pool Policy Cache Heap descrpt 0
shared pool policy hash table descrpt 0
shared pool post stats 0
shared pool post/wait queues 0
shared pool PQ/BizCard 0
shared pool PQ/ResSched 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool Prefetch client count per 0
shared pool Prefetch history buffer 0
shared pool Prefetch history buffer a 0
shared pool PRESENTATION TABLE 0
shared pool Pre-Warm Initialized Seti 0
shared pool primem_kfmdsg 0
shared pool prirec_kfmdsg 0
shared pool private strands 1
shared pool prmtzdini tz region 0
shared pool process group array 0
shared pool processes 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool Processor group descripto 0
shared pool procs: ksunfy 0
shared pool procs_kfgbsg 0
shared pool property service SO 0
shared pool pso child tracebuf ptrs 0
shared pool pso tbs: ksunfy 0
shared pool pspool_kfsg 0
shared pool ptr to sessions under idl 0
shared pool PX msg pool struct 0
shared pool PX QC deq stats 0
shared pool PX QC msg stats 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool PX server deq stats 0
shared pool PX server msg stats 0
shared pool PX subheap 0
shared pool PX subheap desc 0
shared pool qesmmaInitialize: 0
shared pool qesmmaInitialize: ia_qesm 0
shared pool qesmmaInitialize: oa_qesm 0
shared pool qesmmaInitialize: pa_qesm 0
shared pool qesmmaInitialize: ta_qesm 0
shared pool qm_init_sga:qmdpsg 0
shared pool qmn tasks 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool qmps connections 0
shared pool qmtb_init_data 0
shared pool qtree_kwqbsgn 0
shared pool qtree_kwqbspse 0
shared pool quiesce system context 0
shared pool quiescing session 0
shared pool recov_kgqbtctx 0
shared pool redo allocation latch(es) 0
shared pool replication session stats 0
shared pool repository 0
shared pool reservation state object 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool reserved entries for all 0
shared pool resize operation history 0
shared pool resize request state obje 0
shared pool resumable 0
shared pool returns from metrics req 1
shared pool returns from remote ops 0
shared pool row cache 4
shared pool row cache child latch 0
shared pool RTA Boundary Info thread 0
shared pool rule set evalu 0
shared pool rules engine aggregate st 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool rules engine context 0
shared pool RVWR post requested array 0
shared pool Saved job ids 0
shared pool sched job queue 0
shared pool sched job slv 0
shared pool SCHEDULING POLICY TABLE 0
shared pool SCHEDULING POLICY VECTOR 0
shared pool segmented arrays 0
shared pool SEQ S.O. 0
shared pool SERVICE NAME ENTRY 0
shared pool service names array 0
POOL NAME Size (MB)
------------ -------------------------- ----------
shared pool SERVICE NAMES TABLE 0
shared pool Service-level ID trace se 0
shared pool Service-level trace setti 0
shared pool sess Q child latches 0
shared pool session idle latches 0
shared pool sessions 0
shared pool set_descriptor_array 0
shared pool SGA - AWR Metric RBSM str 0
shared pool SGA - SWRF DrvMet Runtime 0
shared pool SGA - SWRF Metric CHBs 0
shared pool SGA - SWRF Metric Eidbuf 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool SGA - SWRF Metrics ksuTim 0
shared pool SGA - SWRF Metrics WCTime 0
shared pool SGA - SWRF RawMet Runtime 0
shared pool SGA - SWRF Time Model Bas 0
shared pool sga dev dict 0
shared pool sga listelement 0
shared pool sga node map 0
shared pool SGA Obsolete Param Source 0
shared pool SGA param ownership table 0
shared pool SGA Param Source Table 0
shared pool SGA struct - SWRF Metrics 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool SGA structure for kelr 0
shared pool SGA structure for SWRF (K 0
shared pool SHARED SERVERS INFO 0
shared pool SHRINK STAT 0
shared pool sim cache nbufs 0
shared pool sim cache sizes 0
shared pool sim kghx free lists 0
shared pool sim lru segments 0
shared pool sim segment hits 0
shared pool sim segment num bufs 0
shared pool sim state object 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool sim trace buf 0
shared pool sim trace buf context 0
shared pool sim_knlasg 0
shared pool simulator hash buckets 0
shared pool simulator hash latch 0
shared pool simulator latch/bucket st 0
shared pool slave class sga anchor 0
shared pool Sort Segment 0
shared pool sort segment handle 0
shared pool spfile callback table: ks 0
shared pool spfile cleanup structure 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool sql area 24
shared pool sql area:PLSQL 0
shared pool SQL Memory Manager Base W 0
shared pool SQL Workarea Histogram 0
shared pool stat hash values 0
shared pool State object pools 0
shared pool State object subpools 0
shared pool state objects 0
shared pool sys event stats 0
shared pool sys event stats for Other 0
shared pool system default language h 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool SYSTEM PARAMETERS 0
shared pool temp lob duration state o 0
shared pool temporary foreign ref 0
shared pool Temporary storage for RTA 0
shared pool temporary table lock 0
shared pool Temporary Tables State Ob 0
shared pool threshold ale 0
shared pool time manager context 0
shared pool trace buffer 0
shared pool trace buffer header array 0
shared pool trace events array 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool trace_knlasg 0
shared pool transaction 0
shared pool Transportable DB Converte 0
shared pool trigger condition node 0
shared pool trigger defini 0
shared pool trigger inform 0
shared pool trigger source 0
shared pool TXN TABLE SEGMENTED ARRAY 0
shared pool txncallback 0
shared pool type object de 0
shared pool UNDO INFO 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool UNDO INFO HASH 0
shared pool UNDO INFO SEGMENTED ARRAY 0
shared pool Undo Meta Data 0
shared pool UNDO STAT INFO 0
shared pool VIRTUAL CIRCUITS 0
shared pool Wait event pointers 0
shared pool Wait History 0
shared pool where to latch num map 0
shared pool work area tab 0
shared pool writes stopped lock conte 0
shared pool writes stopped lock state 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool X$KSFQP ANCHOR 0
shared pool x$ksmfs table 0
shared pool X$KSVII table 0
shared pool X$KSVIS table 0
shared pool X$KSVIT table 0
shared pool x$rule_set 0
shared pool xscalc 0
shared pool xslongops 0
shared pool xsoqmehift 0
shared pool xsoqojhift 0
shared pool xsoqophift 0

POOL NAME Size (MB)


------------ -------------------------- ----------
shared pool xsoqsehift 0
shared pool xssinfo 0
shared pool 1:kngisga 0
buffer_cache 560
fixed_sga 1
log_buffer 3

600 ligne(s) sÚlectionnÚe(s).

18.SELECT name, value


FROM v$pgastat;

NAME VALUE
---------------------------------------------------------------- ----------
aggregate PGA target parameter 268435456
aggregate PGA auto target 231699456
global memory bound 53686272
total PGA inuse 11054080
total PGA allocated 20998144
maximum PGA allocated 27617280
total freeable PGA memory 0
process count 21
max processes count 27
PGA memory freed back to OS 0
total PGA used for auto workareas 0

NAME VALUE
---------------------------------------------------------------- ----------
maximum PGA used for auto workareas 90112
total PGA used for manual workareas 0
maximum PGA used for manual workareas 0
over allocation count 0
bytes processed 272706560
extra bytes read/written 0
cache hit percentage 100
recompute count (total) 10127

19 ligne(s) sÚlectionnÚe(s).

19. CONNECT HR/HR


SELECT * FROM employees;

SELECT sql_text
FROM (
SELECT sql_text
FROM v$sqlarea
WHERE parsing_schema_name = 'HR'
ORDER BY last_active_time DESC
)
WHERE ROWNUM <= 1;

ou

SELECT sql_text
FROM v$sqlarea
WHERE parsing_schema_name = 'HR'
ORDER BY last_active_time DESC
FETCH FIRST 1 ROW ONLY;

You might also like