Академический Документы
Профессиональный Документы
Культура Документы
Administration Diagnostics
and Troubleshooting Case
Study
Student Guide
This documentation contains proprietary information of Oracle Corporation. It is provided under a license
agreement containing restrictions on use and disclosure and is also protected by copyright law. Reverse
engineering of the software is prohibited. If this documentation is delivered to a U.S. Government Agency of the
Department of Defense, then it is delivered with Restricted Rights and the following legend is applicable:
Use, duplication or disclosure by the Government is subject to restrictions for commercial computer software
and shall be deemed to be Restricted Rights software under Federal law, as set forth in subparagraph (c)(1)(ii)
of DFARS 252.227-7013, Rights in Technical Data and Computer Software (October 1988).
This material or any portion of it may not be copied in any form or by any means without the express prior
written permission of the Education Products group of Oracle Corporation. Any other copying is a violation of
copyright law and may result in civil and/or criminal penalties.
If this documentation is delivered to a U.S. Government Agency not within the Department of Defense, then it is
delivered with “Restricted Rights,” as defined in FAR 52.227-14, Rights in Data-General, including Alternate III
(June 1987).
The information in this document is subject to change without notice. If you find any problems in the
documentation, please report them in writing to Worldwide Education Services, Oracle Corporation, 500 Oracle
Parkway, Box SB-6, Redwood Shores, CA 94065. Oracle Corporation does not warrant that this document is
error-free.
Oracle and all references to Oracle Products are trademarks or registered trademarks of Oracle Corporation.
All other products or company names are used for identification purposes only, and may be trademarks of their
respective owners.
Author
Bill Sawyer
Paul Ferguson, Mike Skees, Claudius Jordan, Mike Mast, Ram Bhoopalam
Oracle Tutor
Table of Contents
Introduction ...........................................................................................................................1-1
Introduction .........................................................................................................................1-2
Objective..............................................................................................................................1-3
Problem Solving .....................................................................................................................2-1
Problem Solving ..................................................................................................................2-2
Objectives ............................................................................................................................2-3
Problem Solving Framework ...............................................................................................2-4
Terminology of Problem Solving ........................................................................................2-6
Problem Solving Thinking Patterns .....................................................................................2-8
Summary..............................................................................................................................2-13
Reading and Understanding Entity Relationship Diagrams..............................................3-1
Reading and Understanding Entity Relationship Diagrams.................................................3-2
Objectives ............................................................................................................................3-3
Entity Relationship Diagrams (ERDs).................................................................................3-4
What is an Entity?................................................................................................................3-5
Entities and Instances ..........................................................................................................3-6
Attributes .............................................................................................................................3-7
Relationships .......................................................................................................................3-8
Drawing Entities in ERDs....................................................................................................3-10
Drawing Attributes in ERDs................................................................................................3-11
Drawing Relationships in ERDs ..........................................................................................3-12
Perspectives of Relationships in ERDs................................................................................3-13
Reading Relationships in ERDs...........................................................................................3-14
Elements of an Oracle Applications ERD............................................................................3-15
Summary..............................................................................................................................3-17
Basic Applications Diagnostics and Troubleshooting Tools...............................................4-1
Basic Applications Diagnostics and Troubleshooting Tools ...............................................4-2
Objectives ............................................................................................................................4-3
Basic Applications Tools.....................................................................................................4-4
Summary..............................................................................................................................4-8
Useful Scripts .........................................................................................................................5-1
Useful Scripts ......................................................................................................................5-2
Objectives ............................................................................................................................5-3
Diagnostic Database Scripts ................................................................................................5-4
Diagnostic Applications Scripts...........................................................................................5-10
Applications Configuration Files.........................................................................................5-25
Controlling Servers..............................................................................................................5-27
Summary..............................................................................................................................5-29
Diagnosing the Database .......................................................................................................6-1
Diagnosing the Database .....................................................................................................6-2
Objectives ............................................................................................................................6-3
Checking Certification.........................................................................................................6-4
Patching and Patch Sets .......................................................................................................6-9
Other Tasks..........................................................................................................................6-11
Summary..............................................................................................................................6-19
Diagnosing Oracle Forms......................................................................................................7-1
Diagnosing Oracle Forms ....................................................................................................7-2
Objectives ............................................................................................................................7-3
R11i, Applications System Administration Diagnostics and Troubleshooting Case Study Table of
Contents
i
Important Terms ..................................................................................................................7-4
Forms Architecture ..............................................................................................................7-9
Forms Connection Process...................................................................................................7-10
Determining Form Version..................................................................................................7-25
Latest Version of Form........................................................................................................7-27
Install Forms on Windows NT.............................................................................................7-31
Forms Troubleshooting Techniques ....................................................................................7-34
Useful Links ........................................................................................................................7-39
Summary..............................................................................................................................7-42
Diagnosing Oracle Reports ...................................................................................................8-1
Diagnosing Oracle Reports..................................................................................................8-2
Objectives ............................................................................................................................8-3
Concurrent Processing Architecture ....................................................................................8-4
Determining Report Version................................................................................................8-6
Latest Version of Report......................................................................................................8-8
Install Reports on Windows NT ..........................................................................................8-12
Reports Troubleshooting Techniques ..................................................................................8-13
Summary..............................................................................................................................8-18
System Administration Quick Reference: Security and User Tasks .................................9-1
System Administration Quick Reference Security and User Tasks .....................................9-2
Objectives ............................................................................................................................9-3
User and Security Tasks ......................................................................................................9-4
Running Security and User Reports.....................................................................................9-11
Summary..............................................................................................................................9-15
System Administration Quick Reference: Concurrent Processing Tasks.........................10-1
System Administration Quick Reference Concurrent Processing Tasks .............................10-2
Objectives ............................................................................................................................10-3
Concurrent Processing Components ....................................................................................10-4
Concurrent Processing Flow................................................................................................10-11
Concurrent Processing Tasks...............................................................................................10-13
Concurrent Processing Scripts .............................................................................................10-25
Summary..............................................................................................................................10-27
System Administration Quick Reference: Printing Tasks .................................................11-1
System Administration Quick Reference Printing Tasks.....................................................11-2
Objectives ............................................................................................................................11-3
Printing within Oracle Applications ....................................................................................11-4
Printing Within Oracle Applications ...................................................................................11-9
Summary..............................................................................................................................11-19
System Administration Quick Reference: Install and Set-up Tasks .................................12-1
System Administration Quick Reference Install and Set-up Tasks .....................................12-2
Objectives ............................................................................................................................12-3
Install and Set-up Tasks.......................................................................................................12-4
Summary..............................................................................................................................12-17
Using WebIV to Solve Issues.................................................................................................13-1
Using the Knowledge Repository to Solve Issues ...............................................................13-2
Objectives ............................................................................................................................13-3
The Knowledge Repository .................................................................................................13-4
Using WebIV.......................................................................................................................13-5
Using MetaLink ...................................................................................................................13-9
A Knowledge Repository.....................................................................................................13-11
Summary..............................................................................................................................13-13
Using BUG to Solve Issues ....................................................................................................14-1
R11i, Applications System Administration Diagnostics and Troubleshooting Case Study Table of
Contents
ii
Using BUG to Solve Issues .................................................................................................14-2
Objectives ............................................................................................................................14-3
Using BUG ..........................................................................................................................14-4
Summary..............................................................................................................................14-9
Using ARU to Solve Issues ....................................................................................................15-1
Using ARU to Solve Issues .................................................................................................15-2
Objectives ............................................................................................................................15-3
Using ARU ..........................................................................................................................15-4
Summary..............................................................................................................................15-9
Using Certify to Solve Issues.................................................................................................16-1
Using Certify to Solve Issues...............................................................................................16-2
Objectives ............................................................................................................................16-3
Using Certify .......................................................................................................................16-4
Summary..............................................................................................................................16-7
Using eTRM to Solve Issues..................................................................................................17-1
Using eTRM to Solve Issues ...............................................................................................17-2
Objectives ............................................................................................................................17-3
The BIG Picture...................................................................................................................17-4
Oracle Repository 6i ............................................................................................................17-7
eTRM...................................................................................................................................17-8
Summary..............................................................................................................................17-12
Basic Apache Administration Skills .....................................................................................18-1
Basic Apache Administration Skills ....................................................................................18-2
Objectives ............................................................................................................................18-3
Basic Apache Skills .............................................................................................................18-4
Summary..............................................................................................................................18-7
Basic Operating System Skills - UNIX and Windows NT ..................................................19-1
Basic Operating System Skills UNIX and Windows NT.....................................................19-2
Objectives ............................................................................................................................19-3
UNIX and Windows NT Resources.....................................................................................19-4
Summary..............................................................................................................................19-6
Basic Tracing Skills ...............................................................................................................20-1
Basic Tracing Skills.............................................................................................................20-2
Objectives ............................................................................................................................20-3
Basic Tracing Skills.............................................................................................................20-4
Summary..............................................................................................................................20-11
R11i, Applications System Administration Diagnostics and Troubleshooting Case Study Table of
Contents
iii
Preface
Profile
Before You Begin This Course
Before you begin this course, you should have the following qualifications:
Prerequisites
R11i, Applications System Administration Diagnostics and Troubleshooting Case Study Table of
Contents
v
Related Publications
Oracle Publications
Forms-Based Products
Implementation Manual
Additional Publications
• read.me files
• Oracle Magazine
R11i, Applications System Administration Diagnostics and Troubleshooting Case Study Table of
Contents
vi
Typographic Conventions
Typographic Conventions in Text
R11i, Applications System Administration Diagnostics and Troubleshooting Case Study Table of
Contents
vii
Arrow Menu paths Select File—> Save.
Brackets Key names Press [Enter].
This course uses simplified navigation paths, such as the following example, to
direct you through Oracle Applications.
(N) Invoice > Entry > Invoice Batches Summary (M) Query > Find (B) Approve
1. (N) From the Navigator window, select Invoice > Entry > Invoice Batches
Summary.
Notations :
(N) = Navigator
(M) = Menu
R11i, Applications System Administration Diagnostics and Troubleshooting Case Study Table of
Contents
viii
(T) = Tab
(I) = Icon
(H) = Hyperlink
(B) = Button
This course uses a “navigation path” convention to represent actions you perform
to find pertinent information in the Oracle Applications Help System.
1. In the navigation frame of the help system window, expand the General
Ledger entry.
4. Review the Enter Journals topic that appears in the document frame of the
help system window.
Getting Help
Oracle Applications provides you with a complete online help facility.
Whenever you need assistance, simply choose an item from the Help menu to
pinpoint the type of information you want.
1. Choose Window Help from the Help menu, click the Help button on the
toolbar, or hold down the Control key and type 'h'.
R11i, Applications System Administration Diagnostics and Troubleshooting Case Study Table of
Contents
ix
2. If the document frame contains a list of topics associated with the window,
click on a topic of interest to display more detailed information.
3. You can navigate to other topics of interest in the help system, or choose
Close from your web browser's File menu to close help.
You can perform a search to find the Oracle Applications help information you
want. Simply enter your query in the text field located in the top-left frame of the
browser window when viewing help, then click the adjacent Find button.
R11i, Applications System Administration Diagnostics and Troubleshooting Case Study Table of
Contents
x
Introduction
Chapter 1
Introduction
Chapter 1 - Page 1
Introduction
Introduction
Introduction
Introduction
Chapter 1 - Page 2
Objective
Objective
Objective
After
After this
this course,
course, you
you should
should be
be able
able to:
to:
•• Diagnose
Diagnose and
and Troubleshoot
Troubleshoot any
any Oracle
Oracle
Applications problem.
Applications problem.
One, this courses differs in that no attempt is made to unite the various
units other than under the System Administration umbrella. In fact, unlike
many courses, this course can be taught in any unit order. I do hope that
you've done this unit, the Introduction, first. Otherwise, you are free to
work your way through the modules in any order you decide.
Does that mean that you know everything? Far from it. Please note the
words, diagnose and troubleshoot. The word, diagnose, means to
analyze the cause or nature of. The word, troubleshoot, means to
discover why something does not work effectively. Neither of these words
mean that the problem is fixed. Of course, in computer terms, the
Introduction
Chapter 1 - Page 3
assumption is that once you can identify a cause that it can and will be
fixed.
However, it is obvious that it is not intended or implied that you will be the
one to fix it. Might you have the skills to fix it? Maybe. But those are
skills that are outside of the scope of this course. Any overlap in the skills
should not be perceived as a ability to proceed into the arena of fixing
problems.
Three, this course differs in the use of lectures and course materials. The
lectures are intended merely as the starting points for discussion. I will
talk through the major points, and demonstrate many tools and
techniques. From there, I will leave you with hands-on exercises to
reinforce the real learning of the unit.
The tools and methods you get from this course will come as skills. Skills
must be practiced to become useful. You will become better at any given
skill the more you practice it. You, as the student, then have to decide
how much of your time you can and will invest in the learning of these
skills.
Here are some housekeeping notes that will help you as you go through
this course.
Introduction
Chapter 1 - Page 4
fails to pinpoint a problem, you have at the very least
learned where the problem is not. A failure to succeed
is not a failure to learn something.
Introduction
Chapter 1 - Page 5
Copyright © Oracle Corporation, 2000. All rights reserved.
Introduction
Chapter 1 - Page 6
Problem Solving
Chapter 2
Problem Solving
Chapter 2 - Page 1
Problem Solving
Problem
Problem Solving
Solving
Problem Solving
Chapter 2 - Page 2
Objectives
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Define
Define aa problem
problem solving
solving framework
framework
•• Define
Define and
and understand
understand 1414 problem
problem solving
solving
thinking
thinking patterns
patterns
•• Begin
Begin to
to define
define your
your personal
personal problem
problem solving
solving
style
style
Problem Solving
Chapter 2 - Page 3
Problem Solving Framework
Problem
Problem Solving
Solving Framework
Framework
•• PLAN
PLAN
•• DO
DO
•• CHECK
CHECK
•• ACT
ACT
Step 1 is PLAN. You will establish a plan for improvement based upon a
study, preferrably data-based, of the current situation.
Step 2 is DO. You test the plan on a small scale. In the Oracle world, this
implies a test system or something similar.
Step 3 is CHECK. You check to see if the trial produced the expected
results. Have you obtained the results you expected? Have you
pinpointed the problem? Has the problem been solved?
Step 4 is ACT. You reflect on what has been learned to decide what you
will continue doing. If it has solved the problem, will you roll this out to the
Problem Solving
Chapter 2 - Page 4
production systems? If it has pinpointed the problem, do you have
enough information to log a bug?
Problem Solving
Chapter 2 - Page 5
Terminology of Problem Solving
Terminology
Terminology of
of Problem
Problem Solving
Solving
•• Purpose
Purpose
•• Situation
Situation
•• Problem
Problem
•• Cause
Cause
•• Solvable
Solvable Cause
Cause
•• Issue
Issue
•• Solution
Solution
Purpose
Situation
Problem
A problem is a part of a situation which is not doing what we want (i.e., not
realizing its purpose.)
Cause
Cause is what makes a problem. Causes are the specific facts behind a
problem.
Problem Solving
Chapter 2 - Page 6
Solvable Cause
Issue
Solution
Problem Solving
Chapter 2 - Page 7
Problem Solving Thinking Patterns
Problem
Problem Solving
Solving Thinking
Thinking Patterns
Patterns
•• Strategic
Strategic thinking
thinking
•• Emotional
Emotional thinking
thinking
•• Realistic
Realistic thinking
thinking
•• Empirical
Empirical thinking
thinking
•• Rational
Rational thinking
thinking
•• Systems
Systems thinking
thinking
•• Cause
Cause &
& effect
effect thinking
thinking
•• Contingent
Contingent thinking
thinking
•• Five
Five times
times why
why
I'd like to give you a single problem solving method, and tell you to use
that for every problem. More importantly, I'd like to be able to tell you that
the method I gave you was 100% successful in solving any Oracle
problem. I'd like to give you all of this, but I can't.
Some of these processes will work faster than others in some situations.
In differing situations, those same successful processes will lead you into
dead-ends. The more processes you have for working through a process,
the more likely you are to be successful.
We are going to call the processes for solving problems, thinking patterns.
As you read through these thinking patterns, keep in mind that some may
be more readily applicable to your typical problems than others. However,
all of these thinking patterns are useful additions to your problem solving
toolbox.
Problem Solving
Chapter 2 - Page 8
The first four thinking patterns will help you evaluate if your thinking is right
or wrong. We will call these Judgement Thinking Patterns.
Strategic thinking
Emotional thinking
Realistic thinking
In thinking about the essential problem, remember the 80/20 rule. 80% of
the problems are caused by 20% of the causes.
Empirical thinking
Rational thinking
Problem Solving
Chapter 2 - Page 9
Next, we want to look at methods of thinking. While not perfect, these
methods may be used to reduce the frustration and dead-ends of problem
solving without a methodology. We will call these Process Thinking
Patterns.
Systems thinking
System
Purpose
Input
Output
Function
Inside cause (Solvable cause)
Outside cause (Unsolvable cause)
Result
This may also be called a blackbox approach. You define the inputs to the
system and outputs from the system. From those definitions, you can
define the function of the system.
Cause and effect relationships are amongst the most basic problem
solving methods.
Contingent thinking
Problem Solving
Chapter 2 - Page 10
Problem Solving Thinking Patterns
Problem
Problem Solving
Solving Thinking
Thinking Patterns
Patterns
•• Hypothesis
Hypothesis thinking
thinking
•• Conception
Conception thinking
thinking
•• Structure
Structure thinking
thinking
•• Convergence
Convergence & & divergence
divergence thinking
thinking
•• Time
Time order
order thinking
thinking
Hypothesis thinking
Conception thinking
Problem solving may not be rational or logical, and may need a healthy
dose of creativity. Conception thinking taps into the creative aspects of
our thought process by uses the following skills.
Problem Solving
Chapter 2 - Page 11
3. DEFINE what you know or don't know.
4. ARRANGE the problem (i.e., cards) in many ways to change
positions, forms, viewpoints, etc.
5. SOLVE the problem
Structure thinking
Use a structure, like a tree or circle, to define a situation and its complex
interrelations. High-level structures should be abstract, and low-level
structures should be more concrete.
This is a very basic thinking method. We should use care to make certain
that we are only use 1 or the other at any given time. If we try to contrast
and compare at the same time, problem solving will become inefficient.
Problem Solving
Chapter 2 - Page 12
Summary
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II know
know and
and can
can use
use the
the PDCA
PDCA framework
framework forfor
problem solving.
problem solving.
•• II know
know the
the basic
basic terminology
terminology of
of problem
problem solving.
solving.
•• II know
know 14
14 patterns
patterns for
for thinking.
thinking.
•• II have
have begun
begun toto develop
develop mymy own
own methodology
methodology for
for
problem solving.
problem solving.
Problem Solving
Chapter 2 - Page 13
Copyright © Oracle Corporation, 2000. All rights reserved.
Problem Solving
Chapter 2 - Page 14
Reading and Understanding
Entity Relationship Diagrams
Chapter 3
Reading
Reading and
and Understanding
Understanding
Entity
Entity Relationship
Relationship Diagrams
Diagrams
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Read
Read and
and understand
understand Entity
Entity Relationship
Relationship
Diagrams (ERDs).
Diagrams (ERDs).
•• Read
Read and
and understand
understand the
the Oracle
Oracle Applications
Applications
Technology
Technology ERDs.
ERDs.
Entity
Entity Relationship
Relationship Diagrams
Diagrams (ERDs)
(ERDs)
•• ItIt describes
describes exactly
exactly the
the information
information needs
needs of
of the
the
business.
business.
•• ItIt facilitates
facilitates discussion.
discussion.
•• ItIt helps
helps to
to prevent
prevent mistakes,
mistakes, misunderstanding.
misunderstanding.
•• ItIt forms
forms important
important “Technical
“Technical Reference”
Reference”
documentation.
documentation.
•• ItIt is
is the
the basis
basis for
for the
the physical
physical creation
creation of
of database
database
objects within the Oracle Applications database.
objects within the Oracle Applications database.
ERDs are conceptual models that show entities and relationships. While it
really is that simple, we should answer the question, why?
What
What is
is an
an Entity?
Entity?
•• An
An Entity
Entity is:
is:
–– “Something”
“Something” of of significance
significance to
to the
the business
business
about which data must be
about which data must be known.known.
–– A
A name
name forfor the
the things
things that
that you
you can
can list.
list.
–– Usually
Usually aa noun.
noun.
•• Examples:
Examples: objects,
objects, events
events
•• Entities
Entities have
have instances.
instances.
Entities
Entities and
and Instances
Instances
PERSON
PERSON Mahatma
Mahatma Gandhi
Gandhi
PRODUCT
PRODUCT 2.5
2.5 x 35 mm copper
x 35 mm copper nail
nail
PRODUCT
PRODUCT TYPE
TYPE nail
nail
EMPLOYMENT
EMPLOYMENT CONTRACT
CONTRACT my
my previous
previous contract
contract
JOB
JOB violinist
violinist
SKILL
SKILL LEVEL
LEVEL fluent
fluent
TICKET
TICKET RESERVATION
RESERVATION tonight:
tonight: Hamlet
Hamlet in
in the
the Royal
Royal
PURCHASE
PURCHASE the
the CD
CD II bought
bought yesterday
yesterday
ELECTION
ELECTION for
for parliament
parliament next
next fall
fall
PRINTER
PRINTER PREFERENCE
PREFERENCE …
…
DOCUMENT
DOCUMENT VERSION
VERSION ...
...
®
Attributes
Attributes
•• Also
Also represents
represents something
something ofof significance
significance to
to the
the
business
business
•• Is
Is aa single
single valued
valued property
property detail
detail of
of an
an entity
entity
•• Is
Is aa specific
specific piece
piece of
of information
information that:
that:
–– Describes
Describes
–– Quantifies
Quantifies
–– Qualifies
Qualifies
–– Classifies
Classifies
–– Specifies
Specifies
an
an entity.
entity.
®
Relationships
Relationships
•• Also
Also represent
represent something
something ofof significance
significance to
to the
the
business
business
•• Express
Express how
how entities
entities are
are mutually
mutually related
related
•• Always
Always exist
exist between
between two
two entities
entities (or
(or one
one entity
entity
twice)
twice)
•• Always
Always have
have two
two perspectives
perspectives
•• Are
Are named
named at
at both
both ends
ends
Relationships
Relationships
JOB manager
EMPLOYEE cook
Shintaro waitress
dish washer
Jill financial controller
Adam
Ahmed porter
waiter
Maria
piano player
Numerical
Numerical observation:
observation:
•• All
All EMPLOYEES
EMPLOYEES have
have aa JOB
JOB
•• No
No EMPLOYEE
EMPLOYEE hashas more
more than
than one
one JOB
JOB
•• Not
Not all
all JOBS
JOBS are
are held
held by
by an
an EMPLOYEE
EMPLOYEE
•• Some
Some JOBS
JOBS are
are held
held by
by more
more than
than one
one EMPLOYEE
EMPLOYEE
®
Drawing
Drawing Entities
Entities in
in ERDs
ERDs
•• Drawn
Drawn as
as aa “softbox”
“softbox”
•• Name
Name singular
singular
EMPLOYEE JOB
•• Name
Name inside
inside
ELECTION
•• Neither
Neither size,
size,
nor
nor position
position
has
has aa special
special TICKET
meaning
meaning ORDER
RESERVATION
JOB ASSIGNMENT
Drawing
Drawing Attributes
Attributes in
in ERDs
ERDs
EMPLOYEE JOB
* Family Name * Title
* Address o Description
o Birth Date
o Shoe Size
o Email
Drawing
Drawing Relationships
Relationships in
in ERDs
ERDs
EMPLOYEE JOB
has
held by
Perspectives
Perspectives of
of Relationships
Relationships in
in ERDs
ERDs
mandatory:
mandatory: optional:
optional:
held by
Reading
Reading Relationships
Relationships in
in ERDs
ERDs
P split into Q
part of
Elements
Elements of
of an
an Oracle
Oracle Applications
Applications ERD
ERD
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge
knowledge ofof Entity
Entity
Relationship
Relationship Diagrams:
Diagrams:
•• II can
can read
read and
and understand
understand Entity
Entity Relationship
Relationship
Diagrams (ERDs)
Diagrams (ERDs)
•• II can
can read
read and
and understand
understand the
the Oracle
Oracle Applications
Applications
Technology
Technology ERDs.
ERDs.
Basic
Basic Applications
Applications Diagnostics
Diagnostics and
and
Troubleshooting
Troubleshooting Tools
Tools
Objectives
Objectives
After
After this
this lesson,
lesson, you
you should
should bebe able
able to:
to:
•• Use
Use the
the basic
basic tools
tools built-in
built-in to
to Oracle
Oracle Applications
Applications
for diagnostics and troubleshooting
for diagnostics and troubleshooting
Basic
Basic Applications
Applications Tools
Tools
•• (Help)
(Help) About
About Oracle
Oracle Applications
Applications
•• (Help)
(Help) Record
Record History
History
•• (Help) Diagnostics è
(Help) Diagnostics è Examine
Examine
•• (Help) Diagnostics è
(Help) Diagnostics è Examine
Examine …
… choose
choose
$DESCRIPTIVE_FLEXFIELD$
$DESCRIPTIVE_FLEXFIELD$ block
block
•• (Help) Diagnostics è
(Help) Diagnostics è Examine
Examine …
… choose
choose
$ENVIRONMENT$ block
$ENVIRONMENT$ block
•• (Help) Diagnostics è
(Help) Diagnostics è Examine
Examine …
… choose
choose
$PROFILES$
$PROFILES$ block
block
•• (Help) Diagnostics è
(Help) Diagnostics è Examine
Examine …
… choose
choose
$PROFILES$ block
$PROFILES$ block
As a refresher, you may have forgotten some of the simple diagnostic and
probing tools built directly into Oracle Applications.
Basic
Basic Applications
Applications Tools
Tools
•• (Help) Diagnostics è
(Help) Diagnostics è Display
Display Database
Database Error
Error
•• (Help) Diagnostics è
(Help) Diagnostics Properties è
è Properties èItem
Item
•• (Help) Diagnostics è
(Help) Diagnostics è Trace
Trace (checkbox)
(checkbox)
•• (Navigate) Concurrent è
(Navigate) Concurrent Program è
è Program èDefine
Define
•• Utilities:
Utilities: SQL
SQL Trace
Trace profile
profile option
option
•• Application
Application Developer
Developer responsibility
responsibility
12. Set the “Utilities: SQL Trace” profile option. This profile option
can only be set by the System Administrator.
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II can
can use
use the
the basic
basic tools
tools built-in
built-in to
to Oracle
Oracle
Applications
Applications for diagnostics and troubleshooting.
for diagnostics and troubleshooting.
Useful Scripts
Chapter 5 - Page 1
Useful Scripts
Useful
Useful Scripts
Scripts
Useful Scripts
Chapter 5 - Page 2
Objectives
Objectives
Objectives
After
After this
this lesson,
lesson, you
you should
should be
be able
able to:
to:
•• Run
Run and
and understand
understand Oracle
Oracle SQL
SQL scripts
scripts that
that probe
probe
Oracle database objects.
Oracle database objects.
•• Identify
Identify and
and understand
understand the
the major
major configuration
configuration
files
files used
used with
with Oracle
Oracle Applications.
Applications.
•• Run
Run and
and understand
understand Oracle
Oracle Applications
Applications server
server
control
control scripts.
scripts.
Useful Scripts
Chapter 5 - Page 3
Diagnostic Database Scripts
Diagnostic
Diagnostic Database
Database Scripts
Scripts
•• Describe
Describe Database
Database Space
Space
•• Describe
Describe Data
Data Files
Files
•• Describe
Describe aa Database
Database Object
Object
•• Count
Count Database
Database Objects
Objects by
by Type
Type
•• Table
Table Definitions
Definitions
•• Describe
Describe Tablespace
Tablespace
•• Describe
Describe Database
Database Users
Users
There are numerous scripts that one could run to explore and probe the
database objects contained within an Oracle Applications database. This
section covers a few of the more important scripts. Appendix A provides
you with a more detailed listing, and a link to where those scripts can be
downloaded.
In addition to these custom scripts, there are many scripts that Oracle has
provided to the customers that are shipped with Oracle Applications.
These scripts are kept in the $AD_TOP/sql directory, and are discussed in
this section as well.
rem ddbspace.sql
rem
ttitle 'Database Size and Free Space'
rem
col tablespace_name format a15 heading 'TABLESPACE'
col file_id format 999 heading 'ID'
col file_bytes format 999,999,999 heading 'FILE SIZE|(K)'
col free_extents format 9,999 heading 'FREE|EXTENT'
col free_bytes format 999,999,999 heading 'FREE SIZE|(K)'
col free_pct format 999 heading 'FREE|PCT'
Useful Scripts
Chapter 5 - Page 4
col free_blocks format 9,999,999 heading 'FREE|BLOCKS'
col max_free_blocks format 9,999,999 heading 'MAX FREE|BLOCKS'
rem
break on report on tablespace_name skip 1
compute sum of file_bytes free_extents free_bytes free_blocks -
on report tablespace_name
compute count of file_id on report
rem
select df.tablespace_name, df.file_id,
df.bytes/1024 file_bytes,
count(fs.file_id) free_extents,
sum(fs.bytes)/1024 free_bytes,
sum(fs.bytes) * 100 / df.bytes free_pct,
sum(fs.blocks) free_blocks,
max(fs.blocks) max_free_blocks
from sys.dba_free_space fs, sys.dba_data_files df
where df.file_id = fs.file_id(+)
and df.tablespace_name like upper('&tablespace')
group by df.tablespace_name, df.file_id, df.bytes
order by df.tablespace_name, df.file_id;
rem dfile.sql
rem
set linesize 132
rem
ttitle 'Data Files by Tablespace'
rem
col tablespace_name format a15 heading 'TABLESPACE'
col file_id format 9999 heading 'ID'
col bytes format 9,999,999,999,999 heading 'BYTES'
col blocks format 9,999,999 heading 'BLOCKS'
col status format a9 heading 'STATUS'
col file_name format a65 heading 'FILE NAME'
rem
break on report on tablespace_name skip 1
compute sum of bytes blocks on report tablespace_name
rem
select tablespace_name, file_id, bytes, blocks, status,
file_name
from sys.dba_data_files
order by tablespace_name, file_id;
rem
set linesize 80
Useful Scripts
Chapter 5 - Page 5
SCRIPT = Describe a Database Objectfilename = dobject.sql
rem dobject.sql
rem
ttitle 'Database Objects'
rem
col owner format a12 heading 'OWNER'
col object_name format a30 heading 'OBJECT NAME'
rem col object_id format 99999 heading 'ID'
col object_type format a13 heading 'OBJECT TYPE'
col created format a9 heading 'CREATED'
col modified format a9 heading 'MODIFIED'
col status format a1 heading 'S'
rem
break on owner skip 1
rem
select owner, object_name, object_type, created,
decode( last_ddl_time, created, null, last_ddl_time ) modified,
decode( status, 'VALID', null, 'INVALID', 'I', '?' ) status
from sys.dba_objects
where owner like upper('&owner')
and object_type like upper('&type')
and object_name like upper('&object')
order by owner, object_name;
rem dobjcnts.sql
rem
set linesize 132
rem
ttitle 'Data Dictionary Object Summary by Owner/Type'
rem
col owner format a12 heading 'OWNER'
col total_count format 999999 heading 'TOTAL'
col cluster_count format 99 heading 'CLU'
col table_count format 99999 heading 'TABLE'
col index_count format 99999 heading 'INDEX'
col view_count format 99999 heading 'VIEW'
col synonym_count format 999999 heading 'SYNONYM'
col sequence_count format 9999 heading 'SEQ'
col dblink_count format 999 heading 'DB|LINK'
col trigger_count format 9999 heading 'TRIG'
col procedure_count format 9999 heading 'PROC'
Useful Scripts
Chapter 5 - Page 6
col function_count format 9999 heading 'FUNC'
col package_count format 99999 heading 'PACK'
col package_body_count format 99999 heading 'PACK|BODY'
col type_count format 999 heading 'TYPE'
col type_body_count format 999 heading 'TYPE|BODY'
col library_count format 99 heading 'LIB'
col undefined_count format 99 heading 'UND'
rem
break on report
compute count sum -
of total_count undefined_count cluster_count table_count
index_count -
view_count synonym_count sequence_count dblink_count
trigger_count -
procedure_count function_count package_body_count
package_count -
type_count type_body_count library_count -
on report
rem
select owner, count(*) total_count,
sum(decode( object_type, 'UNDEFINED', 1 )) undefined_count,
sum(decode( object_type, 'CLUSTER', 1 )) cluster_count,
sum(decode( object_type, 'TABLE', 1 )) table_count,
sum(decode( object_type, 'INDEX', 1 )) index_count,
sum(decode( object_type, 'VIEW', 1 )) view_count,
sum(decode( object_type, 'SYNONYM', 1 )) synonym_count,
sum(decode( object_type, 'SEQUENCE', 1 )) sequence_count,
sum(decode( object_type, 'DATABASE LINK', 1 )) dblink_count,
sum(decode( object_type, 'TRIGGER', 1 )) trigger_count,
sum(decode( object_type, 'PROCEDURE', 1 )) procedure_count,
sum(decode( object_type, 'FUNCTION', 1 )) function_count,
sum(decode( object_type, 'PACKAGE', 1 )) package_count,
sum(decode( object_type, 'PACKAGE BODY', 1 ))
package_body_count,
sum(decode( object_type, 'TYPE', 1 )) type_count,
sum(decode( object_type, 'TYPE BODY', 1 )) type_body_count,
sum(decode( object_type, 'LIBRARY', 1 )) library_count
from sys.dba_objects
where owner like upper('&owner')
group by owner;
rem
set linesize 80
Useful Scripts
Chapter 5 - Page 7
rem dtcol80.sql
rem
ttitle 'Table Definitions'
col owner format a8 heading 'OWNER'
col table_name format a24 heading 'TABLE NAME'
col column_id format 999 heading 'ID'
col nullable format a1 heading 'N'
col column_name format a24 heading 'COLUMN NAME'
col data_type format a14 heading 'DATA TYPE'
rem
break on owner on table_name skip 1
rem
select owner, table_name, column_id,
decode( nullable, 'N', 'N', null ) nullable,
column_name, data_type ||
decode( data_type,
'VARCHAR2', '(' || to_char(data_length) || ')',
'DATE', null,
'NUMBER', decode( data_precision, null, null,
'(' || to_char(data_precision) ||
decode( data_scale, null, null, 0, null,
',' || to_char(data_scale) ) || ')' ),
'CHAR', '(' || to_char(data_length) || ')',
'VARCHAR', '(' || to_char(data_length) || ')',
'RAW', '(' || to_char(data_length) || ')'
) data_type
from sys.dba_tab_columns
where owner like upper('&owner')
and table_name like upper('&table')
and column_name like upper('&column')
order by owner, table_name, column_id;
rem dtspace.sql
rem
ttitle 'Tablespace Definitions'
col contents format a9 heading 'CONTENTS'
col status format a9 heading 'STATUS'
col tablespace_name format a25 heading 'TABLESPACE'
col initial_extent format 999,999 heading 'INITIAL|EXTENT|(K)'
col next_extent format 999,999 heading 'NEXT|EXTENT|(K)'
col min_extents format 99 heading 'MIN|EXT'
col max_extents format 999999 heading 'MAX|EXT'
col pct_increase format 999 heading 'PCT|INC'
Useful Scripts
Chapter 5 - Page 8
rem
select decode( contents, 'PERMANENT', null, contents ) contents,
decode( status, 'ONLINE', null, status ) status,
tablespace_name,
initial_extent/1024 initial_extent,
next_extent/1024 next_extent,
min_extents,
max_extents,
pct_increase
from sys.dba_tablespaces
where tablespace_name like upper('&tablespace')
order by tablespace_name;
rem duser.sql
rem
ttitle 'Database Users'
rem
col user_id format 9990 heading 'ID'
col username format a12 heading 'USERNAME'
col dt format a1 heading ''
col default_tablespace format a15 heading 'DEFAULT'
col tt format a1 heading ''
col temporary_tablespace format a12 heading 'TEMPORARY'
col profile format a18 heading 'PROFILE'
col created format a9 heading 'CREATED'
rem
select user_id, username,
decode( default_tablespace, 'SYSTEM', '*', null ) dt,
default_tablespace,
decode( temporary_tablespace, 'SYSTEM', '*', null ) tt,
temporary_tablespace,
profile, created
from sys.dba_users
where username like upper('&user')
order by username;
Useful Scripts
Chapter 5 - Page 9
Diagnostic Applications Scripts
Diagnostic
Diagnostic Applications
Applications Scripts
Scripts
•• Check
Check and
and List
List Compilation
Compilation Errors
Errors
•• List
List Job
Job Timing
Timing Information
Information
•• Count
Count Objects
Objects by
by Type
Type
•• Applications
Applications Configuration
Configuration Script
Script
•• List
List Product
Product Dependencies
Dependencies
•• List
List Pinned
Pinned Objects
Objects
•• Report
Report Database
Database Configuration
Configuration
•• Report
Report Table
Table Sizes
Sizes
•• Show
Show Imminent
Imminent Extent
Extent Failure
Failure
•• Show
Show User
User Space
Space
®
In addition to the SQL Scripts shown in the previous section, there are
numerous scripts that are shipped with the Application. These scripts are
stored in the $AD_TOP/sql directory.
Useful Scripts
Chapter 5 - Page 10
column error format a38
set arraysize 1
set pagesize 60
set linesize 79
set verify off
break on object
connect &1/&2
REM ================================================================
REM The select below is equivalent to
REM "show errors <object type> <object name>"
REM
REM Note that we only show errors for enabled triggers. If there
REM are disabled triggers with errors, we ignore them.
REM ================================================================
--
-- Copyright (c) 2000 Oracle Corporation Redwood Shores, California, USA
-- All rights reserved.
--
-- FILENAME
-- adtimdet.sql
--
-- RCS HEADER
-- $Header: adtimdet.sql 115.0 2000/04/27 20:35:45 rlotero ship $
--
-- DESCRIPTION
-- Script to list timing information for all jobs in a given phase.
--
-- NOTES
--
-- sqlplus <APPS username>/<APPS password> @adtimdet.sql \
-- <SESSION_ID> <PHASE_NUMBER> <OUTPUT FILE>
--
-- where SESSION_ID : Identifier for the session
-- PHASE_NUMBER : Number identifying the phase
-- OUTPUT_FILE : Output file name
Useful Scripts
Chapter 5 - Page 11
--
-- See output of adtimrpt.sql for list of phase numbers and for the session
-- identifier for the session you are interesed in.
--
-- If you specify PHASE_NUMBER = -1, the report will list all phases.
--
-- HISTORY
--
--
spool &&3
spool off
commit;
exit;
Useful Scripts
Chapter 5 - Page 12
break on report
compute sum of objcnt on report
spool adutconf.lst
Useful Scripts
Chapter 5 - Page 13
col oracle_username format a12 heading "Schema"
col owner format a10 heading "Owner"
col product_group_id format 990 heading "ID"
col product_group_name format a28 heading "Product Group Name"
col product_group_type format a10 heading "Type"
col product_version format a8 heading "Version"
col argument1 format a20 heading "Arguments"
col release_name format a12 heading "Release"
col read_only_flag format a4 heading "Type"
col sizing_factor format 99990 heading "Size%"
col segment_name format a10 heading "Name"
col status format a9 heading "Status"
col tablespace format a12 heading "Main TS"
col tablespace_name format a10 heading "Tablespace"
col temporary_tablespace format a12 heading "Temp TS"
col default_tablespace format a12 heading "Default TS"
col updated format a11 heading "Updated"
prompt
prompt Oracle Applications Database Configuration Report
prompt
prompt
prompt All dates are shown in DD-MM-YYYY format
prompt
show pause
prompt
prompt --> Sql*Plus NEWPAGE setting
prompt
show newpage
prompt
prompt --> Rollback Segment Information
Useful Scripts
Chapter 5 - Page 14
select ext.segment_name, ext.owner, ext.tablespace_name,
sum(ext.bytes)/1024 current_size,
count(*) number_of_extents
from dba_extents ext
where ext.segment_type = 'ROLLBACK'
group by ext.segment_name, ext.owner, ext.tablespace_name
order by 1;
prompt
prompt --> Start of Application Information Gathering
prompt
Useful Scripts
Chapter 5 - Page 15
where du.username(+) = fou.oracle_username
order by 1
/
select decode(a.APPLICATION_short_name,
'SQLAP','AP','SQLGL','GL','OFA','FA',
a.APPLICATION_short_name) apps
, o.ORACLE_username
, fmi.module_short_name
, fmi.module_version
, decode(fmi.status,'I','Installed','S','Shared',
'N','Inactive',fmi.status) status
, decode(fmi.db_status,'I','Installed',
'N','Inactive',db_status) module_db_status
from fnd_oracle_userid o, fnd_application a, fnd_module_installations fmi
where fmi.application_id = a.application_id(+)
and fmi.oracle_id = o.oracle_id(+)
order by 1,2,3
/
select data_group_id,
data_group_name
, decode(default_group_flag,'N','No','Y','Yes',
default_group_flag) default_group_flag
, to_char(creation_date,'DD-MM-YYYY') creation, created_by crby
, to_char(last_update_date,'DD-MM-YYYY') updated, last_updated_by luby
from fnd_data_groups
order by data_group_id
/
Useful Scripts
Chapter 5 - Page 16
prompt --> Base language and other Installed languages
select decode(installed_flag,'I','Installed','B','Base','Unknown')
installed_flag, language_code, nls_language from fnd_languages
where installed_flag in ('I','B')
order by installed_flag;
Useful Scripts
Chapter 5 - Page 17
where object_name in ( 'REPCOLUMN');
set head on
prompt
prompt --> End of Application Information Gathering
spool off
exit;
spool adutfpd.lst
spool off
Useful Scripts
Chapter 5 - Page 18
REM DESCRIPTION
REM Query the shared_pool area to determine space used by PL/SQL objects
REM and whether they have been pinned.
REM
REM NOTES
REM This script can be run at any time to determine what PL/SQL objects
REM are in the SGA, and the total space consumed. It should be run
REM from the system user.
REM PROCEDURES cannot be pinned.
REM +======================================================================+
set lines 79
column type format a12
column OBJECT format a36
column loads format 99990
column execs format 9999990
column kept format a4
column "TOTAL SPACE (K)" format a20
spool ADXCKPIN.lst
spool off
exit;
REM +=======================================================================+
REM | Copyright (c) 1990 Oracle Corporation, Redwood Shores, CA, USA |
REM | All rights reserved. |
REM +=======================================================================+
REM | $Header: ADXRCSDC.sql 115.0 1998/04/24 16:40:34 appldev ship $
REM
REM FILENAME
REM ADXRCSDC.sql - Report Configuration, Show Database Configuration
REM formerly, config.sql
REM
Useful Scripts
Chapter 5 - Page 19
REM DESCRIPTION
REM Report configuration of:
REM rollback segments
REM tablespaces
REM data files
REM
REM NOTES
REM Usage: sqlplus SYSTEM/<SYSTEM_password> @ADXRCSDC.sql
REM
REM HISTORY
REM 05/24/90 L Doo Created
REM
REM +=======================================================================+
set heading on
set pages 1000
set linesize 78
break on TSPACE
ttitle 'Overall Database Configuration'
set heading off
select ' Rollback Segments' from sys.dual;
set heading on
ttitle off
Useful Scripts
Chapter 5 - Page 20
set heading off
select ' Datafiles' from sys.dual;
set heading on
EXIT;
REM +=======================================================================+
REM | Copyright (c) 1990 Oracle Corporation, Redwood Shores, CA, USA |
REM | All rights reserved. |
REM +=======================================================================+
REM | $Header: ADXRSFTS.sql 115.0 1998/04/24 16:41:10 appldev ship $
REM
REM FILENAME
REM ADXRSFTS.sql - Report State, Find Table Size
REM formerly, tabsize.sql
REM
REM DESCRIPTION
REM Find the size (blocks, extents, extpct) of the given table.
REM
REM NOTES
REM Usage:
REM sqlplus SYSTEM/<SYSTEM_password> @ADXRSFTS.sql <username> <tablename>
REM
REM HISTORY
REM 05/14/90 L Doo Created.
REM
REM +=======================================================================+
set heading on
set verify off
ttitle 'Size for Table &&1..&&2'
Useful Scripts
Chapter 5 - Page 21
EXIT
REM +=======================================================================+
REM | Copyright (c) 1989 Oracle Corporation, Redwood Shores, CA, USA |
REM | All rights reserved. |
REM +=======================================================================+
REM | $Header: ADXRSSIE.sql 115.1 1998/05/11 10:14:07 schadala ship $
REM
REM FILENAME
REM ADXRSSIE.sql - Report State, Show Imminent next-Extent failure
REM formerly, blowup.sql
REM
REM DESCRIPTION
REM Generate a list of tables and indexes whose next extent to be grabbed
REM would be too large to be allocated in their corresponding tablespaces.
REM
REM NOTES
REM Usage: sqlplus SYSTEM/<SYSTEM_password> @ADXRSSIE.sql
REM
REM HISTORY
REM 12/12/89 L. Doo Created.
REM 12/18/89 L. Doo Added the absolute path for blowup_table.sql
REM and blowup_ind.sql.
REM 07/21/92 A. Chang Converted to use straight SQL, not PL/SQL
REM
REM +=======================================================================+
set heading on
ttitle "NEXT EXTENT BLOWUP REPORT"
set pagesize 67
column tablespace heading "Tablespace" format a10
column type heading "Object Type" format a11
column name heading "Object Name" format a30
column partition_name heading "Partition" format a10
column next_extent heading "Next Extent (b)" format 9,999,999,999
break on tablespace
Useful Scripts
Chapter 5 - Page 22
'INDEX PARTITION')
and dbafs.tablespace_name = dbas.tablespace_name
group by dbas.tablespace_name, dbas.segment_type, dbas.segment_name,
dbas.partition_name, dbas.next_extent
having max(dbafs.bytes) < dbas.next_extent
order by 1,2,3,4;
EXIT
REM +=======================================================================+
REM | Copyright (c) 1990 Oracle Corporation, Redwood Shores, CA, USA |
REM | All rights reserved. |
REM +=======================================================================+
REM | $Header: ADXRSSUS.sql 115.0 1998/04/24 16:41:48 appldev ship $
REM
REM FILENAME
REM ADXRSSUS.sql - Report State, Show User Space
REM formerly, byuser.sql
REM
REM DESCRIPTION
REM Report how much space each user has.
REM
REM NOTES
REM Usage: sqlplus SYSTEM/<SYSTEM_password> @ADXRSSUS.sql
REM
REM HISTORY
REM 01/16/90 D Touw Created
REM
REM +=======================================================================+
set heading on
set pages 122
set linesize 79
set newpage 0
Useful Scripts
Chapter 5 - Page 23
and dbat.tablespace_name = dbatq.tablespace_name
and dbat.status = 'ONLINE'
and (dbatq.bytes > 0 or dbatq.max_bytes > 0)
order by dbatq.tablespace_name, dbatq.username;
EXIT
Useful Scripts
Chapter 5 - Page 24
Applications Configuration Files
Applications
Applications Configuration
Configuration Files
Files
•• adconfig.txt
adconfig.txt
•• def.txt
def.txt
•• applprod.txt
applprod.txt
•• applterr.txt
applterr.txt
•• applora.txt
applora.txt
•• APPLSYS.env
APPLSYS.env
•• adovars.env
adovars.env
Useful Scripts
Chapter 5 - Page 25
applprod.txt The AutoUpgrade product description file,
which is used to identify all products and product
dependencies. It is located in the admin directory
under APPL_TOP.
Useful Scripts
Chapter 5 - Page 26
Controlling Servers
Controlling
Controlling Servers
Servers
•• Stopping
Stopping servers
servers
•• Starting
Starting servers
servers
Controlling Servers:
Useful Scripts
Chapter 5 - Page 27
Apache Listener adapcctl.sh adapcctl.cmd
Oracle 8i database server addbctl.sh addbctl.cmd
Note: If you need to manually start Windows NT control scripts, use the
NT Service Control Panel. The .cmd name is shown to here only to
illustrate consistency across platforms.
Useful Scripts
Chapter 5 - Page 28
Summary
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II can
can run
run and
and understand
understand Oracle
Oracle SQL
SQL scripts
scripts that
that
probe Oracle database objects.
probe Oracle database objects.
•• II can
can identify
identify and
and understand
understand thethe major
major
configuration
configuration files
files used
used with
with Oracle
Oracle Applications.
Applications.
•• II can
can run
run and
and understand
understand Oracle
Oracle Applications
Applications
scripts
scripts that
that control
control the
the various
various servers
servers within
within an
an
Oracle Applications install.
Oracle Applications install.
Useful Scripts
Chapter 5 - Page 29
Copyright © Oracle Corporation, 2000. All rights reserved.
Useful Scripts
Chapter 5 - Page 30
Diagnosing the Database
Chapter 6
Diagnosing
Diagnosing the
the Database
Database
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be be able
able to:
to:
•• Check
Check to to see
see that
that aa properly
properly certified
certified database
database
version is being used.
version is being used.
•• Confirm
Confirm thatthat the
the database
database is is patched
patched toto the
the proper
proper
level.
level.
•• Patch
Patch the
the database
database ifif itit is
is not
not patched
patched toto the
the
proper
proper level.
level.
•• Relink
Relink the
the database.
database.
•• Stop
Stop and re-start the
and re-start the database.
database.
•• Check
Check the
the database
database to
to see
see that
that itit is
is properly
properly
configured
configured for
for Oracle
Oracle Applications.
Applications.
®
Checking
Checking Certification
Certification
•• MetaLink
MetaLink (External):
(External):
http://metalink.oracle.com/
http://metalink.oracle.com/
•• Certify
Certify -- Oracle's
Oracle's Certification
Certification Matrix
Matrix (Internal):
(Internal):
http://certify.us.oracle.com/
http://certify.us.oracle.com/
•• Certify
Certify User's
User's Guide
Guide (Internal):
(Internal):
http://certify.us.oracle.com/certifyuserguide.pdf
http://certify.us.oracle.com/certifyuserguide.pdf
•• Certify
Certify FAQ
FAQ (Internal):
(Internal):
http://certify.us.oracle.com/certfaq.html
http://certify.us.oracle.com/certfaq.html
Certify was a tool initially created for Oracle Applications. Because Oracle
Applications is a complex stack of products, it was critical for Application's
Support Analysts and Customers to have access to this information.
Over time, Certify has made two important moves. One, Certify has
become the central repository for certification information for all Oracle
products. Two, Certify has been made available to Oracle's customer
through MetaLink.
USING CERTIFY:
Ultimately, both of these links will get you exactly the same information. It
is simply a different method of starting to drill-down through the matrix.
Your choice is a matter of style. For demonstration, I will choose, View
Certifications by Product.
You are now looking at a select box that reads, Select one of the
products listed below:. For demonstration, I will choose, Applications.
NOTE: It is a planned change for Applications to be changed to
Enterprise Resource Planning (ERP). The date of that change is
uncertain, but Enterprise Resource Planning (ERP) can be used in place
of Applications with no change.
After you have read the General Notes For Applications:, you will need
to select the platform that you are running for Oracle Applications.
After reading the General Notes, you will notice three columns of
checkboxes at the bottom of the screen. The columns are labeled,
Applications Version(s), Oracle Server Version(s), and Certified
combinations only.
At the very least, you should turn on (i.e., check) the Certified
combinations only checkbox. For demonstration, I will also turn on the
11.5.1 (11i) checkbox under the Applications Version(s) column.
What you are looking at now is the Certification matrix for Oracle
Applications (ERP) running on a Sun Solaris Sparc platform for Oracle
Applications Release 11i (11.5.1).
Notice the two tiers listed, the Applications Tier and the Database Tier.
We are concerned with the Database Tier at this point. Notice that in the
matrix there are several columns whose labels are OS, Higher, Product,
Server, Status, Addtl. Info., Components, Other, Issues. The last four (4)
columns, Addtl. Info., Components, Other, Issues, may be links.
You may also see (depending upon the criteria you use for your
checkboxes) other listings including Client Certifications, Server
Certifications, and Server Partitioned Certifications. Client Certifications
are for the browser-based tier of R11i, and include the Java JDK
(Appletviewer) and jInitiator. Server and Server Partitioned Certifications
are for R10.7 and R11 Applications.
Finally, for more detailed information on using Certify, you can use the
Certify User's Guide at:
http://certify.us.oracle.com/certifyuserguide.pdf
http://certify.us.oracle.com/certfaq.html
Patching
Patching and
and Patch
Patch Sets
Sets
•• What
What is
is aa Patch
Patch Set?
Set?
•• What
What is
is an
an Interoperability
Interoperability Patch?
Patch?
•• What
What does
does this
this all
all mean
mean for
for Applications?
Applications?
•• RDBMS
RDBMS Patch
Patch Set
Set Tracking
Tracking System:
System:
http://ess30.us.oracle.com:8002/
http://ess30.us.oracle.com:8002/
•• Interoperability
Interoperability Patches:
Patches:
http://sac.us.oracle.com/download/index.html
http://sac.us.oracle.com/download/index.html
In most cases, you can safely install any RDBMS Patch Set. Please read
the platform-specific notes regarding RDBMS patch set certifications
before applying the latest RDBMS patch set. If no patch set notes exist for
your platform, then you may apply the latest patch set.
To find the latest RDBMS Patch Sets, visit the Patch Set Tracking System
at:
http://ess30.us.oracle.com:8002/
http://sac.us.oracle.com/download/index.html
Other
Other Tasks
Tasks
•• Relinking
Relinking the
the database
database
•• Stopping
Stopping the
the database
database
•• Starting
Starting the
the database
database
•• Checking
Checking the
the configuration
configuration of
of the
the database
database
Relinking:
From Oracle8i version 8.1.5, there is a user friendly tool to relink the
products. It is a new tool in $ORACLE_HOME/bin under the name
"relink".
Relink is a shell script which would relink the necessary products. The
options available for relinking are given when relink is executed as follows:
$ relink
Requirements:
1. $ORACLE_HOME has to be set correctly or the script exits.
2. The appropriate product makefiles has to exist for the
specified product or the script displays appropriate error
message and exits.
Bouncing Servers:
Note: If you need to manually start Windows NT control scripts, use the
NT Service Control Panel. The .cmd name is shown to here only to
illustrate consistency across platforms.
When you database is run, the configuration parameters from your init.ora
file are used to configure the database's run-time characteristics. Oracle
Applications needs very specific values in the init.ora file.
First, you must find your init.ora. Oracle Applications places the init.ora
file into your ORACLE_HOME/dbs directory, and gives it the default name
of init<SID>.ora.
There is no inherent way, inside of the database, to obtain the name and
location of your init.ora. There are ways to implement this at the customer
site, and there are ways to implement this via Oracle Enterprise Manager
(OEM). But, there is nothing from inside the database that will inherently
provide this information.
After you have found the proper init.ora, check its parameters as follows:
nls_numeric_characters
".," OR ",." suggested
rollback_segments = example …
(rbs1, rbs2, rbs3, rbs4,
rbs5, rbs6, rbs7, rbs8,
rbs9)
6 to 12 rollback segments
is standard with some
basic rules as follows:
1. 1 rbs per 25 users
2. 1 rbs per conc. Mgr.
The extent size should be
1MB, and the minimum size
aq_tm_processes 1, MANDATORY
log_checkpoint_timeout
72000, suggested value
to checkpoint at least
every 20 minutes
log_checkpoint_interval
100000, suggested
shared_pool_reserved_size
30000000, or larger, and
recommended as 10% of
shared_pool_size
_shared_pool_reserved_min_alloc
4100 OR 5000, suggested,
optimizer_features_enable
8.1.6, MANDATORY
_optimizer_undo_changes
false, suggested, and will
be removed in future
versions
db_file_multiblock_read_count
8, recommended as optimal
for CBO, but 16 or 32 is
still OK
optimizer_max_permutations
79000, or less, as the
default of 80000 can
cause excessive parsing
times
_sort_elimination_cost_ratio
_use_column_stats_for_function
true, MANDATORY
_like_with_bind_as_equality
true, MANDATORY
_or_expand_nvl_predicate
true, MANDATORY
_table_scan_cost_plus_one
true, MANDATORY
_fast_full_scan_enabled
false, MANDATORY
optimizer_percent_parallel
0, MANDATORY
Summary
Summary
You
You should
should feel
feel comfortable
comfortable withwith the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II can
can check
check toto see
see that
that aa customer
customer is is running
running aa
properly certified version of the database.
properly certified version of the database.
•• II understand
understand what
what Patch
Patch Sets
Sets and
and Interoperability
Interoperability
Patches
Patches are.
are.
•• II can
can relink
relink the
the Oracle
Oracle database
database in in UNIX.
UNIX.
•• II can
can stop
stop and
and re-start
re-start aa number
number of
of Oracle
Oracle Servers,
Servers,
including the database.
including the database.
•• II can
can check
check the
the configuration
configuration ofof an
an Oracle
Oracle
database
database toto ensure
ensure itit meets
meets Applications
Applications needs.
needs.
®
Diagnosing
Diagnosing Oracle
Oracle Forms
Forms
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Discuss
Discuss the
the forms
forms server
server architecture
architecture
•• Determine
Determine thethe form
form and
and version
version of
of the
the form
form
•• Determine
Determine thethe latest
latest version
version of
of the
the form
form that
that has
has
been
been completed
completed and and the
the latest
latest available
available version
version
•• Install
Install the
the Forms
Forms Builder
Builder on
on Windows
Windows NT NT
•• Explore
Explore forms
forms from
from inside
inside Forms
Forms Builder
Builder
•• Use
Use Forms
Forms troubleshooting
troubleshooting techniques
techniques
•• List
List available
available sites
sites for
for additional
additional information
information
Important
Important Terms
Terms
•• HTTP
HTTP
•• HTTPS
HTTPS
•• SSL
SSL
•• SOCKET
SOCKET
•• TCP/IP
TCP/IP
•• UDP
UDP
•• HTML
HTML
•• XML
XML
HTTP:
HTTP, and many other web standards, are defined and maintained by the
Internet Engineering Task Force (http://www.ietf.org). Specifically, HTTP
Version 1.1 is defined in RFC 2616 at:
http://www.ietf.org/rfc/rfc2616.txt?number=2616
HTTPS:
Secure Socket Layer: SSL uses public-key encryption. The browser and
the server will exchange a session key which is used to encrypt all HTTP
traffic. Each transaction that requires security will require a new session
key. Because there are session keys, and not the private key to the
Server, each transaction would have to be encrypted individually.
SSL 3.0 is the latest version of the standard, and can be found at:
http://home.netscape.com/eng/ssl3/ssl-toc.html.
SOCKET:
TCP/IP:
UDP:
HTML:
The HTML standard is defined and maintained the World Wide Web
Consortium (http://www.w3c.org). The current recommended version of
HTML is XHTML 1.0. You can find this at:
http://www.w3.org/TR/xhtml1/
XHTML 1.0 follows earlier work on HTML 4.01, HTML 4.0, HTML 3.2 and
HTML 2.0.
XML:
Important
Important Terms
Terms
•• CGI
CGI SCRIPT
SCRIPT
•• JAVA
JAVA SERVER
SERVER PAGES
PAGES (JSP)
(JSP)
•• JAVA
JAVA
•• JAVASCRIPT
JAVASCRIPT
•• JAVA
JAVA VIRTUAL
VIRTUAL MACHINE
MACHINE
CGI SCRIPT:
Java Server Pages (JSPs) are another method for dynamic generation of
HTML pages.
JAVA:
JAVASCRIPT:
The JVM is the program that allows Java programs to be run on numerous
platforms. Each platform that can run Java needs a JVM.
Forms
Forms Architecture
Architecture
Client
Client Tier
Tier Middle
Middle Tier
Tier Database
Database
Browser
Browser Forms
Forms Server
Server Tier
Tier
Sockets,
Sockets, SQL*Net
SQL*Net
HTTP,
HTTP, or
or
HTTPS
HTTPS
The Forms Architecture includes 3 tiers. The Client Tier which is where
the browser runs. When a user runs a Forms session, a thin (100% pure
Java applet) client downloads from the Middle Tier (Forms Server). The
thin client handles the interface to the Middle Tier, and the basic tasks of
the user interface (i.e., navigation, interaction, visual feedback like
checked boxes or clicked buttons).
The Middle Tier (Forms Server) runs the same code that would be run by
the Client in a Client/Server model. The Forms Server runs the Server
Runtime Engine which passes all user interface to the thin client. It also
maintains a database connection for the thin client.
The Database Tier stores all the data that is accessed by the Forms
Server for the thin client.
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
Browser
Browser Web
Web Server
Server
Step
Step 1:
1:
Browser
Browser sends
sends request
request (URL)
(URL)
to
to HTTP
HTTP Listener
Listener (Apache).
(Apache).
The user "send" the URL in many ways. One, they can choose a link from
a Web Page (Personal Home Page - PHP). Two, they can type the URL
directly into the browser. Three, they can pass the URL as an argument
to the JVM (jInitiator).
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
Browser
Browser Web
Web Server
Server
Step
Step 2:
2:
HTML
HTML page
page is
is
retrieved
retrieved (static)
(static)
or
or generated
generated
(dynamic)
(dynamic)
®
When the Web Server receives the URL, it with interpret it. If the URL
points to a static file, the file will be retrieved from storage. If the URL
points to a CGI script, the file will essentially be the same as the static
version, but some pieces of that file will be dynamically generated by the
CGI script.
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
Browser
Browser Web
Web Server
Server
Step
Step 2A:
2A:
IfIf dynamic,
dynamic, CGI
CGI
Script
Script asks
asks Load
Load
Balancing
Balancing Server
Server
for
for Least
Least Loaded
Loaded
®
If the URL points to a CGI script, the CGI script will poll the Load
Balancing Server.
The Load Balancing Server is a process that monitors loading on all of the
Forms Servers. Each of the Forms Servers runs a Load Balancing Client
which keeps the Load Balancing Server appraised of its load.
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
Browser
Browser Web
Web Server
Server
Step
Step 2B:
2B:
IfIf dynamic,
dynamic, HTML
HTML
file
file is
is generated
generated
pointing
pointing to
to Least
Least
Loaded
Loaded
®
The CGI script asks the Load Balancing Server for the Least Loaded
Forms Server. The Load Balancing Server returns the answer, and that
answer is used in the generation of the HTML file returned to the browser.
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
Browser
Browser Web
Web Server
Server
Step
Step 3:
3:
HTTP
HTTP Listener
Listener sends
sends HTML
HTML
page
page back
back to
to browser.
browser.
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
Browser
Browser Web
Web Server
Server
Step
Step 4:
4:
Browser
Browser decodes
decodes HTML
HTML page,
page,
and
and detects
detects the
the <APPLET>
<APPLET>
tag,
tag, indicating
indicating aa Java
Java applet.
applet.
®
As the browser decodes the HTML file returned by the Web Server, it
detects the <APPLET> tag. This is the designator that indicates a Java
applet. Specifically, this is the thin client that will connect to the Forms
Server.
The <APPLET> tag contains the name applet, along with numerous
parameters including a) the name of the form to run, b) the name of the
Forms Server to use, c) login information, and d) any other parameters
you need to pass to your Forms session.
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
Browser
Browser Web
Web Server
Server
Step
Step 5:
5:
Browser
Browser sends
sends request
request (URL)
(URL)
to
to HTTP
HTTP Listener
Listener for
for Java
Java Applet
Applet
The browser asks the Web Server to send it the Java applet. Java applets
are stored in .class or ,jar (Java Archive) files. We use .jar files for
Applications. .JAR files are compressed archives that contain multiple
.class files. We use .jar files because they speed up the downloading of
the Java applet. There are many .jar files that Applications must
download to run.
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
Browser
Browser Web
Web Server
Server
Step
Step 6:
6:
HTTP
HTTP Listener
Listener returns
returns Applet
Applet
(.jar
(.jar files)
files) to
to browser
browser
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
Browser
Browser Web
Web Server
Server
Step
Step 7:
7:
Browser
Browser receives
receives Java
Java applet
applet
(.jar
(.jar files),
files), and
and begins
begins to
to run
run
them
them in
in its
its JVM
JVM (jInitiator)
(jInitiator)
®
The JVM, jInitiator, checks the version of the files being sent. If the
version of the .jar files is newer than the version cached on the client,
jInitiator will continue the download. If the version is the same or older,
jInitiator will begin to run the cached Java files.
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
JVM
JVM Forms
Forms Listener
Listener
Step
Step 8:
8:
Java
Java applet
applet is
is now
now running
running
in
in the
the JVM.
JVM. Browser
Browser is
is no
no
longer
longer part
part of
of the
the equation
equation
®
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
JVM
JVM Forms
Forms Listener
Listener
Step
Step 9:
9:
Java
Java applet
applet connects
connects to
to
Forms
Forms Listener
Listener
The Java thin client connects to the Forms Listener via a TCP/IP socket or
an HTTP port. The Forms Listener is already started, and listens for these
requests.
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
Browser
Browser Forms
Forms RT
RT Eng.
Eng.
Step
Step 10:
10:
Forms
Forms Listener
Listener
allocates
allocates aa
Forms
Forms Runtime
Runtime
Engine
Engine
®
When the Forms Listeners gets the request, it starts a new Forms
Runtime Engine for this thin client. This started Forms Runtime Engine
can either be a newly spawned process, or it can be an allocation of an
already running process (which greatly speeds up the connection
process).
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
Browser
Browser Forms
Forms RT
RT Eng.
Eng.
Step
Step 11:
11:
Java
Java applet
applet connection
connection is
is
passed
passed from
from Forms
Forms Listener
Listener
to
to Forms
Forms Runtime
Runtime Engine
Engine
The Forms Listeners hands-off the connection to the thin client, and then
has no further role in the process.
Forms
Forms Connection
Connection Process
Process
Client
Client Tier
Tier Middle
Middle Tier
Tier
Browser
Browser Forms
Forms RT
RT Eng.
Eng.
Step
Step 12:
12:
Forms
Forms RT
RT Engine
Engine
loads
loads module(s)
module(s)
needed
needed to
to run
run the
the
requested
requested form
form
®
Forms
Forms Connection
Connection Process
Process
Middle
Middle Tier
Tier Database
Database
Forms
Forms RT
RT Eng.
Eng. Tier
Tier
Step
Step 13:
13:
Forms
Forms Runtime
Runtime Engine
Engine opens
opens
aa connection
connection to
to the
the database
database
Determining
Determining Form
Form Version
Version
•• Within
Within Applications
Applications
Help è
–– Help è About
About Oracle
Oracle Applications
Applications
•• At
At Operating
Operating System
System Level
Level
–– adident
adident Header
Header <file1>
<file1> [[ <file
<file 2>
2> <file
<file 3>
3> .. .. .. ]]
With AD File Identification, you can identify the version of one or more
Oracle Applications files. This information is used by AutoPatch to
determine whether a file in a patch is newer than the on-site version. This
utility is also useful for collecting information about your site when
contacting Oracle Support Services.
For NT users:
C:\> adident Header <file 1> [ <file 2> <file 3> ... ]
The <file n> arguments should be the name of any Applications text file,
binary object file (extension .o for UNIX and .obj for NT), library file
(extension .a for UNIX and .lib for NT), dynamic link library (.dll for NT), or
executable program (.exe for NT). You may provide any number of file
names as arguments. When you give adident the name of a library file or
For NT users:
C:\> adident Header %FND_TOP%\lib\wfload.obj
%FND_TOP%\lib\fndst.lib
wfload.obj:
wfload.oc 115.5.1100.3
fndst.lib:
fdacon.lc 115.0
fdatat.lc 115.0
fdastr.lc 115.0
fdaupd.lc 115.0.1100.2
fdahmi.lc 115.0.1100.2
fdacv.lc 115.0
fdfutl.lc 115.4
....
You can also use a ’*’ to identify all files in a directory (e.g. *.sql to identify
all SQL scripts).
Latest
Latest Version
Version of
of Form
Form
•• Latest
Latest Version
Version of
of Form
Form
•• Latest
Latest Available
Available Version
Version of
of Form
Form
While the two bullets, shown above, may appear to be the same. They
are actually two quite different things. There are three ways that a fix to
Applications can be released. One, an individual patch for an individual
problem can be released. This will only be done for Severity 1 issues.
Two, a collection of fixes will be released in a tested set called a mini-
pack. Three, a collection of mini-packs will be released, and it is called a
maintenance pack or a release (e.g., 11.5.0 to 11.5.1 to 11.5.2).
Finding the Latest Version of the Form may or may not give you the latest
available version. But, it will provide you with significant information on
the upcoming fixes to Applications if it is not the latest available version.
To find this information, go to ARU:
http://aru.us.oracle.com/
The nice feature of the ARU website is that much of the information is
accessible without a username/password. To find the latest version, do
the following:
After clicking "Search", you will see the results. They will look something
like the following:
Total: 7
* Indicates that the checkin includes the file
via another included checkin.
Each bugfix checkin in ARU has a patch type associated with it. The patch
type determines whether the customer will receive the bugfix as a part of a
standalone patch or a mini-pack. The patch types and their descriptions
are listed below.
Standard Checkin
1. will be available to customers as a standalone patch when
released.
2. will be included in your product's current open mini-pack when
released.
3. will have a test patch built automatically.
A Standalone Checkin
A Patchset Checkin
A Debug Checkin
The easiest method for getting the latest available version is through
MetaLink. To obtain the latest available version, do the following:
1. Go to MetaLink. http://metalink.oracle.com/
2. Login to your appropriate server location.
3. Click the button in the left frame that is labelled, "Patches".
From there, you will have a screen that describes the patch or patches
that meet your criteria. You can read the README files associated with
the patch, and you can download the patch if needed.
Install
Install Forms
Forms on
on Windows
Windows NT
NT
•• Download
Download Oracle
Oracle Forms
Forms forfor Windows
Windows NT.
NT.
•• Download
Download auxilliary
auxilliary files
files needed
needed by
by Applications.
Applications.
•• Make
Make necessary
necessary registry
registry changes.
changes.
•• Download
Download form
form you
you wish
wish to
to examine.
examine.
•• Download
Download needed
needed related
related forms
forms and
and libraries.
libraries.
You can obtain the Windows NT version of Oracle Forms from the
following source:
http://www-dev2k.us.oracle.com/whitepapers/6icollateral.html
You will also need some related files that Applications needs in order to
run. You can download these files from the following source:
http://atgorl.us.oracle.com/wsawyer/FormsFiles.zip
When you unzip these files, do so into a new directory. You will need the
path to this directory for a later step.
While the files contained in this are good starters, they may not be the
latest versions. You should check each file against the version on your
Application, and download any files which are different.
Download Form:
You can now download the form you wish to examine from your
Applications server. Remember two important items. One, download the
.fmb file. Two, if you use FTP to transfer the file, remember to do the
transfer in BINARY mode.
What follows is the object or list of objects that your form needs in order to
load. These can be either other forms or PL/SQL libraries (.pll's). Write
down the name(s), and exit the Forms Builder without saving. Download
all the forms or libraries to your directory. You can find these files in
AU_TOP/forms/US/ and AU_TOP/resource/. Repeat the
opening/download process until all the FRM-18108 problems are resolved.
Forms
Forms Troubleshooting
Troubleshooting Techniques
Techniques
•• Forms
Forms Debugger
Debugger
•• Forms
Forms Runtime
Runtime Debugger
Debugger
•• Tracing
Tracing Forms
Forms
There are three primary means of debugging forms. One is to use the
debugger built-in to Forms Builder. Two is to use the Forms Runtime
Debugger built-in to the Forms Server. Three is to use the SQL Tracing
function to monitor your form's database interactions.
A full discussion of these tools Also, these are major topics, and are well
outside the scope of this unit. This unit is only meant to make you aware
of these tools. If you need to learn more, there are numerous links that
you can use to learn more (see the Useful Links pages in this unit).
http://crweb.us.oracle.com/cgi-bin/crguest/getfile?275764
Forms Debugger:
The simplest way to invoke the Forms Debugger is by clicking the debug
icon in the Form Builder, which appears in both the object navigator and
the canvas layout editor. In Forms 6.0, this runs the form in debug mode.
You can also run the Forms Debugger by specifying “debug=yes” on the
command line. To do this, you must use the debug executable, rather than
the normal runform executable, AND the form must have been generated
in debug mode. For example, to run in debug mode on Windows
platforms:
If you are not able to see server-side code in Forms 5.0 and above, you
may need to recompile that code on the server to include debug
information:
http://crweb.us.oracle.com/cgi-bin/crguest/getfile?275198
2. Instrumented Events
The following data is collected by FRD:
A. Trigger firing: includes name and hierarchical location.
B. Built-in Execution: includes name and IN and OUT
parameter types and values.
C. Messages: includes message numbers and text
D. FMX/MMX file opens.
E. Unhandled exceptions: includes error message if
available, otherwise only error numbers.
3. Expected Output
The following output for each of the instrumented events
described above can be expected from FRD:
A. Triggers - Place any type of trigger at any level in the
object hierarchy. Upon firing, it should be logged as
follows:
Tracing Forms:
You can use the built-in capability of Oracle Forms to create a SQL Trace
of you form. The trace file will be kept in the user_dump_dest location
pointed to by your init.ora file. The default name of the file will be as
follows:
<SID>_ora_<DB PID>.trc
Useful
Useful Links
Links
•• Download
Download Oracle
Oracle Forms
Forms for
for Windows
Windows NT
NT
http://developer.us.oracle.com/
http://developer.us.oracle.com/
•• Download
Download other
other Oracle
Oracle Applications
Applications Software:
Software:
http://sac.us.oracle.com/download/
http://sac.us.oracle.com/download/
•• Forms
Forms Debugging:
Debugging:
http://crweb.us.oracle.com/cgi-bin/crguest/getfile?275764
http://crweb.us.oracle.com/cgi-bin/crguest/getfile?275764
•• Forms
Forms Troubleshooting:
Troubleshooting:
http://crweb.us.oracle.com/cgi-bin/crguest/getfile?275198
http://crweb.us.oracle.com/cgi-bin/crguest/getfile?275198
•• Auxilliary
Auxilliary Files
Files for
for Applications
Applications Forms:
Forms:
http://atgorl.us.oracle.com/wsawyer/FormsFiles.zip
http://atgorl.us.oracle.com/wsawyer/FormsFiles.zip
Forms Debugging:
http://crweb.us.oracle.com/cgi-bin/crguest/getfile?275764
Forms Troubleshooting:
http://crweb.us.oracle.com/cgi-bin/crguest/getfile?275198
Useful
Useful Links
Links
•• Oracle
Oracle SQL
SQL Reference:
Reference:
http://st-doc.us.oracle.com/8.0/816/server.816/a76989.pdf
http://st-doc.us.oracle.com/8.0/816/server.816/a76989.pdf
•• Oracle
Oracle PL/SQL
PL/SQL Reference:
Reference:
http://st-doc.us.oracle.com/8.0/816/appdev.816/a77069.pdf
http://st-doc.us.oracle.com/8.0/816/appdev.816/a77069.pdf
•• Javascript
Javascript Reference:
Reference:
http://www.javascript.com/
http://www.javascript.com/
•• Java
Java Reference:
Reference:
http://java.sun.com/
http://java.sun.com/
•• HTML
HTML Reference:
Reference:
http://www.w3c.org/
http://www.w3c.org/
•• XML
XML Reference:
Reference:
http://www.w3c.org/
http://www.w3c.org/
®
There are numerous skills that will be of significant value when it comes to
understanding Oracle Forms. These are a few that you might find useful.
Javascript Reference:
http://www.javascript.com/
Java Reference:
http://java.sun.com/
HTML Reference:
http://www.w3c.org/
XML Reference:
http://www.w3c.org/
Useful
Useful Links
Links
•• JSP
JSP Reference:
Reference:
http://java.sun.com/products/jsp/
http://java.sun.com/products/jsp/
•• Oracle
Oracle Forms:
Forms:
http://developer.us.oracle.com/whitepapers/6icollateral.html
http://developer.us.oracle.com/whitepapers/6icollateral.html
•• Oracle
Oracle JDeveloper
JDeveloper Reference:
Reference:
http://jdeveloper.us.oracle.com/
http://jdeveloper.us.oracle.com/
•• Oracle
Oracle Applications
Applications Coding
Coding Standards:
Standards:
http://www-apps.us.oracle.com/atg/standards/codestan.html
http://www-apps.us.oracle.com/atg/standards/codestan.html
•• Oracle
Oracle Applications
Applications UI
UI Standards:
Standards:
http://
http://www-apps.us.oracle.com/atg/standards/uistan.html
www-apps.us.oracle.com/atg/standards/uistan.html
•• Oracle
Oracle Applications
Applications Developer's
Developer's Guide:
Guide:
http://
http://www-apps.us.oracle.com/docdev/acrobat/11i/115devg.pdf
www-apps.us.oracle.com/docdev/acrobat/11i/115devg.pdf
®
There are numerous skills that will be of significant value when it comes to
understanding Oracle Forms. These are a few that you might find useful.
JSP Reference:
http://java.sun.com/products/jsp/
Oracle Forms:
http://developer.us.oracle.com/whitepapers/6icollateral.html
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II can
can discuss
discuss the
the forms
forms server
server architecture.
architecture.
•• II can
can determine
determine the
the form
form and
and version
version of
of the
the form.
form.
•• II can
can determine
determine the
the latest
latest version
version and
and latest
latest
available
available version
version of
of the
the form.
form.
•• II can
can install
install Forms
Forms Builder
Builder on on Windows
Windows NT.NT.
•• II can
can explore
explore forms
forms from
from inside
inside Forms
Forms Builder.
Builder.
•• II can
can use
use Forms
Forms troubleshooting
troubleshooting techniques.
techniques.
•• II know
know some
some sites
sites for
for additional
additional information.
information.
®
Diagnosing
Diagnosing Oracle
Oracle Reports
Reports
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Discuss
Discuss the
the concurrent
concurrent processing
processing architecture
architecture
•• Determine
Determine thethe report
report and
and version
version of
of the
the form
form
•• Determine
Determine thethe latest
latest version
version of
of the
the report
report that
that has
has
been
been completed
completed and and the
the latest
latest available
available version
version
•• Install
Install the
the Reports
Reports Builder
Builder on
on Windows
Windows NT NT
•• Explore
Explore reports
reports from
from inside
inside Reports
Reports Builder
Builder
•• Use
Use Reports
Reports troubleshooting
troubleshooting techniques
techniques
•• List
List available
available sites
sites for
for additional
additional information
information
Concurrent
Concurrent Processing
Processing Architecture
Architecture
•• Concurrent
Concurrent Processing
Processing
•• 2-tier
2-tier Concurrent
Concurrent Processing
Processing
•• Parallel
Parallel Concurrent
Concurrent Processing
Processing
Oracle Applications allows for users to run reports from the forms-based
Applications, and it allows for users using the Business Intelligence
System (BIS) products to run ad hoc reports. The forms-based products
run their reports through Oracle Application's Concurrent Processing
facilities. The BIS products run their reports through the Reports Server.
The vast majority of reports are done through the forms-based products.
This unit deals with reports requests through the forms-based products.
1. Simplified administration
2. Reduced Complexity
Determining
Determining Report
Report Version
Version
•• Within
Within Applications
Applications
–– (Menu) View è
(Menu) View è Requests
Requests
•• At
At Operating
Operating System
System Level
Level
–– adident
adident Header
Header <file1>
<file1> [[ <file
<file 2>
2> <file
<file 3>
3> .. .. .. ]]
Unlike Forms, to find a Report version, you will actually need to do steps
inside the Applications and at the Operating System.
STEP 1:
+---------------------------------------------------------------------------+
Application Object Library: Version : 11.5.0 - Development
STEP 2:
For NT users:
C:\> cd %APPL_TOP%\%APPLREP%\US
C:\> adident Header <file 1> [ <file 2> <file 3> ... ]
The <file n> arguments should be the name of any Applications text file,
binary object file (extension .o for UNIX and .obj for NT), library file
(extension .a for UNIX and .lib for NT), dynamic link library (.dll for NT), or
executable program (.exe for NT). You may provide any number of file
names as arguments.
Latest
Latest Version
Version of
of Report
Report
•• Latest
Latest Version
Version of
of Report
Report
•• Latest
Latest Available
Available Version
Version of
of Report
Report
While the two bullets, shown above, may appear to be the same. They
are actually two quite different things. There are three ways that a fix to
Applications can be released. One, an individual patch for an individual
problem can be released. Two, a collection of fixes will be released in a
tested set called a mini-pack. Three, a collection of mini-packs will be
released, and it is called a maintenance pack or a release (e.g., 11.5.0 to
11.5.1 to 11.5.2).
Finding the Latest Version of the Report may or may not give you the
latest available version. But, it will provide you with significant information
on the upcoming fixes to Applications if it is not the latest available
version. To find this information, go to ARU:
http://aru.us.oracle.com/
The nice feature of the ARU website is that much of the information is
accessible without a username/password. To find the latest version, do
the following:
After clicking "Search", you will see the results. They will look something
like the following:
Total: 1
Each bugfix checkin in ARU has a patch type associated with it. The patch
type determines whether the customer will receive the bugfix as a part of a
standalone patch or a mini-pack. The patch types and their descriptions
are listed below.
Standard Checkin
1. will be available to customers as a standalone patch when
released.
2. will be included in your product's current open mini-pack when
released.
3. will have a test patch built automatically.
A Standalone Checkin
A Patchset Checkin
A Debug Checkin
The easiest method for getting the latest available version is through
MetaLink. To obtain the latest available version, do the following:
1. Go to MetaLink. http://metalink.oracle.com/
2. Login to your appropriate server location.
3. Click the button in the left frame that is labelled, "Patches".
4. Click the link that is titled as follows:
"==> NEW! Click here for ALL Applications Product Patches"
This link takes you to a special version of ARU. This
version is simpler, and will give you just the things you need.
5. In the "Includes File" field, type "FNDSCURS". You do not
need extensions from this form.
6. Click the "SUBMIT" button.
Install
Install Reports
Reports on
on Windows
Windows NT
NT
•• Download
Download Oracle
Oracle Reports
Reports for
for Windows
Windows NT.
NT.
•• Download
Download report
report you
you wish
wish to
to examine.
examine.
You can obtain the Windows NT version of Oracle Reports from the
following source:
http://www-dev2k.us.oracle.com/whitepapers/6icollateral.html
Download Report:
You can now download the report you wish to examine from your
Applications server. Remember two important items. One, download the
.rdf file. Two, if you use FTP to transfer the file, remember to do the
transfer in BINARY mode.
Reports
Reports Troubleshooting
Troubleshooting Techniques
Techniques
•• Simple
Simple Reports
Reports Troubleshooting
Troubleshooting
•• Reports
Reports Runtime
Runtime Tracing
Tracing
•• SQL
SQL Tracing
Tracing Reports
Reports
There are two simple things you can do to troubleshoot reports. One, you
can check the environment variables associated with Oracle Reports to
ensure that they are properly set.
Two, the other simple troubleshooting technique is to run the report from
the Operating System.
To run the report, issue the ar60runb command from the Operating
System. The syntax of the command is as follows:
Valid Keywords:
Oracle Reports has an excellent runtime tracing facility. You can enable
runtime tracing within Applications or at the Operating System. To use it
at the Operating System, you must add the TRACEOPTS= option to your
command line (shown below).
TRACEOPTS=
To create a SQL Trace (.trc) file for your report, do the following:
When you run the report, a SQL Trace (.trc) file will be created for you in
the USER_DUMP_DEST location specified by the database.
Trace files are typically named, <sid>_ora_<DB process id>.trc. This can
seemingly lead to confusion as to which trace file belongs to your request.
If you run the following SQL script, it will tell you the <DB Process ID> of
your concurrent request.
SELECT ORACLE_PROCESS_ID
FROM FND_CONCURRENT_REQUESTS
WHERE REQUEST_ID = <Your Concurrent Request ID>;
From there, you should be able to readily identify your trace file.
Additional Information:
I’d also suggest the Oracle Reports Interface and Diagnostics page at:
http://www-apps.us.oracle.com/atg/srw/aol_or_interface.html
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II can
can discuss
discuss the
the conc.
conc. processing
processing architecture.
architecture.
•• II can
can determine
determine the
the report
report and
and version
version of
of the
the
report.
report.
•• II can
can determine
determine the
the latest
latest version
version and
and latest
latest
available
available version
version ofof the
the report.
report.
•• II can
can install
install Reports
Reports Builder
Builder on
on Windows
Windows NT.NT.
•• II can explore reports from inside Reports Builder.
can explore reports from inside Reports Builder.
•• II can
can use
use Reports
Reports troubleshooting
troubleshooting techniques.
techniques.
System
System Administration
Administration Quick
Quick Reference
Reference
Security
Security and
and User
User Tasks
Tasks
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should bebe able
able to:
to:
•• Quickly
Quickly create
create aa test
test user,
user, responsibility,
responsibility, menu,
menu,
request group and other security related
request group and other security related itemsitems
•• Quickly
Quickly run
run user
user and
and security
security reports
reports
The Quick References, of which this unit is one, are meant to provide you
with quick keystroke references that you can use to test the Oracle
Applications System Administration features.
These Quick References are not the definitive source of everything you
could possibly want to do. They are simply the minimum steps that need
to be completed to set something up for testing.
http://pkm.us.oracle.com/%7Egseiden/11idoc/acrobat/115saug.pdf
http://atgorl.us.oracle.com/wsawyer/
User
User and
and Security
Security Tasks
Tasks
•• Create
Create aa test
test User
User
•• Create
Create aa test
test Responsibility
Responsibility
•• Create
Create aa test
test Application
Application
•• Create
Create aa test
test Data
Data Group
Group
•• Create
Create aa test
test Oracle
Oracle ID
ID
•• Create
Create aa test
test Request
Request Group
Group
•• Create
Create aa test
test Form
Form
•• Create
Create aa test
test Form
Form Function
Function
•• Create
Create aa test
test Menu
Menu
•• Set
Set Signon
Signon Audit
Audit profile
profile option
option
®
(NOTE: Creating an Form does not actually create a new form in the file
system. If a new form was to actually be created, it would have to be
done within the Forms Builder. This is simply the "registration" process.)
(NOTE: Creating an Form Function does not actually create a new form
function in a given form. If a new form function was to actually be created,
it would have to be done within the Forms Builder. This is simply the
"registration" process.)
(NOTE: If you intend to use this menu, you must assign it to an existing
responsibility or create a new responsibility with it as its menu.)
Running
Running Security
Security and
and User
User Reports
Reports
•• Function
Function Security
Security Menu
Menu Report
Report
•• Function
Function Security
Security Navigator
Navigator Report
Report
•• Function
Function Security
Security Function
Function Report
Report
•• Active
Active Users
Users Report
Report
•• Active
Active Responsibilities
Responsibilities Report
Report
•• Report
Report Group
Group Responsibilities
Responsibilities Report
Report
•• Reports
Reports and
and Sets
Sets by
by Responsibility
Responsibility Report
Report
•• Users
Users of
of aa Responsibility
Responsibility Report
Report
Running
Running Security
Security and
and User
User Reports
Reports
•• Sign-On
Sign-On Audit
Audit Forms
Forms Report
Report
•• Sign-On
Sign-On Audit
Audit Users
Users Report
Report
•• Sign-On
Sign-On Audit
Audit Responsibilities
Responsibilities Report
Report
•• Sign-On
Sign-On Audit
Audit Unsuccessful
Unsuccessful Logins
Logins Report
Report
•• Sign-On
Sign-On Audit
Audit Concurrent
Concurrent Requests
Requests Report
Report
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II can
can quickly
quickly create
create aa test
test user,
user, responsibility,
responsibility,
menu,
menu, request group and other security
request group and other security related
related
items.
items.
•• II can
can quickly
quickly run
run user
user and
and security
security reports.
reports.
System
System Administration
Administration Quick
Quick Reference
Reference
Concurrent
Concurrent Processing
Processing Tasks
Tasks
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Describe
Describe thethe concurrent
concurrent processing
processing flow
flow within
within
Oracle Applications
Oracle Applications
•• Quickly
Quickly create
create aa request
request set,
set, concurrent
concurrent manager,
manager,
and
and other
other concurrent
concurrent processing
processing related
related items
items
•• Quickly
Quickly perform
perform numerous
numerous system
system administration
administration
tasks
tasks related
related to
to concurrent
concurrent processing
processing
The Quick References, of which this unit is one, are meant to provide you
with quick keystroke references that you can use to test the Oracle
Applications System Administration features.
These Quick References are not the definitive source of everything you
could possibly want to do. They are simply the minimum steps that need
to be completed to set something up for testing or to administer some
function within the Application.
http://pkm.us.oracle.com/%7Egseiden/11idoc/acrobat/115saug.pdf
http://atgorl.us.oracle.com/wsawyer/
Concurrent
Concurrent Processing
Processing Components
Components
•• Internal
Internal Concurrent
Concurrent Manager
Manager
•• Parallel
Parallel Concurrent
Concurrent Processing
Processing
•• Internal
Internal Monitor
Monitor
•• Conflict
Conflict Resolution
Resolution Manager
Manager
•• Scheduler
Scheduler
•• Concurrent
Concurrent Managers
Managers
•• Transaction
Transaction Managers
Managers
Additional Parameters:
$ startmgr \
sysmgr=”<APPS username>/<APPS password>” \
mgrname=”<name>” \
PRINTER=”<printer>” \
mailto=”<userid1 userid2...>” \
restart=”N|<minutes>” \
logfile=”<filename>” \
sleep=”<seconds>” \
pmon=”<cycles>” \
quesiz=”<cycles>” \
diag=”Y|N”
1. High performance
2. Fault Tolerance
3. Adaptability
4. Single Point of Control
The biggest advantage for PCP is fault tolerance. You will see slightly
higher performance. You will see the most improvement on concurrent
processing jobs that are compute-intensive. Data-intensive jobs will not
have as significant an improvement, except where PCP is combined with
Oracle Parallel Server (OPS).
Internal Monitor:
When you are using PCP, you must allow for the possibility that the
Internal Concurrent Manager on the master system can fail. If that
happens, what can you do? Well Oracle Applications uses a special
process, called the Internal Monitor (IM), that watches for just such an
event. If it happens, IM will attempt to start an ICM on its machine. That
ICM would then become the master.
All constrained processes are sensitive to the conflict domain which is the
logical database in which the request is run. Conflict domains can either
be static or dynamic, depending upon when they are evaluated, at start-up
or submit time. Conflict domains are kept in a memory cache. If you
change any concurrent program incompatibilities, you must VERIFY the
CRM in order to flush this cache.
The CRM has two (2) parameters used during start-up that may be of
interest to you.
Advanced Scheduler:
Concurrent Managers:
NOTE: Yes, concurrent managers and the ICM run the same program,
FNDLIBR.
NOTE: While the Applications allows for customers to create their own
concurrent libraries, there is little, if any, reason for the customer to do
this.
STEP
1 The concurrent manager checks its own status (i.e., should
I go down?) The CM checks FND_CONCURRENT_QUEUES
for MAX_PROCESSES and RUNNING_PROCESSES.
2 The CM queries concurrent requests. The CM will fill its
cache, based on cache size. The CM will only pickup
requests that are in PENDING, NORMAL.
3 The CM tries to lock a request.
4 If CM has read through all its cache, go to Step 7.
Transaction Managers:
TMs are immediate concurrent programs that work only when signaled by
a client. Unlike CMs that continuously poll the system looking for work,
TMs wait until signaled. Also, the TMs do not establish on-going
connections with the client. Once the request has been sent to the TM,
the connection remains only long enough for the TM to obtain the answer
and return the result set.
STEP
1 The TM checks to see if it can exit.
2 The TM gets a token. This token allows it to have usage of
the database pipe, and it listens.
3 If the TM gets a request, it processes that request. It then
creates a new pipe for sending its result set back to the client.
It releases the token so that the next TM in line can pick up
the next request. When finished, the TM returns to Step 1.
4 If the TM doesn't get a request, it timesout. It releases the
token so that the next TM in line can pick up the next request.
When finished, the TM returns to Step 1.
Concurrent
Concurrent Processing
Processing Flow
Flow
•• Submitting
Submitting aa concurrent
concurrent request
request
•• Processing
Processing aa simple
simple request
request
•• Processing
Processing aa constrained
constrained request
request
NOTE: Being aware of the two APIs should give you insight into why
testing of concurrent requests should occur in two places, from the
FNDRSRUN form (or other form that submits your request), and through
CONCSUB at the Operating System level. CONCSUB uses the C API.
With testing on both, you will gain valuable insight into your problem and
its cause.
The API takes the request, obtains all the parameters for the request, and
then stores the request into the table FND_CONCURRENT_REQUESTS.
If the request has more than 25 parameters, parameters 26-100 are
A simple request occurs when a request is made, and that request has no
constraints. Unconstrained requests are immediately put into the queue
for the concurrent managers to pick up. Assuming that you do not have
an exceptionally large backlog of pending requests and that requests are
not getting bumped by higher priority requests, most of these requests will
begin running in short order.
Concurrent
Concurrent Processing
Processing Tasks
Tasks
•• Submit
Submit an
an individual
individual concurrent
concurrent request
request
•• Submit
Submit aa concurrent
concurrent request
request set
set
•• Scheduling
Scheduling aa concurrent
concurrent request
request
•• Monitoring
Monitoring aa concurrent
concurrent request
request
•• Viewing
Viewing aa concurrent
concurrent request's
request's log
log file
file
•• Viewing
Viewing aa concurrent
concurrent request's
request's output
output
•• Purging
Purging the
the request
request table
table
NOTE: If you get an error message or do not see your log file, see the
Unit on Printing for Instructions on setting up web viewing of your log and
output files.
NOTE: If you get an error message or do not see your log file, see the
Unit on Printing for Instructions on setting up web viewing of your log and
output files.
Concurrent
Concurrent Processing
Processing Tasks
Tasks
•• Create
Create aa request
request set
set
•• Create
Create aa request
request group
group
•• Create
Create aa concurrent
concurrent executable
executable
•• Create
Create aa concurrent
concurrent program
program
•• Create
Create aa concurrent
concurrent manager
manager
•• Stop
Stop and
and restart
restart aa concurrent
concurrent manager
manager
•• Stop
Stop and
and restart
restart the
the ICM
ICM
•• Cancelling
Cancelling aa concurrent
concurrent request
request
•• Holding
Holding aa concurrent
concurrent request
request
•• Terminating
Terminating a concurrent request
a concurrent request
NOTE: There are many ways to stop and start a concurrent manager.
This quick reference lists just one. For more information, use the
Oracle Applications System Administrator's Guide, Release 11i.
UNIX:
WINDOWS NT:
Copyright © Oracle Corporation, 2000. All rights reserved.
UNIX:
startmgr \
sysmgr=”<APPS username>/<APPS password>” \
mgrname=”<name>” \
PRINTER=”<printer>” \
mailto=”<userid1 userid2...>” \
restart=”N|<minutes>” \
logfile=”<filename>” \
sleep=”<seconds>” \
pmon=”<cycles>” \
quesiz=”<cycles>” \
diag=”Y|N”
WINDOWS NT:
Concurrent
Concurrent Processing
Processing Scripts
Scripts
•• Concurrent
Concurrent Processing
Processing diagnostics
diagnostics and
and listing
listing
script
script (CONCMAN)
(CONCMAN)
•• Analyze
Analyze aa concurrent
concurrent request
request
•• Analyze
Analyze all
all pending
pending concurrent
concurrent requests
requests
•• Clean
Clean the
the concurrent
concurrent manager
manager tables
tables
•• Retrieve
Retrieve all
all log
log files
files for
for aa concurrent
concurrent request
request
•• Get
Get aa concurrent
concurrent program’s
program’s incompatibilities
incompatibilities
•• List
List responsibilities
responsibilities that
that can
can run
run aa given
given
concurrent
concurrent program
program
Currently, some of the most useful scripts for diagnosing and understand
Concurrent Processing come from one of the developers. While these
scripts are not currently shipped with the Application, I understand that the
developer is working on checking them into the 11.5.3 release.
The developer is named Paul Ferguson, and his home page is located at:
http://ap9019pc.us.oracle.com/
Follow the link to scripts, and you will see an outstanding library of useful
scripts, including the above listed ones for Concurrent Processing.
I can not emphasize enough the importance of reading these scripts for
insights into the processing that occurs by Concurrent Processing. These
scripts will highlight important characteristics, and will be well worth your
investment of time.
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II can
can describe
describe the
the concurrent
concurrent processing
processing flow
flow
within Oracle Applications.
within Oracle Applications.
•• II can
can quickly
quickly create
create aa request
request set,
set, concurrent
concurrent
manager,
manager, and
and other
other concurrent
concurrent processing
processing related
related
items.
items.
•• II can
can quickly
quickly perform
perform numerous
numerous system
system
administration tasks related to concurrent
administration tasks related to concurrent
processing.
processing.
System
System Administration
Administration Quick
Quick Reference
Reference
Printing
Printing Tasks
Tasks
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Discuss
Discuss the
the printing
printing process
process within
within Oracle
Oracle
Applications
Applications
•• Set-up
Set-up aa printer
printer for
for use
use within
within Oracle
Oracle Applications
Applications
Printing
Printing within
within Oracle
Oracle Applications
Applications
Submit a Concurrent
request to run Manager
a report reads the
request
Via the Application, a user will submit a request to run a report. This is
most commonly done from the Submit Request Form (shortname =
FNDRSRUN).
Printing
Printing within
within Oracle
Oracle Applications
Applications
1
YES NO
Copies = 0?
As Oracle Reports begins to run, it will look at a setting for how many
copies you want. If copies = 0, then Oracle Reports will look at the Print
Style definition for which SRW file to use. If copies > 0, then Oracle
Reports will look at the Print Driver definition for which SRW file to use.
In either case, Oracle Reports will look at the Print Style to determine the
rows and columns that are contained in the report. The Print Style rows
and columns overrides both the Print Style and Print Driver SRW files
(which contain rows and columns as well).
Printing
Printing within
within Oracle
Oracle Applications
Applications
2
3
®
After the file has been generated using the appropriate SRW file and
row/columns settings, the Concurrent Manager will prepend the
initialization string and append the reset string to the output.
Kyocera PreScribe
Canon CaPSYL
Xerox XES
Once the output has had the required initialization and reset strings added
to it, Oracle Reports will then look at the Print Driver to determine with
output method is being used.
Printing
Printing within
within Oracle
Oracle Applications
Applications
3
Command Program
Method?
Oracle Reports has 2 primary methods for sending output, Command, and
Program.
Most (>95%) of all reports are output via the Command method. The
command method says that Oracle Reports generates the output file.
After the file is generated, Oracle Reports uses Operating System
commands (e.g., lp in UNIX) to send the file to the printer.
The other method is Program. In the Program method, the output from
Oracle Reports is sent to a program/script that then make additional
changes to the file. Once the program is done, the program is responsible
for printing the report. This kind of processing is typically referred to as as
"filter".
The first course of action for any System Administrator trying to get
printing to work is to ensure that you can print from the machine. Also,
check to see that you can print from the servers. Setting up printers within
Oracle Applications assumes that printing has already been setup at the
Operating System level. If this hasn't been done, it will need to occur.
Oracle Applications does not control printers, and will not be able to set
them up.
Printing
Printing Within
Within Oracle
Oracle Applications
Applications
•• Setting
Setting up
up Printing
Printing
•• Bit-mapped
Bit-mapped Printing
Printing
•• SRW
SRW Driver
Driver Files
Files
•• Initialization
Initialization and
and Reset
Reset Strings
Strings
There are 2 fields on the top of the form. For this step, we will
only use those fields.
Registering a Printer:
1. Logon to Applications as the System Administrator responsibilty.
2. (Navigate) Install > Printer > Register
3. In the "Printer" field, put the Operating System name of the
printer. NOTE: You must have already defined the printer
to the Operating System. However, Applications has no
NOTE: Here are the corresponding arguments for UNIX and Windows:
UNIX: lp -c -d$PROFILES$.PRINTER -
-n$PROFILES$.CONC_COPIES
-t "$PROFILES$.TITLE"
$PROFILES$.FILENAME
1. Text
2. Postscript
3. HTML
4. PDF
5. Binary
If you run a report with the Output Format set to "Text", Oracle
Applications will run a program called, ar60run. If you choose any of the
other formats, Oracle Applications will run a program called, ar60runb.
The difference in the 2 programs is one handles character-mode reports
(ar60run) and the other handles bit-mapped reports (ar60runb).
NOTE: In Oracle Reports, when defining a report the units and size of the
report are specified in the menu under Report–>Global Properties–>Unit
of Measurement. For bitmapped reports, <width>x<height> for
PAGESIZE is usually in inches; however, this depends on the particular
report definition.
What happens if you can’t seem to get the printing correct? One possible
solution is to do the following:
NOTE: The printing attempts must take place from the Server where you
are having the problems. If not, you would simply be testing that your
client machine can print. This is typically not a problem.
1. Take a known text file and print it. Did it work? If not, then
you have a set-up issue with your printer to your Operating
System.
3. Take your original known good text file, and prepend the
initialization string and append the reset string.
4. Print this new file. Did it work? If not, your initialization string
is wrong.
6. Repeat Step 3 using your new output file in place of the text
file.
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II can
can discuss
discuss the
the printing
printing process
process within
within Oracle
Oracle
Applications.
Applications.
•• II can
can set-up
set-up aa printer
printer for
for use
use within
within Oracle
Oracle
Applications.
Applications.
System
System Administration
Administration Quick
Quick Reference
Reference
Install
Install and
and Set-up
Set-up Tasks
Tasks
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Configure
Configure Web
Web Listener
Listener Virtual
Virtual Directories
Directories
•• Configure
Configure aa PL/SQL
PL/SQL Web
Web Agent
Agent
•• Set
Set the
the Web
Web Server
Server profile
profile options
options
•• Administer
Administer the
the TCF
TCF Socket
Socket Server
Server
•• Set
Set up
up Personal
Personal Homepage
Homepage Authentication
Authentication
•• Set
Set up
up Single
Single Sign–on
Sign–on
•• Set
Set up
up Self–Service
Self–Service Authentication
Authentication in
in the
the database
database
Install
Install and
and Set-up
Set-up Tasks
Tasks
•• Configure
Configure Web
Web Listener
Listener Virtual
Virtual Directories
Directories
•• Configure
Configure aa PL/SQL
PL/SQL Web
Web Agent
Agent
•• Set
Set the
the Web
Web Server
Server profile
profile options
options
•• Administer
Administer the
the TCF
TCF Socket
Socket Server
Server
•• Set
Set up
up Personal
Personal Homepage
Homepage Authentication
Authentication
•• Set
Set up
up Single
Single Sign–on
Sign–on
•• Set
Set up
up Self–Service
Self–Service Authentication
Authentication in
in the
the database
database
http://<hostname>:<port>/admin_/listener.htm
The Oracle WebDB Listener Settings page is divided into four sections:
Miscellaneous Settings, Directory Mappings, CGI Directory Mappings
and MIME Types.
http://<hostname>:<port>/OA_HTML/env.txt
This URL will retrieve a small text file with the FND_TOP value.
http://<hostname>:<port>/OA_MEDIA/FNDLOGOL.gif
http://<host>:<port>/OA_JAVA/oracle/apps/fnd/jar/wfmon.jar
This URL will return a prompt which asks you where to save
the file.
http://<hostname>:<port>/OA_CGI/FNDWRR.exe
This URL will return the message ”Query String Parse Error.”
http://<host>:<port>/<plsql_agent_name>/FND_WEB.PING
FND_WEB.PING
SYSDATE <server system date>
DATABASE_VERSION <database version banner>
DATABASE_ID <database identifier>
SCHEMA_NAME <oracle schema name>
AOL_VERSION <AOL version number>
APPS_WEB_AGENT <profile option site level val-ue>
http://<hostname>[:<port>]/<plsql_agent_name>
6. Set the Site level value of the option to the PL/SQL Agent URL
for online help.
http://<hostname>[:<port>]/<plsql_agent_name>
Test Ping:
(Menu) Help -> Diagnostics -> Test Web Agent…
<APPS_WEB_AGENT>/FND_WEB.PING
http://<host>:<port>/OA_JAVA/oracle/apps/fnd/tcf/SocketServer.class
Log into the web server machine. Identify a free port number.
3. Start the TCF Socket Server on the web server host machine.
STOP_MODE=”[IMMEDIATE|NORMAL (default)]”
Troubleshooting
The command:
loadjava –u username/password[@database] –v –r
$FND_TOP/java/jar/fndsec.jar
Use the System profiles form to verify or set the value of the
GUEST_USER_PWD profile option. The value should be the
username/password of a valid applications user account (not
an Oracle user). Any valid account will do, but we recommend
that this account not be assigned any actual responsibilities.
4. Set the Site level value of each option to the base URL to
launch the appropriate application.
Examples:
Profile Value
ICX: Forms Launcher http://myFormsServer/forms6
ICX: Report Launcher http://myReportsServer/
cgi–bin/rwcgi?sml_key
ICX: Discoverer Launcher http://myWebDiscovererServer/
webdis/html/english/
netscape/start.html?
Connect=[APPS_SECURE]
apptest
GUEST_USER_PWD=GUEST/GUEST
FNDNAM=apps
GWYUID=applsyspub/pub
APPS_JDBC_DRIVER_TYPE=THIN
DB_HOST=ap118sun_atg115 DB_PORT=1521
DB_NAME=atg115
FND_MAX_JDBC_CONNECTIONS=50
FND_IN_USE_CONNECTION_TIMEOUT=90
FND_UNUSED_CONNECTION_TIMEOUT=60
jre oracle.apps.fnd.security.AdminAppServer \
apps/apps@dbname \ADD \
APPS_JDBC_DRIVER_TYPE=THIN
The type of JDBC driver being used. For Release 11i,
this parameter must be set to THIN.
DB_HOST=<hostname>
The host machine on which the database resides. This
parameter is required with the THIN driver type.
DB_PORT=<port number>
The port of the host machine on which the database
resides. This parameter is required with the THIN driver
type.
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II can
can configure
configure the
the web
web listener
listener virtual
virtual directories.
directories.
•• II can
can configure
configure aa PL/SQL
PL/SQL web
web agent.
agent.
•• II can
can set
set the
the web
web server
server profile
profile options.
options.
•• II can
can administer
administer the
the TCF
TCF socket
socket server.
server.
•• II can
can set
set up
up Personal
Personal Homepage
Homepage authentication.
authentication.
•• II can
can set
set up
up Single
Single Sign–on.
Sign–on.
•• II can
can set
set up
up Self–Service
Self–Service authentication
authentication in
in the
the
database.
database.
®
Using
Using the
the Knowledge
Knowledge Repository
Repository
to
to Solve
Solve Issues
Issues
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Discuss,
Discuss, login,
login, and
and use
use the
the two
two (2)
(2) interfaces
interfaces to
to
the Knowledge Repository
the Knowledge Repository
•• Discuss
Discuss thethe advantages
advantages and and disadvantages
disadvantages of of the
the
two
two (2)
(2) interfaces.
interfaces.
•• Discuss
Discuss broadly
broadly the
the topic
topic of
of aa knowledge
knowledge
repository
repository
•• Identify
Identify other
other sources
sources ofof information
information
The
The Knowledge
Knowledge Repository
Repository
•• One
One of
of many
many
•• Two
Two interfaces
interfaces to
to one
one database
database
•• Universally
Universally available
available
Using
Using WebIV
WebIV
•• Accessing
Accessing WebIV
WebIV
•• Searching
Searching WebIV
WebIV
•• Getting
Getting HELP
HELP on
on WebIV
WebIV
•• Advantage
Advantage and
and Disadvantages
Disadvantages of
of WebIV
WebIV
WebIV:
Accessing WebIV:
Being a web-based system, you will need to know its URL for access.
Also, because it is the knowledge repository for all of Oracle Support
Services and our customers, there are mirror systems for accessing
WebIV. The URLs are as follows:
WebIV needs a username and password, but it allows you to obtain those
immediately, if you don't have them.
WebIV allows the user to query multiple knowledge databases from one
front-end. Currently, the Oracle Support Services' database is called
SURE. There is also a database of known bugs and issues called BUG.
WebIV has a query-only version of that database, called BugTag. WebIV
also has a subset of the current Oracle Documentation that can be
searched by Title only. Users of WebIV should currently be weary of
WebIV's available documentation. Much of it is grossly out-of-date, and
the searching capabilities do not extend into the individual manuals.
Searching WebIV:
Once you have logged in to WebIV, you will see the main WebIV page. If
you do not see a menu page, either on the left, right, or independently
floating in its own window, you must click the MENU checkbox at the top
of the screen. When you do click it, your page will redraw using your
preferences for displaying your menu. You need a menu in order to
search WebIV.
On the menu, you will notice 5 folder icons labelled, Navigate, Search,
Lookup, Utilities, and Admin. Typically, the Navigate, Search and Lookup
folders are open (i.e., they have sub-items below them). If the Search
folder is not open, you can open it by clicking on the (+) sign beside the
folder name.
Underneath the Search folder, there are 4 items, Tech Databases, SURE
Query, BugTag Query, and DocTitle Query. The Tech Databases link, will
put you into the Main query screen for WebIV. From this screen, you can
query the SURE, BugTag, and DocTitle databases. The SURE Query,
BugTag Query, and DocTitle Query links allow you to do more detailed
queries on those individual databases.
Make certain the SURE checkbox is checked, the drop-down box beside
that checkbox should be set to MAX, and the radio button should be set to
ALL. On the search line, it should be set to AND++. In the text box
When you execute your search, you will see numerous results come back
from your query. (Note: At the time of this course, there were 325 SURE
hits.)
As you look through the list of search hits, you will see one that is located
near the top of the list. It is NOTE.74016.1. This is the WebIV Tutorial. A
very good document to read.
In fact, this course does not attempt to cover all of the skills you will need
to use WebIV. WebIV is a simple interface that covers a very full-
featured application. If you want to get the most out of WebIV, you will
want to read this Note.
More on WebIV:
At this point, you have the information you need to continue to learn about
WebIV. It is beyond the scope of this unit to discuss using WebIV in
detail. Use the Tutorial (Note 74016.1) for that.
Using
Using MetaLink
MetaLink
•• Accessing
Accessing MetaLink
MetaLink
•• Searching
Searching MetaLink
MetaLink
•• Getting
Getting HELP
HELP on
on MetaLink
MetaLink
•• Advantages
Advantages and
and Disadvantages
Disadvantages of
of MetaLink
MetaLink
MetaLink:
Accessing MetaLink:
Being a web-based system, you will need to know its URL for access.
Also, because it is a worldwide system for our customers, there are mirror
systems for accessing WebIV. The URLs are as follows:
From that one URL, you will have a page of links to 3 geographically
places servers for accessing MetaLink. The data is shared across the 3
servers. The servers are geographically placed to speed up client access.
Choose the server that is geographically fastest for you.
If you do not have a MetaLink account, you can do one of two things. If
you are an Oracle customer, you can register for a MetaLink account on-
You can get HELP on MetaLink very easily. Use the following URL:
http://metalink.oracle.com/Metawbt/
There are also numerous articles and FAQs within MetaLink (once you
login) that may also be of assistance.
A
A Knowledge
Knowledge Repository
Repository
•• What
What is
is aa knowledge
knowledge repository?
repository?
•• What
What knowledge
knowledge repositories
repositories are
are available
available to
to
customers?
customers?
•• What
What additional
additional knowledge
knowledge repositories
repositories are
are
available
available toto internal
internal Oracle
Oracle users?
users?
* Documentation
* Known issues and workarounds
* Problem/solution entries
* Platform capability issues
* Obsolescence notices
* Current patches
* White papers
* Training materials
* Bulletins
* Conference papers
* Related books and videos
* Related websites
This is just a good start on the possible entries for a knowledge repository.
In its largest scope, a knowledge repository would contain any and all
information that could help you resolve an issue.
If you have access to the Oracle internal network, there are additional
resources that you may find helpful.
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements about your knowledge:
statements about your knowledge:
•• II can
can identify
identify and
and access
access the
the two
two (2)
(2) interfaces
interfaces to
to
the
the primary
primary knowledge
knowledge repository.
repository.
•• II can
can discuss
discuss the
the advantages
advantages andand disadvantages
disadvantages
of
of WebIV
WebIV and
and MetaLink.
MetaLink.
•• II can
can discuss
discuss the
the concept
concept of
of aa knowledge
knowledge
repository,
repository, and I have a better understanding
and I have a better understanding of of
what
what type
type of
of materials
materials might
might bebe in
in one.
one.
•• II can
can identify
identify and
and access
access additional
additional knowledge
knowledge
repositories.
repositories.
®
Using
Using BUG
BUG to
to Solve
Solve Issues
Issues
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Discuss
Discuss what
what BUG
BUG is
is
•• Access
Access BUG
BUG
•• Use
Use BUG
BUG to
to solve
solve issues
issues
•• Get
Get more
more information
information on
on BUG
BUG
Using
Using BUG
BUG
•• What
What is
is BUG?
BUG?
•• How
How do
do II access
access BUG?
BUG?
•• How
How do
do II use
use BUG
BUG to
to solve
solve issues?
issues?
•• Where
Where do
do II get
get more
more information
information on
on BUG?
BUG?
What is BUG?
BUG is a database. But is it really that simple? Not quite. Let's actually
understand that the word "bug" has many different uses.
If you are using Oracle Applications and you encounter something that
doesn't work as expected, to you, that is a "bug". In this unit, I'll use the
lowercase bug to represent an unreported issue or problem with an Oracle
Product.
So, you call your HelpDesk or Oracle Support Services, and you discuss
the problem you are having. What happens then? Well, you may simply
be expecting something from the product that it doesn't do. That isn't a
"Bug". You may not know how to properly use the product. That is
training, not a "Bug". Your system administrators / installers may not have
properly set-up the system to operate as it should. That is configuration,
not a "Bug". However, you may have encountered a real problem with
Oracle's product. That is a "Bug".
Note the spelling of this "Bug". I will use this spelling to represent a "bug"
that has been reported to Oracle. After all, it can only be fixed if we know
it exists. The next logical question is, are you the first customer to
experience this "Bug"?
The above cycle also works for "Bugs" on which you may be waiting for
resolution.
"BUG" is the database that contains all the tracking information on known
problems and work-arounds.
Also, it is critical that you understand that Oracle uses the BUG database
in two (2) distinctly different manners. For products in the iPlatform group
(i.e., database, Internet applications server, development tools, etc.), BUG
is a repository for tracking a problem, and a direct pointer to its solution
(i.e., patch). For eBusiness Suite products, BUG is a repository for
tracking the problem. The solution (patch) has one other system that it
must go through before a complete solution can be sent to a customer.
That system is called, ARU.
BUG is accessible through two (2) systems. First and primarily, BUG is
accessible through its primary web application at:
http://bug.us.oracle.com/
With this account, you will have access to all "Bugs". You will also have
access to log new "Bugs", and add information to existing "Bugs".
The secondary interface for BUG is through MetaLink. You can access
MetaLink at:
http://metalink.oracle.com/
From within MetaLink, you only have READ access to "Bugs", and you will
not have access to all information. There are methods by which text in a
"Bug" can be marked for Internal Oracle consumption only. This text
would be things like usernames, passwords, customer names, phone
numbers, and other sensitive information.
http://metalink.us.oracle.com/
BUG is excellent for solving known problems and issues. From BUG you
can get patch numbers and/or work-arounds. You can also often find
diagnostic actions that can help you lock-down a problem to a specific
cause. You can also use those same routines to eliminate possible
causes from your list.
The specifics of using BUG to solve issues are best discussed using the
primary BUG interface (http://bug.us.oracle.com). Try the following:
If you go to the main page, follows the links for "About Bug", "Bug
Frequently Asked Questions (FAQ)", and "How to Bug: User Guide".
These documents will prove useful. You can also feel free to ask other
BUG users how they are using BUG to its full capabilities.
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II can
can tell
tell you
you what
what BUG
BUG is.
is.
•• II can
can access
access BUG.
BUG.
•• II can
can use
use BUG
BUG to
to solve
solve issues.
issues.
•• II know
know where
where to
to get
get additional
additional information
information on
on
BUG.
BUG.
Using
Using ARU
ARU to
to Solve
Solve Issues
Issues
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Discuss
Discuss ARU
ARU
•• Access
Access ARU
ARU
•• Use
Use ARU
ARU to
to solve
solve issues
issues
•• Get
Get more
more information
information on
on ARU
ARU
Using
Using ARU
ARU
•• What
What is
is ARU?
ARU?
•• How
How do
do II access
access ARU?
ARU?
•• How
How do
do II use
use ARU
ARU to
to solve
solve issues?
issues?
•• Where
Where do
do II get
get more
more information
information on
on ARU?
ARU?
What is ARU?:
ARU, which stands for Automated Release Update, is the system that
Oracle Applications uses for controlling and releasing patches.
ARU can be access in two (2) ways, through its primary website and
through MetaLink.
http://aru.us.oracle.com/
You will need a user account. You can apply for one on-line by following
the "LOGON" tab and the "REQUEST ACCOUNT" button.
You can also access a restricted version of ARU through MetaLink at:
http://metalink.oracle.com
MetaLink will not have EVERY entry that is included in ARU. But, the
interface is significantly easier to use.
A customer calls, and they are getting an error on the logon form of
Applications. The form name is FNDSCSGN.fmb. They are on version
115.71, and they wonder if a newer version is available. Solve the
problem.
Following the same example that we used for MetaLink, let see how we'd
do it using ARU.
NOTE: You will see many more choices than you saw in MetaLink.
7. As you read the results, you see that the latest version of the
file (as of the writing of this document) is 115.79, and is
contained in 5 patches 1449557, 1449383, 1441497, 1430226,
and 1391173.
8. Note the status of these patches. Status is noted in the
"EVENT" field. Patches 1449557 and 1441497 are "In
Progress". Patch 1430226 is "Obsolete". Patches 1449383
and 1391173 are "Released". The 2 "Released" patches are
the only patches shown on MetaLink.
9. Click the link for patch 1449383.
10. Notice that this next screen provides much more detail than
is available via MetaLink. You see each piece of the patch.
You also see the README.txt automatically included at the
bottom of the screen.
11. Click the "Patch Requests" links at the top of the screen.
12. You can now download this patch by clicking the
"DOWNLOAD PATCH" link.
You can get more information on ARU (even without a user account)
through ARU at:
http://aru.us.oracle.com
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II know
know what
what ARU
ARU is.
is.
•• II can
can access
access ARU.
ARU.
•• II know
know how
how to
to use
use ARU
ARU to
to solve
solve issues.
issues.
•• II know
know where
where to
to get
get more
more information
information on
on ARU.
ARU.
Using
Using Certify
Certify to
to Solve
Solve Issues
Issues
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Discuss
Discuss Certify
Certify
•• Access
Access Certify
Certify
•• Use
Use Certify
Certify to
to solve
solve issues
issues
•• Get
Get more
more information
information on
on Certify
Certify
Using
Using Certify
Certify
•• What
What is
is Certify?
Certify?
•• How
How do
do II access
access Certify?
Certify?
•• How
How do
do II use
use Certify
Certify to
to solve
solve issues?
issues?
•• Where
Where do
do II get
get more
more information
information on
on Certify?
Certify?
What is Certify?:
If you imagine the following senario, you will see why Certify is needed.
Let's imagine want to run Oracle Applications on Windows NT 4.0. What
does that mean?
http://certify.us.oracle.com
1. Go to MetaLink (http://metalink.oracle.com)
2. Logon to MetaLink
3. Click the "Product Lifecycle" button on the left-side button bar.
4. Click the "Certifications" button at the top of the middle
frame.
At this point, both methods of accessing Certify are using the exact same
database and screens. You can walk a customer through Certify quite
easily because of this.
Let's continue our senario. You have a customer who wants to run Oracle
Applications (let's be specific, Release 11i) on Windows NT 4.0 Service
Pack 5. What do they need? To answer this question do the following:
15. Follow the "Database Tier" to the "ISSUES" link. Click it.
16. What follows is all the known issues and patches for
this particular platform. Write those Bug#'s down. Because
you can then use ARU (see unit on Using ARU to Solve
Issues) to download the patches.
17. There may be issues other than patches. These would
include work-arounds and hints.
You can get information on Certify through MetaLink. See the unit on
Using WebIV to Solve Issues for more information on MetaLink.
http://certify.us.oracle.com/certfaq.html
You will find a link to the Certify User's Guide as well. It is at:
http://certify.us.oracle.com/certifyuserguide.pdf
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II know
know what
what Certify
Certify is.
is.
•• II can
can access
access Certify.
Certify.
•• II know
know how
how to
to use
use Certify
Certify to
to solve
solve issues.
issues.
•• II know
know where
where to
to get
get more
more information
information on
on Certify.
Certify.
Using
Using eTRM
eTRM to
to Solve
Solve Issues
Issues
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Discuss
Discuss and
and use
use eTRM
eTRM
•• Discuss
Discuss broadly
broadly the
the topic
topic of of aa repository
repository and
and
Oracle
Oracle Repository
Repository 6i
6i in
in particular
particular
•• Identify
Identify other
other sources
sources of of information
information
The
The BIG
BIG Picture
Picture
•• What
What is
is aa Repository?
Repository?
•• What
What is
is happening
happening with
with the
the Repository
Repository and
and Apps?
Apps?
•• What
What tools
tools are
are available?
available?
•• What
What is
is the
the future?
future?
What is a Repository?:
The tool we are talking about in this unit is eTRM. eTRM is a front-end to
the Repository. It provides 100% HTML web access to traditional and
dynamic data and diagrams previously only available in the Technical
Reference Manuals (TRMs). This data includes dependency information
across both database and flat file objects types. This allows for simple
navigate of both $APPL_TOP and data model objects in a single browser
session. It also improves the searching capabilities for objects, including a
wildcard, fast-find facility.
While the eTRM represents a significant tool for problem diagnosis and
troubleshooting, it does have a drawback. The tool was written against a
11.5.0 code drop. And the current repositories in place do not allow for
easy maintenance of the eTRM. As such, the developers of eTRM are
working to have the Repository 6i in place for 11.5.4. With Repository 6i
in place, the eTRM will then begin a regular maintenance cycle being that
it can pull from a single repository.
So, for your own planning purposes, eTRM will have a gap in the quality of
its data from 11.5.0 to 11.5.4. You should be aware of this. Does it make
eTRM useless? Far from it! The paper-based TRMs have always had
this problem, and they don't even attempt to provide dependency
information.
Oracle
Oracle Repository
Repository 6i
6i
Dependency
Diff / Merge
Merge Designer
Designer eTRM
Manager
Manager
Repository 6i
Dependencies
Dependencies Versioning
Versioning Source
Source Control
Oracle
Oracle 8i
8i DB
DB
This diagram shows you a basic outline of how the tools will interface with
the repository which resides in an Oracle 8i database.
It would also be appropriate, at this time, to discuss where you can get
additional information on eTRM and the Repository 6i projects.
http://www-apps.us.oracle.com/~jusmith/eTRM/eTRM.htm
You can find additional information of the Oracle Repository 6i project at:
http://repository.oracle.com/
And you can find additional information on Oracle's Case Tools, including
Repository 6i, at:
http://invincible.uk.oracle.com/
eTRM
eTRM
•• How
How do
do II access
access eTRM?
eTRM?
•• How
How might
might II use
use eTRM?
eTRM? (Demo)
(Demo)
•• Where
Where do
do II get
get more
more information?
information?
http://etrm.us.oracle.com/
The only thing you need is your browser as eTRM is 100% HTML which
runs on either a WebDB or iAS server. In the 1.0 version of eTRM, you do
not need a username/password. This may change in future releases.
eTRM stores flat file and data model objects. eTRM parses the following
flat file object types, .c, .fmb, .java, .lc, .lpc, .oc, .opc, .plb, .pll, .pls, .ppc,
.rdf, and .sql. eTRM also parses sequences, snapshot definitions, tables,
and views from the data model.
Note: In the 1.0 version of eTRM, eTRM does not "know" about dynamic
SQL. Future versions will utilize a tool called Dependency Manager to
help manage this.
So, let's start using eTRM. If you go to the page, you will be presented
with the main eTRM screen. The screen is divided into three main areas:
* The top pane with the "workarea" selection
* The left pane with navigation links
* The right pane containing the results of object and report detail
eTRM has two main modes of use (although they are really not different):
* Appl_top navigation
* Object look-up
What you are really seeing in this "code tree", is a virtual representation of
the physical appl_top folder and sub-folders, being generated from with
Repository. It is not identical to the disk-based appl_top but is an easy
way to find files, objects or database objects.
If you continue navigating down any of the folders below the prod_top, you
will come to entries representing the individual files, normally found below
the sub-dirs of a prod_top. For instance, clicking through the "forms" then
the "US" links will show you entries for each of the forms in this product.
Object Look-Up allows a kind of fast-find facility that allows you to quickly
locate an object by specifying an object name in the field and pressing the
"go" button. Additionally, this field can act as a "wild-card" search. In SQL
terms, it will perform a LIKE '%WHAT_YOU_ENTERED% query. For
instance, if you were to enter "AP_BANK_ACCOUNTS", the right pane
would display all objects that contained that string [fragment].
Once you have told eTRM what object you want information on (by doing
the object search or by navigating the virtual appl_top until you have
reached the required object), you will be presented with a report that
shows both traditional Technical Reference Manual information and
dependency information. This report will include different information for
different types of object but for example, if you were to have selected a
table, you would see the following:
eTRM also includes a currently static page of links to the data modeling
diagrams for each product (where that product has supplied the diagrams
or where they are otherwise available).
With eTRM, this is easy! You could enter the name of the table and
immediately obtain a list of all objects that use the table and all objects
that the table uses.
To help give you a better feel for how eTRM works and how to use it
effectively, the eTRM team has prepared a "Camtasia" presentation and
demo that will take you through the key features. The demo is in three
pieces.
1. Introduction to eTRM
2. First part of the demo
3. Second part of the demo
http://crmwebmedia.us.oracle.com:8080/ramgen/CRMmedia/training/brow
nbag/bb_etrm_intro_smith_092600.rm
http://crmwebmedia.us.oracle.com:8080/ramgen/CRMmedia/training/brow
nbag/bb_etrm_demo_goldthorp_092600.rm
http://crmwebmedia.us.oracle.com:8080/ramgen/CRMmedia/training/brow
nbag/bb_etrm_impact_goldthorp_092600.rm
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II can
can discuss
discuss and
and use
use eTRM.
eTRM.
•• II can
can discuss
discuss the
the topic
topic of
of aa repository
repository and
and
Repository
Repository 6i
6i in
in particular.
particular.
•• II know
know other
other sources
sources ofof information
information on
on eTRM
eTRM and
and
Repository
Repository 6i.
6i.
Basic
Basic Apache
Apache Administration
Administration Skills
Skills
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Start
Start an
an Apache
Apache web
web server
server
•• Stop
Stop an
an Apache
Apache web
web server
server
•• Understand
Understand the
the basic
basic configuration
configuration of
of an
an Apache
Apache
web
web server
server
•• Do
Do basic
basic diagnostic
diagnostic testing
testing of
of an
an Apache
Apache web
web
server
server
•• Know
Know where
where to
to go
go for
for additional
additional information
information on
on
the Apache web server
the Apache web server
Basic
Basic Apache
Apache Skills
Skills
•• Starting
Starting an
an Apache
Apache web
web server
server
•• Stop
Stop an
an Apache
Apache web
web server
server
•• Understand
Understand the
the basic
basic configuration
configuration of
of an
an Apache
Apache
web
web server
server
•• Do
Do basic
basic diagnostic
diagnostic testing
testing of
of an
an Apache
Apache web
web
server
server
•• Know
Know where
where to
to go
go for
for additional
additional information
information on
on
the Apache web server
the Apache web server
Starting Apache:
Stopping Apache:
Configuration of Apache:
The server also reads a file containing mime document types; the filename
is set by the TypesConfig directive, and is mime.types by default.
At startup, Apache saves the pid of the parent httpd process to the file
logs/httpd.pid.
Windows: apache -t
c:/program files/apache group/apache/conf/httpd.conf:
Syntax OK
If you started Apache and you didn't see any errors, try to
access it. From your browser, access the page …
http://hostname:port/ (the default web server port is 80)
If you don't have success, you need to look at the error log.
It's called 'error_log' on Unix, but 'error.log' on Windows.
UNIX: apachectl -l
Windows: apache -l
Additional Information:
For additional information, the definitive starting point is the Apache web
site at:
http://www.apache.org/
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II can
can stop
stop and
and start
start an
an Apache
Apache web
web server.
server.
•• II understand
understand the
the basic
basic configuration
configuration ofof an
an Apache
Apache
web
web server.
server.
•• II can
can do
do basic
basic diagnostic
diagnostic testing
testing of
of an
an Apache
Apache web
web
server.
server.
•• II know
know where
where toto go
go for
for additional
additional information
information on
on
the Apache web server.
the Apache web server.
Basic
Basic Operating
Operating System Skills
Skills
UNIX
UNIX and
and Windows
Windows NT
NT
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Know
Know where
where to
to begin
begin to
to learn
learn more
more about
about UNIX
UNIX
•• Know
Know where
where to
to begin
begin to
to learn
learn more
more about
about
Windows
Windows NT
NT
You might have seen the unit title, and thought that this chapter was going
to be about UNIX and Windows NT. Actually, this chapter is about
pointing you in the right directions to learn more.
There are more books, videos, tutorials, and related information on UNIX
and Windows NT than could possibly be summarized. Also, because
each of these Operating Systems is a complex program, in and of itself. It
would not be useful for you or me to attempt to write a tutorial on either of
these O/S'es.
What can I do? Well, everyone, no matter their level of skill, can learn
something new about either / both of these O/S'es. So, I'm going to give
you some valuable resources, and you can grow from there.
UNIX
UNIX and
and Windows
Windows NT
NT Resources
Resources
•• UNIX
UNIX Resources
Resources
•• Windows
Windows NT
NT Resources
Resources
UNIX Resources:
First, let me list what I think are the definitive books on UNIX and UNIX
System Administration. (These are not in RANK order)
A. http://www.ugu.com/sui/ugu/show?help.beginners
B. http://www.geek-girl.com/unix.html
C. http://www.msoe.edu/~taylor/4ltrwrd/
D. http://www.sunworld.com/sunworldonline/common/
swol-backissues-columns.html#unix101
Windows NT Resources:
Here are the books that I consider to be the definitive books on Windows
NT and Windows NT System Administration. (Not in rank
order).
A. http://goforit.unk.edu/winnt/default.htm
B. http://www.winntmag.com/
C. http://www.microsoft.com/NTServer/
D. http://www.microsoft.com/ntworkstation/default.asp
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II know
know where
where to
to go
go to
to learn
learn about
about UNIX.
UNIX.
•• II know
know where
where to
to go
go to
to learn
learn about
about Windows
Windows NT.
NT.
Basic
Basic Tracing Skills
Skills
Objectives
Objectives
After
After this
this unit,
unit, you
you should
should be
be able
able to:
to:
•• Discuss
Discuss SQL*Trace
SQL*Trace
•• Discuss
Discuss TKPROF
TKPROF and
and Explain
Explain Plans
Plans
•• Run
Run aa basic
basic SQL*Trace,
SQL*Trace, TKPROF,
TKPROF, and
and Explain
Explain Plan
Plan
•• Know
Know where
where to
to go
go for
for more
more information
information
Basic
Basic Tracing
Tracing Skills
Skills
•• What
What is
is SQL*Trace?
SQL*Trace?
•• What
What is
is TKPROF?
TKPROF?
•• What
What is
is an
an Explain
Explain Plan?
Plan?
•• How
How do
do II run
run aa basic
basic SQL*Trace,
SQL*Trace, TKPROF,
TKPROF, and
and
Explain
Explain Plan?
Plan?
•• What
What about
about OEM?
OEM?
•• Where
Where do
do II go
go for
for more
more information?
information?
What is SQL*Trace?:
What is TKPROF?:
Release 11i uses the Cost-based Optimizer. The CBO determines which
execution plan is most efficient by considering available access paths and
by factoring in information based on statistics for the schema objects
(tables or indexes) accessed by the SQL statement. The CBO also
considers hints, which are optimization suggestions placed in a comment
in the statement.
Serial plans with greater costs take more time to execute than
those with smaller costs. When using a parallel plan, however,
resource use is not directly related to elapsed time.
Check:
SQL> select value from v$parameter
where name = 'timed_statistics';
Set:
SQL> alter system set timed_statistics = true;
2. Enable the SQL trace facility for the desired session, and run
your application. This step produces a trace file containing
statistics for the SQL statements issued by the application.
You can get the Oracle 8i manual that contains information on tracing and
related tasks at:
http://st-doc.us.oracle.com/8.0/816/server.816/a76992.pdf
You can obtain information on OEM and its related Management Packs at:
http://smpweb.us.oracle.com/
… specifically at …
http://smpweb.us.oracle.com/Software_Doc/Doc.html
Summary
Summary
You
You should
should feel
feel comfortable
comfortable with
with the
the following
following
statements
statements about
about your
your knowledge:
knowledge:
•• II understand
understand and
and can
can discuss
discuss SQL*Trace,
SQL*Trace,
TKPROF,
TKPROF, and Explain Plans.
and Explain Plans.
•• II can
can run
run aa SQL*Trace.
SQL*Trace.
•• II can
can TKPROF
TKPROF with
with an
an Explain
Explain Plan.
Plan.
•• II know
know where
where to
to go
go for
for more
more information.
information.