Questions tagged [db2]

DB2 is a family of database servers developed by IBM. Supported platforms for DB2 servers are z/OS (formerly OS/390), Linux, UNIX, and Windows (referred to collectively as DB2 for LUW), and IBM i (formerly OS/400 or i5/OS). Originally designed as a relational engine, IBM has expanded DB2's capabilities on some platforms to include native XML support and an RDF-compliant graph store. When posting DB2 questions, please specify the platform and version.

DB2 is a family of database servers developed by IBM. The supported platforms for DB2 servers are z/OS (formerly OS/390), Linux, UNIX, and Windows (referred to collectively as DB2 for LUW), and IBM i (formerly OS/400 or i5/OS). Originally designed as a relational engine, IBM has expanded DB2's capabilities on some platforms to include native XML database features and an RDF-compliant graph store. On the IBM i platform, DB2 for i is tightly integrated into the operating system in a variety of ways, including a unique file system layer that allows database tables to be treated as structured files and vice versa.

DB2 for LUW has different editions: Express-C, Express Edition, Workgroup Server Edition, Enterprise Server Edition and Advanced Enterprise Server Edition. Each of these editions has different engine capabilities and different limits on the amount of RAM and the number of CPU cores that DB2 can use. DB2 for LUW offers a smooth upgrade path for databases that were created in a lower edition of the product (e.g., going from Workgroup Server Edition to Enterprise Server Edition).

DB2 Express-C is a no-cost DB2 engine that runs on Linux and Windows and is authorized for production use and redistribution. As part of the DB2 10.5 release in June 2013, IBM extended the system resource limits for DB2 Express-C to allow the database engine to use up to 16GB RAM and two CPU cores and set a maximum size of 15 terabytes per database.

In October 2009, IBM introduced DB2 pureScale, a database cluster solution for AIX on System p, suitable for online transaction processing (OLTP) workloads. Linux x86_64 support for DB2 pureScale on IBM System x hardware was added in August 2010. IBM based the design of DB2 pureScale on the Parallel Sysplex implementation of DB2 data sharing on z/OS. DB2 pureScale provides a fault-tolerant, clustered database engine that uses low-latency RDMA messaging and GPFS shared storage to present the appearance of a single, monolithic database to the application layer.

To handle large data volumes and complex queries that are common to online analytical processing (OLAP), DB2 for LUW provides a shared-nothing clustering implementation known as the database partitioning feature (DPF), which uses hash key partitioning to evenly distribute a single copy of the database across multiple servers. Incoming queries are automatically multiplexed to access multiple partitions in parallel. DPF was introduced in 1994, as was at times rebranded as DB2 Parallel Edition, DB2 Extended Enterprise Edition, or InfoSphere Warehouse.

The 10.5 version includes the BLU acceleration that consists in storing the data in columnar format. It allows us to store data in rows or columns, and that improves analytics performance.

Free DB2 Books

12687 questions
2
votes
0 answers

How a Table space for a query execution is chosen? - DB2

For one of my issue, I am trying to understand the functionalities of below DB2 entities, System Temporary table space. Page Size. Table Space. Buffer Pool. And below is my observation, There is a TableSpace linked to a table in the DB2 table…
Kannan Ramamoorthy
  • 3,980
  • 9
  • 45
  • 63
2
votes
1 answer

Squirrel - DB2 : Connection to the data server failed. The IBM Data Server for JDBC and SQLJ license was invalid

I am using squirrel to connect to DB2 database. I am able to successfully connect to one of our DB2 databases. But when I create a new connection to point to another db2 database, I get the below mentioned…
user2928913
  • 223
  • 1
  • 6
  • 15
2
votes
2 answers

Exporting Data - IBM Data Studio DB2

I am trying to export a large query from a DB2 database to a text file on my desktop using IBM Data Studio and I can't seem to get anything to work. When I run the query and right click on the results tab->Export->All Results it only gives me the…
user1723699
  • 1,031
  • 6
  • 13
  • 27
2
votes
1 answer

How can sqoop automatically trim some char-type-columns from db2 when importing data to hive?

I have a so big db2 table which contains many char type columns. I try to extract datas to hive via sqoop to fullfill different demands. In the past time, I manually trim all the char type colums when write Hivesql However, there are so many colums…
yqfang
  • 37
  • 6
2
votes
1 answer

Filtering XML using multiple conditions of xquery

Hi I have many XML files which have the structure like: A para A 40 Input Voltage
Milind
  • 415
  • 8
  • 24
2
votes
0 answers

How do you insert a line break into a DB2 SQL PL VARCHAR variable?

It seems like this should be tremendously easy, but I've had no luck thus far.
Stephen Frein
  • 103
  • 1
  • 5
2
votes
1 answer

SQL query to drop null/blank values from Database (DB2 and Teradata specific)

I am developing an application which uses external datasources. My Application supports multiple databases(viz. MySQl,MsSQl,Teradata, Oracle, DB2 etc.). When i create a datasource, I allow user to assign a primary key(pk) to the datasource. Now, I…
Chetan Kole
  • 137
  • 2
  • 7
2
votes
4 answers

db2 select distinct rows, but select all columns

Experts, I have a single table with multiple columns. col1, col2, col3, col4, col5, col6 I need to select distinct (col4), but I need all other columns also on my output. If I run, this ( select distinct(col4 ) from table1 ), then I get only col4…
stack400
  • 31
  • 1
  • 1
  • 2
2
votes
1 answer

IBM data studio not connecting to local DB2 databases

I have installed DB2 10.5 version on my local Ubuntu 12.04 Machine. Now i need a GUI. I already tried squirrel-sql & Db-Visualizer. While Db-Visualizer give me the view-only database structure, squirrel-sql give me some more options to manage. But…
kuldeep.kamboj
  • 2,566
  • 3
  • 26
  • 63
2
votes
1 answer

Turn on/off foreign key check for ALL tables in DB2

I need a SQL statement which turns off/on foreign key checks in a DB2 database. All I found so far is this: SET INTEGRITY FOR OFF but that turns off the constraints only for one specific table. I could iterate through all tables in…
Jardo
  • 1,939
  • 2
  • 25
  • 45
2
votes
1 answer

Store decimal float values (DECFLOAT) in database using db2 and c++

I want to store decimal float values in a table with column of type DECFLOAT using db2 library and c++. I understand that SQLDECIMAL64 and SQLDECIMAL128 have been added for storing decimal float values. Now to insert data into this DECFLOAT column…
Hudson
  • 21
  • 2
2
votes
1 answer

Do something with each row and then get union of results - SQL (DB2)

I couldn't find solution for this problem. I have table A with primary key ROW_ID, table B with same extern key and column SOMETHING. Also, I have function created like this: CREATE FUNCTION FIND_SOMETHING_FOR_ID(ROW_ID INTEGER) RETURNS…
2
votes
1 answer

I'm looking for a data extraction tool for db2

I am looking for a data extraction platform that works with JDBC and DB2 9.7. I need this to extract data and create a vendor specific formatted flat file out of it. Is there a utility written in the existing DB2 driver or JDBC that will assist in…
Harish Vangavolu
  • 965
  • 2
  • 12
  • 27
2
votes
4 answers

How to get variable value from inside a stored procedure in DB2?

This seems like it should be very easy...anyway, it is in MS SQL Server In a DB2 stored procedure, how can I just get the value of a variable? Say I have the following stored procedure: CREATE PROCEDURE etl.TestABC( ) LANGUAGE SQL BEGIN …
Sylvia
  • 2,578
  • 9
  • 30
  • 37
2
votes
3 answers

BizTalk DB2 adapter connection error

My colleagues are attempting to connect BizTalk 2006 R2 via DB2/MVS adapter to a database hosted on z/OS mainframe. When testing the connecting settings, they are getting the following error Could not connect to data source 'New Data Source': The…
icelava
  • 9,787
  • 7
  • 52
  • 74
1 2 3
99
100