SQL Azure 数据库复制状态
SQL Azure Database Copy status
在 Azure 门户中复制数据库是永无止境的。
通常,当我复制一个 250GB 的数据库时,它会在不到一个小时的时间内完成。
今天复制的时候好像没完没了,到现在已经两三个多小时了
并且在服务器 activity 日志中,最后一个条目只是说发生了更新
关于如何查看更多进度、完成百分比或查看可能锁定它的任何其他方式的任何想法?在活动日志中看不到任何用处json。
您可以使用 SYS.DM_OPERATION_STATUS 来跟踪许多操作,包括 SQLAZURE 中的 copy
..
文档状态
To use this view, you must be connected to the master database. Use the sys.dm_operation_status view in the master database of the SQL Database server to track the status of the following operations performed on a SQL Database:
以下是可以追踪的操作
创建数据库
复制数据库。数据库复制在源服务器和目标服务器上的该视图中创建一条记录。
修改数据库
更改服务层级的性能级别
更改数据库的服务层级,例如从 Basic 更改为 Standard。
设置异地复制关系
终止异地复制关系
恢复数据库
删除数据库
您也可以在 master 数据库中尝试 sys.dm_database_copies 以获取有关复制状态的信息。这有 percent_complete
字段,下面是文档必须说的内容关于这个
The percentage of bytes that have been copied. Values range from 0 to 100. SQL Database may automatically recover from some errors, such as failover, and restart the database copy. In this case, percent_complete would restart from 0.
注:
此视图仅在复制操作期间有信息..
在 Azure 门户中复制数据库是永无止境的。
通常,当我复制一个 250GB 的数据库时,它会在不到一个小时的时间内完成。
今天复制的时候好像没完没了,到现在已经两三个多小时了
并且在服务器 activity 日志中,最后一个条目只是说发生了更新
关于如何查看更多进度、完成百分比或查看可能锁定它的任何其他方式的任何想法?在活动日志中看不到任何用处json。
您可以使用 SYS.DM_OPERATION_STATUS 来跟踪许多操作,包括 SQLAZURE 中的 copy
..
文档状态
To use this view, you must be connected to the master database. Use the sys.dm_operation_status view in the master database of the SQL Database server to track the status of the following operations performed on a SQL Database:
以下是可以追踪的操作
创建数据库
复制数据库。数据库复制在源服务器和目标服务器上的该视图中创建一条记录。
修改数据库
更改服务层级的性能级别
更改数据库的服务层级,例如从 Basic 更改为 Standard。
设置异地复制关系
终止异地复制关系
恢复数据库
删除数据库
您也可以在 master 数据库中尝试 sys.dm_database_copies 以获取有关复制状态的信息。这有 percent_complete
字段,下面是文档必须说的内容关于这个
The percentage of bytes that have been copied. Values range from 0 to 100. SQL Database may automatically recover from some errors, such as failover, and restart the database copy. In this case, percent_complete would restart from 0.
注:
此视图仅在复制操作期间有信息..