随笔 - 20  文章 - 1 评论 - 30 trackbacks - 2

错误信息:
Msg 1105, Level 17, State 1:
Can't allocate space for object 'table_n1' in database
'sybdb' because the 'default' segment is full. If you ran out of
space in syslogs, dump the transaction log. Otherwise, use ALTER
DATABASE or sp_extendsegment to increase the size of the segment.

 

Sybase 的解决方案
http://www.sybase.com/detail?id=2887
以下有些步骤我没有尝试,在生产系统上改变segment的映射风险太大了.正在寻求好的解决办法
----------------------------------------------------------------
Error 1105 While Building the System Procedures Database During 10.x to 11.x Upgrade

If you used alter database to increase the size of the sybsystemprocs database, you may need to manually extend the log segment. Alter database extends only the data segment, resulting in an 1105 out-of-space error for the log.

 

Contents
The Upgrade Phase Where the Problem Occurs
The installation utility sybinit performs the following upgrade phases:

Phase I: Running the preupgrade check and booting the 11.0.x SQL Server
Phase II: Upgrading system and user databases
Phase III: Remapping compiled objects (4.9.2 only)
Phase IV: Running scripts to build the master, model, and stored procedure databases
This technotes describes a problem which may occur when sybinit runs the installmaster script during Phase IV.

Description of the Problem
System 11 requires you to increase the size the stored procedure database by at least 3MB from its System 10 size. You can do this by using the alter database command to extend the database onto a new device fragment.
However, the alter database command extends only the system and data segments onto the new device, not the log segment. None of the new space is devoted to the transaction log, so you may run out of log space during upgrade.

This problem occurs only on 10.x upgrades; during 4.x upgrades, the upgrade process builds a new stored procedure database.


Sample sybinit Error Log
The following is a fragment of a sybinit error log showing an 1105 out-of-space error while running installmaster:
02/24/97 02:40:52 PM Installing Sybase system stored procedures 02/24/97 02:57:53 PM SQL Server message: msg 1105, level 17, state 3 02/24/97 04:00:51 PM SERVER ERROR: "Can't allocate space for object `syslogs' in database `sybsystemprocs' because the `logsegment' segment is full. If you ran out of space in syslogs, dump the transaction log. Otherwise, use ALTER DATABASE or sp_extendsegment to increase the size of the segment." 02/24/97 04:00:54 PM SQL Server message: msg 1141, level 26, state 1 02/24/97 04:01:07 PM SERVER ERROR: "Unexpected value returned to page manager routine: 0." 02/24/97 04:01:09 PM CONNECTIVITY ERROR: Error sending SQL to server `REL1002'. 02/24/97 04:01:10 PM CONNECTIVITY ERROR: DB-Library error: `DBPROCESS is dead or not enabled.'. 02/24/97 04:01:13 PM Task failed: install system stored procedures. Terminating configuration.

Workaround
To recover from this failure, you need to change the segment label of the new fragment. You do this by changing the value in the segmap column of the sysusages system table from 3 to 7. (The segmap is a numerical value that indicates the type of data to place in the database fragment.) Follow these steps to change the segmap value of the new fragment of the stored procedures database to allow log data to be placed there:

At this point, your 11.0.2 SQL Server has been started and is running. Use isql to connect to it, then enter:
1> sp_configure "allow updates", 1

2> go


Check the sysusages system table before making any changes.

1> select * from sysusages

2> where dbid=db_id(`sybsystemprocs')

2> go


Substitute the correct stored procedure database name on PC platforms.
In the segmap column, a value of 3 means that the segment contains data, 4 means log, and 7 means both log and data. You will probably see a segmap value of 3 for the stored procedures database on the new device.


Change the segmap value of the new stored procedures database fragment from 3 (data only) to 7 (data and log):
1> begin tran

2> go


1> update sysusages

2> set segmap = 7

3> where dbid = db_id(`sybsystemprocs')

 and segmap = 3

4> go


If the output says that only one row is affected, enter:

1> commit tran

2> go


If more than one row is affected, enter:

1> rollback

2> go

 

--------------------------------------------------------------------------------
WARNING!
If you are not able to correct the segmap value at this point, or have any questions about the procedure, stop and call Technical Support. Updates to system tables are usually advised against; however, this workaround is necessary to continue the upgrade without rebuilding the stored procedures database.
--------------------------------------------------------------------------------

Shut down, then restart the 11.0.2 SQL Server.

--------------------------------------------------------------------------------
WARNING!
Be careful to start the 11.0.2 SQL Server using the 11.0.2 RUN_SERVER file. Starting an earlier version of SQL Server after the databases have been upgraded to 11.0.2 causes corruption in the log. If this happens, you must restore your 10.x SQL Server from dumps and repeat the upgrade.
--------------------------------------------------------------------------------

Run the installmaster and installmodel scripts. At the operating system command line, enter:
UNIX:


isql -Usa -Psa_password -i$SYBASE/scripts/installmaster


isql -Usa -Psa_password -i$SYBASE/scripts/installmodel


VMS:


isql /usr=`sa' /password=` '

 /input=SYBASE_SYSTEM:[sybase.scripts]installmaster


isql /usr=`sa' /password=` '

 /input=SYBASE_SYSTEM:[sybase.scripts]installmodel


The upgrade is now complete.
--------------------------------------------------------------------

 

 

posted @ 2005-02-06 10:54 xpoint 阅读(700) 评论(0) 编辑
 

Sybase SQL Server 11.0.x 调优方案... (未完成)

一些基本概念
性能衡量的指标

1.        响应时间 :完成单一任务所用的时间

2.        吞吐量 一段固定时间内完成的工作量

如何加快响应时间?

1.        减少资源的竞争和等待时间,特别是I/O时间

2.        使用快的组件,SQL Server应用环境分为几个层次

服务器层:内存,CPU,封锁操作,tempdb使用。

数据库层:表的设计,索引的创建和使用,磁盘IO的管理以及设备的使用。

应用层:TSQL查询的优化,应用级的封锁,事务以及游标的使用等。

如何提高吞吐量?

其它因素

1.        良好的数据库设计

2.        全面的查询分析和合适的索引

3.        SQL Server的优化器和网络以及硬件

调优工具

系统表:

一些系统表中Type的含义:

S-系统 U-用户表 P-存储过程 L-日志 R-规则 D-默认 TR-触发器

 

系统过程:

Sp_lock [spid1,[spid2]] 进程持有的锁

Sp_monitor 报告SQL Server的统计信息

 

Set选项

Set statistics io on|off 是否显示逻辑或物理读写的次数

Set statistics time on|off 是否显示每一个命令进行语法分析和编译的时间

Set statistics subquerycache on|off 是否显示缓冲区碰撞的数目和每一个子查询在缓冲区的数据行数

Set noexec on|off 是否执行SQL语句

Sp_sysmon:产生SQL Server 的活动报表

 

ShowPlan的使用

posted @ 2005-01-26 09:08 xpoint 阅读(224) 评论(0) 编辑
今天在一台 Window 2000 Server + SP4上安装 Office 2000,总是不能成功,提示安装中止.
www.microsoft.com 上转了一圈,发现在Server 上安装Office 2000要使用一个orktools.exe
的工具进行自定义安装.

Office 2000自带的.MSI在Server上有些问题.Microsoft.com 的KB中有介绍.

在Server的终端模式下安装时要先切换到安装模式:
命令窗口 中 输入 change user /install

工具在这里下载:
orktools.exe

有一篇文章详细介绍了安装的过程:
Win2000 server上安装Office 2000
posted @ 2004-12-29 11:46 xpoint 阅读(311) 评论(2) 编辑
 
http://gmail.google.com 
带你认识GMAIL功能
~需要邀请可以给我发邮件~


 

http://www.threedegrees.com
MSN官方音乐P2P共享软件threedegrees 3度全攻略


 
http://mywallop.com
神秘!微软社会性网络-Wallop试用
~需要邀请可以给我发邮件~

 
http://spaces.msn.com
 体验MSN Spaces带来的惊喜
posted @ 2004-12-15 12:17 xpoint 阅读(304) 评论(1) 编辑

我最早注册的邮箱就是网易的了,大概是96年,那时后网易的总部还在广州~,网易的邮箱也是我日常使用最频繁的邮箱~
虽然www.163.com的免费升级到了1.5G,但是还没有原来8M的好用,不敢想象使用大附件的情形.


今天,无奈之中又使用www.21cn.com的mail服务了,发现居然很快~

posted @ 2004-12-10 20:44 xpoint 阅读(765) 评论(0) 编辑
posted @ 2004-10-11 17:52 xpoint 阅读(173) 评论(0) 编辑
posted @ 2004-09-30 21:06 xpoint 阅读(400) 评论(0) 编辑
posted @ 2004-09-24 14:01 xpoint 阅读(1232) 评论(1) 编辑
posted @ 2004-09-04 20:21 xpoint 阅读(438) 评论(10) 编辑
posted @ 2004-08-10 10:47 xpoint 阅读(282) 评论(0) 编辑
仅列出标题  下一页