Contents
- INDEX Associated Information - none Useful Links |
Sybase basics
Directory Structure
Backup ServerUsed to backup/restore databases using dump & load commands. e.g.
Interface fileA list of all known servers (including backup server). When a client program needs to connect to a particular file, it looks here. Can be supplied by setting DSQUERY environmental variable. Port number is used to identify SQL server. i.e.
Entries can be created in the interface file using sybinit. Sybase Device FilesThese are portions of disk or files used to store databases and database objects. Following are required:
sybinit initialises these or disk init post installation. Logical volumes or raw partitions can be used. The backup server is configured using sybinit. Starting SybaseCan use system administrator ID, sa . To set SQL server password for sa:
When a new SQL server or backup server is installed, sybinit creates a runserver file called RUN_servername To start a server enter: startserver -f runserverfile Monitoring ServersTo see if a server is running, try to logon to it using isql or use showserver command. Can also issue ps -u sybase . Shutting SybaseUse the shudown command:
If database has to be shutdown immediately, use shutdown with nowait flag. Use kill -9 only as a last resort. If you do this, may need to delete the shared memory files ($SYBASE/SERVER_NAME.krg and SERVER_NAME.srg0) . May also need to flush shared memory, e.g. for HP-UX, ipcs -mp | grep sybase , then use ipcrm to remove. Admin Tasks
Log files are $SYBASE/install/errorlog & $SYBASE/install/backup.log Kernel ParametersShared memory
Monitoring Performance
Installation notesasync i/o should be enabled, i.e. For HP, driver in he kernel and /dev/async created as 101 0x000004, perms 660 , sybase,sybase . Raw partitions must be owned by sybase. For Solaris, don't start raw partitions at cylinder 0 . |