Sie sind auf Seite 1von 7

CLP - Command Line Processor Command Center Control Center db2cmd - Open DB2 Com

mand Window db2eva - Event Analyzer db2evmon - Event Monitor Productivity Tool d
b2exfmt - Explain Table Format Tool db2ckbkp - Check Backup db2cc - Start Contro
l Center db2admin - DB2 Administration Server db2icrt - Create Instance db2idrop
- Remove Instance db2ilist - List Instances db2trc - Trace db2start - Start DB2
db2stop - Stop DB2 db2sync - Start DB2 Synchronizer db2tbst - Get Tablespace St
ate The db2 command starts the command line processor (CLP). The CLP is used to
execute database utilities, SQL statements and online help. Common commands incl
ude: RESTART DATABASE CREATE DATABASE DROP DATABASE GET DATABASE CONFIGURATION R
ESET DATABASE CONFIGURATION UPDATE DATABASE CONFIGURATION LIST DATABASE DIRECTOR
Y LIST ODBC DATA SOURCES BACKUP DATABASE RESTORE DATABASE TERMINATE QUIT Launch
Control Center for: Privileges, Authorities and Access Rights SQL: (Connect to a
Database). connect to <dbname> user <username> using <userpswd> ex: connect to
TEST user db2admin using db2admin View a tables structure Connect to the DB firs
t. describe table <schema>.<tablename> Backup and Restore (also Copy a DB). Crea
te a directory to backup to: Ex: C:\db2\mybackup Backup your DB: Ex: db2 => back
up database SAMPLE TO c:\db2\mybackup Restore the DB: db2 => restore database SA
MPLE from C:\db2\mybackup Restore the DB to another name (ie: Copy DB):
db2 => restore database SAMPLE from C:\db2\mybackup into MYSAMPLE Run SQL Comman
ds db2=> (examples) list database directory - lists databases on DB2 server conn
ect to sample user db2admin using db2admin - connects to a db. list tables - lis
ts tables in the DB. describe select * from emp_act - lists the structure of a t
able. select * from EMP_ACT - list the contents in the table. disconnect <databa
se name> - clears connection
CLP - Command Line Processor Command Center Control Center db2cmd - Open DB2 Com
mand Window db2eva - Event Analyzer db2evmon - Event Monitor Productivity Tool d
b2exfmt - Explain Table Format Tool db2ckbkp - Check Backup db2cc - Start Contro
l Center db2admin - DB2 Administration Server db2icrt - Create Instance db2idrop
- Remove Instance db2ilist - List Instances db2trc - Trace db2start - Start DB2
db2stop - Stop DB2 db2sync - Start DB2 Synchronizer db2tbst - Get Tablespace St
ate The db2 command starts the command line processor (CLP). The CLP is used to
execute database utilities, SQL statements and online help. Common commands incl
ude: RESTART DATABASE CREATE DATABASE DROP DATABASE GET DATABASE CONFIGURATION R
ESET DATABASE CONFIGURATION UPDATE DATABASE CONFIGURATION LIST DATABASE DIRECTOR
Y LIST ODBC DATA SOURCES BACKUP DATABASE RESTORE DATABASE TERMINATE QUIT Launch
Control Center for: Privileges, Authorities and Access Rights SQL: (Connect to a
Database). connect to <dbname> user <username> using <userpswd> ex: connect to
TEST user db2admin using db2admin View a tables structure Connect to the DB firs
t. describe table <schema>.<tablename> Backup and Restore (also Copy a DB). Crea
te a directory to backup to: Ex: C:\db2\mybackup Backup your DB: Ex: db2 => back
up database SAMPLE TO c:\db2\mybackup Restore the DB: db2 => restore database SA
MPLE from C:\db2\mybackup Restore the DB to another name (ie: Copy DB):
db2 => restore database SAMPLE from C:\db2\mybackup into MYSAMPLE Run SQL Comman
ds db2=> (examples) list database directory - lists databases on DB2 server conn
ect to sample user db2admin using db2admin - connects to a db. list tables - lis
ts tables in the DB. describe select * from emp_act - lists the structure of a t
able. select * from EMP_ACT - list the contents in the table. disconnect <databa
se name> - clears connection
CLP - Command Line Processor Command Center Control Center db2cmd - Open DB2 Com
mand Window db2eva - Event Analyzer db2evmon - Event Monitor Productivity Tool d
b2exfmt - Explain Table Format Tool db2ckbkp - Check Backup db2cc - Start Contro
l Center db2admin - DB2 Administration Server db2icrt - Create Instance db2idrop
- Remove Instance db2ilist - List Instances db2trc - Trace db2start - Start DB2
db2stop - Stop DB2 db2sync - Start DB2 Synchronizer db2tbst - Get Tablespace St
ate The db2 command starts the command line processor (CLP). The CLP is used to
execute database utilities, SQL statements and online help. Common commands incl
ude: RESTART DATABASE CREATE DATABASE DROP DATABASE GET DATABASE CONFIGURATION R
ESET DATABASE CONFIGURATION UPDATE DATABASE CONFIGURATION LIST DATABASE DIRECTOR
Y LIST ODBC DATA SOURCES BACKUP DATABASE RESTORE DATABASE TERMINATE QUIT Launch
Control Center for: Privileges, Authorities and Access Rights SQL: (Connect to a
Database). connect to <dbname> user <username> using <userpswd> ex: connect to
TEST user db2admin using db2admin View a tables structure Connect to the DB firs
t. describe table <schema>.<tablename> Backup and Restore (also Copy a DB). Crea
te a directory to backup to: Ex: C:\db2\mybackup Backup your DB: Ex: db2 => back
up database SAMPLE TO c:\db2\mybackup Restore the DB: db2 => restore database SA
MPLE from C:\db2\mybackup Restore the DB to another name (ie: Copy DB):
db2 => restore database SAMPLE from C:\db2\mybackup into MYSAMPLE Run SQL Comman
ds db2=> (examples) list database directory - lists databases on DB2 server conn
ect to sample user db2admin using db2admin - connects to a db. list tables - lis
ts tables in the DB. describe select * from emp_act - lists the structure of a t
able. select * from EMP_ACT - list the contents in the table. disconnect <databa
se name> - clears connection

Das könnte Ihnen auch gefallen