You are on page 1of 59

Upcoming: Oracle 12c: New Database Initialization Parameters

Upcoming Advisor Webcast Schedule

Check out Note ID : 740966.1

Select your Product Area

Scan through the list of Current Topics

Register for the session of your interest

Upcoming: Oracle 12c: New Database Initialization Parameters


Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 2
ATTENTION AUDIO Options
Option 1: Voice Streaming Audio Broadcast Option 2: Teleconference (Dial In)
No need to dial in on a telephone Requires telephone to dial in
Questions can be asked in the WebEx Q&A panel Questions can be asked over the phone or in the
WebEx Chat
Details
Conference ID: 2712566
International dial in: +44 (0) 1452 562 665
US Free call: 1866 230 1938
List with national toll free numbers is available
in Doc ID: 1148600.1
View anytime during the conference using
Communicate > Teleconference > Join
Teleconference from your WebEx menu

Upcoming: Oracle 12c: New Database Initialization Parameters


Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 3
Oracle Advisor Webcast
Oracle 12c: New Database Initialization
Parameters
Alyaa Omar
Principal Support Engineer

Nov 26, 2014

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 4


Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or
functionality described for Oracles products remains at the sole discretion of Oracle.

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 5


Oracle Advisor Webcast
Oracle 12c: New Database Initialization
Parameters
Alyaa Omar
Principal Support Engineer

Nov 26, 2014

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 6


Objectives
Learn about the new database
parameters that have been
introduced in both 12.1.0.1 and
12.1.0.2 Oracle Releases.

Functionality of those parameters

Deprecated Parameters

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 7


Agenda

1 Setting Parameters
2 New Parameters in 12.1.0.1
3 New Parameters in 12.1.0.2
4 Deprecated Parameters

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 8


Setting Parameters

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 9


Static Parameters

Init.ora

select name, value, isspecified from v$parameter


where name ='processes';

NAME VALUE ISSYS_MODIFIABLE


------------------- -------------- ---------------------------
Processes 150 FALSE

alter system set processes= 200 scope=spfile;

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 10


Dynamic Parameters

Init.ora

select name, value, issys_modifiable from v$parameter


where name ='job_queue_processes';

NAME VALUE ISSYS_MODIFIABLE


------------------- -------------- ---------------------------
job_queue_processes 1000 IMMEDIATE

alter system set job_queue_processes=1500;

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 11


Recommendations For Multitenant (Container Database)
SGA_TARGET
Min: 64MB
Max: OS Dependant

MEMORY_TARGET
Min: 152MB
Max: OS Dependant

PGA_AGGREGATE_TARGET
Min: 10MB
Max: 4096 GB - 1

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 12


12.1.0.1 Parameters

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 13


Memory Management

PGA_AGGREGATE_LIMIT
Default Value: > of 2 GB, 200% of PGA_AGGREGATE_TARGET, and 3*PROCESSES
Other Values: PGA_AGGREGATE_LIMIT = integer [K | M | G]

alter system set pga_aggregate_limit= 2G;

Advantages:
Makes sure PGA is not abused

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 14


UNIFIED_AUDIT_SGA_QUEUE_SIZE
Default Value: 1MB
Other Values: UNIFIED_AUDIT_SGA_QUEUE_SIZE= 1- 30MB

Init.ora:
UNIFIED_AUDIT_SGA_QUEUE_SIZE= 30M

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 15


Network

CONNECTION_BROKERS
Default Value: DEDICATED OR EMON
Other Values: DEDICATED|EMON|POOLED

alter system set connection_brokers = ((TYPE=DEDICATED)(BROKERS=2))

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 16


USE_DEDICATED_BROKER
Default Value: FALSE
Other Values: TRUE|FALSE

alter system set use_dedicated_broker = TRUE;

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 17


Multitenant

ENABLE_PLUGGABLE_DATABASE
Default Value: FALSE
Other Values: TRUE|FALSE

Init.ora:
Enable_pluggable_database=true

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 18


PDB_FILE_NAME_CONVERT
Default Value: NONE
Other Values: pdb_file_name_convert = existing filename,new filename

alter system/session set PDB_FILE_NAME_CONVERT =


'/dbs/t1/','/dbs/t1/s_','dbs/t2/ ','dbs/t2/s_

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 19


NONCDB_COMPATIBLE
Default Value: FALSE
Other Values: TRUE|FALSE

Init.ora:
Noncdb_compatible = true

Advantages:
Allows commands that are not permitted in PDB to run successfully

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 20


Optimizer

OPTIMIZER_ADAPTIVE_FEATURES
Default Value: TRUE
Other Values: TRUE|FALSE

alter system/session set optimizer_adaptive_features= TRUE;

Advantages:
Enhances optimizer performance

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 21


Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 22
Copyright 2014 Oracle and/or its affiliates. All rights reserved. |
OPTIMIZER_ADAPTIVE_REPORTING_ONLY
Default Value: FALSE
Other Values: TRUE|FALSE

alter system/session set optimizer_adaptive_reporting_only= TRUE;

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 24


Undo Management

TEMP_UNDO_ENABLED
Default Value: FALSE
Other Values: TRUE|FALSE

alter system/session set temp_undo_enabled= TRUE;

Advantages:
Reduces the sizes of the undo and redo logs
Faster flashback operations

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 25


Demonstration

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 26


Resource Management

PROCESSOR_GROUP_NAME
Default Value: NONE
Other Values: PROCESSOR_GROUP_NAME = <name of the processor group>

Init.ora:
Processor_group_name = admingroup

Advantages:
Limits specific instances to use specific CPU cores

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 27


THREADED_EXECUTION
Default Value: FALSE
Other Values: TRUE|FALSE

Init.ora:
THREADED_EXECUTION = TRUE

$ ps -ef|grep -i ora_

oracle xxx ? 00:00:00 ora_pmon_mydb12c


oracle xxx ? 00:00:00 ora_psp0_mydb12c
oracle xxx ? 00:00:00 ora_vktm_mydb12c
oracle xxx ? 00:00:00 ora_u004_mydb12c
oracle xxx ? 00:00:00 ora_u005_mydb12c
oracle xxx ? 00:00:00 ora_dbw0_mydb12c

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 28


Other Parameters

DB_INDEX_COMPRESSION_INHERITANCE
Default Value: NONE
Other Values: TABLESPACE|TABLE|ALL|NONE

alter system/session set db_index_compression_inheritance= ALL;

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 29


MAX_STRING_SIZE
Default Value: STANDARD
Other Values: STANDARD|EXTENDED

STARTUP UPGRADE
alter system set max_string_size= EXTENDED;
Run utl32k.sql script
STARTUP NORMAL
Run utlrp.sql

Advantages:
Go from 4K to 32K

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 30


DNFS_BATCH_SIZE
Default Value: 4096
Other Values: DNFS_BATCH_SIZE= 0 - 4096

Init.ora:
DNFS_BATCH_SIZE= 0

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 31


HEAT_MAP
Default Value: OFF
Other Values: ON|OFF

alter system/session set heat_map= ON;

Advantages:
Reduces cost
Improves performance
Improves access time for current and archived data

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 32


12.1.0.2 Parameters

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 33


INMEMORY Database Option

Pool in the SGA


Columnar vs Row Format
Levels: Column, Table, Mview, Tablespace, Partition
INMEMORY_SIZE and INMEMORY_QUERY
Requires Additional License

Copyright 2014 Oracle and/or its affiliates. All rights reserved. |


In-Memory

INMEMORY_SIZE
Default Value: 0
Other Values: 100M Remaining memory from SGA

alter system set INMEMORY_SIZE =0;

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 35


INMEMORY_QUERY
Default Value: ENABLE
Other Values: ENABLE|DISABLE

ALTER SYSTEM/SESSION INMEMORY_QUERY = DISABLE;

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 36


INMEMORY_CLAUSE_DEFAULT
Default Value: NOMEMORY
Other Values:
- Memory Clause: INMEMORY|NOMEMORY
- Compression Clause: NOMEMCOMPRESS|COMPRESSMEM FOR (DML|QUERY|CAPACITY)
- Priority Clause: NONE|LOW|MEDIUM|HIGH|CRITICAL
- Rac Clause:
- Distribute Clause: AUTO|BY ROWID RANGE|BY PARTITION|BY SUBPARTITION
- Duplicate Clause: NO DUPLICATE|DUPLICATE|DUPLICATE ALL

alter system/session set INMEMORY_CLAUSE_DEFAULT='INMEMORY MEMCOMPRESS FOR


QUERY LOW PRIORITY LOW DISTRIBUTE AUTO DUPLICATE ALL' scope=both;

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 37


INMEMORY_FORCE
Default Value: DEFAULT
Other Values: DEFAULT|OFF

alter system set INMEMORY_FORCE=OFF;

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 38


INMEMORY_MAX_POPULATE_SERVERS
Default Value: < CPU thread count OR PGA_AGGREGATE_TARGET/512MB
Other Values: 0 - a value based on the number of CPU cores

ALTER SYSTEM INMEMORY_MAX_POPULATE_SERVERS= 0

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 39


INMEMORY_TRICKLE_REPOPULATE_SERVERS_PERCENT
Default Value: 1
Other Values: 0 - 50

ALTER SYSTEM INMEMORY_TRICKLE_REPOPULATE_SERVERS_PERCENT = 50;

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 40


OPTIMIZER_INMEMORY_AWARE
Default Value: TRUE
Other Values: TRUE|FALSE

ALTER SYSTEM/SESSION OPTIMIZER_INMEMORY_AWARE = FALSE;

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 41


SQL> select distinct tablespace_name from aomar.inmemtab order by 1;

TABLESPACE_NAME
------------------------------
SYSAUX
SYSTEM
USERS
Elapsed: 00:00:15.05

SQL> select distinct tablespace_name from aomar.inmemtab order by 1;

TABLESPACE_NAME
------------------------------
SYSAUX
SYSTEM
USERS
Elapsed: 00:00:01.42

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 42


SQL> alter table aomar.inmemtab inmemory;

SQL> select distinct tablespace_name from aomar.inmemtab order by 1;

TABLESPACE_NAME
------------------------------
SYSAUX
SYSTEM
USERS
Elapsed: 00:00:00.50

---------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time
|
---------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 13 | 26132 (2)|
00:00:02 |
| 1 | SORT UNIQUE | | 1 | 13 | 25993 (1)|
00:00:02 |
| 2 | TABLE ACCESS INMEMORY FULL| INMEMTAB | 5470K| 67M| 26 (100)|
00:00:01 |
---------------------------------------------------------------------------------

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 43


SQL> select segment_name, bytes/1024/1024 from dba_segments where owner=AOMAR';

SEGMENT_NAME BYTES/1024/1024
----------------- ---------------
INMEMTAB 621
INMEMTAB_IX1 192

SQL> select SEGMENT_NAME, SEGMENT_TYPE, INMEMORY_SIZE/1024/1024, BYTES/1024/1024,


from V$IM_SEGMENTS;

SEGMENT_NAME SEGMENT_TYPE INMEMORY_SIZE/1024/1024 BYTES/1024/1024


------------ ------------ ----------------------- -------------
INMEMTAB TABLE 23 621

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 44


Other Parameters

COMMON_USER_PREFIX
Default Value: C##
Other Values: Any prefix/string

Init.ora:
COMMON_USER_PREFIX = CMN#

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 45


DBFIPS_140
Default Value: FALSE
Other Values: TRUE|FALSE

Init.ora:
DBFIPS_140= TRUE

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 46


Deprecated Parameters
SELECT name from v$parameter WHERE isdeprecated = 'TRUE' ORDER BY name
active_instance_count parallel_server_instances
background_dump_dest plsql_debug
buffer_pool_keep plsql_v2_compatibility
buffer_pool_recycle rdbms_server_dn
commit_write remote_os_authent
cursor_space_for_time resource_manager_cpu_allocation
fast_start_io_target sec_case_sensitive_logon
global_context_pool_size serial_reuse
instance_groups sql_trace
lock_name_space standby_archive_dest
log_archive_start user_dump_dest
max_enabled_roles

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 47


Summary
What we covered today

Setting of Parameters
New Parameters in 12.1.0.1 and 12.1.0.2
Usage, Settings and Benefits
Deprecated Parameters

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 48


Top Articles and Community Links
Include any specific links to relevant KM
articles here.

Include a link to pre-defined Q&A thread in


the appropriate KM Community The
following thread will have a copy of the
presentation and can be used for additional
questions or discussions on this topic.
(POST THREAD)

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 49


Q&A
To ask a question on the phone
line, select *1 on your phone.
To ask a question online, use the
Q&A area at the top.
Your question will be read aloud in
the order received.
Question can also be asked on the
My Oracle Support Communities

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 50


Question and Answer Instructions

Q&A panel

3
Send your question
2
Ask: ALL PANELLIST leave default!

1
type your question here

Copyright 2014 Oracle and/or its affiliates. All rights reserved. |


Oracle Advisor Webcast Program
Locating Current Schedule & Archived Recordings

From Note ID : 740966.1 drill


down to your area of interest

Select your Product Area

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 52


Oracle Advisor Webcast Program
Locating Current Schedule & Archived Recordings For DB

Note:
Click column headings to sort
Hover on Webcast Title for more
information
Recordings available within 48
hours
Advisor Webcast Questions on a
webcast or ask questions via the
Questions? link

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 53


Learn More
Available References and Resources to Get Proactive

My Oracle Support Essentials Webcast Series


https://support. oracle.com | Doc ID: 553747.1

My Oracle Support Blog


https://blogs.oracle.com/supportportal/

Get Proactive in My Oracle Support


https://support. oracle.com | Doc ID: 432.1

Ask the Get Proactive Team


get-proactive_ww@oracle.com

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 54


Accessing My Oracle Support Community
1. Via My Oracle Support -> Community Tab 2. Directly https://communities.oracle.com

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 55


Where Can I Get Slides and Recording From This Session?
1. PDF link and recording link from Doc ID 740966.1 (within 48 hours)
2. Oracle Database > Database Administration > Content Tab > Documents
(within 24 hours)

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 56


Session Related Community Links

The following thread will have a copy


of the presentation and can be used
for additional questions or discussions
on this topic.

https://community.oracle.com/thread/
3623301

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 57


THANK YOU

Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 58


Copyright 2014 Oracle and/or its affiliates. All rights reserved. | 59