GeekInterview.com
Series: Subject: Topic:
Question: 274 of 291

i am creating one table in oracle. in database it is allocated some memory for that table. how can i know how much memory that table is holding in that database?

Asked by: durga4578 | Member Since Mar-2006 | Asked on: Mar 11th, 2006

View all questions by durga4578   View all answers by durga4578

Showing Answers 1 - 3 of 3 Answers
Guna Sagar Challa

Answered On : Mar 27th, 2006

Hi,

Using the below query u can find exactly how much space has been eaten up on the disk by your table:

select bytes from user_segments where segment_name =

;

or by using the following query to know actually how many bytes data is stored in the table

select sum(vsize(col1) + vsize(col2) + vsize(col3) +........+ vsize(coln)) from ;

eg: to find the number of bytes of data in dept table use the following query

SELECT SUM( VSIZE(deptno) + VSIZE(dname) + VSIZE(loc) ) FROM scott.dept;

Guna Sagar Challa

  
Login to rate this answer.
S.Madhu

Answered On : Mar 29th, 2006

 I have created a table in oracle 9i database. How can i know the storage prticulars of  a table  created in oracle database ?

please give me the answer to my e-mail id.

thank u

  
Login to rate this answer.
dev

Answered On : Oct 11th, 2006

Hi,

for every table it is giving the same answer like:

SQL> select bytes from user_segments where segment_name='DEPT';

     BYTES
----------
     65536

why? I did compress on one table. eventhough it's giving same answer.

Thanks in advance.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Question Categories

Oracle DBA FAQ

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.