Updated on 2024-08-29 GMT+08:00

Command History

After you toggle on Save Executed Commands, DAS will save the commands you executed in the SQL window for future view. You can also execute the commands again with no need to enter them again in the SQL window.

Prerequisites

You have enabled Save Executed Commands.

After you enable Save Executed Commands, executed commands will be recorded in the DAS management host.

Procedure

  1. Log in to the DAS console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner, and under Databases, click Data Admin Service.
  4. In the navigation pane on the left, choose Development Tool.

    You can also click Go to Development Tool on the overview page.

  5. Locate the DB instance that you want to log in to and click Log In in the Operation column.
  6. On the top menu bar, choose Command Operation > Command History.
  7. In the command execution list, view the execution records.

    Figure 1 Command execution list
    • You can search execution records by time range, database name, or command keyword.
    • Database name: Click a database name to go to the database management page.
    • SQL Statement: Click a statement to view or copy it.
    • Open in command window: Click it to view the executed commands in a window for easy view and use.