NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
C-51
COMMIT WORK Statement
beginning. (The output in the example indicates that the operation terminates without
error.)
>>ALTER TABLE $HR.PERSONEL.EMP MOVE TO $HDQ.PERSONEL.EMP
+> WITH SHARED ACCESS COMMIT BY REQUEST;
*** WARNING from SQL [1618]: The ALTER_TABLE statement
is ready to commit.
*** WARNING from SQL [1619]: To continue processing, please
enter a commit or rollback with a CONTINUE command.
D>
. The user can respond immediately or enter
. other commands first. (See
. CONTINUE Statement on page C-65
. for restrictions on other commands.)
D>CONTINUE ALTER_TABLE COMMIT AFTER 02:00
+> TIMEOUT NEVER
+> ONCOMMITERROR COMMIT BY REQUEST;
.
. Time passes until after 2:00 am,
. when SQL confirms the operation.
--- SQL operation complete.
>>
Notice that SQLCI prompts with “D>” (the dedicated-operation-in-progress
prompt), rather than the usual “>>”, while the ALTER TABLE operation executes in
the background, then resumes the normal prompt after the operation finishes.
COMMIT WORK Statement
COMMIT WORK is a transaction control statement that ends a TMF transaction and
commits any changes to audited objects made during the transaction. COMMIT WORK
releases locks on audited and (unless you specify the AUDITONLY option) nonaudited
objects.
COMMIT WORK [ AUDITONLY ]