Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: User Administration >> Release space allocated to user.

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: Release space allocated to user.
 Monu  Posted: Jun 07, 2008 03:04:29 AM

 Total Post: 26
 Joined: Jan, 2008






 Hi all,
How can i release space allocated to users. One user is assigned 6GB space and he is utilizing only 300m of that. I altered the quota using for that user using
alter user abc quota 2048m on users;
but this is not releasing the space at all.
can anyone suggest me what to do?
Waiting for reply.....

 fozturk
Posted: Jun 08, 2008 03:55:14 PM  

 Total Post: 69
 Joined: Sep, 2007






 
as i understand frmo your message, you watnt o decrease the size of one of the datafiles in your db, if i m right, you need to use shrink command otherwise oracle wont release the space allocated already. google the "shrink" command...

 positive
Posted: Jun 26, 2008 03:53:31 PM  

 Total Post: 483
 Joined: Jun, 2008






 
sql>select tablespace_name,username,bytes from dba_ts_quotas where username='username';

to get details on tablespace quota

Enable row movement:

sql>alter table tablename enable row movement;

sql> alter user username quota 500m on tablespace;

Get the details on the objects owned by user:

sql>select * from dba_objects where username='username';

get the list and shrink the objects using:

sql>alter table/index/materialized view <object-name> shrink spacee;




 positive
Posted: Jun 26, 2008 03:54:05 PM  

 Total Post: 483
 Joined: Jun, 2008






 
Hi,

refer the link below for more details:

http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/schema.htm#ADMIN10161

 Monu
Posted: Jun 26, 2008 10:14:12 PM  

 Total Post: 26
 Joined: Jan, 2008






 
thanks a lot.

 positive
Posted: Aug 11, 2008 08:49:17 PM  

 Total Post: 483
 Joined: Jun, 2008






 
http://neworacledba.blogspot.com

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi333
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software