Sie sind auf Seite 1von 10

Oracle University

Technical Setup Document

Oracle Database 11g: Administration Workshop I


Global Course Code: D50102GC20
Last Modified: Aug 28, 2009

Copyright 2007, Oracle Corporation. All rights reserved.

Overview
Introduction
Welcome, and thank you for choosing Oracle University. This technical document describes the necessary steps to
follow in order to replicate the technical environment for which this course was designed. Before proceeding, you
may find it helpful to print this document for ease of reference.
During the course the student will use only the desktop environment.

Alternative Configurations
We strongly recommend following the exact configurations described in this document. However, we realize that
with the abundance of hardware, software, and networking configurations it will not always be possible to follow
these steps to the letter. As a result, here is a brief overview of some additional configurations that may work.
Please be sure to test these configurations thoroughly and discuss them in detail with your Oracle University
Representative before utilizing them to support the course.
None.

Software Licenses & Support


Please note the following as it relates to software licenses and support:

Oracle University does not provide product software or licenses for on-site training events. This
document assumes possession of all applicable Oracle software and associated licenses.
It is not possible to provide a complete and thorough installation guide in this document, though
effort is made to include important directions to follow when performing the installation. Customers
with product installation issues should open a Technical Assistance Request (TAR) with Oracle World
Wide Support for resolution.

Required Files
The following files and software are needed for the purposes of completing this setup. If you are missing all or part
of these files, please contact your Oracle University Representative:
A licensed version of Oracle Database 11g Release 2 (11.2.0.1.0) Enterprise Edition
Store the corresponding zip file in /stage/11.2.0 directory. If you prefer, you can use the production
DVD. If you used the zip file, extract it using the unzip command as user oracle.
D50102GC20_setup_doc.zip (this document)
D50102GC20_labs.zip

Name
Oracle Database 11g Release 2 (11.2.0.1.0)
Both database and clusterware software must be
staged for the students.

Part #
Unkown at
this time

Copyright 2007, Oracle Corporation. All rights reserved.

Glossary of Terminology
<Not all definitions below will apply to your courseware, and you may need to add additional definitions
specific to your courseware. Add/remove Glossary terms in alphabetical order as applicable If a term is
used in the setup instructions you should consider adding it to this glossary>
Application Server Middle Tier in a 3-Tier or N-Tier architecture. Could consist of the Oracle HTTP Server,
Forms Service, Reports Service and Discoverer Server.
Client Workstation The computer where client software is installed. Client software might include SQL*Plus,
Oracle Forms and Reports Developer, Oracle Designer, Jdeveloper, Procedure Builder and an HTML browser. In a
3-Tier or N-Tier architecture this would be the Client Tier. In the training environment, this is sometimes known
as the student machine.
Database - Collection of data that is treated as a unit. The purpose of a database is to store and retrieve related
information. The database consists of operating system files: data files, control files and redo log files.
Database Instance - Every time a database is started, a system global area (SGA) is allocated and Oracle
background processes are started. The system global area is an area of memory used for database information
shared by the database users. The combination of the background processes and memory buffers is called an Oracle
instance.
Database Server - Computer where database is created. In a 3-Tier or N-Tier architecture this would be the
Database Tier.
DMP files files created buy the Oracle Export utility. These DMP files are then used by the Oracle Import utility
to import a database, a specific database users objects or a specific set of tables.
Intelligent Agent (IA) - A process running on the server that accepts and runs job requests from the Oracle
Enterprise Manager Console.
Oracle Enterprise Manager (OEM) - a Graphical User Interface tool used to manage Oracle databases.
OEM Repository - database that stores information about resources managed through OEM.
Oracle Management Server - provides a scaleable middle tier for processing system management tasks. It is the
optional middle tier of Oracle Enterprise Manager (OEM) n-tier architecture.
ORACLE_BASE operating system variable that specifies the BASE of the Oracle directory structure for OFAcompliant databases.
ORACLE_HOME - operating system variable that points to the directory where oracle has been installed
ORACLE_SID operating system variable that determines the instance an Oracle application connects to by
default.

Copyright 2007, Oracle Corporation. All rights reserved.

Setup Instructions
Hardware Requirements for Workstation

Minimum
Operating
System*

Enterprise Linux 5 Update 2


Kernel 2.6.18-92.0.0.0.2.el5

Recommended
Enterprise Linux 5 Update 2
Kernel 2.6.18-92.el5
Linux 2.6.9-42.0.0.0.1

CPU
Memory
Hard Drive

1.0 GHz

2 GB
60 GB

1.7 GHz
2 GB
60 GB

Video

1024x768 resolution, 256 color, 70Hz


refresh

Or Higher

Monitor

17 1024 x 768 resolution at 70MHz

Or Higher

CD-ROM

4x CD-ROM SCSI or EIDE

Or faster

Ethernet

16 bits 10 Base T twisted pair

Or faster

Browser

Mozilla 1.6

Mozilla1.7.13

Plugin

Adobe SVG Plugin 3.0.1

Adobe SVG Plugin 3.0.1

* IMPORTANT: The repository files for this course are specifically intended to be used with these exact kernel
versions. They will not work with any other kernels.

Copyright 2007, Oracle Corporation. All rights reserved.

Workstation Setup Instructions


Software Setup Instructions
1. Make sure you have the following groups and user assignments configured:
oracle:x:501:oracle
oinstall:x:502:
dba:x:503:oracle
oper:x:504:oracle
2. Setup the following environment variable for user oracle in the .bash_profile of user oracle:
umask 022
ORACLE_BASE=/u01/app/oracle
export ORACLE_BASE
3. Make sure you can read the following line from /etc/fstab
none
/dev/shm
tmpfs size=1152M
Then reboot your machine.

00

4. Make sure you have the following kermen parameters set:


net.ipv4.ip_local_port_range = 9000 65500
fs.file-max = 6815744
net.core.wmem_max = 1048576
5. As root:
/sbin/sysctl -a | grep rmem_default
/sbin/sysctl -a | grep rmem_max
vi /etc/sysctl.conf
change to 4194304 both values
/sbin/sysctl -p
6. Make sure all RPMs needed for the Oracle Database 11g Release 2 (11.2.0) are installed. A
recommended approach is to install the Oracle validated rpm.
7. Edit /etc/pam.d/login:
session required pam_limits.so
8. Edit /etc/profile:
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
umask 022
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

Copyright 2007, Oracle Corporation. All rights reserved.

9. Edit /etc/modprobe.conf:
options hangcheck-timer hangcheck_tick=1 hangcheck_margin=10 hangcheck_reboot=1
10. Start vnc as the oracle user on port 5802; password is oracle
If vnc has been running kill the session and restart with the following commands:
vncserver kill :2
vi .nc/xstartup
vncserver :2
For Oracle pilot ACES environment: To access for example the edt3r10p1 machine through your web
browser, use:
http://edt3r10p1.us.oracle.com:5802/
11. Creating the ASM environment
To exceed the default losetup loopback limit of eight loopback devices, as OS user root, add the
following line to /etc/modprobe.conf, then reboot:
options loop max_loop=32
For the initial setup of the ASM Disks, execute these commands as OS user root:
# Create the directory in which the flat files will reside
mkdir -p /u01/asmdisks
# Create the flat files which will represent disks
dd
dd
dd
dd
dd
dd
dd
dd
dd
dd
dd
dd
dd

if=/dev/zero
if=/dev/zero
if=/dev/zero
if=/dev/zero
if=/dev/zero
if=/dev/zero
if=/dev/zero
if=/dev/zero
if=/dev/zero
if=/dev/zero
if=/dev/zero
if=/dev/zero
if=/dev/zero

of=/u01/asmdisks/_file_disk_01
of=/u01/asmdisks/_file_disk_02
of=/u01/asmdisks/_file_disk_03
of=/u01/asmdisks/_file_disk_04
of=/u01/asmdisks/_file_disk_05
of=/u01/asmdisks/_file_disk_06
of=/u01/asmdisks/_file_disk_07
of=/u01/asmdisks/_file_disk_08
of=/u01/asmdisks/_file_disk_09
of=/u01/asmdisks/_file_disk_10
of=/u01/asmdisks/_file_disk_11
of=/u01/asmdisks/_file_disk_12
of=/u01/asmdisks/_file_disk_13

bs=1k
bs=1k
bs=1k
bs=1k
bs=1k
bs=1k
bs=1k
bs=1k
bs=1k
bs=1k
bs=1k
bs=1k
bs=1k

count=2359296
count=2359296
count=2359296
count=2359296
count=2359296
count=2359296
count=2359296
count=2359296
count=2359296
count=2359296
count=2359296
count=2359296
count=2359296

# Make the flat files available as loopback devices


losetup
losetup
losetup
losetup
losetup
losetup
losetup
losetup
losetup
losetup
losetup
losetup
losetup

/dev/loop1 /u01/asmdisks/_file_disk_01
/dev/loop2 /u01/asmdisks/_file_disk_02
/dev/loop3 /u01/asmdisks/_file_disk_03
/dev/loop4 /u01/asmdisks/_file_disk_04
/dev/loop5 /u01/asmdisks/_file_disk_05
/dev/loop6 /u01/asmdisks/_file_disk_06
/dev/loop7 /u01/asmdisks/_file_disk_07
/dev/loop8 /u01/asmdisks/_file_disk_08
/dev/loop9 /u01/asmdisks/_file_disk_09
/dev/loop10 /u01/asmdisks/_file_disk_10
/dev/loop11 /u01/asmdisks/_file_disk_11
/dev/loop12 /u01/asmdisks/_file_disk_12
/dev/loop13 /u01/asmdisks/_file_disk_13

Copyright 2007, Oracle Corporation. All rights reserved.

# Alias the loopback devices to make them look like virtual block devices
(VBDs).
# The naming convention /dev/xvd<letter> was chosen so no course material
would
# require modification when the course is eventually moved to a VM
environment and
# the solution is implemented with VBDs.
ln
ln
ln
ln
ln
ln
ln
ln
ln
ln
ln
ln
ln

-s
-s
-s
-s
-s
-s
-s
-s
-s
-s
-s
-s
-s

/dev/loop1 /dev/xvdb
/dev/loop2 /dev/xvdc
/dev/loop3 /dev/xvdd
/dev/loop4 /dev/xvde
/dev/loop5 /dev/xvdf
/dev/loop6 /dev/xvdg
/dev/loop7 /dev/xvdh
/dev/loop8 /dev/xvdi
/dev/loop9 /dev/xvdj
/dev/loop10 /dev/xvdk
/dev/loop11 /dev/xvdl
/dev/loop12 /dev/xvdm
/dev/loop13 /dev/xvdn

# Change ownership to oracle:oinstall


# Change permissions to 666
chown -R oracle:oinstall /u01/asmdisks
chmod -R 666 /u01/asmdisks
chown oracle:oinstall /dev/loop[1-9]
chown oracle:oinstall /dev/loop1[0-3]
chmod 666 /dev/loop[1-9]
chmod 666 /dev/loop1[0-3]
Making the ASM environment persistent across reboot:

12.

On startup, losetup must be executed to allocate the loopback devices. On shutdown, losetup must be
executed to deallocate loopback devices. Failing to explicitly deallocate the loopback device can cause a
shutdown/reboot to take longer.
A new service will be created to handle this task. Vi file /etc/init.d/losetup. In the file place the following:
#!/bin/sh
#
# chkconfig: 345 13 89
# description: Allocates the flat files in /u01/asmdisks as loopback devices.
#
Creates links to those loopback devices to simulate the naming
#
convention of Oracle VM Server virtaual block devices.
#
# Source function library.
. /etc/init.d/functions
PATH=/sbin:/bin:/usr/sbin:/usr/bin
RETVAL=0
start()
{
losetup /dev/loop1 /u01/asmdisks/_file_disk_01

Copyright 2007, Oracle Corporation. All rights reserved.

losetup /dev/loop2 /u01/asmdisks/_file_disk_02


losetup /dev/loop3 /u01/asmdisks/_file_disk_03
losetup /dev/loop4 /u01/asmdisks/_file_disk_04
losetup /dev/loop5 /u01/asmdisks/_file_disk_05
losetup /dev/loop6 /u01/asmdisks/_file_disk_06
losetup /dev/loop7 /u01/asmdisks/_file_disk_07
losetup /dev/loop8 /u01/asmdisks/_file_disk_08
losetup /dev/loop9 /u01/asmdisks/_file_disk_09
losetup /dev/loop10 /u01/asmdisks/_file_disk_10
losetup /dev/loop11 /u01/asmdisks/_file_disk_11
losetup /dev/loop12 /u01/asmdisks/_file_disk_12
losetup /dev/loop13 /u01/asmdisks/_file_disk_13
ln -s /dev/loop1 /dev/xvdb
ln -s /dev/loop2 /dev/xvdc
ln -s /dev/loop3 /dev/xvdd
ln -s /dev/loop4 /dev/xvde
ln -s /dev/loop5 /dev/xvdf
ln -s /dev/loop6 /dev/xvdg
ln -s /dev/loop7 /dev/xvdh
ln -s /dev/loop8 /dev/xvdi
ln -s /dev/loop9 /dev/xvdj
ln -s /dev/loop10 /dev/xvdk
ln -s /dev/loop11 /dev/xvdl
ln -s /dev/loop12 /dev/xvdm
ln -s /dev/loop13 /dev/xvdn
chown oracle:oinstall /dev/loop[1-9]
chown oracle:oinstall /dev/loop1[0-3]
chmod 666 /dev/loop[1-9]
chmod 666 /dev/loop1[0-3]
success
echo
}
stop()
{
losetup -d /dev/loop1
losetup -d /dev/loop2
losetup -d /dev/loop3
losetup -d /dev/loop4
losetup -d /dev/loop5
losetup -d /dev/loop6
losetup -d /dev/loop7
losetup -d /dev/loop8
losetup -d /dev/loop9
losetup -d /dev/loop10
losetup -d /dev/loop11
losetup -d /dev/loop12
losetup -d /dev/loop13
rm -f /dev/xvd[b-n]
success

Copyright 2007, Oracle Corporation. All rights reserved.

}
case "$1" in
start)
start
;;
stop)
stop
;;
*)
echo $"Usage: $0 {start|stop}"
exit 1
esac
exit $RETVAL
After creating the file, /etc/init.d/losetup, change the permissions, then use chkconfig to enable the service.
As OS user root execute:
chmod 755 /etc/init.d/losetup
chkconfig losetup --add
chkconfig losetup on
chkconfig losetup --list
13. Create a script (such as setupasm.sh) from the following commands then run the script to create the
ASM Disks:
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid
oracleasm exit
oracleasm configure -i <<ENDASMCONF
oracle
dba
Y
Y
ENDASMCONF
oracleasm exit
oracleasm init
oracleasm createdisk ASMDISK01 /dev/xvdb
oracleasm createdisk ASMDISK02 /dev/xvdc
oracleasm createdisk ASMDISK03 /dev/xvdd
oracleasm createdisk ASMDISK04 /dev/xvde
oracleasm createdisk ASMDISK05 /dev/xvdf
oracleasm createdisk ASMDISK06 /dev/xvdg
oracleasm createdisk ASMDISK07 /dev/xvdh
oracleasm createdisk ASMDISK08 /dev/xvdi
oracleasm createdisk ASMDISK09 /dev/xvdj
oracleasm createdisk ASMDISK10 /dev/xvdk
oracleasm createdisk ASMDISK11 /dev/xvdl
oracleasm createdisk ASMDISK12 /dev/xvdm
oracleasm createdisk ASMDISK13 /dev/xvdn
oracleasm scandisks
oracleasm listdisks
14. Make sure the Oracle Database 11g (database and clusterware software are staged in the following
directories:
Database /stage/11.2.0/database
Clusterware /stage/11.2.0/clusterware
deinstall software (optional) /stage/11.2.0/deinstall
15. Unzip D50102GC20_labs.zip to the /home/oracle directory. This should create a /home/oracle/labs

Copyright 2007, Oracle Corporation. All rights reserved.

directory where all the student lab files reside.


16. Open a terminal window in your GUI environment.

Clean Up
Server Clean-Up

Related Courses
We hope your Oracle University training experience was a positive one! For information on additional training
services and opportunities within , please visit us at http://education.oracle.com. We look forward to serving you
again in the future.

Copyright 2007, Oracle Corporation. All rights reserved.

10

Das könnte Ihnen auch gefallen