Recyclebin [message #487559] |
Tue, 28 December 2010 18:06 |
International_DBA
Messages: 5 Registered: January 2010 Location: England
|
Junior Member |
|
|
I started to write a blog [spam]. I cannot post a link to it yet as I have only just started using the forum. I found a problem straight away. It seemed to me that if I did not put a recyclebin entry in the parameter file, the value of the parameter was "on" and isdefault was true (which I understand is correct). However, if I put a recyclebin=on entry in the parameter file then isdefault was false (which I understand is incorrect). Does anybody know why this should be the case? The blog entry shows the SQL I used.
Thank you
Andrew
[Updated on: Thu, 30 December 2010 00:21] by Moderator Report message to a moderator
|
|
|
|
Re: Recyclebin [message #487562 is a reply to message #487561] |
Tue, 28 December 2010 18:16 |
International_DBA
Messages: 5 Registered: January 2010 Location: England
|
Junior Member |
|
|
Sorry, but the posting tool stopped me adding a link to my blog but I have put it as my homepage so hopefully people will be able to see it there. If not here is the blog so far. In the meantime I will read the posting guidelines:
Before Oracle 10g, if you dropped an object, it would be completely removed from the
database. In Oracle 10g, the recycle bin was introduced. It is controlled by the recyclebin
initialisation parameter, which has a default of ON:
SQL> col value format a5
SQL> select value, isdefault from v$parameter
2 where name = 'recyclebin'
3 /
VALUE ISDEFAULT
----- ---------
on TRUE
SQL>
I ran the query above after opening the database using a parameter file without a recyclebin
entry. If you add a recyclebin=on entry to the parameter and bounce the database, the
query runs as follows:
SQL> col value format a5
SQL> select value, isdefault from v$parameter
2 where name = 'recyclebin'
3 /
VALUE ISDEFAULT
----- ---------
on FALSE
SQL>
i.e. the ISDEFAULT column shows FALSE instead of TRUE. I do not know what causes this.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Recyclebin [message #487680 is a reply to message #487679] |
Wed, 29 December 2010 18:30 |
International_DBA
Messages: 5 Registered: January 2010 Location: England
|
Junior Member |
|
|
I have just clicked on the link provided by Mahesh Rajendran.
This bit seems to answer my question:
ISDEFAULT VARCHAR2(9) Indicates whether the parameter is set to the default value (TRUE) or the parameter value was specified in the parameter file (FALSE)
(more to follow - hopefully tomorrow)
|
|
|