473,395 Members | 1,578 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.

filesystem layout for installing db2

Hello,
I'm a newbie with DB2 and I'd like to know if a standardized layout
exists for planning a proper installation. I'm referring to something
similar to OFA for Oracle.

I couldn't find anything googling around or checking on the IBM website
but probably I lack the DB2 basics.

Anybody with some good link where to check or with suggestion on how to
plan the installation?

Many thanks

--
Fabrizio Magni

fa************@mycontinent.com

replace mycontinent with europe
Nov 12 '05 #1
8 2252
Fabrizio Magni wrote:
I'm a newbie with DB2 and I'd like to know if a standardized layout
exists for planning a proper installation.


Well - without knowing your requirements a simple sequence of "Next >>"
clicks during installation and table creation will serve your needs.

The DB2 controlcenter is very helpful because it has Q&A windows
everywhere and you can grab the SQL commands for every step with the
"View SQL" button (or what ever it is named in your language & DB2 version).

Bernd

--
"Ja, alles meine Herren" sprach Fürst Lichnowsky. "Ooch det roochen?"
"Ja, auch das Rauchen." "Ooch im Tiergarten?" "Ja, auch im Tiergarten
darf geraucht werden, meine Herren." Und so endeten die Barrikadenkämpfe
des 18. März in Berlin
Nov 12 '05 #2
Bernd Hohmann wrote:
Fabrizio Magni wrote:
I'm a newbie with DB2 and I'd like to know if a standardized layout
exists for planning a proper installation.

Well - without knowing your requirements a simple sequence of "Next >>"
clicks during installation and table creation will serve your needs.

The DB2 controlcenter is very helpful because it has Q&A windows
everywhere and you can grab the SQL commands for every step with the
"View SQL" button (or what ever it is named in your language & DB2
version).


Hi Bernd and thanks for the answer.

Actually I'm looking on how to prepare the filesystem tree in advance.

where to place data, logs, binaries, etc.

If to divide them for instance and/or databases... and if a standard for
such a tree is provided/suggested by IBM or the DB2 community.

Many thanks

--
Fabrizio Magni

fa************@mycontinent.com

replace mycontinent with europe
Nov 12 '05 #3
Hi Fabrizio,

Fabrizio Magni wrote:

Actually I'm looking on how to prepare the filesystem tree in advance.

where to place data, logs, binaries, etc.

If to divide them for instance and/or databases... and if a standard for
such a tree is provided/suggested by IBM or the DB2 community.


http://publib.boulder.ibm.com/infoce...help/index.jsp

In the index-frame, choose "Design->Database Systems->Physical Database
Design

If you need more information, the reference manuals

Administration Guide: Planning
Administration Guide: Implementation

They should be on the documentation cd and are available online:

http://www.ibm.com/software/data/db2...manualsv8.html

As a newbie to db2

http://www.ibm.com/developerworks/db2/newto/

would be a good start.

IBM offers special training for experienced DBAs who are new to DB2.
This might be an option for you as well.

As you are asking for the community:

http://www.idug.org (Independent DB2 Users Group)

Have Fun,

Norbert
Nov 12 '05 #4
Thank you, Norbert.

The planning guide is more or less what I was looking for.

Just a question.

I cannot find any good reference to where placing the transactional logs.

Tha DB2 on linux HOWTO place them (mirrored) on two different
directories (ex: /db2log1).

Is it the proper way?
Should I generate sublevels to divide the log as than for containers?
(from the planning guide:
<your_directory>/<your_instance>/NODE0000/SQL00001/).

Regards

--
Fabrizio Magni

fa************@mycontinent.com

replace mycontinent with europe
Nov 12 '05 #5
Hi Fabrizio,

Fabrizio Magni schrieb:
I cannot find any good reference to where placing the transactional logs.
Can be every directory. It is common sense that placing the logs on
other devices than the database containers is not a bad idea in terms of
performance.
Tha DB2 on linux HOWTO place them (mirrored) on two different
directories (ex: /db2log1).
Is it the proper way?
It is always nice to have a copy ;-)
This should answer the question.
Should I generate sublevels to divide the log as than for containers?
(from the planning guide:
<your_directory>/<your_instance>/NODE0000/SQL00001/).


Depends on your personal environment and taste. But I would not argue
with the authors of the planning guide.

BTW: I just know where the Documentation resides. That does not mean I
have read it completely. ;-)

Best regards,

Norbert
Nov 12 '05 #6
Fabrizio Magni wrote:
Actually I'm looking on how to prepare the filesystem tree in advance.

where to place data, logs, binaries, etc.


Well, I'm usually using a flat design (but I don't have any really large
databases).

There is a directory \DB2DATA where all other databases are placed below.

CREATE DATABASE WEBSHOP ON D:
USING CODESET IBM-850 TERRITORY DE COLLATE
USING SYSTEM USER TABLESPACE MANAGED BY SYSTEM
USING ('d:\DB2DATA\WEBSHOP\USERSPACE') ...
USING ('d:\DB2DATA\WEBSHOP\SYSCAT') ...
USING ('d:\DB2DATA\WEBSHOP\TEMP') ...

and so on.

Bernd

--
"Ja, alles meine Herren" sprach Fürst Lichnowsky. "Ooch det roochen?"
"Ja, auch das Rauchen." "Ooch im Tiergarten?" "Ja, auch im Tiergarten
darf geraucht werden, meine Herren." Und so endeten die Barrikadenkämpfe
des 18. März in Berlin
Nov 12 '05 #7
aj
Here's how I do it. Indenting implies directory structure.

HTH
aj

/db2
/llogs DB logical logs archived from ANOTHER DB2 server
/<DB> For each DB whose logs we archive
/NODE0000 DB2 creates this automatically - used for EE
nodes
/backups Local DB2 DB backups
/<DB> For each local DB we backup
/ascii Ascii database table dumps
/<DB> For each local DB on which we do ascii dumps
/containers All DB2 data is stored in DB-Managed Space
(DMS) container files
/<DB> For each local DB
/logs Logical logs for that local DB
/tmp System-Managed Space (SMS) for DB temp data
/tmp32k DB temp data w/ 32k page size
/user_tmp User temp data
/user_tmp8k User temp data w/ 8k page size
/userexit Userexit is how logical logs are archived to
another servers /db2/llogs
/<DB> For each DB
ARCHIVE.LOG A log of all userexit archives and results
USEREXIT.ERR Any errors from userexit archives
/dbabin Home-brewed database executables/apps/utilities
/lifeboat Backup of DB configuration
/<SERVER> For each DB2 server lifeboat
/instance At instance level
/database At database level

Fabrizio Magni wrote:
Hello,
I'm a newbie with DB2 and I'd like to know if a standardized layout
exists for planning a proper installation. I'm referring to something
similar to OFA for Oracle.

I couldn't find anything googling around or checking on the IBM website
but probably I lack the DB2 basics.

Anybody with some good link where to check or with suggestion on how to
plan the installation?

Many thanks

Nov 12 '05 #8
Many thanks for all the answers.

I'm going to install the DB2 on linux in a couple of hours.

Regards

--
Fabrizio Magni

fa************@mycontinent.com

replace mycontinent with europe
Nov 12 '05 #9

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

Similar topics

18
by: perseus | last post by:
It is really crazy! I need to use the Boost filesystem for the manipulation of directories, and I have no idea how to install this filesystem on my IBM-compatible machine. Does anyone up here know...
65
by: perseus | last post by:
I think that everyone who told me that my question is irrelevant, in particular Mr. David White, is being absolutely ridiculous. Obviously, most of you up here behave like the owners of the C++...
3
by: Michael | last post by:
Is this the correct place to ask about Boost libs? If it is.............. #include <boost/filesystem/path.hpp> #include <boost/filesystem/operations.hpp> using namespace boost; using...
8
by: IT | last post by:
I looked thru the 7+ chapters and Microsoft seems vague. Bascially telling you to design it so it makes sense. Duh. Say I have an app that handles processes for the claims, finance and...
2
by: IT | last post by:
Can someone email me a screenshot of their solution Explorer? I am trying to get an idea of how most developers lay this out. PPutzback@ECommunity.com Thanks in advance, Phil Putzback
2
by: Jeff Davis | last post by:
I have virtual hosted users on a server and some of them have a postgresql database. I'm concerned about the outside possibility that a user could create an infinite loop and fill up the partition...
1
by: share-postgres | last post by:
Hi All, I have recently started evaluating Postgresql 7.4.2 to replace some *cough* more proprietary database systems... Thanks to the _excellent_ documentation (a point I cannot overemphasize)...
4
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How can I access the client-side filesystem?...
5
by: GaryE | last post by:
Hello: I am having trouble linking a couple of files using the boost::filesystem. I am using MSVC 6.0. Here is an abbreviated version of my problem: foo.h: #ifndef __FOO_ #define...
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.