分类: Sybase
2007-12-25 11:46:46
1,Install require RPM package
rpm -ivh sybase-common-
rpm -ivh sybase-ase-
rpm -ivh sybase-efts-
rpm -ivh sybase-openclient-
RPMS/sybase-openserver-
rpm -ivh sybase-esql-
rpm
-ivh sybase-doc-
rpm -ivh sybase-doc-
2, make soft link sybase12 to OCS
[root@icilszxwww opt]# ls -l sybase12
lrwxrwxrwx 1 root root 11 Dec 25 10:35 sybase12 -> sybase-12.5
3, export SYBASE, DSQUERY etc.
Add lines to /etc/bashrc
export SYBASE=/opt/sybase12
PATH=${SYBASE}/OCS-12_5/bin:${SYBASE}:${JAVA_HOME}/bin:${JRE_HOME}/bin:${PATH}:{HOME}/bin
4, if you system report below error.
[root@icilszxwww install]#
/opt/sybase12/OCS-12_5/bin/isql
The context allocation routine failed when
it tried to load localization files!!
One or more following problems may caused
the failure
Your sybase home directory is
/opt/sybase12. Check the environment variable SYBASE if it is not the one you
want!
Using locale name "en_US.UTF-8"
defined in environment variable LANG
Locale name "en_US.UTF-8" doesn't
exist in your /opt/sybase12/locales/locales.dat file
An error occurred when attempting to allocate localization-related structures.
Solution:
Add proper line look like below line to file /opt/sybase12/locales/locales.dat
[linux]
locale = en_US.UTF-8, us_english, iso_1
5. follow the Sybase document install a Sybase server and publish interfaces file