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