This is a discussion on Creating db in 2 partitions out of 8 within the DB2 forums, part of the Database Server Software category; --> Hi I am having a requirement to create a db in 2 out of 8 partitiones. I have the ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| 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 multipartitioned 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 |
| |||
| arunrocks@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 |
| |||
| On Apr 11, 10:10 am, Knut Stolze <sto...@de.ibm.com> wrote: > 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 |
| |||
| Knut Stolze wrote: > arunrocks@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.nodegroups) 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. |
| |||
| 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 |
| |||
| arunrocks@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 |
| ||||
| arunrocks@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 <yourdb> show 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). |