Skip Headers
Oracle® Retail Predictive Application Server Administration Guide for the Fusion Client
Release 14.1
E59119-01
  Go To Table Of Contents
Contents

Previous
Previous
 
Next
Next
 

14 Commit as Soon as Possible

Commit As Soon As Possible (Commit ASAP) allows users to schedule the commit process for workbook data so that it executes as soon as all the system resources are available. Within the RPAS Fusion Client, the user has a single commit option available that runs a Commit ASAP process. The process to commit a workbook is described in the Oracle Retail Predictive Application Server User Guide for the Fusion Client.

This chapter contains the following sections:


Note:

  • If a user attempts to commit a workbook that already has a process in the queue, the original processes will be removed from the queue. That means that only one commit in the queue can be pending for a given workbook/user/template name combination at any given time.

  • Data within the workbooks can be committed without saving the workbook. When users click Commit, and the workbook has not been saved by then, the RPAS Fusion Client provides an option to Save, Commit, or perform both actions on the workbook.


Managing the Workbook Queue Using showWorkbookQueues

The RPAS utility showWorkbookQueues is used for viewing the status of Commit ASAP processes and for purging entries in the Commit status window.

The purge option requires a date before which entries will be removed, as well as specification for which entries to remove: succeeded, failed, or both.

showWorkbookQueues Usage

showWorkbookQueues -version
showWorkbookQueues -d domainPath -show [all|pending|waiting|working|success|failed]*
showWorkbookQueues -d domainPath -purge date [success | failed]*

Table 14-1 provides descriptions of the arguments used by the showWorkbookQueues utility.

Table 14-1 showWorkbookQueues Utility Arguments

Argument Description

-version

Prints the RPAS version, revision, and build information of the utility.

-d domainPath

Specifies the path to the domain.

-show

Lists the contents of the queue in the order in which the parameter is specified. Possible values: all, pending, waiting, working, success, and failed.

all

Used with the -show parameter. This lists all of the workbooks in all statuses.

pending

Used with the -show parameter. This lists all workbooks that are waiting to be committed.

waiting

For Oracle Retail development use only.

success

Used with the -show parameter. This lists all workbooks that have been successfully committed.

failed

Used with the -show parameter. This lists all workbooks that did not successfully commit.

-purge date

Purges entries in the Commit status window. Entries before the date provided will be removed.

The date should be a string of the following DateTime format: YYYYMMDDHHmm

For example 200406071529 equals June 7, 2004 3:29 PM.

An administrator must select to purge commit processes that either succeeded or failed.


Commit ASAP Settings Using configCommitAsap

There are two settings for Commit ASAP that are managed by an administrator. Both are set using the utility configCommitAsap.

  • Maximum number of simultaneous commit processes (property MaxProcesses, default value is 4).

  • Deadline by which all pending processes must be completed, after which they are cancelled and marked as failed.

Administrators may want to use this deadline before beginning the nightly batch processes (property deadline, default value is 00:01 [meaning 12:01 AM], in 24-hour time).

A commit process that starts before the deadline is reached will be processed. Commit requests that were in the queue before the deadline that did not get processed are cancelled and marked as failed. Commit requests added to the queue after the deadline use the deadline of the following day.

configCommitAsap Usage

configCommitAsap -d pathToDomain [-maxProcs numProcs]
[-deadline time] [-display]

Table 14-2 provides descriptions of the arguments used by the configCommitAsap utility.

Table 14-2 Arguments Used by the configCommitAsap Utility

Argument Description

version

Prints the RPAS version, revision, and build information of the utility.

-maxProcs numProcs

Sets the maximum number of concurrent commit processes, where numProcs is an integer greater than 0.

Workbooks can be committed in parallel if they do not require access to the same measure databases.

If they do share databases, they will be committed sequentially.

-deadline time

Indicates the time of the day when all outstanding commit ASAP operations timeout.

If a commit ASAP operation is submitted after this time, it will not timeout until the deadline time on the next day.

This string must have the following format:

HH:MM

For example, 13:30 refers to 1:30 PM.

-display

Displays the current commit ASAP settings.

-loglevel level

Sets the logger verbosity level. Possible values: all, profile, information, warning, error, or none.

-noheader

Disables timestamp header use.


Logging and Technical Information

A log file is available in the Commit ASAP directory that should be checked if a user reports an error with a Commit submission. The file is named rpasServer.log and is in the following directory: <Path to domain>/commitAsapQueue.

Another log file is generated for each Commit process and stored in a user's directory (users/<userid>/asapLogs). The format of the log file name is orig_<original workbook name>asap_<temporary workbook name>.log. RPAS creates a temporary workbook in this process to capture a snapshot of the data that needs to be committed. Temporary workbooks are never viewed by a user. An administrator can use this log if something does not properly commit.


Note:

These snapshot workbooks cannot be viewed or used in the RPAS clients.

An example of this log file is orig_t1_asap_t5 where "t1" is the name of the original workbook and "t5" is the name of the snapshot workbook.

The following directories are used to store the copies of the workbook as they are processed through the system:

  • Pending directory: Contains one file per submitted Commit that has not yet been processed. These files are, in general, binary and cannot be easily read.

  • Working directory: Contains one file per submitted Commit that is currently in the commit process.

  • Success directory: Contains one file per submitted Commit that has successfully completed its commit process.

  • Failed directory: Contains one file per submitted Commit that either had a failure during its commit process or could not be committed prior to the deadline.

  • Unknown directory: If the Commit process detects a corrupted queue file, a message gets logged and the file gets moved into the unknown directory.