Backing up and restoring indexes
Use the following steps to back up enabled databases and text indexes created
by DB2 Net Search Extender:
- To find out which indexes DB2 Net Search Extender has created and where they are stored,
call a select statement on the db2ext.textindexes view:
db2 "select indschema, indname, indexdirectory from db2ext.textindexes"
- Ensure that no index update is running, and then stop DB2 Net Search Extender services with
the following command:
db2text stop
- After backing up the database, back up the index directories and subdirectories.
- Restart DB2 Net Search Extender services with the following command:
db2text start
Use the following steps to restore the enabled databases and text indexes
created by DB2 Net Search Extender:
- Stop DB2 Net Search Extender with the following command:
db2text stop
- Restore the backup copies of the index directories to the same path as
before.
- Restart DB2 Net Search Extender with the command:
db2text start