473,395 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

db2 instances

Given the following situation, I am wondering what advantages and
disadvantages there would be for creating more than one instance.

For testing, we want to have more than one 'version' of a database.
Probably there will be only a single database [structure, that is], although
there could be more. Let's call this database CORE. We'll could have a
single instance with, say, CORE_DEV1, CORE_DEV2, CORE_DEV3, etc. (We'd also
have a separate production instance, on a separate machine, and just call
the database CORE. Or maybe CORE_PROD.)

Anyway, for DEV the other alternative would be to have several instances,
each instance owning one of the DEV databases. EG:
DB2INST1 with CORE_DEV1
DB2INST2 with CORE_DEV2
DB2INST3 with CORE_DEV3

And of course in this case we wouldn't need to have a suffix for each
database. We could just call it CORE on each separate instance.

Of course clients connecting to the databases in the second case would have
to have aliases, such as, well, CORE_DEV1, CORE_DEV2, CORE_DEV3, etc. :-)

When creating the dev databases (and there will probably be more than 3)
will it be easier to 'clone' another one if it has the same instance but a
different name or a different instance but the same name? Or neither? Does
having multiple instances make administrative tasks easier or more
difficult? Or neither? Anything else I should take in to consideration?

I am not the DBA, but the DBA is new to DB2 so I'd like to have some experts
weigh in on the matter.

Thanks!

Frank

Jan 4 '08 #1
2 1814
I'm not sure I follow what you're proposing, but there are other things
you should consider in deciding whether to have one database per
instance or more than one database per instance.

One is availability and the availability requirements of your
application. If an instance crashes or needs to be recycled
intentionally, all databases in that instance will be affected.

Another is resources (like memory and memory heaps) and control over
resources. There are some parameters that are controllable at the
database level and others that are controllable at the instance level. A
good source of to understand these would be the DB2 Admin Guide:
Performance.

Larry E.

Frank Swarbrick wrote:
Given the following situation, I am wondering what advantages and
disadvantages there would be for creating more than one instance.

For testing, we want to have more than one 'version' of a database.
Probably there will be only a single database [structure, that is], although
there could be more. Let's call this database CORE. We'll could have a
single instance with, say, CORE_DEV1, CORE_DEV2, CORE_DEV3, etc. (We'd also
have a separate production instance, on a separate machine, and just call
the database CORE. Or maybe CORE_PROD.)

Anyway, for DEV the other alternative would be to have several instances,
each instance owning one of the DEV databases. EG:
DB2INST1 with CORE_DEV1
DB2INST2 with CORE_DEV2
DB2INST3 with CORE_DEV3

And of course in this case we wouldn't need to have a suffix for each
database. We could just call it CORE on each separate instance.

Of course clients connecting to the databases in the second case would have
to have aliases, such as, well, CORE_DEV1, CORE_DEV2, CORE_DEV3, etc. :-)

When creating the dev databases (and there will probably be more than 3)
will it be easier to 'clone' another one if it has the same instance but a
different name or a different instance but the same name? Or neither? Does
having multiple instances make administrative tasks easier or more
difficult? Or neither? Anything else I should take in to consideration?

I am not the DBA, but the DBA is new to DB2 so I'd like to have some experts
weigh in on the matter.

Thanks!

Frank
Jan 5 '08 #2
"Frank Swarbrick" <Fr*************@efirstbank.comwrote in message
news:47******************@efirstbank.com...
Given the following situation, I am wondering what advantages and
disadvantages there would be for creating more than one instance.

For testing, we want to have more than one 'version' of a database.
Probably there will be only a single database [structure, that is],
although
there could be more. Let's call this database CORE. We'll could have a
single instance with, say, CORE_DEV1, CORE_DEV2, CORE_DEV3, etc. (We'd
also
have a separate production instance, on a separate machine, and just call
the database CORE. Or maybe CORE_PROD.)

Anyway, for DEV the other alternative would be to have several instances,
each instance owning one of the DEV databases. EG:
DB2INST1 with CORE_DEV1
DB2INST2 with CORE_DEV2
DB2INST3 with CORE_DEV3

And of course in this case we wouldn't need to have a suffix for each
database. We could just call it CORE on each separate instance.

Of course clients connecting to the databases in the second case would
have
to have aliases, such as, well, CORE_DEV1, CORE_DEV2, CORE_DEV3, etc. :-)

When creating the dev databases (and there will probably be more than 3)
will it be easier to 'clone' another one if it has the same instance but a
different name or a different instance but the same name? Or neither?
Does
having multiple instances make administrative tasks easier or more
difficult? Or neither? Anything else I should take in to consideration?

I am not the DBA, but the DBA is new to DB2 so I'd like to have some
experts
weigh in on the matter.

Thanks!

Frank
If it is not development, I would just have one instance with multiple
databases. If the applications are using the type 4 universal driver, there
will not be alias'. Each connection string will point to a different
database name. If the databases are really the same, but just different
versions/environments, then keep the schema names the same.

If you had a performance test environment where you wanted to exactly mimic
production, then you might want just one database in the instance if that is
how it is in production.
Jan 5 '08 #3

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

Similar topics

22
by: christof hoeke | last post by:
hello, this must have come up before, so i am already sorry for asking but a quick googling did not give me any answer. i have a list from which i want a simpler list without the duplicates an...
4
by: Brad Tilley | last post by:
I've just started using classes in Python for some projects at work and have a few questions about them. I understand that once a class is defined that I can create many instances of it like this:...
8
by: SJ | last post by:
Hi: I have a class which has a static member function. The function implements something common to all instances. How can the static member function know all of the (Get access to the instances'...
4
by: Yasaswi Pulavarti | last post by:
I have a Aix 5.2 server with DB2 UDB 8.1 I created three different instances using the db2setup utility three times. The default instance is db2inst1. When I su - db2inst2 and su - db2inst3 and...
12
by: (Pete Cresswell) | last post by:
I know I can open many instances of a given form, but I've never done it. Now I'm analyzing an application where that seems like just the ticket: Many investment funds, *lots* of data points for...
4
by: Chad Myers | last post by:
I'm instrumenting my app with a few performance counters and I'd like to ask you all for some advice on how to handle performance counter instances. I have a class library that is a base library...
3
by: Boni | last post by:
Dear all, I create a big number of a class instances of some class. Sometimes this instances must be collected (all pointers are deleted, but instance is not explicitly disposed).But sometimes I...
90
by: Ben Finney | last post by:
Howdy all, How can a (user-defined) class ensure that its instances are immutable, like an int or a tuple, without inheriting from those types? What caveats should be observed in making...
4
by: Mike | last post by:
Class A public objX I want to create 2 or more instances of Class A and have the same value for objX in all instances. Instance1 of Class A Instance2 of Class A Instance3 of Class A
5
by: Neil | last post by:
"lyle" <lyle.fairfield@gmail.comwrote in message news:48c3dde7-07bd-48b8-91c3-e157b703f92b@f3g2000hsg.googlegroups.com... Question for you. I'm doing something similar, only, instead of opening...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.