Cancelling the privaleges of the user accessing the schema objects ???

Hi,
I have given privilages to the user to access my schema objects(tables). Can i cancell the privilages of the user of accessing my schema objects(table) which i granted them ???
Thank you !!!

Hi,
If you gave a privilege or role to a user using GRANT, you can take it away using REVOKE.
For example:
REVOKE  SELECT ON my_table FROM user_name;un-does the privilege given by
GRANT  SELECT ON my_table TO user_name;

Similar Messages

  • Access other schema object from connection

    Hi;
    from the dbconnection, how can I access other schema object?
    Thanks

    Hi,
    I don't know if I understand correctly but if you mean the scenario you connect to the database as SCOTT and you want to map table EMPLOYEES from HR schema, you can do it within wizard and in read only view object you
    use schema name as prefix like select * from HR.EMPLOYEES. If you mean something else please describe it more.
    regards,
    Branislav

  • How to generate the DDL script of all the schema objects.

    Hi All,
    I just wanted to make centralized repository for Oracle database and to create a base version, I need to create the DDL scripts of all the database objects so that i can check in the same ddl scripts (sql) files in to my central repository.
    I need do this schedule job which will generate the ddl scripts once in a month(This should be automated process)
    Please help me out about this.
    Oracle version - 9i
    Thanks in advance.
    Thanks,
    Santosh
    Edited by: Santosh_Oracle on Feb 23, 2011 10:26 PM

    It is definitely possible to revise the script.
    Look at it, you already have 80 percent of it for free, and you didn't even need to Google.
    Just ask a FAQ in a forum loaded with FAQs!
    And Toad can save everything to one script per object.
    Sybrand Bakker
    Senior Oracle DBA

  • How to find out all users accessing a schema

    Hi,
    How can I find out all the users which has accessed a schema for the last 30 days? Auditing is not enabled in the database.
    DB:10.2.0.4
    OS:AIX

    user13364377 wrote:
    Thanks Antonio.
    Is it possible to find all the users which have access to the schema?Do you mean OS users access .. ?
    Because from v$session we can find users sessions information, if thats what you mean.

  • Users accessing different schemas

    Hi,
    I may be missing some fundamental concept here, but here is my issue:
    I have a Java application, that accesses an Oracle database. We provide the Oracle scripts to the end user to create their database and they can change the user/schema name.
    So in my code, I would access the database with commands like:
    select * from employee
    and not
    select * from mySchema.employee
    The JDBC connection that will just use the default schema for that user.
    Now my end user wants to create a different Oracle user to use for DB access in the application with more restricted privileges, but somehow I need to change what the default schema for this new user would be. How can I do this? It would be great if their were a JDBC property that I could set which would set the schema to use - but I didn't think there is one.
    I've come across suggestions of
    "ALTER SESSION SET CURRENT SCHEMA = schema;"
    but would I have to run that statement in program on every JDBC connection I get? I would then have to allow the user some place to configure the schema name they were using.
    TIA
    Ian

    Thanks for that - sounds like what I want.
    So I've created a trigger like this
    create or replace trigger INIT_APPLICATION
    after logon on MYAPP_NO_PRIV.SCHEMA
    begin
    execute immediate 'ALTER SESSION SET CURRENT SCHEMA = MYAPP';
    end;
    which I hope will change the schema as the user logs on.
    Problem is when I try to log on now, I get the error
    "ORA-00604: error occurred at recursive SQL level"
    Any ideas?

  • Access to schema objects

    Guys,
    I am on 10g R2 and have this requirement.
    We refresh our QA environment from PROD every day ( exp/imp and schema refresh ). App team now have a requirement where by they want to create few objects including tables every day and load those tables with static data. This in a way doesn't need to be refreshed every day.. So, could place this in another schema. But we do not want to grant access on that schema to the user.
    Alternatively, we can get them to send the us a script, that can be run as POST refresh script on completion of the refresh. But this would mean that any changes to the script will involve us copying the file, which could be a hassle.
    I am wondering, if there is better way to handle this.. BTW, the app team do not have access to the database host and we don't plan to grant it either..
    What is the best alternative ?

    You can use DBMS_METADATA and EXECUTE IMMEDIATE
    SQL> create user u1 identified by u1;
    User created.
    SQL> create or replace type u1.type1 as object (a number, b date);
      2  /
    Type created.
    SQL> declare
      2  stat varchar2(32000):= dbms_metadata.get_ddl('TYPE','TYPE1','U1');
      3  begin
      4    execute immediate replace(stat,'"U1".','');
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL> desc type1
    Name                                                        Null?    Type
    A                                                                    NUMBER
    B                                                                    DATEYou can loop on all schema objects selected from dba_objecs to manage all objects with a single statement:
    SQL> create function u1.f1 return number is
      2  begin
      3    return 0;
      4  end;
      5  /
    Function created.
    SQL> declare
      2  stat varchar2(32000);
      3  begin
      4    for r in (select object_type, object_name from dba_objects where owner='U1') loop
      5      stat := dbms_metadata.get_ddl(r.object_type,r.object_name,'U1');
      6      dbms_output.put_line(stat);
      7      execute immediate replace(stat,'"U1".','');
      8    end loop;
      9  end;
    10  /
      CREATE OR REPLACE TYPE "U1"."TYPE1" as object (a number, b date);
      CREATE OR REPLACE FUNCTION "U1"."F1" return number is
    begin
      return 0;
    end;
    PL/SQL procedure successfully completed.
    SQL> desc f1
    FUNCTION f1 RETURNS NUMBER
    SQL> desc type1
    Name                                                        Null?    Type
    A                                                                    NUMBER
    B                                                                    DATEMax
    [My Italian Oracle blog| http://oracleitalia.wordpress.com/2010/02/07/aggiornare-una-tabella-con-listruzione-merge/]

  • Access another schema object

    In my application,there is a database connection to a schema and and I have created entities and views from the available tables in that schema.According to my requirement, I need to access a table from a different schema.
    How can I do that?
    Please help
    Regards
    SK

    Specify the schema prefix in the SELECT query.
    SELECT * from OE.CATALOG

  • Error creating EO- The specified schema object is not an existng object

    hi,
    I am getting an error "The specified schema object is not an existing object .Please un check Exisiting Object or select an exisiting object" while creating an EO.
    Does any one knows how to get rid of it.
    Thanks,
    Murlai

    Hello
    Looks like this is an old thread, but since I had the same problem and figured it out, I though I'll share it here:
    What I figured is that in the Select Schema Object wizard, if I prefix the schema object with the schema name, then the attributes are fetched from the database. like this:
    dbo.employeeinstead of this:
    employeewhich is kind of strange because the schema is already mentioned in the database schema section and jdeveloper fills the object value after we choose it.
    Good luck

  • Grant privilage to access diff database objects

    How can we grant access to user1 from db1 to access user2 schema objects in db2 database ? Well, the user1 needs to perfrom insert, update and delete on db2's user2 schema.
    hare krishna
    Alok

    You may create a new schema on DB1 and create all synonyms with appropriate privileges for all the tables which need access.
    Create a database link from DB2 to access this new schema.
    This way you will be protecting other objects from getting modified from DB2.

  • Grant schema to be able to access another schema"

    how can i grant another schema to be able to access another schema
    Edited by: adf009 on 2013/02/15 5:07 PM

    adf009 wrote:
    i want to access one schema object through another schemaGRANT SELECT ON SCHEMA_A.EMP TO SCHEMA_B.
    It's in the SQL Reference Manual.

  • Can multiple XP users access the same iTunes library?

    Because I'm having a REALLY hard time getting that to work at all. I've moved my entire iTunes folder into 'Shared Documents' so that all users should be able to access it and changed the option in iTunes Preferences to the correct 'all users' path, but iTunes still tries to find the info in 'my' (sal's) documents instead of 'all.'
    Anyone figure this out, or does it somehow break the EULA and isn't supported? The wife and I just want to use the same library since we're on one computer. Seems silly to not allow a user with admin rights to allow other users access.
    Thanks,
    Sal
      Windows XP  

    Sal,
    As this article in the Apple Knowledge Base explains the trick is to move the iTunes Music folder, not the entire iTunes folder, to "a publicly accessible location" and I believe they mean to suggest C:\Documents and Settings\All Users\Documents\My Music as a good place.
    It is important that the iTunes Library files remain in Sal's Documents and Sal's Wife's Documents.

  • Way to allow the user access to the saved lists of this Z report

    We have a Z report that we want to run at midnight each Sunday and then view the output/layout first thing Monday morning. We can schedule the report to run but it appears that the only way we can save the output as a 'file' for later viewing is by using the "Save with ID" option, which puts the output into a SAP 'saved list'.
    The problem with this is that it doesn't appear to be possible to access that list from the Z-report - it would appear that you have to go into SQ01 and use the 'saved list' button. This means giving the Z- report user access to SQ01 as well as Z-report, which, for security (SOD) reasons we don't want to do.
    We can run the report in foreground with the output option "File store" and save the output as a file to a specified location,. But this option doesn't appear to be available when the report is scheduled as a background job. If this is done, the background job runs but there's no output anywhere, as far as we can tell.
    So what want is to run the report in background but with the output option 'File store' or equivalent (i.e. an output stored somewhere that the report user can view). Is this not possible, or have we missed something in setting up the report run?
    Or is there a way to allow the user access to the saved lists of this Z report without giving them T-code SQ01?
    Thanks

    Hi !
    I just wonder if the answer from Varishtb below did solve your propblem.
    I have exactly the same problem as you. I also want to be able to look at the saved list without using the sq01.
    If you solved it I will be grateful to get the solution.
    regards Lars
    answer:
    You can call the infoset query directly from a transaction code. There's
    no need to copy it as a 'Z-report' (or as a custom report). In fact,
    everytime you're copying an infoset query to a report, you're calling
    for problems the next time you face an upgrade. (That is because SAP
    changes the internal logic used to handle the infosets queries from
    version to version)
    We're using some infoset queries and they work fine this way.

  • Can two users access the same bootcamp (win os) instance?

    We are two users who are using our imac and we both have own user names in mac os. I created a bootcamp partition with windows xp on it. Can both users access the same partition and create their own user spaces within xp?
    Will that work also if we use Parallel or virtual box? (access the same user data as in boot camp?)
    I would like to have the option for each user to access their windows data either through bootcamp or through the virtual tool.
    Message was edited by: gss2
    Message was edited by: gss2

    gss2 wrote:
    What do you mean Virtual box it will not run on its own partition? I have a virtual box running on my desktop and it runs just fine ...own partition?? I don't understand.
    Running on its own partition means that the installed OS has its own formatted portion (partition) of the hard drive. A virtual machine does not have its own partition. It creates a virtual partition (a file on the computer) that simulates a file system (partition). So Virtual Box, or any other virtualization software, does not run Windows, or any other OS in its own partition.

  • What happens when multiple users access the same servlet?

    Do the users share all the same resources? Or is a new process generated for each user? I have a servlet that builds a string to return to the user and I only have myself to test, so I can't really see what happens when many users access the servlet. Is there a possibility that the string will get screwed up, like when dealing with multiple threads, or do all the users get their own resources and I don't have to worry about that?

    huh? if you can point a test servlet at it, you can point a browser at it (even if the servlet does not serve html it will run)
    try pasting the servlet URL into a web browser
    refreshing multiple browsers repeatedly could provide a manual test

  • Missing a User access in the log-on picture

    Lacks a user access to log on picture after start-up in Yosemite. In user administration there has been created two user entries - an administrator and a normal access. The normal access is not visible from the log on picture, and it is only possible to access through the visible user (Adm.) and then switch the user by switching in the upper right corner!!!
    Wish, possible for all users to log on from the boot up image.     (Adm - Normal - Guest access)

    same issue:
    retina MacBookPro mid2012. Clean install of OS X Yosemite 10.10
    I'm randomly missing an account at login screen after reboot.
    Sometimes I can fix it with booting into my initial account 'Kevin' (userid 501) and then changing to different login 'Christina' (userid 502).
    But if I log out from my account, the second account is missing. Same if I do a reboot.. This have me in stitches as I ofcause has the need for privacy from each account.
    Both accounts are set up as admins, guest is deactivated.
    rMBP 16gb sep2012.
    userid 501:
    home directory: /Users/Kevin
    userid 502:
    home directory: /Users/Christina
    apart from that... I have loads of problems with Bluetooth, and hand-off only working 1 way (5s with 8.1) where only iOS -> OS X works, not vice-versa.

Maybe you are looking for

  • How to pass Parameter to Oracle Report from portal

    Dear All I create a report use Oracle Report, and the file name is "Account.rdf" This report have a start date parameter and a end date parameter. I put this report to the report server, and then add a new entry to the cgicmd.dat file, so i enter the

  • What is the page /_layouts/inplview.aspx?

    What is the page /_layouts/inplview.aspx? I am reviewing our web analytics on 2010 and notice that /_layouts/inplview.aspx tends to be at or new the top of the 'Top pages' rankings. It seems to be related to some views in libraries. I am looking for

  • Change name of track

    how can I change a name of a track in itunes?

  • Vector automatically converted to Bitmap

    Hi, I need a Card flip animation.I have a vector "Spade A" in a moviclip named mc. For the flip animation i want to apply "rotationY". When i apply mc.rotationY=45, It automatically converth the vector into Bitmap. i tryed mc.cacheAsBitmap=false;But

  • How insert a Group into RootUIElement dynamically?

    Hi, how is it possible to add a dynamically created UI Element (Group) to ROOTUIELEMENTCONTAINER? I try it with the following piece of code but i get always the error message: <b> Access via 'NULL' object reference not possible. </b>   IF FIRST_TIME