RHEL5.8 Installing Sybase 15.7_x86_64

Source: Internet
Author: User
Tags sybase sybase database tmp file

RHEL5.8 installing Sybase 15.7
If you are running RHEL 5 or later, use the following settings:
Kernel.exec-shield = 0
Kernel.randomize_va_space = 0
The following hotfixes are required for the GUI components to work correctly:
Xorg-x11-libs-6.7.0-2
? openmotif-2.2.3-6
The following variable settings are required for Adaptive Server:
For GLIBC version 2.4, set Ld_pointer_guard to 1
For glibc version 2.5, set Ld_pointer_guard to 0

1. Check the Linux operating system version and processor bit number
[Email protected] rhel_5.8 x86_64 dvd]# getconf long_bit
64
[Email protected] rhel_5.8 x86_64 dvd]# cat/etc/issue
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
Kernel \ r on an \m

[Email protected] rhel_5.8 x86_64 dvd]# uname-r
2.6.18-308.el5

2. Install system Patches
2.1 at RHEL5.0 update1 require at least: Kernel-2.6.18-53.1.13.el5 and glibc-2.5-18.
The kernel in this machine: 2.6.18-308.el5 above the required kernel-2.6.18-53.1.13.el5, through the system core requirements.

2.2 Check the installation package again: Does the glibc-2.5-18 meet the criteria?
[Email protected] rpm]# Rpm-qa | grep glibc
glibc-devel-2.5-81
glibc-utils-2.5-81
glibc-common-2.5-81
glibc-devel-2.5-81
glibc-2.5-81
glibc-headers-2.5-81
glibc-2.5-81

The machine has been installed with glibc-2.5-81 above the required glibc-2.5-18, by checking.
We recommend configuring the local Yum source, using the Yum command to install xorg, the OPENMOTIF program
The following patches are required for the 2.3 GUI components to work: Xorg-x11-libs-6.7.0-2 and Openmotif-2.2.3-6
First to check if the existing system packages meet the requirements?
[Email protected]/]# Rpm-qa openmo*
Openmotif22-2.2.3-18
Components already installed in the system: openmotif22-2.2.3-18 higher than required openmotif-2.2.3-6, without installing patches again.
Use RPM to detect the system is not installed patch xorg-x11-libs-6.7.0-2, to the Internet to download or query the system installation disk. To perform an installation download of the system patch: xorg-x11-libs-6.8.2
-1.el.13.37.7.i386.rpm.
[Email protected]/]# RPM–IVH a xorg-x11-libs-6.8.2-1.el.13.37.7.i386.rpm


3, modify the system kernel parameters
Appends a parameter to the end of the/etc/sysctl.conf file.
#vi/etc/sysctl.conf
Kernel.shmall = 2097152
Kernel.shmmax = 4294967295
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Fs.file-max = 65536
Kernel.exec-shield = 0
? kernel.randomize_va_space = 0

#/sbin/sysctl–p (make/etc/sysctl.conf Effective)

Hint, there are usually three items in the above parameters that we need to change, namely Kernel.exec-shield, Kernel.randomize_va_space, Kernel.shmmax. The parameter Kernel.shmmax is recommended to be set to
Half of the physical memory.

4. Add a group and account for Sybase users
#groupadd –g Sybase
#useradd –g sybase–g sybase-d/sybase-s/bin/bash–u 200–m Sybase
#passwd Sybase//* To modify the password for a Sybase user
#mkdir the device file usage path for the –p/sybdata//*sybase database
#chown –R Sybase:sybase/sybase
#chown –R Sybase:sybase/sybdata
#mount/dev/sdb2/sybdata//* Data file directory (shared storage)

5. Enlarge/tmp File system space
Since Sybase writes files to the/tmp file system during the installation process, it is best to ensure that the/TMP file system size is 1G.


6. Adjust Sybase environment parameters
Add the following statement in the/sybase/.bash_profile file
#su –sybase
$vi. Bash_profile
Export Lang=c
Ulimit-u 16384-n 65536
Umask 022

7. Add the following statement in the/etc/security/limits.conf file:
Sybase Soft Nproc 2047
Sybase hard Nproc 16384
Sybase Soft Nofile 1024
Sybase hard Nofile 65536

Add the following statement in the/etc/pam.d/login file:
Session required/lib/security/pam_limits.so

Ii. installation of the Sybase program
Gunzip ase157_linuxx86-64.tgz
TAR-XVF Ase157_linuxx86-64.tar

[[email protected "/]# xhost +
[[email protected]/]# Su- Sybase
[[email protected] ~]$
[[email protected] sybase15.7]$ ls
ase-fdt-list.pdf Archives Setup.bin sysam_utilities
sybase-fdt-master.pdf sample_response.txt sysam_setup
[[email protected "sybase15.7]$./setup.bin    --after unpacking the installation package, log in as a Sybase user and execute the command
... The following graphical interface installation omits
note:
1, select the directory that was established when installing to create Sybase users during installation:/sybase, do not use the default installation directory
2, choosing Custom Custom Installation
Select the components that will be installed, the components that the installer chooses to install by default include: Database engine, open client, ODBC, JDBC interface, Asset Management Pack (SYSAM), interactive SQL,
Sybase Central and so on. These components are best preserved during installation. More than the default multi-select Job Scheduler and Chinese Language Module. Click Next,
3, select Install free Developer Edition of Sybase Adaptive Server Enterprise Suit

4. Set environment variables for Sybase users after installation is complete
The environment variables that are required to add Sybase ASE to Sybase users. Because the values of these environment variables are generated based on the configuration information during the installation process. Therefore, to import the user profile after the installation is complete.
[Email protected] ~]# su-sybase

[[Email protected] ~] #cat sybase.sh >>. bash_profile

The following is an environment variable in the sybase.sh file for reference.
[email protected] ~]$ cat sybase.sh
#
# Sybase PRODUCT Environment variables
#
Sybase_jre6_32= "/sybase/shared/jre-6_0_24_32bit"
Export SYBASE_JRE6_32
sybase_jre6= "/sybase/shared/jre-6_0_24_64bit"
Export Sybase_jre6
sybase_jre6_64= "/sybase/shared/jre-6_0_24_64bit"
Export sybase_jre6_64
Sybase_ocs= "Ocs-15_0"
Export Sybase_ocs
Include= "/sybase/ocs-15_0/include": $INCLUDE
Export INCLUDE
Lib= "/sybase/ocs-15_0/lib": $LIB
Export LIB
Path= "/sybase/ocs-15_0/bin": $PATH
Export PATH
Ld_library_path= "/sybase/ocs-15_0/lib:/sybase/ocs-15_0/lib3p64:/sybase/ocs-15_0/lib3p": $LD _library_path
Export Ld_library_path
Path= "/sybase/uaf-2_5/bin": $PATH
Export PATH
Sybase_ua= "/sybase/uaf-2_5"
Export Sybase_ua
Sybase_platform= "Linux"
Export Sybase_platform
Ld_library_path= "/sybase/dataaccess/odbc/lib": $LD _library_path
Export Ld_library_path
Ld_library_path= "/sybase/dataaccess64/odbc/lib": $LD _library_path
Export Ld_library_path
scroot= "/sybase/shared/sybcentral600"
Export Scroot
Path= "/sybase/dbisql/bin": $PATH
Export PATH
sybroot= "/sybase"
Export Sybroot
Path= "/sybase/asep/bin": $PATH
Export PATH
Sybase= "/sybase"
Export SYBASE
Sybase_ase= "Ase-15_0"
Export Sybase_ase
Path= "/sybase/ase-15_0/bin:/sybase/ase-15_0/install": $PATH
Export PATH
Sybase_jre_rtds= "/sybase/shared/jre-6_0_24_64bit"
Export Sybase_jre_rtds
Ld_library_path= "/sybase/ase-15_0/lib": $LD _library_path
Export Ld_library_path
ld_pointer_guard= "0"
Export Ld_pointer_guard
Sybase_ws= "Ws-15_0"
Export SYBASE_WS
Path= "/sybase/ase-15_0/jobscheduler/bin": $PATH
Export PATH


Add export lang=c and export Dsquery=servername//servername to the default server name as appropriate

5. Startup and shutdown of the database
Start the database:
[[email protected]/] #cd/sybase/ase-15_0/install
[Email protected]/]#./startserver-f run_rhel202

To connect to a database:
[[email protected]/] #isql-usa-p-srhel202

To close the database:
1>shutdown
2>go

RHEL5.8 Installing Sybase 15.7_x86_64

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.