Manage Doris with NineData SQL Console
NineData SQL Console lets you connect to Doris, browse databases, execute SQL, inspect objects, and manage common data operations from a browser workspace.
Use this guide to add a Doris data source and open it in SQL Console. The page also summarizes the SQL Console controls that are useful when working with Doris.
Overview
SQL Console is part of NineData Database DevOps. For Doris, it provides a governed workspace for SQL execution, object browsing, execution history, saved SQL, AI-assisted SQL operations, and enterprise controls such as SQL standards and approval workflows.

Before you begin
Register a NineData platform account. See Registering a NineData Account.
Under DevOps Enterprise (organization mode), you must have read-only, DML, or DDL permissions for the target data source.
tipRead-only permissions only support viewing databases and querying data operations.
In the commercial versions (DevOps Pro, DevOps Enterprise), make sure your monthly or yearly subscription has not expired. An expired subscription may prevent you from using the Database DevOps service. Check the remaining quota and expiration date in the NineData Console header.

Key capabilities
NineData's SQL Console provides several convenient features to help you manage your data sources.
| Feature | Description |
|---|---|
| AI Intelligence | NineData provides AI services for SQL statement generation, SQL query optimization, and troubleshooting.
|
| AI Functions |
|
| Execute SQL Statements |
|
| Generate Creation Scripts | Generate creation scripts for existing objects such as databases and tables in the data source. Use the scripts to recreate the same structure in other data sources. |
| SQL Intelligent Suggestions | As you type SQL in SQL Console, NineData suggests keywords, functions, table names, column names, and other common objects based on the statement context. It also provides SQL templates and syntax help. |
| Save SQL | View SQL | Save frequently used SQL statements in NineData and view them later. Saved SQL is stored in the cloud for reuse across browsers and hosts. |
| Workspace Recovery | If the browser exits unexpectedly or crashes, sign in to the NineData console and reopen SQL Console. NineData restores the previously opened data source and SQL commands from the cloud. |
| Execution History | History records all the SQL statements executed by the current account in the NineData console. It also supports quick retrieval based on data sources, execution time, SQL keywords, etc. Quickly copy and execute SQL statements from the execution history in SQL Console. |
| SQL Standard Check (Enterprise Edition) | In DevOps Enterprise (organization modeOrganization mode supports assigning different roles and resource management permissions to each user in the organization, suitable for collaborative development by multiple users within the same organization. It improves overall production efficiency while ensuring data security.), NineData checks every SQL statement executed in SQL Console based on the SQL development standards configured by Administrator. If a SQL statement does not comply with the standards, NineData blocks the execution to protect database security. After interception, users can revise the SQL and resubmit it, or submit a SQL task through the approval process configured by Administrator. |
Procedure
Add a Doris data source
Sign in to the NineData Console.
On the left navigation pane, click Datasource > Datasource.
Click the Datasource tab, then click Create Datasource. In the data-source type dialog, choose Database > Doris. Configure the fields on the Create Datasource page.
tipIf you make a mistake during the operation, click the
icon at the top of the Create Datasource page to make a new selection.
Click to expand table details
Parameter Description Name Enter a meaningful data source name to identify and manage it later. Connection Choose the access method for the data source. Supports three methods: IP Address, Gateway, and SSH Tunnel. - IP Address: Access the data source through a public IP address.
- Gateway: Use NineData gateway access for private-network connectivity. Connect the host where the data source resides first. See add gateway.
- SSH Tunnel: Access the data source through an SSH tunnel.
Configuration options for IP Address Host: Enter the public connection address and port number of the data source. Configuration options for Gateway Gateway: Choose the NineData gateway installed on the host where the data source resides.
Host: Use localhost if the data source runs on the same host, or use the private IP address of the data source host.Configuration options for SSH Tunnel - SSH Host: Enter the public IP or domain name of the target data source's server, along with the corresponding port number (default port for SSH service is 22).
- SSH Authentication Method: Choose the SSH authentication method.
- Password: Connect using SSH Username (server login name) and Password (server login password).
- Key (recommended): Connect using SSH Username and Key File.
- SSH Username: Enter the login username of the target data source's server.
- Key File: Upload the private key file by clicking Upload. This is the key file without an extension. If you haven't created it yet, see generate SSH Tunnel key file.
- Password: Enter the passphrase set during key file generation. Leave it blank if no passphrase was set during key generation.
Note: After configuring SSH, click Connection Test on the right. Two outcomes are possible: - Connection Successfully: The SSH Tunnel is available.
- Error message: The connection failed. Use the error message to troubleshoot and retry.
DB Account Data source username. DB Password Data source password. Access Region Choose the region closest to the location of your data source to effectively reduce network latency. Environment Select the environment that matches the business purpose of this data source. Default options include PROD and DEV. Custom environments can also be created from Create custom environments.
Note: In organization mode, database environments can also be used in permission policy management. For example, the default Prod Admin role can access only data sources in the PROD environment. See manage roles.Encryption Configure SSL encryption for the data source (default: on). If the data source requires SSL encryption, enable this option, or the connection fails.
Use the switch to turn encryption on or off. Click the arrow next to Encryption to expand detailed configuration.- SSL Options: Choose one of two options:
- If Available: Detect the server SSL status. If SSL is enabled on the server, connect with SSL. Otherwise, use a non-SSL connection.
- Require: Always use SSL to connect to the data source. If the server does not support this method or cannot establish an SSL connection for other reasons, the connection fails.
- SSL Cipher: Specify the SSL-Cipher encryption algorithm.
- Verify Server Certificate (SSL CA): If the Doris server uses a self-signed CA certificate, upload the root certificate of that CA here.
- Verify Server Identity (SSL Identify): Select this option to verify the server name and IP address so the connection reaches the genuine Doris server and helps prevent man-in-the-middle attacks.
- Authenticate Client: If the Doris server requires a client certificate, upload the client certificate and key here. The Doris server verifies the uploaded information to secure the connection.
Click Create Datasource. NineData adds the data source after the connection test succeeds. If the test fails, review the connection settings and try again.
Open Doris in SQL Console
Sign in to the NineData Console.
In the left navigation pane, click DevOps > SQL Console.
tipIf a data source session is still open, NineData redirects you to that data source page.
Click the text box below SQL Console. In the data source list, select the target Doris data source, then click Query.
tipIf multiple data sources exist, enter keywords (partial or complete) in the box to perform an exact or fuzzy search. The searchable fields include:
- Data source name
- IP address
The SQL Console opens for the Doris data source. Use it to run queries, inspect objects, edit data, and manage database operations permitted by your role.

For detailed instructions, see SQL Console interface.
tipIn DevOps Enterprise (Organization Mode), if sensitive columns are configured in the target data source, complete column content remains hidden until sensitive column access permission is granted.

Result
The Doris data source is available in NineData SQL Console. Open it from the SQL workspace, run SQL operations within your permissions, use AI-assisted SQL features, and review execution history.
SQL Console interface

| Number | Feature | Description |
|---|---|---|
| 1 | SQL Tab | The open SQL Console tab for a data source. Use tabs to switch between multiple SQL Consoles, and click X at the end of a tab to close that SQL Console. Right-click a tab to use these actions:
|
| 2 | Open Data Source | Select and open a new SQL Console for a data source. |
| 3 | Data Source Information | Contains data source information for the current SQL Console, including environment, IP address, and port number. Right-click menu:
|
| 4 | Refresh | Refresh the data in the current data source. |
| 5 | Database Name | Select the target database to perform SQL operations. |
| 6 | Function Buttons |
|
| 7 | Search Table Name | Quickly search for a target data table by entering the table name. |
| 8 | Database List | Lists all databases and data tables in the current data source.
|
| 9 | SQL Editor | Supports these features:
|
| 10 | Execution Information, Result Set | Displays the execution information and result set of the SQL.
|