谢谢!
关于Sybase ASE的问题与解答如下:
1、如何给ASE中的单个用户设置90天密码有效?
答:可以通过下面的命令更改某帐号的口令有效期时间 sp_modifylogin loginame , "passwd expiration", value
口令的有效期(以天为单位),可以是介于 0 和 32767 之间的任何值,且包括 0 和32767。
更详细的资料可以参见参考手册中 sp_modifylogin 存储过程的介绍
2、在ASE15中,可以创建多少个数据库设备?
答:在 Adaptive Server 15.0 之前的版本中,虚拟页是在内部以 32 位整数格式描述的:第一个字节存放设备号 (vdevno),随后的三个字节描述设备中的页偏移(虚拟页数,以 2K 字节为单位)。这种体系结构将设备数限制为 256,将每个设备的大小限制为 32 千兆字节 — 整个服务器的最大存储限制为 8 TB。在 Adaptive Server 15.0 中,设备号和页偏移以独立的 32 位整数存储。新的体系结构最多允许创建 2,147,483,647 个磁盘设备,每个磁盘设备大小最大为 2,147,483,648个2K块或4TB。现在,必须从 sysdevices 和 sysusages 的vdevno 列中获取设备标识符。这些表的 high、low 和 vstart 列不再存储设备号和虚拟页号,而只存储虚拟页号
3、在ASE中,如何online engine?
答:1)参数配置:版本ASE125之前,sybase server有参数 min online engines和 max online engines来实现对操作系统cpu的有效利用。通常我们配置max online engines为dataserver所使用的cpu数,该值不能大于os有效的cpu数。当启动servser时,sybase自动启用engine数是’max online engine’所配置的cpu个数。
配置方法:sp_configure ‘max online engine’,n
在版本ASE12.5,sybase server 取消了参数 min online engines,增加了 number of engines at startup。max online engines不再决定server启动时所启用的cpu数,而是由number of engines at startup来决定,但是number of engines at startup不能大于os有效的cpu数,同时不能大于max online engines的配置值。
配置方法:sp_configure ‘number of engines at startup’,n
配置方法:sp_configure ‘max online engine’,n
2)存储过程:在ASE12.5版本之后,我们可以使用存储过程 sp_engine 来 online/offline engine。语法为:
sp_engine {"online" | [offline | can_offline] [, engine_id] | ["shutdown", engine_id]}
例如,要online engine 1,则 1> sp_engine “online”,1 2> go
4、咨询ASE中各系统角色的权限?
答:dtm_tm_role 两阶段提交DTM选项功能管理权限
ha_role HA选项功能管理权限
js_admin_role Job Scheduler任务的管理权限
js_client_role Job Scheduler任务的执行权限
js_user_role 在Job Scheduler中创建和运行job的权限
messaging_role 可以运行msgsend和msgrecv函数
mon_role 可以访问ase的monitor表,这些表以mon开头
navigator_role 用于 navigation server或者sybase MPP组件
oper_role 系统操作员,执行数据库dump/load
replication_role replication server 管理权限
sa_role ase系统管理员
sso_role ase系统安全员
sybase_ts_role sybase技术支持角色
5、关于ASE15的License常见问题解答?
答: 1)下载的license文件放到哪里?
放在目录下:
$SYBASE/SYSAM-2_0/licenses
然后启动:
sysam start(如果选择使用server类型license)
再启动:
ASE
2)报错:“Future license file format or misspelling in license file”
license文件格式有问题,将license文件中最后的空行和小方格删除,server启动成功。
3)数据库无法检索到license
请在启动ASE之前先用安装SYBASE的用户登陆操作系统,用命令sysam start来启动license server,然后再启动数据库服务器。
4)用户的license不能使用
由于hostid的信息不准确造成license无法使用。请执行$SYBASE/SYSAM-2_0/bin/lmutil lmhostid得到hostid的信息,用这个信息重新生成一个新的license。
5)用户的license不能使用
License文件是对的,起不来的原因是server的master库是从开发版ASE下直接拷贝过来的,因此在ASE-15_0/sysam/servername.properties文件中记载着PE=DE,LT=DT等开发版的信息,这些信息跟license文件中的相应信息对不上,所以server起不来。
请将servername.properties中的PE和LT改成跟license文件一致,然后重新启动server。
6)用户的license不能使用,报错:
SySAM: Failed to obtain 1 license(s) for ASE_CORE feature with properties 'PE=EE;LT=SV
将ASE-15_0/sysam/servername.properties文件中的项改为与文件 .lic 中的项匹配.
7)日志中报一些信息:
serverAdaptive Server Enterprise User Connection Report.
serverMaximum number of User Accounts during current sample period: 8.
serverMaximum number of User Accounts since startup: 8.
serverMaximum Configured Number of User Connections during current sample period: 400.
serverMaximum Configured Number of User Connections since startup: 400.
serverMaximum Number of User Connections during current sample period: 13.
serverMaximum Number of User Connections since startup: 47.
serverMaximum number of user seat licenses used during current sample period: 3.
serverMaximum number of user seat licenses used since startup: 7.
这些信息只是sybase的一些监控信息,对系统的运行没有任何危害。
如果不想再显示这些信息,可以考虑关闭此参数,做以下设置: sp_configure "license information",0
8)初始化设备报错,不能超过5G
当使用 Express Edition license 时, 不能超过license 限制,硬盘空间 5G.
9)报错: license for 1 ASE_CORE (2006.0517) will expire Mon Apr 30 09:18:25 2007.
启动license server后重启ASE.
10)在安装sybase15.0.1补丁时遇到如下错误提示,请问是何原因引起?
Failed to obtain 1 license(s) for ASE_CORE feature with properities ‘PE=EE; LT=SR’
Installer unable to checkout a suitable Adaptive Server Licese
Do you want to continue without the license?
Adaptive server may not start without a suitable license
在ASE-15_0/sysam/下面的servername.properties文件中应该记载了PE=...,LT=....等信息,这些信息同样也记录在license文件中。出现这个问题的原因是servername.properties文件中的信息与license文件中的信息不一致。
请修改servername.properties文件中的PE和LT,改成跟license文件一致。
11)正在使用的为开发版,有用户数的限制,等正式产品到货时还用重装吗?
不用,装入license就可以.
6、什么是Sybase ASE CE产品?
答:Sybase ASE CE产品是 ASE Cluster Edition的缩写,是支持集群方式的Sybase数据库产品。它不同于以往的ASE产品,是由多个“实例”协同管理一组数据,从应用角度看,如同一个系统。另外,与集群相关的软件就在ASE中,无需调用操作系统的集群软件。同时具备均衡负载的能力,其均衡负载可以由用户调节,设定灵活的负载均衡方式。
7、ASE CE是为了提高性能吗?
答: 数据库集群和硬件系统集群不只为了提高性能,主要是解决可用性和可管理性问题的。可用性问题是改进快速的数据库恢复能力和active-active的解决方案。可管理性就是易于安装、配置、运营管理和负载管理的能力。Sybase ASE CE增加了逻辑集群的概念,使得不同的应用模式作用于不同的逻辑集群,这样便于管理和灵活配置。
http://www.sybase.com.cn/gvswse/site/china/Ind_3swordman.htm