You should verify that your copy of NetSearch Extender
is properly installed to prevent some maintenance issues.
Procedure
Complete the following steps to verify that Net
Search Extender is correctly
installed.
- Non partitioned environment:
- Set up the sample text indexes as follows:
- Call db2cmd to open a Db2® command window.
- Change to
sqllib\samples\extenders\db2ext
- From the Db2
command window, call
nsesample.bat yourdb
. Note that this
command creates the database if it does not already exist.
- Check the generated output file nsesample.log in
the current directory.
-
Call the following sample queries to execute in the Db2 command window:
- Connect to your database using
db2 connect to yourdb
- Execute the sample queries using
db2 -tvf search
- Check the results of the queries contained in the script. Note that every query should return
one or more hits.
If there are no errors in the nsesample.log file
and all the queries are working, Net
Search Extender is successfully
installed.
- Partitioned database environment: Set up the sample text
indexes as follows:
-
Call
db2cmd
to open a Db2 command window.
- Change to
<sqllib>\samples\extenders\db2ext
-
From the Db2 command window, call
nsesample_partitioned.bat <yourdb>
.
- Check the generated output file
nsesample_partitioned.log
in
the current directory.
If there are no errors in the nsesample_partitioned.log
file
and all the queries are working, Net
Search Extender is successfully
installed.