IMPAX 6.5.1 Server Knowledge Base home > Oracle Server home

Scheduling database index rebuilds

Important!

Important!

Perform this task only if using Oracle Enterprise Edition. Online indexing is not supported in Oracle Standard Edition.

We recommend that you add a task to the crontab file (AS3000) or Scheduled Tasks (AS300) for rebuilding Oracle database indexes weekly.

To schedule database index rebuilds on AS3000 servers

  1. Log into the AS3000 Database Server as user oracle.

  2. To open the crontab file for editing, type:

    crontab -e

  3. Go to the end of the file and add a line similar using the following syntax:

    mm hh * * day /usr/mvf/bin/index_rebuild

    • mm—specifies what minute to start the script

    • hh—specifies what hour to start the script, in 24 hour clock format

    • day—specifies what day of the week run the script, where 0=Sunday, 1=Monday, ..., 6=Saturday

    For example, to run index_rebuild every Friday night starting at 11:15 pm, enter the following line:

    15 23 * * 5 /usr/mvf/bin/index_rebuild

  4. Save the crontab file and exit.

To schedule database index rebuilds on AS300 servers

  1. Open Control Panel.

  2. Select Scheduled Tasks.

  3. Click Add Scheduled Task.

  4. In the Scheduled Task wizard, click Next.

  5. Click Browse and select C:\mvf\bin\index_rebuild, then click Next.

  6. Type a name for the task and select Weekly. Click Next.

  7. Select the appropriate start time and day of the week. Click Next.

  8. To confirm, click Finish.

  9. Right-click the newly created scheduled task and select Properties.

  10. Change the Run line to

    c:\cygwin\bin\bash.exe -c 'export ORACLE_HOME=C:/oracle/product/10.2.0/db_1; c:/mvf/bin/index_rebuild'


See also


Topic number: 8887

Applies to: IMPAX 6.5.1 Server Knowledge Base