Databases
Dameng DM8 Database Management in VS Code
Overview
Section titled “Overview”Dameng DM8 is an enterprise-grade relational database developed in China and widely used in government, finance, and large-enterprise environments. Key characteristics include:
- Oracle compatibility: Supports a broad subset of Oracle SQL syntax, PL/SQL-style stored procedures, and familiar data types, making it accessible to Oracle-experienced teams
- Schema-based organization: Databases are organized into schemas containing tables, views, procedures, functions, sequences, and triggers
- Standard SQL: Full support for DML (SELECT, INSERT, UPDATE, DELETE), DDL, transactions, and stored programming objects
- Enterprise features: Built-in user and privilege management, session monitoring, and lock visibility
- High availability: Supports clustering, replication, and backup/recovery for production deployments
Dameng DM8 is well suited for enterprise applications, government information systems, and workloads that require Oracle-compatible SQL in environments where domestic software is preferred or mandated.
Connecting
Section titled “Connecting”To connect to Dameng DM8 in DBCode:
- Open the DBCode Extension: Launch Visual Studio Code and open the DBCode extension.
- Add a New Connection: Click on the “Add Connection” icon.
- Complete the connection form: Select Dameng as the database type and enter:
- Host: hostname or IP address of your DM8 instance
- Port: TCP port (default: 5236)
- Username / Password: DM8 credentials
- SSL: enable when the server has encryption turned on (
ENABLE_ENCRYPT = 1indm.ini)
- Connect: Click save to connect to your Dameng database.
- Start exploring: Browse schemas, tables, views, and stored objects, and run queries.
SSL/TLS
Section titled “SSL/TLS”With SSL enabled, DBCode encrypts the whole session, including the login. By default it verifies the server certificate and host name. Provide a CA certificate when your server uses a private CA, choose CA-only verification to skip the host name check, or trust the server certificate to skip verification. A client certificate and key are optional. If SSL is enabled but the server does not offer encryption, DBCode refuses the connection before sending your credentials.
For detailed connection instructions, refer to the Connect article.
Dameng Features in DBCode
Section titled “Dameng Features in DBCode”DBCode enhances your Dameng development experience with:
- SQL query editor: Write and execute DM8 SQL with syntax highlighting and multi-statement support
- Schema browsing: Navigate schemas, tables, views, materialized views, procedures, functions, sequences, triggers, and user types, with column types, row counts, constraints, and function return types
- Data editing: Insert, update, and delete rows inline in the data grid
- DDL scripting: Generate object definitions (CREATE TABLE, CREATE PROCEDURE, and similar) directly from the schema browser
- Transactions: Pin a connection to run statements in a transaction and commit or roll back together
- Server monitoring: View active sessions, locks, and system activity from the monitoring panel
- Data export: Export query results in multiple formats
By using Dameng DM8 with DBCode, you can develop and run queries and manage your enterprise database directly within Visual Studio Code.
For more information about Dameng, visit dameng.com.