Professional Documents
Culture Documents
D11299GC11
Production 1.1
December 2001
Terminology
Site Administrator – Point of contact responsible for setting up and testing classroom environment. The
administrator is also responsible for explaining setup and login procedures to the instructor.
Client/Server Course – Course conducted with client/server architecture. Database server resides on the
CLASSROOM SERVER and client software resides on each CLASSROOM WORKSTATION. Currently,
most language courses (Intro to Oracle, Intro to Oracle for Exp. Users, Advanced SQL, etc.) are
client/server courses.
CLASSROOM SERVER – This is the database server for most language courses. Some courses may
require middle tier software to be installed.
CLASSROOM WORKSTATION - A PC used by a student to perform practice labs. For the language
courses, the client must have all necessary software installed and running locally. For standalone courses,
both client and server software must be locally. Some courses may require middle tier software to be
installed.
N-Tier Course – Course conducted with database on CLASSROOM SERVER, client software installed on
CLASSROOM WORKSTATION and middle tier installed on the CLASSROOM SERVER or the
CLASSROOM WORKSTATION. Several courses require an N-Tier configuration. Currently all
language courses (Oracle9i: Introduction to SQL, Oracle9I: Program with PL/SQL, etc… ) are N-Tier
courses.
Standalone Course - Course conducted with database server, middle tier server (if required) and client
software residing on each CLASSROOM WORKSTATION. Currently all DBA courses (Oracle9i
Database Administration Fundamentals I and II, and Oracle9i Database Performance Tuning) are
standalone courses.
Specific software requirements for this course can be found in the section titled Course Specific
Description and Information.
Unless noted otherwise, the CLASSROOM SERVER can be used as the Instructors WORKSTATION.
Documentation
Documentation can be found at the Oracle University On-Site and Partner web site.
Individual course setup documents are also available at this site. These documents provide step by step
course setup instructions and tests that verify the setup. This documentation is intended primarily for the
site administrators.
In addition, there are instructor read me files on how to conduct each course on Windows NT. These files
are intended for instructors, but site administrators should also review them. These read me files include
corrections to demo, labs, and solution files.
Once downloaded, the course setup files will be extracted from the ZIP file. The extraction will create a
directory structure, starting at the highest level of c:\oracourse. An environment variable
%CLASS_SOURCE% is set to the location of the setup files. Default location is
%CLASS_SOURCE%=c:\oracourse
Client/Server Courses
All demo, labs, and solution files are placed to each CLASSROOM WORKSTATION
during the course setup. A folder structure is created that is course specific. The
following folder structure is an example of a typical Client/Server course.
c:\oraclass\demo
\labs
\solutions
Location of Course Files (continued)
Standalone Courses
All demo, labs, and solution files are placed on each CLASSROOM WORKSTATION
during the course setup. Additionally a database is created, to include and all data files,
control files and redo log files. The folder structure is course specific. For example, the
folder structure created for the Oracle9i Database Administration Fundamentals I will be
as follows:
c:\oraclass\admin\bdump
c:\oraclass\admin\cdump
c:\oraclass\admin\create
c:\oraclass\admin\pfile
c:\oraclass\admin\udump
c:\oraclass\backup\log
c:\oraclass\backup\noarch
c:\oraclass\backup\rman
c:\oraclass\backup\uman
c:\oraclass\demo
c:\oraclass\donttouch
c:\oraclass\network\admin
c:\oraclass\network\log
c:\oraclass\oradata\archive1
c:\oraclass\oradata \archive2
c:\oraclass\oradata\u01
c:\oraclass\oradata\u02
c:\oraclass\oradata\u03
c:\oraclass\oradata\u04
c:\oraclass\oradata\u05
c:\oraclass\oradata \u06
c:\oraclass\student\labs
c:\oraclass\student\solns
Multiple ORACLE_HOMEs
The software that you have installed determines the number of ORACLE_HOMEs you have. The
following table is provided as an example.
A description of the ORACLE_HOMEs required for this specific course can be found in the section titled
Course Specific Description and Information.
Multiple ORACLE_HOMEs (continued)
For most courses each ORACLE_HOME registry value will have the following entries
ORACLE_SID=DBA
TNS_ADMIN=c:\oracle\ora90\network\admin
SQLPATH=c:\oraclass\code_examples; c:\oraclass\demo; c:\oraclass\labs; c:\oraclass\solutions
The ORACLE_SID entry forces each ORACLE application (SQL*Plus, Form Builder, etc.)
installed into that ORACLE HOME to connect to the specified instance by default. In the
example above the specified instance is DBA.
The TNS_ADMIN entry forces all requests for service name resolution (system/manager@V901)
to be resolved from one location. This eliminates the need for sqlnet.ora and tnsnames.ora in
multiple ORACLE_HOMEs.
The SQLPATH entry sets the search path for SQL*Plus, eliminating the need to type the full path
when issuing the @ or START command in SQL*Plus.
Each course setup document specifies which %ORACLE_HOME%\bin should appear first in the PATH
variable. To change the order of the PATH variable, go to My Computer, right click, select Properties and
edit the PATH System Variable.
NT Services
Prior to starting an instance, an NT service must be started. The NT service that allows the instance to be
started is created by the ORADIM Utility.
Almost every Oracle executable runs as an NT Service including the Listener, Intelligent Agent, Names
Server, Connect Manager and Oracle Management Server, etc., all run as NT services. Most of these
services are created upon installing the software. To view, start, and stop services go to Start > Settings >
Control Panel > Services.
Course Specific Description and Information
The Instructor CLASSROOM WORKSTATION and each student CLASSROOM WORKSTATION will
have Oracle9i DB EE 9.0.1.1.1 installed.
1.Default Oracle Home c:\oracle\ora90 9iDB EE 9.0.1.1.1 and set Patch Set
2271678 applied.
The first, OEMREP, will be created using the Enterprise Manager Configuration Assistant. OEMREP will
be the repository for the Oracle Management Server (OMS).
The DBA database will be created by running a DOS command file. The DBA database is used by the
students to perform practices exercises. It is commonly know as the “managed database”.
Hardware Requirements
Minimum Recommended
Memory 512M
Overview: In this phase you will install software, configure the network, and create databases on all
CLASSROOM WORKSTATIONS. These steps will be performed on the Instructor CLASSROOM
WORKSTATION and each student CLASSROOM WORKSTATION.
Requirements:
Ensure CLASSROOM WORKSTATION has NT 4.0 Server or Workstation, Service Pack 5, TCP/IP
installed and the host name is resolvable through local host file or a Domain Name Server.
Install Netscape Communicator 4.X or Internet Explorer 5.5, WinZip, and Adobe Acrobat.
Open the setup file in WINZIP. Extract all files to c:\ and ensure that “Use Folder Name” box is checked.
This will create the c:\oracourse folder structure required for the setup.
Note:
After all software is installed there will be the following ORACLE_HOME on each CLASSROOM
WORKSTATION with the following software installed:
1.Default Oracle Home c:\oracle\ora90 9iDB EE 9.0.1.1.1 and set Patch Set
2271678 applied.
Overview: In this phase you will create an NT group, create NT users, add rights and set user
environment variables.
Duration: 10 minutes
Go to Start Menu, Programs, Administrative Tools (Common), and open User Manager for Domains.
Select User -New Local Group in the Menu Bar and enter "ORA_DBA" in the Group Name dialogue box.
Add Administrator to the group ORA_DBA.
Select User -New Local Group in the Menu Bar and enter "ORA_DBA" in the Group Name dialogue box.
Add Administrator to the group ORA_DBA.
Select User -New User in the Menu Bar. Enter "dba" for the Username and "oracle" for the Password.
Ensure that "User Must Change Password at Next Login" and "Account Disabled" are not checked. Ensure
that "User Cannot Change Password" and "Password Never Expires" are checked. Add the "dba" user to
the "Administrators", "ORA_DBA" and "Users" Groups.
Select Policies - User Rights. In the User Rights Policy screen check "Show Advanced Rights". In the
"Right" drop down box select "Act as part of the operating system". Click the "Add" button. In the "Add
Users and Groups" screen highlight the "Administrators" and the "ORA_DBA" groups and click "Add".
Repeat this process for the following Advanced Rights, "Increase quotas", "Log on as a service", "Log on
as a batch job" and "Replace a process level token". The end result is the Administrator and ORA_DBA
groups should have the following Advanced Rights:
Log into the CLASSROOM WORKSTATION as the user "dba" with a password of "oracle".
Set CLASS_HOME as a user environment variable with a value of the location of course
lab/demo/solution files. The recommended location is c:\oraclass. To set a system variable access the
System Properties property sheet by either right clicking on My Computer and selecting Properties or via
the Control Panel System icon. Select the Environment tab and highlight any of the variables in the User
Variables window then in the Variable text field enter CLASS_HOME and in the Value text field enter
c:\oraclass. Click OK to save the changes.
1b. Install Oracle9i Database Server
Overview: In this phase you will install Oracle9i Database Server. During testing better results were
achieved by copying all files from all 3 CDs to a staging area on the CLASSROOM
WORKSTATION. Folders were created c:\temp\disk1, c:\temp\disk2 and c:\temp\disk3. Files were
copied from each CD to these folders.
Duration: 40 minutes
Place the Oracle9i Database Server Enterprise Edition CD into the CD-ROM or start the installer by
double-clicking \disk1\Setup.
Overview: Due to a bug, Oracle 9.0.1.1.1 doesn’t include the TKPROF utility. Therefore, patch set
2271678 must be applied.
Overview: In this phase you will configure a Listener and service names.
Duration: 10 minutes
Edit c:\oracle\ora90\network\admin\listener.ora and replace all occurrences of XXXXX with the name of
the CLASSROOM_WORKSTATION.
Edit the ORACLE_HOME for each instance. DBA should have an ORACLE_HOME where 9.0.1.3.1 is
installed (c:\oracle\ora90 is the default location).
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dorme-lap)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 9.0.1.3.1 - Production
Start Date 22-JUL-2002 09:02:17
Uptime 0 days 0 hr. 0 min. 2 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File D:\oracle\ora90\network\admin\listener.ora
Listener Log File D:\oracle\ora90\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dorme-lap.us.oracle.com)(PORT=1521)))
Services Summary...
Service "DBA.WORLD" has 1 instance(s).
Instance "DBA", status UNKNOWN, has 1 handler(s) for this service...
Service "OEMREP.WORLD" has 1 instance(s).
Instance "OEMREP", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
1c. Configure Oracle Net (continued)
Overview: In this phase you will create the DBA database by running a DOS command file and
perform tests to ensure proper creation. Also, a backup of the database is taken. This backup is
restored prior to starting the workshop.
Duration: 40 minutes
Overview: The purpose of this task is to setup variables for your location.
Edit c:\oracourse\setup\9iperf.cmd and ensure the following variables are set correctly for your location.
Overview: In the script credb2.sql a call is made to script sh_main.sql. The fourth argument for this
script is the physical path that specifies the location of other required scripts and data files for
SQL*Loader.
Edit c:\oracourse\9iperf\setup\credb2.sql. Just prior to the EXIT command look for the following
@%ORACLE_HOME%\demo\schema\sales_history\sh_main
At a dos prompt change directories to location of DOS command file and run 9idbaI.cmd
C:\
C:\>cd oracourse\setup
C:\Oracourse\Setup>9iperf.cmd
C:\Oracourse\Setup>sqlplus system/manager@dba
Connected to:
Oracle9i Enterprise Edition Release 9.0.1.3.1 - Production
With the Partitioning option
JServer Release 9.0.1.3.0 - Production
SQL>
USERNAME
------------------------------
DBSNMP
HR
MDSYS
OE
ORDPLUGINS
ORDSYS
OUTLN
SH
SYS
SYSTEM
10 rows selected.
1d. Create DBA Database (continued)
TABLESPACE_NAME
------------------------------
INDX
SAMPLE
SYSTEM
TEMP
UNDOTBS
USERS
6 rows selected.
SQL> connect hr/hr@dba
Connected.
SQL> select table_name
2 from user_tables
3 order by 1;
TABLE_NAME
------------------------------
COUNTRIES
DEPARTMENTS
DEPARTMENTS_HIST
EMPLOYEES
EMPLOYEES_HIST
JOBS
JOB_HISTORY
LOCATIONS
REGIONS
9 rows selected.
1e. Create OEMREP Database
Overview: In this phase you will create the OEMREP database using the Enterprise Manager
Configuration Assistant. Additionally this will create the repository required for the OMS.
Duration: 40 minutes
Start > Programs > Oracle – OraHome90 > Configuration and Management Tools > Enterprise
Management Configuration Assistant.
In the “Configuration Assistant, step 2 of 5: Configuration Operation” screen, select “Configure local
Oracle Management Server” then select "Next".
In the “Configuration Assistant, step 3 of 5: Configure Oracle Management Server” screen, select
“Create a new repository” then select "Next".
In the “Configuration Assistant, step 4 of 5: Create New Repository Options” screen, select “Typical”
then select "Next".
In the “Configuration Assistant, step 5 of 5: Create Repository Summary” screen, select “Finish”.
In the “Configuration Assistant Progress” screen, select “Close” when the “Processing Completed”
window indicates 100%.
Overview: In this phase you will perform miscellaneous tasks as part of the final preparation for
class.
Duration: 15 minutes
NT Services
Before starting the class ensure the following NT services are Started and set to start Automatically on
each student and instructor workstation.
OracleOraHome90Agent
OracleOraHome90TNSListener
OracleServiceDBA
OracleServiceOEMREP
Before starting the class ensure the OracleOraHome90ManagementServer NT service is Stopped and set to
start Manually on each student and instructor workstation.
When the “OMS Login” screen is displayed provide the following, then select “OK”
Administrator: sysman
Password: oem_temp
Before starting the class ensure the OracleOraHome90HTTPServer NT service is Stopped and set to start
Manually on each student and instructor workstation.
The OracleOraHome90HTTPServer service is intentionally Stopped and set to start Manually prior to
class starting. The course setup or course notes do not specifically call for the use of iSQL*Plus by the
students. But, it would do no harm starting this service, allowing the students to access the databases with
iSQL*Plus. The choice is up to the site administrator.
Select the Value SQLPATH, in the String box type replace the existing string with
c:\oraclass\demo;c:\oraclass\student\labs;c:\oraclass\student\solns;c:\oraclass\student\wkshop then click
OK.
Oracle9i Database Performance Tuning
Instructor Readme Notes
Production 1.1 December 2001
A Standalone course on NT
NT Log In Accounts
Students and instructors log into their NT CLASSROOM WORKSTATION with the following
NT Services
Before starting the class ensure the following NT services are Started and set to start Automatically on
each student and instructor workstation. Stop all other Oracle services and set them to start manually.
OracleOraHome90Agent
OracleOraHome90TNSListener
OracleServiceDBA
OracleServiceOEMREP
Before starting the class ensure the OracleOraHome90ManagemnetServer NT service is Stopped and set
to start Manually on each student and instructor workstation.
When the “OMS Login” screen is displayed provide the following, then select “OK”
Administrator: sysman
Password: oem_temp
Before starting the class ensure the OracleOraHome90HTTPServer NT service is Stopped and set to start
Manually on each student and instructor workstation.
The OracleOraHome90HTTPServer service is intentionally Stopped and set to start Manually prior to
class starting. The course setup or course notes do not specifically call for the use of iSQL*Plus by the
students. But, it would do no harm starting this service, allowing the students to access the databases with
iSQL*Plus. The choice is up to the site administrator.
Oracle9i Database Performance Tuning
Instructor Readme Notes
Production 1.1 December 2001
A Standalone course on NT
c:\oraclass\admin\bdump
c:\oraclass\admin\cdump
c:\oraclass\admin\create
c:\oraclass\admin\pfile
c:\oraclass\admin\udump
c:\oraclass\backup\log
c:\oraclass\backup\noarch
c:\oraclass\backup\rman
c:\oraclass\backup\uman
c:\oraclass\demo
c:\oraclass\donttouch
c:\oraclass\network\admin
c:\oraclass\network\log
c:\oraclass\oradata\archive1
c:\oraclass\oradata \archive2
c:\oraclass\oradata\u01
c:\oraclass\oradata\u02
c:\oraclass\oradata\u03
c:\oraclass\oradata\u04
c:\oraclass\oradata\u05
c:\oraclass\oradata \u06
c:\oraclass\student\labs
c:\oraclass\student\solns
c:\oraclass\workshop
Oracle9i Database Performance Tuning
Instructor Readme Notes
Production 1.1 December 2001
A Standalone course on NT
The student guides were written for UNIX servers. The CLASS_HOME variable on NT is the
equivalent of $HOME on UNIX.
Practice 7
Page 12-48
5.
Page 13-36
5.
10.
12
16.
Page 16-8
The students should run wksh.cmd located in c:\oraclass\student\wkshop.
When running Scenario 4 errors are expected due to fact that it attempts to drop primary key indexes and
alter lob indexes.
Page 16-9
The scenario to put the database back in Automatic Managed Undo is 7 instead of 0.
Oracle9i Database Performance Tuning
Instructor Readme Notes
Production 1.1 December 2001
A Standalone course on NT
Page 16-11
This command file, wkload.cmd takes three parameters. All parameters have default values.
Third is # of times the OLTP and DSS users log in to the database and perform tasks.
If it is null it defaults to 5.
The following is an example of running the workload twice with three OLTP users and three DSS users.
C:\Oraclass\Student\Wkshop>wkload 3 3 2
Workload will run with 3 OLTP users.
Workload will run with 3 DSS users.
Workload will run 2 times.
Starting pass number 1.
Starting pass number 2.
Workload command file complete.
C:\Oraclass\Student\Wkshop>
Oracle9i Database Performance Tuning
Instructor Readme Notes
Production 1.1 December 2001
A Standalone course on NT
Appendix C
The script wk3.sh (wk3.cmd) doesn’t exist. To simulate a nighttime workload, run the workload generator
as follows.
C:\Oraclass\Student\Wkshop>wkload 0 5
C:\Oraclass\Student\Wkshop>wkload 0 5