Command Window

Prerequisites

You have logged in to a DDS DB instance on the DAS console.

Procedure

  1. On the top menu bar, choose Command Operation > Command Window.

    • To ensure that your executed records are traceable, you are advised to enable Save Executed Commands.

      When this function is enabled, the commands executed lately will be saved to the server, and you can view the executed commands on the Executed Commands tab page.

    • Currently, the db.collection.aggregate() command is not supported. You can run the db.runCommand command instead.

  2. In the displayed text box, enter the commands you want to execute and click Execute Command.

    Figure 1 Executing a command

  3. In the lower part of the page, view the execution results.

    Figure 2 Viewing execution results
    • On the Executed Commands tab page, view the details about the commands that have been executed.
    • On the Messages tab page, view the execution results (successful or failed) and execution duration of current commands.
    • On the Result Set tab page, you can view the result set in JSON, tree, or table mode.