Grant EXECUTE on Portal30 privileges to a different user Hangs.

Hello
I would like to grant EXECUTE privileges on PORTAL30 objects to another user. When I try to do it from SQL*PLus, it waits and then errors out with a lock out message.
Thanks

Thanks. very helpful.
but I login as sysdba, got this error:
SQL> grant execute on sys.DBMS_LOCK to SMITH
2 ;
grant execute on sys.DBMS_LOCK to SMITH
ERROR at line 1:
ORA-01917: user or role 'SMITH' does not exist
user SMITH exists, Why is that?
S.

Similar Messages

  • About "EXECUTE ANY PROCEDURE" privilege

    I found in our EBS system. New user is default granted "EXECUTE ANY PROCEDURE" privilege and it seems I cannot revoke it. Is this supposed to be?

    What is the application release?EBS: 12.1.1
    database: 11.1.07.0
    Is this new user a custom user or seeded one?It is a custom user. I used admin account to create a new user. Only explicitly grant create seesion privilege.
    Do you get any error when you try to revoke it?No error. It works fine.
    If this is a custom schema user, you need to verify why this privilege was granted to the user and what is the impact if you revoke it (try it on a test instance first).It seems be granted default. The impact is the user has more privileges supposed to grant.

  • Grant specific column level privilege

    without vpd how i will grant specific column level privilege to a particular user.

    grant update(id) on a to scott;
    it is working fine.
    anybody can gv othr suggestn

  • Oemapp dbastudio, different user

    hello,
    dbastudio runs via 'oemapp dbastudio' command without
    a problem as long as i login as the oracle user.
    however, i cannot execute the same command under a
    different user, say testusr, although testusr is a
    member of oracle, osdba,and osoper groups and oemapp
    has rwxr-xr-x privs (anyone can execute). why do i get a persmission
    denied error - i'm i missing something?
    thanks in advance
    ek

    thanks for the quick reply.
    each of the directories in the path
    /home/oracle/infra/bin/oemapp
    have ..x..x..x privs set (again, anyone can execute).
    any ideas?

  • Grant execute on javaclass is not working

    I have successfully compiled a java class in schema two which provides a connection to an OEM data source. I subsequently compiled another java class, also in schema two, that uses the connection in the connection class and loads a temp table. Now, the connection class should really be in a different schema, so I recompiled it in schema one, changed the class name in schema two and then recompiled the one in schema two to essentially remove it from the picture.
    When I tested my call specification to the second class, which loads the temporary table, I get an error, as expected because the connection class no longer exists in schema two.
    On page 2-15 of the Java Developer's Guide 11g Release 1, it says:
        You can provide other users the right to run your class in the following ways:
            Using the loadjava -grant option:
            Using the following command:
                SQL> grant execute on myclass to scott;However, when using the second option (as the user of schema one where I just recompiled it), I get a message that the class does not exist. I have done everything I can think of to confirm that the name I have entered is correct including:
    select dbms_java.shortname('long classname') from dual;Is this not really an acceptable way to grant execute privileges on a java source to another schema?
    Thanks,
    Gregory

    Hi,
    you can use quotation mark, because the grant internally transform your javaclass in uppercase.
    So :
    grant execute on "myclass" to scott ;
    will succeed as
    grant execute on myclass to scott ;
    will not ;o)
    regards,
    Virgile CREVON
    Edited by: user513154 on 12 juil. 2011 04:58

  • Does GRANT CREATE ANY PROCEDURE auto grants EXECUTE on created obj to user?

    I have a User ABC which has GRANT CREATE ANY PROCEDURE on schema XYZ. Now, I create a new Function in schema XYZ using my ID ABC named "func123". My question is, would my User ID ABC being creator of func123 be able to EXECUTE it by default ???
    Note: ID ABC has not been explicitly given GRANT EXECUTE on this func123 function, neither it has GRANT EXECUTE ANY PROCEDURE on schema XYZ.
    Thanks in advance.

    There is no such thing as 'create any procedure on schema xyz'. When an user has create any procedure, he can create a procedure in any schema, including SYS.
    You have an unprotected and unsecured database by granting this powerful privilege to multiple users.
    Also when you create a procedure in a different schema, that schema becomes the owner, not the user creating it.
    Kindly brush up your basics and (re)read documentation.
    Sybrand Bakker
    Senior Oracle DBA

  • Get an error when grant execute on dbms_lock to user?

    Hi all,
    i have to grant several privileges/roles to user X, it works fine if only one privilege/role is granted one time, but an error raised when i put them together in one grant command, does anyone have any ideas regarding this? thanks in advance.
    sqlplus sys/*****@*** as sysdba
    SQL> grant execute on dbms_lock to X;
    Grant succeeded.
    SQL> grant resource to X;
    Grant succeeded.
    SQL> grant execute on dbms_lock,resource to X;
    grant execute on dbms_lock,resource to X
    ERROR at line 1:
    ORA-00905: missing keyword
    SQL> grant resource,execute on dbms_lock to X;
    grant resource,execute on dbms_lock to X
    ERROR at line 1:
    ORA-01953: command no longer valid, see ALTER USER

    >
    SQL> grant execute on dbms_lock,resource to X;
    grant execute on dbms_lock,resource to X
    ERROR at line 1:
    ORA-00905: missing keyword
    SQL> grant resource,execute on dbms_lock to X;
    grant resource,execute on dbms_lock to X
    ERROR at line 1:
    ORA-01953: command no longer valid, see ALTER USER
    >
    It will help to read the documentation on grant statement.
    You can't grant privileges on two different objects or roles in one statement. However you can grant two or more privileges on same object in one statement.
    SQL> grant select,update on emp to X;

  • Why doesn't the "grant execute any procedure" work?

    Hi to all.
    I want to grant the execute privilege for all SYS schema functions/procedures. To achieve it I do the following:
    SQL> connect sys/*****@orcl
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as SYS
    SQL> create user test identified by test;
    User created
    SQL> grant create session to test;
    Grant succeeded
    SQL> grant execute any procedure to test;
    Grant succeeded
    According to the [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9013.htm] the "grant execute any procedure" - grants Execute procedures or functions, either standalone or packaged.
    So, the steps seem to be right. Then, I try to connect to the test user and execute any procedure from the SYS schema, for example, dbms_lock.sleep:
    SQL> connect test/test@dizzy/orcl
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as test
    SQL> begin
    2 sys.dbms_lock.sleep(1);
    3 end;
    4 /
    begin
    sys.dbms_lock.sleep(1);
    end;
    ORA-06550: line 3, column 1:
    PLS-00201: identifier 'SYS.DBMS_LOCK' must be declared
    ORA-06550: line 3, column 1:
    PL/SQL: Statement ignored
    So, the execution fails due to insufficient rights. However, the direct grant on the sys.dbms_lock works!
    SQL> connect sys/*****@dizzy/orcl as sysdba
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as SYS
    SQL> grant execute on dbms_lock; to test;
    grant execute on dbms_lock; to test
    ORA-00911: invalid character
    SQL> grant execute on dbms_lock to test;
    Grant succeeded
    SQL> connect test/test@dizzy/orcl
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as test
    SQL> begin
    2 sys.dbms_lock.sleep(1);
    3 end;
    4 /
    PL/SQL procedure successfully completed
    So, to be sure that the grant on any procedure from the definite scheme is given, should I avoid giving the execute any procedure grant?
    P.S. Is there any special tag for code?
    Thanks in advance.

    Sybrand, thank you for the reply.
    You are right. I tried to connect by another user NOT SYS and created the function:
    SQL> create user testic identified by i;
    User created
    SQL> grant create session, execute any procedure to testic;
    Grant succeeded
    SQL> create or replace function get1 return number is
      2  begin
      3  return 1;
      4  end;
      5  /
    Function created
    SQL> connect testic/i@orcl
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as testic
    SQL> select get1 from dual;
    select get1 from dual
    ORA-00904: "GET1": invalid identifier
    SQL> select kaisa_rgali.get1 from dual;
          GET1
             1Thank you for the tag. This's exactly what I asked about.
    Finally, I tried t open the hyperlink http://download.oracle.com/docgs/cd/B10501_01/server.920/a96521/privs.htm but it failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Grant execute on DBMS_CRYPTO package (11R1)

    I figured out I needed to grant my user access to this SYS package using:
    SQL> grant execute on DBMS_CRYPTO to lob_demo;
    Grant succeeded.
    yet after doing this, I still get this error:
    SQL> select DBMS_CRYPTO.HASH(bytes, DBMS_CRYPTO.HASH_SH1) from blobslicer where id=1;
    select DBMS_CRYPTO.HASH(bytes, DBMS_CRYPTO.HASH_SH1) from blobslicer where id=1
    ERROR at line 1:
    ORA-06553: PLS-221: 'HASH_SH1' is not a procedure or is undefined
    Yet if I use the numeric constant for DBMS_CRYPTO.HASH_SH1 (3), it works:
    SQL> select DBMS_CRYPTO.HASH(bytes, 3) from blobslicer where id=1;
    F5A7338EFFEB15A49AFC9545393EF685BB51F931
    So what am I missing that prevents me from having access to a constant in the package when I can successfully use one of the function of that same package?
    Thanks, --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Maybe, that makes a little bit clearer the difference
    between usage of package constants in sql and pl sql...That's what I suspected, thank you for hammering the point home Maxim.
    The taken away for me is that package constants are not available to SQL code, only to PL/SQL code. (irrelevant of their type most likely).
    I actually tried to grant my user SELECT privileges on the package, because accessing a constant from a package is more akin to SELECT than EXECUTE, but of course one cannot do that.
    Thank you both again for the help. --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Why can't I grant execute on a directory?

    Why can't I grant execute to a directory?
    I have carried out the following:
    Login as SYS
    Prove that the oracle directory exists SELECT * FROM all_directories WHERE directory_name = 'dir_name';
    GRANT EXECUTE ON DIRECTORY dir_name TO role_name;
    The following documentation at the following address says that I can grant execute:
    http://www.morganslibrary.org/reference/directories.html
    And yet when I directed the dba to do it and when I query the database to see if He did it it shows me that he did:
    GRANTOR                        GRANTEE                        TABLE_SCHEMA                   TABLE_NAME                     PRIVILEGE                                GRANTABLE HIERARCHY
    SYSTEM                         role_name                    SYS                            dir_name                     EXECUTE                                  NO        NO       
    SYSTEM                         role_name                    SYS                            dir_name                     READ                                     NO        NO       
    SYSTEM                         role_name                    SYS                            dir_name                     WRITE                                    NO        NO       
    3 rows selectedWhen I try it in my xe environment it throws the error:
    Error starting at line 1 in command:
    GRANT EXECUTE ON DIRECTORY dir_name TO role_name
    Error report:
    SQL Error: ORA-22928: invalid privilege on directories
    22928. 00000 -  "invalid privilege on directories"
    *Cause:    An attempt was made to grant or revoke an invalid privilege on a
               directory.
    *Action:   Only CREATE, DELETE, READ and WRITE privileges can be granted or
               revoked on directories. Do not grant or revoke other privileges.What is going on?
    Benton

    Benton wrote:
    Why can't I grant execute to a directory?Because you can't, according to the 10g documentation...
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9013.htm#BGEJEBCJ
    However in 11g, it can be done...
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_9013.htm#BGBCIIEG

  • Grant execute any function or package

    Hi,
    Does the below command give execute priviliges on functions and packages too ?
    grant execute any procedure to <user>;
    When i give same for fucntion it gives following error,
    SQL> grant execute any function to user2;
    grant execute any function to user2
    ERROR at line 1:
    ORA-00990: missing or invalid privilege
    Thanks.

    EXECUTE ANY PROCEDURE grants permission to all procedures and all functions, whether stand alone or packaged.
    Hopefully, you're well aware of this, but the various ANY privileges, like EXECUTE ANY PROCEDURE, are exceptionally powerful. You want to be very cautious about granting those privileges because they can introduce a number of security holes.
    Justin

  • Grant execute on stored procedure

    I'm trying to allow the "help desk" people to connect via a special database account and execute a procedure to reset or unlock a users's password or account. I've created two stored procedures as user1 and have granted EXECUTE on user1.unlockaccount. Within the procedure I have an IF statement that basically says if the username is IN the following ('SYS','SYSTEM', ect.) then dbms_output.put_line ('not_allowed'). The ELSE is 'execute immediate 'alter user '||pUserName||' identified by '||pPassWord||' account unlock';
    Then an exception when others statement to output the 'error: '||sqlerrm
    The procedure compiles fine and I can execute it without error as 'user1' but when I GRANT EXECUTE ON USER1.UNLOCKACCOUNT TO USER2 and try to 'execute user1.unlockaccout ('username'); I get insufficient privileges.
    I've also switched to SYS and "GRANT EXECUTE ON USER1.UNLOCKACCOUNT TO USER2;" but I still get the same insufficient privs error. If I don't 'set serveroutput on;' I don't see the error message, but it still fails.
    Actually, one correction. I'm getting insufficient privs as user1 as well. user1 can unlock a user's account and reset a password outside of the procedure but I'm getting insufficient privs when executing the procedure.
    Edited by: wolfeet on Jun 8, 2011 8:49 PM

    Hi,
    wolfeet wrote:
    Granting ALTER USER directly to the user defeats the whole purpose. I want to allow this user to reset user passwords and unlock user passwords but I don't want the user to be able to reset passwords for dba accounts, sys, system, yada yada. I was hoping I could do this via GRANT EXECUTE on a stored procedure.Solomon said to grant ALTER USER directly to user1, the owner of the procedure, who already has this privilege via a role.
    User2, who will run the procedure, needs only EXECUTE privileges on the procedures. User2 will not need the ALTER USER privilege.

  • GRANT EXECUTE ON SCHEMA.PACKAGE.PROCEDURE TO USER

    Hi,
    GRANT EXECUTE ON SCHEMA.PACKAGE.PROCEDURE TO USER
    returns:
    ORA-00905, do you know why? Can I grant privileges on procedure inside package?
    thanks

    As per my knowledge of oracle, we cannot grant privileges on procedure inside a package.
    <br><br>
    Raj<br>
    <b>www.oraclebrains.com<a>
    <br><font color="#FF0000">POWERED by the people, to the people and for the people WHERE ORACLE IS PASSION.</font></b>
    <br>
    Sorry Leonardo Horikian & Kamal Kishore, I was late and didn't know that you guys have already posted the answer.
    Message was edited by:
    rajs

  • Execute crs_stat –t with different user

    Hi Xperts
    I am trying to do a monitoring script and I want to execute crs_stat –t with different user than Oracle (DB and Grid owner), I receive:
        CRS-0245:  User doesn't have enough privilege to perform the operation
        CRS-0202: No resources are registered.
    I already register User2 to Oinstall group and I am able to connect to sqlplus with User2.
    This monitoring scripts is going to be part of one monitoring tool, I already integrate other DB monitoring scripts.
    DB: Oracle RAC 11gR2(11.2.0.3) with OEL 5.9
    Thank you for your time
    Regards

    can you try to execute crsctl stat res -t -init using user2 .
    crs_stat command  is deprecated  in 11gR2.
    Thanks,
    http://gssdba.wordpress.com

  • Grant execute to all procedure to a user / public

    hey!
    simple question:
    how can i gran execute on all the procedures belong to a given user - for another user (or to public)?
    should i use a roll or can i do it without it?
    thanks
    yair

    I'm thinking that I read in 11G there was a new utility that allows you to grant all from one schema to another, but why in the world would anyone want to do that? (okay... no answer required on that one)
    Sounds like you might have to write some dynamic SQL.
    For tables and views, you will need to grant all on the object to the other schema.
    For packages and procedures, you can grant execute to them.
    Or, another option would be (arg... I hate to suggest this), grant a select any table, delete any table, insert any table, execute any procedure, etc... to the user.
    This is really bad, and I don't recommend this, only noting that it is an option. If this is just for some kind of temporary purpose (e.g., testing), then this might be acceptable, however, revoke these privileges immediately.
    The better option is to write dynamic SQL and grant directly to the other schema owner. You may run into problems with views and procedures if you use a role which is why I would recommend granting directly to the user. I've also run into problems with GLOBAL_LEXARs and things related to Oracle text when granting via roles.
    But now, I have to still wonder why you would not just grant the necessary privileges that the other schema needs rather than granting everything?
    Ji Li

Maybe you are looking for

  • Why can't I change the color of the h1?

    I'm working on a site and all of my CSS is working properly but I'm having trouble changing the color of the h1.  I can change the font, the size, bold....everything EXCEPT the color. I duplicated my page and CSS and began to deconstruct the page ele

  • I want to make an iTunes backup but random burns fail

    Can I backup only a portion of iTunes or do I need to back up the entire file set? I'm running a Maxtor usb drive for the iTunes library with a Leopard powered mini.

  • I cant find the serial number on my iphone 4th gen and im locked out

    im locked out of my iphone 4th gen which mean i cant get into my iphone to find the serial i dont want to be told how to get my self in atm i need some help finding out which is the serial there is a FCC ID or a IC which one is the serial please help

  • Create Scheama Question

    I am new to Oracle, so please bear with me and my questions... I have been trying to create a new schema in a existing database using the Oracle Enterprise manager and I could not find a way of doing so... What do I do?...

  • Access private variables from javascript

    Hi. How can i access my objects and varibles, in my java code from my javascript.