Professional Documents
Culture Documents
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.
Program Agenda
Overview Architecture Best Practices for Windows Client side tuning Windows OS Diagnostic Tools
<Insert Picture Here>
Windows 8 Enterprise
Foundation
Standard Datacenter
10gR2
Yes
11gR1
Yes
11gR2 #2
Yes
12cR1 #3
No
Yes
Yes
Yes
No
#1 RAC and some other features not supported on Windows client systems #2 RAC not supported for 32bit Windows in 11gR2 and later #3 Only Database Client is supported for 32bit Windows in 12c and later
Yes No 11.1.0.7
11.1.0.7 No No
No Yes Yes
Yes Yes Yes
10gR2
Yes 10.2.0.4 10.2.0.5 10.2.0.4 10.2.0.5 No
11gR1
Yes Yes No 11.1.0.7 No No
11gR2
Yes Yes Yes Yes Yes Planned in Patchset Planned in Patchset
12cR1
No No Yes Yes Yes Yes
Windows Vista #1
#1 RAC and some other features not supported on Windows client systems
#2 Single Instance and Client support only; RAC support planned in a future patchset
No
No
Yes # 2
future patchset
DB 11gR2 (Single Instance) planned to be certified on Windows 2008R2 and Windows 2012
http://www.oracle.com/technetwork/topics/cloud/faq-1963009.html
Program Agenda
Overview Architecture Best Practices for Windows Windows OS Diagnostic Tools Optimize CPU usage, Optimize Network, Optimize File I/O
<Insert Picture Here>
10
Code
11 Copyright 2013, Oracle and/or its affiliates. All rights reserved.
Database Architecture
Thread model, not a straight port of Oracles process
architecture 8TB maximum memory per database instance Runs as a Windows service process No limits on memory, connections, resources except those imposed by the operating system
12
File I/O
Supports asynchronous I/O to all types of files Logical and physical raw files and partitions are
13
File I/O
Full 64-bit file I/O internally. This means: No 2GB or 4GB limitations on database file
sizes.
Maximum file size is 64GB Maximum database size is 4 petabytes
14
File I/O
Asynch IO support on Windows is very good for both
file system and raw devices. No need to set INIT.ORA parameter filesystemio_options Default value of asynch is the recommended setting.
15
improve performance. To enable, set registry parameter ORA_LPENABLE x64 4kb default page size will now be 2 MB
In 12c, if Oracle Home User is a standard Windows account, the
administrator must grant the "Lock pages in memory" privilege to Oracle Home User or Service SID of Oracle Database Service (NTAUTHORITY\OracleService<sid>)
16
when using large pages especially if memory is already fragmented. Start Oracle before other processes if this affects you. Oracle Database 12c introduces a new option to allow use of large pages but it will fall back to small pages if OS is not able to allocate large pages
17
Set the value to 1 for regular mode and 2 for mixed mode
Mixed mode is a new 12c option to allow use of large pages but fall back to small
18
Memory - Numa
NUMA support for memory/scheduling
Database intelligently allocates memory and schedules threads
19
Hyperthreading
Circuitry added to Intel CPUs resulting in single CPU
20
21
System (NFS) As of 11g, Oracle Database allows direct Windows NFS v3 access
Part of DB kernel in Oracle Disk Manager library
22
23
Direct NFS
Linear scalability of direct NFS can be achieved with
aggregationOracle does load balancing rather relying on a switch. Parallel network paths More NICS more bandwidth
database servers
24
bandwidth to throttle the number of IOs queued to the system, which may improve overall performance. (Bug 13647945)
25
Program Agenda
Overview Architecture Best Practices for Windows Windows OS Diagnostic Tools Client side tuning
<Insert Picture Here>
26
Enterprise Manager
27
28
Process Explorer
29
OS Tools
tasklist, taskkill tlist (Shows command line args with -c)
driverquery
diskpart sc (sc query state= all) process monitor (regmon, filemon, procexp) tcpview Windows Services for Unix
30
Client Diagnosability
Integrated with Automatic Diagnostic Repository (ADR) OCI and Net tracing and logging uses ADR by default
31
Client Diagnosability
First Failure Capture
No need to reproduce a second time to get a dump
32
Client Characteristics
V$SESSION_CONNECT_INFO/GV$_SESSION_CONNECT_INF CLIENT_CHARSET (NLS character set) CLIENT_CONNECTION (Homogeneous/heterogeneous) CLIENT_OCI_LIBRARY (Home-based, Instant Client Full/Light) CLIENT_VERSION (client RSF version) CLIENT_DRIVER (OCI/JDBC/other) OCI_ATTR_DRIVER_NAME to set third party driver
33
34
Auto-Tuning
New in Oracle Database 12c
Automatically tune client-side OCI Statement Cache size
Low value will cause more soft parses on server, and higher network and
CPU getting cursor meta-data to client repeatedly High value will cause more memory usage on client
Auto tuning continuously monitors various parameters and adjusts size
internally to optimal performance given memory constraints specified Enable during deployment via oraaccess.xml
Out-of-the-box solution that can be used by all OCI applications to improve
performance
Freeing OCI drivers and applications from custom implementations
35
Auto-Tuning
Configuring in oraaccess.xml
<config_descriptions> <config_description> <!-- configuration description and giving it an alias --> <config_alias>foo</config_alias> <parameters> <auto_tune> <enable>true</enable> <ram_threshold>80</ram_threshold> <!--percentage--> <memory_target>100</memory_target> </auto_tune> </parameters>
</config_description>
... </config_descriptions>
36
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ODP.NET\Assem bly_Version\PerformanceCounters
37
38
CPU Tuning
ORACLE_AFFINITY registry value can be set to tell
Oracle which threads to run on which processors (same setting for all instances) ORACLE_AFFINITY must be set if more than 64 CPUs
39
group for a total of 256 logical CPUs (Support of 10 processor groups planned in a patchset) ORACLE_AFFINITY enhanced to enable affinity of Oracle threads to cpus in multiple processor groups
processorgroup is an optional parameter designating Windows CPU
group. On systems with 64+ logical CPUs, Windows divides all available CPUs into 4 groups (0,1,2,3) with each group containing no more than 64 logical CPUs
Details in Oracle Database Platform Guide 12c Release 1 (12.1) for Microsoft Windows
40 Copyright 2013, Oracle and/or its affiliates. All rights reserved.
CPU Tuning
Use Database Resource Manager to set CPU usage for
ORACLE_PRIORITY variable
41
42
increase to 200 or 300 using QUEUESIZE parameter in LISTENER.ORA prevents errors during login storms Listener Logon Storm Handler
Configurable on server side in LISTENER.ORA (RATE_LIMIT =
43
SDU in TNSNAMES.ORA
Controls SQL*Net packet size (Session Data Unit) Default SDU size in 11g, 12c is 8k. For bulk data transfer
scenarios, increase DEFAULT_SDU_SIZE in sqlnet.ora or SDU in tnsnames.ora. It can be increased up to 2 MB in 12.1, 64K as of 11.2.0.2 and 32k for earlier versions.
44
45
enough physical memory, otherwise use shared for all sessions that may be idle for some time. Continue to use dedicated server for a small number of high performance connections/queries.
47
(CONNECT_DATA= (SERVICE_NAME=sales.us.acme.com)
(SERVER=shared) ))
48
servers
Rough guidelines: 20 or 30 Shared Servers per 500 sessions, then
tune from there Use 1 dispatcher for every 50-100 sessions See Net Admin Guide for more details
49
connecting to a database server and each process needs to hold on to the database server session for a short time
50
connections to a 2 GB Database Server Pooling is optionally enabled by DBA on Server Client connect string also needs to have (SERVER=POOLED)
51
required to go from client to listener (no db processing). It can be a few seconds. (60 Seconds default in 11.2). Tune down from there. Too low false positives SQLNET.OUTBOUND_CONNECT_TIMEOUT Constrains time required to go from client to database (including db processing) from 10gR2 and later. Not set by default. These two timeouts can be used individually or at the same time
52
53
RegKey
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\Tcpip\Parameters TcpWindowSize
54
If desired, tune Window Size at the Interface Level (eg network card level) Tcpip\Parameters\Interfaces\<interfaceGUID>\ TcpWindowSize
55
56
Use this mount point as the file name for raw devices.
57 Copyright 2013, Oracle and/or its affiliates. All rights reserved.
CERN testing on 11.2 Beta: ACFS much faster than ext3 with
58
Siebel Web
PSFT EBS
DW ODS
DB Datafiles
system Accessible through NAS protocols (NFS, CIFS) Multi OS platform (Linux and Windows at initial release) Dynamic Volume Management Supported Read Only Snapshots Supported
59
Control SGA Memory by using SGA_TARGET parameter Control PGA Memory by using PGA_AGGREGATE_TARGET parameter
60
Using ORASTACK
Each thread within Oracle process is provided 1MB
reserved stack space When needed use orastack to increase stack size:
C:\ orastack oracle.exe 8000000
61
Using ORASTACK
Stop processes before running Orastack If you apply a patch, you must re-run Orastack
62
platforms Interoperability between 32-bit clients and 64-bit servers and vice versa Improved performance, availability and scalability
63
64-bit: Migration
32-bit to 64-bit upgrade process is simple
32-bit data files are compatible with 64-bit DB Only recreate control file if neccesary (eg file location changes)
No need to recreate the database Full export and import not required Database Upgrade Assistant automates process Transparent migration for end-user applications
No changes required to existing client applications when running
64
performance bug. (Fixed in 2008) 32-Bit Oracle db not supported on 64-Bit platforms 32-bit Client is supported on x64 64-bit platforms Enable Large Pages
65
not memory target). Having a fixed, non-pageable SGA with large pages (compared to dynamically growing SGA) has many benefits, in particular, stability.
66
Program Agenda
Overview Architecture Best Practices for Windows Windows OS Diagnostic Tools Client side tuning
<Insert Picture Here>
67
Add instances against same database files providing more Oracle processes and increasing number of users Provides unique scalability on Windows that no other vendor offers
68
Clusterware to handle failover of services to surviving nodes Uses Oracles own clustering software, it does not depend on MSCS
69
Starter Kit (Windows) (Doc ID 811271.1) Installation and performance best practices Also contains excellent attached illustrated installation walkthrough.
70
during installation of Oracle on Windows (be mindful of manual reboots during this time). After install, the following should be excluded from being scanned:
Oracle Software directories
OCFS filesystems ACFS filesystems
72
LMD and LMS trace generation and to prevent connectivity issues as described in Document 437101.1.
73
Heap to 1MB to prevent instability due to Desktop Heap exhaustion. See Document 744125.1 and KB947246. Consult with Microsoft for further tuning of the NonInteractive Desktop Heap beyond 1MB.
74
Rates - To aid in troubleshooting, configure Perfmon to monitor these OS statistics and to generate binary log files (.BLG). Instructions for implementing this change can be found on the Microsoft support website using the following link: http://support.microsoft.com/kb/146005 Expensive dont run all the time
75
76
features. On a computer that has a TCP/IP Offloadenabled network adapter, you may experience many network-related problems like network adapters consuming lots of nonpaged pool memory or adapters requesting large blocks of contiguous memory -- causing interference with internode communication. See Document 988008.1 and KB Articles KB948496 and KB951037 for instructions on how to fix.
77 Copyright 2013, Oracle and/or its affiliates. All rights reserved.
http://otn.oracle.com/windows christian.shay@oracle.com
78
Upcoming Sessions
Oracle Database 12c on Windows (Whats New)
Today 5:00pm-6:00pm Moscone South - 104
79
Demogrounds Booth
Moscone South, Left - S-067 Oracle Database on
Windows
80
81
82
83