By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,290 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,290 IT Pros & Developers. It's quick & easy.

Drop and Create alias statements took a long time (7.2 FP7, AIX)

P: n/a
Any ideas on why drop and create alias statements would take a long
time?

We recently went through an upgrade of our production database, which
included alter statements to table structures, create tables, drop
tables, and data inserts, deletes, and updates. Also, we dropped and
recreated all the alias's we had on the tables and views to those
tables. We are on UDB 7.2, FP7, on AIX.

Everything took about the same time as in our testing, except the drop
and create of alias's. The dropping of the aliases took about 8 min,
while the creation of aliases took about 7 min. In testing (same
number of drops and creates), it took about a minute. There were 367
alias's dropped and recreated. All were successful, and nothing is in
the diagnostic log at the time this shell was run. It just took a
LONG time (about 15 minutes total)!

I realize that a lot of factors could account for this, but the test
and production machines have comparable "power" (CPU, memory). They
do have different dbm and db cfg's. However, the test box cfg's are
basically the defaults, while the production box has been "tweaked"
for performance. However, should cfg values even have any major
impact on this type of SQL? Also, the other statements (alters, etc.)
which I would consider much more "complex" did not take any longer
than our test runs.

My question is, has anyone else come across this anomoly? I checked
IBM's site and this site and found nothing about this.

Details of the script...grantsalias.sh does the following:

1. Drops the alias for each table and view (e.g. drops the alias
KBCPRO.USER)
2. Creates the alias for each table and view (e.g. creates the alias
KBCPRO.USER)

Thanks in advance!

Tom Horner, Production DB2 DBA
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I can only imagine concurrency issues on SYSIBM.SYSTABLES.
Especially creating aliases is pretty much a no-op.
Dropping an alias teher is soem depenency work going on, but still....
Any other sessions that do DDL concurently which may hold u or x locks
on above table?

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab

Nov 12 '05 #2

P: n/a
No other sessions. We were in the middle of a production upgrade
which meant no users on the system. The alias statements were done
after the other alters, etc.

Thanks for the response and thanks in advance for any other ideas!

Serge Rielau <sr*****@ca.eye-bee-m.com> wrote in message news:<br**********@hanover.torolab.ibm.com>...
I can only imagine concurrency issues on SYSIBM.SYSTABLES.
Especially creating aliases is pretty much a no-op.
Dropping an alias teher is soem depenency work going on, but still....
Any other sessions that do DDL concurently which may hold u or x locks
on above table?

Cheers
Serge

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.