How to give select prvileges on objects in ONE schema only.

hi.. i wanna to do gve a select on tables only privilege to all objects in one schema only,
is there any single command that enable me to do so ?
or do i have to allocate priviledge to each and every schema objects available ?

I think there is no command that will give permission on all the objects in one go.
but u can do it in some tricky way.
some thing like this
spool permission.sql
SELECT 'grant select on '||TABLE_NAME|| ' to abc; ' FROM USER_TABLES
spool off
change the abc user with the real schema name
then run the permission.sql file connected with the user containing the tables.
first try this on some test db and check if it works
regards
Ansh

Similar Messages

  • How can i access all the objects of one schema from another schema

    Dear All,
    How can i access all the objects(Tables,Views,Triggers,Procedures,Functions,Packages etc..) and do the modifications of one schema from another schema (Without using synonyms concept).
    Thanks in advance,
    Mahi

    First of all, synonyms only help you easy reference the object. It doesn't have any implication of object privilege.
    As long as you have proper privilege on target object. You can access it with or without synonyms.
    Assuming you have proper privilege of objects, you can use following command to assume schema owner.
    ALTER SESSION SET CURRENT_SCHEMA = Schema_owner

  • How do you select and move more than one bookmark at a time? Shift+Click does not select multiple items that are next to one another in a list because the item

    How do you select and move more than one bookmark at a time?
    Shift+Click does not select multiple items that are next to one another in a list because the items open in firefox before this happens.

    Use the bookmarks library. You may use Shift +Click, and Ctrl + Click to create groupings of selected bookmarks to drag and drop.
    * one method of opening the bookmarks library is keyboard shortcut <br /> Ctrl+Shift+B (Windows)
    *see also [[How to use bookmarks to save and organize your favorite websites]]
    *and [[Use bookmark folders to organize your bookmarks]]

  • How do I select an Underneath Object?

    I'd assumed it would be "Press Shortcut Key and tap mouse" or something like that... but it's not. 
    It seems the Command Key changes the mode of the selection tool, whilst partially, sometimes, enabling selecting underneath.  But it's terribly inconsistent, and means that the selection mode is changed if I do manage to select the desired object.  Is this how it works?

    All of the above, and many others.
    I see no point in hiding these issues away in "feature requests".
    I hope others suffering in the same way find these truths faster through these cookie crumbs
    I need an online reminder and archive of all the things I'll need to teach someone else through in the future.
    But mostly because I think there's more chance Adobe will do something about anything if there's public acknowledgement of the problems/issues/oddities need addressing.
    The performance of Illustrator, on current generation hardware, is one I'll never get tired of pointing out.  It's amazingly bad.  I have no idea how they're not constantly ashamed of it.
    It's bad on PC's and Mac's.  There's no excuse for it.  This is creative software.  It should be as FLUID as the hardware permits.
    From what I'm seeing there's no hardware a consumer could buy to get a fluid experience in Adobe Illustrator.  That should be a source of constant complaint until it's addressed. PUBLICLY.
    However I have filed ONE Feature Request.  For a public feature request system with voting, linking and annotation capabilities. 

  • How to deactivate selection on 3D object

    Hello and sorry for my bad english.
    Can you tell me how I can deactivate the selection on 3D object. Is there a function in JavaScript?? or anything else....
    Thanks

    Hello,
    I only wonder what it was, you expected ?
    Do you want to deactivate 3D selection and to disable actions like hide /show / isolate etc ??
    Or you want to disable the Export Data / Optimize functions ?
    Could you please be a little bit more precise ?
    Thanks in advance,
    Best Regards
    William Gallego
    A3D QE Team

  • TS2128 How can I select multiple SEPARATE objects/words in Pages (Mavericks version)?

    When I type a document and decide to italicise a couple of separate words throughout the document how can I select them at once? Pressing Shift selects all the words between the first and the second, that does not help me. In Pages 09 it worked with either cmd or ctrl or alt (I don't remember which, but one of them worked) but I tried all of them now and nothing happens.
    Can anyone help me?
    Thank you!

    You can't do it anymore. Pages 5 is a stripped application and has lost about 90 feature that Pages 09 has. Read more about it in other threads in this forum.

  • How to give select on DBA_ROLE_PRIVS to the endusers?

    I' like to give select only on DBA_ROLE_PRIVS to enduser but the problem is that the SYS can create public synonym for DBA_ROLE_PRIVS and can give the privileges to other users but other users can not use these privileges; they can not see the content from the view DBA_ROLE_PRIVS (my public synonym DBA_ROLE_PRIVS with select privileges to other endusers). Could anyone give me some ideas? (10g).
    Thanks!
    m.
    Edited by: marussig on Sep 22, 2008 4:46 PM
    Edited by: marussig on Sep 22, 2008 4:53 PM

    Why do you want users to access DBA_ROLE_PRIVS ?
    If you really really need to grant them access, create a public synonym and grant them SELECT on that public synonym.
    C:\>sqlplus
    SQL*Plus: Release 10.2.0.3.0 - Production on Mon Sep 22 22:00:26 2008
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Enter user-name: / as sysdba
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> create public synonym d_r_p for dba_role_privs;
    Synonym created.
    SQL> grant select on d_r_p to public;
    Grant succeeded.
    SQL> create user abc identified by xyz;
    User created.
    SQL> grant create session to abc;
    Grant succeeded.
    SQL> connect abc/xyz
    Connected.
    SQL> select count(*) from d_r_p;
    COUNT(*)
    108
    SQL> desc d_r_p
    Name Null? Type
    GRANTEE VARCHAR2(30)
    GRANTED_ROLE NOT NULL VARCHAR2(30)
    ADMIN_OPTION VARCHAR2(3)
    DEFAULT_ROLE VARCHAR2(3)
    SQL>
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • How can I drop the java objects from a schema

    hi..good afternoon all...
    How can I drop the java objects from a database schema???
    suppose the credentials are scott/tiger@db1
    Another thing is that...I have to do this from cmd(command prompt) as there is no plsql developer or sqldeveloper installed in the machine.
    plss help...thanks in advance...

    hi...i have already tried all the options..but it is showing the error..
    ora:01435 - user does not exist
    but when i have given the command...
    select object type, object_name, status from user_objects where object_type like'%JAVA%';
    then it is showing that the java_object is present....
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    SQL>
    SQL>
    SQL> set linesize 200
    SQL>
    SQL>
    SQL>
    SQL> select object_type, object_name, status from user_objects where object_type
    like '%JAVA%';
    OBJECT_TYPE OBJECT_NAME
    STATUS
    JAVA CLASS javaclass1
    VALID
    JAVA SOURCE javaclass1
    VALID
    SQL> drop java source javaclass1.java;
    drop java source javaclass1.java
    ERROR at line 1:
    ORA-01435: user does not exist
    SQL>

  • How to  extracting data in all objects except one object?

    hi experts,
    when we are trying extracting(load) data, it should be updated in all objects except one object,what is the procedure, pl anybody can explain step by step procedure.
    thanks & regards
    vijay

    Hi vijay
    By object do you mean infoObject ?..if it is then you can set no update in update rule and do not map in transfer rule...
    Thanks
    Tripple k

  • How do I "Select pixels" on more than one layer, then "Paint bucket" ?

    Hi
    Using Photoshop CS4.
    I have a document with several layers.
    If I right click a layer in the "Layers UI" and then click "Select pixels" then the pixels in that layer is selected.
    Then I can use the "Paint bucket" to e.g. set another color for the selected pixels.
    Is it possible to "Select pixels" from more than one layer, and then use "Paint bucket" once to change color for all the selected pixels in one go?

    You wont be able to FILL more than one layer at a time.
    But loading seections can be done by holding control SHIFT and clicking on the layer thumnail in the layers panel. Each click will load more area depending on which layers you load

  • How can I import objects of one schema into others ?

    Hi all,
    I want to import the objects of a schema into another users schema. e.g I want to import the whole schema of user Scott into another user... Robert's schema ? Is it possible to do so ?
    Any help would be precious.
    Thanx
    Zaaf.

    Hi,
    Lets imagine that you have two users, scott and user1.
    Step 1. take export of scott schema
    exp scott/tiger file=scott.dmp
    step 2. import into user1 schema
    imp user1/password file=scott.dmp full=y
    hope this will help you.

  • To find Missing DB Objects from one schema,sid to other schema,sid

    Hi Friends..
    I have an requirement as bellow...
    Recently we migrated from one schema to other ,some of the DB objects are missed while migrating.
    After Migration now the schema and SID are Different for newly created schema
    while comparing the newly created schema2 with old schema1 found that some of the DB objects are missed.
    So i need to find out the difference's from Schema1 to Schema2.
    But now schema 2 is having different sid and schema name and to make the changes in schema2 with respect to schema1.
    Please let me know how to go ahead with this....
    Thanks in advance...

    Hi,
    Here's one way:
    SELECT     object_name
    ,     object_type
    FROM     all_objects
    WHERE     owner     = 'SCHEMA1'     -- Case-sensitive
        MINUS
    SELECT     object_name
    ,     object_type
    FROM     all_objects
    WHERE     owner     = 'SCHEMA2'     -- Case-sensitive
    ;Use a database link for one half of the MINUS, if necessary.
    This will not detect objects that have the same name and type, but are different. For example, if both schemas have a table called TABLE_X, the query above will not display TABLE_X, even if the two tables have different rows and/or columns.

  • Syscontext use in a object by one schema can't access by others

    Syscontext related one schema objects given error during access in othere schema and use to take
    sys privs like "select any dictionary "
    Grant create any context to HR;
    conn hr/hr123 ;
    then
    CREATE OR REPLACE PROCEDURE "HR"."SET_ATT_DATE" (att_date IN DATE) AS
    var_date VARCHAR2(30);
    BEGIN
    var_date:=TO_CHAR(att_date,'DD-MM-YYYY');
    DBMS_SESSION.SET_CONTEXT('ATTENDANCE_CTX','ATT_DATE',var_date);
    END;
    create context ATTENDANCE_CTX using SET_ATT_DATE ;
    Whenever THIS procedure name "HR.SET_ATT_DATE" is used by schema scott in program it is given
    error insuficient priviledge during compilation but whenever i am given "select any dictionary to
    scott " then it's getting compile
    where as i have given grant priviledge
    grant execute on HR.SET_ATT_DATE to scott.
    Plz help me in this regards

    Thanks very much Mylenium for your help - I've scoured the file looking for everything you mention, and there anything fancy at all. I'm using no time-stretching or remapping, simply putting a text layer on top of a video, and moving its in and out points. No blurs or odd keyframes as far as I can tell. Video and comp are both 29.97 framerate (comp created using "New comp from selection").
    Glen

  • Moving objects from one schema to another

    Hi,
    again as part of my learning exercise, I was trying to move objects from a schema in 10GR2 to 11GR2 database.
    I am able to use exp and imp commands to achieve this objective -
    On source database -
    $> exp userid=scott/tiger owner=(schemaname) file=data.dmp statistics=none
    Copied the dump file on target server and then
    $> imp userid=scott/tiger file=data.dmp fromuser=uname touser=scott
    And this works fine.
    What I am not able to understand is how I can achieve this by using datapump instead?
    Your help is much appreciated.
    Thanks.

    Thanks.
    Worked perfectly.
    This is what I did (in case someone is in my position)-
    On source database-
    expdp scott/tiger schemas=<source schema>directory=DATA_PUMP_DIR dumpfile=data.dmp job_name=some_job
    Copied dump file to target server.
    On target database-
    $> impdp scott/tiger directory=DATA_PUMP_DIR dumpfile=data.dmp remap_schema=<source schema>:<target schema> job_name=imp_kob

  • How to give grants on runtime objects

    Hi,
    I have created read only apps user,but i want to have a trigger/procedure which should give grant at runtime when the object i.e synnonym/view created in apps user.
    I have tried the anil passi read only apps user-trigger but it is throwing errors in alert log.
    the trigger need to be corrected can any one help on this as it became an urgent issue.
    with regards,
    Surya

    Hi,
    Can anyone help on this,
    (A)
    The command which am using is
    Create a Trigger on the apps schema to issue select only grants for all new views and synonyms. Please note that I am excluding grants for sequences. SELECT grants for views and synonyms will be provided to apps_query as and when such objects are created in APPS. Please note that, all the APPS objects (views and synonyms) that existed in APPS schema prior to the implementation of this design, would have been granted read-only access to apps_query in Step 2.
    conn apps/&1 ;
    PROMPT CREATE OR REPLACE TRIGGER xx_grant_apps_query
    CREATE OR REPLACE TRIGGER xx_grant_apps_query
    AFTER CREATE ON APPS.SCHEMA
    DECLARE
    l_str VARCHAR2(255);
    l_job NUMBER;
    BEGIN
    IF (ora_dict_obj_type IN ('SYNONYM', 'VIEW'))
    AND (ora_dict_obj_name NOT LIKE '%_S')
    THEN
    l_str := 'execute immediate "grant select on ' || ora_dict_obj_name ||
    ' to apps_query";';
    dbms_job.submit(l_job, REPLACE(l_str, '"', ''''));
    END IF;
    END;
    (b)
    The error in alert log as follows---------
    Errors in file /db002/oracle/dnddb/9.2.0/admin/dnd_cdx16/bdump/dnd_j001_15164.trc:
    ORA-12012: error on auto execute of job 2290
    ORA-01031: insufficient privileges
    ORA-06512: at line 1
    as this job trying to "grant select on read only apps user".
    2)For testing i have created a synonym in apps where i have encountered this type of errors in the alertlog.
    The way i have checked the trigger,
    a) I have created a custom schema (user A) after that i have created a table in the custom schema.
    b)Based on the object of user A i have created a synonym on that table in apps(user B).
    After that i have tried to retrive the same synonym in read only apps user(user C).
    as am able to see the data in user C.But there is errors as above in alert log.
    Plz help in this situation.
    with regards,
    Surya
    Edited by: SuryaSrinivas on Jul 6, 2009 4:51 AM

Maybe you are looking for