If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Create Statement Taking Too Long

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-10, 16:01
sporkins sporkins is offline
Registered User
 
Join Date: Jun 2010
Posts: 1
Create Statement Taking Too Long

I just installed db2, db2level gives the following
DB21085I Instance "tyler" uses "64" bits and DB2 code release "SQL09070" with
level identifier "08010107".
Informational tokens are "DB2 v9.7.0.0", "s090521", "LINUXAMD6497", and Fix
Pack "0".
Product is installed at "/opt/ibm/db2/V9.7".
Everything is working fine except how long it takes to create a database. when I run the command 'db2 create database sample' it takes 10 minutes to complete. Anything I can do to reduce this time?? This is a development environment.
Reply With Quote
  #2 (permalink)  
Old 06-30-10, 16:15
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Is there some reason you did not run dbsampl program? It comes with a schema and data.

But I don't know why your create database statement took so long.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 06-30-10, 16:36
Lenny77 Lenny77 is offline
Registered User
 
Join Date: Jul 2009
Location: NY
Posts: 886
1. You have to defragment your hard drive
2. Stop another applications which used the hard drive

Lenny
Reply With Quote
  #4 (permalink)  
Old 06-30-10, 19:51
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Quote:
Originally Posted by Lenny77 View Post
1. You have to defragment your hard drive
2. Stop another applications which used the hard drive

Lenny
I wasn't aware one could defrag a Linux hard drive, but I am not Linux expert. I suspect it is just a problem with the base level fixpack 0 code.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On