You are on page 1of 2

ADR Different Methods to Create IPS Package (Doc ID 738732.

1)
Invoke adrci and set ADR_HOME.
You can create a logical package based on an incident number, a problem number,
a problem key, or a time interval. Create a logical package such that it will be
most useful to diagnose the error of your concern.
Following are the different methods using which a package can be created :
----------------------------------------------------------------------------1) Creating package based on incident.
Select correct incident if there are many incidents.
adrci>SHOW INCIDENT
adrci>IPS CREATE PACKAGE INCIDENT incident_number
----------------------------------------------------------------------------2) Creating Empty package.
adrci>IPS CREATE PACKAGE
This creates an empty package. You must use the IPS ADD INCIDENT or IPS ADD FILE
commands to add diagnostic data to the package before generating it.
----------------------------------------------------------------------------3) Creating package based on problem ID
adrci>IPS CREATE PACKAGE PROBLEM problem_ID
This creates a package and includes diagnostic information for incidents that re
ference the specified
problem ID. (Problem IDs are integers.) You can obtain the problem ID for an inc
ident from the
report displayed by the SHOW INCIDENT -MODE BRIEF command. Because there can be
many incidents with the same problem ID, ADRCI adds to the package the diagnosti
c information for the first three incidents ("early incidents") that occurred an
d last three incidents ("late incidents") that
occurred with this problem ID, excluding any incidents that are older than 90 da
ys.
----------------------------------------------------------------------------4) Creating package based on problem key
adrci>IPS CREATE PACKAGE PROBLEMKEY "problem_key"
The problem key must be enclosed in single quotes (') or double quotes (") if it
contains spaces or quotes.
----------------------------------------------------------------------------5)Creating package based on time interval.
This creates a package and includes diagnostic information for all incidents tha
t occurred from sec
seconds ago until now. sec must be an integer.
adrci>IPS CREATE PACKAGE SECONDS sec
adrci>IPS CREATE PACKAGE TIME 'start_time' TO 'end_time'
This creates a package and includes diagnostic information for all incidents tha
t occurred within the
specified time range. start_time and end_time must be in the format 'YYYY-MM-DD
HH24:MI:SS.FF TZR'.
This is a valid string for the NLS_TIMESTAMP_TZ_FORMAT initialization parameter.
The fraction (FF) portion of the time is optional, and the HH24:MI:SS delimiter
s can be colons or periods.
-----------------------------------------------------------------------------

Adding Incidents and files to the logical package :


You can add more files or more incidents to the package.
adrci>IPS ADD INCIDENT incident_number PACKAGE package_number
adrci>IPS ADD FILE filespec PACKAGE package_number
filespec is the complete path and name of the trace file to add .
package_number is the package id.
----------------------------------------------------------------------------Generate a physical incident package :
Once you have created a logical package using one of the above methods, next ste
p is to generate a physical package.
adrci>IPS GENERATE PACKAGE package_number IN path
This generates a complete physical package (zip file) in the designated path.
For example,the following command creates a complete physical package in the dir
ectory /home/steve/diagnostics from logical package number 2:
adrci>IPS GENERATE PACKAGE 2 IN /home/steve/diagnostics
Upload this package to the SR for diagnosing the problem.
----------------------------------------------------------------------------You can also create logical package and generate physical package with just one
command :
IPS Pack.
adrci>IPS PACK INCIDENT incident_id IN path

You might also like