Home > Contents > Index >  
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

ROLLBACK

Reverts a row in a tracked table to a previous revision.

Syntax

Parameters

TABLE (required)
Name of the table containing the row you want to revert to a previous version.

ASSET (required)
Value of the primary key for the row you want to revert to a previous version.

VERSION (optional)
Version to make current. Values for VERSION_NUM are:

Description

The ROLLBACK tag reverts a row in a tracked table to a previous revision. The current user must have the row locked and have rtaudit privileges against the table to roll back the row. A row can be rolled back to its earliest revision, its most recent revision, a specific version number, or whatever revision was current at a specified date.

Error Numbers

The possible values of errno include:

Value
Description
-1000
Command failure. Check the errdetail variable for the specific error.

Example

This example assumes all ROLLBACK parameters are exposed on an HTML form. It first checks whether the parameters exist, clears any values from errno, and then performs a roll back on the row.

   Home > Contents > Index >

Oracle XML Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.