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 > DB2 Tablespace Accessing Issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-11-03, 14:30
nagasurir nagasurir is offline
Registered User
 
Join Date: Nov 2003
Location: California,USA
Posts: 71
Question DB2 Tablespace Accessing Issue

Hi everyone,

I am new to DB2 UDB database environment and can anyone please clarify my problem though it looks silly...

Scenario:

Database : DB2UDB v7.2
Server OS : AIX 5
Error code : SQL0290N Table space access is not allowed. SQLSTATE=55039

Getting the same error when trying to execute any of these:

1) drop any object, tablespace and even database itself.
2) Insert data into tables.

My Observation:

1) Found the filesystem FULL (96% USED) on which the tablespace residing.
2) No records(rows) in all the table in the database. I mean database is empty.
3) No any other files in this filesystem's directory.

What could be the reason for filesystem being FULL. And is this the reason for the above mentioned error code?

Note: I am able to work with other database created with same kind of parameters with different names.

Thanks in Advance...
Reply With Quote
  #2 (permalink)  
Old 11-11-03, 15:53
UnicornLtd UnicornLtd is offline
Registered User
 
Join Date: Oct 2003
Posts: 5
In DB2, tablespaces have a USE privilege. This must be granted to a user or group before they can access the tables in that tablespace.

The syntax is:

grant use of tablespace MYTBLSPC to USERNAME

The grantor must have sufficent authority (usually DBADM) to make the grant. The grant is often made to public, so that all other users and groups inherit the privilege.
Reply With Quote
  #3 (permalink)  
Old 11-11-03, 16:01
nagasurir nagasurir is offline
Registered User
 
Join Date: Nov 2003
Location: California,USA
Posts: 71
Hi

Thanks for the response.
I am trying to execute the queries with instance owner.

...Ram
Reply With Quote
  #4 (permalink)  
Old 11-11-03, 18:43
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
This is not a security/authorization problem ... It has to do with the state of the tablespace ...

Connect to the database and issue

db2 list tablespaces show detail ...

Check the status of the tablespace(s) in question ... I assume they are not in 'Normal' status ...

Depending on the state, a corrective action is needed ...

Please let the forum know how things go ...

Cheers
Sathyaram

Quote:
Originally posted by nagasurir
Hi

Thanks for the response.
I am trying to execute the queries with instance owner.

...Ram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 11-11-03, 18:56
nagasurir nagasurir is offline
Registered User
 
Join Date: Nov 2003
Location: California,USA
Posts: 71
Yes,

You are absolutely right.

The state of the tablespace is not "NORMAL". It is "QUISCEDHARE".
But when I create the tablespace, it was Normal only. How to change the "state" here?

Thanks Satyaram....

...Ram
Reply With Quote
  #6 (permalink)  
Old 03-22-11, 07:41
harshrpce harshrpce is offline
Registered User
 
Join Date: Nov 2010
Posts: 12
have you ran load on any of the tables...that may be in load pending state..
Reply With Quote
  #7 (permalink)  
Old 03-22-11, 13:07
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
try

list tablespaces show detail

@ the tablespaces which is in quiesce share mode at end you will get the tablespace id and table id, find the name of table from that

to bring back tbs to normal mode
quiesce tablespaces for table schemaname.tablename reset
will bring back to normal state.

regds
Paul
Reply With Quote
  #8 (permalink)  
Old 03-22-11, 18:54
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I think the OP fixed the problem about 7 years ago.
__________________
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
  #9 (permalink)  
Old 03-23-11, 05:20
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
oops didn't chk the datetime ;-)

the no of VIEWS hit should have been indicated that

regds
Paul
Reply With Quote
  #10 (permalink)  
Old 03-23-11, 07:58
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
never mind Paul.. Someone else having a similar problem will find your post useful

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #11 (permalink)  
Old 03-23-11, 13:39
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
thks man
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