473,605 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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...grants alias.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
2 2622
I can only imagine concurrency issues on SYSIBM.SYSTABLE S.
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
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.e ye-bee-m.com> wrote in message news:<br******* ***@hanover.tor olab.ibm.com>.. .
I can only imagine concurrency issues on SYSIBM.SYSTABLE S.
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
18171
by: Karaoke Prince | last post by:
Hi There, I have an update statement to update a field of a table (~15,000,000 records). It took me around 3 hours to finish 2 weeks ago. After that no one touched the server and no configuration changed. Until yesterday, I re-ran it again and it took me more than 18hrs and still not yet finished!!! What's wrong with it? I can ran it successfully before. I have tried two times but the result was still the same.
5
8685
by: Eric Freeman | last post by:
I'm trying to drop a table and it's taking a very long time. There has been a lot of modification to the table and it has a lot of old data still being used as a result of not using the vacuum function enough. I ran an insert into and it was taking a long time (ran for about 48 hours) so I aborted it. I tried vacuuming it and that ran for about the same amount of time before I aborted. I figured the fastest ting would be to drop the table...
2
1582
by: Brent | last post by:
Like many sites, mine has a standard "look" -- a template, if you will -- that visitors see on each page. I've tried to keep the code and HTML separate to the extent possible, and for most standard page presentations, it works well. However, I have a couple of screen scrape / import routines that can take minutes, even hours, to complete. I'd like to have some way of outputting my template first to the browser, and then within the...
4
6369
by: Michel Esber | last post by:
Hello, DB2 V8 LUW FP 11. My applications eventually takes a very long time to process simple insert statements. Here´s the output of a event monitor: Text : INSERT INTO MyTable VALUES('000D60984D9A586AAD001128','2006-09-23-02.25.00',0,103923200,1843939328,298211000,6931647000,1834013105000,128034627001536546,6779,252559,0,33,54219,12803462700153654)
2
8214
by: semaj.remle 'at' gmail | last post by:
For files saved in source control, is it better to use code to DROP/ CREATE a procedure like this: ------------------------------------------------------------------ IF OBJECT_ID ('procName') IS NOT NULL DROP PROC procName GO CREATE PROCEDURE procName AS BEGIN --proc code
0
2232
by: Eric Isaacs | last post by:
Optional Create and Alter is nice because it fails, the original is still in place as are the original permissions. Drop and create is also valid in some cases if you want to clear/reset the permissions. I use an approach which lets me choose which one I want to implement on the fly. If I remove the first two dashes, the drop is disabled and it creates only if it doesn't already exist. Otherwise it drops, creates a filler sproc, and...
7
2480
by: kiranrajenimbalkar | last post by:
Hi, when i am executing the below SQL its taking long time for execution so please provide me the solution. SELECT A.ID, A.IDTYPE, A.USERNAME, A.FIRSTNAME, A.LASTNAME, A.STATUS,
2
2464
by: kiranrajenimbalkar | last post by:
Hi below function taking long time when i am going to execute this function. CREATE OR REPLACE FUNCTION Getdistrictforuser(PID IN WEBUSER.ID%TYPE) RETURN VARCHAR2 IS VCLUB VARCHAR(1000); CURSOR CURSOROUT(PID VARCHAR2) IS SELECT DISTINCT AD.DISTRICTID FROM MEMBER M JOIN CLUB C ON M.RCLBID = C.ID
5
3016
by: E11esar | last post by:
Hi there. I have a stored procedure which when invoked using EXEC in Sql Server Management Studio takes about 20 minutes to even start. The EXEC command includes two input variables which hold XML strings of data, so I'm not sure if this would impact the startup at all? Once the procedure does start, it finishes quite quickly but I can't see what is causing it to wait for so long to begin processing. I have included debug statements...
0
8001
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8424
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8415
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6742
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5886
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5445
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3912
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3958
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1270
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.