purge recyclebin [message #230484] |
Thu, 12 April 2007 02:06  |
dannywcw
Messages: 24 Registered: March 2007
|
Junior Member |
|
|
Hi all, need your kind assistance urgently.
Currently my tablespace are full. I've check my objects in my tablespace and most of them are object from the recyclebin (table partition). So i run the following command
purge table "table patition"
It return me a message saying that the object is not in Recyclebin.
When i run
show recyclebin;
No output was returned. Its driving me crazy. I've tried to restart the database and still not working. Please help, Thank you.
|
|
|
|
|
Re: purge recyclebin [message #230516 is a reply to message #230484] |
Thu, 12 April 2007 02:57   |
dannywcw
Messages: 24 Registered: March 2007
|
Junior Member |
|
|
hi all thanks for the reply.
i did the following
purge table "ci_prepaid.BIN$V3zj9aOWRImOT89aKyyVSg==$0";
when i run the above it says "No item found in recyclebin"
Show recycle bin;
No data was returned.
Hi Maaher,
when you said run the following,
PURGE USER_RECYCLEBIN;
It will remove all those objects from the recyclebin no matter what object type?
|
|
|
|
Re: purge recyclebin [message #230542 is a reply to message #230484] |
Thu, 12 April 2007 03:30   |
dannywcw
Messages: 24 Registered: March 2007
|
Junior Member |
|
|
thanks for the reply. i understand that i cant purge anything from the recyclebin when there's nothing inside there.
My problem is my table space is show there's objects in my recycle bin. But i cant seems to see them when i run
show recyclebin;
I'm using TOAD by the way. Need help
|
|
|
|
|
|
|
|
Re: purge recyclebin [message #230802 is a reply to message #230484] |
Thu, 12 April 2007 21:39   |
dannywcw
Messages: 24 Registered: March 2007
|
Junior Member |
|
|
User Object Name Object Type
CI_PREPAID BIN$Lax+Rj3AD63gRAASeZ5J1Q==$0:W30207 TABLE PARTITION
hi all, when i did the below
select * from recyclebin;
output:
no rows selected.
purge table user_recyclebin;
output:
ORA-38307: object not in RECYCLE BIN
Please help. Really appreciate it.
|
|
|
|
|
|
|
|
Re: purge recyclebin [message #230897 is a reply to message #230484] |
Fri, 13 April 2007 04:28   |
dannywcw
Messages: 24 Registered: March 2007
|
Junior Member |
|
|
hi maaher thanks for the reply. yes, i did login to ci_prepaid. The owner of the object in recyclebin. i did do a refresh.
it was still the same.
when i query the DB, nothing was found. When i refresh the view on TOAD, it still shows the recyclebin objects. Its taking up a lot of tablespace. I need to remove them as soon as possible.
Please advice. Thank you.
|
|
|
Re: purge recyclebin [message #230923 is a reply to message #230897] |
Fri, 13 April 2007 06:23   |
aboodlardy
Messages: 80 Registered: November 2006 Location: India
|
Member |
|
|
Hi
To drop the table from the recyclebin of a particular user for a tablespace, u can try as this
SQL>purge tablespace <tablespace-name> user <user-name>;
hope this helps
regards
Abood
|
|
|
Re: purge recyclebin [message #230939 is a reply to message #230484] |
Fri, 13 April 2007 08:22   |
dannywcw
Messages: 24 Registered: March 2007
|
Junior Member |
|
|
i've just tried the command. its still not working. i seems that i can't remove the object from the recyclebin. i've tried restarting it and still not working.
|
|
|
|
Re: purge recyclebin [message #230945 is a reply to message #230939] |
Fri, 13 April 2007 09:00  |
JRowbottom
Messages: 5933 Registered: June 2006 Location: Sunny North Yorkshire, ho...
|
Senior Member |
|
|
Firstly - don't panic. You aren't going to run out of space, or get 'Unable to extend' errors because of the recycly bin.
From the Documentation:Dropped objects are kept in the recycle bin until such time as no new extents can be allocated in the tablespace to which the objects belong without growing the tablespace.
Now, can you run the following query, to show which users have objects in the recycle bin.
Run it in SQL*Plus and copy and paste the results back here - don't post images if you please, as my firewall won't let them in.SELECT owner,type,count(*) from dba_recyclebin group by owner,type
This will show you which users actually own the objects in the recycle bin.
As a general rule of thumb - don't do things as SYS. To paraphrase Tom Kyte (may his databases never need recovery) "SYS is special, SYS is magical, don't do things as SYS"
|
|
|