15:05:48 dbutility reload demodb demodb.cct 15:05:48 DATABridge Client version 6.2.0.000 [OCI/Oracle] 15:05:48 Copyright (C) 2012 by Attachmate Corporation. All rights reserved. 15:05:49 Reloading Control table entries for DataSource DEMODB from file "demodb.cct" 15:05:51 Control tables for DataSource DEMODB reloaded from file "demodb.cct" 15:05:51 Client exit code: 0 – Successful
In this case, the data set CUSTOMER is mapped to a single table named customer. The refresh command executes the following SQL statements:
begin drop_proc('d_customer'); end; begin drop_proc('i_customer'); end; begin drop_proc('u_customer'); end; create procedure u_customer ( ... ) update customer set ... where ... ; end; create procedure i_customer ( ... ) insert into customer ( ... ) values ( ... ); end; create procedure d_customer ( ... ) delete from customer where ... ; end;
This effectively replaces all of the stored procedures with a fresh copy, while leaving the tables unchanged. This command is particularly useful when the index of the tables has changed. For example, if the data set CUSTOMER initially uses AA values as keys, and a DMSII garbage collection occurs, you can avoid recloning this data set if it is mapped to a single table by creating a composite key.
|