Apahce+mod_jk+Tomcat的Loadbalancer配置
测试了一天,终于可以工作了,配置大致如下:
Apache2.2+moj_jk1.2+tomcat5.5.9
>>>>>>
如何将SQLServer的Table Name改为大写
在将SQLServer的数据迁移到Oracle时,常常会碰到一个这样的问题,SQLServer的表格名称是小写的,但Oracle默认是大写的,如果未做特别处理的话,SQLServer和tblIpaddr导到Oracle里变成了"tblIpaddr" (有引号,Oracle区别大小写,与TBLIPADDR有区别),所在,需要在迁移前,将SQLServer的所有表格名改为大写:
EXEC sp_configure 'allow updates',1 RECONFIGURE WITH OVERRIDE
go
UPDATE sysobjects SET name=upper(name) WHERE type='U';
go
EXEC sp_configure 'allow updates',0 RECONFIGURE WITH OVERRIDE
go
---------------------
以上方法只适合于SQLServer2000,SQLServer2005不允许直接更改系统表,以下SQL兼容2000和2005:
DECLARE @oldTName varchar(50)
DECLARE @newTName varchar(50)
--Author: ipaddr, 鱼漂
DECLARE tableList CURSOR FOR
SELECT name FROM sysobjects WHERE type='U' ORDER BY name
OPEN tableList
FETCH NEXT FROM tableList INTO @oldTName
WHILE @@FETCH_STATUS=0
BEGIN
SET @newTName=upper(@oldTName)
EXEC sp_rename @oldTName,@newTName
FETCH NEXT FROM tableList INTO @oldTName
END
CLOSE tableList
DEALLOCATE tableList