0% found this document useful (0 votes)
264 views2 pages

Sysbase Commands - DBA To DBA

The document lists and describes common Sysbase administrator commands including commands to view server options, update server options, display active servers, access servers and databases, list databases and devices, find space usage, list tables and procedures, administer security, backup and restore databases, export and import data, and more.

Uploaded by

himanshu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
264 views2 pages

Sysbase Commands - DBA To DBA

The document lists and describes common Sysbase administrator commands including commands to view server options, update server options, display active servers, access servers and databases, list databases and devices, find space usage, list tables and procedures, administer security, backup and restore databases, export and import data, and more.

Uploaded by

himanshu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy