Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > find the time taking stored procedures...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-08, 13:52
skarri skarri is offline
Registered User
 
Join Date: Sep 2008
Posts: 13
find the time taking stored procedures...

this are the interview question(i culd not answer):
1.he asked me to tell a stored procedure for find the first three timetaking stored procedures in the database
2. how to calculate the size of a given table space?
3. can we call a stored procedure thru a cursor?
i said yes..
any answer plz

Last edited by skarri : 10-14-08 at 02:38.
Reply With Quote
  #2 (permalink)  
Old 10-13-08, 14:56
iinfi iinfi is offline
Registered User
 
Join Date: May 2006
Posts: 42
2. find the size of your database
select sum(bytes)/1048576 MB from dba_segments;
find the size of your tablespace
select sum(bytes)/1048576 MB from dba_segments where tablespace_name = 'TBS1';
Reply With Quote
  #3 (permalink)  
Old 10-13-08, 17:19
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 1,951
Talking statspack.snap

1) statspack.snap
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On