DB2 is a database manager that runs on Linux, Unix, and Windows operating systems. It allows users to catalog databases, start and stop instances, and configure parameters. Key commands for managing DB2 include db2icrt for creating instances, db2idrop for dropping instances, db2ilist for listing instances, and db2set for setting configuration parameters at the global, instance, and node level. The db2set command provides centralized control over environmental variables.
DB2 is a family of database server products developed by IBM that support relational and object relational models. DB2 was first introduced by IBM in 1983 for mainframe systems and has since been ported to Linux, Unix, and Windows. There are three main DB2 products: DB2 for Linux, Unix, and Windows (DB2 LUW), DB2 for Z/OS (mainframe), and DB2 for iSeries. DB2 LUW provides features such as high availability, security, workload management, and federation between data sources. The document discusses DB2 architecture including the instance model, database storage model, engine dispatchable units, and memory architecture.
DB2 is a relational database developed by IBM that supports SQL and the relational model. It has various editions including Advanced Enterprise Server Edition and Express Edition. DB2 uses a multi-tier architecture with components like SSAS, DBAS, and IRLM. It manages data through logical objects like tables and physical objects like tablespaces and databases. Tables are stored in tablespaces which are contained within databases. DB2 supports data types, null values, indexes, and referential integrity through primary keys, unique keys, and foreign keys to link tables.
The document provides tips for tuning DB2 database performance for non-DBAs. It discusses checking hardware configuration, optimizing memory allocation for sort heap, share sort and buffer pool based on database size, leveraging multiple CPUs, designing tables and indexes efficiently, and gathering statistics on commonly used columns. Specific steps are provided to set configuration parameters like DB2_PARALLEL_IO, SHEATHRES_SHR, SORTHEAP, and altering buffer pools and indexes. Overall, following these tips can help optimize a DB2 database for better query performance.
This document discusses DB2 backup and recovery. It covers logging, different backup types including full, incremental, and delta backups. It also discusses performing backups offline and online. The document describes how to check backup history and image consistency. Recovery types like crash, version, and roll-forward recovery are explained. Commands for restarting, restoring, and recovering databases are provided. The appendix includes links for more information on backup, restore, and roll-forward commands.
This document discusses various DB2 database objects and utilities. It provides descriptions of storage groups, databases, tablespaces, tables, indexes, views, and the utilities for unload, load, reorganization, running statistics, and copy. It includes examples of creating and using these objects and utilities.
Optimizer is the component of the DB2 SQL compiler responsible for selecting an optimal access plan for an SQL statement. The optimizer works by calculating the execution cost of many alternative access plans, and then choosing the one with the minimal estimated cost. Understanding how the optimizer works and knowing how to influence its behaviour can lead to improved query performance and better resource usage.
This presentation was created for the workshop delivered at the CASCON 2011 conference. Its aim is to introduce basic optimizer and related concepts, and to serve as a starting point for further study of the optimizer techniques.
Solving the DB2 LUW Administration DilemmaRandy Goering
As a DB2 LUW Database Administrator you are probably reluctant to or prohibited from granting your users* these permissions because doing so gives them permission to other DB2 administrations tasks like stopping the database. If your users are not allowed to do these tasks then who is? Most likely, you, as the DBA will perform these and other administrative functions for your users. Would you like a way to eliminate these tasks from your daily to-do list? This presentation will discuss how to externalize specific administrative tasks with Stored Procedures, Federated procedures, Administrative SQL routines, and views.
DB2 is a multi-platform database server that can scale from laptops to large systems handling terabytes of data. It provides tools for extending capabilities to support multimedia, is fully integrated for web access, and supports universal access and multiple platforms. The tutorial covered key DB2 concepts like instances, schemas, tables, and indexes. It demonstrated how to use Control Center and other GUIs to perform tasks like creating databases and tables, querying data, and setting user privileges. Java applications can also access DB2 data through JDBC.
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OSCuneyt Goksu
This document discusses several practical DBA activities in DB2 9 and 10 for z/OS including recovering from accidentally dropping a table, defining a trusted context for security, including columns in indexes for performance, creating indexes on expressions, and using MAXTEMP_RID in version 10 for performance. Steps are provided for recovering a dropped table using log records, archive logs, and VSAM copy techniques. Trusted contexts are introduced for efficiently switching users without credentials. Including columns in indexes and new features in version 10 like MAXTEMP_RID are highlighted for potential performance improvements.
This document provides an overview of performance monitoring and optimization for SQL Server databases. It discusses monitoring database activity using tools like SQL Profiler and Activity Monitor, identifying bottlenecks, using the Database Engine Tuning Advisor to generate optimization recommendations, and addressing issues related to processes, locking, and deadlocks. Best practices emphasized establishing a performance baseline, making incremental changes while measuring impact, and focusing on specific issues to optimize real-world workloads.
"Dear Students,
Greetings from www.etraining.guru
We provide BEST online training for IBM DB2 LUW/UDB DBA by a database architect. Our DB2 Trainer comes with a working experience of 11+ years, 9+ years in DB2 and a DB2 certified professional.
DB2 LUW DBA Course Content: http://www.etraining.guru/course/dba/online-training-db2-luw-udb-dba
Course Cost: USD 350 (or) INR 21000
Number of Hours: 30-35 hours
Regards,
Karthik
www.etraining.guru
This document provides an overview of the DB2 10.1 Basic Database Administration Workshop for Linux, Unix and Windows. It introduces the instructor, Iqbal Goralwalla, who has extensive experience developing and working with DB2. The document discusses DB2 editions and key features, tools replaced in DB2 10 like Control Center, the new IBM Data Studio tool, and the DB2 instance and process models.
DB2 runs on 5 address spaces that each perform essential functions:
- DSNMSTR controls connections to other systems and performs logging, recovery, and system management.
- DSNDBM1 supports data definition, manipulation, and retrieval.
- IRLMPROC controls concurrent data access and maintains integrity through locking.
- DSNDIST enables remote access to distributed databases.
- DSNSPAS provides an isolated environment to execute stored procedures.
The document provides an overview of SQL Server including:
- The architecture including system databases like master, model, msdb, and tempdb.
- Recovery models like full, bulk-logged, and simple.
- Backup and restore options including full, differential, transaction log, and file group backups.
- T-SQL system stored procedures for administration tasks.
- SQL commands and functions.
- SQL Agent jobs which are scheduled tasks consisting of steps to perform automated tasks.
This document discusses the relationship between DB2 and storage management. It describes how DB2 uses storage through tablespaces, indexes, and other objects that are stored on disk as VSAM data sets. It also discusses how DB2 interacts with DFSMS to manage data sets and how storage groups and SMS can be used to simplify storage administration for DB2 objects. While DB2 provides storage management features, there is still a gap between DBA and storage administration that tools can help address.
The document provides an overview of the Oracle database including its architecture, components, and features. It discusses Oracle's memory structure consisting of the shared pool, database buffer cache, and redo log buffer. It describes Oracle's process structure including background processes like DBWR, LGWR, PMON and SMON. It also covers Oracle's storage structure such as datafiles, redo logs, control files and the physical and logical storage architectures including tablespaces, segments, extents and blocks.
The document provides an overview of DB2 and discusses key concepts such as instances, databases, tablespaces, and recovery. It describes how to install and configure DB2, create instances and databases, load and move data between databases, and perform backups and recovery. Examples are given of commands used to create tablespaces and load data. The document also mentions tools for visualizing queries and monitoring performance.
The document provides an overview of the Oracle database architecture including its major components, memory structures, background processes, logical and physical storage structures, and Automatic Storage Management (ASM) storage components. Specifically, it discusses the System Global Area (SGA) and Program Global Area (PGA), background processes like the database writer (DBWn) and log writer (LGWR), tablespaces and data files, and how ASM manages Oracle database files. The objectives are to explain these various architectural elements that make up the Oracle database.
The document discusses various DB2 recovery options including backup and restore, the recovery process model, important recovery-related system files, advanced copy services, and transportable schemas. It provides examples of the backup and restore process models and describes key DB2 recovery-related files. It also outlines the scripted interface for advanced copy services backup and differences between DB2 versions 9.7 and 10.1 related to advanced copy services.
The document discusses DB2 architecture and concepts. It explains that each DB2 installation has a Database Administration Server (DAS) that provides remote administration support. It also discusses the DB2 Profile Registry, which stores configurable settings. The document then covers the instance concept, noting that an instance is a set of processes, disk, and memory allocations that provide database services and can contain one or more databases.
The document provides an overview of the DB2 database on mainframe systems. It discusses prerequisites for DB2 including mainframe concepts, COBOL, file handling, and VSAM. It then covers topics like database introduction, relational concepts, data definition language, SQL, DB2 objects, and more. The last section lists additional topics to be covered, including more on SQL statements, functions, complex queries, DML statements, dynamic SQL, and DB2 objects like indexes and views.
This document provides an overview of using DB2 on IBM mainframe systems. It discusses logging into TSO, allocating datasets for DB2 use, using the SPUFI tool to interactively execute SQL statements against DB2, and some key DB2 concepts like logical unit of work and the different views that programs and the system have of the DB2 environment.
MS SQL Server is a database server produced by Microsoft that enables users to write and execute SQL queries and statements. It consists of several features like Query Analyzer, Profiler, and Service Manager. Multiple instances of SQL Server can be installed on a machine, with each instance having its own set of users, databases, and other objects. SQL Server uses data files, filegroups, and transaction logs to store database objects and record transactions. The data dictionary contains metadata about database schemas and is stored differently in Oracle and SQL Server.
This document discusses database partitioning, table partitioning, and multi-dimensional clustering (MDC) in DB2 9. It begins with an introduction to these partitioning technologies and concepts. The document then examines the benefits and considerations of each approach. Several chapters provide details on implementing and administering database partitioning, table partitioning, and using materialized query tables to improve performance in a partitioned database environment. The document concludes with best practices for partitioning.
This PPT File, helps with the Basic Interview Questions specially for DataBase Domain.. For more questions , please log in to www.rekruitin.com
By ReKruiTIn.com
The document discusses the physical architecture of SQL Server, including components like pages, extents, tables, indexes, database files, file groups, and transaction log files. Pages are the smallest storage unit, while extents contain multiple pages. Tables and indexes are made up of pages and extents. Database files store this data on disk and are organized into file groups. Transaction log files log all data modifications for recovery purposes.
This document provides an overview of various database administration concepts in DB2 including tables, views, indexes, procedures, triggers, tablespaces, and buffer pools. It discusses how tables are used to store column and row data, and how system catalog tables track metadata. It also describes views, indexes, procedures, triggers, how they are used and created. The document outlines how tablespaces are used to logically group database objects and storage, and how buffer pools cache data pages in memory to improve performance.
DB2 is a multi-platform database server that can scale from laptops to large systems handling terabytes of data. It provides tools for extending capabilities to support multimedia, is fully integrated for web access, and supports universal access and multiple platforms. The tutorial covered key DB2 concepts like instances, schemas, tables, and indexes. It demonstrated how to use Control Center and other GUIs to perform tasks like creating databases and tables, querying data, and setting user privileges. Java applications can also access DB2 data through JDBC.
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OSCuneyt Goksu
This document discusses several practical DBA activities in DB2 9 and 10 for z/OS including recovering from accidentally dropping a table, defining a trusted context for security, including columns in indexes for performance, creating indexes on expressions, and using MAXTEMP_RID in version 10 for performance. Steps are provided for recovering a dropped table using log records, archive logs, and VSAM copy techniques. Trusted contexts are introduced for efficiently switching users without credentials. Including columns in indexes and new features in version 10 like MAXTEMP_RID are highlighted for potential performance improvements.
This document provides an overview of performance monitoring and optimization for SQL Server databases. It discusses monitoring database activity using tools like SQL Profiler and Activity Monitor, identifying bottlenecks, using the Database Engine Tuning Advisor to generate optimization recommendations, and addressing issues related to processes, locking, and deadlocks. Best practices emphasized establishing a performance baseline, making incremental changes while measuring impact, and focusing on specific issues to optimize real-world workloads.
"Dear Students,
Greetings from www.etraining.guru
We provide BEST online training for IBM DB2 LUW/UDB DBA by a database architect. Our DB2 Trainer comes with a working experience of 11+ years, 9+ years in DB2 and a DB2 certified professional.
DB2 LUW DBA Course Content: http://www.etraining.guru/course/dba/online-training-db2-luw-udb-dba
Course Cost: USD 350 (or) INR 21000
Number of Hours: 30-35 hours
Regards,
Karthik
www.etraining.guru
This document provides an overview of the DB2 10.1 Basic Database Administration Workshop for Linux, Unix and Windows. It introduces the instructor, Iqbal Goralwalla, who has extensive experience developing and working with DB2. The document discusses DB2 editions and key features, tools replaced in DB2 10 like Control Center, the new IBM Data Studio tool, and the DB2 instance and process models.
DB2 runs on 5 address spaces that each perform essential functions:
- DSNMSTR controls connections to other systems and performs logging, recovery, and system management.
- DSNDBM1 supports data definition, manipulation, and retrieval.
- IRLMPROC controls concurrent data access and maintains integrity through locking.
- DSNDIST enables remote access to distributed databases.
- DSNSPAS provides an isolated environment to execute stored procedures.
The document provides an overview of SQL Server including:
- The architecture including system databases like master, model, msdb, and tempdb.
- Recovery models like full, bulk-logged, and simple.
- Backup and restore options including full, differential, transaction log, and file group backups.
- T-SQL system stored procedures for administration tasks.
- SQL commands and functions.
- SQL Agent jobs which are scheduled tasks consisting of steps to perform automated tasks.
This document discusses the relationship between DB2 and storage management. It describes how DB2 uses storage through tablespaces, indexes, and other objects that are stored on disk as VSAM data sets. It also discusses how DB2 interacts with DFSMS to manage data sets and how storage groups and SMS can be used to simplify storage administration for DB2 objects. While DB2 provides storage management features, there is still a gap between DBA and storage administration that tools can help address.
The document provides an overview of the Oracle database including its architecture, components, and features. It discusses Oracle's memory structure consisting of the shared pool, database buffer cache, and redo log buffer. It describes Oracle's process structure including background processes like DBWR, LGWR, PMON and SMON. It also covers Oracle's storage structure such as datafiles, redo logs, control files and the physical and logical storage architectures including tablespaces, segments, extents and blocks.
The document provides an overview of DB2 and discusses key concepts such as instances, databases, tablespaces, and recovery. It describes how to install and configure DB2, create instances and databases, load and move data between databases, and perform backups and recovery. Examples are given of commands used to create tablespaces and load data. The document also mentions tools for visualizing queries and monitoring performance.
The document provides an overview of the Oracle database architecture including its major components, memory structures, background processes, logical and physical storage structures, and Automatic Storage Management (ASM) storage components. Specifically, it discusses the System Global Area (SGA) and Program Global Area (PGA), background processes like the database writer (DBWn) and log writer (LGWR), tablespaces and data files, and how ASM manages Oracle database files. The objectives are to explain these various architectural elements that make up the Oracle database.
The document discusses various DB2 recovery options including backup and restore, the recovery process model, important recovery-related system files, advanced copy services, and transportable schemas. It provides examples of the backup and restore process models and describes key DB2 recovery-related files. It also outlines the scripted interface for advanced copy services backup and differences between DB2 versions 9.7 and 10.1 related to advanced copy services.
The document discusses DB2 architecture and concepts. It explains that each DB2 installation has a Database Administration Server (DAS) that provides remote administration support. It also discusses the DB2 Profile Registry, which stores configurable settings. The document then covers the instance concept, noting that an instance is a set of processes, disk, and memory allocations that provide database services and can contain one or more databases.
The document provides an overview of the DB2 database on mainframe systems. It discusses prerequisites for DB2 including mainframe concepts, COBOL, file handling, and VSAM. It then covers topics like database introduction, relational concepts, data definition language, SQL, DB2 objects, and more. The last section lists additional topics to be covered, including more on SQL statements, functions, complex queries, DML statements, dynamic SQL, and DB2 objects like indexes and views.
This document provides an overview of using DB2 on IBM mainframe systems. It discusses logging into TSO, allocating datasets for DB2 use, using the SPUFI tool to interactively execute SQL statements against DB2, and some key DB2 concepts like logical unit of work and the different views that programs and the system have of the DB2 environment.
MS SQL Server is a database server produced by Microsoft that enables users to write and execute SQL queries and statements. It consists of several features like Query Analyzer, Profiler, and Service Manager. Multiple instances of SQL Server can be installed on a machine, with each instance having its own set of users, databases, and other objects. SQL Server uses data files, filegroups, and transaction logs to store database objects and record transactions. The data dictionary contains metadata about database schemas and is stored differently in Oracle and SQL Server.
This document discusses database partitioning, table partitioning, and multi-dimensional clustering (MDC) in DB2 9. It begins with an introduction to these partitioning technologies and concepts. The document then examines the benefits and considerations of each approach. Several chapters provide details on implementing and administering database partitioning, table partitioning, and using materialized query tables to improve performance in a partitioned database environment. The document concludes with best practices for partitioning.
This PPT File, helps with the Basic Interview Questions specially for DataBase Domain.. For more questions , please log in to www.rekruitin.com
By ReKruiTIn.com
The document discusses the physical architecture of SQL Server, including components like pages, extents, tables, indexes, database files, file groups, and transaction log files. Pages are the smallest storage unit, while extents contain multiple pages. Tables and indexes are made up of pages and extents. Database files store this data on disk and are organized into file groups. Transaction log files log all data modifications for recovery purposes.
This document provides an overview of various database administration concepts in DB2 including tables, views, indexes, procedures, triggers, tablespaces, and buffer pools. It discusses how tables are used to store column and row data, and how system catalog tables track metadata. It also describes views, indexes, procedures, triggers, how they are used and created. The document outlines how tablespaces are used to logically group database objects and storage, and how buffer pools cache data pages in memory to improve performance.
This document provides information on setting up high availability disaster recovery (HADR) between two DB2 pureScale clusters. It outlines the basic steps, which include creating a standby database, configuring HADR parameters on the primary and standby servers, and starting HADR. It also discusses some HADR restrictions in pureScale environments and considerations for configuration parameters.
The document discusses database layout recommendations for SAP installations using DB2 UDB. It recommends striping all database objects like tablespaces and file systems across all available storage devices. This distributes I/O load and avoids potential hotspots. It also discusses maintaining balanced containers within tablespaces and techniques for growing the database size over time. The examples are based on an IBM Enterprise Storage Server but the concepts can apply to other hardware.
The document discusses various sources of waste and performance issues in the NETS database, along with improvements made over two years to address these issues. Key sources of waste included unused indexes, inefficient index placement, sparse table blocks from nologging inserts, and excessive temporary work areas from sorting. Improvements such as SQL tuning, rebuilds to increase block density, and compressed objects helped reduce waste and contention for storage and processing resources. Ongoing efforts aim to further optimize reliability, capacity planning, disaster recovery, and workload processing.
This document discusses the relationship between DB2 and storage management on IBM mainframes. It begins by describing how DBAs and storage administrators typically have different focuses, with DBAs more focused on database objects and storage administrators focused on overall storage capacity. It then discusses how DB2 uses storage, including for tablespaces, indexes, logs, and backups. It also covers DB2's integration with DFSMS for storage management capabilities like storage groups, data placement, and space management. Finally, it discusses how modern storage architectures have reduced the importance of careful data set placement that was previously recommended for database performance.
Use EXPLAIN to profile query execution plans. Optimize queries by using proper indexes, limiting unnecessary DISTINCT and ORDER BY clauses, batching INSERTs, and avoiding correlated subqueries. Know your storage engines and choose the best one for your data needs. Monitor configuration variables, indexes, and queries to ensure optimal performance. Design schemas thoughtfully with normalization and denormalization in mind.
This document discusses storage in database systems, including disks, buffer management, files of records, and access methods. It describes how data is stored on disks in pages and the implications this has for database design, such as the need to carefully plan read and write operations. The buffer manager caches pages in main memory to reduce disk I/O. Files are the abstraction used to organize records across multiple pages on disk. Records can be stored in unordered heap files or other structures like sorted files and indexes to enable different access patterns.
Oracle Database 12c includes many new features across SQL, PL/SQL, database management, partitioning, patching, compression, Data Guard, and pluggable databases. Key features include increased datatype size limits, identity columns, implicit result sets in PL/SQL, adaptive plans, row pattern matching, pluggable databases that can be plugged into and unplugged from container databases, and many enhancements to compression, partitioning, Data Guard, and patching functionality.
Oracle8i introduces locally-managed tablespaces that allow the database to automatically manage space allocation through the use of internal bitmaps, eliminating the need for manual space management by DBAs. Locally-managed tablespaces simplify space management operations by setting or clearing bits rather than updating data dictionary tables, improving performance and scalability. They also automatically track adjacent free space and allow extents to be allocated and reused with no fragmentation or wasted space. The new feature frees DBAs from frequently managing tablespace sizes and reacting to fragmentation issues.
DB2 FAQs provides questions and answers about DB2 concepts including what DB2 is, what an access path is, what a plan and bind are, what buffer pools and storage groups are used for, and what information can be found in DB2 catalog tables.
The document discusses database design and NoSQL databases like Couchbase. It covers topics such as data structures, the differences between relational and non-relational databases, handling conflicts in Couchbase, and optimizing performance in Couchbase by using efficient document structures and SDK methods. Effective document structures and database configuration can improve the read and write efficiency of Couchbase applications.
This document describes how to shrink a SQL Server database to recover unused space. It can be done through SQL Server Management Studio or Transact-SQL. Shrinking moves data pages towards the front of files and frees up space at the end, which is then returned to the file system. Limitations include that databases cannot shrink below their minimum size and backups cannot occur during shrinking. It is recommended to only shrink after operations that create unused space and to rebuild indexes afterwards due to increased fragmentation.
The document discusses database hardware requirements like RAM, disk space, processors and networks and how they impact database performance. It also covers topics like transaction logging, how databases and their related files are structured, and the different SQL data types and statements used to work with databases. Various SQL objects like tables, views, indexes and their creation are explained along with examples.
DB2 architecture includes databases, the database configuration file, tablespaces, buffer pools, and log files. Databases are independent collections of objects like tables and indexes. The database configuration file defines database properties. Tablespaces are logical storage areas for tables, and the default tablespaces are SYSCATSPACE, TEMPSPACE1, and USERSPACE1. Buffer pools in memory improve query performance by caching table data and logs record all database operations for recovery.
Presentation db2 best practices for optimal performancesolarisyougood
This document summarizes best practices for optimizing DB2 performance on various platforms. It discusses sizing workloads based on factors like concurrent users and response time objectives. Guidelines are provided for selecting CPUs, memory, disks and platforms. The document reviews physical database design best practices like choosing a page size and tablespace design. It also discusses index design, compression techniques, and benchmark results showing DB2's high performance.
Apache Hadoop India Summit 2011 talk "Hadoop Map-Reduce Programming & Best Pr...Yahoo Developer Network
This document provides an overview of MapReduce programming and best practices for Apache Hadoop. It describes the key components of Hadoop including HDFS, MapReduce, and the data flow. It also discusses optimizations that can be made to MapReduce jobs, such as using combiners, compression, and speculation. Finally, it outlines some anti-patterns to avoid and tips for debugging MapReduce applications.
TileDB is a novel storage manager for multi-dimensional arrays that organizes array elements into ordered collections called fragments. This allows TileDB to efficiently support both dense and sparse arrays through sequential writes. The paper evaluates TileDB against HDF5, SciDB, and Vertica. Experiments show TileDB is several orders of magnitude faster than competitors for random updates to dense arrays and loading/updating sparse arrays. TileDB also exhibits excellent scalability with dataset size and parallelism. However, future work could evaluate TileDB on higher dimensional real-world data and implement additional compression schemes.
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPathCommunity
Join this UiPath Community Berlin meetup to explore the Orchestrator API, Swagger interface, and the Test Manager API. Learn how to leverage these tools to streamline automation, enhance testing, and integrate more efficiently with UiPath. Perfect for developers, testers, and automation enthusiasts!
📕 Agenda
Welcome & Introductions
Orchestrator API Overview
Exploring the Swagger Interface
Test Manager API Highlights
Streamlining Automation & Testing with APIs (Demo)
Q&A and Open Discussion
Perfect for developers, testers, and automation enthusiasts!
👉 Join our UiPath Community Berlin chapter: https://community.uipath.com/berlin/
This session streamed live on April 29, 2025, 18:00 CET.
Check out all our upcoming UiPath Community sessions at https://community.uipath.com/events/.
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...SOFTTECHHUB
I started my online journey with several hosting services before stumbling upon Ai EngineHost. At first, the idea of paying one fee and getting lifetime access seemed too good to pass up. The platform is built on reliable US-based servers, ensuring your projects run at high speeds and remain safe. Let me take you step by step through its benefits and features as I explain why this hosting solution is a perfect fit for digital entrepreneurs.
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025BookNet Canada
Book industry standards are evolving rapidly. In the first part of this session, we’ll share an overview of key developments from 2024 and the early months of 2025. Then, BookNet’s resident standards expert, Tom Richardson, and CEO, Lauren Stewart, have a forward-looking conversation about what’s next.
Link to recording, transcript, and accompanying resource: https://bnctechforum.ca/sessions/standardsgoals-for-2025-standards-certification-roundup/
Presented by BookNet Canada on May 6, 2025 with support from the Department of Canadian Heritage.
Quantum Computing Quick Research Guide by Arthur MorganArthur Morgan
This is a Quick Research Guide (QRG).
QRGs include the following:
- A brief, high-level overview of the QRG topic.
- A milestone timeline for the QRG topic.
- Links to various free online resource materials to provide a deeper dive into the QRG topic.
- Conclusion and a recommendation for at least two books available in the SJPL system on the QRG topic.
QRGs planned for the series:
- Artificial Intelligence QRG
- Quantum Computing QRG
- Big Data Analytics QRG
- Spacecraft Guidance, Navigation & Control QRG (coming 2026)
- UK Home Computing & The Birth of ARM QRG (coming 2027)
Any questions or comments?
- Please contact Arthur Morgan at [email protected].
100% human made.
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfAbi john
Analyze the growth of meme coins from mere online jokes to potential assets in the digital economy. Explore the community, culture, and utility as they elevate themselves to a new era in cryptocurrency.
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxJustin Reock
Building 10x Organizations with Modern Productivity Metrics
10x developers may be a myth, but 10x organizations are very real, as proven by the influential study performed in the 1980s, ‘The Coding War Games.’
Right now, here in early 2025, we seem to be experiencing YAPP (Yet Another Productivity Philosophy), and that philosophy is converging on developer experience. It seems that with every new method we invent for the delivery of products, whether physical or virtual, we reinvent productivity philosophies to go alongside them.
But which of these approaches actually work? DORA? SPACE? DevEx? What should we invest in and create urgency behind today, so that we don’t find ourselves having the same discussion again in a decade?
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...Alan Dix
Talk at the final event of Data Fusion Dynamics: A Collaborative UK-Saudi Initiative in Cybersecurity and Artificial Intelligence funded by the British Council UK-Saudi Challenge Fund 2024, Cardiff Metropolitan University, 29th April 2025
https://alandix.com/academic/talks/CMet2025-AI-Changes-Everything/
Is AI just another technology, or does it fundamentally change the way we live and think?
Every technology has a direct impact with micro-ethical consequences, some good, some bad. However more profound are the ways in which some technologies reshape the very fabric of society with macro-ethical impacts. The invention of the stirrup revolutionised mounted combat, but as a side effect gave rise to the feudal system, which still shapes politics today. The internal combustion engine offers personal freedom and creates pollution, but has also transformed the nature of urban planning and international trade. When we look at AI the micro-ethical issues, such as bias, are most obvious, but the macro-ethical challenges may be greater.
At a micro-ethical level AI has the potential to deepen social, ethnic and gender bias, issues I have warned about since the early 1990s! It is also being used increasingly on the battlefield. However, it also offers amazing opportunities in health and educations, as the recent Nobel prizes for the developers of AlphaFold illustrate. More radically, the need to encode ethics acts as a mirror to surface essential ethical problems and conflicts.
At the macro-ethical level, by the early 2000s digital technology had already begun to undermine sovereignty (e.g. gambling), market economics (through network effects and emergent monopolies), and the very meaning of money. Modern AI is the child of big data, big computation and ultimately big business, intensifying the inherent tendency of digital technology to concentrate power. AI is already unravelling the fundamentals of the social, political and economic world around us, but this is a world that needs radical reimagining to overcome the global environmental and human challenges that confront us. Our challenge is whether to let the threads fall as they may, or to use them to weave a better future.
Generative Artificial Intelligence (GenAI) in BusinessDr. Tathagat Varma
My talk for the Indian School of Business (ISB) Emerging Leaders Program Cohort 9. In this talk, I discussed key issues around adoption of GenAI in business - benefits, opportunities and limitations. I also discussed how my research on Theory of Cognitive Chasms helps address some of these issues
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Impelsys Inc.
Impelsys provided a robust testing solution, leveraging a risk-based and requirement-mapped approach to validate ICU Connect and CritiXpert. A well-defined test suite was developed to assess data communication, clinical data collection, transformation, and visualization across integrated devices.
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungenpanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-nomad-web-best-practices-und-verwaltung-von-multiuser-umgebungen/
HCL Nomad Web wird als die nächste Generation des HCL Notes-Clients gefeiert und bietet zahlreiche Vorteile, wie die Beseitigung des Bedarfs an Paketierung, Verteilung und Installation. Nomad Web-Client-Updates werden “automatisch” im Hintergrund installiert, was den administrativen Aufwand im Vergleich zu traditionellen HCL Notes-Clients erheblich reduziert. Allerdings stellt die Fehlerbehebung in Nomad Web im Vergleich zum Notes-Client einzigartige Herausforderungen dar.
Begleiten Sie Christoph und Marc, während sie demonstrieren, wie der Fehlerbehebungsprozess in HCL Nomad Web vereinfacht werden kann, um eine reibungslose und effiziente Benutzererfahrung zu gewährleisten.
In diesem Webinar werden wir effektive Strategien zur Diagnose und Lösung häufiger Probleme in HCL Nomad Web untersuchen, einschließlich
- Zugriff auf die Konsole
- Auffinden und Interpretieren von Protokolldateien
- Zugriff auf den Datenordner im Cache des Browsers (unter Verwendung von OPFS)
- Verständnis der Unterschiede zwischen Einzel- und Mehrbenutzerszenarien
- Nutzung der Client Clocking-Funktion
Technology Trends in 2025: AI and Big Data AnalyticsInData Labs
At InData Labs, we have been keeping an ear to the ground, looking out for AI-enabled digital transformation trends coming our way in 2025. Our report will provide a look into the technology landscape of the future, including:
-Artificial Intelligence Market Overview
-Strategies for AI Adoption in 2025
-Anticipated drivers of AI adoption and transformative technologies
-Benefits of AI and Big data for your business
-Tips on how to prepare your business for innovation
-AI and data privacy: Strategies for securing data privacy in AI models, etc.
Download your free copy nowand implement the key findings to improve your business.
Role of Data Annotation Services in AI-Powered ManufacturingAndrew Leo
From predictive maintenance to robotic automation, AI is driving the future of manufacturing. But without high-quality annotated data, even the smartest models fall short.
Discover how data annotation services are powering accuracy, safety, and efficiency in AI-driven manufacturing systems.
Precision in data labeling = Precision on the production floor.
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfSoftware Company
Explore the benefits and features of advanced logistics management software for businesses in Riyadh. This guide delves into the latest technologies, from real-time tracking and route optimization to warehouse management and inventory control, helping businesses streamline their logistics operations and reduce costs. Learn how implementing the right software solution can enhance efficiency, improve customer satisfaction, and provide a competitive edge in the growing logistics sector of Riyadh.
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Aqusag Technologies
In late April 2025, a significant portion of Europe, particularly Spain, Portugal, and parts of southern France, experienced widespread, rolling power outages that continue to affect millions of residents, businesses, and infrastructure systems.
How Can I use the AI Hype in my Business Context?Daniel Lehner
𝙄𝙨 𝘼𝙄 𝙟𝙪𝙨𝙩 𝙝𝙮𝙥𝙚? 𝙊𝙧 𝙞𝙨 𝙞𝙩 𝙩𝙝𝙚 𝙜𝙖𝙢𝙚 𝙘𝙝𝙖𝙣𝙜𝙚𝙧 𝙮𝙤𝙪𝙧 𝙗𝙪𝙨𝙞𝙣𝙚𝙨𝙨 𝙣𝙚𝙚𝙙𝙨?
Everyone’s talking about AI but is anyone really using it to create real value?
Most companies want to leverage AI. Few know 𝗵𝗼𝘄.
✅ What exactly should you ask to find real AI opportunities?
✅ Which AI techniques actually fit your business?
✅ Is your data even ready for AI?
If you’re not sure, you’re not alone. This is a condensed version of the slides I presented at a Linkedin webinar for Tecnovy on 28.04.2025.
Spark is a powerhouse for large datasets, but when it comes to smaller data workloads, its overhead can sometimes slow things down. What if you could achieve high performance and efficiency without the need for Spark?
At S&P Global Commodity Insights, having a complete view of global energy and commodities markets enables customers to make data-driven decisions with confidence and create long-term, sustainable value. 🌍
Explore delta-rs + CDC and how these open-source innovations power lightweight, high-performance data applications beyond Spark! 🚀
Linux Professional Institute LPIC-1 Exam.pdfRHCSA Guru
Ad
DB2 TABLESPACES
1. DB2 TABLESPACES
Part 1
A BRIEF INTRODUCTION FOR
BEGINNERS WITH LIST OF
COMMANDS FOR REGULAR
REFERENCE
- Rahul Anand
2. WHAT IS A TABLESPACE
A tablespace is essentially a logical view of storage encompassing one or more
physical storage devices called containers. When you create a table or an index in
a DB2 (LUW) database, you basically create them in a tablespace. A tablespace is
equivalent to a file folder which holds one or more files.
When you create a table (or an index), you create them in a tablespace. They
make you life easy by relieving you from the need to specify the full storage path
for every single table you create, which otherwise would have made the task of
creating a single table too cumbersome, complex and error prone.
A container is a building block of a tablespace. A container is an entity that allows
you to write to a disk. It can be a file or a directory or a unformatted disk attached
to database host (raw device). A container belongs to only one tablespace, but a
tablespace can have one or more containers.
TABLE
TABLESPACE
TBSP_01
CONTAINER
/DIR1/TBSP_01/c001
CONTAINER
/DIR3/TBSP_01/c001
CONTAINER
/DIR3/TBSP_01/c001
3. (Fig. 1) A Tablespace is essentially a group of containers (files or directories)
TABLESPACES AND DATABASE PARTITION GROUPS
A tablespace is created in a database partition group (set of database partitions).
Each tablespace is a mapped to a bufferpool (database memory). The bufferpool
and tablespace must belong to the same database partition group. A database
partition is a subset of db2 database, having its own data and index. You can use
the command to view the database partition groups defined in the db2 database:
db2 "LIST DATABASE PARTITION GROUPS SHOW DETAIL"
DATABASE PARTITION GROUP PMAP_ID DATABASE PARTITION NUMBER IN_USE
---------------------------- ------- ---------------------------- ------
IBMCATGROUP 0 0 Y
IBMDEFAULTGROUP 1 0 Y
For db2 SAMPLE database, the output is shown above. For a single partition
databases, there is only one partition group by default – IBMDEFAULTGROUP. A
bufferpool is a "RAM" memory of the database where data is fetched from the
containers of a tablespace for further processing by DB2.
CLASSIFICATION OF TABLESPACES
From operational management perspective, DB2 offers 3 types of tablespaces:
1) SYSTEM MANAGED SPACE (SMS)
2) DATABASE MANAGED SPACE (DMS)
3) AUTOMATIC STORAGE
SMS TABLESPACE: In SMS tablespace, the underlying containers of a
tablespace or PATHS or DIRECTORIES on storage media. Here the underlying
operating system takes over the allocation and growth management of the
tablespace. The space is allocated on demand. Each table/index/lob object is a
separate file in a SMS directory (denoted by SQL00XXX.DAT) file or so. We create
a SMS tablespace by specifying MANAGED BY SYSTEM clause in the CREATE
TABLESPACE command. In SMS tablespace, the user does not has to worry
4. about the managing the space growth of the tablespace, as long as there is
sufficient space on the disk for the directory to grow.
ILLUSTRATION: CREATING A SMS TABLESPACE
CREATE REGULAR TABLESPACE MY_SMS_TABLESPACE
IN DATABASE PARTITION GROUP IBMDEFAULTGROUP
PAGESIZE 8192
MANAGED BY SYSTEM USING ( 'C:db2sampleMY_SMS_TABLESPACE' )
ON DBPARTITIONNUM ( 0 )
BUFFERPOOL IBMDEFAULTBP
DROPPED TABLE RECOVERY ON;
DMS TABLESPACE: In DMS tablespace, the underlying container is a file or a
raw device. Here the onus of space management lies on the user(dba) of the
database. He or she is required to add space to the tablespace once it exhausts
the allocated space. In this case, all data objects lies on the container file(s). We
create a DMS tablespace by specifying MANAGED BY DATABASE clause in the
CREATE TABLESPACE command.
ILLUSTRATION: CREATE A DMS TABLESPACE
CREATE REGULAR TABLESPACE MY_DMS_TABLESPACE
IN DATABASE PARTITION GROUP IBMDEFAULTGROUP
PAGESIZE 8192
MANAGED BY DATABASE USING ( FILE 'C:db2sampleMY_DMS_TABLESPACEC00' 1000, FILE
'C:db2sampleMY_DMS_TABLESPACEC01' 2000 )
BUFFERPOOL IBMDEFAULTBP;
AUTOMATIC STORAGE TABLESPACE: An automatic storage tablespace is a
kind of trade-off between DMS and a SMS tablespace. You don’t have to specify
the container path/file for these tablespaces. These tablespaces makes use of the
storage groups defined on the database. You can use the default one (defined
while database was created) or create your own customized one. In this type of
tablespaces, we define an initial size of the tablespace (in KB/MB/GB) and an
increment unit (either in KB/MB/GB or in percent of the current size of the
tablespace). When the space in the tablespace is exhausred, DB2 will increment
the size of the tablespace by this specified increment amout.
ILLUSTRATION: CREATE A AUTOMATIC STORAGE TABLESPACE
CREATE STOGROUP MY_STORAGE_GROUP ON 'C:db2sample'
CREATE REGULAR TABLESPACE MY_AUTOSTOR_TBSP
5. IN DATABASE PARTITION GROUP IBMDEFAULTGROUP
PAGESIZE 8192
MANAGED BY AUTOMATIC STORAGE
USING STOGROUP IBMSTOGROUP
AUTORESIZE YES
INCREASESIZE 10 M
MAXSIZE 10 G
BUFFERPOOL IBMDEFAULTBP
;
I will illustrate the other options used in CREATE TABLESPACE commands used
in above illustrations later.
From the type of data the tablespace deals with, it can be categorized as
1) USER TABLESPACE
2) SYSTEM TEMPORARY TABLESPACE
3) USER TEMPORARY TABLESPACE
A user tablespace contains the data for the user-defined tables.
A system-temporary tablespace is used by DB2 to hold temporary data while
performing certain specific operations such as a join and a sorting data.
A user-temporary tablespace is used to hold data for GLOBAL TEMPORARY
TABLES (CGTT & DGTT).
Based on size of RID, tablespace can also be categorized as :
1) REGULAR TABLESPACES
2) LARGE TABLESPACES
REGULAR TABLESPACES: This was a feature of old db2 version. These
tablespace use 4-byte RID (record identifier). This has a limitation that the
maximum size of the table on a 32K pagesize tablespace could be 512G max.
LARGE TABLESPACES: From V9, DB2 introduced 6BYTE RID to identify each
row of a table. These larger RID allows bigger table sizes and hence bigger
tablespace sizes.
Max. Size of a table 4K PAGESIZE 8K PAGESIZE 16K PAGESIZE 32K PAGESIZE
REGULAR (GB) 64 128 256 512
6. LARGE (TB) 8 16 32 64
NOTE: The RID is used to uniquely identify a row for a table in a tablespace.
IMPORTANT CONFIGURATION PARAMETERS OF TABLESPACES
PAGE & PAGESIZE: The smallest building block of tablespace is called PAGE. It
is the number of bytes of storage (or memory location) that is allocated for the
purpose of storing information (data). It is similar to a paper page used in files. A
file consists of several classified documents and each of these classified
documents contains information written over a set of papers (writing material).
Similarly, we have a PAGE in database system. Each table/index (classified
information about an entity) occupies space on storage. The smallest unit of
storage that is allocated to these tables (paper page) is called a page.
The number of bytes in a page is called a PAGESIZE. DB2 supports 4 types of
pages – 4K (4096 bytes), 8K (8192 bytes), 16K (16384 bytes) and 32 K(32768
bytes). Just as a large paper page size (A4/A4 etc.) allows to write larger
sentences, similarly larger the tablespace page size, the larger the length of the
row will be.
PAGESIZE 4K PAGESIZE 8K PAGESIZE 16K PAGESIZE 32K PAGESIZE
ROW SIZE 4005 8101 16293 32677
EXTENT SIZE: This is applicable only when you have more than one container
defined for a tablespace (C:db2sampleMY_DMS_TABLESPACEC00 and
C:db2sampleMY_DMS_TABLESPACEC01 in our example for MY_DMS_TABLESPACE tablespace).
When there are multiple containers, DB2 reserves a predefined number of pages
from the first container (defined by the parameter EXTENT SIZE). Once all the
pages are exhausted, it skips to the next container (C01) and reserves another
extent of pages. This is repeated in a round-robin fashion. The default value is 32.
Once a tablespace is created, you cannot change this value.
Extent size =4
EXTENT
C01
1
1 1 1 5 5 5 5 9 9 9 9 … …
EXTENT
C02
2
2 2 2 6 6 6 6 10 10 10 10
EXTENT
C03
3 3 3 3 7 7 7 7 … …
EXTENT
C04 4 4 4 4 8 8 8 8 … … …
7. PREFETCH SIZE: When data is fetched is from pages of tablespaces to be read
in memory (bufferpools), they are fetched in block of pages. These number of
pages in these blocks is called PREFETCH SIZE. Pre Fetching helps in reducing
wait cycles in IO and improves READ performance, especially for sequential bulk
reads. This parameter can be changed after a tablespace is created.
OVERHEAD: This is measured in number of milliseconds. It is the sum of IO
controller overhead and disk seek and latency time.
TRANSFERRATE: This is also measured in number of milliseconds and is another
IO cost parameter marker. This is the time required to read a PAGE to bufferpool.
Both OVERHEAD and TRANSFERRATE are used by DB2 Optimizer to determine
the IO costs involved with query execution. Both of them can be changed after a
tablespace is created.
BUFFERPOOL: A bufferpool is a working memory of the database (portion of
RAM or more precisely database memory allocated to DB2 to fetch data from disk
so that it could be processed and returned to the caller). A tablespace is bounded
to a bufferpool, since you cannot perform any data processing without first fetching
the data from disk to memory. Both the tablespace and the associated bufferpool
should have the same page size and must reside in the same database partition
group.
TABLESPACE ACCESS
You can specify a tablespace for your table (or index) by using the IN clause of the
create table command.
db2 "CREATE TABLE ABC.T3(C1 INT, C2 CLOB(1000) ) IN DATA_TBSP INDEX IN INDEX_TBSP
LONG IN LONG_TBSP"
The IN clause identifies the tablespace for data, INDEX IN for index data and
LONG IN for LOB/XML data. If you don’t specify the index/long tablespaces, DB2
will use the DATA tablespace for the same. If you don’t specify the tablespace for
DATA, DB2 will pick up the first available tablespace with the minimum page size.
If no tablespace is available, an error is thrown.
In order to be able to use a tablespace for a table, the ID that creates the table
must have direct (or indirect access via group/role membership) USE privilege on
8. the tablespace. You can grant the USE privilege on a tablespace by using the
GRANT USE OF TABLESPACE command.
db2 "GRANT USE OF TABLESPACE MY_SMS_TABLESPACE to user1"
VIEWING TABLESPACES
DB2 provides LIST TABLESPACE [SHOW DETAIL] command to check the
available tablespaces. A section of the output of the LIST TABLESPACES SHOW
DETAIL command executed on sample database is shown below for the
tablespace MY_DMS_TABLESPACE that we created above.
On a DPF database, the command shows the output only for the partition that you
are connected to. In order to get the output on all the nodes, use db2_all.
db2 "list tablespaces show detail"
db2_all "db2 list tablespaces show detail"
Tablespace ID = 7
Name = MY_DMS_TABLESPACE
Type = Database managed space
Contents = All permanent data. Regular table space.
State = 0x0000
Detailed explanation:
Normal
Total pages = 3000
Useable pages = 2912
Used pages = 288
Free pages = 2624
High water mark (pages) = 288
Page size (bytes) = 8192
Extent size (pages) = 32
Prefetch size (pages) = 64
Number of containers = 2
You can also query SYSCAT.TABLESPACES/SYSIBMADM.TBSP_UTILIZATION/
SYSIBMADM.MON_TBSP_UTILIZATION catalog table/views to get the details.
db2 "SELECT SUBSTR(TBSPACE, 1, 16)TBSPACE, TBSPACETYPE, DATATYPE, PAGESIZE,
EXTENTSIZE, PREFETCHSIZE FROM SYSCAT.TABLESPACES"
TBSPACE TBSPACETYPE DATATYPE PAGESIZE EXTENTSIZE PREFETCHSIZE
---------------- ----------- -------- ----------- ----------- ------------
SYSCATSPACE D A 8192 4 -1
TEMPSPACE1 S T 8192 32 -1
USERSPACE1 D L 8192 32 -1
IBMDB2SAMPLEREL D L 8192 32 -1
IBMDB2SAMPLEXML D L 8192 32 -1
SYSTOOLSPACE D L 8192 4 -1
MY_SMS_TABLESPAC S A 8192 32 -1
MY_DMS_TABLESPAC D A 8192 32 -1
MY_AUTOSTOR_TBSP D A 8192 32 -1
10. TBSP_INCREASE_SIZE_PERCENT SYSIBM SMALLINT 2 0 Yes
TBSP_LAST_RESIZE_TIME SYSIBM TIMESTAMP 10 6 Yes
TBSP_LAST_RESIZE_FAILED SYSIBM SMALLINT 2 0 Yes
TBSP_USING_AUTO_STORAGE SYSIBM SMALLINT 2 0 Yes
TBSP_AUTO_RESIZE_ENABLED SYSIBM SMALLINT 2 0 Yes
DBPGNAME SYSIBM VARCHAR 128 0 No
TBSP_NUM_CONTAINERS SYSIBM BIGINT 8 0 Yes
REMARKS SYSIBM VARCHAR 254 0 Yes
DBPARTITIONNUM SYSIBM SMALLINT 2 0 Yes
SNAPSHOT_TIMESTAMP: The timestamp at which you ran the SQL to get the
info (or current time)
TBSP_CREATE_TIME: The timestamp at which the tablespace was created
TBSP_STATE: The tablespace current state.
TBSP_TOTAL_SIZE_KB / TBSP_USABLE_SIZE_KB / USABLE_SIZE_KB /
TBSP_FREE_SIZE_KB: These columns gives us the size of the tablespaces in
KB. We can divide it by 1024 to give values in MB (or 1048576 for GB).
TBSP_UTILIZATION_PERCENT: The _PERCENT column gives us the %
utilization. This can used to writing tablespace usage monitoring scripts.
TBSP_TOTAL_PAGES / TBSP_USABLE_PAGES / TBSP_USED_PAGES /
TBSP_FREE_PAGES : These corresponds the classical output of LIST
TABLESPACE command and gives the tablespace allocation details in terms of
pages rather than actual size.
Please note that total size of tablespace can be calculated by formula: Total
pages * Total pages (in bytes).
TBSP_PAGE_TOP: This is the current page number of the first free extent that is
available above the last allocated extent. (Remember tablespace pages are
allocated in terms of extent sizes). This indicates the HIGH WATERMARK of the
tablespace. It is not an indicator of the total used space. There could be
pages(extents) that are free but lie below the HIGH WATER MARK(HWM). These
extents are not usable, because DB2 allocated extents of pages above the HWM.
This is applicable for DMS tablespaces only.
Consider, for a tablespace, Total pages = 4096 and Extent size = 32. Then total
number of extents=Total Pages/Extent Size= 128. Now, if LIST TABLESPACE
command shows High water mark =96. Then it means that the last extent number
11. (all extents in a tablespace are indexed from 0 onwards) that was allocated is
96/Extent Size, i.e. 96/32 or 4.
If the last allocated Extent number (or HWM) is very high ~ Total number of
extents available and there are still considerable number of Free extents (Free
pages/extent size) available, then we need to reorganize the tablespace in order to
bring the HWM down. There are several ways to reduce HWM (like table reorg/
dropping and recreating tables/ ALTER TABLESPACE operations. I don’t want to
dwell much into this topic now.
DBPARTITIONNUM: This gives the tablespace details for a given partition of a
database. For single partition database, this value is 0. For DPF databases, it will
consists the partition numbers of the partitiongroup(DBPGNAME) in which the
tablespace has been built.
TBSP_NUM_CONTAINERS : This field gives the total number of containers for a
DMS tablespace.
TABLESPACE STATES
In order to control data integrity and in certain cases, data protection and
recoverability, DB2 controls the access on the tablespace as well as its availability
by putting it in different states. DB2 10.5 infocenter lists 25 different states
available now. This information is available in all the tablespace information
gathering methods discussed above.
For list tablespace output, the state is given in hexadecimal value.
Tablespace ID = 7
Name = MY_DMS_TABLESPACE
Type = Database managed space
Contents = All permanent data. Regular table space.
State = 0x0000
Detailed explanation:
Normal
Total pages = 3000
Useable pages = 2912
Used pages = 288
Free pages = 2624
High water mark (pages) = 288
Page size (bytes) = 8192
Extent size (pages) = 32
Prefetch size (pages) = 64
Number of containers = 2
12. We can use the command db2tbst command to get the description of this
hexadecimal value.
For example, if the tablespace is currently being backed up (either by whole
database backup or tablespace backup), then the state filed in output of the list
tablespace will show 0x800.
Issue db2ts against this hex value to get the meaning of it.
db2tbst 0x800
State = Backup in Progress
For normal states, the Hex value will be 0X000
db2tbst 0x0000
State = Normal
You can also get the current state of the tablespace by issuing query against
SYSIBMADM.TBSP_UTILIZATION (or SYSIBMADM.MON_TBSP_UTILIZATION).
db2 "SELECT SUBSTR(TBSP_NAME, 1, 16)TBSP_NAME, SUBSTR(TBSP_STATE,1,20)TBSP_STATE FROM
SYSIBMADM.TBSP_UTILIZATION "
TBSP_NAME TBSP_STATE
------------------------------ --------------------
SYSCATSPACE NORMAL
TEMPSPACE1 NORMAL
USERSPACE1 NORMAL
IBMDB2SAMPLEREL NORMAL
IBMDB2SAMPLEXML NORMAL
SYSTOOLSPACE NORMAL
MY_SMS_TABLESPACE BACKUP_IN_PROGRESS
MY_DMS_TABLESPACE BACKUP_IN_PROGRESS
MY_AUTOSTOR_TBSP BACKUP_IN_PROGRESS
9 record(s) selected.
SOME USEFUL COMMANDS FOR TABLESPACES
1. To show all tablespaces
db2 "LIST TABLESPACES SHOW DETAIL"
2. To get usage of dms tablespaces in MB
db2 "SELECT SUBSTR(TBSP_NAME, 1, 16)TBSP_NAME, DBPARTITIONNUM , (TBSP_TOTAL_SIZE_KB/1024)
TBSP_TOTAL_SIZE_MB, (TBSP_FREE_SIZE_KB /1024) TBSP_FREE_SIZE_MB, TBSP_UTILIZATION_PERCENT FROM
SYSIBMADM.TBSP_UTILIZATION WHERE TBSP_TYPE='DMS' "
3. To check the state of the tablespace
db2 "SELECT SUBSTR(TBSP_NAME, 1, 16)TBSP_NAME, DBPARTITIONNUM , SUBSTR(CONTAINER_NAME,1,10)
CONTAINER_NAME, CONTAINER_TYPE, TOTAL_PAGES, FS_ID, FS_TOTAL_SIZE_KB, FS_USED_SIZE_KB FROM
SYSIBMADM.CONTAINER_UTILIZATION"
4.To check which tablespaces are currently being backed up (during whole database backup process)
13. db2 "SELECT TBSP_NAME FROM SYSIBMADM.TBSP_UTILIZATION WHERE TBSP_STATE='BACKUP_IN_PROGRESS'"
5. To add 1000 pages to each container of a tablespace
db2 "ALTER TABLESPACE MY_DMS_TABLESPACE EXTEND (ALL 1000)"
6. To add 1000 Pages to just one container c00
db2 "ALTER TABLESPACE MY_DMS_TABLESPACE EXTEND (FILE 'C:db2sampleMY_DMS_TABLESPACEC00'
1000)"
7. To add 1000 pages to container c00 and 2000 pages to c01
db2 "ALTER TABLESPACE MY_DMS_TABLESPACE EXTEND (FILE 'C:db2sampleMY_DMS_TABLESPACEC00' 1000,
FILE 'C:db2sampleMY_DMS_TABLESPACEC01' 2000)"
8. To reduce 1000 pages from container c00
db2 "ALTER TABLESPACE MY_DMS_TABLESPACE REDUCE (FILE 'C:db2sampleMY_DMS_TABLESPACEC00' 1000)"
9. To change the prefetchsize to 64
db2 "ALTER TABLESPACE MY_DMS_TABLESPACE PREFETCHSIZE 20"
10. To check which tablespaces use AUTO STORAGE
db2 "SELECT TBSP_NAME FROM SYSIBMADM.TBSP_UTILIZATION WHERE TBSP_USING_AUTO_STORAGE=1"
11. To check the AUTO STORAGE parameters of a tablespace
db2 "SELECT TBSP_MAX_SIZE, TBSP_INCREASE_SIZE, TBSP_INCREASE_SIZE_PERCENT, TBSP_AUTO_RESIZE_ENABLED FROM
SYSIBMADM.TBSP_UTILIZATION WHERE TBSP_NAME='MY_AUTOSTOR_TBSP' "
12. To change the INCREASE_SIZE to 64K
db2 "ALTER TABLESPACE MY_AUTOSTOR_TBSP INCREASESIZE 64 K "
12. To change the INCREASE_SIZE to 5%
db2 "ALTER TABLESPACE MY_AUTOSTOR_TBSP INCREASESIZE 5 PERCENT "
13. To convert a REGULAR tablespace to LARGE
db2 "ALTER TABLESPACE MY_AUTOSTOR_TBSP CONVERT TO LARGE"
14. To turn ON filesystem caching,
db2 "ALTER TABLESPACE MY_AUTOSTOR_TBSP FILE SYSTEM CACHING "
15. To add a new container to the tablespace
db2 "ALTER TABLESPACE MY_DMS_TABLESPACE ADD (FILE 'C:db2sampleMY_DMS_TABLESPACEC002' 2000)"
db2 "ALTER TABLESPACE MY_DMS_TABLESPACE ADD (FILE 'C:db2sampleMY_DMS_TABLESPACEC003' 2M) "
(notice that 2M signifies 2 MB)
16. To drop a tablespace
db2 "DROP TABLESPACE MY_TBSP”
17. To bakup a tablespace
db2 "BACKUP DATABASE SAMPLE TABLESPACE MY_DMS_TABLESPACE ONLINE "
18. To bring a tablespace online
db2 "ALTER TABLESPACE MY_DMS_TABLESPACE SWITCH ONLINE"
14. About Me
I have been working as a DBA for last 10 years, currently with Financial Sector Company. There has been a shortage of documentation on DB2
topics (mostly coming from IBM Infocenter) when compared to MSSQL or Oracle so I wish to help the DBA community, especially the beginners
who face lots of challenges in their initial days. I have been trying to increase the volume of notes on specific topics which are of day to day use. I
hope my notes will be helpful to the DBA community.
I can be contacted via email at [email protected] .
Rahul Anand