Upload
lenhu
View
246
Download
2
Embed Size (px)
Citation preview
Installing, Tuning, and Deploying Oracle Database on SUSE® Linux Enterprise Server 12Technical Introduction
Arun SinghSr. Technical Manager
2
Agenda
• Introduction
• SUSE Components
• Oracle Components
• Installation‒ Grid Infrastructure
‒ Database
• Tuning
• Q&A
3
SUSE & OracleTechnology Partner
• Strong Partnership‒ 800+ certified Oracle Apps in SUSE ISV Catalog
‒ Relationship since first Oracle version 8.0.5 on SUSE® 6.0
‒ Testing, supporting partners/customers on technical issues
‒ Bugs, customer problem escalation, future features, etc.
‒ Combined testing efforts - service packs and Oracle patches
• Oracle products are certified to run on SUSE® Linux Enterprise Server
‒ Supported platforms : Linux x86-64 and IBM System z
SUSE Components
5
SoftwareSelect Oracle Server Base (orarun)
6
Oracle Server Base (orarun)What it provides?
Helps to meet Oracle Database Installation prerequisites:
‒ Creates user
‒ oracle
‒ Creates groups
‒ dba, oinstall
‒ Install required packages
‒ Sets required SUSE Linux Enterprise kernel parameters
‒ Sets Oracle environment variables
‒ ORACLE_SID
‒ ORACLE_BASE
‒ ORACLE_HOME
7
Oracle Server Base (orarun) Adopting new directory location
Steps to change default /opt/oracle to /home/oracle:‒ Creates new directory : $mkdir /home/oracle
‒ Set proper owner & groups
‒ $chown oracle /home/oracle
‒ $chgrp oinstall /home/oracle
‒ Set ORACLE_BASE=/home/oracle in /etc/sysconfig/oracle
‒ Change ORACLE_BASE in /etc/profile.d/oracle.s[sh]
‒ ORACLE_BASE=/home/oracle
8
Oracle Database StorageFile System
Storage/File System‒ XFS
‒ Oracle ASM
‒ ASMLib
‒ ASM Cluster File System
‒ NFS/NAS
‒ OCFS2
‒ Part of SLE12 HAE
Note: “raw” storage in not supported
9
SUSE Linux InstallFile System Selection
Oracle Components
11
Oracle DatabaseSupport/Certification Matrix
Name (Version) SLES10 (SP4) SLES11 (SP3) SLES12
10gR2 (10.2.0.5)
11gR2 (11.2.0.4) Validated
12cR1 (12.1.0.2) Validated
12
Oracle Database SoftwareDownload & Unzip Locally
• Oracle Database 11gR2‒ p13390677_112040_Linux-x86-64_1of7.zip
‒ p13390677_112040_Linux-x86-64_2of7.zip
• Oracle Database 12cR1‒ linuxamd64_12102_database_1of2.zip
‒ linuxamd64_12102_database_2of2.zip
Change “CV_ASUME_DISTID=SUSE11” in database/stage/cvu/cv/admin/cvu_config
13
Oracle Grid Infrastructure SoftwareDownload & Unzip Locally
Includes Oracle Clusterware & Oracle ASM
• Oracle Grid Infrastructure 11gR2‒ p13390677_112040_Linux-x86-64_3of7.zip
• Oracle Grid Infrastructure 12cR1‒ linuxamd64_12102_grid_1of2.zip
‒ linuxamd64_12102_grid_2of2.zip
Change “CV_ASUME_DISTID=SUSE11” in grid/stage/cvu/cv/admin/cvu_config
InstallationOracle Grid Infrastructure
15
Oracle Grid InfrastructurePrepare
• Oracle recommends creating separate user/groups for Grid Infrastructure & Database
‒ Create user grid
‒ Create asmdba, asmadmin groups
• Create raw disk partitions to be used by Oracle ASM
• Set owner/group of ASM disks‒ Use udev rules for boot persistence
• Check & Install libcap1 packages‒ To avoid clscfg.bin error at install time
16
InstallationOracle Grid Infrastructure
17
InstallationOracle Grid Infrastructure
Start Installation: grid/runInstaller
18
InstallationOracle Grid Infrastructure
19
InstallationOracle Grid Infrastructure
20
InstallationOracle Grid Infrastructure
21
InstallationOracle Grid Infrastructure
22
InstallationOracle Grid Infrastructure
23
InstallationOracle Grid Infrastructure
24
InstallationOracle Grid Infrastructure
25
InstallationOracle Grid Infrastructure
26
InstallationOracle Grid Infrastructure
Note: Verify these warnings manually & then select “Ignore”
27
InstallationOracle Grid Infrastructure
Note: Save response file to use later for unattended install.
28
InstallationOracle Grid Infrastructure
29
InstallationOracle Grid Infrastructure
30
InstallationOracle Grid Infrastructure
31
InstallationOracle Grid Infrastructure
32
InstallationOracle Grid Infrastructure
33
InstallationOracle Grid Infrastructure
InstallationOracle Database
35
InstallationSUSE Linux Enterprise Server 12
Note: Static IP Address
36
InstallationOracle Database 12c
Start Installation: database/runInstaller
37
InstallationOracle Database 12c
38
InstallationOracle Database 12c
39
InstallationOracle Database 12c
40
InstallationOracle Database 12c
41
InstallationOracle Database 12c
42
InstallationOracle Database 12c
43
InstallationOracle Database 12c
Note: Verify these warnings manually & then select “Ignore”
44
InstallationOracle Database 12c
Note: Save response file to use later for unattended install.
45
InstallationOracle Database 12c
46
InstallationOracle Database 12c
47
InstallationOracle Database 12c
48
InstallationOracle Database 12c
49
InstallationOracle Database 12c
Note: Change Oracle Database start settings in /etc/oratab & /etc/sysconfig/oracle, so that database starts after server reboot.
50
InstallationOracle Database 11gR2
Note: Fix above error & select “Retry”
51
InstallationOracle Database 11gR2
Note: Ignore this error as libaio1 is new name for libaio
Tuning
53
TuningOptimize
• Storage/File System
• SUSE Linux Enterprise Server OS
‒ iostat/vmstat/top
‒ I/O scheduler‒ elevator=cfq/noop/deadline
‒ echo cfq/noop/deadline > /sys/block/DEVICE/queue/scheduler
• Oracle Database
‒ Configure & use “hugepages”
‒ Distribute “redo log” files
54
Tuning Server Report
• Oracle Enterprise Manager
‒ Configure Parameters
‒ Analyze Performance
• AWR (Automatic Workload Repository)‒ Create Snapshot:
SQL>EXEC DBMS_WORKLOAD_REPOSITORY.create_snapshot;
- run workload/test
SQL>EXEC DBMS_WORKLOAD_REPOSITORY.create_snapshot;
‒ Generate html report (in current working directory):
‒ SQL>@$ORACLE_HOME/rdbms/admin/awrrpt.sql
55
TuningOracle Enterprise Manager
56
TuningAWR Snapshot
57
TuningAWR Demo Report
58
Installation & TuningHelpful Documents
• Oracle Database Installation (11gR2/12cR1) ‒ http://ftp.suse.com/pub/partners/oracle/docs/OracleDB_on_SLES
12.pdf
• SUSE Linux Enterprise System Analysis & Tuning‒ https://www.suse.com/documentation/sles-12/pdfdoc/book_sle_tu
ning/book_sle_tuning.pdf
• Oracle Database Performance Tuning‒ http://docs.oracle.com/database/121/TGDBA/E49058-05.pdf
59
SUSE Linux – Misc.Oracle Software and Support
• SUSE Software‒ http://www.suse.com/download-linux
‒ http://www.suse.com/oracle
• Oracle Software ‒ http://download.oracle.com
‒ https://edelivery.oracle.com/
• Oracle Support ‒ http://support.oracle.com (Metalink)
Thank you.
60
Questions & Answers
Corporate HeadquartersMaxfeldstrasse 590409 NurembergGermany
+49 911 740 53 0 (Worldwide)www.suse.com
Join us on:www.opensuse.org
61
Unpublished Work of SUSE LLC. All Rights Reserved.This work is an unpublished work and contains confidential, proprietary and trade secret information of SUSE LLC. Access to this work is restricted to SUSE employees who have a need to know to perform tasks within the scope of their assignments. No part of this work may be practiced, performed, copied, distributed, revised, modified, translated, abridged, condensed, expanded, collected, or adapted without the prior written consent of SUSE. Any use or exploitation of this work without authorization could subject the perpetrator to criminal and civil liability.
General DisclaimerThis document is not to be construed as a promise by any participating company to develop, deliver, or market a product. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. SUSE makes no representations or warranties with respect to the contents of this document, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. The development, release, and timing of features or functionality described for SUSE products remains at the sole discretion of SUSE. Further, SUSE reserves the right to revise this document and to make changes to its content, at any time, without obligation to notify any person or entity of such revisions or changes. All SUSE marks referenced in this presentation are trademarks or registered trademarks of Novell, Inc. in the United States and other countries. All third-party trademarks are the property of their respective owners.