Activate a single index
- Last Updated: January 16, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
Indexes that are added to your database while it is online are inactive until you specifically initiate activation with PROUTIL IDXACTIVATE. When you run IDXACTIVATE you provide the name of one inactive index on the command line. The general syntax is as follows:
|
For details of the command, see PROUTIL IDXACTIVATE qualifier.
- In this release of OpenEdge and higher, if you have enabled Database
Client Notification (
-usernotifytime), IDXACTIVATE will wait until all the connected users respond to the notification, and then proceed with the activation. - In releases prior to this release, or if Database Client Notification
(
-usernotifytime) is off (set to zero), you are given the option of waiting or canceling the index activation. If you chose to wait, you must wait until all the users with an earlier schema timestamp disconnect, or SQL clients start a new transaction, or you can use PROSHUT to forcibly remove the connections. You control the update of the status display of blocking users with therefreshoption. The number supplied torefreshindicates the number of seconds between displays of blocking users.
When IDXACTIVATE activates and builds the index, it bundles records into
transactions. By default, 100 records are bundled into one transaction.
You can alter that number with the recs option.
The number you specify for the recs option is the
number of records to bundle into one transaction.
The following output shows the output of IDXACTIVATE, without Database Client Notification enabled. In this example the index tst_table.inact3 is activated for the database doc_db; no optional parameters are specified so default values are used. The cycle of waiting for users to disconnect executes twice before all the users with old timestamps are disconnected and the index is activated, as shown:
|
Once the IDXACTIVATE command completes, the index is active and all users can access it.