免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 17429 | 回复: 1
打印 上一主题 下一主题

ASE大讲堂:12.0/12.5用户,你运行sp_rebuild_text/dbcc rebuild_text了么 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-08-19 14:24 |只看该作者 |倒序浏览
本帖最后由 sybman 于 2013-08-19 14:30 编辑

只有从更老版本升级上来的用户,并且数据库中包含了TEXT/IMAGE类型的数据列,才需要关注这个问题, 否则可以无视.


原文地址:  http://blog.chinaunix.net/uid-26548424-id-3853644.html


最近凑巧发现了这个有点年头的note, 感觉对依然使用老版本ASE的用户来讲还蛮有用的, 特此分享一下,
兴许能够帮助大家修复这个问题.

文章出处 : http://www.sybase.com/detail?id=1013522


Avoiding TEXT and IMAGE Problems With ASE 12.0 and 12.5

If you have upgraded databases containing text and image data and have installed 12.0.0.3 ESD 1 or 12.5 ESD 1, follow these recommendations to avoid further index corruption problems.      


  
  
Summary
If you have upgraded databases containing text and image and have applied either 12.0.0.3 ESD 1 or 12.5 ESD 1, follow these recommendations to avoid index corruption problems.

Contents
This TechNote contains the following sections:
•Background

•Before Rebuilding

•Rebuilding text and image Columns




Background
Several problems have been found with how ASE handles text and image data in databases upgraded to ASE version 12.0 or 12.5. For background, please review these two Technical Documents before continuing:
roblems Affecting TEXT data Following Upgrade to ASE 12.0

•Loss of text/image Index Information in Upgraded Databases Could Lead to Access Errors in ASE 12.0 and 12.5




If you have experienced these issues and have applied one of the following EBFs:
•12.0.0.3 ESD 1

•12.5 ESD 1




follow the procedures outlined below to avoid any further problems.

Before Rebuilding
After installing the EBF containing the fix to the text and image problem, you need to rebuild your columns to update the nodes/cached page value. These values (called stnodes) are used by the server like indexes to allow random access to text/image data.

Because all of the text/image columns on a server must be rebuilt at one time, you need to schedule this activity carefully. The amount of time needed to rebuild could be considerable and depends on system performance, the total number of text/image pages and the number of tables to be rebuilt.

If you are unable to perform the rebuild as soon as you install the EBF, Sybase recommends that you enable the new 7109 trace flag and use it until you have rebuilt the text/image columns.

See the Technote Loss of text/image Index Information in Upgraded Databases Could Lead to Access Errors in ASE 12.0 and 12.5 for more information on Trace Flag 7109.

Rebuilding text and image Columns
A new stored procedure sp_rebuild_text has been provided to enable the rebuild of an entire database with one command. The procedure sp_rebuild_text is a wrapper around dbcc rebuild_text that makes it easier to rebuild the text nodes/cached page values (stnodes) for a whole database. Since dbcc rebuild_text is a minimally logged operation you need to dump each database before continuing with normal transaction log dumps.

Follow these steps when you are ready to rebuild the text/image index structures:
1.Re-boot the server without the 7109 trace flag.

2.Set select into/bulkcopy on for every database.

3.Run sp_rebuild_text in each database.

4.Reset the database options to their original settings.

5.Run dbcc textalloc("full", "fix"

6.Dump each database.

7.Return the server to normal operations.

论坛徽章:
0
2 [报告]
发表于 2013-08-19 14:33 |只看该作者
单位的系统里,木有用text,image字段。。
关于ASE  HA 的方案,求大大指点一二~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP