473,756 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tablespace in Offline State...

One of our tablespaces is in an offline state:

Tablespace ID = 9
Name = xxx_xxxx
Type = Database managed space
Contents = Any data
State = 0x4000
Detailed explanation:
Offline

I believe this is because it ran out of space. What's the best way to
apporach this situation? I have additional space I'd like to add, but I
can't find a way to get it online/normal again.

Any ideas?

Nov 12 '05 #1
4 11180

<cb******@gmail .com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .
One of our tablespaces is in an offline state:

Tablespace ID = 9
Name = xxx_xxxx
Type = Database managed space
Contents = Any data
State = 0x4000
Detailed explanation:
Offline

I believe this is because it ran out of space. What's the best way to
apporach this situation? I have additional space I'd like to add, but I
can't find a way to get it online/normal again.


alter tablespace xxx_xxxx switch online;

If this fails, check db2diag.log for details on why it couldn't be brought
online.

--
Matt Emmerton
Nov 12 '05 #2
yeah.......

the container that WAS tblspace xxx_xxx is GONE!!!

Is there any chance of recovering the tablespace? I can't add another
container due to it being offline, yet I can't switch it online due to
the container missing....

ideas??

Nov 12 '05 #3
Mount your most recent backup.
Use DB2CKBKP -h command to find thew value of the parm that will describe
the containers of that tablespace.
Use RESTORE DB .... TABLESPACE command with redirect option
Redefine all containers (Valid ones as same and then the one that is gone)
Then use RESTOR DB .... CONTINUE.

That should do it.

HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
<cb******@gmail .com> a écrit dans le message de news:
11************* *********@g43g2 00...legr oups.com...
yeah.......

the container that WAS tblspace xxx_xxx is GONE!!!

Is there any chance of recovering the tablespace? I can't add another
container due to it being offline, yet I can't switch it online due to
the container missing....

ideas??


Nov 12 '05 #4
In addition to Pierre's comments..
You may also be able to restore the tablespace from a full offline
tablespace or database backup without redirection.
Let us assume you had sms tablespace container defined as:
/db2/smstsp1/
and smstsp1 and everything underneath has been lost for some reason.
You can restore the tablespace and DB2 engine would
recreate directory and populate it.
If the underlying filesytem has been lost, you can create one with same
name/paths and db2 would restore to it.
In summary, restore would work ok as long as db2 can create the
container paths as recorded in backup image.
....Yasir.

Nov 12 '05 #5

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

Similar topics

1
3388
by: valexena | last post by:
I am attempting to take tablespace offline and receiving the following error: ORA-01546- cannot take tablespace offline. What I am doing wrong? -- Posted via http://dbforums.com
7
12671
by: tracy | last post by:
hi, i need advise and guidance from experts. Today, I discovered about 1464 tables created in SYSTEM tablespace and the owner is dev_user. As, i read from ORACLE 101 DBA's it said :'System tablespace is a tablespace user to stored objects belong to user SYS only. if, we do not ensure this, the SYSTEM tablespace will : • Tend to get very fragmented • Have potentially severe contention against it and affect performance
8
12779
by: Amy DBA | last post by:
OK, I'm stumped now. I need help restoring a tablespace that has been marked offline. Here's a little background on the problem: 1) There was a hardware failure that caused the tablespace to become marked offline: State = 0x4000; Detailed explanation: Offline 2) I tried switching it back online and got this error: DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor...
4
14397
by: mairhtin o'feannag | last post by:
Hello, I have a tablespace striped across three drives, call them 1,2,3, just to be clever. :) I allocated a lot more space (DMS) than I should have, since I didn't know a way to estimate the space required (long story, but the original space was in one huge tablespace for all tables ((35 million row tables)) and I needed to segregate them out into separate tablespaces for backup and restore purposes. So I allocated, like 4 million...
2
2774
by: Raghava | last post by:
hi all, i was working on DB2 and came across an issue. i.e. can a tablespace be rollforwarded to POINT-IN-TIME? the scenario is as follows: i created a data base and a tablespace in it. i have enabled archival logging (enabled userexit and logretain) and changed log path to a different location. as the log path and logging method was changed, the database was in backup pending state. so, i took a complete offline backup of the
8
2474
by: Raj | last post by:
-Is it possible to recover a tablespace just from a full offline backup and offline incremental backup? If not possible -Can we recover tablespace from Full backup , Wednesdays incremental backup (logs before wednesday are lost) to a point in time on Friday Thanks, Raj
6
3864
by: Konstantin Andreev | last post by:
Hello, all. Let the tablespace SY810T4K is almost full: --------------- db2 =list tablespaces show detail ... Name = SY810T4K Type = Database managed space Contents = Any data Total pages = 332800
4
1878
by: Raj | last post by:
For tablespace level recovery of the db is the following strategy good enough? Sunday's Table - Full offline backup Mondays incremental to tape Monday's offline incremental backup + Monday's logs Tuesday's tape - Tuesday's offline incremental backup + Monday's logs + Tuesday's logs .. .. ..
6
6470
by: morch | last post by:
Hello, I have an oddity on a production database. I get the following from the DB CFG : Backup pending = NO Database is consistent = NO Rollforward pending = TABLESPACE Restore pending = NO
0
9275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10034
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
9713
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
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...
0
6534
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
5142
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...
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
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.