Migrating the catalog table by script

Use this option to migrate the catalog table when you must do multiple tasks at the same time. With this option, you can start a command-line shell and run multiple commands inside it.

Procedure

  1. Start the NoSQL command line processor by going to the sqllib\json\bin folder and running one of the following scripts:
    • On Windows: db2nosql.bat
    • On Linux® and UNIX: db2nosql.sh
    Note: The default value of the host name and port is localhost:50000. If they are not your system's values, alter the -hostname and -port options in the script.
  2. To migrate the Db2® artifacts on the database for Db2 JSON, in the NoSQL command line interface, enter migrate(true).
    The Db2 artifacts for Db2JSON on the database are migrated.
  3. Enter quit to leave the command-line prompt.