SlideShare a Scribd company logo
1 of 27
DB2 Administration for Beginners
DB2 Administration for Beginners
•
•DB2
•SPUFI
•ADB
DB2 Administration for Beginners
•Command Reference
•SQL Reference
•Codes
•Messages
DB2 Administration for Beginners
DB2 Data StructuresDB2 Data Structures
• Buffer Pool
• Storage Group
• Database
• Table Space
• Table
• Index
• Buffer Pool
• Storage Group
• Database
• Table Space
• Table
• Index
DB2 Administration for Beginners
IORead
80ALTER BUFFERPOOL
Buffer PoolBuffer Pool
BP51000
DB2DB2SQL
ADBZ.BAAL
BP51000
DB2DB2SQL
ADBZ.BAAL
::
DB2 Administration for Beginners
Syntax ALTER BUFFPOOL (DB2 COMMAND Ref.)Syntax ALTER BUFFPOOL (DB2 COMMAND Ref.)
DB2 Administration for Beginners
ADB
1.
2.BP55000
3.BP53000
4.DISPLAY
5.PGSTEALPGFIXAUTOSIZE
1.
2.
3.
4.
5.Monitoring
DB2 Administration for Beginners
ContainerDB2
DB2STORAGE GROUPSTORAGE GROUP
STORAGE GROUPSTORAGE GROUP
CREATE STORAGE GROUP
SGJAM08OFCLG1 OFCLG2 OFCLG3
OFCW04
CREATE STORAGE GROUP
SGJAM08OFCLG1 OFCLG2 OFCLG3
OFCW04
SESE
DB2 Administration for Beginners
Syntax CREATE STOGROUP(SQL Ref.)Syntax CREATE STOGROUP(SQL Ref.)
DB2 Administration for Beginners
STORAGE GROUPSTORAGE GROUP
1.SPUFI
•SGTEST1
•VL0001VL0005
2.
3.ALTERSPUFIVL0006
4.ALTERSPUFIVL0001
5.ALTERSPUFI
6.ALTERSPUFI
•
•
•SMS
DB2 Administration for Beginners
Database
CREATE DATABSE
DATABASEDATABASE
DB2 Administration for Beginners
Syntax CREATE DATABASE(SQL Ref.)Syntax CREATE DATABASE(SQL Ref.)
DB2 Administration for Beginners
DATABASEDATABASE
1.SPUFI
•DBTEST1
•SGTEST1
•BP5
•SPUFIBP6
•SPUFISGTEST2
•
•Create DATABASE
•
DB2 Administration for Beginners
DATASET
DATASETDB2TABLE SPACETABLE SPACE
TABLE SPACETABLE SPACE
DB2 Administration for Beginners
Syntax CREATE TABLESPACE(SQL Ref.)Syntax CREATE TABLESPACE(SQL Ref.)
DB2 Administration for Beginners
TABELSPACETABELSPACE
1.SPUFI
•TSTEST1
•SGTEST1
•10000010000
•BP5
•DBTEST1
•SPUFIBP6
•SPUFI500000
•SPUFISGTEST3
•
•
•4.Page Size
•LOCK MAXLOCK SIZE5
•FREE PAGEPCT FREE6
DB2 Administration for Beginners
INSERTSELECT
INSERT
TABLETABLE
DB2 Administration for Beginners
COLUMN TypesCOLUMN Types
DB2
•SMALINT
•INTEGER
•DECIMAL
•CHAR
•VARCHAR
•BLOB
•CLOB
•SMALINT
•INTEGER
•DECIMAL
•CHAR
•VARCHAR
•BLOB
•CLOB
DB2 Administration for Beginners
CREATE TABLECREATE TABLE
DBASHMA.DBA_SMF_IPL_IDIPTIMEZ DBASHMA.DBA_SMF_IPL_IDIPTIMEZ
DB2 Administration for Beginners
Syntax CREATE TABLESyntax CREATE TABLE
DB2 Administration for Beginners
TABELTABEL
1.SPUFI
•TSTSHMA.TBTEST1
•TSTEST1
•C1(int),C2(smallint),C3(char(3)),C4(decimal(1,4((
2.SPUFIC5(timestamp(
3.SPUFIC2
4.SPUFIC450
5.Insert
6.RESTRICT ON DROP
DB2 Administration for Beginners
INDEXINDEX
DBASHMA.IX1SMFLG2
DBASHMA.DBA_SMFLOG_FT_DATE
T_TIME
DBASHMA.IX1SMFLG2
DBASHMA.DBA_SMFLOG_FT_DATE
T_TIME
DB2 Administration for Beginners
Syntax CREATE INDEXSyntax CREATE INDEX
DB2 Administration for Beginners
INDEXINDEX
1.SPUFI
•TSTSHMA.IXTBTST1
•TSTSHMA.TBTEST1
•SGTEST1
•C1,C2
1.
2.
3.
4.
5.
6.
DB2 Administration for Beginners
1.
2.
3.
DB2 Administration for Beginners
1.DB2 Fundamental
2.DB2 Administration Tools
3.DB2 Commands
4.DB2 System Structure
5.Advanced DB2 Administration
6.DB2 Utility
7.Performance Tuning
8.Code Development in DB2
9.Backup and Recovery
DB2 Administration for Beginners
:
SR.BANIHASHEMI@Gmail.com
SR.BANIHASHEMI@Behsazan.com
WWW.BEHSAZAN.COM
https://www.linkedin.com/in/reza-banihashemi-12b14599/

More Related Content

Similar to DB2 Basic administration for Beginners

The InnoDB Storage Engine for MySQL
The InnoDB Storage Engine for MySQLThe InnoDB Storage Engine for MySQL
The InnoDB Storage Engine for MySQLMorgan Tocker
 
Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Dale McInnis
 
Introduction to TokuDB v7.5 and Read Free Replication
Introduction to TokuDB v7.5 and Read Free ReplicationIntroduction to TokuDB v7.5 and Read Free Replication
Introduction to TokuDB v7.5 and Read Free ReplicationTim Callaghan
 
Oracle Database 12.1.0.2 New Features
Oracle Database 12.1.0.2 New FeaturesOracle Database 12.1.0.2 New Features
Oracle Database 12.1.0.2 New FeaturesDeiby Gómez
 
Online Schema Changes for Maximizing Uptime
 Online Schema Changes for Maximizing Uptime Online Schema Changes for Maximizing Uptime
Online Schema Changes for Maximizing UptimePythian
 
What is new in MariaDB 10.6?
What is new in MariaDB 10.6?What is new in MariaDB 10.6?
What is new in MariaDB 10.6?Mydbops
 
db2dart and inspect
db2dart and inspectdb2dart and inspect
db2dart and inspectdbawork
 
MySQL 5.6 - Operations and Diagnostics Improvements
MySQL 5.6 - Operations and Diagnostics ImprovementsMySQL 5.6 - Operations and Diagnostics Improvements
MySQL 5.6 - Operations and Diagnostics ImprovementsMorgan Tocker
 
Easy MySQL Replication Setup and Troubleshooting
Easy MySQL Replication Setup and TroubleshootingEasy MySQL Replication Setup and Troubleshooting
Easy MySQL Replication Setup and TroubleshootingBob Burgess
 
Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle MultitenantJitendra Singh
 
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytxjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytWrushabhShirsat3
 
VLDB Administration Strategies
VLDB Administration StrategiesVLDB Administration Strategies
VLDB Administration StrategiesMurilo Miranda
 
S3 l4 db2 environment - databases
S3 l4  db2 environment - databasesS3 l4  db2 environment - databases
S3 l4 db2 environment - databasesMohammad Khan
 
DbB 10 Webcast #3 The Secrets Of Scalability
DbB 10 Webcast #3   The Secrets Of ScalabilityDbB 10 Webcast #3   The Secrets Of Scalability
DbB 10 Webcast #3 The Secrets Of ScalabilityLaura Hood
 
Locality of (p)reference
Locality of (p)referenceLocality of (p)reference
Locality of (p)referenceFromDual GmbH
 

Similar to DB2 Basic administration for Beginners (20)

The InnoDB Storage Engine for MySQL
The InnoDB Storage Engine for MySQLThe InnoDB Storage Engine for MySQL
The InnoDB Storage Engine for MySQL
 
Tainted LOB
Tainted LOBTainted LOB
Tainted LOB
 
Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013
 
Introduction to TokuDB v7.5 and Read Free Replication
Introduction to TokuDB v7.5 and Read Free ReplicationIntroduction to TokuDB v7.5 and Read Free Replication
Introduction to TokuDB v7.5 and Read Free Replication
 
Presentation day4 oracle12c
Presentation day4 oracle12cPresentation day4 oracle12c
Presentation day4 oracle12c
 
Oracle Database 12.1.0.2 New Features
Oracle Database 12.1.0.2 New FeaturesOracle Database 12.1.0.2 New Features
Oracle Database 12.1.0.2 New Features
 
Online Schema Changes for Maximizing Uptime
 Online Schema Changes for Maximizing Uptime Online Schema Changes for Maximizing Uptime
Online Schema Changes for Maximizing Uptime
 
What is new in MariaDB 10.6?
What is new in MariaDB 10.6?What is new in MariaDB 10.6?
What is new in MariaDB 10.6?
 
db2dart and inspect
db2dart and inspectdb2dart and inspect
db2dart and inspect
 
MySQL 5.6 - Operations and Diagnostics Improvements
MySQL 5.6 - Operations and Diagnostics ImprovementsMySQL 5.6 - Operations and Diagnostics Improvements
MySQL 5.6 - Operations and Diagnostics Improvements
 
Easy MySQL Replication Setup and Troubleshooting
Easy MySQL Replication Setup and TroubleshootingEasy MySQL Replication Setup and Troubleshooting
Easy MySQL Replication Setup and Troubleshooting
 
Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle Multitenant
 
Ibm db2
Ibm db2Ibm db2
Ibm db2
 
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytxjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
 
unit-ii.pptx
unit-ii.pptxunit-ii.pptx
unit-ii.pptx
 
VLDB Administration Strategies
VLDB Administration StrategiesVLDB Administration Strategies
VLDB Administration Strategies
 
S3 l4 db2 environment - databases
S3 l4  db2 environment - databasesS3 l4  db2 environment - databases
S3 l4 db2 environment - databases
 
DbB 10 Webcast #3 The Secrets Of Scalability
DbB 10 Webcast #3   The Secrets Of ScalabilityDbB 10 Webcast #3   The Secrets Of Scalability
DbB 10 Webcast #3 The Secrets Of Scalability
 
MySQL database
MySQL databaseMySQL database
MySQL database
 
Locality of (p)reference
Locality of (p)referenceLocality of (p)reference
Locality of (p)reference
 

Recently uploaded

Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Boston Institute of Analytics
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
MK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxMK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxUnduhUnggah1
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 217djon017
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Thomas Poetter
 
Decoding Patterns: Customer Churn Prediction Data Analysis Project
Decoding Patterns: Customer Churn Prediction Data Analysis ProjectDecoding Patterns: Customer Churn Prediction Data Analysis Project
Decoding Patterns: Customer Churn Prediction Data Analysis ProjectBoston Institute of Analytics
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxaleedritatuxx
 
INTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processingINTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processingsocarem879
 
在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证
在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证
在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证nhjeo1gg
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.natarajan8993
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxdolaknnilon
 
Real-Time AI Streaming - AI Max Princeton
Real-Time AI  Streaming - AI Max PrincetonReal-Time AI  Streaming - AI Max Princeton
Real-Time AI Streaming - AI Max PrincetonTimothy Spann
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改yuu sss
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxMike Bennett
 
Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryJeremy Anderson
 
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024Susanna-Assunta Sansone
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanMYRABACSAFRA2
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsVICTOR MAESTRE RAMIREZ
 

Recently uploaded (20)

Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
MK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxMK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docx
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
 
Decoding Patterns: Customer Churn Prediction Data Analysis Project
Decoding Patterns: Customer Churn Prediction Data Analysis ProjectDecoding Patterns: Customer Churn Prediction Data Analysis Project
Decoding Patterns: Customer Churn Prediction Data Analysis Project
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
 
INTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processingINTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processing
 
在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证
在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证
在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptx
 
Real-Time AI Streaming - AI Max Princeton
Real-Time AI  Streaming - AI Max PrincetonReal-Time AI  Streaming - AI Max Princeton
Real-Time AI Streaming - AI Max Princeton
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptx
 
Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data Story
 
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population Mean
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business Professionals
 

DB2 Basic administration for Beginners

  • 2. DB2 Administration for Beginners • •DB2 •SPUFI •ADB
  • 3. DB2 Administration for Beginners •Command Reference •SQL Reference •Codes •Messages
  • 4. DB2 Administration for Beginners DB2 Data StructuresDB2 Data Structures • Buffer Pool • Storage Group • Database • Table Space • Table • Index • Buffer Pool • Storage Group • Database • Table Space • Table • Index
  • 5. DB2 Administration for Beginners IORead 80ALTER BUFFERPOOL Buffer PoolBuffer Pool BP51000 DB2DB2SQL ADBZ.BAAL BP51000 DB2DB2SQL ADBZ.BAAL ::
  • 6. DB2 Administration for Beginners Syntax ALTER BUFFPOOL (DB2 COMMAND Ref.)Syntax ALTER BUFFPOOL (DB2 COMMAND Ref.)
  • 7. DB2 Administration for Beginners ADB 1. 2.BP55000 3.BP53000 4.DISPLAY 5.PGSTEALPGFIXAUTOSIZE 1. 2. 3. 4. 5.Monitoring
  • 8. DB2 Administration for Beginners ContainerDB2 DB2STORAGE GROUPSTORAGE GROUP STORAGE GROUPSTORAGE GROUP CREATE STORAGE GROUP SGJAM08OFCLG1 OFCLG2 OFCLG3 OFCW04 CREATE STORAGE GROUP SGJAM08OFCLG1 OFCLG2 OFCLG3 OFCW04 SESE
  • 9. DB2 Administration for Beginners Syntax CREATE STOGROUP(SQL Ref.)Syntax CREATE STOGROUP(SQL Ref.)
  • 10. DB2 Administration for Beginners STORAGE GROUPSTORAGE GROUP 1.SPUFI •SGTEST1 •VL0001VL0005 2. 3.ALTERSPUFIVL0006 4.ALTERSPUFIVL0001 5.ALTERSPUFI 6.ALTERSPUFI • • •SMS
  • 11. DB2 Administration for Beginners Database CREATE DATABSE DATABASEDATABASE
  • 12. DB2 Administration for Beginners Syntax CREATE DATABASE(SQL Ref.)Syntax CREATE DATABASE(SQL Ref.)
  • 13. DB2 Administration for Beginners DATABASEDATABASE 1.SPUFI •DBTEST1 •SGTEST1 •BP5 •SPUFIBP6 •SPUFISGTEST2 • •Create DATABASE •
  • 14. DB2 Administration for Beginners DATASET DATASETDB2TABLE SPACETABLE SPACE TABLE SPACETABLE SPACE
  • 15. DB2 Administration for Beginners Syntax CREATE TABLESPACE(SQL Ref.)Syntax CREATE TABLESPACE(SQL Ref.)
  • 16. DB2 Administration for Beginners TABELSPACETABELSPACE 1.SPUFI •TSTEST1 •SGTEST1 •10000010000 •BP5 •DBTEST1 •SPUFIBP6 •SPUFI500000 •SPUFISGTEST3 • • •4.Page Size •LOCK MAXLOCK SIZE5 •FREE PAGEPCT FREE6
  • 17. DB2 Administration for Beginners INSERTSELECT INSERT TABLETABLE
  • 18. DB2 Administration for Beginners COLUMN TypesCOLUMN Types DB2 •SMALINT •INTEGER •DECIMAL •CHAR •VARCHAR •BLOB •CLOB •SMALINT •INTEGER •DECIMAL •CHAR •VARCHAR •BLOB •CLOB
  • 19. DB2 Administration for Beginners CREATE TABLECREATE TABLE DBASHMA.DBA_SMF_IPL_IDIPTIMEZ DBASHMA.DBA_SMF_IPL_IDIPTIMEZ
  • 20. DB2 Administration for Beginners Syntax CREATE TABLESyntax CREATE TABLE
  • 21. DB2 Administration for Beginners TABELTABEL 1.SPUFI •TSTSHMA.TBTEST1 •TSTEST1 •C1(int),C2(smallint),C3(char(3)),C4(decimal(1,4(( 2.SPUFIC5(timestamp( 3.SPUFIC2 4.SPUFIC450 5.Insert 6.RESTRICT ON DROP
  • 22. DB2 Administration for Beginners INDEXINDEX DBASHMA.IX1SMFLG2 DBASHMA.DBA_SMFLOG_FT_DATE T_TIME DBASHMA.IX1SMFLG2 DBASHMA.DBA_SMFLOG_FT_DATE T_TIME
  • 23. DB2 Administration for Beginners Syntax CREATE INDEXSyntax CREATE INDEX
  • 24. DB2 Administration for Beginners INDEXINDEX 1.SPUFI •TSTSHMA.IXTBTST1 •TSTSHMA.TBTEST1 •SGTEST1 •C1,C2 1. 2. 3. 4. 5. 6.
  • 25. DB2 Administration for Beginners 1. 2. 3.
  • 26. DB2 Administration for Beginners 1.DB2 Fundamental 2.DB2 Administration Tools 3.DB2 Commands 4.DB2 System Structure 5.Advanced DB2 Administration 6.DB2 Utility 7.Performance Tuning 8.Code Development in DB2 9.Backup and Recovery
  • 27. DB2 Administration for Beginners : SR.BANIHASHEMI@Gmail.com SR.BANIHASHEMI@Behsazan.com WWW.BEHSAZAN.COM https://www.linkedin.com/in/reza-banihashemi-12b14599/