开始使用 Azure SQL 数据库中的单一数据库Getting started with single databases in Azure SQL Database

适用于:是Azure SQL 数据库 APPLIES TO: yesAzure SQL Database

单一数据库是完全托管的平台即服务 (PaaS) 数据库即服务 (DbaaS),也是新式云原生应用程序的理想存储引擎。A single database is fully managed platform as a service (PaaS) database as a service (DbaaS) that is ideal storage engine for the modern cloud-born applications. 本部分介绍如何在 Azure SQL 数据库中快速配置和创建单一数据库。In this section, you'll learn how to quickly configure and create a single database in Azure SQL Database.

快速入门概述Quickstart overview

本部分提供了可帮助你快速开始使用单一数据库的可用文章的概述。In this section, you'll see an overview of available articles that can help you to quickly get started with single databases. 以下快速入门可帮助你快速创建单一数据库、配置服务器级防火墙规则,然后使用 .bacpac 文件将数据库导入新的单一数据库:The following quickstarts enable you to quickly create a single database, configure a server-level firewall rule, and then import a database into the new single database using a .bacpac file:

自动化管理操作Automating management operations

可以使用 PowerShell 或 Azure CLI 创建、配置和缩放数据库。You can use PowerShell or the Azure CLI to create, configure, and scale your database.

在尽量缩短停机时间的情况下迁移到单一数据库Migrating to a single database with minimal downtime

参考这些快速入门中的文章可以使用 .bacpac 文件快速创建数据库或将其导入 Azure。These quickstarts enable you to quickly create or import your database to Azure using a .bacpac file. 但是,.bacpac.dacpac 文件旨在跨不同版本的 SQL Server 和 Azure SQL 数据库中的部署选项快速移动数据库。However, .bacpac and .dacpac files are designed to quickly move databases across different versions of SQL Server and deployment options within Azure SQL Database. 但是,此方法不适合用于在尽量缩短停机时间的前提下迁移生产数据库,因为需要停止添加新数据,等待将源数据库导出到 .bacpac 文件,然后等待将其导入 Azure SQL 数据库。However, this method is not designed for migration of your production databases with minimal downtime, because you would need to stop adding new data, wait for the export of the source database to a .bacpac file to complete, and then wait for the import into Azure SQL Database to complete. 所有这些操作会导致应用程序出现一段停机时间,尤其是数据库较大时。All of this waiting results in downtime of your application, especially for large databases. 若要转移生产数据库,需要采用更好的方式进行迁移,以确保尽量缩短迁移所导致的停机时间。To move your production database, you need a better way to migrate that guarantees minimal downtime of migration. 为此,请使用数据迁移服务 (DMS),它可以在尽量缩短停机时间的情况下迁移数据库。For this, use the Data Migration Service (DMS) to migrate your database with the minimal downtime. 为实现这种迁移,DMS 会以增量方式将源数据库中发生的更改推送到所要还原的单一数据库。DMS accomplishes this by incrementally pushing the changes made in your source database to the single database being restored. 这样,便可以在尽量缩短停机时间的前提下,快速将应用程序从源数据库切换到目标数据库。This way, you can quickly switch your application from source to target database with the minimal downtime.

后续步骤Next steps