Académique Documents
Professionnel Documents
Culture Documents
2: New Features
Prepared by:
Deiby Gmez
Oracle Certified Master 11g
Pythian Oracle Database Consultant
2 2014 Pythian Confidential
ADVANCED INDEX COMPRESSION
CREATE INDEX ()ON() COMPRESS ADVANCED LOW;
NO COMPRESSION
dgomez, Guatemala, 1
Jose, Canada, 1
Lucky, Mexico, 2
Performance
Compression
dgomez, Guatemala, 2
dgomez, guatemala, 3
WITH COMPRESSION
$$, 1 Prefix: $$
Jose, Canada, 1
Lucky, Mexico, 2
$$, 2
$$, 3
Its good with so many repeated values
Restrictions:
COUNT(DISTINCT expression)
Cost
APROX_COL1
----------
92611
------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost(%CPU)| Time |
------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 13 | 137 (1) |00:00:01|
| 1 | SORT AGGREGATE APPROX| | 1 | 13 | | |
| 2 | TABLE ACCESS FULL | T1 | 249K | 3166K | 137 (1) |00:00:01|
------------------------------------------------------------------------
When occurs?
Direct-path insert operations - Set the ON LOAD option to YES
Data movement operations - Set the ON DATA MOVEMENT
option to YES
o online table redefinition
o partition operations:
MOVE
MERGE
SPLIT
COALESCE
Big table cache is used for caching data for table scans.
Automatic big table caching uses temperature and object based
algorithms to track medium and big tables.
DB_BIG_TABLE_CACHE_PERCENT_TARGET
o percentage [0%,90%]
o 10% of cache for No table scans
PARALLEL_DEGREE_POLICY =AUTO | ADAPTIVE (RAC)
If a large table is approximately the size of the combined size of the big table
cache of all instances, then the table is partitioned and cached, or mostly
cached, on all instances.
V$BT_SCAN_CACHE
V$BT_SCAN_OBJ_TEMPS
Medium tables:
Allocated in memory if table size [2%,10%] of Buffer Cache size (No
official information)
Oracle analyze the date when the table was used last time
Free space in Buffer Cache
Etc
Big Tables
Big tables are not allocated in Buffer Cache
Use "KEEP to advice Oracle to allocate a big table in Buffer Cache
Medium tables:
Allocated in memory if table size [2%,10%] of Buffer Cache size (No
official information)
Oracle analyze the date when the table was used last time
Free space in Buffer Cache
Etc
Big Tables
Big tables are not allocated in Buffer Cache
Use "KEEP to advice Oracle to allocate a big table in Buffer Cache
FORCE_FULL_DB_CACHING
---------------------
YES
Algorithms to allocate small, medium and large tables are not used.
More Objects Deallocation
New object scanned, blocks deallocated.
that.
Column
Table
Materialized view
Tablespace
Partition
A query that uses operators such as the following: =, <, >, and IN
A query that selects a small number of columns from a table or materialized
view with a large number of columns
PRIORITY NONE
PRIORITY LOW
PRIORITY MEDIUM
PRIORITY HIGH
PRIORITY CRITICAL
You can access JSON data stored in the database the same
way you access other database data
**sqlnet.ora
IN SOURCE DB:
PDBSOURCE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = db12102.oraworld.com)(PORT =
1521))
(CONNECT_DATA =
(SERVER = DEDICATED)(SERVICE_NAME = pdbsource)
))
PDB1 PDB1
Datafiles Offline
PDB2 PDB2 Unnamed
PDB3 PDB3
PDB data files need to be copied to the standby database from the
primary database
12.1.0.1
Source: "Oracle Database 12c: New Features for Administrators by Oracle University
12.1.0.2
1. Set the PDB at the State you want to save.
or
12.1.0.2
PDB
o List one or more tablespaces to include.
Database Source
PDB 2
Tablespace 1 Tablespace 2
Tablespace 2
Tablespace 3
PDB 3
Tablespace 3