Oracle9i Supplied PL/SQL Packages and Types Reference Release 1 (9.0.1) Part Number A89852-02 |
|
DBMS_WM , 40 of 52
This procedure discards all changes made after a specified savepoint in the workspace to all tables.
DBMS_WM.RollbackToSP( workspace IN VARCHAR2, savepoint_name IN VARCHAR2 [, auto_commit IN BOOLEAN DEFAULT TRUE]);
While this procedure is executing, the workspace is frozen in NO_ACCESS
mode.
Contrast this procedure with RollbackWorkspace Procedure, which rolls back all changes made since the creation of the workspace.
You cannot roll back to a savepoint if any implicit savepoints have been created since the specified savepoint, unless you first merge or remove the descendant workspaces that caused the implicit savepoints to be created.
An exception is raised if one or more of the following apply:
workspace
does not exist.
savepoint_name
does not exist.
workspace
after savepoint_name
, and the descendant workspaces that caused the implicit savepoints to be created still exist.
workspace
or any affected table.
workspace
.
The following example rolls back any changes made in the NEWWORKSPACE
workspace to all tables since the creation of Savepoint1
.
EXECUTE DBMS_WM.RollbackToSP ('NEWWORKSPACE', 'Savepoint1');
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|