Friday 20 June 2014

SOA 11g - Useful SOA Infra SQL queries for Oracle SOA Production Support - Part I ( List of tables and it states)

Those who handle Oracle SOA support will know how difficult to locate an instance using composite sensors in Enterprise Manager Console. This will eat our time and patience :)

But this can be avoided by using SOA infra tables. 

We all know that the transactions are available in SOA Infra tables across multiple tables and if we leverage it with proper joins, then life of support person will be easy. 

Below mentioned tables are the important ones that will be used to locate the instances.

CUBE_INSTANCE
COMPOSITE_INSTANCE
COMPOSITE_SENSOR_VALUE

Composite Instance :

Below are the important columns in composite instance tables. 

ECID: Unique values for one end to end transactions across several tables.
ID: Instance ID that is visible in Enterprise Manager Console
PARENT_ID: This will be null for initiator composite and child composite will have value of parent composite 
COMPOSITE_DN: Composite name along with partition name
STATE: State of instance like completed, running etc which is explained in details                           
CREATED_TIME: Creation time of an instance

List of states and its description:            


StateDescription
0Running
1Completed
2Running with faults
3Completed with faults
4Running with recovery required
5Completed with recovery required
6Running with faults and recovery required
7Completed with faults and recovery required
8Running with suspended
9Completed with suspended
10Running with faults and suspended
11Completed with faults and suspended
12Running with recovery required and suspended
13Completed with recovery required and suspended
14Running with faults, recovery required, and suspended
15Completed with faults, recovery required, and suspended
16Running with terminated
17Completed with terminated
18Running with faults and terminated
19Completed with faults and terminated
20Running with recovery required and terminated
21Completed with recovery required and terminated
22Running with faults, recovery required, and terminated
23Completed with faults, recovery required, and terminated
24Running with suspended and terminated
25Completed with suspended and terminated
26Running with faulted, suspended, and terminated
27Completed with faulted, suspended, and terminated
28Running with recovery required, suspended, and terminated
29Completed with recovery required, suspended, and terminated
30Running with faulted, recovery required, suspended, and terminated
31Completed with faulted, recovery required, suspended, and terminated
32Unknown
64-


Any value in the range of 32 to 63 indicates that the composite instance state has not been enabled, but the instance state is updated for faults, aborts, etc.

Cube Instance:

CIKEY: Unique value for a instance  
CREATION_DATE: Creation date           
STATE: State of Instance                   
STATUS: Status of Instance        
ECID: Unique hexa decimal id for end to end transaction  
CMPST_ID: Instance ID that is visible in Enterprise Manager console or Value of ID column in Composite Instance table  
COMPOSITE_NAME: Name of composite  
DOMAIN_NAME: Partition Name  
COMPONENT_NAME: Name of component       
COMPOSITE_REVISION: Revision Number of composites   


CUBE_INSTANCE States
StateDescription
0STATE_INITIATED
1STATE_OPEN_RUNNING
2STATE_OPEN_SUSPENDED
3STATE_OPEN_FAULTED
4STATE_CLOSED_PENDING_CANCEL
5STATE_CLOSED_COMPLETED
6STATE_CLOSED_FAULTED
7STATE_CLOSED_CANCELLED
8STATE_CLOSED_ABORTED
9STATE_CLOSED_STALE
10STATE_CLOSED_ROLLED_BACK


Composite Sensor Values:

COMPOSITE_INSTANCE_ID: Instance ID that is visible in EM console or Value of ID in composite_instance table
COMPONENT_NAME: Name of the component          
SENSOR_NAME: Name of the sensors                    
CPST_PARTITION_DATE: Creation date 
STRING_VALUE: Sensor value in String datatype        
NUMBER_VALUE: Sensor value in Number datatype         
DATE_VALUE: Sensor value in Date datatype           
CLOB_VALUE: Sensor value in Clob datatype           
BLOB_VALUE: Sensor value in Blob datatype           

In following post, we shall see different queries that we use day by day for support purpose. 

No comments:

Post a Comment