Monday, June 30, 2014

PnYnMnDTnHnMnS DateTime Format

Specifying a duration:
Time durations are specified in the format:
PnYnMnDTnHnMnS
where,
P - is a required character that represents period, the duration designator. All duration expressions always start with a P
Y - is the year designator. For example, to indicate 19 years, you'd use19Y
M - is the month designator. For example, to indicate 10 years, you'd use10M
D - is the days designator. For example, to indicate 28 days, you'd use 28D
T - is an optional character that indicates the start of the time duration
H - is the hour designator. For example, to indicate 10 hours, you'd use10H
M - is the minute designator. For example, to indicate 37 minutes, you'd use 37M
S - is the seconds designator. For example, to indicate 46 seconds, you'd use 46S

duration samples:
So to specify a duration of 19 years, 10 months, 28 days, 10 hours, 37 minutes, and 46 seconds, the duration expression would look like P19Y10M28DT10H37M46S. If you want to use it in a BPEL <wait> activity, it would read:
<wait for="'P19Y10M28DT10H37M46S'"/>
which means wait for a duration of 19 years, 10 months, 28 days, 10 hours, 37 minutes, and 46 seconds.

Similarly, to specify a duration of 1 year, 2 months, and 3 days, the duration expression would look like P1Y2M3D. If you want to use it in a BPEL <wait> activity, it would read:
<wait for="'P1Y2M3D'"/>
which means wait for a duration of 1 year, 2 months, and 3 days.

Similarly, to specify a duration of 1 hour, and 2 minutes, the duration expression would look like PT1H2M. If you want to use it in a BPEL <wait> activity, it would read:
<wait for="'PT1H2M'"/>
which means wait for a duration of 1 hour, and 2 minutes.

Specifying date and time:
Specific date and time references have the form:
CCYY-MM-DDThh:mm:ss
where,
CC - is the century designator, specified as 2 or more digits. Valid range from 00 to ...
YY - is the year designator, specified as 2 digits. Valid range from 00 to 99.
MM - is the month designator, specified as 2 digits. Valid range from 01 to 12.
DD - is the day designator, specified as 2 digits. Valid range from 01 to 31.
T - indicates the start of the time designator.
hh - is the hour designator, specified as 2 digits. Valid range from 00 to 23.
mm - is the minute designator, specified as 2 digits. Valid range from 00 to 59.
ss - is the seconds designator, specified as 2 digits with an optional decimal value allowed of the form ss.ssss to increase precision. Valid range from 00 to 59.
z - is the optional Coordinated Universal Time (UTC). If present, it should immediately follow the time element. To specify an offset from the UTC time, append a positive(+) or negative(-) time to the datetime value of the form hh:mm.

datetime samples:
So, to specify 10:28:19am, 28th October 2008, the datetime expression would look like 2008-10-28T10:28:19. If you want to use it in a BPEL <wait> activity, it would read:
<wait until="'2008-10-28T10:28:19'"/>
which means wait until the deadline 10:28:19am, 28th October 2008.

Similarly, to specify 07:30:00pm, the datetime expression would look like 19:30:00. If you want to use it in a BPEL<wait> activity, it would read:
<wait until="'19:30:00'"/>
which means wait until the deadline 07:30:00pm.

UTC datetime samples:
Similarly, to specify 10:28:19am in UTC, the datetime expression would look like 10:28:19z. If you want to use it in a BPEL <wait> activity, it would read:
<wait until="'10:28:19z'"/>
which means wait until the deadline 10:28:19am, in UTC.

Similarly, if the UTC time was 6:30:19pm 28th October 2008, to specify 10:30:19am, 28th October 2008 California time (Pacific Standard Time which is UTC-08:00), the datetime expression would look like 2008-10-28T18:30:19-08:00. If you want to use it in a BPEL <wait> activity, it would read:
<wait until="'2008-10-28T18:30:19-08:00'"/>
which means wait until the deadline 10:30:19am, 28th October 2008 California time(Pacific Standard Time).

Similarly, if the UTC time was 10:00:19am 28th October 2008,  to specify 03:30:19pm, 28th October 2008 Indian Standard time (which is UTC+05:30), the datetime expression would look like 2008-10-28T10:00:19+05:30. If you want to use it in a BPEL <wait> activity, it would read:
<wait until="'2008-10-28T10:00:19+05:30'"/>
which means wait until the deadline 03:30:19pm, 28th October 2008 Indian standard time.

Saturday, June 8, 2013

Timeout setting in SOA 11g for tuning BPELs

Configure Transaction Timeout or Tune Up BPEL SOA 11g for rolled back error or Timed out Exception

Problem:
During runtime you may be seeing errors in the log similar to the following:
The transaction was rolled back
 and / or
<faultstring>java.lang.IllegalStateException: Cannot call setRollbackOnly() current thread is NOT associated with a transaction</faultstring>
 and / or
Transaction Rolledback.: weblogic.transaction.internal.TimedOutException: Transaction timed out
The solution is typically to increase the transaction timeout for the process.

Solution:
 
As a general rule, you should keep the following relation between the timeout parameters: 
syncMaxWaitTime < BPEL EJB's transaction timeout < Global Transaction Timeout(JTA) 
Few recommendations are, 
900<1800<2400 - For Medium load
900<3200<3600 - For Large load
sometimes depending on your requirement/load you might need to go for higher values. 

1. Setting syncMaxWaitTime: 
This property controls the maximum time the process result receiver will wait for a result before returning for Sync processes.
 For SOA 11g R1 PS1 (11.1.1.1.0 to 11.1.1.5):
 * Login into EM
* Expand SOA and right click on "soa-infra" and select: SOA Administration -> BPEL Properties
* Click on "More BPEL Configuration Properties..." link
* Locate syncMaxWaitTime and change it. 

2. Setting the transaction timeout for BPEL EJBs: 
The timeout properties for the EJBs control the particular timeout setting for the SOA application, overriding the global setting specified by the JTA timeout.
* Log into Oracle WebLogic Administration Console.
* Click Deployments.
* Expand soa-infra -> EJBs.
* Following EJBs need to be updated: 
BPELActivityManagerBean
BPELDeliveryBean
BPELDispatcherBean
BPELEngineBean
BPELFinderBean
BPELInstanceManagerBean
BPELProcessManagerBean
BPELSensorValuesBean
BPELServerManagerBean
 
* You can change the parameter in the Configuration tab for the Transaction Timeout setting.
* Click Save.
* Save the Plan.xml to some known location - Ensure no other file is named Plan.xml.
* Update soa-infra deployment.
* Start SOA Managed Server. 

3. Setting the global transaction timeout at Weblogic Domain Level: 
This property controls the transaction timeout seconds for active transactions. If the transaction is still in the "active" state after this time, it is automatically rolled back.
* Log into Oracle WebLogic Administration Console.
* Click Services -> JTA.
* Change the value of Timeout Seconds (the default is 30).
* Click Save.
* Restart Oracle WebLogic Server.

Saturday, January 26, 2013

Configuring Node Manager and Starting SOA server from Admin Console


Configuring NodeManager and Starting soa server from admin console:

1. Log into C:\Oracle\Middleware\wlserver_10.3\server\bin and run installNodeMgrSvc.cmd from command prompt. If it says 'access is denied', then right click on installNaodeMgrSvc.cmd and say 'Run as Administrator'.
2. From command prompt say, 'startNodeManager.cmd'. This will start the nodemanager.
3. If there is an exception as below when starting node manger

                <Jan 26, 2013 2:58:57 PM> <INFO> <Saving node manager configuration properties to 'C:\Oracle\MIDDLE~1\WLSERV~1.3\common\NODEMA~1\nodemanager.properties'>
<Jan 26, 2013 2:58:57 PM> <SEVERE> <Fatal error in node manager server>
java.lang.NullPointerException
                at java.util.Hashtable.containsKey(Hashtable.java:307)
                at weblogic.nodemanager.server.NMServerConfig.initNetworkInfoList(NMServerConfig.java:491)
                at weblogic.nodemanager.server.NMServerConfig.getNetworkInfoList(NMServerConfig.java:481)
                at weblogic.nodemanager.server.NMServerConfig.getConfigProperties(NMServerConfig.java:545)
                at weblogic.nodemanager.server.NMServer.<init>(NMServer.java:154)
                at weblogic.nodemanager.server.NMServer.main(NMServer.java:375)
                at weblogic.NodeManager.main(NodeManager.java:31)

then, apply patch p12564602_1035_Generic on WLS_10.3.5 using smart update. Check if this patch is already applied. Bug Number: 12564602

3. After applying the patch repeat steps 1 and 2.
4. If there is an exception like 'java.net.BindException: Address already in use: JVM_Bind', then update nodemanager.properties in the path C:\Oracle\Middleware\wlserver_10.3\common\nodemanager. Update the below values

ListenAddress=localhost
ListenPort=5557
SecureListener=false
AuthenticationEnabled=false

Restart the node manager.
Then on the weblogic console for your Machine\Node Manager\Configuration set the following:

Type: Plain
Listen Address: localhost
Listen Port: 5557

5. Start SOA server from weblogic console.

Wednesday, October 17, 2012

DB Adapter - MaxRaiseSize, MaxTransactionSize, RowsPerPollingInterval

Database rows per XML document - MaxRaiseSize
On read (inbound) you can set maxRaiseSize = 0 (unbounded), meaning that if you read 1000 rows, you will create one XML with 1000 elements, which is passed through a single Oracle BPEL Process Manager instance. A merge on the outbound side can then take all 1000 in one group and write them all at once with batch writing
Database rows per Transactions - MaxTransactionSize
Assume that there are 10,000 rows at the start of a polling interval and that maxTransactionSize is 100. In standalone mode, a cursor is used to iteratively read and process 100 rows at a time until all 10,000 have been processed, dividing the work into 10,000 / 100 = 100 sequential transactional units. In a distributed environment, a cursor is also used to read and process the first 100 rows. However, the adapter instance will release the cursor, leaving 9,900 unprocessed rows (or 99 transactional units) for the next polling interval or another adapter instance. For load balancing purposes, it is dangerous to set the maxTransactionSize too low in a distributed environment (where it becomes a speed limit). It is best to set the maxTransactionSize close to the per CPU throughput of the entire business process. This way, load balancing occurs only when you need it
Throttling - RowsPerPollingInterval 
DB throttling is the mechanism to control the number of database records processed by the SOA engine in a particular interval through DB Adapter. Throttling also can be used to control the number of records send to the end systems. If the throttling is not defined, the end systems may flood with number of messages that will affect the functioning of the end systems. Throttling parameters should be configured based on the end systems capacity to process the incoming messages. As of Oracle Adapters release 11.1.1.6.0 we can set the inbound DBAdapter property RowsPerPollingInterval to control the throttling. It acts as a limit on the number of records which can be processed in one polling interval. The default value is unlimited. The Patch 12881289 should be applied to enable this for SOA 11.1.1.5.0 and earlier versions. The maximum rows processed per second are: Number of active nodes in SOA cluster x NumberOfThreads x RowsPerPollingInterval / PollingInterval.
MaxTransactionSize can be thought of as RowsPerDatabaseTransaction or DatabaseFetchSize that is how many records will be fetched to DB Adapter engine from the database for each transaction. It does not affect how many rows can be processed in one polling interval period.

Friday, October 12, 2012

xp20:format-dateTime() formats

xp20:format-dateTime() formats:

http://www.sugihartono.com/programming/bpel-format-date-time-reference-and-example/

xp20:format-dateTime(xp20:current-dateTime(),'[D01]/[M01]/[Y0001]')
Will produce: 07/05/2012

Format Date Time: Year
Example               Expression
2012       [Y0001]
2012       [Y]
12           [Y01]
Two Thousand and Twelve          [YWw]

Format Date Time: Month
Example               Expression
08           [M01]
8              [M]
VIII         [MI]
August  [MNn]
AUGUST              [MN]
Aug        [MNn,*-3]
AUG      [MN,*-3]

Format Date Time: Day
Example               Expression
05           [D01]
5              [D]
5              [D1]
31st        [D1o]

Format Date Time: Day Name
Example               Expression
Tuesday               [FNn]

Format Date Time: Hour
Example               Expression
3              [h]
9              [H]
08           [H01]

Format Date Time: Minute
Example               Expression
03           [m01]
3              [m]

Format Date Time: Second
Example               Expression
09           [s01]
9              [s]

Format Date Time: Millisecond
Example               Expression
257         [f001]

Format Date Time: AM/PM
Example               Expression
PM         [PN]
Am         [Pn]

Format Date Time: GMT 
Example               Expression
GMT+02:00         [z]

Tuesday, July 3, 2012

Manual Purging of DEV_SOAINFRA in Oracle SOA SUITE 11g


Merciless Purging of SOAINFRA schema in Oracle SOA Suite 11g:


-- Start of Purge Script
----------------------------------
-- Purge the MEDIATOR data
----------------------------------
delete from mediator_case_instance;
delete from mediator_audit_document;
delete from mediator_callback;
delete from mediator_group_status;
delete from mediator_payload;
delete from mediator_deferred_message;
delete from mediator_resequencer_message;
delete from mediator_case_detail;
delete from mediator_correlation;
delete from mediator_instance;
commit;

----------------------------
-- Purge the BPEL data
----------------------------
delete from headers_properties;
delete from ag_instance;
delete from audit_counter;
delete from audit_trail;
delete from audit_details;
delete from ci_indexes;
delete from work_item;
delete from wi_fault;
delete from xml_document_ref;
delete from xml_document;
delete from document_dlv_msg_ref;
delete from document_ci_ref;
delete from dlv_subscription;
delete from dlv_message;
delete from rejected_msg_native_payload;
delete from instance_payload;
delete from test_details;
delete from cube_scope;
delete from cube_instance;
commit;

---------------------------
-- Purge the BPM data
---------------------------
delete from bpm_audit_query;
delete from bpm_measurement_actions;
delete from bpm_measurement_action_exceps;
delete from bpm_cube_auditinstance;
delete from bpm_cube_taskperformance;
delete from bpm_cube_processperformance;
commit;

------------------------------------
-- Purge the WORKFLOW data
-- ---------------------------------
delete from wftask_tl;
delete from wftaskhistory;
delete from wftaskhistory_tl;
delete from wfcomments;
delete from wfmessageattribute;
delete from wfattachment;
delete from wfassignee;
delete from wfreviewer;
delete from wfcollectiontarget;
delete from wfroutingslip;
delete from wfnotification;
delete from wftasktimer;
delete from wftaskerror;
delete from wfheaderprops;
delete from wfevidence;
delete from wftaskassignmentstatistic;
delete from wftaskaggregation;
delete from wftask;
commit;

------------------------------------
-- Purge the COMPOSITE data
------------------------------------
delete from composite_sensor_value;
delete from composite_instance_assoc;
delete from attachment;
delete from attachment_ref;
delete from composite_instance_fault;
delete from reference_instance;
delete from component_instance;
delete from composite_instance;

commit;

------------------------
-- Reclaim disk space
------------------------
alter table mediator_case_instance enable row movement;
alter table mediator_case_instance shrink space;
alter table mediator_case_instance disable row movement;
alter table mediator_audit_document enable row movement;
alter table mediator_audit_document shrink space;
alter table mediator_audit_document disable row movement;
alter table mediator_callback enable row movement;
alter table mediator_callback shrink space;
alter table mediator_callback disable row movement;
alter table mediator_group_status enable row movement;
alter table mediator_group_status shrink space;
alter table mediator_group_status disable row movement;
alter table mediator_payload enable row movement;
alter table mediator_payload shrink space;
alter table mediator_payload disable row movement;
alter table mediator_deferred_message enable row movement;
alter table mediator_deferred_message shrink space;
alter table mediator_deferred_message disable row movement;
alter table mediator_resequencer_message enable row movement;
alter table mediator_resequencer_message shrink space;
alter table mediator_resequencer_message disable row movement;
alter table mediator_case_detail enable row movement;
alter table mediator_case_detail shrink space;
alter table mediator_case_detail disable row movement;
alter table mediator_correlation enable row movement;
alter table mediator_correlation shrink space;
alter table mediator_correlation disable row movement;
alter table mediator_instance enable row movement;
alter table mediator_instance shrink space;
alter table mediator_instance disable row movement;
alter table headers_properties enable row movement;
alter table headers_properties shrink space;
alter table headers_properties disable row movement;
alter table ag_instance enable row movement;
alter table ag_instance shrink space;
alter table ag_instance disable row movement;
alter table audit_counter enable row movement;
alter table audit_counter shrink space;
alter table audit_counter disable row movement;
alter table audit_trail enable row movement;
alter table audit_trail shrink space;
alter table audit_trail disable row movement;
alter table audit_details enable row movement;
alter table audit_details shrink space;
alter table audit_details disable row movement;
alter table ci_indexes enable row movement;
alter table ci_indexes shrink space;
alter table ci_indexes disable row movement;
alter table work_item enable row movement;
alter table work_item shrink space;
alter table work_item disable row movement;
alter table wi_fault enable row movement;
alter table wi_fault shrink space;
alter table wi_fault disable row movement;
alter table xml_document_ref enable row movement;
alter table xml_document_ref shrink space;
alter table xml_document_ref disable row movement;
alter table document_dlv_msg_ref enable row movement;
alter table document_dlv_msg_ref shrink space;
alter table document_dlv_msg_ref disable row movement;
alter table document_ci_ref enable row movement;
alter table document_ci_ref shrink space;
alter table document_ci_ref disable row movement;
alter table dlv_subscription enable row movement;
alter table dlv_subscription shrink space;
alter table dlv_subscription disable row movement;
alter table dlv_message enable row movement;
alter table dlv_message shrink space;
alter table dlv_message disable row movement;
alter table rejected_msg_native_payload enable row movement;
alter table rejected_msg_native_payload shrink space;
alter table rejected_msg_native_payload disable row movement;
alter table instance_payload enable row movement;
alter table instance_payload shrink space;
alter table instance_payload disable row movement;
alter table test_details enable row movement;
alter table test_details shrink space;
alter table test_details disable row movement;
alter table cube_scope enable row movement;
alter table cube_scope shrink space;
alter table cube_scope disable row movement;
alter table cube_instance enable row movement;
alter table cube_instance shrink space;
alter table cube_instance disable row movement;
alter table bpm_audit_query enable row movement;
alter table bpm_audit_query shrink space;
alter table bpm_audit_query disable row movement;
alter table bpm_measurement_actions enable row movement;
alter table bpm_measurement_actions shrink space;
alter table bpm_measurement_actions disable row movement;
alter table bpm_measurement_action_exceps enable row movement;
alter table bpm_measurement_action_exceps shrink space;
alter table bpm_measurement_action_exceps disable row movement;
alter table bpm_cube_auditinstance enable row movement;
alter table bpm_cube_auditinstance shrink space;
alter table bpm_cube_auditinstance disable row movement;
alter table bpm_cube_taskperformance enable row movement;
alter table bpm_cube_taskperformance shrink space;
alter table bpm_cube_taskperformance disable row movement;
alter table bpm_cube_processperformance enable row movement;
alter table bpm_cube_processperformance shrink space;
alter table bpm_cube_processperformance disable row movement;
alter table wftask_tl enable row movement;
alter table wftask_tl shrink space;
alter table wftask_tl disable row movement;
alter table wftaskhistory enable row movement;
alter table wftaskhistory shrink space;
alter table wftaskhistory disable row movement;
alter table wftaskhistory_tl enable row movement;
alter table wftaskhistory_tl shrink space;
alter table wftaskhistory_tl disable row movement;
alter table wfcomments enable row movement;
alter table wfcomments shrink space;
alter table wfcomments disable row movement;
alter table wfmessageattribute enable row movement;
alter table wfmessageattribute shrink space;
alter table wfmessageattribute disable row movement;
alter table wfattachment enable row movement;
alter table wfattachment shrink space;
alter table wfattachment disable row movement;
alter table wfassignee enable row movement;
alter table wfassignee shrink space;
alter table wfassignee disable row movement;
alter table wfreviewer enable row movement;
alter table wfreviewer shrink space;
alter table wfreviewer disable row movement;
alter table wfcollectiontarget enable row movement;
alter table wfcollectiontarget shrink space;
alter table wfcollectiontarget disable row movement;
alter table wfroutingslip enable row movement;
alter table wfroutingslip shrink space;
alter table wfroutingslip disable row movement;
alter table wfnotification enable row movement;
alter table wfnotification shrink space;
alter table wfnotification disable row movement;
alter table wftasktimer enable row movement;
alter table wftasktimer shrink space;
alter table wftasktimer disable row movement;
alter table wftaskerror enable row movement;
alter table wftaskerror shrink space;
alter table wftaskerror disable row movement;
alter table wfheaderprops enable row movement;
alter table wfheaderprops shrink space;
alter table wfheaderprops disable row movement;
alter table wfevidence enable row movement;
alter table wfevidence shrink space;
alter table wfevidence disable row movement;
DROP INDEX WFTASKASSIGNMENTSTATISTICID_I;
DROP INDEX WFTASKASSTARTENDDATE_I;
DROP INDEX WFTASKASASSIGNEETYPE_I;
alter table wftaskassignmentstatistic enable row movement;
alter table wftaskassignmentstatistic shrink space;
alter table wftaskassignmentstatistic disable row movement;
CREATE INDEX "DEV_SOAINFRA"."WFTASKASSIGNMENTSTATISTICID_I" ON "DEV_SOAINFRA"."WFTASKASSIGNMENTSTATISTIC" ("TASKID") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."WFTASKASSTARTENDDATE_I" ON "DEV_SOAINFRA"."WFTASKASSIGNMENTSTATISTIC" ("STARTDATE", "ENDDATE") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."WFTASKASASSIGNEETYPE_I" ON "DEV_SOAINFRA"."WFTASKASSIGNMENTSTATISTIC" (LOWER("ASSIGNEE"), "ASSIGNEETYPE") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
alter table wftaskaggregation enable row movement;
alter table wftaskaggregation shrink space;
alter table wftaskaggregation disable row movement;
alter table wftask enable row movement;
alter table wftask shrink space;
alter table wftask disable row movement;
alter table composite_sensor_value enable row movement;
alter table composite_sensor_value shrink space;
alter table composite_sensor_value disable row movement;
alter table composite_instance_assoc enable row movement;
alter table composite_instance_assoc shrink space;
alter table composite_instance_assoc disable row movement;
alter table attachment enable row movement;
alter table attachment shrink space;
alter table attachment disable row movement;
alter table attachment_ref enable row movement;
alter table attachment_ref shrink space;
alter table attachment_ref disable row movement;
DROP INDEX COMPOSITE_INSTANCE_FAULT_CIDN;
DROP INDEX COMPOSITE_INSTANCE_FAULT_CT_EC;
DROP INDEX COMPOSITE_INSTANCE_FAULT_EC_CT;
DROP INDEX COMPOSITE_INSTANCE_FAULT_ECID;
alter table composite_instance_fault enable row movement;
alter table composite_instance_fault shrink space;
alter table composite_instance_fault disable row movement;
CREATE INDEX "DEV_SOAINFRA"."COMPOSITE_INSTANCE_FAULT_CIDN" ON "DEV_SOAINFRA"."COMPOSITE_INSTANCE_FAULT" ("COMPOSITE_DN", "ERROR_CATEGORY") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."COMPOSITE_INSTANCE_FAULT_CT_EC" ON "DEV_SOAINFRA"."COMPOSITE_INSTANCE_FAULT" ("CREATED_TIME" DESC, "ERROR_CATEGORY") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."COMPOSITE_INSTANCE_FAULT_EC_CT" ON "DEV_SOAINFRA"."COMPOSITE_INSTANCE_FAULT" ("ERROR_CATEGORY", "CREATED_TIME" DESC) PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."COMPOSITE_INSTANCE_FAULT_ECID" ON "DEV_SOAINFRA"."COMPOSITE_INSTANCE_FAULT" ("ECID") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
DROP INDEX REFERENCE_INSTANCE_CDN_STATE;
DROP INDEX REFERENCE_INSTANCE_CO_ID;
DROP INDEX REFERENCE_INSTANCE_ECID;
DROP INDEX REFERENCE_INSTANCE_ID;
DROP INDEX REFERENCE_INSTANCE_STATE;
DROP INDEX REFERENCE_INSTANCE_TIME_CDN;
alter table reference_instance enable row movement;
alter table reference_instance shrink space;
alter table reference_instance disable row movement;
CREATE INDEX "DEV_SOAINFRA"."REFERENCE_INSTANCE_CDN_STATE" ON "DEV_SOAINFRA"."REFERENCE_INSTANCE" ("COMPOSITE_DN", "STATE") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."REFERENCE_INSTANCE_CO_ID" ON "DEV_SOAINFRA"."REFERENCE_INSTANCE" ("PROTOCOL_CORRELATION_ID") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."REFERENCE_INSTANCE_ECID" ON "DEV_SOAINFRA"."REFERENCE_INSTANCE" ("ECID") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."REFERENCE_INSTANCE_ID" ON "DEV_SOAINFRA"."REFERENCE_INSTANCE" ("ID") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."REFERENCE_INSTANCE_STATE" ON "DEV_SOAINFRA"."REFERENCE_INSTANCE" ("STATE") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."REFERENCE_INSTANCE_TIME_CDN" ON "DEV_SOAINFRA"."REFERENCE_INSTANCE" ("CREATED_TIME" DESC, "COMPOSITE_DN", "STATE") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
alter table component_instance enable row movement;
alter table component_instance shrink space;
alter table component_instance disable row movement;
DROP INDEX COMPOSITE_INSTANCE_CIDN;
DROP INDEX COMPOSITE_INSTANCE_CO_ID;
DROP INDEX COMPOSITE_INSTANCE_CREATED;
DROP INDEX COMPOSITE_INSTANCE_ECID;
DROP INDEX COMPOSITE_INSTANCE_ID;
DROP INDEX COMPOSITE_INSTANCE_STATE;
alter table composite_instance enable row movement;
alter table composite_instance shrink space;
alter table composite_instance disable row movement;
CREATE INDEX "DEV_SOAINFRA"."COMPOSITE_INSTANCE_CIDN" ON "DEV_SOAINFRA"."COMPOSITE_INSTANCE" ("COMPOSITE_DN", "STATE") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."COMPOSITE_INSTANCE_CO_ID" ON "DEV_SOAINFRA"."COMPOSITE_INSTANCE" ("CONVERSATION_ID") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."COMPOSITE_INSTANCE_CREATED" ON "DEV_SOAINFRA"."COMPOSITE_INSTANCE" ("CREATED_TIME" DESC, "COMPOSITE_DN") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."COMPOSITE_INSTANCE_ECID" ON "DEV_SOAINFRA"."COMPOSITE_INSTANCE" ("ECID") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."COMPOSITE_INSTANCE_ID" ON "DEV_SOAINFRA"."COMPOSITE_INSTANCE" ("ID") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
CREATE INDEX "DEV_SOAINFRA"."COMPOSITE_INSTANCE_STATE" ON "DEV_SOAINFRA"."COMPOSITE_INSTANCE" ("STATE") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "DEV_SOAINFRA";
alter table audit_details modify lob (bin) (shrink space);
alter table composite_instance_fault modify lob (error_message) (shrink space);
alter table composite_instance_fault modify lob (stack_trace) (shrink space);
alter table cube_scope modify lob (scope_bin) (shrink space);
alter table reference_instance modify lob (error_message) (shrink space);
alter table reference_instance modify lob (stack_trace) (shrink space);
alter table test_definitions modify lob (definition) (shrink space);
alter table wi_fault modify lob (message) (shrink space);
alter table xml_document modify lob (document) (shrink space);

-- The below statements cannot run on Oracle XE


alter index ad_pk rebuild online;
alter index at_pk rebuild online;
alter index ci_creation_date rebuild online;
alter index ci_custom3 rebuild online;
alter index ci_ecid rebuild online;
alter index ci_name_rev_state rebuild online;
alter index ci_pk rebuild online;
alter index composite_instance_cidn rebuild online;
alter index composite_instance_co_id rebuild online;
alter index composite_instance_created rebuild online;
alter index composite_instance_ecid rebuild online;
alter index composite_instance_id rebuild online;
alter index composite_instance_state rebuild online;
alter index cs_pk rebuild online;
alter index dm_conversation rebuild online;
alter index dm_pk rebuild online;
alter index doc_dlv_msg_guid_index rebuild online;
alter index doc_store_pk rebuild online;
alter index ds_conversation rebuild online;
alter index ds_conv_state rebuild online;
alter index ds_fk rebuild online;
alter index ds_pk rebuild online;
alter index header_properties_pk rebuild online;
alter index instance_payload_key rebuild online;
alter index reference_instance_cdn_state rebuild online;
alter index reference_instance_co_id rebuild online;
alter index reference_instance_ecid rebuild online;
alter index reference_instance_id rebuild online;
alter index reference_instance_state rebuild online;
alter index reference_instance_time_cdn rebuild online;
alter index state_type_date rebuild online;
alter index wf_crdate_cikey rebuild online;
alter index wf_crdate_type rebuild online;
alter index wf_fk2 rebuild online;
alter index wifault_pk rebuild online;
alter index wi_expired rebuild online;
alter index wi_key_crdate_state rebuild online;
alter index wi_pk rebuild online;
alter index wi_stranded rebuild online;
alter index xml_doc_reference_pk rebuild online;
commit;

--- End of Purge script

SQL Query for VERSIONs and OPTIONs


SQL Query that gives the versions of Oracle s/w:

select * from v$version;

SQL Query that gives the available options within Oracle s/w:

select * from v$option;