SlideShare une entreprise Scribd logo
1  sur  13
Automatic Data Optimization with Oracle Database 12c
As of automatic-data-optimization 12c in relate to Information Lifecycle
Management (ILM) :
In Oracle Database 12c ILM related features Advanced Compression Option.
Heat Map automatically tracks modification and query timestamps at the row
and segment levels, providing detailed insights into how data is being accessed.
Automatic Data Optimization (ADO)automatically moves and compresses data
according to user defined policies based on the information collected by Heat
Map
Heat Map and ADO make it easy to use existing innovations in Oracle
Database Compression and Partitioning technologies, which help reduce the
cost of managing large amounts of data, while also improving application and
database performance. Together these capabilities help to implement first
++++++++++++++++++++++++++++
TESTING: compression policy
++++++++++++++++++++++++++++
Step1: First create tablespace to store SH.SALES data and insert rows:
SQL> create tablespace tstado datafile
'/BPELAIT2/MONDB01/MONDB01/tstado1.dbf' size 400M reuse autoextend
off extent management loc al;
Tablespace created.
Step2: Then creating another tablespace, space_press where SH.SALES table
data may be moved for space pressure
SQL> create tablespace space_press datafile
'/BPELAIT2/MONDB01/MONDB01/sp1.dbf' size 150M;
Tablespace created.
SQL> grant dba to sh;
Grant succeeded.
Step 3: create a procedure which simulates the passage of time in this example
so that the table qualifies for ADO action (compression) even though actually
20 days have not elapsed.
SQL> CREATE OR REPLACE PROCEDURE set_stat (object_id number,
2 data_object_id number,
3 n_days number,
4 p_ts# number,
5 p_segment_access number)
6 as
7 begin
8 insert into sys.heat_map_stat$
9 (obj#,
10 dataobj#,
11 track_time,
12 segment_access,
13 ts#)
14 values
15 (object_id,
16 data_object_id,
17 sysdate - n_days,
18 p_segment_access,
19 p_ts# );
20 commit;
21 end;
22 /
Procedure created.
SQL> grant execute on set_stat to public;
Grant succeeded.
SQL> grant select any dictionary to SH;
Grant succeeded.
Step 4: Create a view used based on COMPRESSION_STAT$ table to retrieve
segment compression results after ADO action. Grant select on the view to
public and create a public synonym for the view.
SQL> CREATE OR REPLACE VIEW user_compression_stats
2 (object_name , subobject_name, avgsize_uncomp, avgsize_disk,
3 nblocks_uncmp, nblocks_oltp, nblocks_ehcc, nrows_uncmp,
4 nrows_oltp, nrows_ehcc)
5 as select b.name,
6 b.subname,
7 a.AVGROWSIZE_NC,
8 a.AVGROWSIZE_C,
9 a.NBLK_NC,
10 a.NBLK_ADVANCED,
11 a.NBLK_EHCC,
12 a.NROWS_NC,
13 a.NROWS_ADVANCED,
14 a.NROWS_EHCC
15 from sys.compression_stat$ a,
16 sys.obj$ b
17 where a.obj# = b.obj# and
18 b.owner# = userenv('SCHEMAID');
View created.
SQL> GRANT select ON user_compression_stats TO PUBLIC;
Grant succeeded.
SQL> CREATE OR REPLACE PUBLIC SYNONYM user_compression_stats FOR
sys.user_compression_stats;
Synonym created.
Step 6: Enable heat map tracking, and set the heat map tracking start time
back 25 days to ensure statistics logged after this time are valid and considered
by Automatic Data Optimization (ADO).
SQL> alter system set heat_map=on scope=both;
exec dbms_ilm_admin.set_heat_map_start(start_date => sysdate - 20);
SQL> create table sales_ado as select * from sales;
Table created.
SQL> alter table sales_ado move tablespace tstado;
Table altered.
Populte the table with some more data :
SQL>
declare
sql_test clob;
begin
for i in 1..7
loop sql_test := 'insert /*+ append */ into sh.sales_ado select * from sh.sales
where CUST_ID=3548';
execute immediate sql_test;
commit;
end loop;
end;
/
PL/SQL procedure successfully completed.
SQL> select count (*) from sh.sales_ado;
COUNT(*)
----------
920376
Step 7: Verify that heat map tracking collected statistics for the sh.sales_ado
table.
SQL>
select OBJECT_NAME,SEGMENT_WRITE_TIME , SEGMENT_READ_TIME,
FULL_SCAN
FROM dba_heat_map_segment
WHERE OBJECT_NAME='SALES_ADO'
AND OWNER = 'SH';SQL> 2 3 4
OBJECT_NAME
--------------------------------------------------------------------------------
SEGMENT_WRITE_TIME SEGMENT_READ_TIME FULL_SCAN
------------------ ------------------ ------------------
SALES_ADO
10-oct-13 10:36:25
Check Segment level
-----------------------------
col "Segment write" format A14
col "Full Scan" format A12
col "Lookup Scan" format a12
select object_name, track_time "Tracking Time",
segment_write "Segment write",
full_scan "Full Scan",
lookup_scan "Lookup Scan"
from DBA_HEAT_MAP_SEG_HISTOGRAM
WHERE OBJECT_NAME='SALES_ADO'
AND OWNER = 'SH';
OBJECT_NAME Tracking Time Segment write Full Scan Lookup Scan
------------------ -------------- ------------ ------------
SALES_ADO 10-oct-13 10:37:49 NO YES NO
CHECK THE COMPRESSION attribute
-------------------------------------------------
SQL> select compression, compress_for from dba_tables where table_name
='SALES_ADO'AND OWNER = 'SH';
COMPRESS COMPRESS_FOR
-------- ------------------------------
DISABLED
Step 8:
SQL> analyze table SH.SALES_ADO compute statistics;
Table analyzed.
SQL>
select object_name, nrows_uncmp, nrows_oltp, nrows_ehcc from
sys.user_compression_stats;SQL>
no rows selected
CREATE COMPRESSION POLICY on table SH.SALES_ADO
---------------------------------------------------
SQL> alter table SH.SALES_ADO
ILM ADD POLICY
ROW STORE COMPRESS ADVANCED
SEGMENT
AFTER 20 DAYS OF NO MODIFICATION;
Table altered.
SQL> show user
USER is "SH"
SQL> select policy_name, action_type, scope, compression_level,
condition_type, condition_days
from user_ilmdatamovementpolicies
order by policy_name;
POLICY_NAME ACTION_TYPE SCOPE COMPRESSION_LEVEL CONDITION_TYPE CONDITION_DAYS
--------------------------------------------------------------------------------------------------------------------------------------------------
P1 COMPRESSION SEGMENT ADVANCED LAST MODIFICATION TIME 20
SQL> select policy_name, object_name, inherited_from, enabled
from user_ilmobjects;
POLICY_NAME OBJECT_NAME INHERITED_FROM ENA
-------------------- ------------------------------------------------
P1 SALES_ADO POLICY NOT INHERITED YES
Step 9: We are simulating a situation where no modification has been done on
SH.SALES_ADO table for the last 20 days. Use the procedure sys.set_stat to
fake the passage of time so that compression policy qualifies for ILM action.
We are setting heat map statistics clock back by 20 days.
As SYS:
SQL> conn sys/*** as sysdba
Connected.
SQL> alter session set nls_date_format='dd-mon-yy hh:mi:ss';
Session altered.
SQL> declare
2 v_obj# number;
3 v_dataobj# number;
4 v_ts# number;
5 begin
6 select object_id, data_object_id into v_obj#, v_dataobj#
7 from all_objects
8 where object_name = 'SALES_ADO'
9 and owner = 'SH';
10 select ts# into v_ts#
11 from sys.ts$ a,
12 dba_segments b
13 where a.name = b.tablespace_name
14 and b.segment_name = 'SALES_ADO';
15 commit;
16 sys.set_stat
17 (object_id => v_obj#,
18 data_object_id => v_dataobj#,
19 n_days => 20,
20 p_ts# => v_ts#,
21 p_segment_access => 1);
22 end;
23 /
PL/SQL procedure successfully completed.
select object_name, segment_write_time
from dba_heat_map_segment
where object_name='SALES_ADO';
OBJECT_NAME SEGMENT_WRITE_TIME
------------------------------------------------------------
SALES_ADO 20-sep-13 11:03:46
16 rows selected.
SQL> !date
Thursday, 10 October 2013 11:05:30 AM EST
statistics are showing that the table was last accessed more 20 days back.
Step 10: To open and trigger the ADO policies jobs [Note: Not waiting for the
maintenance window for testing]
================================================================
SQL> conn sh/sh
Connected.
SQL> declare
v_executionid number;
begin
dbms_ilm.execute_ILM (ILM_SCOPE => dbms_ilm.SCOPE_SCHEMA,
execution_mode => dbms_ilm.ilm_execution_offline,
task_id => v_executionid);
end;
/
PL/SQL procedure successfully completed.
Step 11:
View the results of the job that completed the compression operation.
================================================================
SQL> select task_id, start_time as start_time from user_ilmtasks;
TASK_ID
----------
START_TIME
---------------------------------------------------------------------------
2
10-OCT-13 11.09.07.952584 AM
SQL> SQL> select task_id, job_name, job_state, completion_time completion
from user_ilmresults;
TASK_ID JOB_NAME JOB_STATE COMPLETION
---------------------------------------------------------------------------
2 ILMJOB2 COMPLETED SUCCESSFULLY 10-OCT-13 11.09.14.826402 AM
1 select task_id, policy_name, object_name,
2 selected_for_execution, job_name
3* from user_ilmevaluationdetails
SQL> /
TASK_ID POLICY_NAME OBJECT_NAME SELECTED_FOR_EXECUTION
------------------------------------------
JOB_NAME
-------------------------------------------------------------------------------------------------
2 P1 SALES_ADO
ILMJOB2
Step 12: Check if ADO triggered compression on SH.SALES_ADO segment.
SQL> show user
USER is "SH"
SQL> analyze table SH.SALES_ADO compute statistics;
Table analyzed.
SQL> select compression, compress_for FROM user_tables where table_name =
'SALES_ADO';
COMPRESS COMPRESS_FOR
-------- ------------------------------
ENABLED ADVANCED
SQL>
select object_name, nrows_uncmp, nrows_oltp, nrows_ehcc from
user_compression_stats;
OBJECT_NAME NROWS_UNCMP NROWS_OLTP NROWS_EHCC
----------- ---------- ----------
SALES_ADO 0 918843 0
So finish testing compression policy.
+++++++++++++++++++++++++
TESTING: TIER POLICY
+++++++++++++++++++++++++
CLEANUP Existing Policy
Check Current ILM policies on the SH.SALES_ADO table.
SQL> select * from user_ilmpolicies;
SQL> select * from user_ilmdatamovementpolicies;
Delete all ILM Policies on the SH.SALES_ADO table.
SQL> alter table SH.SALES_ADO ilm delete_all;
NOW CHECK the threshold value
-------------------------------------------
SQL> col name format A21
SQL> col value format 9999
SQL> select * from dba_ilmparameters;
NAME VALUE
--------------------- -----
ENABLED 1
JOB LIMIT 10
EXECUTION MODE 3
EXECUTION INTERVAL 15
TBS PERCENT USED 15
TBS PERCENT FREE 85
6 rows selected.
Tablespace Usage Check
----------------------------------
SQL> set linesize 300;
SQL> SELECT a.tablespace_name TBS_NAME, ROUND (a.bytes_alloc / 1024 /
1024, 0) MEGS_ALLOC,
2 ROUND (NVL (b.bytes_free, 0) / 1024 / 1024, 0) MEGS_FREE,
3 ROUND ((a.bytes_alloc - NVL (b.bytes_free, 0)) / 1024 / 1024,0)
MEGS_USED,
4 ROUND ((NVL (b.bytes_free, 0) / a.bytes_alloc) * 100, 2) PCT_FREE,
5 100 - ROUND ((NVL (b.bytes_free, 0) / a.bytes_alloc) * 100, 2) PCT_USED,
6 ROUND (maxbytes / 1048576, 2) MAX_MEGS_ALLOC,
7 100 - ROUND ((a.bytes_alloc - NVL (b.bytes_free, 0)) / maxbytes * 100, 2)
MAX_PCT_FREE,
8 ROUND ((a.bytes_alloc - NVL (b.bytes_free, 0)) / maxbytes * 100, 2)
MAX_PCT_USED
9 FROM (SELECT f.tablespace_name, SUM (f.BYTES) bytes_alloc,
10 SUM (DECODE (f.autoextensible,'YES',f.maxbytes,'NO', f.BYTES))
maxbytes
11 FROM dba_data_files f
12 GROUP BY tablespace_name) a,
13 (SELECT f.tablespace_name, SUM (f.BYTES) bytes_free
14 FROM dba_free_space f
15 GROUP BY tablespace_name) b
16 WHERE a.tablespace_name = b.tablespace_name(+)
17 ;
TBS_NAME MEGS_ALLOC MEGS_FREE MEGS_USED PCT_FREE PCT_USED MAX_MEGS_ALLOC
MAX_PCT_FREE MAX_PCT_USED
------------------------------ ---------- ---------- ---------- ---------- ---------- -------------- ------------ ------------
SYSTEM 970 4 966 .37 99.63 32767.98 97.05 2.95
MGMT_AD4J_TS 200 199 1 99.5 .5 32767.98 100 0
TSTADO 400 385 15 96.25 3.75 400 96.25 3.75
SPACE_PRESS 150 149 1 99.33 .67 150 99.33 .67
USERS 40 38 2 95.78 4.22 32767.98 99.99 .01
MGMT_ECM_DEPOT_TS 40 20 20 49.38 50.62 32767.98 99.94 .06
MGMT_TABLESPACE 500 43 457 8.51 91.49 32767.98 98.6 1.4
SYSAUX 830 46 784 5.59 94.41 32767.98 97.61 2.39
EXAMPLE 323 0 323 .02 99.98 32767.98 99.01 .99
UNDOTBS1 330 72 258 21.69 78.31 32767.98 99.21 .79
10 rows selected.
Create Policy
-----------------------
CREATE A STORAGE TIER POLICY ON TABLE SH.SALES_ADO
SQL> ALTER TABLE SH.SALES_ADO ilm ADD POLICY TIER TO
SPACE_PRESS;
Table altered.
SQL> col policy_name format a10
SQL> col tier_tbs format a20
SQL> select POLICY_NAME, ACTION_TYPE, SCOPE, TIER_TABLESPACE
2 from user_ilmdatamovementpolicies
3 order by policy_name;
POLICY_NAME ACTION_TYPE SCOPE TIER_TABLESPACE
---------------------------------------------------------------------------------
P21 STORAGE SEGMENT SPACE_PRESS
For testing: Now set the threshold value for TBS_PERCENT_FREE to (97%) and
TBS_PERCENT_USED to 3%
SQL> conn sys/*** as sysdba
Connected.
SQL> exec dbms_ilm_admin.customize_ilm(dbms_ilm_admin.tbs_percent_free,97)
PL/SQL procedure successfully completed.
SQL> exec dbms_ilm_admin.customize_ilm(dbms_ilm_admin.tbs_percent_used,3)
PL/SQL procedure successfully completed.
SQL> col name format A21
SQL> col value format 9999
SQL> select * from dba_ilmparameters;
NAME VALUE
--------------------- -----
ENABLED 1
JOB LIMIT 10
EXECUTION MODE 3
EXECUTION INTERVAL 15
TBS PERCENT USED 3
TBS PERCENT FREE 97
6 rows selected.
maintenance window to open and trigger the ADO policies jobs [Note: Not
waiting for the maintenance window for testing]
================================================================
SQL> conn sh/sh
Connected.
SQL> declare
v_executionid number;
begin
dbms_ilm.execute_ILM (ILM_SCOPE => dbms_ilm.SCOPE_SCHEMA,
execution_mode => dbms_ilm.ilm_execution_offline,
task_id => v_executionid);
end;
/
Recheck Tablespace Status
------------------------------------
SYSTEM 970 4 966 .37 99.63 32767.98 97.05 2.95
MGMT_AD4J_TS 200 199 1 99.5 .5 32767.98 100 0
TSTADO 400 399 1 99.75 .25 400 99.75 .25
SPACE_PRESS 150 135 15 90 10 150 90 10
USERS 40 38 2 95.78 4.22 32767.98 99.99 .01
MGMT_ECM_DEPOT_TS 40 20 20 49.38 50.62 32767.98 99.94 .06
MGMT_TABLESPACE 500 43 457 8.51 91.49 32767.98 98.6 1.4
SYSAUX 830 36 794 4.34 95.66 32767.98 97.58 2.42
EXAMPLE 323 0 323 .02 99.98 32767.98 99.01 .99
UNDOTBS1 330 85 245 25.83 74.17 32767.98 99.25 .75
10 rows selected.
So free space is more on TSTADO tablespace and SPACE_PRESS is showing
value for column %used.
Check the ADO task Status
--------------------------------------
SQL> select task_id, state , COMPLETION_TIME from user_ilmtasks;
2 COMPLETED 10-OCT-13 11.09.14.826402 AM
14 COMPLETED 10-OCT-13 01.53.09.689013 PM
17 COMPLETED 10-OCT-13 02.23.14.231013 PM
SQL> select table_name, tablespace_name from user_tables
2 where table_name='SALES_ADO';
TABLE_NAME TABLESPACE_NAME
-------------------------------------------
SALES_ADO SPACE_PRESS
CleanUP
----------------
Delete all ILM Policies on the SH.SALES_ADO table.
SQL> alter table SH.SALES_ADO ilm delete_all;
Table altered.
Verify that there are no ILM policies on the SH.SALES_ADO table.
SQL> select * from user_ilmdatamovementpolicies;
no rows selected
SQL> select * from user_ilmpolicies;
no rows selected
SQL> alter system set heat_map=off scope=both;
System altered.
Clean up Heat Map Statistics
-----------------------------------
SQL> exec dbms_ilm_admin.clear_heat_map_all;
PL/SQL procedure successfully completed.
SQL> select obj#, ts#, track_time from sys.heat_map_stat$;
OBJ# TS# TRACK_TIM
---------- ---------- ---------
-1 -1 10-OCT-13
Note: The above value is for the dummy stat.
So TIER Policy test has been completed for ADO.

Contenu connexe

Tendances

ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIESORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIESLudovico Caldara
 
Direct SGA access without SQL
Direct SGA access without SQLDirect SGA access without SQL
Direct SGA access without SQLKyle Hailey
 
Zero Data Loss Recovery Appliance - Deep Dive
Zero Data Loss Recovery Appliance - Deep DiveZero Data Loss Recovery Appliance - Deep Dive
Zero Data Loss Recovery Appliance - Deep DiveDaniele Massimi
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oraclesadegh salehi
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And Whatudaymoogala
 
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...Ludovico Caldara
 
Oracle Golden Gate Bidirectional Replication
Oracle Golden Gate Bidirectional ReplicationOracle Golden Gate Bidirectional Replication
Oracle Golden Gate Bidirectional ReplicationArun Sharma
 
DOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant EnvironmentsDOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant EnvironmentsStefan Oehrli
 
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdfOracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdfSrirakshaSrinivasan2
 
How to Use Oracle RAC in a Cloud? - A Support Question
How to Use Oracle RAC in a Cloud? - A Support QuestionHow to Use Oracle RAC in a Cloud? - A Support Question
How to Use Oracle RAC in a Cloud? - A Support QuestionMarkus Michalewicz
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different hostOsama Mustafa
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle ArchitectureNeeraj Singh
 
Average Active Sessions - OaktableWorld 2013
Average Active Sessions - OaktableWorld 2013Average Active Sessions - OaktableWorld 2013
Average Active Sessions - OaktableWorld 2013John Beresniewicz
 
DB2 Basic Commands - UDB
DB2 Basic Commands - UDBDB2 Basic Commands - UDB
DB2 Basic Commands - UDBSrinimf-Slides
 
[A23] Oracle移行を簡単に。レプリケーションテクノロジーを使いこなす by Keishi Miyachi
[A23] Oracle移行を簡単に。レプリケーションテクノロジーを使いこなす by Keishi Miyachi[A23] Oracle移行を簡単に。レプリケーションテクノロジーを使いこなす by Keishi Miyachi
[A23] Oracle移行を簡単に。レプリケーションテクノロジーを使いこなす by Keishi MiyachiInsight Technology, Inc.
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentationVimlendu Kumar
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsCarlos Sierra
 
ODA Backup Restore Utility & ODA Rescue Live Disk
ODA Backup Restore Utility & ODA Rescue Live DiskODA Backup Restore Utility & ODA Rescue Live Disk
ODA Backup Restore Utility & ODA Rescue Live DiskRuggero Citton
 

Tendances (20)

ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIESORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
 
Rac questions
Rac questionsRac questions
Rac questions
 
Direct SGA access without SQL
Direct SGA access without SQLDirect SGA access without SQL
Direct SGA access without SQL
 
Zero Data Loss Recovery Appliance - Deep Dive
Zero Data Loss Recovery Appliance - Deep DiveZero Data Loss Recovery Appliance - Deep Dive
Zero Data Loss Recovery Appliance - Deep Dive
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
 
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
 
Oracle Golden Gate Bidirectional Replication
Oracle Golden Gate Bidirectional ReplicationOracle Golden Gate Bidirectional Replication
Oracle Golden Gate Bidirectional Replication
 
DOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant EnvironmentsDOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant Environments
 
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdfOracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
 
How to Use Oracle RAC in a Cloud? - A Support Question
How to Use Oracle RAC in a Cloud? - A Support QuestionHow to Use Oracle RAC in a Cloud? - A Support Question
How to Use Oracle RAC in a Cloud? - A Support Question
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle Architecture
 
Average Active Sessions - OaktableWorld 2013
Average Active Sessions - OaktableWorld 2013Average Active Sessions - OaktableWorld 2013
Average Active Sessions - OaktableWorld 2013
 
DB2 Basic Commands - UDB
DB2 Basic Commands - UDBDB2 Basic Commands - UDB
DB2 Basic Commands - UDB
 
Oracle ASM Training
Oracle ASM TrainingOracle ASM Training
Oracle ASM Training
 
[A23] Oracle移行を簡単に。レプリケーションテクノロジーを使いこなす by Keishi Miyachi
[A23] Oracle移行を簡単に。レプリケーションテクノロジーを使いこなす by Keishi Miyachi[A23] Oracle移行を簡単に。レプリケーションテクノロジーを使いこなす by Keishi Miyachi
[A23] Oracle移行を簡単に。レプリケーションテクノロジーを使いこなす by Keishi Miyachi
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
ODA Backup Restore Utility & ODA Rescue Live Disk
ODA Backup Restore Utility & ODA Rescue Live DiskODA Backup Restore Utility & ODA Rescue Live Disk
ODA Backup Restore Utility & ODA Rescue Live Disk
 

En vedette

Oracle 12c: Database Table Rows Archiving testing
Oracle 12c: Database Table Rows Archiving testingOracle 12c: Database Table Rows Archiving testing
Oracle 12c: Database Table Rows Archiving testingMonowar Mukul
 
SOA Fusion Middleware installation
SOA Fusion Middleware installationSOA Fusion Middleware installation
SOA Fusion Middleware installationMonowar Mukul
 
Oracle EM12c Edit or Create Incident rules and Setup SMS alert
Oracle EM12c Edit or Create Incident rules and Setup SMS alertOracle EM12c Edit or Create Incident rules and Setup SMS alert
Oracle EM12c Edit or Create Incident rules and Setup SMS alertMonowar Mukul
 
Oracle 11g Timesten in memory Database software install
Oracle 11g Timesten in memory Database software installOracle 11g Timesten in memory Database software install
Oracle 11g Timesten in memory Database software installMonowar Mukul
 
TESTING - Drop 12c RAC Database, Database Software and GI
TESTING - Drop 12c RAC Database, Database Software and GITESTING - Drop 12c RAC Database, Database Software and GI
TESTING - Drop 12c RAC Database, Database Software and GIMonowar Mukul
 
Mission San Luis Rey
Mission San Luis ReyMission San Luis Rey
Mission San Luis Reysmacedo372
 
12c database migration from ASM storage to NON-ASM storage
12c database migration from ASM storage to NON-ASM storage12c database migration from ASM storage to NON-ASM storage
12c database migration from ASM storage to NON-ASM storageMonowar Mukul
 
12c Flex ASM: Moving to Flex ASM
12c Flex ASM: Moving to Flex ASM12c Flex ASM: Moving to Flex ASM
12c Flex ASM: Moving to Flex ASMMonowar Mukul
 
12c Database TEMPORAL VALIDITY & FLASHBACK ARCHIVE Testing
12c Database TEMPORAL VALIDITY & FLASHBACK ARCHIVE Testing12c Database TEMPORAL VALIDITY & FLASHBACK ARCHIVE Testing
12c Database TEMPORAL VALIDITY & FLASHBACK ARCHIVE TestingMonowar Mukul
 
SMS notification setup using EM12c
SMS notification setup using EM12cSMS notification setup using EM12c
SMS notification setup using EM12cMonowar Mukul
 
Oracle 12c RAC (Advanced installation - Flex ASM)
Oracle 12c RAC (Advanced installation - Flex ASM)Oracle 12c RAC (Advanced installation - Flex ASM)
Oracle 12c RAC (Advanced installation - Flex ASM)Monowar Mukul
 
Exadata I/O Resource Manager (Exadata IORM)
Exadata I/O Resource Manager (Exadata IORM)Exadata I/O Resource Manager (Exadata IORM)
Exadata I/O Resource Manager (Exadata IORM)Monowar Mukul
 
Empires of the Sea
Empires of the SeaEmpires of the Sea
Empires of the Seasmacedo372
 
Oracle 12c RAC Database Software Install and Create Database
Oracle 12c RAC Database Software Install and Create DatabaseOracle 12c RAC Database Software Install and Create Database
Oracle 12c RAC Database Software Install and Create DatabaseMonowar Mukul
 

En vedette (15)

Oracle 12c: Database Table Rows Archiving testing
Oracle 12c: Database Table Rows Archiving testingOracle 12c: Database Table Rows Archiving testing
Oracle 12c: Database Table Rows Archiving testing
 
Exadata Cell metrics
Exadata Cell metricsExadata Cell metrics
Exadata Cell metrics
 
SOA Fusion Middleware installation
SOA Fusion Middleware installationSOA Fusion Middleware installation
SOA Fusion Middleware installation
 
Oracle EM12c Edit or Create Incident rules and Setup SMS alert
Oracle EM12c Edit or Create Incident rules and Setup SMS alertOracle EM12c Edit or Create Incident rules and Setup SMS alert
Oracle EM12c Edit or Create Incident rules and Setup SMS alert
 
Oracle 11g Timesten in memory Database software install
Oracle 11g Timesten in memory Database software installOracle 11g Timesten in memory Database software install
Oracle 11g Timesten in memory Database software install
 
TESTING - Drop 12c RAC Database, Database Software and GI
TESTING - Drop 12c RAC Database, Database Software and GITESTING - Drop 12c RAC Database, Database Software and GI
TESTING - Drop 12c RAC Database, Database Software and GI
 
Mission San Luis Rey
Mission San Luis ReyMission San Luis Rey
Mission San Luis Rey
 
12c database migration from ASM storage to NON-ASM storage
12c database migration from ASM storage to NON-ASM storage12c database migration from ASM storage to NON-ASM storage
12c database migration from ASM storage to NON-ASM storage
 
12c Flex ASM: Moving to Flex ASM
12c Flex ASM: Moving to Flex ASM12c Flex ASM: Moving to Flex ASM
12c Flex ASM: Moving to Flex ASM
 
12c Database TEMPORAL VALIDITY & FLASHBACK ARCHIVE Testing
12c Database TEMPORAL VALIDITY & FLASHBACK ARCHIVE Testing12c Database TEMPORAL VALIDITY & FLASHBACK ARCHIVE Testing
12c Database TEMPORAL VALIDITY & FLASHBACK ARCHIVE Testing
 
SMS notification setup using EM12c
SMS notification setup using EM12cSMS notification setup using EM12c
SMS notification setup using EM12c
 
Oracle 12c RAC (Advanced installation - Flex ASM)
Oracle 12c RAC (Advanced installation - Flex ASM)Oracle 12c RAC (Advanced installation - Flex ASM)
Oracle 12c RAC (Advanced installation - Flex ASM)
 
Exadata I/O Resource Manager (Exadata IORM)
Exadata I/O Resource Manager (Exadata IORM)Exadata I/O Resource Manager (Exadata IORM)
Exadata I/O Resource Manager (Exadata IORM)
 
Empires of the Sea
Empires of the SeaEmpires of the Sea
Empires of the Sea
 
Oracle 12c RAC Database Software Install and Create Database
Oracle 12c RAC Database Software Install and Create DatabaseOracle 12c RAC Database Software Install and Create Database
Oracle 12c RAC Database Software Install and Create Database
 

Similaire à Oracle 12c Automatic Data Optimization (ADO) - ILM

EvolveExecutionPlans.pdf
EvolveExecutionPlans.pdfEvolveExecutionPlans.pdf
EvolveExecutionPlans.pdfPraveenPolu1
 
12c SQL Plan Directives
12c SQL Plan Directives12c SQL Plan Directives
12c SQL Plan DirectivesFranck Pachot
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01Karam Abuataya
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11gfcamachob
 
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowOTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
 
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowOTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsJohn Kanagaraj
 
D73549GC10_06.pptx
D73549GC10_06.pptxD73549GC10_06.pptx
D73549GC10_06.pptxVLQuyNhn
 
Informix Warehouse Accelerator (IWA) features in version 12.1
Informix Warehouse Accelerator (IWA) features in version 12.1Informix Warehouse Accelerator (IWA) features in version 12.1
Informix Warehouse Accelerator (IWA) features in version 12.1Keshav Murthy
 
Tony jambu (obscure) tools of the trade for tuning oracle sq ls
Tony jambu   (obscure) tools of the trade for tuning oracle sq lsTony jambu   (obscure) tools of the trade for tuning oracle sq ls
Tony jambu (obscure) tools of the trade for tuning oracle sq lsInSync Conference
 
Basic Query Tuning Primer - Pg West 2009
Basic Query Tuning Primer - Pg West 2009Basic Query Tuning Primer - Pg West 2009
Basic Query Tuning Primer - Pg West 2009mattsmiley
 
Common schema my sql uc 2012
Common schema   my sql uc 2012Common schema   my sql uc 2012
Common schema my sql uc 2012Roland Bouman
 
Common schema my sql uc 2012
Common schema   my sql uc 2012Common schema   my sql uc 2012
Common schema my sql uc 2012Roland Bouman
 
Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cuzzal basak
 

Similaire à Oracle 12c Automatic Data Optimization (ADO) - ILM (20)

EvolveExecutionPlans.pdf
EvolveExecutionPlans.pdfEvolveExecutionPlans.pdf
EvolveExecutionPlans.pdf
 
12c SQL Plan Directives
12c SQL Plan Directives12c SQL Plan Directives
12c SQL Plan Directives
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11g
 
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowOTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
 
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowOTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
 
Rmoug ashmaster
Rmoug ashmasterRmoug ashmaster
Rmoug ashmaster
 
D73549GC10_06.pptx
D73549GC10_06.pptxD73549GC10_06.pptx
D73549GC10_06.pptx
 
Oracle SQL Tuning
Oracle SQL TuningOracle SQL Tuning
Oracle SQL Tuning
 
Informix Warehouse Accelerator (IWA) features in version 12.1
Informix Warehouse Accelerator (IWA) features in version 12.1Informix Warehouse Accelerator (IWA) features in version 12.1
Informix Warehouse Accelerator (IWA) features in version 12.1
 
Tony jambu (obscure) tools of the trade for tuning oracle sq ls
Tony jambu   (obscure) tools of the trade for tuning oracle sq lsTony jambu   (obscure) tools of the trade for tuning oracle sq ls
Tony jambu (obscure) tools of the trade for tuning oracle sq ls
 
Basic Query Tuning Primer - Pg West 2009
Basic Query Tuning Primer - Pg West 2009Basic Query Tuning Primer - Pg West 2009
Basic Query Tuning Primer - Pg West 2009
 
Basic Query Tuning Primer
Basic Query Tuning PrimerBasic Query Tuning Primer
Basic Query Tuning Primer
 
Aspects of 10 Tuning
Aspects of 10 TuningAspects of 10 Tuning
Aspects of 10 Tuning
 
Sherlock holmes for dba’s
Sherlock holmes for dba’sSherlock holmes for dba’s
Sherlock holmes for dba’s
 
Common schema my sql uc 2012
Common schema   my sql uc 2012Common schema   my sql uc 2012
Common schema my sql uc 2012
 
Common schema my sql uc 2012
Common schema   my sql uc 2012Common schema   my sql uc 2012
Common schema my sql uc 2012
 
Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12c
 
query_tuning.pdf
query_tuning.pdfquery_tuning.pdf
query_tuning.pdf
 

Dernier

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 

Dernier (20)

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 

Oracle 12c Automatic Data Optimization (ADO) - ILM

  • 1. Automatic Data Optimization with Oracle Database 12c As of automatic-data-optimization 12c in relate to Information Lifecycle Management (ILM) : In Oracle Database 12c ILM related features Advanced Compression Option. Heat Map automatically tracks modification and query timestamps at the row and segment levels, providing detailed insights into how data is being accessed. Automatic Data Optimization (ADO)automatically moves and compresses data according to user defined policies based on the information collected by Heat Map Heat Map and ADO make it easy to use existing innovations in Oracle Database Compression and Partitioning technologies, which help reduce the cost of managing large amounts of data, while also improving application and database performance. Together these capabilities help to implement first ++++++++++++++++++++++++++++ TESTING: compression policy ++++++++++++++++++++++++++++ Step1: First create tablespace to store SH.SALES data and insert rows: SQL> create tablespace tstado datafile '/BPELAIT2/MONDB01/MONDB01/tstado1.dbf' size 400M reuse autoextend off extent management loc al; Tablespace created. Step2: Then creating another tablespace, space_press where SH.SALES table data may be moved for space pressure SQL> create tablespace space_press datafile '/BPELAIT2/MONDB01/MONDB01/sp1.dbf' size 150M; Tablespace created. SQL> grant dba to sh; Grant succeeded. Step 3: create a procedure which simulates the passage of time in this example so that the table qualifies for ADO action (compression) even though actually 20 days have not elapsed.
  • 2. SQL> CREATE OR REPLACE PROCEDURE set_stat (object_id number, 2 data_object_id number, 3 n_days number, 4 p_ts# number, 5 p_segment_access number) 6 as 7 begin 8 insert into sys.heat_map_stat$ 9 (obj#, 10 dataobj#, 11 track_time, 12 segment_access, 13 ts#) 14 values 15 (object_id, 16 data_object_id, 17 sysdate - n_days, 18 p_segment_access, 19 p_ts# ); 20 commit; 21 end; 22 / Procedure created. SQL> grant execute on set_stat to public; Grant succeeded. SQL> grant select any dictionary to SH; Grant succeeded. Step 4: Create a view used based on COMPRESSION_STAT$ table to retrieve segment compression results after ADO action. Grant select on the view to public and create a public synonym for the view. SQL> CREATE OR REPLACE VIEW user_compression_stats 2 (object_name , subobject_name, avgsize_uncomp, avgsize_disk, 3 nblocks_uncmp, nblocks_oltp, nblocks_ehcc, nrows_uncmp, 4 nrows_oltp, nrows_ehcc) 5 as select b.name, 6 b.subname, 7 a.AVGROWSIZE_NC, 8 a.AVGROWSIZE_C, 9 a.NBLK_NC,
  • 3. 10 a.NBLK_ADVANCED, 11 a.NBLK_EHCC, 12 a.NROWS_NC, 13 a.NROWS_ADVANCED, 14 a.NROWS_EHCC 15 from sys.compression_stat$ a, 16 sys.obj$ b 17 where a.obj# = b.obj# and 18 b.owner# = userenv('SCHEMAID'); View created. SQL> GRANT select ON user_compression_stats TO PUBLIC; Grant succeeded. SQL> CREATE OR REPLACE PUBLIC SYNONYM user_compression_stats FOR sys.user_compression_stats; Synonym created. Step 6: Enable heat map tracking, and set the heat map tracking start time back 25 days to ensure statistics logged after this time are valid and considered by Automatic Data Optimization (ADO). SQL> alter system set heat_map=on scope=both; exec dbms_ilm_admin.set_heat_map_start(start_date => sysdate - 20); SQL> create table sales_ado as select * from sales; Table created. SQL> alter table sales_ado move tablespace tstado; Table altered. Populte the table with some more data : SQL> declare sql_test clob; begin for i in 1..7 loop sql_test := 'insert /*+ append */ into sh.sales_ado select * from sh.sales where CUST_ID=3548'; execute immediate sql_test;
  • 4. commit; end loop; end; / PL/SQL procedure successfully completed. SQL> select count (*) from sh.sales_ado; COUNT(*) ---------- 920376 Step 7: Verify that heat map tracking collected statistics for the sh.sales_ado table. SQL> select OBJECT_NAME,SEGMENT_WRITE_TIME , SEGMENT_READ_TIME, FULL_SCAN FROM dba_heat_map_segment WHERE OBJECT_NAME='SALES_ADO' AND OWNER = 'SH';SQL> 2 3 4 OBJECT_NAME -------------------------------------------------------------------------------- SEGMENT_WRITE_TIME SEGMENT_READ_TIME FULL_SCAN ------------------ ------------------ ------------------ SALES_ADO 10-oct-13 10:36:25 Check Segment level ----------------------------- col "Segment write" format A14 col "Full Scan" format A12 col "Lookup Scan" format a12 select object_name, track_time "Tracking Time", segment_write "Segment write", full_scan "Full Scan", lookup_scan "Lookup Scan" from DBA_HEAT_MAP_SEG_HISTOGRAM WHERE OBJECT_NAME='SALES_ADO' AND OWNER = 'SH';
  • 5. OBJECT_NAME Tracking Time Segment write Full Scan Lookup Scan ------------------ -------------- ------------ ------------ SALES_ADO 10-oct-13 10:37:49 NO YES NO CHECK THE COMPRESSION attribute ------------------------------------------------- SQL> select compression, compress_for from dba_tables where table_name ='SALES_ADO'AND OWNER = 'SH'; COMPRESS COMPRESS_FOR -------- ------------------------------ DISABLED Step 8: SQL> analyze table SH.SALES_ADO compute statistics; Table analyzed. SQL> select object_name, nrows_uncmp, nrows_oltp, nrows_ehcc from sys.user_compression_stats;SQL> no rows selected CREATE COMPRESSION POLICY on table SH.SALES_ADO --------------------------------------------------- SQL> alter table SH.SALES_ADO ILM ADD POLICY ROW STORE COMPRESS ADVANCED SEGMENT AFTER 20 DAYS OF NO MODIFICATION; Table altered. SQL> show user USER is "SH" SQL> select policy_name, action_type, scope, compression_level, condition_type, condition_days from user_ilmdatamovementpolicies order by policy_name; POLICY_NAME ACTION_TYPE SCOPE COMPRESSION_LEVEL CONDITION_TYPE CONDITION_DAYS -------------------------------------------------------------------------------------------------------------------------------------------------- P1 COMPRESSION SEGMENT ADVANCED LAST MODIFICATION TIME 20
  • 6. SQL> select policy_name, object_name, inherited_from, enabled from user_ilmobjects; POLICY_NAME OBJECT_NAME INHERITED_FROM ENA -------------------- ------------------------------------------------ P1 SALES_ADO POLICY NOT INHERITED YES Step 9: We are simulating a situation where no modification has been done on SH.SALES_ADO table for the last 20 days. Use the procedure sys.set_stat to fake the passage of time so that compression policy qualifies for ILM action. We are setting heat map statistics clock back by 20 days. As SYS: SQL> conn sys/*** as sysdba Connected. SQL> alter session set nls_date_format='dd-mon-yy hh:mi:ss'; Session altered. SQL> declare 2 v_obj# number; 3 v_dataobj# number; 4 v_ts# number; 5 begin 6 select object_id, data_object_id into v_obj#, v_dataobj# 7 from all_objects 8 where object_name = 'SALES_ADO' 9 and owner = 'SH'; 10 select ts# into v_ts# 11 from sys.ts$ a, 12 dba_segments b 13 where a.name = b.tablespace_name 14 and b.segment_name = 'SALES_ADO'; 15 commit; 16 sys.set_stat 17 (object_id => v_obj#, 18 data_object_id => v_dataobj#, 19 n_days => 20, 20 p_ts# => v_ts#, 21 p_segment_access => 1); 22 end; 23 / PL/SQL procedure successfully completed.
  • 7. select object_name, segment_write_time from dba_heat_map_segment where object_name='SALES_ADO'; OBJECT_NAME SEGMENT_WRITE_TIME ------------------------------------------------------------ SALES_ADO 20-sep-13 11:03:46 16 rows selected. SQL> !date Thursday, 10 October 2013 11:05:30 AM EST statistics are showing that the table was last accessed more 20 days back. Step 10: To open and trigger the ADO policies jobs [Note: Not waiting for the maintenance window for testing] ================================================================ SQL> conn sh/sh Connected. SQL> declare v_executionid number; begin dbms_ilm.execute_ILM (ILM_SCOPE => dbms_ilm.SCOPE_SCHEMA, execution_mode => dbms_ilm.ilm_execution_offline, task_id => v_executionid); end; / PL/SQL procedure successfully completed. Step 11: View the results of the job that completed the compression operation. ================================================================ SQL> select task_id, start_time as start_time from user_ilmtasks; TASK_ID ---------- START_TIME --------------------------------------------------------------------------- 2 10-OCT-13 11.09.07.952584 AM
  • 8. SQL> SQL> select task_id, job_name, job_state, completion_time completion from user_ilmresults; TASK_ID JOB_NAME JOB_STATE COMPLETION --------------------------------------------------------------------------- 2 ILMJOB2 COMPLETED SUCCESSFULLY 10-OCT-13 11.09.14.826402 AM 1 select task_id, policy_name, object_name, 2 selected_for_execution, job_name 3* from user_ilmevaluationdetails SQL> / TASK_ID POLICY_NAME OBJECT_NAME SELECTED_FOR_EXECUTION ------------------------------------------ JOB_NAME ------------------------------------------------------------------------------------------------- 2 P1 SALES_ADO ILMJOB2 Step 12: Check if ADO triggered compression on SH.SALES_ADO segment. SQL> show user USER is "SH" SQL> analyze table SH.SALES_ADO compute statistics; Table analyzed. SQL> select compression, compress_for FROM user_tables where table_name = 'SALES_ADO'; COMPRESS COMPRESS_FOR -------- ------------------------------ ENABLED ADVANCED SQL> select object_name, nrows_uncmp, nrows_oltp, nrows_ehcc from user_compression_stats; OBJECT_NAME NROWS_UNCMP NROWS_OLTP NROWS_EHCC ----------- ---------- ---------- SALES_ADO 0 918843 0 So finish testing compression policy.
  • 9. +++++++++++++++++++++++++ TESTING: TIER POLICY +++++++++++++++++++++++++ CLEANUP Existing Policy Check Current ILM policies on the SH.SALES_ADO table. SQL> select * from user_ilmpolicies; SQL> select * from user_ilmdatamovementpolicies; Delete all ILM Policies on the SH.SALES_ADO table. SQL> alter table SH.SALES_ADO ilm delete_all; NOW CHECK the threshold value ------------------------------------------- SQL> col name format A21 SQL> col value format 9999 SQL> select * from dba_ilmparameters; NAME VALUE --------------------- ----- ENABLED 1 JOB LIMIT 10 EXECUTION MODE 3 EXECUTION INTERVAL 15 TBS PERCENT USED 15 TBS PERCENT FREE 85 6 rows selected. Tablespace Usage Check ---------------------------------- SQL> set linesize 300; SQL> SELECT a.tablespace_name TBS_NAME, ROUND (a.bytes_alloc / 1024 / 1024, 0) MEGS_ALLOC, 2 ROUND (NVL (b.bytes_free, 0) / 1024 / 1024, 0) MEGS_FREE, 3 ROUND ((a.bytes_alloc - NVL (b.bytes_free, 0)) / 1024 / 1024,0) MEGS_USED, 4 ROUND ((NVL (b.bytes_free, 0) / a.bytes_alloc) * 100, 2) PCT_FREE, 5 100 - ROUND ((NVL (b.bytes_free, 0) / a.bytes_alloc) * 100, 2) PCT_USED, 6 ROUND (maxbytes / 1048576, 2) MAX_MEGS_ALLOC, 7 100 - ROUND ((a.bytes_alloc - NVL (b.bytes_free, 0)) / maxbytes * 100, 2) MAX_PCT_FREE,
  • 10. 8 ROUND ((a.bytes_alloc - NVL (b.bytes_free, 0)) / maxbytes * 100, 2) MAX_PCT_USED 9 FROM (SELECT f.tablespace_name, SUM (f.BYTES) bytes_alloc, 10 SUM (DECODE (f.autoextensible,'YES',f.maxbytes,'NO', f.BYTES)) maxbytes 11 FROM dba_data_files f 12 GROUP BY tablespace_name) a, 13 (SELECT f.tablespace_name, SUM (f.BYTES) bytes_free 14 FROM dba_free_space f 15 GROUP BY tablespace_name) b 16 WHERE a.tablespace_name = b.tablespace_name(+) 17 ; TBS_NAME MEGS_ALLOC MEGS_FREE MEGS_USED PCT_FREE PCT_USED MAX_MEGS_ALLOC MAX_PCT_FREE MAX_PCT_USED ------------------------------ ---------- ---------- ---------- ---------- ---------- -------------- ------------ ------------ SYSTEM 970 4 966 .37 99.63 32767.98 97.05 2.95 MGMT_AD4J_TS 200 199 1 99.5 .5 32767.98 100 0 TSTADO 400 385 15 96.25 3.75 400 96.25 3.75 SPACE_PRESS 150 149 1 99.33 .67 150 99.33 .67 USERS 40 38 2 95.78 4.22 32767.98 99.99 .01 MGMT_ECM_DEPOT_TS 40 20 20 49.38 50.62 32767.98 99.94 .06 MGMT_TABLESPACE 500 43 457 8.51 91.49 32767.98 98.6 1.4 SYSAUX 830 46 784 5.59 94.41 32767.98 97.61 2.39 EXAMPLE 323 0 323 .02 99.98 32767.98 99.01 .99 UNDOTBS1 330 72 258 21.69 78.31 32767.98 99.21 .79 10 rows selected. Create Policy ----------------------- CREATE A STORAGE TIER POLICY ON TABLE SH.SALES_ADO SQL> ALTER TABLE SH.SALES_ADO ilm ADD POLICY TIER TO SPACE_PRESS; Table altered. SQL> col policy_name format a10 SQL> col tier_tbs format a20 SQL> select POLICY_NAME, ACTION_TYPE, SCOPE, TIER_TABLESPACE 2 from user_ilmdatamovementpolicies 3 order by policy_name; POLICY_NAME ACTION_TYPE SCOPE TIER_TABLESPACE --------------------------------------------------------------------------------- P21 STORAGE SEGMENT SPACE_PRESS
  • 11. For testing: Now set the threshold value for TBS_PERCENT_FREE to (97%) and TBS_PERCENT_USED to 3% SQL> conn sys/*** as sysdba Connected. SQL> exec dbms_ilm_admin.customize_ilm(dbms_ilm_admin.tbs_percent_free,97) PL/SQL procedure successfully completed. SQL> exec dbms_ilm_admin.customize_ilm(dbms_ilm_admin.tbs_percent_used,3) PL/SQL procedure successfully completed. SQL> col name format A21 SQL> col value format 9999 SQL> select * from dba_ilmparameters; NAME VALUE --------------------- ----- ENABLED 1 JOB LIMIT 10 EXECUTION MODE 3 EXECUTION INTERVAL 15 TBS PERCENT USED 3 TBS PERCENT FREE 97 6 rows selected. maintenance window to open and trigger the ADO policies jobs [Note: Not waiting for the maintenance window for testing] ================================================================ SQL> conn sh/sh Connected. SQL> declare v_executionid number; begin dbms_ilm.execute_ILM (ILM_SCOPE => dbms_ilm.SCOPE_SCHEMA, execution_mode => dbms_ilm.ilm_execution_offline, task_id => v_executionid); end; / Recheck Tablespace Status ------------------------------------ SYSTEM 970 4 966 .37 99.63 32767.98 97.05 2.95 MGMT_AD4J_TS 200 199 1 99.5 .5 32767.98 100 0 TSTADO 400 399 1 99.75 .25 400 99.75 .25 SPACE_PRESS 150 135 15 90 10 150 90 10
  • 12. USERS 40 38 2 95.78 4.22 32767.98 99.99 .01 MGMT_ECM_DEPOT_TS 40 20 20 49.38 50.62 32767.98 99.94 .06 MGMT_TABLESPACE 500 43 457 8.51 91.49 32767.98 98.6 1.4 SYSAUX 830 36 794 4.34 95.66 32767.98 97.58 2.42 EXAMPLE 323 0 323 .02 99.98 32767.98 99.01 .99 UNDOTBS1 330 85 245 25.83 74.17 32767.98 99.25 .75 10 rows selected. So free space is more on TSTADO tablespace and SPACE_PRESS is showing value for column %used. Check the ADO task Status -------------------------------------- SQL> select task_id, state , COMPLETION_TIME from user_ilmtasks; 2 COMPLETED 10-OCT-13 11.09.14.826402 AM 14 COMPLETED 10-OCT-13 01.53.09.689013 PM 17 COMPLETED 10-OCT-13 02.23.14.231013 PM SQL> select table_name, tablespace_name from user_tables 2 where table_name='SALES_ADO'; TABLE_NAME TABLESPACE_NAME ------------------------------------------- SALES_ADO SPACE_PRESS CleanUP ---------------- Delete all ILM Policies on the SH.SALES_ADO table. SQL> alter table SH.SALES_ADO ilm delete_all; Table altered. Verify that there are no ILM policies on the SH.SALES_ADO table. SQL> select * from user_ilmdatamovementpolicies; no rows selected SQL> select * from user_ilmpolicies; no rows selected SQL> alter system set heat_map=off scope=both; System altered.
  • 13. Clean up Heat Map Statistics ----------------------------------- SQL> exec dbms_ilm_admin.clear_heat_map_all; PL/SQL procedure successfully completed. SQL> select obj#, ts#, track_time from sys.heat_map_stat$; OBJ# TS# TRACK_TIM ---------- ---------- --------- -1 -1 10-OCT-13 Note: The above value is for the dummy stat. So TIER Policy test has been completed for ADO.