Beruflich Dokumente
Kultur Dokumente
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.
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
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.
Setup Instructions
Hardware Requirements for Workstation
Minimum
Operating
System*
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
Or Higher
Monitor
Or Higher
CD-ROM
Or faster
Ethernet
Or faster
Browser
Mozilla 1.6
Mozilla1.7.13
Plugin
* 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.
00
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
/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
# 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
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
}
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
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.
10