Installing Sybase ASE
sybase-common-11.9.2-1.i386.rpm
sybase-ase-11.9.2-1.i386.rpm
Installing Sybase openclient
sybase-openclient-11.1.1-1.i386.rpm
Source:
Http://www.sybase.com/products/databaseservers/linux/thankyou1192.html
Method:
Rpm-hiv sybase-common-11.9.2-1.i386.rpm
Rpm-hiv sybase-ase-11.9.2-1.i386.rpm
Rpm-hiv sybase-openclient-11.1.1-1.i386.rpm
The default installation path is/opt/sybase-11.9.2 if you want to reset the path to/home/sybase:
RPM--relocate "/opt/sybase-11.9.2" = "/home/sybase"-hiv ...
Run
$HOME/install/sybinstall.sh
$HOME/.profile
The installer is $home/bin/srvbuild and needs to be run under Xwindows, which is already included in the. Profile.
Setting environment variables after installation
Sybase=/home/sybase
Dsquery=sybase (ServerName)
Installing Perl DBI
1 Required Packages
Dbi-1.xx.tar.gz
Dbd-sybase-0.xx.tar.gz
Source:
http://www.perl.com/CPAN-local/authors/Michael_Peppler/
http://www.perl.com/CPAN-local/modules/by-module/DBI/TIMB/
2 Installation Method
Gunzip dbi-1.xx.tar.gz
Tar xvf Dbi-1.xx.tar
Perl makefile.pl
Make
Make Test
Make install
Gunzip dbd-sybase-0.xx.tar.gz
Tar xvf Dbd-sybase-0.xx.tar
Perl makefile.pl
Make
Make Test
Make install
3 BASIC Programming Examples:
#!/usr/bin/perl
Use DBI;
My $server = "Sybase";
My $dbh = Dbi->connect (' dbi:sybase: ', ' sa ', ',{syb_dbd_server=> $server});
My $sth = $dbh->prepare ("sp_help");
$sth->execute ();
My $text;
while (($text) = $sth->fetchrow)
{
Print $text. "";
}
Exit (0);
http://www.bkjia.com/PHPjc/629553.html www.bkjia.com true http://www.bkjia.com/PHPjc/629553.html techarticle install Sybase ASE sybase-common-11.9.2-1.i386.rpm sybase-ase-11.9.2-1.i386.rpm install Sybase openclient sybase-openclient-11.1.1-1.i386.rpm Source: Http://www.sybase.com/products/data ...