Home Database Mysql Tutorial Linux下安装Sybase

Linux下安装Sybase

Jun 07, 2016 pm 05:12 PM
sybase database

一、 软件包准备工作1、下载sybase for linux 安装包 ase1502_xe_linux.tgz2、ftp上传下载的安装包3、chown root.root ase1502_

一、 软件包准备工作
1、下载sybase for linux 安装包 ase1502_xe_linux.tgz
2、ftp上传下载的安装包
3、chown root.root ase1502_xe_linux.tgz
4、解压安装包 tar -xzvf ase1502_xe_linux.tgz

二、环境设置准备工作
1、检查是否已安装软件包libaio,如果没有安装则先安装
[root@ RPMS]# rpm -qa |grep libaio
[root@ RPMS]# rpm -ivh libaio-0.3.93-4.i386.rpm
2、修改/etc/sysctl.conf
修改/opt/sys/kernel/shmmax参数为实际物理内存数(以字节为单位)
修改/etc/sysctl.conf文件,最后一行加入kernel.shmmax=内存数(以字节为单位)(必须大于64M,,建议为总内存的1/2)

三、安装sybase
1、运行安装包 ./setup
2、增加用户,用户名为sybase
[root@ bin]# mkdir /home/sybase
[root@ bin]# adduser -d /home/sybase sybase
3、设置用户环境变量,修改/home/sybase/.bashrc,加入以下三行:
LANG=C
export LANG
. /sybase/SYBASE.sh
4、授权/opt/sybase目录属主为sybase
[root@ opt]# chown -R sybase.sybase /opt/sybase

四、配置数据库服务
1、解决xhost unable to open display显示问题,否则运行asecfg会报错
[root@ bin]export DISPLAY
[root@ bin]xhost +
2、运行asecfg程序,增加并配置服务
[root@ bin]/opt/sybase/ASE-15_0/bin/.asecfg
3、增加设备和数据库
方法1:使用windows的sybase客户端Sybase Center增加设备和数据库
方法2:
1、isql登陆数据库
2、加入设备
1> disk init
2> name=test_data,
3> physname="/opt/sybase_dev/aicbas_data.dat",
4> size="500M"
5> go
3、建立数据库
1> sp_diskdefault 'master','defaultoff'
2> go
1> create database test
2> on test_data="500M"
3> log on test_log="100M"
4> go

五、设置为自启动
在/etc/rc.d/rc.local文件加入一行:
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 &"

查看当前运行的服务,以便shutdown

select * from sysservers

相关阅读:Linux下创建Sybase数据库

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1673
14
PHP Tutorial
1278
29
C# Tutorial
1257
24
iOS 18 adds a new 'Recovered' album function to retrieve lost or damaged photos iOS 18 adds a new 'Recovered' album function to retrieve lost or damaged photos Jul 18, 2024 am 05:48 AM

Apple's latest releases of iOS18, iPadOS18 and macOS Sequoia systems have added an important feature to the Photos application, designed to help users easily recover photos and videos lost or damaged due to various reasons. The new feature introduces an album called "Recovered" in the Tools section of the Photos app that will automatically appear when a user has pictures or videos on their device that are not part of their photo library. The emergence of the "Recovered" album provides a solution for photos and videos lost due to database corruption, the camera application not saving to the photo library correctly, or a third-party application managing the photo library. Users only need a few simple steps

How does Hibernate implement polymorphic mapping? How does Hibernate implement polymorphic mapping? Apr 17, 2024 pm 12:09 PM

Hibernate polymorphic mapping can map inherited classes to the database and provides the following mapping types: joined-subclass: Create a separate table for the subclass, including all columns of the parent class. table-per-class: Create a separate table for subclasses, containing only subclass-specific columns. union-subclass: similar to joined-subclass, but the parent class table unions all subclass columns.

How to handle database connection errors in PHP How to handle database connection errors in PHP Jun 05, 2024 pm 02:16 PM

To handle database connection errors in PHP, you can use the following steps: Use mysqli_connect_errno() to obtain the error code. Use mysqli_connect_error() to get the error message. By capturing and logging these error messages, database connection issues can be easily identified and resolved, ensuring the smooth running of your application.

Detailed tutorial on establishing a database connection using MySQLi in PHP Detailed tutorial on establishing a database connection using MySQLi in PHP Jun 04, 2024 pm 01:42 PM

How to use MySQLi to establish a database connection in PHP: Include MySQLi extension (require_once) Create connection function (functionconnect_to_db) Call connection function ($conn=connect_to_db()) Execute query ($result=$conn->query()) Close connection ( $conn->close())

How to save JSON data to database in Golang? How to save JSON data to database in Golang? Jun 06, 2024 am 11:24 AM

JSON data can be saved into a MySQL database by using the gjson library or the json.Unmarshal function. The gjson library provides convenience methods to parse JSON fields, and the json.Unmarshal function requires a target type pointer to unmarshal JSON data. Both methods require preparing SQL statements and performing insert operations to persist the data into the database.

How to use database callback functions in Golang? How to use database callback functions in Golang? Jun 03, 2024 pm 02:20 PM

Using the database callback function in Golang can achieve: executing custom code after the specified database operation is completed. Add custom behavior through separate functions without writing additional code. Callback functions are available for insert, update, delete, and query operations. You must use the sql.Exec, sql.QueryRow, or sql.Query function to use the callback function.

MySQL: Simple Concepts for Easy Learning MySQL: Simple Concepts for Easy Learning Apr 10, 2025 am 09:29 AM

MySQL is an open source relational database management system. 1) Create database and tables: Use the CREATEDATABASE and CREATETABLE commands. 2) Basic operations: INSERT, UPDATE, DELETE and SELECT. 3) Advanced operations: JOIN, subquery and transaction processing. 4) Debugging skills: Check syntax, data type and permissions. 5) Optimization suggestions: Use indexes, avoid SELECT* and use transactions.

How to connect to remote database using Golang? How to connect to remote database using Golang? Jun 01, 2024 pm 08:31 PM

Through the Go standard library database/sql package, you can connect to remote databases such as MySQL, PostgreSQL or SQLite: create a connection string containing database connection information. Use the sql.Open() function to open a database connection. Perform database operations such as SQL queries and insert operations. Use defer to close the database connection to release resources.

See all articles