Please enter search query.
Search <book_title>...
NetBackup™ for Microsoft SQL Server 管理指南
Last Published:
2024-11-11
Product(s):
NetBackup & Alta Data Protection (10.5)
- 关于 NetBackup for SQL Server
- 安装
- 主机配置和作业设置
- 为 SQL Server 管理员配置 RBAC
- 管理 SQL Server 资产及其凭据
- 使用 SQL Server 智能策略配置备份
- 保护 SQL Server 可用性组
- 使用 VMware 备份保护 SQL Server
- 配置带有 Snapshot Client 的备份策略
- 保护群集环境中的 SQL Server
- 管理 SQL Server 的保护计划
- 使用 NetBackup Web UI 还原 SQL Server
- 在 SQL Server 中使用即时访问
- 为 SQL Server 备份配置基于批处理文件的策略
- 对 NetBackup for SQL Server 使用批处理文件的要求
- SQL Server 基于批处理文件的策略的日程表属性
- 为对只读文件组执行用户控制的备份配置基于批处理文件的策略
- 使用 NetBackup MS SQL 客户端执行备份和还原
- 将 SQL Server 数据库重定向到其他主机(NetBackup MS SQL 客户端)
- 还原多数据流 SQL Server 备份
- 使用具有多个 NIC 的 NetBackup for SQL Server
- 性能和故障排除
- 关于用于排除 SQL Server 故障的调试日志记录
- 关于 SQL Server 的灾难恢复
- 附录 A. 其他配置
- 附录 B. 注册授权位置
执行 SQL Server 数据库移动(NetBackup MS SQL 客户端)
注意:
如果备份基于数据流,则 NetBackup 仅支持移动启用 FileStream 的备份数据库。
通过执行数据库移动,可以使用一整套备份映像将现有数据库复制到名称不同的另一位置。仅当选择对象中包括数据库映像时,才能执行数据库移动操作。在直接选择数据库备份映像后,或在 NetBackup 找到包含数据库备份映像的恢复集后,均可执行数据库移动操作。
执行数据库移动
- 打开 NetBackup MS SQL 客户端。
- 浏览以找到要还原的备份映像。
- 展开数据库实例。
- 选择要还原的数据库备份映像。
- 在“生成脚本”列表中,选择“创建移动模板”。
在创建移动脚本时,执行立即启动的功能被禁用。必须编辑脚本来指定某些目标参数。
- 单击“还原”。
- 指定文件名,然后单击“保存”>“是”。
- 将模板中的数据库名称更改为要还原到的数据库的名称。
例如,将以下内容:
# Replace the database name in the following line with the name of the database that you # want to move to. Also remove the hash mark <#> which precedes the keyword <DATABASE>. # # DATABASE "DatabaseA"
替换为:
# Replace the database name in the following line with the name of the database that you # want to move to. Also remove the hash mark <#> which precedes the keyword <DATABASE>. # DATABASE "DatabaseB"
- 更改要还原的数据库文件的路径。
必须至少取消注释一个文件。例如,将以下内容:
# Replace the file path <C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DBA_FG1_File1.ndf> # with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>. # The target of the MOVE keyword must be "DBA_FG1_File1". MOVE "DBA_FG1_File1" #TO "C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DBA_FG1_File1.ndf"
替换为:
# Replace the file path <C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DBA_FG1_File1.ndf> # with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>. # The target of the MOVE keyword must be "DBA_FG1_File1". MOVE "DBA_FG1_File1" TO "C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DBB_FG1_File1.ndf"
- 更改数据库文件路径。
例如,将以下内容:
# Replace the file path <C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DatabaseA.mdf> # with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>. # The target of the MOVE keyword must be "DatabaseA". MOVE "DatabaseA" #TO "C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DatabaseA.mdf"
替换为:
# Replace the file path <C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DatabaseA.mdf> # with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>. # The target of the MOVE keyword must be "DatabaseA". MOVE "DatabaseA" TO "C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DatabaseB.mdf"
- 对要移动的所有差异式备份或事务日志备份的模板进行类似更改。
- 修改完模板后,请进行保存。
- 要运行还原,请选择“文件”>“管理脚本文件”。
- 选择所创建的脚本,然后单击“启动”>“是”。