Getting wrong information through Views [message #576660] |
Thu, 07 February 2013 01:29 |
crussed_sonu
Messages: 51 Registered: July 2007 Location: Delhi
|
Member |
|
|
Hi All,
I am getting unexpected issue while fatching records from dba_ts_quotas & DBA_USERS Views. please have a look & Guide to resolve such issue.
FYI..
select username,DEFAULT_TABLESPACE,TEMPORARY_TABLESPACE from dba_users
where username='DWHODS'
USERNAME DEFAULT_TABLESPACE TEMPORARY_TABLESPACE
DWHODS DWHODS_TBS_DATA DWHODS_TEMP_DATA
select tablespace_name, username, bytes / 1024 / 1024 "Used MB",
decode(max_bytes,-1,'UNLIMITED',max_bytes / 1024 / 1024) as "Max MB"
from dba_ts_quotas
where username='DWHODS';
TABLESPACE_NAME USERNAME Used MB Max MB
USERS DWHODS 0 UNLIMITED
View dba_ts_quotas is giving tablespace name "USERS" where DBA_USERS showing default tablespace name "DWHODS_TBS_DATA".
Please correct me if i am doing any mistake & help me to resolve the issue.
Regards
Vimlendu
|
|
|
|