You are on page 1of 2

Sysbase commands — DBA to DBA about:reader?url=http://www.dbatodba.com/sybase/how-tos/sysbase-co...

dbatodba.com

Sysbase commands — DBA to DBA


2-3 minutes

The most commons Sysbase administrator commands

Description command
View the server
sp_configure
options
Update server
sp_configure 'option_name', new_value
options
Display active
servers or showserver (executed from UNIX shell)
instances
Access server or
isql -Uuser -Ppswd -Sserver
instance
Access database use dbname
List databases in
sp_helpdb
server or instance
List devices or files
used by the sp_helpdevice
databases
Find space used or sp_helpdb dbname or sp_helpsegment
available space segname or sp_spaceused

1 of 2 04-06-2018, 21:57
Sysbase commands — DBA to DBA about:reader?url=http://www.dbatodba.com/sybase/how-tos/sysbase-co...

List database tables sp_help


List table
sp_help tablename
characteristics
List source for
sp_helptext procname
stored procedures
grant revoke sp_helpuser sp_addlogin
sp_adduser sp_addalias sp_dropalias
Administer security
sp_dropuser sp_droplogin sp_addgroup
sp_helpgroup sp_changegroup sp_password
Start a server or
startserver -fsrvr_name (from UNIX shell)
instance
Backup database dump database db_name to '/path/file'
Restore database load database db_name from '/path/file'
bcp table_name out filename
Export a text file for example:
from a table bcp dbase..tab1 out tab1.dat -S DBSERV1
-U someuser -P somepasswd -c > /dev/null
bcp table_name in filename
Load a text file into for example:
a table bcp dbase..tab1 in tab1.dat -S DBSERV2 -U
someuser -P somepasswd -c > /dev/null
List connected
sp_who
users
Kill connected
kill spid_number
users
Generate DDLs defncopy

2 of 2 04-06-2018, 21:57

You might also like