Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE:
I think this is a privilege problem. You can eliminate this as the culprit
by granting execute on sys.dmbs_space to the account you are logged on as
while running howmuchspace. I know that my writing is not always clear so
here is the pseudo procedure:
connect sys/paaswd_at_sid;
grant execute on dbms_space to myaccount;
connect myaccount/passwd_at_sid
begin
howmuchspace;
end;
/
Good luck.
-----Original Message-----
From: Tiger Woods [mailto:arhk_at_yahoo.com]
Sent: Friday, December 29, 2000 12:41 PM
To: Multiple recipients of list ORACLE-L
Subject:
dear sir:
here is my problem:
I have created a procedure which return error:
SQL> begin
2 howmuchspace;
3 end;
4 /
begin
*
ERROR at line 1:
ORA-00942: table or view does not exist ORA-06512: at "SYS.DBMS_SPACE", line 40 ORA-06512: at "OPS$ORACLE.HOWMUCHSPACE", line 17 ORA-06512: at line 2
last_ext_full number; last_ext_blank number; last_used_block number;
|| v_seg_info_cur.SEGMENT_TYPE); used_blocks := (total_blocks-unused_blocks); used_bytes := (total_bytes-unused_bytes); dbms_output.put_line('total_blocks:
dbms_output.put_line('unused_bytes [KB]:
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Tiger Woods INET: arhk_at_yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You mayReceived on Fri Dec 29 2000 - 13:43:22 CST
![]() |
![]() |