[1] on ASE 12.5.4 
select * into tempdb..loginaa16 from master..logins
go
then,use DBAartisan migrate tempdb..loginaa16 to HKCORP(80.17)'s tempdb
[2]on ASE 15.5 
insert into master..syslogins                       
                       
                             Both Oracle and Sybase provide a range of database-related products. The following list illustrates how the main high-level Oracle products compared to Sybase products. While this list is deliberately                       
                       
                             现在项目组使用的数据库是Sybase,之前都是用Oralce的,在熟悉Sybase时发现Sybase的资料还是很少的(尤其网上资料),摸索很长时间后才慢慢适应过来,闲余之时,总结了下Sybase IQ的使用心得,由于之前用的的Oralce,所以有的差异也是和Oralce作的比较。
希望能帮到Sybase初学者。
==================================使用                       
                       
                     
                             Sybase replication server seems like oracle GoldenGate.It's easier than GoldenGate.This article just show you how to install it on linux.Later,i'll write another article about how to configure it.
1.                       
                       
                             一:基本情况
环境:aix+ha+sybase 互备
起因:由于之前扩tempdb空间,在两台aix上建了相同的lv_tempdb名字,服务切换到同一台机器上,导致卷组不能激活,服务启动失败
处理办法:更改系统表sysdevices
停止sybase服务
使用chlv -n 重命名lv名字
启动syabase服务
除此还需两边导出卷组在重新导入,ha同步校验等
 
二:                       
                       
                              SQL 通过order by 自定义排序规则
现需按val3,val1,val2的顺序排序,直接操作的SQL语句 
在Sybase中,使用以下语句实现
 
SELECT table.col FROM table ORDER BY CASE table.col WHEN                        
                       
                     
                             【转】http://leeleo.iteye.com/blog/472066                       
                       
                     
                             SYBASE IQ 相关资料,
1 Sybase__IQ12.5_&12.6快速参考手册
2 Sybase_IQ_SQL开发指南针
3 sybase IQ 实用程序指南
4 Sybase_IQ_SQL开发指南_v1.1                       
                       
                             1 查询当前设备位置
Select * from sysdevices
2 在数据库中更改设备位置
use master 
go
sp_configure 'allow updates to system tables',1
go
update sysdevices set phyname='F:\master.dat' where name='master'
go
upda                       
                       
                             Resizing the database device is very simple in sybase ,only use disk resize command.But before,make sure that the physical device has enough space.If you use the file as the sybase database                        
                       
                             All of the software are source code in this article,so it's very troublesome when you install them.
Before
1.Make sure that you have already installed the Sybase ASE On SUSE Linux 11 SP2.
2.Downloa                       
                       
                              
Sybase for linux 安装
一安装
1 修改/etc/sysctl.conf文件调整操作系统共享内存参数
kernel.shmmax = 1024*1024*1024*0.75(75%计算)*8(8G内存)
sysctl –p 使更改生效
2 修改hosts文件,加入内网服务器ip 192.168.5.10 db
3 创建sybase用户
us                       
                       
                             This article  provides instructions for installing online help for Transact-SQL syntax.The $SYBASE/$SYBASE_ASE/scripts directory contains scripts for installing syntax help database:ins_syn_sql.
                       
                       
                             IBM Migration Toolkit (MTK) FAQ                       
                       
                     
                             Yestoday,i created any necessary raw devices with VXVM on linux and changed the permissions.After reboot,the permission of all raw devices are become to user root.Following steps is the original way t                       
                       
                             Over this article,you will be learn how to use raw devices as the sybase database devices.The sybase  recommand that you mirror the master device and don't specified the master as  the system default                        
                       
                              Sybase ASE 15.7使用响应文件静默安装
 
交代一下实验环境,HP DL580下安装RHEL 5.5,Sybase version:15.7
Sybase的安装目录为/opt/Sybase
Sybase的软件位置为/home/setup
Sybase属组用户都是新建sybase
 
下面我们开始使用响应文件来创建Sybase数据库
                       
                       
                             In this article,you'll be do following things on Sybase ASE:
■ Initializing Database Devices
■ Designating default devices
■ Mirrorring Database Devices
■ Creating And Dropping Database
■ Setting                       
                       
                             Sybase Central is a graphical user interface (GUI) management tool. Sybase Central accepts a variety of “plug-ins” that allow you to manage specific Sybase products. The Adaptive Server pl                       
                       
                              
This article only show you how to install sybase ASE on AIX.After fewer days i'll write more articles about sybase ASE daily management.If you want to download Sybase ASE software or patch,you                       
                       
                                   SQL SERVER 2008 采用链接服务器与远程Sybase数据库建立连接。访问接口用Sybase ASE OLE DB Provider,在测试连接时,提示:与链接服务器的测试连接失败。Microsoft SQL Server 错误:7302。多方查找没有确定原因。后来无意中发现访问接口Sybase ASEOLEDB Provider属性中                       
                       
                             实现批量充优惠券到会员卡中,其中先从ACCESS数据库中取需要充值的会员卡,再使用BDE连接SYBASE数据库,进行操作:一、DELPHI代码:procedure TForm1.btn2Click(Sender: TObject);beginif (edt1.Text='') or (edt2.Text='') thenbegin  ShowMessage('金额与备注不能为空');&n                       
                       
                     
                             在Sybase数据库创建表时,对于自动增长字段的写法示例:
drop table BFCRM.HYK_SJJLGOcreate table BFCRM.HYK_SJJL(JLBH      int         identity,HYK_NO                         
                       
                     
                             1.英特尔收购迈克菲
 时间:8月
 价格:76.8亿美元
 理由:将迈克菲安全软件与英特尔硬件整合在一起可为从智能手机到服务器,再到汽车等跨网络设备提供相同的内置式安全保护。
 ·英特尔76.8亿美元收购McAfee
 ·英特尔收购McAfee:与硬件无关
 ·英特尔77亿美元购McAfee十大影响:AMD或效法
 ·十大最具                       
                       
                             对当前master.dat  所在位置不满意,决定搬家试试。 首先停掉服务。拷贝master.dat
到新位置
然后对C:\sybase\ASE-12_0\install\RUN_XP.BAT
进行编辑,路径指向新位置。
 
手工执行RUN_XP.BAT 启动无误,但是【Sybase Central】无法用,再用【服务】,【Sybase
Central】结果都无法启                       
                       
                     
                             FROMBYTE FOR Sybase Recovery 是由北亚数据恢复中心独立研发,本软件可恢复以下故障:1.Sybase数据库只有设备文件(dat文件)2.Sybase数据库无法正常附加3.Sybase数据库标记为可疑,无法Online4.因为硬盘物理故障或其它原因导致设备文件出现坏块5.Sybase误Delete、Drop等操作6.查看表数据时出错本程序可以恢复Sybase ASE 11.                       
                       
                             根据收款台帐号以及流水码查询人员代码SELECT * FROM RYXX WHERE DEPTID IN (select DEPTID from XSJLC where SKTNO='049' AND JLBH=150735)--对应柜组下商品信息select B.DEPTID,B.DEPT_NAME,R.PERSON_NAME,R.RYDM,S.NAME,S.SPCODE from BFBHDD                       
                       
                     
                             1:ASE中有两种事务模式
a: Chained Mode
b:unChained Mode(Sybase默认)
unchained mode显示的开始一个事务,chained隐式的开始一个事务
unchained mode 使用'commint tran', 'rollback tran'
chained mode 使用'commint work ', 'rollback work'
                       
                       
                     
                             select u.suid,u.uid,u.name uname,o.id oid,o.name oname,o.type,c.id tid,c.colid,c.name cname,c.type,t.name tname,c.length from syscolumns c,sysobjects o,sysusers u,systypes twhere c.type=t.type  a                       
                       
                             提示1:
  如果有可能,在执行这个任务之前,请先做操作系统级SYBASE DEVICES的后备。UNIX操作系统可使用命令"dd"。因为如果disk reinit使用了错误的信息,那么,在执行了disk refit之后就会产生无法弥补的错误。倘若,存在一个SYBASE DEVICES的后备文件,将会给我们一个弥补的机会。例如:当disk reinit 使用了过小的size值,我们还可以重新恢复                       
                       
                      
  













 
                    

 
                