Install Sybase in Linux

Source: Internet
Author: User
1. Software Package preparation 1. Download sybaseforlinux installation package ase1502_xe_linux.tgz2, ftp upload and download installation package 3. chownroot. rootase1502 _

I. Software Package preparation 1. Download the sybase for linux installation package ase1502_xe_linux.tgz2, ftp upload and download the installation package 3, chown root. root ase1502 _

I. Software Package preparation
1. Download the sybase for linux installation package ase1502_xe_linux.tgz
2. ftp upload and download the installation package
3. chown root. root ase1502_xe_linux.tgz
4. Unzip the installation package tar-xzvf ase1502_xe_linux.tgz.

2. Preparations for Environment setup
1. Check whether the software package libaio is installed. If it is not installed, install it first.
[Root @ RPMS] # rpm-qa | grep libaio
[Root @ RPMS] # rpm-ivh libaio-0.3.93-4.i386.rpm
2. Modify/etc/sysctl. conf
Change the/opt/sys/kernel/shmmax parameter to the actual physical memory size (in bytes)
Modify the/etc/sysctl. conf file and add kernel. shmmax = memory size (in bytes) to the last line (it must be larger than 64 mb. We recommend that you set this parameter to 1/2 of the total memory size)

Iii. Install sybase
1. Run the installation package./setup
2. Add a user with the username sybase
[Root @ bin] # mkdir/home/sybase
[Root @ bin] # adduser-d/home/sybase
3. Set user environment variables, modify/home/sybase/. bashrc, and add the following three lines:
LANG = C
Export LANG
./Sybase/SYBASE. sh
4. The owner of the/opt/sybase directory is sybase.
[Root @ opt] # chown-R sybase. sybase/opt/sybase

4. Configure the Database Service
1. Solve the Problem of xhost unable to open display. Otherwise, an error will be reported when running asecfg.
[Root @ bin] export DISPLAY
[Root @ bin] xhost +
2. Run the asecfg program to add and configure services.
[Root @ bin]/opt/sybase/ASE-15_0/bin/. asecfg
3. Add devices and databases
Method 1: Use the windows sybase client Sybase Center to add devices and databases
Method 2:
1. log on to the isql Database
2. Add a device
1> disk init
2> name = test_data,
3> physname = "/opt/sybase_dev/aicbas_data.dat ",
4> size = "500 M"
5> go
3. Create a database
1> sp_diskdefault 'master', 'defaultoff'
2> go
1> create database test
2 & gt; on test_data = "500 M"
3> log on test_log = "100 M"
4> go

5. Set to self-start
Add a line to the/etc/rc. d/rc. local file:
Su-sybase-c "/opt/sybase/ASE-15_0/install/startserver-f/opt/sybase/ASE-15_0/install/RUN_ghlinux-f/opt/sybase/ASE-15_0/install/RUN_ghlinux_back &"

View the currently running services for shutdown

Select * from sysservers

Read more: Create a Sybase database in Linux

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.