db2 das 初學心得
ibm的東西對初學者 很好玩 aix和db2有個共同點 都有圖形與命令的轉換....但是細節工具技術很靈活 要慢慢的去突破
BACKUP DATABASE SAMPLE ONLINE TO "/home/db2inst2/arch" WITH 2 BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING;
BACKUP DATABASE SAMPLE TABLESPACE ( IBMDB2SAMPLEREL, USERSPACE1 ) ONLINE TO "/home/db2inst2/arch/db2inst2" WITH 2 BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING;
BACKUP DATABASE SAMPLE ONLINE INCREMENTAL TO "/home/db2inst2/arch" WITH 2 BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING;
RESTORE DATABASE SAMPLE FROM "/home/db2inst2" TAKEN AT 20111128030239 WITH 2 BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING;
db2look -d SAMPLE -u DB2FENC2 -e -l -x -c ;
EXPORT TO "/home/db2inst2/arch/data.dat" OF DEL MESSAGES "/home/db2inst2/arch/data.log" SELECT * FROM DB2INST2.EMPLOYEE;
CONNECT RESET;
EXPORT TO "D:data.dat" OF DEL MESSAGES "D:data.log" SELECT * FROM DB2INST2.EMPLOYEE;
CONNECT RESET;
IMPORT FROM "D:data.dat" OF DEL METHOD P (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14) MESSAGES "D:dat1a.log" INSERT INTO DB2INST2.EMPLOYEE (EMPNO, FIRSTNME, MIDINIT, LASTNAME, WORKDEPT, PHONENO, HIREDATE, JOB, EDLEVEL, SEX, BIRTHDATE, SALARY, BONUS, COMM);
CONNECT RESET;
db2look -d SAMPLE -t "CL_SCHED" -a -e -l -x -c ;
REORG TABLE DB2INST2.CUSTOMER ALLOW READ ACCESS ;
REORG TABLE DB2INST2.CUSTOMER INDEX SYSIBM.SQL111128013201340 ALLOW READ ACCESS USE TEMPSPACE1 INDEXSCAN LONGLOBDATA USE TEMPSPACE1;
CONNECT RESET;
RUNSTATS ON TABLE DB2INST2.EMPLOYEE ON ALL COLUMNS ALLOW WRITE ACCESS ;
COMMIT WORK;
CONNECT RESET;
CREATE BUFFERPOOL TESTBU IMMEDIATE SIZE 1000 PAGESIZE 4 K ;
CONNECT RESET;
CONNECT TO SAMPLE;
CREATE EVENT MONITOR test FOR DATABASE, TABLES, TABLESPACES, DEADLOCKS, BUFFERPOOLS, CONNECTIONS, TRANSACTIONS, STATEMENTS WRITE TO TABLE BUFFERSIZE 4 BLOCKED MANUALSTART ;
CONNECT RESET;
CREATE REGULAR TABLESPACE TESTDB PAGESIZE 4 K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 16 OVERHEAD 10.5 PREFETCHSIZE 16 TRANSFERRATE 0.14 BUFFERPOOL TESTBU DROPPED TABLE RECOVERY ON;
COMMENT ON TABLESPACE TESTDB IS 'zhushi';
CONNECT RESET;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9879835/viewspace-1056618/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- db2 das 維護初學DB2
- 初學Oracle的一點心得Oracle
- 初識DB2DB2
- 初觸python心得隨寫Python
- 初體驗!老男孩linux運維班學習心得分享Linux運維
- 學習心得
- CSP-S2024初賽心得
- Redis 學習心得Redis
- Github學習心得Github
- Django學習心得Django
- git學習心得Git
- Lotus學習心得(-)
- php學習心得PHP
- Guice學習心得GUI
- Linux學習心得Linux
- APScheduler 學習心得
- Vue學習心得(1)Vue
- java實習生學習心得Java
- 初學
- nodejs學習心得(一)NodeJS
- C語言學習心得C語言
- iOS學習心得之:KVOiOS
- 學習kettle的小心得
- CSS的學習和心得CSS
- DBA之路上學習心得
- MVVM dataBinding 學習心得MVVM
- git學習心得總結Git
- 學習心得總結(2)
- 學習心得總結(1)
- 《編譯原理》學習心得編譯原理
- 密碼學(原創心得)密碼學
- 電腦學習心得 (轉)
- LotusScript及公式學習心得公式
- db2學習筆記DB2筆記
- db2入門學習DB2
- 初學goGo
- Vue初學Vue
- 初學JavaScriptJavaScript