Read only database

Dear all,

I have a database of unique user.now if someone wants to access my database and I want him to pick up my database in read only format only.
How can I do this?


Thanks in advance.

Ashish Sharma
It means i have to create new user for him. but the problem is this my database
update records frequently. so i will have to update other user as well.
or is there any other technique

LON
There is only one object and user who have access to update/insert/delete would keep doing it and the user who do not have these access but select access would be able to select and would be able to see the data what another user update/insertion/deletion.

Concerning
Anurag Tibrewal

Tags: Database

Similar Questions

  • ALTER USER on read-only database link db

    Oracle 11.2.0.3.6

    Solaris 10

    I have a primary database and one Active Data Guard standby database physical.  My read-only database users must be able to change their password for read-only standby.  I tried to create a stored procedure with an ALTER USER inside statement and then to have my user call the stored procedure of the unalterable standby by: MIMI EXEC. CHGPWD@PRIM ();

    This translates into:

    ERROR on line 1:

    ORA-16000: database opened for read-only access

    ORA-06512: at "MIMI. CHGPWD', line 27

    ORA-06512: at line 1

    How can I allow a user who cannot access the read-only database to change their password for read-only standby?

    Here my stored procedure:

    CREATE OR REPLACE PROCEDURE MIMI. CHGPWD IS

    -CREATE OR REPLACE PROCEDURE CHGPWD IS

    sql_stmt VARCHAR2 (200);

    BEGIN

    sql_stmt: = 'ALTER USER MIMITEST IDENTIFIED BY 111111';

    EXECUTE IMMEDIATE sql_stmt;

    END CHGPWD;

    /

    Ah, I got it!  I had to create a public synonym for my stored procedure, and then create another stored procedure and use the synonym.  This is explained in the documentation of Oracle packages and PL/SQL procedures coding under the section 'referring to remote objects.  Here is what I have from the beginning to the end (My SID is MIMI and the unique name on the primary is MIMI_A):

    Read-only mode ensures:

    ALTER SYSTEM SET GLOBAL_NAMES IS FALSE SCOPE = BOTH;.

    Elementary school:

    ALTER SYSTEM SET GLOBAL_NAMES IS FALSE SCOPE = BOTH;.

    CREATE THE PUBLIC DATABASE LINK MIMI_A.WORLD WITH THE HELP OF "MIMI_A";

    ALTER SYSTEM SET GLOBAL_NAMES IS TRUE SCOPE = BOTH;.  (I need to have this true on my primary game)

    CREATE OR REPLACE PROCEDURE MIMI. CHGPWD IS

    Working directory;

    BEGIN

    dbms_job. Submit (job,' BEGIN EXECUTE IMMEDIATE "ALTER USER MIMITEST IDENTIFIED BY 666666";) END ;') ;

    END;

    /

    CREATE CHGPASS SYNONYM PUBLIC FOR MIMI. CHGPWD@MIMI_A.WORLD;

    CREATE OR REPLACE PROCEDURE MIMI. LOCAL_PROCEDURE IS

    BEGIN

    CHGPASS;

    END;

    /

    GRANT EXECUTE MIMI. CHGPWD TO MIMITEST;

    GRANT EXECUTE MIMI. LOCAL_PROCEDURE TO MIMITEST;

    Read-only mode ensures:

    Mimi/oracle/1120308 > sqlplus mimitest

    SQL * more: Production of the 11.2.0.3.0 version Fri Sep 19 15:55:56 2014

    Copyright (c) 1982, 2011, Oracle.  All rights reserved.

    Enter the password:

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > exec MIMI. LOCAL_PROCEDURE;

    PL/SQL procedure successfully completed.

  • Address book 'Read only' blackBerry Smartphones?

    Hello

    really hoping that someone can help, because I'm afraid I'm losing the plot. Unfortunately I'm not the most tech savvy person. I got an iPhone, and then when that broke got a Curve 8520 as a working phone. One of the moments where I plugged into my laptop, copied all my contacts old iPhone, which was awesome.

    But last week I dropped my phone in the toilet, and long story short, I have a new (same model). When I tried to restore my settings where I backed up my curve v1, my address book copy as it is "read only". It is light grey writing.

    I have no idea what to do - I tried for days copy contacts on, but nothing helped. I can't say it it work because, in truth, they'll laugh right in my face.

    Help, please! I just want my contacts back!

    Thank you

    Kate

    OK, unplugged the USB, look on your BlackBerry at the request of your Messages > Options > Email Reconcialation and turn off (Devil) Wireless reconcile.

    Now, try again.

    See more details here:

    KB04461 Cannot restore read only databases when you use the advanced backup and restore of the BlackBerry Desktop Manager

  • Active DataGuard: ora-16000 database opened for read-only access

    Hi all

    Application, I get the error message "ora-16000 database opened for read-only access, while my primary database is up/open for read/write." When I stopped the standby database, the application works very well.

    Please suggest what could be the reason and the solution for the same.

    OS: RHEL - 5.3

    Oracle: 11.2.0.1.

    Kind regards

    Ronak Masudi

    Patch 9322138 ORA-16000 on recursive SQL on standby database Query rewrite

    I wouldn't be sure if tha applies to your scenario. What you might want to check is this host = xxxx in your tnsnames file points to the right machine or resolve the correct IP addresses. Perahps you have confused primary and standby.

  • How can we put a database in read-only mode?

    DB version: 11.2.0.2
    Platform: AIX 6.1

    How can we put a database in read-only mode?

    Please read http://docs.oracle.com/cd/E11882_01/server.112/e25494/start002.htm#i1006490.

  • problem with upgrade of database with read only tablespace

    Hi all

    When we try to upgrade of database 10.2.0.1.0 to 10.2.0.5.0 on Linux x 86. Unfortunately, we have two or three table spaces are read-only mode. The dbua compiled by saying that he is not able to resize read only tablespace. So we used manual upgrade using catupgrd.sql. Before running the catupgrd.sql that we tried to change playback that in none of them only worked in the line/ofline watch still read only. After upgrade we noticed some components are not valid are

    Oracle Workspace Manager INVALID 10.2.0.5.0 00:01:04
    Oracle Data Mining INVALID 10.2.0.5.0 00:00:52

    Could you please help how to solve this one. Database is started fine and operational. But we cannot do these tablespace to online and how to fix the above components not valid. Any help is much appreciated.

    Kind regards.

    Hello

    Yes the catupgrd.sql is re-courable.

    Please read carefully the README, in chapter manually upgrading a 10.2 database that the main steps are:

    -Start of the database in UPGRADE mode.

    -Run utlu102i.sql in order to check the database before the upgrade.

    -Run the catupgrd.sql.

    -Check the patch.log error file and inspect the components list that is displayed at the end of the catupgrd.sql script. This list gives the version and State of each SERVER component in the database.

    -If necessary, rerun the script catupgrd.sql after correction of problems.

    -etc...

    You will have many tips of the README, and it is essential to follow.

    Of course, before doing anything, it is important to get a good backup of the database.

    Hope this helps.
    Best regards
    Jean Valentine

  • Generation to EXPLAIN the PLAN on a database that is open in READ ONLY mode

    Hello

    I use the Oracle 10.2.0.3 version.

    If my database is opened in READ ONLY mode, means that no insert/update/delete operations are allowed here.

    During the generation of the PLAN to EXPLAIN this, the PLAN_TABLE registrations for any SQL. But my database is opened in READ ONLY mode, means that no inserts can happen.

    So, how can I generate EXPLAIN PLAN for my SQL in this State?

    Thanks in advance.



    Best regards
    oratest

    oratest wrote:
    I use the Oracle 10.2.0.3 version.

    If my database is opened in READ ONLY mode, means that no insert/update/delete operations are allowed here.

    During the generation of the PLAN to EXPLAIN this, the PLAN_TABLE registrations for any SQL. But my database is opened in READ ONLY mode, means that no inserts can happen.

    So, how can I generate EXPLAIN PLAN for my SQL in this State?

    You can always do: 'explain the plan in some_table@remote_database' to avoid inclusion in the local database. Unfortunately 10g added an extraction of the sequence of the code "explain plan", and that's where the call fails if you have tried this distant approach on your version.

    Here's an idea that I have not tested. If you configure a link of data to your database from production to the database read-only, you could then do a "explain plan" in the database of production for the SQL statement by changing each object reference in the SQL statement to "object@readonlydatabase". In most cases this will allow the optimizer to recognize the statement as "entirely to distance" and get the optimizer on the readonly database to create the execution plan - which will be then written into the production database.

    Concerning
    Jonathan Lewis

  • Database pending automatically in READ ONLY mode

    Hello

    I saw two or three times as my standby database in READ ONLY mode automatically and so I have to stop, that it is put into recovery mode,

    Can someone tell me please the reason?

    DB_VERSION:-10.2.0.4
    OS_VERSION:-Windows 2003 Server


    Thanks in advance,

    Girish

    Published by: Girish Sep 29, 2010 05:47

    Hi Girish,

    What needs to happen, you must have obtained your automatic oracle services, so whenever your server restarts, it starts services and puts the database in READ ONLY mode standby, now why your standby gets only reading must be because you must have defined the attribute - startmode for this as automatic (using ORADIM), so whenever the server reboots restart the database service and your database in read-only mode.

    I suggest that you change the instance attribute using ORADIM and value startmode - MANUAL.

    Hope it would work.

    Kind regards
    Aurélie

  • Read only access to the database

    Hi all

    I am unable to give read-only access to a newly created in the Oracle database user. I grant only read permission to the user, but the problem, it's that this user is able to delete data from a table or schema.

    Must only give 'Read only' access to the user who will be sql query for any table, schema, etc.


    I followed the steps.

    1 creation of the user

    2 granted suite privilege

    CREATE SESSION

    SELECT_ANY_TABLE;

    SELECT_ANY_DICTIONARY

    Please guide on the same.

    user8934591 wrote:
    Hello

    I created the user "MFC".

    and granted 'create the Session '.

    Thank you and best regards,

    Fine. But I asked PUBLIC.

  • Create read only user to the database

    Hi all

    I need to create read only the user to one of the databases so that he should have the select query on all tables, views etc...

    Can I create a user of this type with the role OEM_MONITOR at once?

    Please advice
    Concerning
    Arun

    No.:

    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    SQL> create user toem identified by toem;
    
    User created.
    
    SQL> grant oem_monitor to toem;
    
    Grant succeeded.
    
    SQL> select count(*) from hr.jobs;
    
      COUNT(*)
    ----------
            19
    
    SQL> connect toem/toem
    Connected.
    SQL> select count(*) from hr.jobs;
    select count(*) from hr.jobs
                            *
    ERROR at line 1:
    ORA-01031: insufficient privileges
    
    SQL>
    

    Grant select ANY TABLE might work, but note it is generally regarded as a bad security practice:
    http://download.Oracle.com/docs/CD/E11882_01/network.112/e10574/guidelines.htm#CHDHFIFG

    Edited by: P. Forstmann on March 8, 2010 21:31

  • How can we create a read only user for the peoplesoft back-end database

    Hi all
    I have fscm9.0 installed instance peoplesoft. Told me to create a new user similar to sysadm but with read-only access, an agency can help in this reagard?

    Create a user ordinary daabase.
    Create a public synonym for objects of the SYSADM.
    Finally GRANT SELECT on each unique objecs (tables and views) to SYSADM objects to the new user.
    You could also work through a database of ROLE and giving the role to the new user.

    Nicolas.

  • The Performance counter requested is not a custom counter, it needs to be initialized read-only.

    I use SAGE ACt! database and I get this error message after loading.  The Performance counter requested is not a custom counter, it needs to be initialized read-only.

    Does anyone know how to remedy this?  I talked to the WISE and they say it's a problem of Windows registry, but I don't have the knowledge to deal with this.

    Hello

    Thanks for posting your query in Microsoft Community!

    Can I know what Windows operating system do you use?

    I would like you see below and check if that helps.

    Error message "Performance counter is not a custom counter, it needs to be initialized in ReadOnly" when you run Microsoft Dynamics CRM 4.0

    http://support.Microsoft.com/kb/958377#appliesTo

    Note: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: 322756 (http://support.microsoft.com/kb/322756 /) how to back up and restore the registry in Windows.

    Please report if you are still having the problem. I will be happy to provide you with the additional options that you can use to get the problem resolved.

    We can't wait to hear back on your part.

  • File attributes can be changed from read-only on a global scale?

    I just finished using Easy Transfer from XP on a Win7 machine on another PC and find that almost ALL of my documents, spreadsheets and Access databases has been changed read-only.  I changed a couple of them to full access through the Properties menu, etc. and many prefer to be able to do on a global scale as I speak of hundreds of files that have been changed by this transfer.

    Is there a way to do this on all my files on my hard drive?

    Ronnie,

    It just seemed to me that all I really need to do is to find a way to change MY profile for equal to that of the admin. I did it just for a few files and these files are no longer read-only... !  I hesitate to change my system to an ADMIN login for security reasons.   I also changed the attributes of the lowest subfolder, then the above it and then I can open all of the files in these folders in r/w mode...

    So, is it possible to automate change the attributes of all files folder and subfolders?

    Fred615

    Hi Fred

    Yes, you must be connected to a Director profile.

    If all these files that you want to remove the read-only attribute on the D: drive, perform the following steps. Use these commands exactly as written, including spaces.

    1. open the elevated command prompt by using the profile administrator.

    The location should display C:\Windows\system32 >

    2 type cd\

    Press ENTER

    The location should now show C:\ >

    3. Type  D:

    Press ENTER

    4 location should now show D:\ >

    5 type attrib - r *. * /s /d

    Press ENTER

    This should remove the read-only attribute of all folders and files on that drive.

    Test and let us know the results.

    Concerning

  • Read only access ACS 5.3

    Hello guys,.

    I use ACS 5.3 with the internal database for authentication of users, I would like to give some users read only rights on the systems.

    What is the best way to do it? by not configuring a password to enable for these users? or is there a better way to do this?

    Thanks in advance.

    Give read only access on devices such as the router/switch/firewall?

    If Yes, then we don't have that one best option is to configure ACS and devices for approval of the order.

    ACS 5

    http://www.Cisco.com/en/us/docs/net_mgmt/cisco_secure_access_control_system/5.1/user/guide/common_scenarios.html#wp1052579

    Necessary config on devices:

    http://www.Cisco.com/en/us/products/sw/secursw/ps2086/products_configuration_example09186a00808d9138.shtml#ROU

    If you have any specific questions or some configuration does not work, post it here.

    Kind regards

    Jousset

    The rate of useful messages-

  • DataGuard open read only mode: PING [ARC2]: unable to connect before Heartbeat "keeps." The error is 88.

    Hello

    I created a data guard with 1 physical and 1 relief database.

    Database: 11.2.0.4 - Enterprise edition

    Everything is OK, if the wait is still in State of Mount.

    but.

    When I want to open the day before in read-only mode, log shipping is stop.

    I found az error in the primary newspaper:

    PING [ARC2]: Unable to connect to the standby Heartbeat "keeps." The error is 88.


    The newspaper of Eve:

    alter database open read only

    AUDIT_TRAIL initialization parameter is changed to OS, as DB is NOT compatible to the database open with read only access

    Wed Dec 03 12:02:02 2014

    SMON: enabling cache recovery

    Dictionary check start

    Verification of the complete dictionary

    Database character set is AL32UTF8

    No Resource Manager plan active

    off replication_dependency_tracking (no replication multimaster async found)

    Physical standby database opened for read only access.

    Completed: alter database open read only

    Wed Dec 03 12:02:03 2014

    Mo 4977 db_recovery_file_dest_size is 2.29% used. It is a

    user-specified limit on the amount of space that will be used by the present

    for the files related to the recovery of databases and does not reflect the amount of

    space available in the underlying file system or ASM diskgroup.

    Thanks for your help and sorry for my bad English.

    LACI

    Oracle error: ORA-00088

    Error description:
    Cannot be executed by the shared server

    Cause of the error:
    Debug command issued on a shared server.

    Action:
    Run the command again using a dedicated server.

Maybe you are looking for

  • Message at startup

    Just bought my new iMac. El capitan at startup a message each time. To use the java command line tool, you must install a JDK.  What it means. I downloaded the java last but still no message.

  • Size of the queue for Signal form write XNET

    Hello I am using the XNET library to play a preset on an output signal waveform. I work with LabVIEW 2014 SP1, 14.5 XNET on a W7 Pro 32-bit operating system. I use an NI PCI-8512 map. This is my first app using the xnet library. In my test applicatio

  • PXI chassis with remote hot-plug

    Hello I use the SMU-PCIe8371 with SMU-8370 remote control instruments in the SMU-1075 chassis in Vista. In order to see my instruments in MAX the chassis must be turned on when I reboot Windows. If I disable the chassis while Windows is running, I ha

  • Message blackBerry Passport "Make sure you have sufficient network coverage" displayed even after deletion of security

    Hello Hope this message finds you well. I tried to download Skype from BBWorld, but after selecting the download option, the process was quickly interrupted by the following message is displayed: a network error has occurred during the processing of

  • LAN disconnects when you connect to PPTP session

    IAM trying to connect to the server thro PPTP client. While the PPTP session connect my LAN services disconnets. Is there no workaround solution to use both simultaneously.