RE: Weird read-only error Solaris 10,

From: Baumgartel, Paul <>
Date: Fri, 9 Oct 2009 13:01:20 -0400
Message-ID: <>

What kind of change was made to the object to which the synonym refers?

Paul Baumgartel
Information Technology
Prime Services Databases Americas
One Madison Avenue
New York, NY 10010
Phone 212.538.1143

-----Original Message-----
[] On Behalf Of Yong Huang Sent: Friday, October 09, 2009 12:58 PM
Subject: Re: Weird read-only error Solaris 10,

> We have a daily clone that we open in read-only mode. User reports
> following error:
> select * from t_sap_cd
> ORA-00604: error occurred at recursive SQL level 1
> ORA-16000: database open for read-only access

With some private emails, Chris told me what happened and I think it's interesting to everybody. The database is open read only. But the status

of the synonym is still invalid (beginning with 10g, a synonym can become
invalid), due to an earlier specification change of the object the synonym
points at. When you later use the synonym, as in select * from this_synonym or even desc this_synonym, the status must be changed to valid because the translated object perfectly exists. But because the database is read only, its status in the system tablespace is frozen, hence the error.

If I were at it, I would probably alter session to enable SQL trace (not

set autotrace on) and systematically troubleshoot the issue, unless I already thought of it. The trace file should have "err=16000" in it.

Yong Huang       


 Please access the attached hyperlink for an important electronic communications disclaimer: 
Received on Fri Oct 09 2009 - 12:01:20 CDT

Original text of this message