祝愿大家身体健康!

 站点注册  找回密码
 站点注册

QQ登录

只需一步,快速开始

查看: 6573|回复: 6

master库

[复制链接]

master库

[复制链接]
93815200

主题

0

回帖

29

积分

注册会员

积分
29
贡献
在线时间
小时
2005-11-23 15:32:26 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?站点注册

×

请问所谓的备份master库是不是就是把master.dat复制一份, 不用dump database备份呢.?

如用dump database备份,那如果master发生错误,不是不能用load database恢复节吗?

共享共进共赢Sharing And Win-win Results
SYBASEBBS - 免责申明1、欢迎访问“SYBASEBBS.COM”,本文内容及相关资源来源于网络,版权归版权方所有!本站原创内容版权归本站所有,请勿转载!
2、本文内容仅代表作者观点,不代表本站立场,作者自负,本站资源仅供学习研究,请勿非法使用,否则后果自负!请下载后24小时内删除!
3、本文内容,包括但不限于源码、文字、图片等,仅供参考。本站不对其安全性,正确性等作出保证。但本站会尽量审核会员发表的内容。
4、如本帖侵犯到任何版权问题,请立即告知本站 ,本站将及时删除并致以最深的歉意!客服邮箱:admin@sybasebbs.com
lllenxue

主题

0

回帖

28

积分

注册会员

积分
28
贡献
在线时间
小时
2005-11-23 17:05:38 | 显示全部楼层

不是

MASTER数据库备份的时候,在DUMP之后,还要用BCP将系统表导出,不然load回去也不能用

load之后在用bcp导入系统表

共享共进共赢Sharing And Win-win Results
93815200 楼主

主题

0

回帖

29

积分

注册会员

积分
29
贡献
在线时间
小时
2005-11-23 18:37:54 | 显示全部楼层

请问如果是库出问题了,load 命令都不可以用,我还怎么导库呢.

共享共进共赢Sharing And Win-win Results
flybean

主题

0

回帖

595

积分

管理员

积分
595
贡献
在线时间
小时
2005-11-24 08:23:55 | 显示全部楼层

不是

MASTER数据库备份的时候,在DUMP之后,还要用BCP将系统表导出,不然load回去也不能用load之后在用bcp导入系统表

[em12]
这种说法是不正确的。BCP备份系统表只是做第二次备份,以图更加保险。毕竟MASTER库是非常重要的。
下面的文字来自SYBASE手册之System Administrator Guide Volume 2 第27章 Developing a Backup and Recovery Plan之Scheduling backups of master:
System Administration Guide 865Scheduling backups of masterBack up the master database regularly and frequently.
Backups of the master database are used as part of the recovery procedure in case of a failure that affects the master database. If you do not have a current backup of master, you may have to reconstruct vital system tables at a time when you are under pressure to get your databases up and running again.
Dumping master after each changeAlthough you can restrict the creation of database objects in master, system procedures such as sp_addlogin and sp_droplogin, sp_password, and sp_modifylogin allow users to modify system tables in the database. Back up the master database frequently to record these changes.
Back up the master database after each command that affects disks, storage, databases, or segments. Always back up master after issuing any of the following commands or system procedures:
•disk init, sp_addumpdevice, or sp_dropdevice
•Disk mirroring commands
•The segment system procedures sp_addsegment, sp_dropsegment, or sp_extendsegment
•create procedure or drop procedure
•sp_logdevice
•sp_configure
•create database or alter database
Saving scripts and system tablesFor further protection, save the scripts containing all of your disk init, create database, and alter database commands and make a hard copy of your sysdatabases, sysusages, and sysdevices tables each time you issue one of these commands.
866 Adaptive Server EnterpriseYou cannot use the dataserver command to automatically recover changes that result from these commands. If you keep your scripts—files containing Transact-SQL statements—you can run them to re-create the changes. Otherwise, you must reissue each command against the rebuilt master database.
You should also keep a hard copy of syslogins. When you recover master from a dump, compare the hard copy to your current version of the table to be sure that users retain the same user IDs.
For information on the exact queries to run against the system tables, see “Backing up master and keeping copies of system tables” on page 24.
Truncating the master database transaction logSince the master database transaction log is on the same database devices as the data, you cannot back up its transaction log separately. You cannot move the log of the master database. You must always use dump database to back up the master database. Use dump transaction with the truncate_only option periodically (for instance, after each database dump) to purge the transaction log of the master database.
Avoiding volume changes and recoveryWhen you dump the master database, be sure that the entire dump fits on a single volume, unless you have more than one Adaptive Server that can communicate with your Backup Server. You must start Adaptive Server in single-user mode before loading the master database. This does not allow a separate user connection to respond to Backup Server’s volume change messages during the load. Since master is usually small in size, placing its backup on a single tape volume is typically not a problem.




共享共进共赢Sharing And Win-win Results
93815200 楼主

主题

0

回帖

29

积分

注册会员

积分
29
贡献
在线时间
小时
2005-11-24 10:48:07 | 显示全部楼层

上面的大哥,能不能搞点中英的,我英文不好,谢谢了。

[em06][em06][em06]
共享共进共赢Sharing And Win-win Results
flybean

主题

0

回帖

595

积分

管理员

积分
595
贡献
在线时间
小时
2005-11-24 11:15:57 | 显示全部楼层
上面的大哥,能不能搞点中英的,我英文不好,谢谢了。


请自行参考中文手册,章节都很清楚了。
共享共进共赢Sharing And Win-win Results
lllenxue

主题

0

回帖

28

积分

注册会员

积分
28
贡献
在线时间
小时
2007-9-27 18:46:22 | 显示全部楼层
顶一下
共享共进共赢Sharing And Win-win Results
您需要登录后才可以回帖 登录 | 站点注册

本版积分规则

免责声明:
本站所发布的一切破解补丁、注册机和注册信息及软件的解密分析文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To:Admin@SybaseBbs.com

QQ|Archiver|PowerBuilder(PB)BBS社区 ( 鲁ICP备2021027222号-1 )

GMT+8, 2024-5-5 02:28 , Processed in 0.053267 second(s), 7 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表