| SQL adaptation guide For Sybase ASE 15.5+ / Installation (Runtime Configuration) | |
If you are tasked with installing and configuring the database, here is a list of steps to be taken:
By default, the sa user is defined with a blank password. It is strongly recommended that you set the sa password after installation:
$ isql -S server_name -U sa
1> sp_password null, new_password
2> go
Password correctly set. 
(return status = 0) 
After starting the server, you must identify what server character set you want to use (for example, utf8) and re-configure the server. With Sybase ASE 15.5, this must be done with the charset command line utility and with the sp_configure stored procedure. You have to shutdown the server, start a first time to have the server take the new character set into account and then restart a second time for use. See Sybase documentation for more details or more recent versions of Sybase ASE.
Make sure that you select a case-sensitive character set / sort order.
Use either the Sybase Central, the Sybase Control Center GUI tool or use isql with SQL commands.
Connect to the server with the sa user.
First create database devices for data and transaction log. Define a transaction that can hold the biggest transaction your application can do to avoid administrative tasks to dump the log when the server hangs. When creating the database, use the new created database devices as database segments.
Commands:
 use master
 go
 disk init
      name = "devname",
      physname = "filename",
      size = devsize ...
 go
 create database dbname
    on devname
    with ...
 go 
                    Commands:
master..sp_dboption dbname, 'allow nulls by default', true go
master..sp_dboption dbname, 'ddl in tran', true go checkpoint go
master..sp_dboption dbname, 'trunc log on chkpt', true go
Commands:
use dbname go sp_addlogin 'username', 'password', dbname, ... options ... go
Commands:
use dbname go sp_adduser 'username', 'group', ... options ... go
See documentation for more details about database users and privileges. You must create groups to make tables visible to all users.