提供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 […]
2010-07-13 ASE15创建非聚簇索引时报数据缓冲内存不够 (0) 今天下午在solaris10 ASE15.0.3平台上批量创建非聚簇索引时,报下面的错误:
Msg 1526, Level 17, State 5: Server 'SYB_NFJD_TEST', Procedure 'sp_helpdb', Line 674: Sort failure. The configure size for data cache (default data cache) is not sufficient to handle the sort buffers (128) requested. Please reconfigure the data cache or sort buffers and try the command again. (return status = -7)
用命令:sp_helpcache "default data cache",发现高速数据缓冲大小为:8M,此为默认值。
执行命令将default data […]
2010-07-28 Oracle基本操作命令学习 (0) 创建表空间
create tablespace dultest datafile 'e:\oracle\oradata\orcl\dultest.dbf'
size 100m autoextend on next 100m maxsize unlimited
default storage(
initial 20M
next 20M […]
2010-02-25 MSSQLSERVER利用日志恢复drop table的表数据[转] (0) -- 创建测试数据库
CREATE DATABASE Db
GO
-- 对数据库进行备份
BACKUP DATABASE Db TO DISK = ' c:\db.bak ' WITH FORMAT
GO
-- 创建测试表
CREATE TABLE Db.dbo.TB_test(ID int )
-- 延时1秒钟,再进行后面的操作(这是由于SQL Server的时间精度最大为百分之三秒,不延时的话,可能会导致还原到时间点的操作失败)
WAITFOR DELAY ' 00:00:01 '
GO
-- 假设我们现在误操作删除了 Db.dbo.TB_test 这个表
DROP TABLE Db.dbo.TB_test
-- 保存删除表的时间
SELECT dt = GETDATE () INTO #
GO
-- 在删除操作后,发现不应该删除表 Db.dbo.TB_test
-- 下面演示了如何恢复这个误删除的表 Db.dbo.TB_test
-- […]
2010-09-21 Sybase ASE 判断字符串是否为日期和数字的两个函数 (0) Sybase ASE自版本15.0.2开始增加判断字符串是否为日期类型的函数:isdate,以及判断字符串是否为数字类型的函数:isnumeric
函数:isdate
Syntax
isdate(character_expression)
Parameters
character_expression
is a character-type variable, constant expression, or column name.
Usage
Returns 1 if the expression is a valid datetime value; returns 0 if it is not. Returns 0 for NULL input.
例子:
1> select isdate('12/21/2005')
2> […]
提供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