提供Sybase ASE及Sybase SQL Anywhere数据库修复服务,电话:13811580958(微信),QQ:289965371!We have many years of experience in recovering data from damanged Sybase devices. Contact us by Phone: +86 13811580958 Wechat: 13811580958 Email: 289965371@qq.com
2011-12-01 oracle11g报TNS-12537和ORA-609问题的解决 (0) 在CentOS5.5 x86_64上安装了Oracle11g,版本号为:11.2.0.1.0
但是,在其它客户端上使用sqlplus连接的时候需要等待很长时间才能连接上,有时候报超时的错误。
错误信息为:
***********************************************************************
Fatal NI connect error 12537, connecting to:
(LOCAL=NO)
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.1.0 - […]
2011-12-01 linux使用date计算某个月份的天数 (0) 本博客中aix系统可以用改变时区的方法获取前后N天的日期
Linux下使用date计算某个月份的天数:
Month=2
Year=2008
nextmonth=`date -d "1 month $Year-$Month-"01"" +%Y-%m-%d`
date -d "-1 day $nextmonth" +%d
#或者将-d "1 month $Year-$Month-"01"" 和 date -d "-1 day $nextmonth" 写在一行命令中
Month=2
Year=2008
date -d "1 month $Year-$Month-"01"" -d "-1 day" +%d
使用cal 计算某个月份的天数:
Month=2
Year=2008
cal $Month $Year | sed -n '3,$p' | […]
2010-12-15 Linux 5下安装oracle开始遇见的错误 缺少包libXp-1.0.0-8.i386.rpm (0)
在运行./runInstaller时出现的错误
错误一:
/tmp/OraInstall2007-12-30_02-16-11PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred.
原因是:缺少支持打印的图形化动态链接库libXp.so.6
这个错误是由于缺少系统安装包,在RHEL5以前的版本,可以安装xorg-x11-deprecated-libs包即可,这个安装包可以在系统光盘第三张盘中找到(对于redhat as4.2以前,redhat as4.4是在第四张安装光盘)
我下载的文件如下:
xorg-x11-deprecated-libs-6.8.2-31.i386.rpm
我用的是redhat 5,在5中 被libXp-1.0.0-8.i386.rpm替代了,所以从安装盘中找到这个文件,
rpm […]
2010-11-25 平台数据库迁移linux >windows (0) linux x86 平台上的 ASE15.5 的 dat文件,拷贝到windows x86 平台上的ASE15.5中,是可以使用的。
只需要简单的修改master.dat中的device路径即可。 通过更改sysdevices的phyname来实现。
将sysdatabases系统表中status - 64
之后, 利用dbcc checkdb,dbcc checkalloc,dbcc checkcatalog 检查各个数据库。 没有错误。
说明: linux平台和windows平台的dat文件是通用的。 […]
2009-12-18 在linux5.4enterprise下安装sybase成功 (0) 昨天下午到现在已成功实现在linux 5.4 Enterprise下安装两个版本sybase数据库。ase12.5.4和ase15.0.3
两个版本的数据库使用不同的账户创建,并且已经配置了开机自动启动和关机自动结束服务。
ln -s /etc/init.d/autostartsyblinux /etc/rc5.d/S98autostartsyblinux
vi /etc/init.d/autostartsyblinux
su - sybase -c /etc/init.d/startsyblinux
vi /etc/init.d/startsyblinux
cd /sybase/ASE-12_5/install
startserver -f RUN_syblinux -f RUN_syblinux_bs
-------------------------------------------------------------------------------------
ln -s […]
2013-09-16 ASE从表中随机选择数据的三种方法 (0) mark:
rand2() ASE 15.0.2
newid() ASE 12.5.1
rand() Any Version
set rowcount N
select * from table order by rand(convert(int,row1)+datepart(ms,getdate()))
set rowcount 0
2009-12-08 将tempdb从master设备中转移时出现逻辑页面读取错误问题的解决 (0) 本文介绍我遇到的将tempdb从master设备上移走时出现的逻辑页面读取错误问题的解决方法。
sybase版本为:Adaptive Server Enterprise/15.0.3/EBF 16550 ESD#1/P/NT (IX86)/Windows 2003/ase1 503/2680/32-bit/OPT/Thu Mar 05 00:21:40 2009
开始时tempdb在master和tempdbdev两个设备上都放置数据和日志,如下:
1> select *from sysusages
2> where dbid =2
3> go
dbid segmap lstart size […]
2013-12-07 ASE查看表扫描的一种方法 (0) 1) 打开抽象查询计划备份
sp_configure "abstract plan dump",1
2) 查找表扫描的语句
sp_find_qplan '%t_scan%'
或者
use db_name
go
select a.id,a.hashkey,a.text
from sysqueryplans a
inner join sysqueryplans b on a.id=b.id and a.hashkey=b.hashkey
where a.type=10
and b.text like '%t_scan%'
3) 查看语句的查询计划
根据上面步骤中得到的SQL ID,执行sp_help_qplan @id
4) 关闭抽象查询计划备份
sp_configure "abstract plan […]
提供Sybase数据库远程及现场技术支持
提供Sybase ASE和ASA数据库修复服务
QQ :289965371
Email:
电话:(微信)
We supply technical support for Sybase ASE and Sybase SQL Anywhere, also have many years of experience in recovering data from damanged Sybase devices.
Please contact us:
Phone:
Wechat: 13811580958
QQ: 289965371
Email: 289965371@qq.com
提供7*24专业Sybase数据恢复、性能优化、迁移升级、紧急救援等服务,
Sybase ASE及Sybase SQL Anywhere数据库修复服务,
电话:(微信),
QQ :289965371
Email:
We supply technical support for Sybase ASE and Sybase SQL Anywhere, also have many years of experience in recovering data from damanged Sybase devices.
Please contact us:
Phone:
Wechat: 13811580958
QQ: 289965371
Email: 289965371@qq.com