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 > Deleting wrongly created container.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-20-06, 05:36
mudai mudai is offline
Registered User
 
Join Date: Jul 2003
Posts: 25
Red face Deleting wrongly created container.

After 2 day staring of my telnet screen, my eyes getting tired

and i add container to wrong tablesapace.

i have add

db2 "alter tablespace PSAPEL46CD add (file '/db2/D01/sapdata1/NODE0000/PSAPES700D.container000' 512000 )"

it's a stupid action.. now i can't delete the container.

Anyone could give me some suggestion and solution ?

Thank you
Reply With Quote
  #2 (permalink)  
Old 07-20-06, 06:10
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Unless you provide the db2 version and FixPak information, you will not be able to get the right answer

sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 07-20-06, 09:18
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
Db2 distributes existing data among all containers when a new container is added. No easy way to drop a container; if you want to recover disk space, try resizing the containers to a smaller value; this will definitely work if you REORG the tablespace.
__________________
mota
Reply With Quote
  #4 (permalink)  
Old 07-20-06, 10:42
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
Easiest way to drop a container is to do a REDIRECTED restore of the tablespace(or the database)
__________________
mota
Reply With Quote
  #5 (permalink)  
Old 07-20-06, 23:42
mudai mudai is offline
Registered User
 
Join Date: Jul 2003
Posts: 25
hi my db2level is
DB21085I Instance "db2p01" uses "64" bits and DB2 code release "SQL08023" with
level identifier "03040106".
Informational tokens are "DB2 v8.1.1.96", "s050811", "U803920", and FixPak
"10".
Product is installed at "/usr/opt/db2_08_01".

anyway .. i manage to delet it.. the reason it refuse to delet at the first time.. because the disk on rebalancing mode,

Thanks guys
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