How to do Privileges in oracle??? help me

hi
i have build a system using oralce form builder and there are some users who use the system....
i just wana know how to give Privileges to users in oracle..?
give me the main idea about applying that?
Thanks in Advance.
qewani

Sorry for not being more clear, abc_admin, abc_user, and abc_read_only are not table names they are user roles and the abc part is an example name of an application and is also the name of the schema owning the application tables as a whole.
For example in the database:
grant select, insert, update, delete on abc.table1 to abc_admin;
grant select, update on abc.table1 to abc_user;
grant select on abc.table1 to abc_read_only;
grant abc_admin to user1;
grant abc_user to user2;
grant abc_read_only to user3;
In the When-New-Form-Instance trigger of the main form into application:
Declare
v_count number;
Begin
Select count(*)
into v_count
from user_role_privs
where granted_role in ('ABC_ADMIN', 'ABC_USER', 'ABC_READ_ONLY');
if v_count < 1 then
if handle_alert('abc_ok_alert', 'Unauthorized user - exiting application.') > 0 then
exit_form(no_validate);
end if;
else
enable menu items according to privileges
end if;
end;

Similar Messages

  • How to use Oracle Help in developer 10g

    Hi!
    First i'm sorry for my bad english
    I'm a student in computer science and i have a projet to make with Developer 10g. My teacher want us to make a Help file for the user but he don't know how to do it with developer 10g.
    So i've made some research on internet and i found how to create my help file. I have downloaded Oracle Help and RoboHelp.
    Using RoboHelp i've create my help file and then i generate it in Oracle Help format. I generate it in a compressed and a uncompressed version(because didn't know which one i need). So now i have two folder one who containt a .jar file and another who containt a lot of files.
    What i want to know is how to execute my Oracle Help in a WHEN-BUTTON-PRESSED trigger with theses files.
    Thank and sorry for my bad english

    Hi Pierre,
    Showing an appropriate help topic when a "Help" button is pressed in an application or when the user presses the F1 key is what we call "context-sensitive help".
    In your Oracle Help help system there is an XML map file that contains topic-ids that map to help topics. You need to associate these topic-ids with your user interface (help button, etc).
    Is your project an extension to JDeveloper 10g, or are you just creating a Java application using JDeveloper? If you are just using JDeveloper to create your own Java application, then you can use the CSHManager class distributed with Oracle Help for Java to enable context-sensitive help (see the Oracle Help Guide documentation). If you are creating an extension to JDeveloper, then let me know and I'll give you information on how to set up help in that context.

  • Help! How do I know the Oracle daemon started on Linux.

    Dear Madem/Sir!
    I had installed the Oracle 9.2 on the Red Hat Linux 8.0 platform.
    But how do I know the Oracle Daemon started when the Linux startup?
    Please help me to figure out it!
    thanks and regards,
    Janus
    [email protected]

    A couple of ways, but easiest is to run the command "ps -ef" at a shell prompt. It will tell you which processes are running on your server. If oracle is running, you should see several oracle processes.
    You may also try running "sqlplus" and see if it will let you connect to the database. Generally, if you try to run SQL*Plus and the database is not started, you will get an error message to that effect.

  • Ora-01031 insufficient privileges in oracle

    Hi All,
    I have a case where in i have upgraded my oracle 10.2.0.2 to 10.2.0.4 in solaris env.
    After upgrade i am able to start and use the system but when i schedule a job in DB13 for ex update statis. it is giving an error
    ora-01031 insufficient privileges in oracle.
    Please let me know how to go about it, as i am doing an EHP4 upgrade on same system.
    Thanks & Regards,
    Balaji.S

    Balaji,
    Check SAP Note 1028220 - ORA-01031: Insufficient privileges despite SAPCONN role
    SAP note 134592 sapdba_role.sql
    Also see below threads. It may help you.
    ORA-01031: insufficient privileges
    ORA-01031: insufficient privileges
    Brconnect  Error
    Thanks,
    Sushil

  • How to "revoke" privilege with dbms_xdb.changeprivileges

    Dear All!
    How to "revoke" privilege granted with the following code
    DECLARE
    r pls_integer;
    priv xmltype;
    priv_data varchar2(2000);
    BEGIN
    priv_data :=
    '<ace
    xmlns="http://xmlns.oracle.com/xdb/acl.xsd"
    xmlns:dav="DAV:"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.oracle.com/xdb/acl.xsd
    http://xmlns.oracle.com/xdb/acl.xsd
    DAV:http://xmlns.oracle.com/xdb/dav.xsd">
    <principal>DVLP</principal> <grant>true</grant>
    <privilege><all/></privilege>
    </ace>';
    priv := xmltype.createxml(priv_data);
    r := dbms_xdb.changeprivileges('/xdbconfig.xml', priv);
    END;
    This code is generated by Enterprise Manager
    I guessed that it is necessary to replace grant with deny
    But there is not schema defenition for deny is parent 'ace'
    Thank you in advance for help
    Regards
    Artem

    Dear Mark!
    Thank you for you reply
    I'll try and let you know about results
    Note that This code was generated by Enterprise Manager
    and it seems that it generates the same code when you try
    to grant and revoke privilege!
    Regards
    Artem

  • How to create a new Oracle OSB project automaticaly with script without IDE

    Hello,
    I want to create automatically an "Oracle service bus project" and an "Oracle service bus configuration project" with scripts (ANT or Maven or ...) without using IDE, without using workshop or Eclipse. I want to create automatically (ANT or Maven) just a skeleton of an OSB project witch i can use after in workshop.
    I want to create 1 "Oracle service bus configuration project" with many "Oracle service bus project" automatically (ANT or Maven or scripts) witch i can use after in workshop. How to create a new Oracle OSB project automaticaly with script without IDE ? How can i do this ?
    I'm using Oracle service bus 10.3.1
    Thank you for your help.

    Thank you for your response,
    I do not want to just create the services (proxy services and business services) but I want to create a template for 40 OSB project with the same scripts ANT/Maven.
    Template="Oracle service bus configuration project" + "Oracle service bus project" + services of 40 OSB projects
    The goal is that I have more than 40 projects to create and just the name of the projects that changes (when I say the name of the project ie the name of the OSB project, the name of proxy services and the name of business services ).
    So I want to give my script (ANT/Maven) the name of 40 OSB project and the script must generate the skeleton of the 40 projects at once time and after generation of skeleton of the 40 project, I will import them in the workshop to add manually mapping and routing and other things that differs from one project to another.
    So i want to generate automatically a skeletons of 40 OSB projects using a script (ANT / Maven) and I give to the script juste the names of the 40 projects.
    I want to create a "Oracle service bus configuration project" and "Oracle service bus project" automatically of 40 OSB projects (ANT or Maven or scripts) witch i can use after in workshop.
    I want to create one 'template' of all 40 projects in the same time, with the same directory structure (Transforlation, Business services, proxy services, WSDL .....) and all 40 project have the same transport, just the names of projects and services witch changes and i can give to the script all names of projects and services and i can give also all WSDL.
    Regards,
    Tarik

  • How to see dbms_output on oracle sql developer

    ned immediate help
    how to see dbms_output on oracle sql developer

    Hi,
    In sql developer u have a tab named DBMS Output in your result sheet. In that the first Icon is Enable DBMS Output. turn it on (After on it will give the message set serveroutput on in the sheet) and then run your code.
    In the code u have to use the dbms_output.put_line package.after running the code u have to see the result in DBMS Output tab.
    Regards,
    NTR

  • How to extract data from oracle database directly in to bi7.0 (net weaver)

    how to extract data from oracle database directly in to bi7.0 (net weaver)? is it something do with EDI? can anybody explain me in detail?
    Thanks
    York

    You can use UDConnect to get from Oracle database in to BW
    <b>Data Transfer with UD Connect -</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/78/ef1441a509064abee6ffd6f38278fd/content.htm
    <b>Prerequisites</b>
    You have installed the SAP WAS J2EE Engine with BI Java components.  You can find more information on this in the SAP BW installation guide on the SAP Service Marketplace at service.sap.com/instguides.
    Hope it Helps
    Chetan
    @CP..

  • How to implement this in Oracle Apps 11i

    Hello Friends
    I am working as a consultant for a manufacturing company.
    They have a format for charging Excise and Sales tax on their products (example below). I dont know how to implement this using oracle apps. Please help me ASAP.
    eg.
    Product A:
    MRP = Rs. 100
    Assessable Value (i.e. the value at which I have contract with the Government to pay Excise Duty) = 60% of MRP = Rs. 60 in this case.
    Excise Duty = 16% of AV =0.16*60 = Rs. 9.6
    Now, let’s suppose I am selling my product to a dealer at 30% discount.
    Therefore, Sale Price = 70% of MRP = Rs. 70
    Sales Tax = 4% of Sale Price = 0.04*70 = 2.8
    Therefore, total revenue from the deal = 70-9.6-2.8 = Rs. 57.6

    you can use Advance Pricing or creating discount or attiribute while calculating.
    this is not much complex, possible even with Advance Pricing too. Thanks
    Shiv

  • How to create snapshot on Oracle VM 3.1.1

    Dear All,
    Any one know about how to create snapshot in Oracle VM 3.1.1? Where we can find it in Oracle VM 3.1.1?
    Please kindly shared experience about this.
    Thanks and regards,
    Vandy

    Thank you very much for your help.
    Now I am using Sun Storage 6180 Array direct attach (Fiber Chanel) with 2 Sun Fire X4100M2 Servers as Cluster, I don't know whether this storage can create snapshot for this or not? How about Oracle VM Manager can help for this?
    It seem more difficult than VMware vSphere, if Oracle can create a option for this is very good.
    Thanks and regards,
    Vandy

  • How to Disable SSLv2 in Oracle IAS 10.1.3

    How to disable SSLV2 in Oracle IAS 10.1.3.. I added below in ssl.conf file.. But it is not working...
    SSLProtocol -ALL SSLv3 TLSv1
    SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
    Thanks
    Lalitha

    How can you have WebCache if you are using 10.1.3 version?
    The cause of this problem has been identified and verified in an unpublished Bug 4761833 : "IE FAILS TO TO CONNECT TO WEBCACHE VIA SSL IF SSLV2.0 IS NOT SELECTED".
    By default Webcache sets its SSL_ENABLED parameter in webcache.xml to: SSLV3_V2H
    This supports only SSL V2.0 and SSLV3.0 and not TLSV1.0
    When IE makes a connection with: SSL V2.0, SSLV3.0, TLSV1.0 all checked, an Ethereal sniff shows:
    SSLV2 Client Hello
    SSLV3 Server Hello
    When IE makes a connection with: SSLV3.0, TLSV1.0 checked, SSL v2.0 unchecked, an Ethereal sniff shows:
    TLSV1 Client Hello
    SSLV3 Alert (Level: Fatal, Description: Unexpected Message)
    When Firefox makes a connection with SSLV3.0, TLSV1.0 checked, SSL v2.0 unchecked an Ethereal
    sniff shows:
    SSLV2 Client Hello
    SSLV3 Server Hello
    So even though SSLV2.0 is unchecked it still makes the initial Client Hello via SSLV2.0 hence why Mozilla works
    The reason why IE fails when SSLV2.0 is unchecked is because IE always uses what it considers to be the best Protocol and picks TLSV1.0, and as the default SSL_ENABLED parameter in Webcache does not support TLS V1.0, then it fails.
    Solution
    To implement the solution, execute the following steps:
    1. Edit the $ORACLE_HOME/webcache/webcache.xml
    For the SSL Listen entry e.g:
    <LISTEN IPADDR="ANY" PORT="443" SSLENABLED="SSLV3_V2H" PORTTYPE="NORM">
    Change:
    "SSLV3_V2H"
    to
    "SSL"
    2. Save the file and restart webcache, and then test you can access Webcache via SSL with SSLV2.0 unchecked
    Hope this helps
    Regards.

  • Call Oracle Help for Java in Oracle forms running in the web

    Hi, everyone,
    We are developing a web-enabled Oracle database application
    system. Oracle suggested us to use Oracle Help for Java(OHJ) to
    create an online help system for the web environment. We
    successfully created a OHJ program which can be independently.
    But we still have no idea how to call this OHJ program from the
    forms running in the web environment.
    Could anyone help us out?
    Thanks.
    null

    I would like to know if anyone has been able to do this too. Could someone respond if they have successfully gotten this to work?
    Thanks!!

  • How to generate Pdf in Oracle ADF?

    Hi,
    I want to generate Pdf in Oracle ADF? I have no idea how to do it?
    Please Help.....

    Hi,
    I have simple web page & i want a part of my page to be converted into pdf...
    Is it necessary to use FOP or Itext??
    is there any other alternative to generate Pdf??

  • How to register Package in oracle apps?

    Hi All
    How to register package in oracle apps?
    If package contains 3 procedure, i want to call 2nd procedure of the package when i submit the concurrent program in srs window.. Can any one give the registration for the same

    To add to Gyan's comment:
    Go to system adminstration responsibility
    Create a conc. executable. Select execution method as pl/sql stored program and then enter your second procedure name as follows
    package_name.procedure_name.
    Then create conc. program that uses the above executable.
    Add the program to a request group.
    Add the request group to a responsibility.
    Now you will be able to run your procedure.
    Hope this helps,
    Sandeep Gandhi

  • How to mask data in oracle 11g database release 1

    how to mask data in oracle 11g database release 1
    my environment is
    Database: 11g release 1
    os: AIX 6 (64 bit)
    GC:10g release 1

    DBA-009 wrote:
    thx but how i can mask data with above give environment?What does "mask data" mean to you and what is the environment you are referring to?
    Telling us that you are using 11.1 helps. But it is far from a complete description of the environment. What edition of the database are you using? What options are installed? What Enterprise Manager packs are licensed? Is any of this changable? Could you license another option for the database or another pack for Enterprise Manager if that was necessary?
    What does it mean to you to "mask data"? Do you want to store the data on disk and then mask the data in the presentation layer when certain people query it (i.e. store the patient's social security number in the database but only present ***-**- and the last 4 digits to certain sets of employees)? Do you want to hide entire fields from certain people? Do you want to change the data stored in the database when you are refreshing a lower environment with production data? If so, do you need and/or want this process to be either determinisitic or reversable or both?
    Justin

Maybe you are looking for

  • "Expected a number object" error/warning.

    Hey Guys, I am using LiveCycle 8 and Adobe Pro 8. I have an 8 page form that I started in Pro 8, and now I have tweaked in LiveCycle. Everything is "almost perfect" for what I want. Only problem is now I get an error that says, Expected a number obje

  • ATV2 not streaming again - Think my iTunes corrupted in transfer

    I thought I had this problem licked by changing my iTunes account name - only lasted for a short while then reverted to the problem below. The streaming works on my MacBook Pro and my other iMax, but not this new one. I suspect my iTunes was corrupte

  • Launchd Item and Mobile Users

    Hi, I have two scripts designed to run at login, both are launchd items in the /Library/Launch Agents folder that run scripts. When a standard user logs in, they work fine, the problem I have is when a Mobile User logs in the for the first time, the

  • Adobe CS4: Error 1618. Another installation is already in progress.

    I can not reinstall the Flash or Fireworks components of my Adobe CS4.  I get this error message:  Error 1618. Another installation is already in progress. I am attempting to reinstall Adobe Creative Suite 4 because Acrobat was not interfacing with m

  • Need help for CCVP CERTIFICATION

    Hi. I am a CCNP certified person. I would like to lear CCVP. Is it possible to learn CCVP without any voice backround. Is it possible to get voice knowledge by reading books? if so pls recommend some books which will be helpful for me to learn voice