You are on page 1of 23

Oracle9i Database Performance Tuning

D11299GC11

Production 1.1

December 2001

Setup Document for NT


Last Modified July 22, 2002
Terminology and Environment Description

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.

Location of Course 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.

Oracle Home Location Software Installed

1. Default Oracle Home c:\oracle\ora90 Oracle9i Enterprise Edition

2. isuites c:\oracle\isuites Oracle9i Application Server

3. dev6I c:\dev6I Developer 6i

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

Running Oracle on the NT platform requires you to be familiar with 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

Specific Information for Oracle9i Database Performance Tuning

Oracle9i Database Performance Tuning is a Standalone course. On the Instructor CLASSROOM


WORKSTATION and each student CLASSROOM WORKSTATION you will install the required
software, configure the network and create two databases. One database will be created and serve as the
repository for the Oracle Management Server. The other database will be used by the students to perform
practice exercises.

Setup of Instructor and each Student CLASSROOM WORKSTATION

The Instructor CLASSROOM WORKSTATION and each student CLASSROOM WORKSTATION will
have Oracle9i DB EE 9.0.1.1.1 installed.

On the Instructor CLASSROOM WORKSTATION and each student CLASSROOM WORKSTATION


one ORACLE HOME will exist.

Oracle Home Location Software Installed

1.Default Oracle Home c:\oracle\ora90 9iDB EE 9.0.1.1.1 and set Patch Set
2271678 applied.

Two databases will be created.

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

Instructor CLASSROOM WORKSTATION and each Student


CLASSROOM WORKSTATION

Minimum Recommended

Operating System NT Workstation Service Pack 5

CPU Pentium II 200 Pentium II 233

Memory 512M

Hard Drive 8 GB NTFS

Video 1024x768 resolution, 256 color, 70Hz refresh

Monitor 17” 1024 x 768 resolution at 70MHz

CD-ROM 4x CD-ROM SCSI or EIDE

Ethernet 16 bits 10 Base T twisted pair

These minimums only consider NT 4.0 and Oracle software.


1. Configure CLASSROOM WORKSTATIONS

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.

Duration : 1 hours and 20 minutes per 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:

Oracle Home Location Software Installed

1.Default Oracle Home c:\oracle\ora90 9iDB EE 9.0.1.1.1 and set Patch Set
2271678 applied.

Two databases will be created DBA and OEMREP


1a. NT Setup

Overview: In this phase you will create an NT group, create NT users, add rights and set user
environment variables.

Duration: 10 minutes

Task: Create NT group, users and rights

Log into the CLASSROOM WORKSTATION as the administer.

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:

Act as part of the operating system


Increase quotas
Log on as a batch job
Log on as a service
Replace a process level token

Task: Setup User Environment Variables

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

Task: Install Oracle9i Database Server

Place the Oracle9i Database Server Enterprise Edition CD into the CD-ROM or start the installer by
double-clicking \disk1\Setup.

In the “Welcome” screen select "Next".


In the “File Location” screen enter the Name and Path of the Oracle9i ORACLE_HOME then select
“Next”
Name: OraHome90
Path: c:\oracle\ora90
In the “Available Products” screen select "Oracle9i Database 9.0.1.1.1 then select "Next".
In the "Installation Types" screen select "Enterprise Edition (1.76GB)" then select "Next".
In the "Database Configuration" screen select "Software Only" then select "Next".
In the "Summary" screen select "Install".
In the "End of Installation" screen select "Exit".

Reboot the CLASSROOM WORKSTATION.

Task: Apply Patch Set 2271678

Overview: Due to a bug, Oracle 9.0.1.1.1 doesn’t include the TKPROF utility. Therefore, patch set
2271678 must be applied.

Download patch set 2271678 from Metalink.

Install patch set in accordance with the instructions.


1c. Configure Oracle Net

Overview: In this phase you will configure a Listener and service names.

Duration: 10 minutes

Task: Configure Listener

Copy c:\oracourse\network\listener.ora to c:\oracle\ora90\network\admin.

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).

Go to a DOS prompt and type the following:


LSNRCTL for 32-bit Windows: Version 9.0.1.3.1 - Production on 22-JUL-2002 09:02:13

Copyright (c) 1991, 2001, Oracle Corporation. All rights reserved.

Starting tnslsnr: please wait...

Failed to open service <OracleOraHome90TNSListener>, error 1060.


TNSLSNR for 32-bit Windows: Version 9.0.1.3.1 - Production
System parameter file is D:\oracle\ora90\network\admin\listener.ora
Log messages written to D:\oracle\ora90\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dorme-
lap.us.oracle.com)(PORT=1521)))

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)

Task: Configure Net8 Service Names

Copy c:\oracourse\network\tnsnames.ora to c:\oracle\ora90\network\admin.

Edit c:\oracle\ora90\network\admin tnsnames.ora and replace all occurrences of


CLASSROOM_WORKSTATION with the name of the CLASSROOM_WORKSTATION.

Copy c:\oracourse\network\sqlnet.ora to c:\oracle\ora90\network\admin.


1d. Create DBA Database

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

Task: Setup environment variables for CLASSROOM WORKSTATION

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.

set CLASS_SOURCE=c:\oracourse Location of course setup files.


set ORACLE_HOME=c:\oracle\ora90 Location of ORACLE_HOME.
set CLASS_HOME=c:\oraclass Location of course demo/lab/solution files.

Task: Edit credb2.sql on CLASSROOM SERVER

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

Edit the fourth argument (c:\oracle\ora90\demo\schema\sales_history\ ) to specify the correct physical


location.

Task: Create DBA Database

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

NOTE – Check c:\oraclass\admin\create\credb.log and c:\oraclass\labs\credb1.log for any errors.

When complete close DOS window.


1d. Create DBA Database (continued)

Task: Test Setup

At a DOS Prompt type the following:

C:\Oracourse\Setup>sqlplus system/manager@dba

SQL*Plus: Release 9.0.1.3.0 - Production on Mon Jul 22 10:49:12 2002

(c) Copyright 2001 Oracle Corporation. All rights reserved.

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>

SQL> select username


2 from dba_users order by 1;

USERNAME
------------------------------
DBSNMP
HR
MDSYS
OE
ORDPLUGINS
ORDSYS
OUTLN
SH
SYS
SYSTEM
10 rows selected.
1d. Create DBA Database (continued)

Task: Test Setup (continued)

SQL> select tablespace_name


2 from dba_tablespaces
3 order by 1;

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

Task: Create OEMREP

Start the Enterprise Manager Configuration Assistant.

Start > Programs > Oracle – OraHome90 > Configuration and Management Tools > Enterprise
Management Configuration Assistant.

In the “Configuration Assistant, step 1 of 5: Welcome!” screen, select "Next".

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 “Oracle Database Configuration Assistant” screen, select “Exit”.

In the “Configuration Assistant Progress” screen, select “Close” when the “Processing Completed”
window indicates 100%.

Task: Stop and Start Oracle Intelligent Agent

Start > Settings > Control Panel > Services

Select the “OracleOraHome90Agent”, then select “Stop”.

Select the “OracleOraHome90Agent”, then select “Start”.


1f. Final Preparation

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.

Task: Update Registry

At a DOS Prompt type c:\regedt32

Navigate to HKEY_LOCAL_MACHINE>SOFTWARE>ORACLE>HOMEX (ORACLE_HOME


where Oracle9i installed)

Select the Value ORACLE_SID then click OK.


In the String box type in DBA then click OK.

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

User Name: dba


Password: oracle

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

Location of Course Files

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

Lesson, Demo, Lab ands Solution Corrections

Note: Location of course files and variables

Demo files: c:\oraclass\demo


Practice files: c:\oraclass\student\labs
Solution files: c:\oraclass\student\solns
Parameter file: %ORACLE_HOME%\database\initDBA.ora with one parameter
ifile=c:\oraclass\admin\pfile\initdba.ora
Password file: %ORACLE_HOME%\database\pwddba.ora
ORACLE_SID: DBA
CLASS_HOME: c:\oraclass
Service Name: DBA.WORLD

The student guides were written for UNIX servers. The CLASS_HOME variable on NT is the
equivalent of $HOME on UNIX.

Lesson and Practice 2 Diagnostics and Tuning Tools

Prior to using the Enterprise Manager Console perform the following

Start the Oracle Management Server

1. Start > Settings > Control Panel > Services


2. Ensure that the OracleServiceOEMREP is started.
3. Start the OracleOraHome90ManagementServer service.
4. Optionally set the OracleOraHome90ManagementServer service to start Automatically.

Start the Enterprise Manager Console

1. Login with username/password of sysman/oracle.


2. Change password to oracle when prompted.
3. Perform Discovery.
4. Two databases will be displayed DBA.WORLD and OREMREP.WORLD.
Oracle9i Database Performance Tuning
Instructor Readme Notes
Production 1.1 December 2001
A Standalone course on NT

Lesson, Demo, Lab ands Solution Corrections (continued)

Practice 7

Practice 12 SQL Statement Tuning

Page 12-48

5.

The students should run lab12_06.sql.

Practice 13 Using Oracle Blocks Efficiently

Page 13-36

5.

The students should run lab13_04.cmd from a DOS prompt.

10.

The students should run lab13_04.cmd from a DOS prompt.

12

Need to grant quota to HR on tablespace.

16.

Need to grant quota to HR on tablespace.

Lesson 16 Workshop Overview


Prior to starting the workshop have the student run c:\oraclass\student\wkshop\workshop.sql from
SQL*Plus. This will restore the backup of the taken prior to class starting and will perform the tasks
necessary to prepare the database for the workshop. Check c:\oraclass\admin\create\workshop.log for
errors.

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

Lesson, Demo, Lab ands Solution Corrections (continued)

Page 16-11

The student should run wkload.cmd located in c:\oraclass\student\wkshop.

This command file, wkload.cmd takes three parameters. All parameters have default values.

First is # of OLTP users. If it is null it defaults to 3.

Second is # of DSS users. If it is null it defaults to 3.

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.

Depending on performance there may still be activity against the database.


Check Taskbar or Task Manager for SQL*Plus sessions.

C:\Oraclass\Student\Wkshop>
Oracle9i Database Performance Tuning
Instructor Readme Notes
Production 1.1 December 2001
A Standalone course on NT

Lesson, Demo, Lab ands Solution Corrections (continued)

Appendix C

Page C-12 Workshop Scenario 5 (Rollback Segments)

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

Page C-14 Workload Scenario 6 (Sorting)

To create a data warehouse workload, run the workload generator as follows.

C:\Oraclass\Student\Wkshop>wkload 0 5

You might also like