Sie sind auf Seite 1von 17

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
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
execfddffTE DATABASE CONFIGURATION LIST DATABASE DIRECTORY LIST ODBC DATA SOURCE
S BACKUP DATABASE RESTORE DATABASE TERMINATE QUIT Launch Control Center for: Pri
vileges, Authorities and Access Rights SQL: (Connect to a Database). connect to
<dbname> user <username> using <userpswd> ex: connect to TEST user db2admin usin
g db2admin View a tables structure Connect to the DB first. describe table <sche
ma>.<tablename> Backup and Restore (also Copy a DB). Create a directory to backu
p to: Ex: C:\db2\mybackup Backup your DB: Ex: db2 => backup database SAMPLE TO c
:\db2\mybackup Restore the DB: db2 => restore database SAMPLE from C:\db2\myback
up 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 gdfgd State The db
2 command starts the command line processor (CLP). The CLP is used to execute da
tabase utilities, SQL statements and online help. Common commands include: RESTA
RT DATABASE CREATE DATABASE DROP DATABASE GET DATABASE CONFIGURATION RESET DATAB
ASE CONFIGURATION UPDATE DATABASE CONFIGURATION LIST DATABASE DIRECTORY LIST ODB
C DATA SOURCES BACKUP DATABASE RESTORE DATABASE TERMINATE QUIT Launch Control Ce
nter 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 first. describ
e table <schema>.<tablename> Backup and Restore (also Copy a DB). Create a direc
tory to backup to: Ex: C:\db2\mybackup Backup your DB: Ex: db2 => backup databas
e SAMPLE TO c:\db2\mybackup Restore the DB: db2 => restore database SAMPLE from
C:\db2\mybackup Restore the DB to another name (ie: Copy DB):
db2 => restore database SAMPLE from C:\db2\mybackup into MYSAMPLE Rfgdfgun SQL C
ommands db2=> (examples) list database directory - lists databases on DB2 server
connect to sample user db2admin using db2admin - connects to a db. list tables
- lists tables in the DB. describe select * from emp_act - lists the structure o
f a table. select * from EMP_ACT - list the contents in the table. disconnect <d
atabase 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
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