473,804 Members | 2,265 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating db in 2 partitions out of 8

Hi
I am having a requirement to create a db in 2 out of 8 partitiones.
I have the following doubts.
1. should I create a new instance in 2 partitions alone (the present
instance spans 8 nodes)
2. or is there a way to create the db in 2 out of 8.
If I have to create a new instance, (its a BCU from IBM)
I;d be happy if someone would link a material (1st time I am working
in a partitioned env)
Should I execute db2icrt in each of the nodes??
Please help.

Apr 10 '07 #1
8 1650
On Apr 10, 8:50 pm, arunro...@gmail .com wrote:
Hi
I am having a requirement to create a db in 2 out of 8 partitiones.
I have the following doubts.
1. should I create a new instance in 2 partitions alone (the present
instance spans 8 nodes)
2. or is there a way to create the db in 2 out of 8.
If I have to create a new instance, (its a BCU from IBM)
I;d be happy if someone would link a material (1st time I am working
in a partitioned env)
Should I execute db2icrt in each of the nodes??
Please help.
Hi,

AFAIK with version 8 (LUW);
only option to address your requirement is the first option as already
mentioned by you.
Should I execute db2icrt in each of the nodes??
It depends if you are using single servers or multiple servers;
for a multipartitione d database on a single machine: you only have to
create a single instance (db2icrt) with the relevant entries in $HOME/
sqllib/db2nodes.cfg

Following is a good link to start with:
http://www-128.ibm.com/developerwork.../dm-0507desai/

Cheers
Prakash Gautam

Apr 11 '07 #2

Thanks Prakash. This is a fresh start in new direction for me.

Apr 11 '07 #3
ar*******@gmail .com wrote:
Hi
I am having a requirement to create a db in 2 out of 8 partitiones.
I have the following doubts.
1. should I create a new instance in 2 partitions alone (the present
instance spans 8 nodes)
2. or is there a way to create the db in 2 out of 8.
If I have to create a new instance, (its a BCU from IBM)
I;d be happy if someone would link a material (1st time I am working
in a partitioned env)
You could create the database on all 8 partitions, then adjust the partition
groups to include only the two partitions you want.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Apr 11 '07 #4
On Apr 11, 10:10 am, Knut Stolze <sto...@de.ibm. comwrote:
arunro...@gmail .com wrote:
Hi
I am having a requirement to create a db in 2 out of 8 partitiones.
I have the following doubts.
1. should I create a new instance in 2 partitions alone (the present
instance spans 8 nodes)
2. or is there a way to create the db in 2 out of 8.
If I have to create a new instance, (its a BCU from IBM)
I;d be happy if someone would link a material (1st time I am working
in a partitioned env)

You could create the database on all 8 partitions, then adjust the partition
groups to include only the two partitions you want.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
This is what I am doing now. thank you

Apr 11 '07 #5
Ian
Knut Stolze wrote:
ar*******@gmail .com wrote:
>Hi
I am having a requirement to create a db in 2 out of 8 partitiones.
I have the following doubts.
1. should I create a new instance in 2 partitions alone (the present
instance spans 8 nodes)
2. or is there a way to create the db in 2 out of 8.
If I have to create a new instance, (its a BCU from IBM)
I;d be happy if someone would link a material (1st time I am working
in a partitioned env)

You could create the database on all 8 partitions, then adjust the partition
groups to include only the two partitions you want.
The problem is that you can't really do this. IBMTEMPGROUP is a
"hidden" (in the sense that it doesn't appear in syscat.nodegrou ps)
database partition group that includes ALL partitions in your instance.
All system temporary tablespaces exist in IBMTEMPGROUP (you can't get
away from this).

So, while you can restrict the data in a database to a single (or pair)
of partitions, your database still spans all partitions in the instance.
And you still need to back up all partitions.

So, your best option is to create a second instance that has only 2
partitions.

Apr 12 '07 #6
Hi All
Thank you for advising me onthis. I have did what you guys told,
put data in a partition map spanning 2 nodes. Now I have different
doubt.
In windows, if I change a db cfg and it needs me to restart - SQL1363W
msg, I can go into control center and actually see if the changes are
'Done' or are 'PENDING'.
Is there a way in linux to do the same?

Thank you
Arun

Apr 12 '07 #7
ar*******@gmail .com wrote:
[...]
In windows, if I change a db cfg and it needs me to restart - SQL1363W
msg, I can go into control center and actually see if the changes are
'Done' or are 'PENDING'.
Is there a way in linux to do the same?
I assume you can do the same with the control center in linux (dont know
though). But here is how you can do it from the shell:

db2 connect to <db>
db2 get db cfg show detail | less -S

You'll get one column for "Current Value", and one for "Delayed Value"

/Lennart

Apr 12 '07 #8
Ian
ar*******@gmail .com wrote:
Hi All
Thank you for advising me onthis. I have did what you guys told,
put data in a partition map spanning 2 nodes. Now I have different
doubt.
In windows, if I change a db cfg and it needs me to restart - SQL1363W
msg, I can go into control center and actually see if the changes are
'Done' or are 'PENDING'.
Is there a way in linux to do the same?
Connect to the database, and

db2 get db cfg for <yourdbshow detail

This will show "current" and "delayed" values. Delayed = value for next
restart.

Or use db2pd -db <yourdb-dbcfg, and compare memory value (active) and
disk value (config file - next restart).
Also, in a partitioned database, remember that the database
configuration is unique for each partition. So make sure you update the
config on all partitions (when applicable).

Apr 12 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2224
by: Steve | last post by:
This post has two parts. First is my feedback on sets. (Hello? Last summer called, they want their discussion thread back...) Second is some questions about my implementation of a partition function for sets. Part 1. --- >From: Raymond Hettinger (vze4rx4y@verizon.net) >Subject: Py2.3: Feedback on Sets >Newsgroups: comp.lang.python >Date: 2003-08-11 23:02:18 PST
5
4311
by: Nick J Chackowsky | last post by:
Wrote a python script to find the partitions of an integer (a list of all the ways you can express n as a sum of integers). For example, the partitions of 5 are 5 4+1 3+2 2+2+1 3+1+1 2+1+1+1 1+1+1+1+1
3
5426
by: RunLevelZero | last post by:
I need a way to detect hard drives and their partitions... labels would be nice too... I did some googling but did not find anything all too useful. This will strictly be on Linux / Unix so any help would be greatly appreciated. TIA
6
13223
by: cantabile | last post by:
Hi, I'd like to get drives and partitions (and their size too) with python under Linux. So far, I thought of reading /proc/partitions but maybe i could use fdsik also ? How would I do that in python ? Thanks for your help (newbie here :) )
6
2312
by: Jack Li | last post by:
Hi All, I have DB2 EEE 7.2 12 db partitions running on AIX 5.1ML5 P690( one server). The AIX workload manager is on. I started the same peoplesoft job on all 12 nodes at the same time. But some node(partition) processing speed are much faster than the others. The fastest node took 15 hours. But the slowest node took 17 hours. According to DBA, the data are evenly disributed on 12 partitions. The configuration of the partitions are...
11
1879
by: Claude Henchoz | last post by:
Hi Is there any way of listing partitions on a (win32) computer without using WMI? Cheers, Claude
7
2850
by: Gladiator | last post by:
Hai all, I have Db2 installed in a partition environment . There are 4 partitons on which i created the instance. can any one tell me if i can create a database on the required partitons ...... that is i want to create the db on 1,3,4 partitons.
1
2050
by: Madhu Harchandani | last post by:
Hello i am working in a project in which i am using xnat technology in that data is entered through xml files only i need to enter 1000 records .so it is very cumbersome to create 1000 xml files So i need a simple way so that i can create and insert 1000 records in xnat database this is the xml file which i want to generate again and again with some different values Plz could someone helps me get over this problem ...
1
27808
Nepomuk
by: Nepomuk | last post by:
In most modern distributions of Linux and Unix (at least ones with graphical environments like KDE, Gnome or XFCE), you get to mount your partitions easily from the desktop. In some cases however, it isn't that easy. Note, that all of these commands have to be run in a terminal as root user. To open a terminal (sometimes called a console), either press ALT+F2 and type xterm (alternatives could be konsole or terminal) or press CRTL+ALT+F1 to...
0
9714
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10346
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10090
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9173
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7635
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6863
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5531
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3832
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.