deploying oracle database 12c on oracle zfs storage oracle database 12c on oracle zfs storage...

Download Deploying Oracle Database 12c on Oracle ZFS Storage Oracle Database 12c on Oracle ZFS Storage Appliance Paul Johnson ... Oracle Database, 12c Container and Pluggable Databases, and

Post on 29-May-2018

221 views

Category:

Documents

2 download

Embed Size (px)

TRANSCRIPT

  • Deploying Oracle Database 12c on Oracle ZFS Storage Appliance Paul Johnson Principle Software Engineer

    Ravindran Renganathan Principal Product Manager

  • DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    Table of Contents

    Introduction 1

    Provisioning the Oracle ZFS Storage Appliance 2

    Log in to the Browser User Interface 2

    Create a Project 3

    Create Shares 5

    Enable SNMP to activate OISP and HCC 8

    Provisioning Oracle Linux 11

    Terminal 11

    Create a Directory Structure 11

    Edit /etc/fstab for the New Shares 11

    Mount the Shares 11

    Enable dNFS 11

    Create a Database 13

    Use DBCA to Create a Database 13

    Monitor Progress and Performance Using Oracle ZFS Storage Analytics 26

    Navigate to the Analytics section 26

    Add a Statistic 26

    Create a Tablespace with HCC 28

  • 1 | DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    Introduction

    This hands-on lab demonstrates how to install and manage Oracle Database 12c with Oracle ZFS

    Storage Appliance. Youll learn how to apply Oracle Hybrid Columnar Compression, the Oracle

    Intelligent Storage Protocol feature of Oracle ZFS Storage Appliance, the Direct NFS Client feature of

    Oracle Database, 12c Container and Pluggable Databases, and more. In addition, youll learn how

    easy it is to use Oracle ZFS Storage Appliance software to configure services, create and use storage

    shares, and monitor database performance with Oracle ZFS Storage Appliance analytics.

    This hands-on lab comes with the following components pre-installed:

    1. Oracle ZFS Storage Appliance VM Simulator running OS8.6

    2. Oracle Linux 6.8 VM

    3. Oracle Database 12c Release 1 (12.1)

    4. Patch 19630940 for OISP Analytics

  • 2 | DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    Provisioning the Oracle ZFS Storage Appliance

    Log in to the Browser User Interface 1. Open a web browser by double-clicking on the Firefox icon on the desktop.

    2. Enter https://192.168.56.101:215 into web browser window.

    3. In web browser, enter oracle as Username and oow as Password, then press the LOGIN button.

  • 3 | DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    4. The Oracle ZFS Storage Appliance Status Dashboard will be displayed.

    Create a Project A project is a collection of filesystems and LUNs that share the same common settings. By grouping all shares into the same project, the management of the storage becomes simplified.

    1. Begin by clicking on Shares on the top toolbar.

    2. Click on PROJECTS, then click on the + icon to create a new project.

    3. Name the project hol1521.

  • 4 | DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    4. Once the project has been created, edit the hol1521 project by selecting the pencil icon.

    5. With the hol1521 project opened, select General at the top to view the project settings.

    6. The following changes will need to be made:

    a. Mountpoint should be /export/hol1521

    b. Update access time on read should be deselected

    c. User should be 54321

    d. Group should be 54321

  • 5 | DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    7. Click APPLY at the top right.

    Create Shares The database will be stored on the Oracle ZFS Storage Appliance Simulator. There will need to be three shares setup to store the datafiles, redo logs & control files, and fast recovery area.

  • 6 | DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    1. Click on Shares next to General to begin creation. Do not click SHARES on the top toolbar since this will deselect the current project.

    2. Click the + icon to create a new filesystem.

    3. Create a share called datafiles and click APPLY.

  • 7 | DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    4. Create a share called fra and click APPLY.

    5. Create a share called logs and click APPLY.

  • 8 | DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    You should now have three shares created: datafiles, fra, and logs.

    Enable SNMP to activate OISP and HCC

    Oracle Intelligent Storage Protocol (OISP) is a unique file storage protocol for Oracle Database 12c and Oracle ZFS Storage Appliance that allows storage to have database awareness. Oracle Intelligent Storage Protocol enables continuous communication between database and storage, automatically and dynamically optimizing critical tuning parameters in real time.

    Oracle Intelligent Storage Protocol is available exclusively with the combination of Oracle Database 12c and the Oracle ZFS Storage Appliance because it requires the intelligence on both the database host side and the storage side to pass and interpret cues from the database. With Oracle Intelligent Storage Protocol, Oracle Database can send over 70 different cues, which Oracle ZFS Storage Appliance categorizes into 5 different groups. The different database file types can now be differentiated by the Oracle ZFS Storage Appliance. Oracle Intelligent Storage Protocol dynamically and automatically adjusts share parameter settings to tune the storage system for optimal database performance on the fly. Traditionally, multiple shares would have to be set up for different database file types, each with its own settings all tuned manually by an administrator. But with Oracle Intelligent Storage Protocol and the Oracle ZFS Storage Appliance, the entire process is automated.

    Hybrid Columnar Compression (HCC) is an Oracle Database compression technology which enables the highest levels of data compression and provides enterprises with cost savings and performance improvements due to reduced I/O. Average storage savings can range from 6x to 15x, depending on which Hybrid Columnar Compression level is implemented. Hybrid Columnar Compression gives database administrators the flexibility to select from four different levels of Data Warehouse or Archive compression to balance storage savings and I/O reduction with CPU resource utilization. Hybrid Columnar Compression can be enabled on Oracle Databases residing on dNFS shares without ASM on an Oracle ZFS Storage Appliance beginning with Oracle Database Enterprise Edition 11.2.0.3.

    Oracle Intelligent Storage Protocol and Hybrid Columnar Compression both rely on SNMP to establish the initial relationship between Oracle Database 12c and Oracle ZFS Storage Appliance.

    1. Navigate to Configuration Services.

  • 9 | DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    2. Click on SNMP underneath System Settings.

    3. The following settings should be set:

    a. Version: v1/2c

    b. Community name: public

    c. Authorized network/mask: 0.0.0.0 / 0

    d. Appliance contact: HOL

    e. Trap destinations: 127.0.0.1

  • 10 | DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    4. Click the power-on button to enable the SNMP service.

    5. Verify the SNMP LED turns on (green).

  • 11 | DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    Provisioning Oracle Linux The binaries for Oracle Database 12c have already been preinstalled on the Oracle Linux VM. They are held in the /u01/app/oracle directory.

    Note: the password for this VM is oow.

    Terminal

    Open a new terminal session by double-clicking on the Terminal icon on the desktop:

    Create a Directory Structure Each of the shares created on the storage will need a local directory to contain the mounts on the Oracle Linux VM. Please use the following locations:

    $ sudo mkdir -p /zfssa/hol1521/datafiles $ sudo mkdir -p /zfssa/hol1521/fra $ sudo mkdir -p /zfssa/hol1521/logs

    Edit /etc/fstab for the New Shares The entries have already been populated inside of /etc/fstab:

    $ cat /etc/fstab 192.168.56.101:/export/hol1521/datafiles /zfssa/hol1521/datafiles nfs rw,bg,hard,nointr,rsize=1048576,wsize=1048576,tcp,vers=3,timeo=600,noac 0 0 192.168.56.101:/export/hol1521/fra /zfssa/hol1521/fra nfs rw,bg,hard,nointr,rsize=1048576,wsize=1048576,tcp,vers=3,timeo=600,noac 0 0 192.168.56.101:/export/hol1521/logs /zfssa/hol1521/logs nfs rw,bg,hard,nointr,rsize=1048576,wsize=1048576,tcp,vers=3,timeo=600,noac 0 0

    Mount the Shares $ sudo mount -a

    Enable dNFS The entries have already been populated inside of $ORACLE_HOME/dbs/oranfstab:

    $ cat $ORACLE_HOME/dbs/oranfstab server: 192.168.56.101 path: 192.168.56.101 nfs_version: nfsv4 export: /export/hol1521/datafiles mount: /zfssa/hol1521/datafiles export: /export/hol1521/fra mount: /zfssa/hol1521/fra export: /export/hol1521/logs mount: /zfssa/hol1521/logs

    Direct NFS, also known as dNFS, is the preferred method for database communication with the Oracle ZFS Storage Appliance. This feature optimizes I/O traffic by replacing the kernel NFS with an NFS client that is tailored specifically for Oracle software. It is only available in Oracle Database 11g and 12c.

    $ cd $ORACLE_HOME/rdbms/lib

  • 12 | DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    $ make f ins_rdbms.mk dnfs_on rm -f /u01/app/oracle/product/12.1.0/dbhome_1/lib/libodm12.so; cp /u01/app/oracle/product/12.1.0/dbhome_1/lib/libnfsodm12.so /u01/app/oracle/product/12.1.0/dbhome_1/lib/libodm12.so

  • 13 | DEPLOYING ORACLE DATABASE 12C WITH ORACLE ZFS STORAGE APPLIANCE

    Create a Database

    Use DBCA to Create a Database DBCA, the D

Recommended

View more >