oracle standalong,How to Install a Standalone Oracle Database

How do I Install a Standalone Oracle Database?

Applies to:

RHEL 6.x, OL6.x

Contents

Software and Hardware Requirements

Operating System Requirements

Network Requirements

Hardware Requirements

Preparing for Oracle Installation

Attaching to RHN/ULN Repository

Installing the Dell Validated RPM

Installing the Dell Oracle Utilities RPM

Oracle Software Binary Location

Setting up the Network

Public Network

Preparing Shared Storage for Oracle Installation

Partitioning the Shared Disk

Adjusting the StripeElement Size on a Primary Partition

Setting up Permissions for ASM disks using udev rules

Overview This document applies to Oracle Database 11g R2 running on Red Hat Enterprise Linux 6.x AS x86_64 or Oracle Enterprise Linux 6.x AS x86_64.

Software and Hardware Requirements

Hardware Requirements

Oracle requires 1.5 gigabytes (GB) of physical memory.

Swap space must be equal to the amount of RAM allocated to the system.

Oracle's temporary space (/tmp) must be at least 1 GB in size.

A monitor that supports resolution of 1024 x 768 to correctly display the Oracle Universal Installer (OUI)

For Dell supported hardware configurations, see the Software Deliverable List (SDL) for each Dell Validated Component at dell.com/oracle. The following table describes the disk space required for an Oracle installation:

Table 1-1

Minimum Disk Space Requirements

Software Installation Location

Size Required

Grid Infrastructure home

Oracle Database home

4.5 GB Space

4 GB of Space

Shared storage disk space

Sizes of database and Flashback Recovery Area Table 1 :Minimum Disk Space Requirement

Network Requirements

It is recommended that you ensure at least one network interface cards for public network.

The hostname must follow the RFC 952 standard (www.ietf.org/rfc/rfc952.txt). Hostnames that include an underscore ("_") are not permitted Operating System Requirements

Red Hat Enterprise Linux 6.x AS x86_64

Oracle Linux 6.x AS x86_64

Attaching to RHN/ULN Repository

c7dc0cc0a271794358eabcc7044246c3.png NOTE: The documentation provided below discusses how to setup a local yum repository using your operating system installation media. If you would like to connect to the RHN/ULN channels, see the appropriate documentation. For Red Hat see, redhat.com/red_hat_network. For information relating to ULN network see, linux.oracle.com.   This section discusses hosting the repository files from a local filesystem storage. While other options to host repository files exist, they are outside of the scope of this document. It is highly recommended to use local filesystem storage for speed and simplicity of maintenance.

One of the requirements is to have the DVD image mounted either by physical media or by ISO image.

To mount the DVD, insert the DVD into the server and it should auto-mount into the /media directory.

To mount an ISO image we will need to run the following command as root, substituting the path name of your ISO image for the field myISO.iso:

mkdir /media/myISO

mount -o loop myISO.iso /media/myISO

To install and configure the http daemon, configure the machine that will host the repository for all other machines to use the DVD image locally. Create the file /etc/yum.repos.d/local.repo and enter the following:

[local]

name=Local Repository

baseurl=file:///media/myISO/Server

gpgcheck=0

enabled=0

Installing the Dell Validated RPM Once the Database node is attached to the appropriate yum repository, we will need to install the Dell Validated RPM package. The Dell Validated RPM package automates certain pieces of the installation process required for the installation of Oracle.

The process to install the Dell Validated RPM package is as follows:

Download the latest Dell Oracle Deployment tar file from

http://downloads.dell.com/solutions/enterprise-solution-resources/deployment_guide_rhel6.pdf

0bfa8f6a231aba6d63dab3374155f56d.png NOTE: The filename will follow the convention: Dell-Oracle-Deployment-OS-version-year-month.tar, for example: Dell-Oracle-Deployment-Lin-EL6-2012-08.tar

Copy the Dell Oracle Deployment tar file to a working directory of all your cluster nodes.

To go to your working directory, enter the following command:

# cd

Untar the Dell-Oracle-Deployment release using the command:

# tar zxvf Dell-Oracle-Deployment-o-v-y-m.tar.gz

e8615f674b9dd47cd5cc3e3818484a75.png NOTE: Where, o is the operating system, v is the operating system version, y is the year, and m is the month of the tar release.

Change directory to Dell-Oracle-Deployment-o-v-y-m

Install the Dell-Oracle-RDBMS-Server-11gR2-Preinstall RPM package on all your cluster nodes using the following command:

# yum localinstall dell-oracle-rdbms-server-11gR2-preinstall* --nogpgcheck

Installing the Dell Oracle Utilities RPM The Dell Oracle utilities RPM is designed to do the following Dell and Oracle recommended settings:

Create Grid Infrastructure directories, set ownership, and permissions.

Create grid user.

Create Oracle Database (RDBMS) directories, set ownership, and permissions.

Create the Oracle base directories, set ownership, and permissions.

Set pam limits within (/etc/pam.d/login).

Setup /etc/profile.

Set SELinux to Disabled.

Install the Dell PowerEdge system component drivers if applicable.

Set kernel parameters.

Set nproc for grid user within (/etc/security/limits.conf) The process to install the Dell Oracle utilities RPM is as follows:

Install the Dell oracle utilities RPM package from the Dell-Oracle-Deployment=0-y-m directory the by typing:

# yum localinstall dell-oracle-utilities* --nogpgcheck

Once the rpm is installed, run the dodeploy script to setup the environment as follows: # dodeploy -g -r 11gR2

For more information about the Dell oracle utilities RPM and its options, check the man pages using the command: # man 8 dodeploy

fbd05ce87c1569127663d5b43b5340a7.png NOTE:The Dell-Oracle-Deplyoment tar contains the latest supported drivers provided from our Software Deliverable List (SDL). Consult the README file found within the Dell-Oracle-Deployment tar for installation instructions of the latest drivers.

Oracle Software Binary Location

The Oracle software binaries should be located on the database node. It is important to note that starting with Oracle 11g R2 (11.2.0.3), Oracle Database patch sets are full installation of the Oracle software. For more information on how this impacts future Oracle deployments, see My Oracle Support note: 1189783.1 Important Changes to Oracle Database Patch Sets Starting with 11.2.0.2.

Setting up the Network  -  Public Network

696b532b017cd72bc8c7386ea91acbc0.png NOTE: Ensure that the public IP address is a valid and routable IP address.

To configure the public network :

Log in as root.

Edit the network device file /etc/sysconfig/network-scripts/ifcfg-eth#

where # is the number of the network device:

3af6cbe045aa0a29541ce51f9eeeba37.png NOTE: Ensure that the Gateway address is configured for the public network interface. If the Gateway address is not configured, the Oracle Grid installation may fail.

DEVICE=eth0 ONBOOT=yes

IPADDR=

NETMASK=

BOOTPROTO=static

HWADDR=

SLAVE=no

GATEWAY=

Edit the /etc/sysconfig/network file, and, if necessary, replace localhost.localdomain with the qualified public node name. For example, the command for node :hostname=node.domain.com

Type service network restart to restart the network service.

Type ifconfig to verify that the IP addresses are set correctly.

To check your network configuration, ping the public IP address from a client on the LAN.

7f8bfdda9006c9086a2dec1e5cb46e63.png NOTE: In this section, the terms disk(s), volume(s), virtual disk(s), LUN(s) mean the same and are used interchangeably, unless specified otherwise. Similarly, the terms Stripe Element Size and Segment Size both can be used interchangeably.

Oracle Standalone using Oracle ASM requires LUNs for storing Oracle Database files, and Flash Recovery Area (FRA). To ensure high availability it is recommended that you have:

At least two shared disks to store your database. Each shared disk should be the same disk speed and size.

At least two shared volumes/LUNs or volumes to store your FRA. Ideally, the FRA space should be large enough to copy all of your Oracle datafiles and incremental backups. For more information on optimally sizing your FRA, see My Oracle Support ID 305648.1 section "What should be the size of Flash Recovery Area?"

0e25f0064b22d718543930ed99d348ad.png NOTE: The use of device mapper multipath is recommended for optimal performance and persistent name binding.

913f2efe776a04bd11d0d2be4267fb9e.png NOTE: For more information on attaching shared LUNs/volumes, see the Wiki documentation found at: http://en.community.dell.com/dell-groups/enterprise_solutions/w/oracle_solutions/3-storage.aspx

Partitioning the Shared Disk This section describes how to use Linux’s native partition utility fdisk to create  a single partition on a volume/virtual disk that spans the entire disk.

To use the fdisk utility to create a partition:

At the command prompt, type one of the following:

#> fdisk –cu /dev/

#> fdisk –cu /dev/mapper/

Where, is the name of the block device that you are

creating a partition on. For example, if the block device is /dev/sdb, type: fdisk –cu /dev/sdb

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel with disk identifier 0x89058e03.

Changes will remain in memory only, until you decide to write them.

After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

The device presents a logical sector size that is smaller than

the physical sector size. Aligning to a physical sector (or optimal

I/O) size boundary is recommended, or performance may be impacted.

Command (m for help): n # To create a new partition

Command actione extendedp primary partition (1-4):

P # To create a primary partition

Partition number (1-4): 1

First sector (4096-xxxxxx, default 4096):

Repeat step 1 for all the disks.

Type the following to re-read the partition table and to be able to see the newly created partition(s)

#> partprobe

Or

#> service multipathd restart

Or

#> kpartx –a /dev/mapper/

Reboot the system if your newly created  partition is not displayed properly.

Setting up Permissions for ASM disks using udev rules Red Hat Enterprise Linux 6/Oracle Linux 6 have the ability to use udev rules to ensure that the system properly manages permissions of device nodes. In this case, we are referring to properly setting permissions for our LUNs/volumes discovered by the OS. It is important to note that udev rules are executed in enumerated order. When creating udev rules for setting permissions, please include the prefix 20- and append .rules to the end of the filename. An example file name is 20-dell_oracle.rules

In order to set udev rules, one must capture the WWIDs of each disk to be used within your ASM device using the scsi_id command.

The command is as follows:

scsi_id --page=0x83 --whitelisted --device=/dev/sdX

where sdX is the name of your block device.

If one must run this command to capture multiple WWIDs, one could use the following for loop to do just that via the shell:

[root@rhel6 ~]# for i in sdb sdc sdd sde; do \ printf "%s %s\n" "$i" \ "$(scsi_id --page=0x83 --whitelisted --device=/dev/$i)"; done

Output:

sdb 360026b900061855e000008a54ea5356a

sdc 360026b9000618571000008b54ea5360b

sdd 360026b900061855e000008a54ea5356a

sde 360026b9000618571000008b54ea5360b

Once the WWIDs have been captured, create a file within the /etc/udev/rules.d/ directory and name it 20-dell_oracle.rules. A separate KERNEL entry must exist for each storage device and will require adding the WWID to the "RESULT==" field.

An example of what needs to be placed in the /etc/udev/rules.d/20-dell_oracle.rules file

#------------------------ start udev rule contents ------------------#

KERNEL=="dm-*", PROGRAM="scsi_id --page=0x83 --whitelisted --device=/dev/%k",RESULT=="360026b9000618571000008b54ea5360b", OWNER:="grid", GROUP:="asmadmin"

KERNEL=="dm-*", PROGRAM="scsi_id --page=0x83 --whitelisted --device=/dev/%k",RESULT=="360026b900061855e000008a54ea5356a", OWNER:="grid", GROUP:="asmadmin"

#-------------------------- end udev rule contents ------------------#

As you can see from the above, the KERNEL command looks at all dm devices, executes the PROGRAM which captures the WWID, if the RESULT of the WWID is matched, appropriately assign the grid user as the OWNER and the asmadmin group as the GROUP.

Installing Grid Infrastructure for Standalone Server

Before you install the Oracle 11g R2 Grid Infrastructure software for a Standalone Server on your system:

Ensure that you have already configured your operating system, network, and storage based on the steps from the previous sections within this document.

Locate your Oracle 11g R2 media kit.

Log in as root

If you are not in a graphical environment, start the X Window System by typing: startx

Open a terminal window and type: xhost +

Mount the Oracle Grid Infrastructure media.

Log in as grid user, for example: su - grid.

Type the following command to start the Oracle Universal Installer:/runInstaller

In the Download Software Updates window, enter your My Oracle Support credentials to download the latest patch updates. If you choose not to download the latest patches, select Skip software updates.

0eed387d1eac485a6d9cd4e0b9750a5e.png

Figure 1 :Skip software upgrade

In the Select Installation Option window, select Install and Configure Grid Infrastructure for a Standalone Server and click Next.

637598e2063786b652745f4383818d45.png

Figure 2 :Configure

In the Create ASM Disk Group window, enter the following information:

ASM diskgroup— Enter a name, for example: DATA

Redundancy— For your ASM disks, select High if five ASM disks are available, select Normal if three ASM disks are available, or select External if one ASM disk is available (not recommended).

3e285d7ffc822a605e9fe278cb5dc0ba.png

Figure 3 :ASM Disk Group

Click on Use Same Passwords for these accounts & Click Next

17e3f444929e340c87c3c2a29d6e8be3.png

Figure 4 :Password

Leave the Operating System Groups to be default, Ignore the Warning and Click Next

c03aa90c9d7eac025385829959db45d0.png

Figure 4 :Oracle Base and Software Location

Choose the Oracle Base and Software Location, and Click Next.

56567b54a8d9463d747381eb0e33d42f.png

Figure 5 :Prerequisite Checks

The Prerequisite Checks are performed& the summary screen is presented. Click Next on the summary screen.

24c8de4a3ff77ef9269e36a9fd564eeb.png

Figure 6 :Installation proceeds

The Installation proceeds. And the Progress is seen in the setup screen.

496958333e1f689b1024f291a578c0a9.png

Figure 7 :Setup

After the installation is complete, the Execute Configuration Scripts wizard is displayed. Complete the instructions in the wizard and click Ok.

8aa6f004b9147a074b91b4d8e4d23fd7.png

Figure 8 :Grid Infrastructure is installed

Now that the Grid Infrastructure is installed, let’s now install the Database.

Log in as root and type: xhost +.

Mount the Oracle Database 11gR2 media.

Log out as root user and log in as Oracle user by typing:

su - oracle

Run the installer script from your Oracle database media:

/runInstaller

In the Configure Security Updates window, enter your My Oracle

Support credentials to receive security updates, else click Next.

2c8844fef0dda951c34000754bd4c8dd.png

Figure 9 : Download patch

In the Download Software Updates window, enter your My Oracle Support credentials to download patch updates available after the initial release. If you choose not to update at this time, select Skip software updates and click Next.

d79ef1004d1e47bced83ca072bc4c14d.png

Figure 10 : Installation Option window

In the Select Installation Option window, select Install database software only.

a085d85d3e33a0010b3453a8757ccc82.png

Figure 11 : Installation Option window

In the Grid Installation Options window: Select Single Instance database installation and Click Next.

4fcaaf7af245d966ef3306315950def9.png

Figure 12 : Product Lanaguages window

In the Select Product Lanaguages window, select English as the Language Option and click Next.

In the Select Database Edition window, select Enterprise Edition and click Next.

ab654de57e324cb2f94e80420b5c2219.png

Figure 13 : Database Edition window

In the Installation Location window,

Specify the location of your Oracle Base configured within the Dell oracle utilities RPM.

1f19b38f9a6b205837082c49d45e32cb.png NOTE:The default locations used within the Dell Oracle utilites RPM are as follows:

Oracle Base—/u01/app/oracle

Software Location—/u01/app/oracle/product/11.2.0/db_1

be190cb22125f623a50223ef0f447dc5.png

Figure 14 : Installation Location window

In the Privileged Operating System Groups window, select dba for Database Administrator (OSDBA) Group and oinstall for Database Operator (OSOPER) Group and click Next.

f729127bff2c07175865c1eaa9117f7d.png

Figure 15 : Privileged Operating System Groups

In the Perform Prerequisite Checks window, check the overall status of all the prerequisites.

If any prerequisites fail and have the status as Fixable, click the Fix & Check Again button.

Execute the runfixup.sh script provided by the Oracle OUI.

e9135ebabafb0761b05f20f974d5b334.png NOTE: If there are other prerequisites that display status Error, repeat step 13, If the Error status still persists after all changes have been fixed, select Ignore All.

69fd6c2345595bd777a9abd102cba29d.png Figure 16 : Perform Prerequisite Checks window

In the Summary window, select Install.

87ee1ce484973d07b0fe1576c0769d9d.png

Figure 15 : Completion of the installation process

On completion of the installation process, the Execute Configuration scripts wizard is displayed. Follow the instructions in the wizard and click Ok.

950368d80bebc9c23923272c4d53a366.png

Figure 17 : Finish window

In the Finish window, click Close. Creating Database Using DBCA

Login as oracle user.

From $, run the DBCA utility by typing:

$/bin/dbca &

In the Welcome window, select Oracle Single Instance Database and click Next.

2d9d1e05c53f2eba9e0e877e7169599a.png

Figure 18 : Create Database

In the operations window, select Create Database, and Click Next

dc62d5560f2f1b3c691562106be8743a.png

Figure 19: Custom Database

Select Custom Database Option the Database Templates Screen

db665fb8ee89cb3b4c28b29d27a85372.png

Figure 20: Global Database Name

In the Database Identification window:

Provide the Global Database Name

Provide the SID

8bdad0fa176a57d1eddecb3eeffdcc9a.png

Figure 21: Management Options window

In the Management Options window, select the default values and click Next.

9d9dd34cbb6f3347bf5bd338308cecf1.png

Figure 22 :credentials

In the Database Credentials window, enter the appropriate credentials for your Database.

6a145309f5748702b98d19b87094f037.png

Figure 23 :ASM

In the Database File Location window, select:

Automatic Storage Management (ASM) for Storage Type.

Use Oracle-Managed Files for Storage Location.

Browse to select the ASM disk group that you created to store the database files (DBDG)for Database Area.

d288e742558bf228bc0814998e462464.png

Figure 24:Disk Group

In the Select Disk Group sub window, Select the Disk Group

86deac32f4818de0f59c0ec12fe45fd6.png

Figure 25 :Recovery Configuration

In the Recovery Configuration window,

a)      Specify Fast Recovery Area

b)      Enable Archiving

Choose these options according to your environment and click Next

2a4b40a417c2c36f84cea3a1ebb255e1.png

Figure 26 :Database Content Window

In the Database Content Window, Click Next

bf08d413cb59741dd570350175c6f2ad.png

Figure 27 :Initialization Parameters window

In the Initialization Parameters window:

Select Custom.

For the Memory Management section, select Automatic Shared Memory Management.

Specify appropriate values for the SGA Size and PGA Size.

Click Next.

14765181312d222f2f71c43c60b96110.png

Figure 28 :Database Storage window

In the Database Storage window, click Next

135aa851e7c60d18c8d6ab4f94493122.png

Figure 29 :Creation Options Window

In the Creation Options Window, click Next

8206af91e85591da21e7ca29b339d48e.png

Figure 30 :Summary window

In the Summary window, click Ok to create Database.

447f7afc92b201f0ba3cfc940c2fc41e.png

Figure 31 :Confirmation

Click Exit on the Database Configuration Assistant window after the database creation is complete.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值