473,378 Members | 1,152 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,378 software developers and data experts.

Can I customize DB2 catalog with my own tables?

Hi,

Is there a way to create user tables when you do a CREATE DATABASE command
with DB2?
If so, how?

Thx
Chris
Nov 12 '05 #1
6 1513
"Chris Gruber" <ch**********@ianywhere.com> wrote in message
news:d7**********@newswest.sybase.com...
Hi,

Is there a way to create user tables when you do a CREATE DATABASE command
with DB2?
If so, how?

Thx
Chris

Not within the create database command, but you can create as script that
creates user tables after the create database.
Nov 12 '05 #2
Thanks

Some databases, install scripts that get run when a CREATE DATABASE command
is issued.
Am I correct to assume that DB2 does not have this type of setup with
scripts used by CREATE DATABASE command?

Thanks Again
Chris
"Mark A" <no****@nowhere.com> wrote in message
news:Hf********************@comcast.com...
"Chris Gruber" <ch**********@ianywhere.com> wrote in message
news:d7**********@newswest.sybase.com...
Hi,

Is there a way to create user tables when you do a CREATE DATABASE command with DB2?
If so, how?

Thx
Chris

Not within the create database command, but you can create as script that
creates user tables after the create database.

Nov 12 '05 #3
Mark A wrote:
"Chris Gruber" <ch**********@ianywhere.com> wrote in message
news:d7**********@newswest.sybase.com...
Hi,

Is there a way to create user tables when you do a CREATE DATABASE command
with DB2?
If so, how?

Thx
Chris


Not within the create database command, but you can create as script that
creates user tables after the create database.

"create database trigger" now that one I haven't heard yet....

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #4
Chris Gruber wrote:
Some databases, install scripts that get run when a CREATE DATABASE command
is issued.
Am I correct to assume that DB2 does not have this type of setup with
scripts used by CREATE DATABASE command?

There are stored procedures which are executed during CREATE DATABASE,
but they are not externalized.

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #5
"Chris Gruber" <ch**********@ianywhere.com> wrote in message
news:d7*********@newswest.sybase.com...
Thanks

Some databases, install scripts that get run when a CREATE DATABASE
command
is issued.
Am I correct to assume that DB2 does not have this type of setup with
scripts used by CREATE DATABASE command?

Thanks Again
Chris


Not sure I know what you are talking about.

You can create a script which includes a create database command,
immediately followed by any other SQL that will create the objects you need.
So I don't see why you need anything else.

If you want to know about the create database command and all its options,
check the Command Reference Manual which can be downloaded for free from the
IBM website.
Nov 12 '05 #6
Ian
Chris Gruber wrote:
Thanks

Some databases, install scripts that get run when a CREATE DATABASE command
is issued.


Are you referring to Oracle, where, after you do 'create database' you
run separate scripts like 'catalog.sql', 'catproc.sql', 'catexp.sql',
etc?

If so, then the answer to your question is No. The CREATE DATABASE
command does all of this internally.
Nov 12 '05 #7

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

Similar topics

1
by: Jeffrey Sheldon via SQLMonster.com | last post by:
We hear about catalog table in documentation but is this the same as database schema? What is the definiation of catalog table? What does it pertain to? Thanks --
3
by: mairhtin o'feannag | last post by:
Anyone know where to get one? Or a website that has something similar? TIA Mairhtin
1
by: Ralf Obst | last post by:
Hello, we get a message SQL0204N when trying to import tables from a DB2/VM into an MS Access database. The message text is: ... "DB2/VM SQL0204N 'SQLTables ' not defined ". When...
0
by: Jean-Marc Blaise | last post by:
Dear all, I have noticed the simulation catalog tables are created/dropped every time the Design Advisor is called to advise for MQT. It also seems necessary to drop thru -f option of the...
3
by: gruber | last post by:
Hi, I was wondering if the CREATE DATABASE command uses scripts to create the catalog so that I can customize my database creation on DB2? Thanks Chris
4
by: Uttam | last post by:
Hello, Could someone point me to the syntax required to detected whether a particular table (say tbl1) and a particular Query (Qry1) exists in the catalog? Thank you in advance. Cheers!
1
by: Rachel | last post by:
Hi All, I have customized the Membership API and was able to create and validate users using my own database tables in SQL Server 2000. I would like to customize the WebParts and save the user...
1
by: nkumarin001 | last post by:
Hi, What are the things that gets created when we run catalog.sql, catproc.sql and pupbld.sql? When i read the book i came to know that when catalog.sql is run then Data Dictionary is created...
1
by: awesomewebsitesforyou | last post by:
Learn DB2 system catalog tables http://db2examples.googlepages.com/systemcatalogtables
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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...

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.