Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
 
Mark E. Fuller Senior Principal Instructor Oracle University Oracle Corporation
Oracle and Linux A Winning Combination - RAC and Linux
Oracle9 i  Real Application Clusters <ul><li>Database with instances on separate nodes </li></ul><ul><li>Physical or logic...
Why Implement RAC? <ul><li>Enables systems to scale up by increasing throughput </li></ul><ul><li>Increases performance by...
Oracle9 i  RAC Cache Fusion 100 Block access time (milli- seconds) Without Cache Fusion With Cache Fusion Block in local c...
Why Choose Linux? <ul><li>Enterprise-class offerings for mission critical systems </li></ul><ul><li>Open and cost-effectiv...
Linux RAC Architecture <ul><li>Hardware </li></ul><ul><ul><li>Intel-based hardware </li></ul></ul><ul><ul><li>External sha...
Linux RAC Architecture <ul><li>Oracle software </li></ul><ul><ul><li>Oracle Cluster File System </li></ul></ul><ul><ul><li...
RAC on Linux Storage <ul><li>Storage options for RAC on Linux: </li></ul><ul><ul><li>Oracle Cluster File System (OCFS) </l...
Oracle Cluster File System  <ul><li>Is a shared file system that is designed specifically for Oracle RAC </li></ul><ul><li...
OCFS Features <ul><li>Node-specific files and directories </li></ul><ul><li>Unique cluster name integrity </li></ul><ul><u...
Cluster Management on Linux <ul><li>oracm maintains both node status view and Oracle instance status view. </li></ul><ul><...
Oracle Cluster Management System <ul><li>OCMS consist of: </li></ul><ul><ul><li>Cluster Monitor (CM) </li></ul></ul><ul><u...
The Hangcheck Timer <ul><li>Replaces the watchdog daemon in Oracle 9.2.0.2 </li></ul><ul><li>Is loaded as a kernel module ...
The Node Monitor (NM) <ul><li>Maintains a consistent view of the cluster, and reports the node status to the cluster manag...
The Cluster Monitor (CM) <ul><li>Maintains the process-level cluster status. </li></ul><ul><li>Accepts registration of Ora...
RAC/Linux Installation Outline <ul><li>Build hardware cluster and interconnect </li></ul><ul><li>Install Linux </li></ul><...
RAC/Linux Installation Outline <ul><li>Download and install the following </li></ul><ul><ul><li>http://otn.oracle.com/tech...
RAC/Linux Installation Outline <ul><li>Load ocfs module and mount shared volume </li></ul><ul><li>Use runInstaller to inst...
RAC/Linux Installation Outline <ul><li>Update OCMS 9.2.0.1 to 9.2.0.2 with runInstaller </li></ul><ul><li>Automate OCFS an...
RAC/Linux Installation Outline <ul><li>Use runInstaller to install the Oracle 9.2.0.1 RDBMS </li></ul><ul><ul><li>Select C...
RAC/Linux Installation Outline <ul><li>Update RDBMS 9.2.0.1 to 9.2.0.2 with runInstaller </li></ul><ul><li>Start gsd daemo...
Oracle University Related Offerings <ul><li>Managing Oracle on Linux ( 3 days ILT ) </li></ul><ul><li>Oracle9i Real Applic...
Oracle Database 10 G  RAC - Complete, Integrated Clusterware <ul><li>Complete Oracle cluster software solution </li></ul><...
Oracle Database 10 G  RAC - Automatic Server Provisioning <ul><li>Push-button add/drop server to cluster </li></ul><ul><li...
A Q & Q  U  E  S  T  I  O  N  S A  N  S  W  E  R  S
 
Upcoming SlideShare
Loading in …5
×

Oracle on linux

1,022 views

Published on

Oracle on Linux

Published in: Technology, Business
  • Be the first to comment

Oracle on linux

  1. 2. Mark E. Fuller Senior Principal Instructor Oracle University Oracle Corporation
  2. 3. Oracle and Linux A Winning Combination - RAC and Linux
  3. 4. Oracle9 i Real Application Clusters <ul><li>Database with instances on separate nodes </li></ul><ul><li>Physical or logical access to each database file </li></ul><ul><li>Software controlled data access </li></ul>Nodes Database
  4. 5. Why Implement RAC? <ul><li>Enables systems to scale up by increasing throughput </li></ul><ul><li>Increases performance by speeding up database operations </li></ul><ul><li>Provides higher availability </li></ul><ul><li>Provides support for a greater number of users </li></ul>
  5. 6. Oracle9 i RAC Cache Fusion 100 Block access time (milli- seconds) Without Cache Fusion With Cache Fusion Block in local cache Block in remote cache Block on disk 0.01 1 20
  6. 7. Why Choose Linux? <ul><li>Enterprise-class offerings for mission critical systems </li></ul><ul><li>Open and cost-effective solution </li></ul><ul><li>Opportunity to reduce IT infrastructure costs </li></ul><ul><li>Oracle Corporation provides direct technical support of the operating system </li></ul>
  7. 8. Linux RAC Architecture <ul><li>Hardware </li></ul><ul><ul><li>Intel-based hardware </li></ul></ul><ul><ul><li>External shared SCSI or Fiber Channel disks </li></ul></ul><ul><ul><li>Interconnect by using NIC </li></ul></ul><ul><li>Operating system </li></ul><ul><ul><li>Red Hat 7.1 and Red Hat 2.1 Advanced Server </li></ul></ul><ul><ul><li>SuSE 7.2 and SuSE SLES7 </li></ul></ul><ul><ul><li>UnitedLinux 1.0 </li></ul></ul>
  8. 9. Linux RAC Architecture <ul><li>Oracle software </li></ul><ul><ul><li>Oracle Cluster File System </li></ul></ul><ul><ul><li>Oracle Cluster Management System </li></ul></ul><ul><ul><li>Oracle9 i Enterprise database </li></ul></ul>
  9. 10. RAC on Linux Storage <ul><li>Storage options for RAC on Linux: </li></ul><ul><ul><li>Oracle Cluster File System (OCFS) </li></ul></ul><ul><ul><li>Raw devices named /dev/raw[1-255] </li></ul></ul><ul><ul><ul><li>Up to 255 raw devices can be addressed. </li></ul></ul></ul><ul><ul><ul><li>The tool that is used to set up and query raw devices is raw . </li></ul></ul></ul><ul><li>Currently, Linux has no cluster file system. </li></ul><ul><ul><li>SuSE has a Logical Volume Manager (LVM). </li></ul></ul><ul><ul><li>Red Hat has no LVM. </li></ul></ul>
  10. 11. Oracle Cluster File System <ul><li>Is a shared file system that is designed specifically for Oracle RAC </li></ul><ul><li>Eliminates the need for database files to be linked to logical drives </li></ul><ul><li>Volumes can span one shared disk or multiple shared disks </li></ul><ul><li>Guarantees consistency of metadata across nodes in a cluster </li></ul>
  11. 12. OCFS Features <ul><li>Node-specific files and directories </li></ul><ul><li>Unique cluster name integrity </li></ul><ul><ul><li>Allows a hardware cluster to be segregated into logical software clusters </li></ul></ul><ul><ul><li>Simplifies storage area network management </li></ul></ul><ul><li>Automatic configuration of new nodes </li></ul>
  12. 13. Cluster Management on Linux <ul><li>oracm maintains both node status view and Oracle instance status view. </li></ul><ul><li>The hangcheck thread driver monitors oracm and reconciles with the hangcheck-timer at defined intervals. </li></ul><ul><li>The timer resets the node if a new thread is not started within a specified time. </li></ul>User mode Kernel mode Oracle Cluster Management System (OCMS) Oracle instance oracm Hangcheck thread driver Hangcheck-timer
  13. 14. Oracle Cluster Management System <ul><li>OCMS consist of: </li></ul><ul><ul><li>Cluster Monitor (CM) </li></ul></ul><ul><ul><li>Node Monitor (NM) </li></ul></ul><ul><ul><li>Hangcheck-timer Module </li></ul></ul><ul><li>Binaries are located in: </li></ul><ul><ul><li>$ORACLE_HOME/ocms/bin </li></ul></ul><ul><li>Configuration files located in: </li></ul><ul><ul><li>$ORACLE_HOME/oracm/admin/cmcfg.ora </li></ul></ul><ul><ul><li>$ORACLE_HOME/oracm/admin/ocmargs.ora </li></ul></ul>
  14. 15. The Hangcheck Timer <ul><li>Replaces the watchdog daemon in Oracle 9.2.0.2 </li></ul><ul><li>Is loaded as a kernel module </li></ul><ul><li>Is specified by the KernelModuleName parameter in the CMCFG.ORA file </li></ul><ul><li>Already included in the Linux 2.5 Kernel </li></ul>
  15. 16. The Node Monitor (NM) <ul><li>Maintains a consistent view of the cluster, and reports the node status to the cluster manager </li></ul><ul><li>Uses a heartbeat mechanism </li></ul><ul><li>Works with hangcheck-timer and acts depending on the type of failure </li></ul><ul><li>Is integrated into the cluster monitor process, oracm , in Oracle 9.2.0.2 </li></ul>
  16. 17. The Cluster Monitor (CM) <ul><li>Maintains the process-level cluster status. </li></ul><ul><li>Accepts registration of Oracle instances to the cluster and provides a consistent view of Oracle instances. </li></ul><ul><li>When an Oracle process that writes to the shared disk quits abnormally, the CM on the node detects it and takes appropriate action. </li></ul>
  17. 18. RAC/Linux Installation Outline <ul><li>Build hardware cluster and interconnect </li></ul><ul><li>Install Linux </li></ul><ul><ul><li>Remove IBMJava2 Package </li></ul></ul><ul><ul><li>Add pdksh and ssh packages </li></ul></ul><ul><li>Prepare Operating System for OCFS,OCMS </li></ul><ul><ul><li>Kernel Parameters </li></ul></ul><ul><ul><li>Create oracle account and dba group </li></ul></ul><ul><ul><li>Create $ORACLE_HOME and /var/opt/oracle directories </li></ul></ul><ul><ul><li>Adjust login profile script for oracle account </li></ul></ul>
  18. 19. RAC/Linux Installation Outline <ul><li>Download and install the following </li></ul><ul><ul><li>http://otn.oracle.com/tech/linux/content.html </li></ul></ul><ul><ul><ul><li>ocfs-support-1.0-1.i686.rpm </li></ul></ul></ul><ul><ul><ul><li>ocfs-tools-1.0-1.i686.rpm </li></ul></ul></ul><ul><ul><ul><li>ocfs-2.4.9-3 typeversion .rpm </li></ul></ul></ul><ul><li>Start ocfstool gui and generate configuration </li></ul><ul><li>Create mount point for shared disk </li></ul><ul><li>Use fdisk to partition the shared disk </li></ul><ul><li>Start ocfstool gui and format shared disk from 1 node only </li></ul>
  19. 20. RAC/Linux Installation Outline <ul><li>Load ocfs module and mount shared volume </li></ul><ul><li>Use runInstaller to install OCMS 9.2.0.1 </li></ul><ul><ul><li>Accept default watchdog parameter </li></ul></ul><ul><ul><li>It will be disabled later </li></ul></ul><ul><li>Download and install the hangcheck module </li></ul><ul><ul><li>http://otn.oracle.com/tech/linux/content.html </li></ul></ul><ul><ul><ul><li>Hangcheck-timer-2.4.9-e.3-0.4.0-2.i686.rpm </li></ul></ul></ul><ul><li>Disable watchdog daemon from system startup </li></ul>
  20. 21. RAC/Linux Installation Outline <ul><li>Update OCMS 9.2.0.1 to 9.2.0.2 with runInstaller </li></ul><ul><li>Automate OCFS and OCMS commands to load and execute on system startup </li></ul><ul><li>Setup rlogin and rsh facilities so the Universal installer can complete work on both nodes </li></ul>
  21. 22. RAC/Linux Installation Outline <ul><li>Use runInstaller to install the Oracle 9.2.0.1 RDBMS </li></ul><ul><ul><li>Select Custom install </li></ul></ul><ul><ul><li>Select Oracle9i Real Application Clusters option </li></ul></ul><ul><ul><li>Select ‘The management server will use an existing repository’ </li></ul></ul><ul><ul><ul><li>Prevents installer from creating OMS repository now </li></ul></ul></ul><ul><ul><li>Choose not to create a database at this time </li></ul></ul><ul><ul><li>Cancel Enterprise Manager configuration </li></ul></ul>
  22. 23. RAC/Linux Installation Outline <ul><li>Update RDBMS 9.2.0.1 to 9.2.0.2 with runInstaller </li></ul><ul><li>Start gsd daemon with gsdctl utility </li></ul><ul><li>Run DBCA to create cluster database </li></ul><ul><ul><li>Gsd must be running to succeed </li></ul></ul>
  23. 24. Oracle University Related Offerings <ul><li>Managing Oracle on Linux ( 3 days ILT ) </li></ul><ul><li>Oracle9i Real Application Clusters ( 3 days ILT ) </li></ul><ul><li>Oracle9i Database: Real Application Clusters on Linux ( 2 days ILT ) </li></ul>
  24. 25. Oracle Database 10 G RAC - Complete, Integrated Clusterware <ul><li>Complete Oracle cluster software solution </li></ul><ul><li>Single-vendor support </li></ul><ul><li>Low Cost </li></ul><ul><ul><li>No need to purchase additional software </li></ul></ul><ul><ul><li>Easy to install, manage </li></ul></ul><ul><li>High quality and functionality across all platforms </li></ul><ul><li>Common event and management API’s </li></ul><ul><ul><li>Multi-tier HA & minimal MTTR </li></ul></ul><ul><li>Support for third-party clusterware </li></ul>Connectivity Messaging and Locking Cluster Control/Recovery Services Framework
  25. 26. Oracle Database 10 G RAC - Automatic Server Provisioning <ul><li>Push-button add/drop server to cluster </li></ul><ul><li>Hands-free allocation and re-allocation of servers to services </li></ul><ul><ul><li>Automatic routing of service requests to appropriate server with lowest load </li></ul></ul><ul><ul><li>On server failure, automatic re-allocation of surviving servers to services </li></ul></ul><ul><li>Works across all platforms </li></ul>
  26. 27. A Q & Q U E S T I O N S A N S W E R S

×