In this Document
Purpose
Last Review Date
Instructions for the Reader
Troubleshooting Details
References
Applies to:
Information in this document applies to any platform.
Purpose
The aim of this document is to provide a Troubleshooting Guide for Session Administration, including :
Troubleshooting Details
General Problem Analysis
Session Tracing
References
Oracle Session Administration Troubleshooting
Instructions for the Reader
The Oracle Session Administration Troubleshooting Guide is provided to assist you in solving Sesssion administration issues in a structured manner. The method is based on Oracle Diagnostic Methodology and the Enhanced Problem Analysis principles and it helps you to avoid trial and error approach. It guides you through a step-by-step method. Diagnostic tools are included in the document to assist in the different troubleshooting steps.
Step by step approach
ISSUE CLARIFICATION
In the issue clarification section it is important to describe the problem as best as possible. What is the problem you need to solve? At the end of the process you should be able to come back to this section to verify if the root cause was found and the solution was provided.
WHAT IS the problem we are looking at?
Examples of problem descriptions:
1. The session hang while trying to connect to the database.
2. Orphan sessions/processes (mismatch between v$session and v$process).
3. Ora-00018 Maximum Number Of Sessions Exceeded
ISSUE VERIFICATION
When you have a starting problem description it is time to collect facts in a structured way. First step would be to get an overview of all the facts we have. What information do we have readily available?
The answers to the following Oracle Session administration specific questions can potentially help you to solve the problem:
Please note that for Session Administration, questions can be more relevant to certain areas, than others. For these reasons the following Key / guidelines can be followed:
What is the problem / what is not a problem?
What are the symptoms?
What are the different errors generated?
What Client and Server platforms reproduce the problem?
What Client and Server platforms work?
What 5-digit version of Oracle software reproduces the problem?
What 5-digit version of Oracle software works?
(For Windows platform. confirm patch number bundle used)
What products reproduce the issue?
What products do not reproduce the issue?
Is this standalone database?
Is this RAC?
When is the problem seen / when is the problem not seen?
Is the problem constant?
Is the problem reported intermittently?
Is there any pattern to the failure?
What resolves the problem?
How long does the problem last?
Has this ever worked or is this a fresh installation / setup?
When did the problem start to fail?
Where is the problem / Where is the problem not?
Is the problem seen when run directly on the server where RDBMS installed? Check bequeath and local connections on the server :
Bequeath example is "sqlplus username/password"
Local example is "sqlplus username/password@net-service-name"
Does it happen for bequeath and/or local connections?
Does it happen for dedicate and/or shared connections?
Does it happen for all users or only for some users?
Does it happen from sqlplus sessions or from any client?
Are there any logon triggers?
If the problem is intermittent, Is there any pattern to the failure ?
Date, time ?
During peak load ?
When a batch job is run ?
When certain SQL statement used ?
CAUSE DETERMINATION
The facts listed in the ISSUE VERIFICATION are the starting point for the CAUSE DETERMINATION:
There are 3 main approaches to take here:
Use your experience to list possible causes. List the assumptions which needs to be checked in this case
Start searching for possible causes in My Oracle Support or other Oracle knowledge bases. Use the facts collected above to refine your search criteria.
Analyze the facts on differences between the working situation and non working situation: Depending on the answers from the questioning above and further investigation from the troubleshooting guides you should be able to list what is different, special, unique between the IS and the IS NOT and also see what is changed and when.
Examples
What changes happened around time the first failure / problem was reported?
New software installed?
Upgrade done?
New hardware?
Network configuration changes?
What is different between the clients who can connect and those that cannot?
What changed and could have an impact between the working situation and the current situation?
What is different to the working Alias and the non-working Alias?
The output will be a list of potential reasons causing the symptoms: can be a bug, a configuration setting, a conflict with other software, …
CAUSE JUSTIFICATION
Evaluate the causes: check the causes against the facts (the IS and the IS NOT observations). This also includes checking the symptoms of the problem against any bug rediscoveries identifying a problem. List potential assumptions you have made. Determine the most probable cause (often the one with the least assumptions or with the most reasonable assumptions).
For the most probable cause, verify the assumptions and turn them into facts (document them in the Issue Verification part). Some examples:
If bug XXX then we expect an upgrade from version x to y happened before the symptoms started
If the configuration file is wrong on client x, and right on client y, we expect it to work if we copy the file
This looks like same issue as described in note XXX but then we expect also a virus checker installed on the Windows server
If this cause would be true then another sequence of actions would result in a different outcome: let’s test this via an internal test case
If the verification fails, go to the next probable cause and repeat the verification.
If no potential cause stands the justification process, go back to the issue verification and collect more detailed facts. Further diagnostics can be verified. See below in the section Diagnostic Tools)
POTENTIAL SOLUTIONS
A brief description of the corrective actions that will remove the cause of the problem: in some cases there is only 1 solution linked to the cause. But in many cases, there are more. Example: install a patch to remove the bug from the system, avoid the problem by working differently, or avoid the problem by setting some parameters.
POTENTIAL SOLUTION JUSTIFICATION
Explain why the proposed solution solves the problem.
Diagnostic Tools - Session Tracing
1. The session hang while trying to connect to the database.
2. Orphan sessions/processes (mismatch between v$session and v$process).
3. Ora-00018 Maximum Number Of Sessions Exceeded
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/16976507/viewspace-754435/ ,如需转载,请注明出处,否则将追究法律责任。