Query faild against database that is opened in read only mode

ORA-16000: database open for read-only access
Hi ,
I am quering against a database that been opened in read only mode (10g version)
SQL> select controlfile_type,open_mode,database_role from v$database;
CONTROLFILE_TYPE OPEN_MODE DATABASE_ROLE
STANDBY READ ONLY PHYSICAL STANDBY
Currently when selecting against this database
i am getting the following error:
SELECT PS_RF_PROVGRP_VW.SETID, PS_RF_PROVGRP_VW.PROVIDER_GRP_ID, PS_RF_PROVGRP_VW.NAME1,
PS_RF_PROVGRP_VW.STATUS, PS_RF_PROVGRP_VW.SYNCID, PS_RF_PROVGRP_VW.SYNCDTTM
FROM PS_RF_PROVGRP_VW
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-16000: database open for read-only access
The owner of the object is PSSYS and i am running the queries as user INFORMIX.
select owner,object_name,object_type from dba_objects where object_name ='PS_RF_PROVGRP_VW';
OWNER OBJECT_NAME OBJECT_TYPE
INFORMIX PS_RF_PROVGRP_VW SYNONYM
PSSYS PS_RF_PROVGRP_VW VIEW
User informix have "SELECT ANY TABLE" privilage
In the source database (e.g: not the cloning one) the queries results are returning susseccfully ,
and only in the clonning the database the problem exists.
Does someone have an idea what the problem could be ?
Thanks.

Hi
Object can become invalid, if the underlying objects are dropped/invalidated.
So even if you create or validate the underlying objects these objects by themself do not become valid. You have to either make them valid or you should use it atleast one time as select/desc or any other query so that Oracle implicitly make it valid.
Your source datatabase has valid synonym because after dropping/creating you must have selected that synonym atleast one, but this selection procedure would be after you copied your data to the target database.
Regards

Similar Messages

  • Generating EXPLAIN PLAN on a database which is opened in READ-ONLY mode

    Hi,
    I am using Oracle 10.2.0.3 version.
    If my database is opened in READ-ONLY mode, means no insert/update/delete operations are permitted here.
    While generating EXPLAIN PLAN for any SQL, it does entries in PLAN_TABLE. But my database is opened in READ-ONLY mode, means no inserts can happen.
    So how can I generate EXPLAIN PLAN for my SQL in this condition?
    Thanks in advance.
    Best Regards,
    oratest

    oratest wrote:
    I am using Oracle 10.2.0.3 version.
    If my database is opened in READ-ONLY mode, means no insert/update/delete operations are permitted here.
    While generating EXPLAIN PLAN for any SQL, it does entries in PLAN_TABLE. But my database is opened in READ-ONLY mode, means no inserts can happen.
    So how can I generate EXPLAIN PLAN for my SQL in this condition?
    You can always do: "explain plan into some_table@remote_database" to avoid inserting into the local database. Unfortunately 10g added a sequence fetch to the "explain plan" code, and this is where the call would fail if you tried this remote approach on your version.
    Here's an idea I haven't tested. If you set up a database link from your production database to the read-only database, you could then do an "explain plan" in the production database for the SQL statement by changing every object reference in the SQL statement to "object@readonlydatabase". In most cases this will allow the optimizer to recognise the statement as "fully remote" and get the optimizer on the readonly database to create the execution plan - which would then be written to the production database.
    Regards
    Jonathan Lewis

  • It is possible to apply redo while the standby is open in read only mode ?

    Hi,
    I am using Oracle 11g R2 (11.2.0.1.0)
    Step 1: Two node RAC is Configured.
    Step 2: One node Data Guard RAC is configured.( i,e Standby is one node RAC).
    Primary:
    SQL> select open_mode,database_role,PROTECTION_MODE,PROTECTION_LEVEL from v$database;
    OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL
    READ WRITE PRIMARY MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY
    Standby:
    SQL> select open_mode,database_role,PROTECTION_MODE,PROTECTION_LEVEL from v$database;
    OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL
    READ ONLY WITH APPLY PHYSICAL STANDBY MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY
    Question:
    I have not purchased active dataguard license.
    In my case In Data Guard RAC it is possible to apply redo while the database is open in read only mode?
    Thanks
    Solaiman

    876149 wrote:
    SQL> select open_mode,database_role,PROTECTION_MODE,PROTECTION_LEVEL from v$database;
    OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL
    READ ONLY WITH APPLY PHYSICAL STANDBY MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY
    "READ ONLY WITH APPLY" in V$DATABASE.OPEN_MODE means Active Data Guard is enabled.
    Oracle code cannot check if you have the right license: it is up to you to know which license you have for your database environments.

  • GPO settings - documents in sharepoint 2007 sometimes open in read-only mode - needs IE reset to fix

    Hi,
    We've got an intranet running on SharePoint 2007.
    We also enforce alot of group policies to our users.
    But there is a problem that keeps reoccuring:
    On random moments, when a user tries to edit a document on any random document library in SP 2007, it gets opened in read-only mode.
    The only temporary fix we found for this is resetting the IE settings in Internet Options -> 'tab' advanced -> Reset IE settings... and pressing Reset.
    We think it is some GPO setting that we have malconfigured or forgot to configure and we hope that someone could point us  in a direction to troubleshoot or even solve this.
    Thanks in advance for reading and providing help.
    Inkendaal

    Hello,
    I also suspect that there might be issue with IE plug-in so could you confirm that? you can also tell su what plug-in you see in IE.
    You might also want to look at this similar threads:
    http://stackoverflow.com/questions/19164313/sharepoint-opens-documents-in-read-only-mode-for-users-with-office-2010
    http://social.technet.microsoft.com/Forums/windows/en-US/a0849e73-d347-4d12-8424-9d5bb6bfb004/all-office-files-from-sharepoint-are-opened-read-only?forum=w8itproappcompat
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • SP2013 and Project 2013 - project files open in read-only mode with no options to edit only Save As

    Hi all,
    Environment:
    SharePoint 2013 (15.0.4420.1017)  RTM
    Windows 8 - Project 2013 (15.0.4433.1506) 32Bit
    Issue details:
    When opening .mpp files stored within SharePoint they are opened successfully within Project 2013 however they are opened in Read-Only mode with no options to edit/check out only Save As.  The
    same outcome is experienced if you click the document link within SharePoint or you chose to edit from the document menu. 
    Opening the file through windows explorer also opens only in read-only mode.
    To date we’ve tested the following
    Windows 7 – Office 2010 = working as expected
    Windows 8 – Office 2010 = working as expected
    Windows 7 – Office 2013 = opening as read only, no prompt to edit
    Windows 8 – Office 2013 – opening as read only, no prompt to edit
    Current thinking is that it is an issue with either the SharePoint Office Documents Class ActiveX control or Project 2013 itself interacting with SharePoint 2013.
    We have tested this in multiple SP2013 environments with the same outcomes.
    The workaround therefore is to save locally and then upload again which is not ideal.
    Unable to find an exact issue match to this.
    Any help with this appreciated.

    Hi Dan,
    For us after investigating this further it was found that using the document menu to edit or checkout and then edit results in the project file being opened in read-only mode. 
    The same issue was present for Visio files.
    Using the FILES ribbon menu results in the document being opened in edit mode successfully in both Project and Visio.
    Please note that we found that this issue only exists within document libraries where checkout is required to edit which was our case.  If checkout is not required the document
    menu can also be used as expected.
    Cheers,
    Dan

  • Document will only open in read-only mode

    I created a .pdf document from a Word document in Adobe Acrobat Professional 10.1.1. When I open the .pdf it will only open in read-only mode.  I want to change the security settings to prevent editing before I send it out but the File>Properties>Security>>Security Method is greyed out and set to "No Security."  I have tried certifying and signing the document and even placing in a secure envelope with no luck.
    Help.
    Thanks in advance.

    Thank you Dave. 
    From MS Word, I am choosing Save as Adobe PDF.  In the Save window I reviewed the "Options..." and found PDF Options including
    Convert document information  (checked)
    Create PDF/A-1a:2005 compliant file  (not checked)
    Enable Accessibility and Reflow with tagged Adobe PDF (checked)
    Apply Security (not checked)
    Create Bookmarks (checked)
    Convert Comments (not checked)
    I checkmarked Apply Security and attempted to save the document, however, received the following error:
    PDFMaker cannot apply security when PDF/X or PDF/A compliant job option is selected.
    I do not have the Create PDF/A-1a:2005 compliant file box checked so I'm not sure why I'm getting that error.

  • Project files open in read-only mode

    project files open in read-only mode in ms project 2013.But in the case of MS Project 2007 it opens in READ\WRITE mode .what should i do so that project will opens in READ\WRITE mode by default in MS Project 2013

    In addition to John's excellent reply, I'd add that if you are talking about Project Server, this is by design that the projects in 2013 version open in read-only mode, in order to require an explicit operation to check-out the file. This prevents to have
    many checked out files by mistake.
    See this
    article on my blog.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • ZForm only opens is 'read only" mode - but WDR_TEST_ADOBE, runs fine

    Dear readers,
    I am working on an Adobe form, now ZForm only opens is 'read only" mode - but when i run WDR_TEST_ADOBE, it runs fine and it is interactive and I am able to click on the buttons.
    I compared the form from WDR_TEST_ADOBE, and changed the layout to ZC1, and run the Web dynpro script. After activating and running the webdynpro, I see that it is still acting strange and none of the input fields are accepting input.
    There seems to be nothing wrong with the ADS or live cycle designer.
    Some setting in my Webdynpro is preventing this form from being displayed correctly.
    When I attach the form - "WDR_TEST_ADOBE_SIMPLE" from the WD - WDR_TEST_ADOBE, and test my WD, The form is being displayed as read only.
    which again leaves to the conclusion that the something is not right in the WD.
    ~Any suggestions are appreciated, thanks

    Also in the interface properties under sfp,
    when I change the interface type from
    "ABAP dictionary based interface" to
    "XML schema based interface".
    All the entries under Form interface->Import parameters get wiped out, and I have to enter them again.
    Also below is the system information.
    Software   ComponRelease   Level  Highest SupportShort Description of Software Co
    SAP_ABAP           700        0017     SAPKA70017     Cross-Application Component
    SAP_BASIS          700       0017     SAPKB70017     SAP Basis Component
    SAP_HR            600        0040     SAPKE60040     Human Resources
    and I am doing development on HR box, could this be causing trouble, bcos as per below link
    http://help.sap.com/saphelp_nw70/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm from here goto: WebDynpro ABAP Development in Detail->Integration->Integrating Forms->Forms with ABAP Dictionary Based Interface. 
    As of NetWeaver 7.0 SPS10 we strongly recommend you use ZCI forms with an XML interface only. Because additional central features have been added in subsequent SPs (input help and dropdown list boxes), we generally recommend that you always use the most up-to-date Support Package for Web Dynpro ABAP.
    Edited by: Neha Sharma on Feb 1, 2010 11:21 AM
    Edited by: Neha Sharma on Feb 1, 2010 11:25 AM
    Edited by: Neha Sharma on Feb 1, 2010 11:27 AM

  • Database Open in Read Only Mode

    Hi
    I would like to open database in read only mode
    like
    SQL> startup mount
    SQL> ALTER DATABASE OPEN READ ONLY
    this will open database for read only mode for all user
    i want to give read write access on database to one user
    any idea how i can proccess
    Thanks
    Chetan

    Hi,
    Alter database open read only;
    this should work fine and everything will be in read only mode. Hence if any auditing is going on and audit_trial=db then it fails to open the database in read only mode.
    If you want to control only users to stop writing to it, you may remove tablespace quotas for those users. Also, you may control them through grants. Remove any current grants assigned to them or to roles through which the grants are assigned.
    Several ways to do this. If you tell us the particular scenario then we might help in getting a solution.
    Regards,
    Vasu.

  • How Real Time Apply works while physical standby is open in Read Only mode

    Hi,
    With Active data guard option, we can open physical standby DB in read only mode, while redo log are being applied. (Real Time Query)
    Standby Redo log (SRL) enables Real Time Apply (with "USING CURRENT LOGFILE" clause in recover database command on standby DB)
    I am interested to know, how Real Time Query works ?
    What is the mechanism with allows us to open physical standby DB in read only mode while redo logs are being applied continuously ?
    Regards,
    Sujit

    Dear user7419391,
    That is a new feature in Oracle Database 11g. MRP can use the real time apply in 10g but the concept here is different.
    Taken from the following document;
    http://www.ascent.co.za/documents/oracle/Oracle%20databse%2011g%20Active-Data-Guard%20datasheet.pdf
    *Unique Advantages of Oracle Active Data Guard*
    +Active Data Guard is an evolution of Data Guard technology, providing unique+
    +performance advantages while leveraging all other enhancements included in Oracle+
    +Data Guard 11g. For example, any Data Guard 11g physical standby database can+
    +be easily converted to a Snapshot Standby. A Snapshot Standby is open read-write+
    +and is ideally suited as a test system, able to process transactions independent of the+
    +primary database. A Snapshot Standby maintains protection by continuing to receive+
    +data from the production database, archiving it for later use. When tests are+
    +complete, a single command discards changes made while open read-write and+
    +quickly resynchronizes the standby database with the primary.+
    The other link in the previous post is excellent and you really have to read it to understand the active data guard aspects.
    Regards.
    Ogan

  • Dedicated client opening in read only mode

    Hi
    This is my dedicated client and yes this is the fresh installation .I have only applied 8.1..1.9 patches on my dedicated client for open ui.
    I did not apply any QF for this .I have already checked the logs but it is still showing in read only mode after doing upgradation and all changes.
    Thanks

    Hi,
    a new upgrade local database version is available to local database. You need start a Siebel Remote session to retrieve the upgrade kit, or you need rextract a new database with the new upgrade.
    Regards.

  • Word 2007 - documents open in read only mode

    Got a couple of users who are getting this issue. When they want to open some documents from a file share, it opens as read only (this is random)  - comes up with a prompt saying that this file is locked for editing by another user. If they close
    it, wait a few minutes then it opens fine and they can edit it. It has nothing to do with permissions and no one else has this document open.
    Any ideas?

    Thanks for the reply.
    Anything is welcome at this point.
    And yes, I did try both through PowerShell and through the Unlocker and the behavior is pretty much the same. If the item is checked in, there is no trace that it is locked, if I Check it Out (the only thing I can really do with it) it shows as "LongTerm"
    but then throws the same exception
    Unlocking...
    Error occurred. Details:
    Save Conflict
    Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.
       at Microsoft.SharePoint.SPFile.CheckIn(String comment, SPCheckinType checkInType, Boolean bIsMigrate, SPUser modifiedBy)
       at Microsoft.SharePoint.SPFile.CheckIn(String comment)
       at ForceSPItemUnlock.UnlockerForm.UnlockButton_Click(Object sender, EventArgs e)
    The method UpdateItemCheckoutExpiration sounds insteresting though.
    "The more difficult something became, the more rewardant it was in the end"
    http://ftduarte.blogspot.com

  • Document open in read only mode

    All users who are opening documents (excel, word ).  When the read-only or edit prompt comes up they click edit.  When the document opens up it opens as read-only and they are unable to save thier changes.
    The server is sharepoint 2010. The client is Office 2010.
    Any ideas?
    Thanks!
    Lital

    I found the problem.
    I had this lines in the web.config that cause the problem:
    <verbs allowUnlisted="true">
              <add verb="OPTIONS" allowed="false" />
              <add verb="PROPFIND" allowed="false" />
     </verbs>
    I added them because I had problem with anonymous users with office 2013 - when they try to open document that is open for anonymous they get login screen and when they do esc the doc open.
    What can I do do fix that?
    Thanks!
    ליטל

  • Excel opens in read only mode on firefox. How do I edit?

    If I open an emailed excel document in Firefox it opens as "read only". If I open the same document in Explorer I have the option to edit. How do I get Firefox to allow for editing excel documents?

    When you choose Open in the Open/Save/Cancel dialog, Firefox usually uses the Windows TEMP folder. It is safer as cor-el suggests to save the document somewhere else either before or after making your edits. (My understanding of Read Only in Microsoft Office is not that you can't edit, but that you cannot save over the original, so you need to use Save As to save your edits.)

  • PDF's open in Read-Only Mode

    Hi,
    I purchased a Windows 8 (not pro) 64bit system and installed Acrobat XI Pro, I never installed Adobe Reader. The computer and Adobe are both fully updated and I am running into the following problem.
    I look for a pdf in my windows browser and when I see in the Preview Pane (which I have eneabled) Acrobat opens the PDF's but will not let me save any edits I make to them. At first this was happing to local and network files but it is not only happening to files in my network drives. I did the following to resolve the problem (which worked, but only for Local Files NOT PDF's in my Network Drives):
    1. Stopped the services for all Adobe products.
    2. Re-named my AcroRD32.exe to AcroRD32.OLD
    3. Opened windows explorer to use Acrobat as the Previewer instead of reader.
    This onlly worked for the pdf's I have saved locally, not on network drives.
    I can't seem to figure out why this is happening. I receive the following error when leaving a file selected in Preview Pane and working on it simultaneously and try to save it:
    "The document could not be saved. The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder."
    I have also selected a different file in the preview pane and then tried tosave the file and it worked. (This confirmed to me that the problem was with the Preview pane, but only on PDF's saved in a network folder, not locally)
    Any suggestions, answers, help? Please and thank you, I appreciate everyone's help or comments!!!!
    Thank you,
    tech_geezy

    Oh man! I was really hoping that wasn't going to be the case! Thanks a lot man, I appreciate the help!
    I'll leave this forum open for another week, maybe someone else has something experimental to try, thanks everyone!
    -tech_geezy

Maybe you are looking for