Grant permission on SCOTT/tiger schema

grant select, insert, update, delete on EM to BOMBAC
I want to add permission that user BOMBAC can see EM table from SCOTT/tiger scheme and use it. But he can not see and use it. Any idea why?
regards

yes i try with public but it seems that i do not have enought privilegies
*Cause:    An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action:   Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.

Similar Messages

  • Basic SQL queries in Scott/tiger schema...

    One of my team member who is a fresher wants to learn SQL.
    Access to Scott/tiger is available.
    Can some links or queries be posted which can be tried and will be useful to learn SQL.

    Hi,
    Read the following links:
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/toc.htm
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/toc.htm
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14251/toc.htm
    Regards
    Avinash

  • Grant permission to another's schema's package

    Dear buddies,
    I want to give access to another user to access a package in my schema.
    How should I be doing it?
    I saw in this page but how to refer to the different schema the package is residing?
    http://www.techonthenet.com/oracle/grant_revoke.php
    Please guide me.
    Thank You.
    Nith

    user645399 wrote:
    Dear buddies,
    I want to give access to another user to access a package in my schema.
    How should I be doing it?
    I saw in this page but how to refer to the different schema the package is residing?
    http://www.techonthenet.com/oracle/grant_revoke.php
    Please guide me.
    Thank You.
    NithDear Nith
    Here's the command:
    grant execute on your_schema.your_package to the_second_user;Kamran Agayev A.
    Oracle ACE
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • An interesting problem in emp table of scott/tiger schema, kindly help

    I want to write SQL which can give me the result in columns
    ENAME, EMPNO, DEPTNO, DEPT_WISE_PCT_OF_EMP_SAL,
    CMP_WISE_PCT_OF_EMP_SAL
    i write a sql by using multiple select statements like
    select ename, ename, emp.deptno, sal, (sal/a.cmp_sal )*100 cmp_sal_pct, (sal/dept_sal.dept_sal)*100 dept_sal_pct
    from emp, (select sum(sal) cmp_sal from emp) a,
    (select deptno, sum(sal) dept_sal from emp group by deptno) dept_sal
    where dept_sal.deptno = emp.deptno
    ENAME ENAME DEPTNO SAL CMP_SAL_PCT DEPT_SAL_PCT
    CLARK CLARK 10 2450 8.4409991386736 28
    KING KING 10 5000 17.226528854436 57.142857142857
    MILLER MILLER 10 1300 4.4788975021533 14.857142857143
    SMITH SMITH 20 800 2.7562446167097 7.3563218390805
    ADAMS ADAMS 20 1100 3.7898363479759 10.114942528736
    FORD FORD 20 3000 10.335917312661 27.586206896552
    SCOTT SCOTT 20 3000 10.335917312661 27.586206896552
    JONES JONES 20 2975 10.249784668389 27.35632183908
    ALLEN ALLEN 30 1600 5.5124892334195 17.021276595745
    BLAKE BLAKE 30 2850 9.8191214470284 30.31914893617
    MARTIN MARTIN 30 1250 4.306632213609 13.297872340426
    JAMES JAMES 30 950 3.2730404823428 10.106382978723
    TURNER TURNER 30 1500 5.1679586563307 15.957446808511
    WARD WARD 30 1250 4.306632213609 13.297872340426
    but i want to solve this problem using single sql
    i write the required sql but i unable to get the salary on company basis(total sal of all emp)
    select emp.ename, emp.deptno, emp.empno, emp.sal,
    (emp.sal/sum(dept_emp.sal))*100 dept_sal_pct
    from emp, emp dept_emp
    where emp.deptno = dept_emp.deptno
    group by emp.ename,emp.deptno, emp.empno, emp.sal
    ENAME DEPTNO EMPNO SAL DEPT_SAL_PCT
    CLARK 10 7782 2450 28
    KING 10 7839 5000 57.142857142857
    MILLER 10 7934 1300 14.857142857143
    ADAMS 20 7876 1100 10.114942528736
    FORD 20 7902 3000 27.586206896552
    JONES 20 7566 2975 27.35632183908
    SCOTT 20 7788 3000 27.586206896552
    SMITH 20 7369 800 7.3563218390805
    ALLEN 30 7499 1600 17.021276595745
    BLAKE 30 7698 2850 30.31914893617
    JAMES 30 7900 950 10.106382978723
    MARTIN 30 7654 1250 13.297872340426
    TURNER 30 7844 1500 15.957446808511
    WARD 30 7521 1250 13.297872340426
    thanks in advance

    Try this (untested)
    select ename, ename, emp.deptno, sal,
      RATIO_TO_REPORT(sal) OVER ()*100 cmp_sal_pct,
      RATIO_TO_REPORT(sal) OVER (PARTITION BY dept)*100 dept_sal_pct
    from empRATIO_TO_REPORT is the key. If this doesn't work then check the docs.

  • Simple scott/tiger query in horizontal format

    Hi Guys, this is my first thread to this forum, as I m a java developer and does not come across sql frequently.
    I have a simple requirement.
    I ll need this example to let u know, what is all I need.
    You must be very well aware of the famous scott/tiger schema in Oracle database where the emp table has a many-one relationship with dept table.
    Is there any way, where I can get the data in the below format (assuming one dept will have maximum 4 employees and minimum 0 employees)
    DeptNo Employee1 Employee2 Employee3 Employee4
    Accounting CLARK KING MILLER Null
    Research JONES SCOTT ADAMS FORD
    Sales ALLEN WARD NULL NULL
    thanks in advance,
    Abzee

    Hi, Abzee,
    Welcome to the forum!
    That's called a Pivot and here's one way to do it:
    WITH     got_rnum     AS
         SELECT     deptno
         ,     ename
         ,     ROW_NUMBER () OVER ( PARTITION BY  deptno
                             ORDER BY        ename
                           )     AS rnum
         FROM     scott.emp
    SELECT       d.dname
    ,       MIN (CASE WHEN r.rnum = 1 THEN r.ename END)     AS employee1
    ,       MIN (CASE WHEN r.rnum = 2 THEN r.ename END)     AS employee2
    ,       MIN (CASE WHEN r.rnum = 3 THEN r.ename END)     AS employee3
    ,       MIN (CASE WHEN r.rnum = 4 THEN r.ename END)     AS employee4
    FROM       scott.dept     d
    JOIN       got_rnum     r     ON     r.deptno     = d.deptno
    GROUP BY  d.dname
    ;To do a pivot, you must have columns or expressions that tell what row and column of the output correspond to each row of the input.
    In this example, d.dname uniquely identifies the row of the output, but there's nothing that says that 'JONES' belongs in the employee1 column rather than the employee2 column. I used ROW_NUMBER to assign each employee a number, starting with 1 in each deptartment, for just that reason. I used ORDER BY ename, so that the employees will appear in alphabetic order. You could use any other way of sorting them (e.g., by salary or descending hiredate).
    This site normally compresses multiple spaces into one space.
    To post formatted text, such as your desired reuslts, type these 6 characters:
    (all small letters, inside curly brackets) before and after the formatted sections.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Connect string for scott/tiger

    i've personal oracle 8i with only scott/tiger schema on my pc. i installed forms 6i. when i try to connect to my scott/tiger schema it gives me tns listener error. i'm using scott/tiger as username/password. i tried keeping Host string null and 'ORCL' but no luck....
    any help is appreciated
    thank you very much
    ---himanshu

    Himanshu,
    When u have the default database and Oracle Forms on the same machine, from SQL prompt it will connect to the database without any connect string. But when u connect from Forms u NEED to have a TNS entry. Open explorer --> Oracle Home directory --> Network --> Admin and u will find the Tnsnames.ora Open this file and create a new TNS entry ( u will find examples ) Give ur machine IP address/or user name and SID ( which will be ORCL by default ) save this file. Then connect from Forms it will connect. Good luck
    orcl.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = your machine IP)
    (Port = 1521)
    (CONNECT_DATA = (SID = ORCL)
    now orcl is ur TNS name

  • Grant permission to all objects of a schema to apps user(Oracle 10g)

    Dear Fiiends,
    I would like to grant permission on all objects of a particular schema to apps user(Oracle 10g).How do I do it?
    (ex)grant all on <schemaname>.<objectname> to apps with grant option.
    This is the permission i want to give but i can't do it for all objects one by one so how do i do it in a single command.
    Regards,
    Arun

    You can't do it in a single command. You have to give object-by-object privileges (you could grant something like SELECT ANY TABLE, but that applies to every schema in the database and is generally a rather bad idea). You can, however, use a bit of dynamic SQL to do the job, i.e.
    FOR x IN (SELECT * FROM user_tables)
    LOOP
      EXECUTE IMMEDIATE 'GRANT ALL ON schema_name.' || x.table_name || ' TO apps WITH GRANT OPTION';
    END LOOP;You can do the same with other object types, hit DBA_TABLES rather than USER_TABLES if you don't want to run this as the object owner, etc.
    Justin

  • Grant Permission base on Scheme ?

    Is there any way to grant permission base on scheme ??
    e.g.
    I want to allow user to select all table in another scheme. Beside grant permission for each table one by one, is there any way to do this ??

    There is no single privilege grant for this-- you'll have to grant privileges on individual objects. Of course, you can script these grants using a few lines of PL/SQL, i.e.
    DECLARE
      sqlStmt VARCHAR2(1000);
    BEGIN
      FOR x IN (SELECT * FROM user_tables)
      LOOP
        sqlStmt := 'GRANT SELECT ON ' || x.table_name ||
                   ' TO <<another user>>';
        EXECUTE IMMEDIATE sqlStmt;
      END LOOP;
    END;Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Grant permission to Schema

    Hi,
    One of my team member has created a schema "CUSTOMER".  I have access to SYSTEM user and unable to see that schema "CUSTOMER" under catalog objects.  I am unable to grant access to other schema members using SYSTEM user or my own user because the schema is originally created by other team member.
    I get an error "Could not grant privilege 'SELECT' on 'CUSTOMER'. You are not authorized to perform the required actions"
    Can someone tell me how to grant access.
    Regards.
    Anjan

    Hi Anjan,
    Granting the access to a schema to other users is possible only from the dbuser using which the schema was created.
    In your case, you should login to the system with the user which created the schema "CUSTOMER" and from that user you should be able to grant access to "CUSTOMER" schema to SYSTEM user and your USER.
    Regards,
    Rashmi

  • Grant permission through dynamic parameters entered by user through web app

    This is my code.
    f1=request.getParameter("URL");
    out.println("parameter f1 ===>"+f1);//user name
    f2=request.getParameter("URL1");
    out.println("parameter f2 ===>"+f2);//table name
    f3=request.getParameter("URL2");
    out.println("parameter f3 ===>"+f3);//privilege name
    sql="GRANT f3 to \"" + f1 + "\""+"on \""+f2+"\"";
    st= con.createStatement();
    st.execute(sql);
    out.println("grant succeeded");
    it is giving error that invalid SQL query.please help in writing this code.Any other method for giving dynamic SQL query for granting permission.

    Welcome to the forum!
    >
    Any other method for giving dynamic SQL query for granting permission.
    >
    You should NOT be using dynamic SQL for issuing grants. Security is something that should be taken seriously and grants should ONLY be given to users that need the permission. The necessary grants should be created and reviewed BEFORE they are executed.
    Best practices are to create scripts containing your DDL and place those scripts in a version control system.
    The scripts can then be executed in sql*plus, sql developer or another tool and the results reviewed to ensure that they executed properly.
    If dynamic SQL is needed you:
    1. create a sql statement manually and test it to make sure it works properly
    2. create the code to assemble similar statements and VIEW the output DDL to make sure that it is valid
    3. add exception handling and security handling to the code so that is can only be used for the intended operations and is not subject to SQL injection.
    4. manually execute the DDL produced by the code to make sure there are no syntax errors.
    Clearly you did not even test your SQL before trying to write code to produce it or you would have known your syntax is invalid.
    >
    sql="GRANT f3 to \"" + f1 + "\""+"on \""f2"\"";
    >
    >
    it is giving error that invalid SQL query.
    >
    Of course it is. That code might try to produce the equivalent of:
    GRANT select to "scott" on "hr.employees";There are SEVERAL errors in that code.
    1. You are enclosing the SCHEMA in double-quotes. That means the actual user name will be treated as case-sensitive. So if someone provides 'scott' it will be considered lower-case. There is NO user "scott" in Oracle unless you created that user yourself and used double-qoutes to preserve the case.
    ALL of the schemas created by Oracle, and most users, are UPPER case. So your code will not find any name if the user supplies a LOWER case or mixed-case value.
    2. You are enclosing the target schema and object name in double quotes. There are two things wrong. The same case issue applies again. And the string "hr.employees" will be treated as ONE value. The proper way to quote such a value is:
    "HR"."EMPLOYEES"3. You have the DDL components in the wrong order, hence it is invalid. The ON clause comes BEFORE the target schema.
    GRANT select to on hr.employees to scott;See the SQL Language doc for the GRANT statement
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9013.htm
    All of the issues you have demonstrate why you should NOT be using dynamic SQL to do DDL. You don't understand the syntax so you can't write code to implement that syntax.
    The syntax is much more complex than the siimple code you are trying to use.
    Grant statements often need to include "SCHEMA.OBJECT" syntax and your code makes no provision for that.
    DDL needs to be tightly controlled and doing it in code can create huge, gaping security holes.
    Abandon your method and use prepared scripts for the DDL commands you need to execute.

  • Unexpected error while granting permission in site permission !

    Hello,
    While granting permission to user in site permission it throws unexpected error in IE while in chrome it works perfect !
    Any idea ? 
    Thank you in advance !
    Dipti Chhatrapati

    Hi Dipti,
    I agreed with Scott, please check the log file to find more information based on the correlation ID.
    More information about checking log based on correlation ID, please refer to the link:
    http://mroffice365.com/2011/09/using-correlation-id-to-find-out-sharepoint-problem/
    In addition, whether you used the same account when using the IE and Chrome.
    Which version did you use for IE? Please try to use IE 10 32-bit, compare the result.
    Make sure that account you used in IE have manage permission on the site.
    Please add the site into IE Trusted Site, compare the result.
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • AIA FP installation - ORA-01031: insufficient privileges and JPS-04201: Cannot grant permission(s). Grant already exists for grantee errors

    Hi All,
          We are installing AIA FP 11.1.1.7 on SOA Suite 11.1.1.7(no patch has been applied, after SOA Suite ODI 11.1.1.7 is installed on it) this is for AIA Comms 11.4 PIP. Below error can be seen in oracle inventory logs while installing AIA FP11.1.1.7 -
    BUILD FAILED
    /u02/app/Oracle/Middleware/AIAHOME/Infrastructure/Install/AID/AIAExecuteDriver.xml:223: The following error occurred while executing this line:
    /u02/app/Oracle/Middleware/AIAHOME/Infrastructure/Install/AID/AIAExecuteDriver.xml:65: The following error occurred while executing this line:
    /u02/app/Oracle/Middleware/AIAHOME/aia_instances/DEVAIA/tmp/AIDExecuteDP_temp_2130290318.xml:12: The following error occurred while executing this line:
    /u02/app/Oracle/Middleware/AIAHOME/Infrastructure/Install/AID/lib/AIDConfigurationLibraryTasks.xml:298: java.sql.SQLSyntaxErrorException: ORA-01031: insufficient privileges
    Also before this i can see,
    [exec] Command FAILED, Reason: JPS-04201: Cannot grant permission(s). Grant already exists for grantee [GranteeEntry: codeSource=file:${soa.oracle.home}/soa/modules/oracle.soa.ext_11.1.1/classes/oracle/apps/aia/core/util/- principals=[]].
         [exec]
         [exec] WARNING!!! Grant already exists for grantee.
         [exec] No stack trace available.
         [exec] Disconnected from weblogic server: AdminServer
       [delete] Deleting: /u02/app/Oracle/Middleware/AIAHOME/aia_instances/DEVAIA/tmp/keyFile
       [delete] Deleting: /u02/app/Oracle/Middleware/AIAHOME/aia_instances/DEVAIA/tmp/propFile
    Also,
    In processFieldStringXREF Admin Password
    In processFieldStringJMSDB Temporary Tablespcae
    In processFieldStringInvalid Database Schema name - Is this an error
    In processFieldStringAIA Lifecycle Port
    In processFieldStringAIADB SYS. USER
    In processFieldStringInvalid Database Schema name
    In processFieldStringJMSDB Default Tablespcae
    In processFieldStringXREF SYS. USER
    do anyone had idea on it, we are installing on Solaris SPARC machine.
    Thanks and Warm Regards,
    RR

  • Grant Permission on Recordtype

    I have a recordtype RIB_XCostChgHrDtl_REC in 1 schema. In another schema I require to use it.
    For granting permission I have used the following :
    SQL> grant all on RIB_XCostChgHrDtl_REC to obiee;
    grant all on RIB_XCostChgHrDtl_REC to obiee
    ERROR at line 1:
    ORA-01775: looping chain of synonyms
    SQL> grant execute on RIB_XCostChgHrDtl_REC to obiee;
    grant execute on RIB_XCostChgHrDtl_REC to obiee
    ERROR at line 1:
    ORA-01775: looping chain of synonyms
    What can be the possible solution to this problem?

    I did this query
    SQL> create public synonym RIB_XCostChgHrDtl_REC for RIB_XCostChgHrDtl_REC;
    create public synonym RIB_XCostChgHrDtl_REC for RIB_XCostChgHrDtl_REC
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    SQL> drop synonym RIB_XCostChgHrDtl_REC;
    drop synonym RIB_XCostChgHrDtl_REC
    ERROR at line 1:
    ORA-01434: private synonym to be dropped does not exist
    so some other prob is there..

  • Logging into em with scott/tiger

    as directed in a prev post , I did:
    SQL> alter user scott account unlock identified by tiger;
    sqlplus / as sysdba
    conn tiger works but nowI cannot login to em with scott/tiger using the browser
    I have no problem logging in as myself
    error:
    The application requires more database privileges than you have currently been granted. Click on Help to get more version specific information.

    "I cannot login using the browser" isn't very informative.
    What URL are you using? What tool are you using in the browser?
    It sounds like you're trying to log in to Enterprise Manager as a normal user. Enterprise Manager, however, is a tool for managers to use (hence its name), not ordinary users. You'll want to log on as Scott in something like iSQL*Plus instead.
    Or, you can escalate Scott into being a manager of the database by doing something like grant dba to scott; in plain old SQL*Plus. That wouldn't be a very sensible thing to do, however: better to find appropriate client tools for clients and leave management tools to managers.
    Either way, be specific about what you are trying to run in your browser if you want any clearer advice.

  • HT1727 How do you grant permission for home sharing and authorizing?  My mac did home share, but now says, "The required directory was not found or has a permissions error", when I try to authorize.

    How do you grant permission for home sharing and authorizing?  My mac did home share, but now says, "The required directory was not found or has a permissions error", when I try to authorize.

    OK, I just got off of the phone with Apple and still no joy. They had me try a few things that did not work, then told me to Archive and Install, which did not either. Anyway, thanks for the additional help very note worthy, but still no joy. Also an email to iTunes Support took me here
    http://docs.info.apple.com/article.html?artnum=93061
    I have a Users/Shared folder but since the files we are talking about are invisible, I can see how it is structured.
    And by the way I tried this one
    http://discussions.apple.com/message.jspa?messageID=3577004#3577004
    and it did not work. However, when I install a fresh copy of Tiger on the external it did authorize the computer and was able to play the downloads. But coping the invisible file to my boot drive was not successful. But , like I said the music did play when I started up from the external. So I guess that may be my only solution, unless someone can tell what the correct directory is and where it for iTunes downloads.

Maybe you are looking for

  • Display Payslip in PDF format on Screen

    Hi SAP Gurus... I have done the below to generate the SAP HR Reminaration statement in PDF.   CALL FUNCTION 'BAPI_GET_PAYSLIP_PDF'     EXPORTING       employeenumber = p_pernr       sequencenumber = it_rgdir-seqnr       payslipvariant = p_forml     I

  • InDesign JPG Compression vs Illustrator/Photoshop

    I am working on a website and need to put in a lot of images. For most images, I use photoshop. I create the correct size then export using "Save As for Web & Devices." This works great, but I need to display several small images in a grid format. Wh

  • HT4101 Is the Panasonic lumix tz20 compatible with the iPad air lightning cable?

    Is the Panasonic lumix compatible with the iPad air lightning to USB camera adaptor?

  • Menu using relative paths

    Hi, I have flash menu all using relative paths to the html files. I also have some files in a separate folder for organization. I add the folder paths to get to the html files within the folder, but when I get into that folders file, i cant get back

  • SAP-ABAP WITH WM(WAREHOUSE MANAGEMENT)

    Hi,This is varma . iam just new to SAP-WM(WAREHOUSE MANAGEMENT) MY Client was asking me to do some ABAP stuff in MM. Iam just new to SAP-WM so can any body guide me on what SAP-WM IS ,wat the technical  ABAP stuff that we usually do in SAP-WM(Warehou