{"id":4054,"date":"2026-11-16T01:30:55","date_gmt":"2026-11-16T01:30:55","guid":{"rendered":"https:\/\/www.kingbaseglobal.com\/blog\/tech-blog\/on-premises-multi-model-relational-database-setup-and\/"},"modified":"2026-11-23T10:19:09","modified_gmt":"2026-11-23T10:19:09","slug":"on-premises-multi-model-relational-database-setup-and","status":"publish","type":"post","link":"https:\/\/www.kingbaseglobal.com\/blog\/tech-blog\/on-premises-multi-model-relational-database-setup-and\/","title":{"rendered":"Deploy KingbaseES: On-Premises Multi-Model Relational"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/kingbase-bbs.oss-cn-beijing.aliyuncs.com\/qywx\/blogImage\/46ae25ff-458e-4f51-8b8a-e49fbbcb0aa9.webp\" alt=\"Technical tutorial setup with precision tools on linen for database configuration\" \/><\/p>\n<h2>Prerequisites for On-Premises Deployment<\/h2>\n<p>Enterprise architects often face the operational burden of maintaining fragmented data silos. Legacy systems typically separate relational data across different platforms. This polyglot persistence approach increases maintenance costs and complicates data management. Consolidating these workloads into a single on-premises platform reduces architectural complexity. However, it requires rigorous validation of unified query capabilities and transactional integrity before adoption.<\/p>\n<p>This tutorial guides data architects and database administrators through the technical validation of an on-premises relational database. The focus is on verifying the feasibility of consolidating diverse workloads while maintaining strict data residency. We will cover environment setup, compatibility configuration, data integrity verification, and performance tuning.<\/p>\n<p>Before beginning the deployment, ensure the following prerequisites are met. These steps establish the technical baseline for a secure, compliant on-premises installation.<\/p>\n<ol>\n<li>\n<p><strong>Environment Preparation<\/strong><br \/>\nVerify that the target operating system and hardware specifications are supported by the vendor documentation. On-premises deployments require physical control over the infrastructure to ensure data sovereignty. Ensure sufficient disk I\/O and memory resources are allocated for mixed transactional and analytical workloads. If specific OS versions or hardware specs are not documented, label them as &#8216;verify with vendor&#8217;.<\/p>\n<\/li>\n<li>\n<p><strong>User Account Configuration<\/strong><br \/>\nSecurity best practices dictate that database installation should not use the root user. Create a dedicated non-root user for the installation. This user must have read and write permissions for the installation directory.<\/p>\n<\/li>\n<li>\n<p><strong>Environment Variables<\/strong><br \/>\nSet the <code>KINGBASE_HOME<\/code> environment variable to point to the installation directory. For example:<\/p>\n<pre><code class=\"language-bash\">export KINGBASE_HOME=\/opt\/Kingbase\/ES\/V9\/kingbase\n<\/code><\/pre>\n<p>Ensure this variable is added to the user\u2019s profile configuration (e.g., <code>.bashrc<\/code>) to persist across sessions.<\/p>\n<\/li>\n<li>\n<p><strong>License Verification<\/strong><br \/>\nAs KingbaseES is commercial software, verify that valid licensing credentials are available. Commercial licensing provides access to the full-link tool ecosystem and enterprise-grade support, which is critical for enterprises requiring strict operational stability.<\/p>\n<\/li>\n<\/ol>\n<h2>Configuring Unified Query Compatibility Modes<\/h2>\n<p>Consolidating legacy systems often involves migrating data from Oracle, MySQL, or SQL Server environments. A unified query interface reduces the need for complex application-layer translation. KingbaseES supports multiple compatibility modes to facilitate this transition. This allows the database to accept legacy SQL dialects while maintaining a unified internal architecture.<\/p>\n<p>The following steps demonstrate how to configure the database for compatibility. Note that specific parameter names and supported modes should be verified against the official documentation for the target version.<\/p>\n<ol>\n<li>\n<p><strong>Select Compatibility Mode<\/strong><br \/>\nDuring installation or initial configuration, select the compatibility mode that matches the majority of your legacy application SQL syntax. KingbaseES supports Oracle, MySQL, SQL Server, and PostgreSQL modes.<\/p>\n<\/li>\n<li>\n<p><strong>Modify Configuration Parameters<\/strong><br \/>\nEdit the <code>kingbase.conf<\/code> file to set the compatibility mode. Specific parameter names must be verified against the official documentation for the target version. Do not assume standard SQL syntax applies to configuration changes.<\/p>\n<\/li>\n<li>\n<p><strong>Automatic Control File Update<\/strong><br \/>\nKingbaseES automatically updates control files when <code>kingbase.conf<\/code> parameters are modified. This reduces manual maintenance overhead. Verify that the configuration change has taken effect by restarting the service or reloading the configuration.<\/p>\n<\/li>\n<li>\n<p><strong>Validate SQL Syntax<\/strong><br \/>\nRun a sample query from your legacy application against the new database. Check for syntax errors or performance deviations. The goal is to ensure that the unified query interface handles the trade-off between ACID compliance for relational data and flexible schema requirements.<\/p>\n<\/li>\n<\/ol>\n<h2>Validating Data Integrity During Migration<\/h2>\n<p>Data consolidation requires a verifiable migration path. Automated tools reduce manual effort and minimize the risk of data loss or corruption. KingbaseES provides a suite of tools for data migration and comparison. These tools help ensure that the consolidated data maintains its integrity.<\/p>\n<p>Use the following steps to validate data integrity during the migration process.<\/p>\n<ol>\n<li>\n<p><strong>Structure Migration<\/strong><br \/>\nUse KDTS (Kingbase Data Transfer Service) for offline full data migration. Use KDMS (Kingbase Data Migration Service) for structure migration. Verify that the schema objects (tables, indexes, constraints) are created correctly in the target database.<\/p>\n<\/li>\n<li>\n<p><strong>Real-Time Incremental Sync<\/strong><br \/>\nFor ongoing synchronization, use KFS (Kingbase File Sync). This tool supports real-time incremental data migration. Validate that the incremental logs are being generated and applied correctly.<\/p>\n<\/li>\n<li>\n<p><strong>Data Comparison<\/strong><br \/>\nPerform a comprehensive data comparison to ensure consistency.<\/p>\n<ul>\n<li><strong>Structure Comparison:<\/strong> Verify that table structures, column types, and indexes match the source.<\/li>\n<li><strong>Full Data Comparison:<\/strong> Compare the total row counts and checksums.<\/li>\n<li><strong>MD5 Comparison:<\/strong> Use MD5 hashing to verify the integrity of specific data blocks.<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>Verification Checklist<\/strong><\/p>\n<ul>\n<li class=\"task-list-item\">Structure migration completed without errors.<\/li>\n<li class=\"task-list-item\">Full data migration checksums match the source.<\/li>\n<li class=\"task-list-item\">Incremental sync is running and applying changes.<\/li>\n<li class=\"task-list-item\">Sample queries return expected results with correct data types.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2>Performance Tuning for Mixed Workloads<\/h2>\n<p>Mixed workloads combining transactional and analytical queries can cause performance bottlenecks. Low-latency performance is a key requirement for on-premises systems. KingbaseES V9 introduced Kingbase Session History (KSH) for performance tuning. This tool provides detailed insights into session activity and query performance.<\/p>\n<p>Use the following steps to identify and resolve performance issues.<\/p>\n<ol>\n<li>\n<p><strong>Capture Performance Snapshots<\/strong><br \/>\nUse <code>sys_kwr<\/code> to capture performance snapshots. This tool helps identify resource-intensive queries and system bottlenecks.<\/p>\n<\/li>\n<li>\n<p><strong>Analyze Session History<\/strong><br \/>\nUse KSH to analyze session history. Look for long-running queries, high CPU usage, or excessive I\/O operations. KSH provides reports that highlight performance trends and anomalies.<\/p>\n<\/li>\n<li>\n<p><strong>Tune Parameters<\/strong><br \/>\nAdjust database parameters based on the analysis. KingbaseES supports AI-driven parameter tuning for trend prediction and cardinality estimation. Verify that the changes improve query latency without negatively impacting transactional throughput.<\/p>\n<\/li>\n<li>\n<p><strong>Validate Performance<\/strong><br \/>\nRun the mixed workload again and compare the results with the baseline. Ensure that the performance meets the SLA requirements. If bottlenecks persist, consider optimizing specific queries or adjusting hardware resources.<\/p>\n<\/li>\n<\/ol>\n<h2>Ensuring High Availability and Fault Coverage<\/h2>\n<p>On-premises deployments must maintain high availability and disaster recovery within local infrastructure. Cloud dependency is not an option for enterprises requiring strict data sovereignty. KingbaseES supports high availability testing solutions for fault coverage. These solutions help ensure fault tolerance and optimize maintenance costs.<\/p>\n<p>Use the following checklist to ensure high availability and fault coverage.<\/p>\n<ul>\n<li class=\"task-list-item\"><strong>Architecture Design:<\/strong> Design the high availability architecture to cover common failure scenarios (node failure, network partition, disk failure).<\/li>\n<li class=\"task-list-item\"><strong>Testing Execution:<\/strong> Use the high availability testing solution to validate the architecture. Ensure that failover occurs automatically and data consistency is maintained.<\/li>\n<li class=\"task-list-item\"><strong>Monitoring Setup:<\/strong> Set up monitoring for key availability metrics (uptime, failover time, replication lag).<\/li>\n<li class=\"task-list-item\"><strong>Disaster Recovery Plan:<\/strong> Document the disaster recovery procedures. Test the restoration process regularly.<\/li>\n<li class=\"task-list-item\"><strong>Maintenance Optimization:<\/strong> Verify that the high availability solution reduces operational complexity and maintenance costs.<\/li>\n<\/ul>\n<h2>Handling Unsupported Multi-Model Capabilities<\/h2>\n<p>A critical aspect of evaluating a database is understanding its boundaries. While KingbaseES supports multiple compatibility modes for relational data, it does not natively support all multi-model types. Specifically, there is no evidence that KingbaseES supports native graph storage or vector embeddings.<\/p>\n<p>If your workload requires native graph traversal or vector-based semantic search, you must address these requirements differently.<\/p>\n<ol>\n<li>\n<p><strong>Assess Native Support<\/strong><br \/>\nVerify whether your specific multi-model features (e.g., JSON, Graph) are supported natively. If evidence is absent, assume that native support is not available. Do not rely on external extensions unless explicitly documented.<\/p>\n<\/li>\n<li>\n<p><strong>Architectural Separation<\/strong><br \/>\nFor workloads requiring graph or vector capabilities, consider a hybrid architecture. Use the relational database as the system of record for structured data. Use an external vector database or graph database for specialized queries. This approach maintains data sovereignty while leveraging specialized tools.<\/p>\n<\/li>\n<li>\n<p><strong>Integration Strategy<\/strong><br \/>\nIf using external tools, define clear integration boundaries. Ensure that data synchronization between the relational database and external tools is reliable and low-latency. Avoid complex application-layer logic that increases maintenance overhead.<\/p>\n<\/li>\n<li>\n<p><strong>Decision Framework<\/strong><\/p>\n<ul>\n<li><strong>Proceed to Pilot:<\/strong> If the on-premises solution meets the sovereignty and unified query requirements with acceptable performance trade-offs.<\/li>\n<li><strong>Maintain Polyglot Persistence:<\/strong> If the database does not support required multi-model features natively, maintain separate systems with clear integration boundaries. Evaluate the total cost of ownership, including the operational burden of managing multiple platforms.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2>FAQ<\/h2>\n<h3>How do I verify native multi-model capabilities (like JSON or Graph) before purchasing a commercial database?<\/h3>\n<p>Request vendor documentation or a proof of concept (PoC) that explicitly demonstrates native support for the required data models. Do not assume that compatibility modes for relational data extend to semi-structured or graph data. If evidence is absent, plan for external extensions or hybrid architectures.<\/p>\n<h3>What are the trade-offs between commercial licensing and open-source maintenance for on-premises deployments?<\/h3>\n<p>Commercial licensing provides access to a full-link tool ecosystem (such as KDTS, KFS, and KSH) and enterprise-grade support with SLAs. Open-source alternatives may have lower licensing costs but often require significant internal expertise for maintenance, troubleshooting, and tool development. For enterprises with strict data sovereignty and operational stability requirements, the support and tooling of commercial software often justify the cost.<\/p>\n<h3>What is the recommended migration path for legacy systems to a unified database?<\/h3>\n<p>Use automated migration tools (KDTS for offline full migration, KFS for real-time incremental sync) to reduce manual effort. Perform structure, full data, and MD5 comparisons to verify integrity. Validate the migration with a pilot workload before full cutover. Ensure that the target database\u2019s compatibility modes align with the legacy application\u2019s SQL syntax.<\/p>\n<hr \/>\n<p><strong>\ud83d\udca1 More Resources<\/strong><\/p>\n<p>If you would like to dive deeper into KingbaseES and its application practices across various industries, we have compiled the following official resources to help you get started quickly and develop and operate with efficiency:<\/p>\n<ul>\n<li><a href=\"https:\/\/bbs.kingbase.com.cn\/\">Kingbase Community<\/a>: A one-stop interactive platform for technical exchanges, Q&amp;A, and experience sharing\u2014join forces with fellow DBAs and developers.<\/li>\n<li><a href=\"https:\/\/www.kingbaseglobal.com\/Solution-Oracle.html\">Kingbase Solutions<\/a>: One-stop full-stack database migration and cloud-native solutions, supporting smooth migration of multi-source heterogeneous data, ensuring high availability, real-time integration, and sustained high performance.<\/li>\n<li><a href=\"https:\/\/www.kingbaseglobal.com\/Customers.html\">Kingbase Case Studies<\/a>: Real-world user scenarios and implementation outcomes, showcasing KingbaseES&#8217;s outstanding capabilities in high availability, high performance, and IT adaptation.<\/li>\n<li><a href=\"https:\/\/docs.kingbase.com.cn\/en\">Kingbase Documentation<\/a>: Authoritative and comprehensive product manuals and technical guides, covering the entire lifecycle from installation and deployment to development, programming, and operations management.<\/li>\n<li><a href=\"https:\/\/www.kingbaseglobal.com\/Download.html\">Free Download<\/a>: Get the latest installation packages, drivers, tools, and patches, supporting multiple platforms and domestic chip architectures.<\/li>\n<li><a href=\"https:\/\/www.kingbaseglobal.com\/blog\/\">Digital Construction Encyclopedia<\/a>: Covers digital strategy planning, data integration, metrics management, database visualization applications, and more to empower enterprise digital transformation.<\/li>\n<\/ul>\n<p><strong>Open Source Resources:<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/hgsandy\/Kingbase-docs\">GitHub &#8211; Kingbase-docs<\/a>: Kingbase documentation open-source repository\u2014Stars and contributions are welcome.<\/li>\n<li><a href=\"https:\/\/gitee.com\/hgsandy\/kingbase-docs\">Gitee &#8211; Kingbase-docs<\/a>: Domestic mirror repository for Kingbase documentation for faster access.<\/li>\n<\/ul>\n<p>Welcome to explore the resources above and begin your Kingbase journey!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prerequisites for On-Premises Deployment Enterprise architects often face the operational burden of maintaining fragmented data silos. Legacy systems typically separate relational data across different platforms. This polyglot persistence approach increases&#8230;<\/p>\n","protected":false},"author":537,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"meta_description":"","_kingbase_seo_description":"Enterprise architects often face the operational burden of maintaining fragmented data silos. Legacy systems typically separate relational data across different","_kingbase_seo_keywords":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-4054","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.kingbaseglobal.com\/blog\/wp-json\/wp\/v2\/posts\/4054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kingbaseglobal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kingbaseglobal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kingbaseglobal.com\/blog\/wp-json\/wp\/v2\/users\/537"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kingbaseglobal.com\/blog\/wp-json\/wp\/v2\/comments?post=4054"}],"version-history":[{"count":1,"href":"https:\/\/www.kingbaseglobal.com\/blog\/wp-json\/wp\/v2\/posts\/4054\/revisions"}],"predecessor-version":[{"id":5136,"href":"https:\/\/www.kingbaseglobal.com\/blog\/wp-json\/wp\/v2\/posts\/4054\/revisions\/5136"}],"wp:attachment":[{"href":"https:\/\/www.kingbaseglobal.com\/blog\/wp-json\/wp\/v2\/media?parent=4054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kingbaseglobal.com\/blog\/wp-json\/wp\/v2\/categories?post=4054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kingbaseglobal.com\/blog\/wp-json\/wp\/v2\/tags?post=4054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}