Escolar Documentos
Profissional Documentos
Cultura Documentos
10 All done
Make sure that the filesystem for the Sybase software is big enough. A full
installation needs approx. 800 Mb so 3 Gb should give you enough room to
handle upgrades too. In this case we install the software in /opt/sybase/ase15.
Database files will be stored on raw devices and/or in /var/sybase.
Become root and add a group "sybase" and a user "sybase" to the system. Also
create the needed directories.
mkdir -p /opt/sybase
mkdir -p /var/sybase
groupadd sybase
Enable the operating system to allow more than the default value for shared
memory.
Raw devices
Do not forget to chown the raw devices to the sybase user. Check if this setting is
persistent after a reboot.
Make sure you have a filesystem that's big enough to store the files mentioned in
the 'Raw devices' section.
Temporory databases
Files for temporary databases (like tempdb) should be stored on the filesystem.
Allow at least for 100Mb but, depending on your application, 1Gb is not
uncommon.
When there is no valid license after the installation ASE will run with a grace time
of 30 days. After that it will shutdown and it cannot be rebooted anymore until
you install a license.
Installation
su - sybase
You should now be in the directory /opt/sybase. Make a work directory and put
the downloaded Sybase software in it.
mkdir work
cd work
./setup -console
When you get a message like "A suitable JVM could not be found" check the
following documents for a possible solution
At the possible options of the Product Edition choose the one that suits your
situation. After installation you can reconfigure it, in case you picked the wrong
option.
When the installation has finished succesful you can safely remove the work
directory.
In /opt/sybase/ase15 you will find a few files, like SYBASE.csh, SYBASE.sh and
SYBASE.env. Depending on the type of shell you use you need to source in one of
these. For instance, when your default shell is bash you should do this:
. /opt/sybase/ase15/SYBASE.sh
By doing:
echo $SYBASE
cd /opt/sybase
mkdir admin
mkdir admin/ASE1
mkdir admin/SYB_BACKUP
mkdir /var/sybase/ASE1
When you choose to use raw device it's quite handy when you create symbolic
links from /var/sybase/ASE1 to those devices. For example:
ln -s /dev/hda4 /var/sybase/ASE1/master.dat
Do this also for the other raw devices that you made.
sybinit.release_directory: USE_DEFAULT
sybinit.product: sqlsrv
sqlsrv.server_name: ASE1
sqlsrv.new_config: yes
sqlsrv.do_add_server: yes
sqlsrv.network_protocol_list: tcp
sqlsrv.network_hostname_list: PUT_YOUR_HOSTNAME_HERE
sqlsrv.network_port_list: 4000
sqlsrv.server_page_size: USE_DEFAULT
sqlsrv.force_buildmaster: no
sqlsrv.master_device_physical_name: /var/sybase/ASE1/master.dat
sqlsrv.master_device_size: 60
sqlsrv.master_database_size: 30
sqlsrv.errorlog: /opt/sybase/admin/ASE1/errorlog
sqlsrv.do_upgrade: no
sqlsrv.sybsystemprocs_device_physical_name:
/var/sybase/ASE1/sybsystemprocs.dat
sqlsrv.sybsystemprocs_device_size: 150
sqlsrv.sybsystemprocs_database_size: 150
sqlsrv.sybsystemdb_device_physical_name:
/var/sybase/ASE1/sybsystemdb.dat
sqlsrv.sybsystemdb_device_size: 20
sqlsrv.sybsystemdb_database_size: 20
sqlsrv.default_backup_server: SYB_BACKUP
sqlsrv.addl_cmdline_parameters:
srvbuildres -r ASE1.rs
Task failed
then go to this page for tips how to solve this: srvbuildres task failed.
Basic configuration
Load the monitoring tables (automatically done since 15.0.2), like this:
Pre 15.0, create a loopback server
sp_addserver loopback,null,@@servername
go
quit
go
go
[edit]
Create a user database
go
go
go
Set some common options and increase memory size. Depending on your
situation you need to increase the given values.
go
go
go
go
These values provide only a minimal starting point and should not be used in a
production environment. Consult your local DBA for further assistance.
sybinit.release_directory: USE_DEFAULT
sybinit.product: bsrv
bsrv.server_name: SYB_BACKUP
bsrv.new_config: yes
bsrv.do_add_backup_server: yes
bsrv.do_upgrade: no
bsrv.network_protocol_list: tcp
bsrv.network_hostname_list: PUT_YOUR_HOSTNAME_HERE
bsrv.network_port_list: 4001
bsrv.language: USE_DEFAULT
bsrv.character_set: USE_DEFAULT
bsrv.tape_config_file: USE_DEFAULT
bsrv.errorlog: /opt/sybase/admin/SYB_BACKUP/errorlog
sqlsrv.related_sqlsrvr: ASE1
sqlsrv.sa_login: sa
sqlsrv.sa_password: USE_DEFAULT
bsrv.addl_cmdline_parameters:
srvbuildres -r SYB_BACKUP.rs
All done