473,806 Members | 2,944 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tablespace containers not accessible

2 New Member
Hello,
I had created the backup of my Production DB2 database on Dev and It was working fine.
However, we decided to updated the Dev Db with a latest version of the Prod and for that I copied over the folder which has my table spaces e.g. F:/ABCD to the DEV m/c at D:/ABCD.
I am not able to query the DB after that and the error message I get it error:
“SQL0290N Table space access is not allowed. SQLSTATE=55039”

I checked with list tablespace containers for <tablsespace ID> on the Dev DB.
The location where the table space containers are still pointing to the Prod DB path , e.g. on F:/ and not on D:/ .
I tried to change the table space containers path set tablespace containers for 1 using (path 'd:\ABCD\TEMP_P LGO_TABSPA1'), but it is not getting accessed yet.
I am still getting the error as SQL0290N Table space access is not allowed. SQLSTATE=55039

SOmeone please suggest what I can do . I am stuck as to how the container path can be changed.

Please respond.
Jul 31 '08 #1
3 8440
docdiesel
297 Recognized Expert Contributor
Hi,

maybe this way of db transfer is working sometimes, but I guess the words an IBM expert would use are "it's not recommended". You'd better use the original db2 backup db/tablespace tool.

Check the state of the tablespaces with "list tablespaces show detail". What's the state? Is it quiesced?

Another hack to get the first hack working could be to restore the original path. Do you have a drive F: on your dev system? If not, "add" it with "subst F: D:\". This makes D:\mypath available as F:\mypath, too.

Regards,


Bernd
Aug 1 '08 #2
bluefalcon
2 New Member
Hi,

maybe this way of db transfer is working sometimes, but I guess the words an IBM expert would use are "it's not recommended". You'd better use the original db2 backup db/tablespace tool.

Check the state of the tablespaces with "list tablespaces show detail". What's the state? Is it quiesced?

Another hack to get the first hack working could be to restore the original path. Do you have a drive F: on your dev system? If not, "add" it with "subst F: D:\". This makes D:\mypath available as F:\mypath, too.

Regards,
Bernd

Hello,
Thanks for your response.
1: Please let me know the proper and recommended way of taking tha backup of a DB from one server and restoring the backup on another server. We want to do it everyday, because we want the DB on the other server to be an exact replica of the Prod DB.
2: On doing list tablespaces show detail, all the Tablespaces are OFFLINE.
except one . I have tried to get the table space to Online as well, but the Table space are not accessible.
3:If there is no easy way for easy backup and restore, then please also suggest in detail the last step you have mentioned.

Regards,
Rachana
Aug 1 '08 #3
docdiesel
297 Recognized Expert Contributor
Hi,

you should at least one time do a full offline backup of your prod db:

Expand|Select|Wrap|Line Numbers
  1. db2 backup db mydb to x:\mypath\
Move the backup to the test system and restore it:

Expand|Select|Wrap|Line Numbers
  1. db2 restore db mydb from x:\mypath\
You may use "backup/restore db mydb tablespace mytbspc" later on. Use a "db2 ? backup" on the db2 command window to see all options.

Regards,


Bernd
Aug 1 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
13048
by: Ulrich Sprick | last post by:
Hi all, (DB2 V7.1 for WinNT) I am looking for a way to determine the free space in my tablespace (containers), but I can't find out. The tablespace in question is a system managed tablespace in a raw partition. The Control Center always reports 100% usage (although I can insert data...). The "list tablespace containers for n show detail" command shows the number of usable pages, but they are almost equal to the total number of pages. ...
1
2155
by: Eugene | last post by:
Is there a way to capture I/O statistics per tablespace container? Or, as long as DB2 normaly stripes/rebalances data pages across containers, the number of physical reads and/or writes from a tablespace snapshot could just be devided by number of the tablespace's containers to get a rough estimate? Thanks, -Eugene
2
2084
by: maricel | last post by:
Which one is better in terms of producing optimum performance: a) Single tablespace that contain multiple containers, say 5 containers of 100MB each container or b)Single tablespace that that contain single container, say 1 container of 500MB - same tablespace size as in (a). Is there any trade-off?
4
3560
by: duoduo | last post by:
I want to know one thing, what is best design for tablespace containers, of course, it is DB2 EE 7.2 on AIX 4.3.3. For example, I have RAID 0+1 storage (8 disks) on EMC Symmetrix. Now I need to create a 64GB tablespace on this EMC RAID. Which of the following is the best way from performance perspective? (1) 1 64GB container (2) 4 * 16GB containers
4
14401
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...
7
6273
by: CCC via DBMonster.com | last post by:
We use redirected restore to refresh test from prod on different AIX 5.2 servers. The databases have the same number, size and names of cooked containers. The only difference is the fully qualified path contains a different "SID": eg. "/db2/PRD/data1/..." versus "/db2/TST/data1/...". (Please note as an SAP installation I cannot change this layout). We use "set tablespace container" statements to redefine the fully qualified container...
2
5575
by: db2dude | last post by:
Hello all, I have a database around 600GB and all tables were self-created by the application. Hence, we have only one huge SMS tablespace where all the tables are stored. To get better performance, we are planning to move the tables to a DMS tablespace with multiple containers. There are LOTS of tables and some tables have almost 40GB of data. Can you please suggest and efficient way of doing this. Also, I know that even a 32KB page...
5
4158
by: Mark A | last post by:
I have an OLTP database that has a tablespace that will start out at about 1 TB, but may grow to 75 TB's in size over the next 5 years. When I add new containers (on a new mount point), I want to use the BEGIN NEW STRIPE SET command to avoid rebalancing. Anyone know the maximum number of STRIPE SET's that can be created for a tablespace.
3
7529
by: Justin | last post by:
What is the difference between automatic and DMS Auto-resize tablespace?
0
9719
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
9597
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
10620
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
10369
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
10110
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
9187
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
6877
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();...
1
4329
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
3851
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.