使用Sybase OpenClient 访问数据库
声明:SYBASE为12.5.0.3 for linux版本。操作系统:Linux localhost.localdomain 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32
声明:SYBASE为12.5.0.3 for linux版本。
操作系统:Linux localhost.localdomain 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 EDT 2006 i686 i686 i386 GNU/Linux
下载Sybase 12.5.0.3 for linux版本.
由于只是作为客户端,可以不用安装ASE。只需要安装sybase-common-12.5-3.i386.rpm和sybase-openclient-12.5-3.i386.rpm二个包即可
安装步骤
rpm –ihvf ./sybase-common-12.5*.rpm --prefix=/usr/sybase
rpm –ihvf ./sybase-openclient-12.5*.rpm --prefix=/usr/sybase
不出错误,,则安装成功
$SYBASE是环境变量。即Sybase的安装目录
先进入$SYBASE/OCT-12_5/bin目录。
使用isql连接数据库测试是否通过。
[root@localhost bin]# ./isql -SNSMSSERVER -Usa -P密码
如果连接正确,则进入ISQL命令行模式,否则提示错误。最常见的错误是
CT-LIBRARY error:
ct_connect(): directory service layer: internal directory control layer error: Requested server name not found.
这说明你的interface配置不正确,或者环境变量不正确。Isql会去$SYBASE目录中查找interface文件。我的interface配置文件如下:
INSMSSERVER
master tcp ether 192.168.1.89 5000
query tcp ether 192.168.1.89 5000
进入ISQL命令模式后输入SQL命令回车,再输入GO则执行命令。
在Sybase的安装目录下。有一个OCS-12_5目录,这个就是Openclient目录.进到example目录下发现有二个目录,这即是CT和DB-library,二种不同的访问方式,开发时由你自己决定

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The differences between Oracle and Sybase are: 1. SQL syntax is inconsistent; 2. The post-processing mechanism for over-long fields is different. Oracle does not have an automatic truncation mechanism when inputting over-long characters, while Sybase’s processing mechanism is automatic truncation; 3. Chinese field byte length Inconsistent, 1 Chinese character in the Sybase database occupies 2 bytes, and 1 Chinese character in the Oracle database occupies 3 bytes; 4. Character type conversion is different; 5. Null value reading results are inconsistent; 6. Query statement output default sorting is inconsistent; 7 , The date format is inconsistent.

Title: Detailed explanation of the characteristics and differences between Sybase and Oracle databases In the modern information age, database management systems play a vital role. Sybase and Oracle, as two well-known relational database management systems, have attracted widespread attention. This article will delve into the features and differences between Sybase and Oracle, and further demonstrate the similarities and differences between them through specific code examples. 1. Sybase database features: Powerful transaction processing capabilities: Sybase database is known for its outstanding

Sybase is a database based on client/server architecture. It is an open, high-performance, programmable database that can use event-driven triggers, multi-threading, etc. to improve performance.

The core differences between Sybase and Oracle database management systems require specific code examples. Database management systems play a vital role in the field of modern information technology. As two well-known relational database management systems, Sybase and Oracle occupy an important position in the database field. important position. Although they are both relational database management systems, there are some core differences in practical applications. This article will compare Sybase and Oracle from multiple perspectives, including architecture, syntax, performance, etc.

In today's technological era, with the advent of the Internet and data era, databases have become the core of enterprises' information storage. As the amount of data increases and continues to expand, enterprises need an efficient, stable, and fast database tool to meet their growing needs. Among the many database tools, MySql and Sybase are two database tools that have attracted much attention. This article will conduct a comparative analysis of MySql and Sybase to help users choose the appropriate database tool according to different needs. MySql is a

Comparison of functions and performance of Sybase and Oracle database systems With the continuous development and progress of information technology, database systems, as one of the infrastructures for enterprise management information, play a vital role. Sybase and Oracle, as one of the mainstream relational database management systems (RDBMS), are widely used in their respective fields. This article will compare the functions and performance of two database systems, Sybase and Oracle, and analyze them with specific code examples. Basic

Sybase and Oracle are two popular database management systems in the field of enterprise-level databases. They have their own advantages in terms of function, performance, reliability, etc., and are often widely used in practical applications. This article will explore the similarities and differences between Sybase and Oracle databases from different perspectives, and illustrate them with specific code examples. 1. Data type support In database design and development, the choice of data type is crucial. Both Sybase and Oracle support common data types

System environment configuration 1. Sybase installation 1. Install the Sybase database. In the license agreement interface, select the language: People's Republic of China (PRC). Select the I agree option below. 2. Select the installation path. Note: It is best to choose an installation hard disk with an NTFS partition, because some files larger than 2g cannot be saved in a fat32 partition. 3. Select full installation 4. The actual installation functions are as follows: 5. Next step installation 6. Installation completed 7. Next step 8. Pay attention to select customized configuration information. Next step 9. Select the page size: 8K, and use the default 10 for others. , Realize the installation configuration information. After the next step is successfully configured, restart. 2. Sybase upgrade 1. Select setup installation, as follows 2. Select the protocol language
