Example
This example tidies up the instances of a procedure called HIRING. The procedure’s id is 1317. The procedure is defined on a machine whose machine id is 1:
swadm tidy_instances 1 1317
This means that if the PROC_VER_NUM_INSTANCES
value is set to 3 and the procedure called HIRING has the following versions and instances:
Version |
instance_id |
0.0 |
1 |
0.0 |
2 |
0.0 |
3 |
0.0 |
4 |
0.1 |
5 |
0.1 |
6 |
0.1 |
7 |
0.2 |
8 |
then the following instances will be removed (displayed in red) after the swadm tidy_instances command has been run:
Version |
instance_id |
0.0 |
1 |
0.0 |
2 |
0.0 |
3 |
0.0 |
4 |
0.1 |
5 |
0.1 |
6 |
0.1 |
7 |
0.2 |
8 |
Note that:
• | The PROC_VER_NUM_INSTANCES attribute relates to all old instances of a procedure. Each procedure instance is allocated an instance identifier. Each time a new instance is created the instance identifier is incremented by one. |
• | If you were to perform a further edit on version 0.2 of the procedure HIRING then this would result in the following instance being removed (displayed in red): |
Version |
instance_id |
0.0 |
3 |
0.0 |
4 |
0.1 |
5 |
0.1 |
6 |
0.1 |
7 |
0.2 |
8 |
0.2 |
9 |