GRANT (Schema Privileges) statement

Good day!
Is it possible to access a table in system/manager by granting TYRES privileges?
Grant select on EMPLOYEE_MSTR to tyres.
Tyres is another user. I wanted to access all the tables stored in SYSTEM/MANAGER when I logged in as TYRES/TYRES. I am using ORACLE 8 and I haven't use this since.
Any help is appreciated.
Thanks!

First of all: you are in the wrong forum (try the database forum).
Then: Yes this is possible, but I strongly suggest that you place specific user objects (tables, etc) in the sys tablespace, and do not access the database as system when not necessary.
cu
Andreas

Similar Messages

  • Need to grant DML privileges to all tables in few schemas

    Hi,
    I need to grant DML privileges to all tables in few schemas to a role. How can I achieve that?
    I thought it's below syntax but it doesn't work. Please advice.
    grant ALL ON ALL TABLES IN SCHEMA <Schema_name>  TO <role_name>;Thanks,
    Gangadhar

    GR wrote:
    Hi,
    I need to grant DML privileges to all tables in few schemas to a role. How can I achieve that?
    I thought it's below syntax but it doesn't work. Please advice.
    grant ALL ON ALL TABLES IN SCHEMA <Schema_name>  TO <role_name>;
    There is no single command to grant privileges at that level. There are either ANY privileges or privileges on an object.
    You can write a bit of code to generate and execute what you want, but you would have to rerun it if any new tables were created.

  • Travel Schema:grant all privileges

    I have a request to add the travel schema to one of our 9202 databases. Fairly straight forward. I got the *.dmp file from your site:
    http://www.oracle.com/technology/sample_code/tech/java/travel/travelschema.htm#system
    I created the user travel and used the system tablespace as the default. As for privileges, I noticed that I should "grant all privileges" to travel. Is this wise? What's the minimum amount of privileges that I can grant to travel?

    Is this wise? You are quite right to be concerned. Granting ALL PRIVILEGES is a dodgy thing to do. In mitigation I might say that the TRAVEL schema is a sample piece of code and so should only be installed on a development database, where the damage can be limited.
    But I think the real problem is that the sample code was developed by Java programmers who couldn't be bothered to work out exactly what privileges were needed. Shocking, yes, but hardly uncommon. And the poltroons have also included instructions on how to
    To Download and install the travel schema into the SYSTEM tablespace:
    No no no! No application objects go into the SYSTEM schema. What's the point of us non-Oracle people banging on about best practice if their own employees are allowed to post stuff like this on OTN? Sack these bozos!
    What's the minimum amount of privileges that I can grant to travel? I have absolutely no idea. I think the safest thing is to build a new database instance, so that the potential for damage is limited. Alternatively, grant CONNECT and RESOURCE and see how far that goes. You may have to grant additional powers. I see they also grant JAVASYSPRIV and JAVAUSEPRIV. Horrible, simply horrible.
    Cheerse, APC

  • Granting table privileges on another users tables

    Can anyone tell me what privilege needs to be granted to a user to be able to grant insert/update/select/delete/execute on another users tables/packages?
    I had thought that 'grant any privilege' was the one to have... and - the user I am trying to use to grant the privileges on the other users schema has this however - I'm still getting : ORA-01031: insufficient privileges when trying to run the grants.
    Any ideas what I'm doing wrong here?

    Ok... well...
    The 'with grant' option doesn't appear to be the issue.
    The user attempting to perform the grants:
    i.e. GRANT SELECT ON user_2.table_1 TO view_role
    has the 'grant any object privilege' and - that seems to be enough. When I run the statement above as a simply as typed - it works fine.
    However - what I'm actually doing is concatenating that together in a string and running (from a package created by/as user_1) and doing an execute immediate...
    i.e.
    l_sql := 'GRANT ' || l_rec.privilege || ' ON ' || l_rec.owner || '.' || l_rec.table_name || ' TO ' || p_role;
    EXECUTE IMMEDIATE l_sql;
    And - it's this that's giving me the insufficient privileges...
    I do not have invokers rights set on the package - so that shouldn't be an issue. And - I can't find any documented restriction on doing this (and - in fact - it works fine if I create the package as user_2 and run it as user_2 - the owner of the objects).
    I'm at a loss.

  • Grant sequence privilege issue

    Hi,
    OS is windows server 2008
    Database oracle 11g r2
    i have created a schema with name SME having DBA privilege from SME i have created another user SME_USER using the same tablespace of SME with limited privileges. The sequence was created in SME user. I am accessing the tables from SME schema. I have given insert privilege to one of the table in SME to SME_USER,but while insertiing we are using the sequnece with name IPSRNO from SME schema. Now when i tried to insert value inot the table from SME_USER its giving me the output "Sequence does not exist". I have given the grant select privilege for sequence IPSRNO.
    Please guide me on this issue.
    Regards,
    Bobby

    See Using Synonyms in DML Statements in the DBA guide
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/views003.htm
    >
    You can successfully use any private synonym contained in your schema or any public synonym, assuming that you have the necessary privileges to access the underlying object, either explicitly, from an enabled role, or from PUBLIC. You can also reference any private synonym contained in another schema if you have been granted the necessary object privileges for the underlying object.
    You can reference another user's synonym using only the object privileges that you have been granted. For example, if you have only the SELECT privilege on the jward.emp table, and the synonym jward.employee is created for jward.emp, you can query the jward.employee synonym, but you cannot insert rows using the jward.employee synonym.
    A synonym can be referenced in a DML statement the same way that the underlying object of the synonym can be referenced. For example, if a synonym named employee refers to a table or view, then the following statement is valid:
    INSERT INTO employee (empno, ename, job)
    VALUES (emp_sequence.NEXTVAL, 'SMITH', 'CLERK');
    If the synonym named fire_emp refers to a standalone procedure or package procedure, then you could execute it with the command
    EXECUTE Fire_emp(7344);

  • GRANT syntax : Grant SELECT privileges on tables to a User on a Remote DB

    Hi
    I am having two databases: DEV1 and DEV2. DEV1 is my source database and DEV2 is target database. There is a table in Schema A on Dev1. I have created a PUBLIC DBLINK "TESTDBLINK" in Schema B on DEV2 that connects to Schema A on DEV1.
    Database Schema Table Machine
    DEV1 A EMP 192.168.210.10
    Database Schema Database Lik Machine
    DEV2 B TESTDBLINK 192.168.210.11
    How to grant SELECT privileges on Schema A Table EMP ( DEV1 ) to Schema B on DEV2 ? What is the syntax ?
    e.g. Log in as Schema A on DEV 1
    SQL> GRANT SELECT ON EMP TO *???????*
    Thanks for your inputs
    Harry

    You don't have to grant that table in schema A to schema B.
    Inside schema B, you can just issue a select statement like this:
    select *
    from table@db-link-to-AOracle will connect to the remote instance, using the credentials of schema A, and since A owns that table, Oracle can already access the table.

  • Grant select privilege to specific columns on a table to user in Oracle 9i

    Can anyone tell me how to grant select privilege to a user for specific columns in a table?
    I have tried the following statement
    GRANT SELECT (EMP_ID) ON EMP TO USER1
    But it's not working and I am getting this error "Missing ON Keyword".
    Please anyone tell me how to grant select privilege for specific columns.
    Edited by: 899045 on Nov 24, 2011 7:03 AM

    899045 wrote:
    Can anyone tell me how to grant select privilege to a user for specific columns in a table?
    I have tried the following statement
    GRANT SELECT (EMP_ID) ON EMP TO USER1
    But it's not working and I am getting this error "Missing ON Keyword".
    Please anyone tell me how to grant select privilege for specific columns.
    Edited by: 899045 on Nov 24, 2011 7:03 AMFrom the 9.2 SQL Reference manual, found at tahiti.oracle.com (http://docs.oracle.com/cd/B10501_01/server.920/a96540/statements_912a.htm#2062456)
    *"You can specify columns only when granting the INSERT, REFERENCES, or UPDATE privilege. "*

  • Granting object privileges to remote users.

    Hello,
    Here's the situation:
    I have 2 databases located on 2 different servers both running Win2k3. In the first database the main schema is M1 and it has to read objects on the another schema M2, located on the second database.
    I created a database link on the first database, to point to the second database
    create database link connect2M2db connect to M2 identified by M2 using 'connect2M2db'Now I would like to grant object privileges(insert,update,delete) to M1 on M2' objects. Can anyone tell me how to do that?
    Thanks in advance.

    I didn't put the whole thing, (my bad) but your reply was helpful. As I said before, I have 2 dbs, on 2 differents servers. I created the dblink on the first server. I also created synonyms on the first server using the following syntax:
    "create or replace synonym syn_name for user2.table" which from the link you provided me, is wrong as I didn't append the dblink name.
    After that, I would like to grant object privileges to user1, by executing the command from server2. For doing that, is the following syntax correct: "grant select on table_name to user1". My issue is that user1 does not exist on server2. Should I rather use the following: "grant select on table_name@dblink to user1"?

  • JMS grant queue privileges problem

    I have two test users set up in different schemas. They each have their own identical queue tables and queues in their own schemas.
    One of the users cannot seem to grant queue privileges to the main schema owner. The error is as follows:
    Eception: oracle.jms.AQjmsException: JMS-122: Internal error payload object type must be specified
    at oracle.jms.AQjmsDestinatio.grantQueuePrivilege(AQjmsDestination.java:406)
    at src.AQSetup.jmsInitializeQueue(AQSetup.java:246)
    the offending code is as follows:
    cq_conn = AQjmsQueueConnectionFactory.createQueueConnection(p_conn);
    // create queue session
    commQSession = cq_conn.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
    // AUTO_ACKNOWLEDGE
    try
    cQTable = ((AQjmsSession)commQSession).getQueueTable(userID, QueueTableName);
    catch (AQjmsException e)
    cQTable = createJMSQueueTable(commQSession, userID, QueueTableName);
    try
    cQueue = ((AQjmsSession)commQSession).getQueue(userID, QueueName);
    catch (AQjmsException e)
    cQueue = createJMSQueue(commQSession, cQTable, QueueName);
    ((AQjmsDestination)cQueue).grantQueuePrivilege(commQSession, "ENQUEUE", "icowner",false);
    with the error coming from the last line and the referenced table and queue definition code as folows:
    private AQQueueTable createJMSQueueTable(QueueSession q_sess, String userID, String q_tableName) {
    try {
    AQQueueTableProperty qtable_prop = null;
    AQQueueTable cq_table = null;
    // Create an AQQueueTableProperty object (payload type - BYTES):
    qtable_prop = new AQQueueTableProperty("SYS.AQ$_JMS_TEXT_MESSAGE");
    // Create a queue table called command_table in user schema:
    cq_table = ((AQjmsSession)q_sess).createQueueTable(userID, q_tableName, qtable_prop);
    return cq_table;
    } catch (Exception ex) {
    return null;
    private Queue createJMSQueue(QueueSession q_sess, AQQueueTable q_table, String q_name) {
    try {
    AQjmsDestinationProperty dest_prop = null;
    Queue lq_queue = null;
    dest_prop = new AQjmsDestinationProperty();
    // create a queue
    lq_queue = ((AQjmsSession)q_sess).createQueue(q_table, q_name, dest_prop);
    return lq_queue;
    } catch (Exception ex) {
    return null;
    both users seem to have the same privileges.
    Can you tell me if it is an error in my code and what that is?
    - Ken
    null

    Might be a bug.
    Do you get the error when
    createQueue is followed by grantQueuePrivilege OT
    getQueue is followed by grantQueuePrivilege.
    null

  • Grant any privilege, privilege

    About 4 weeks ago i got some much appreciated assistance in setting up my environment so that a user could grant object privileges on objects in another user's schema. This solution required a function to be built in the schema which owned objects.
    I just found the 'GRANT ANY PRIVILEGE' privilege. Anyone know when this came about (we're using 10g) and if there's any problem to granting this?
    We have the init param 07_DICTIONARY_ACCESSIBILITY set to False. Will we be able to keep people of the SYS schema?
    -cf

    Let me specify, I was referring to the GRANT ANY OBJECT PRIVILEGE above, although I do see the GRANT ANY PRIVILEGE out there as well.
    -cf

  • Grant Apps Privileges to custom User

    Hi, gurus,
    after successfully upgrading ebs 11.5.10.2 database to 10.2.0.5, we want to create a database user that will have all APPS Schema privileges.
    Please can anyone help us with all the Privileges,Roles etc that have to be granted to this User.
    thanks

    Thanks for the reply hsawwan,
    I have granted all the roles and privileges of apps to custom user. I have also created synonyms on the following apps tables and packages in the custom schema:
    sqlplus custom_schema/password
    create synonym fnd_global for apps.fnd_global;
    create synonym fnd_client_info for apps.fnd_client_info;
    create synonym fnd_profile for apps.fnd_profile;
    create synonym fnd_message for apps.fnd_message;
    create synonym app_exception for apps.app_exception;
    create synonym fnd_log_repository for apps.fnd_log_repository;
    create synonym fnd_log for apps.fnd_log;
    create synonym hr_signon for apps.hr_signon;
    create synonym jg_context for apps.jg_context;
    create synonym fnd_application_vl for apps.fnd_application_vl;
    create synonym fnd_responsibility_vl for apps.fnd_responsibility_vl;
    create synonym fnd_languages for apps.fnd_languages;
    create synonym fnd_user for apps.fnd_user;
    create synonym fnd_application for apps.fnd_application;
    create synonym fnd_lookup_types for apps.fnd_lookup_types;
    create synonym fnd_product_groups for apps.fnd_product_groups;
    create synonym fnd_profile_options_vl for apps.fnd_profile_options_vl;
    create synonym fnd_new_messages for apps.fnd_new_messages;
    create synonym fnd_data_group_units for apps.fnd_data_group_units;
    create synonym fnd_oracle_userid for apps.fnd_oracle_userid;
    create synonym fnd_product_groups for apps.fnd_product_groups;
    create synonym fnd_product_initialization for apps.fnd_product_initialization;
    create synonym fnd_product_init_condition for apps.fnd_product_init_condition;
    create synonym fnd_product_init_dependency for apps.fnd_product_init_dependency;
    create synonym fnd_product_installations for apps.fnd_product_installations;
    create synonym fnd_profile_options for apps.fnd_profile_options;
    create synonym fnd_profile_option_values for apps.fnd_profile_option_values;
    create synonym fnd_security_groups_vl for apps.fnd_security_groups_vl;
    create synonym fnd_user_resp_groups for apps.fnd_user_resp_groups;
    create synonym icx_parameters for apps.icx_parameters;
    create synonym fnd_log_messages for apps.fnd_log_messages;
    create synonym fnd_cache_versions for apps.fnd_cache_versions;
    i have granted execute on APPS.FND_CORE_LOG to custom_schema
    I created the procedure below with custom_schema (procedure created successfully):
    CREATE OR REPLACE PROCEDURE INSERT_PEN_BALANCES_MAR11(p_payroll_date IN DATE, p_low_line_id IN NUMBER, p_high_line_id IN NUMBER) AS
    CURSOR all_people IS
    SELECT LINE_ID,
    STAFF_ID,
    EMPLOYEE_NUMBER,
    FULL_NAME,
    ASSIGNMENT_ID,
    PAYROLL,
    ORGANIZATION
    FROM
    APIREPORTS.ALL_PENSION_PEOPLE_INFO_MAR11
    WHERE
    LINE_ID BETWEEN p_low_line_id AND p_high_line_id
    AND
    BALANCE_LOAD_STATUS = 'NO';
    CURSOR assignment_actions(l_assignment_id IN NUMBER) IS
    SELECT
    A.ASSIGNMENT_ACTION_ID, B.PAYROLL_ACTION_ID, B.ACTION_TYPE, B.EFFECTIVE_DATE, B.PAYROLL_ID
    FROM
    APPS.PAY_ASSIGNMENT_ACTIONS A,
    APPS.PAY_PAYROLL_ACTIONS B
    WHERE
    A.PAYROLL_ACTION_ID = B.PAYROLL_ACTION_ID
    AND
    A.ASSIGNMENT_ID = l_assignment_id
    AND
    B.EFFECTIVE_DATE BETWEEN TRUNC(p_payroll_date, 'MONTH') AND p_payroll_date
    --B.EFFECTIVE_DATE = p_payroll_date
    AND
    B.ACTION_TYPE IN ('R','Q')
    -- AND
    -- B.ACTION_STATUS = 'C'
    AND
    A.ACTION_STATUS = 'C';
    CURSOR balance_ids(l_assignment_action_id IN NUMBER) IS
    SELECT
    A.BALANCE_NAME_AND_SUFFIX,
    A.DEFINED_BALANCE_ID,
    A.BALANCE_DIMENSION_ID
    FROM
    APPS.PAY_BALANCES_V A,
    APPS.PAY_BALANCE_DIMENSIONS B
    WHERE
    A.BALANCE_DIMENSION_ID=B.BALANCE_DIMENSION_ID
    AND
    B.DATABASE_ITEM_SUFFIX IN ('_ASG_ITD','_ASG_RUN','_ASG_YTD')
    AND A.ASSIGNMENT_ACTION_ID = l_assignment_action_id;
    --AND A.BALANCE_NAME_AND_SUFFIX IN ('GOG Net Salary_ASG_RUN','Total Earnings_ASG_RUN');
    -- Variable to hold the calculated value
    balance_value NUMBER;
    -- Counter to commit after a fixed number of records
    p_counter INTEGER := 0;
    -- Local Variable to hold the status of each insert
    l_status VARCHAR2(30);
    BEGIN
    -- Initialize the environment
    --BEGIN
    --APPS.fnd_global.apps_initialize(2352,50001,800);
    --END;
    FOR i IN all_people
    LOOP
    p_counter := p_counter + 1;
    FOR j IN assignment_actions(i.ASSIGNMENT_ID)
    LOOP
    FOR k IN balance_ids(j.ASSIGNMENT_ACTION_ID)
    LOOP
    BEGIN
    -- Retrieve the value of the balance
    balance_value := NULL;
    l_status := 'INSERT SUCCESSFUL';
    balance_value := apps.pay_balance_pkg.get_value(k.DEFINED_BALANCE_ID, j.ASSIGNMENT_ACTION_ID);
    BEGIN
    INSERT INTO APIREPORTS.ALL_PENSION_LATEST_BAL_MAR11
    (STAFF_ID,
    FULL_NAME,
    ASSIGNMENT_ID,
    EMPLOYEE_NUMBER,
    BALANCE_NAME_AND_SUFFIX,
    AMOUNT,
    PAYROLL,
    PAYROLL_ID,
    PAY_PERIOD,
    ORGANIZATION,
    ASSIGNMENT_ACTION_ID,
    PAYROLL_ACTION_ID,
    PAYROLL_ACTION_TYPE,
    CREATION_DATE
    VALUES
    (i.STAFF_ID,
    i.FULL_NAME,
    i.ASSIGNMENT_ID,
    i.EMPLOYEE_NUMBER,
    k.BALANCE_NAME_AND_SUFFIX,
    balance_value,
    i.PAYROLL,
    j.PAYROLL_ID,
    j.EFFECTIVE_DATE,
    i.ORGANIZATION,
    j.ASSIGNMENT_ACTION_ID,
    j.PAYROLL_ACTION_ID,
    j.ACTION_TYPE,
    SYSDATE
    EXCEPTION WHEN OTHERS THEN
    l_status := 'ERROR WITH INSERT';
    END;
    END;
    END LOOP;
    END LOOP;
    IF (l_status = 'INSERT SUCCESSFUL') THEN
    UPDATE APIREPORTS.ALL_PENSION_PEOPLE_INFO_MAR11
    SET
    BALANCE_LOAD_STATUS = 'YES'
    WHERE
    LINE_ID = i.LINE_ID;
    END IF;
    IF (p_counter = 10) THEN
    COMMIT;
    p_counter := 0;
    END IF;
    END LOOP;
    COMMIT;
    END INSERT_PEN_BALANCES_MAR11;
    procedure created successfully.
    Now when i execute the procedure i get the following error:
    EXEC INSERT_PEN_BALANCES_MAR11('31-DEC-2010',1,1930);
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at APPS.FND_CORE_LOG line 25
    ORA-06512: at APPS.FND_CORE_LOG line 432
    ORA-06512: at "APPS.FND_PROFILE", line 110
    ORA-06512: at "APPS.PAY_MONITOR_BALANCE_RETRIEVAL", line 35
    ORA-06512: at "APPS.PAY_BALANCE_PKG", line 4426
    ORA-06512: at "APPS.PAY_BALANCE_PKG", line 5403
    ORA-06512: at "APPS.PAY_BALANCE_PKG", line 5265
    ORA-06512: at "APPS.PAY_BALANCE_PKG", line 5250
    ORA-06512: at "ADARI.INSERT_PEN_BALANCES_MAR11", line 71
    Please help me out.
    Thanks.

  • Account repeatedly GRANTs itself privileges to a hidden type

    We have noticed a situation where an account is repeatedly GRANTing itself privilieges to a hidden type - a SQL type that mirrors a type hidden in a PL/SQL package.
    The background:
    Schema USER has execute privilege on package OWNER.PKG.
    OWNER.PKG is like below:
    PACKAGE owner.pkg AS
    TYPE rec IS RECORD(...)
    TYPE tab IS TABLE OF r;
    FUNCTION func RETURN tab PIPELINED;
    END;
    The result:
    Type OWNER.PKG.TAB is mirrored in the database as type SYS_PLSQL_999999_100_1.
    Whenever USER connects and queries SELECT * from TABLE(OWNER.PKG.FUNC), it then GRANTs itself execute on SYS_PLSQL_999999_100_1.
    The question:
    Is this just how PL/SQL -> SQL type mirroring works, or is something misconfigured? Will USER keep granting itself privileges on the type?

    Jeff Klein wrote:
    We have noticed a situation where an account is repeatedly GRANTing itself privilieges to a hidden type - a SQL type that mirrors a type hidden in a PL/SQL package.
    The background:
    Schema USER has execute privilege on package OWNER.PKG.
    OWNER.PKG is like below:
    PACKAGE owner.pkg AS
    TYPE rec IS RECORD(...)
    TYPE tab IS TABLE OF r;
    FUNCTION func RETURN tab PIPELINED;
    END;
    The result:
    Type OWNER.PKG.TAB is mirrored in the database as type SYS_PLSQL_999999_100_1.
    Whenever USER connects and queries SELECT * from TABLE(OWNER.PKG.FUNC), it then GRANTs itself execute on SYS_PLSQL_999999_100_1.
    The question:
    Is this just how PL/SQL -> SQL type mirroring works, or is something misconfigured? Will USER keep granting itself privileges on the type?How do I ask a question on the forums?
    SQL and PL/SQL FAQ
    how can we reproduce what you report?

  • Oracle Unix 9 - slow granting Schema object to User

    I have a problem. I can't figure out why granting schema object to users take longer time. here is my codes:
    DECLARE
    alert_button     NUMBER;
    CURSOR Teller_Cur IS SELECT * FROM TELLER_M;
    BEGIN
         alert_button := Show_Alert('AlertOK');
         IF alert_button = ALERT_BUTTON1 THEN           
              FOR Teller_Rec IN Teller_Cur LOOP
         Message('Setting table access for ' || Teller_Rec.Teller_ID || ' in progress, please wait....', No_acknowledge);
              IF :DTABLE IS NOT NULL THEN
              -- Granting Schema object to new User
              IF SUBSTR(:DTABLE, 1, 4) = 'TEMP' THEN
              Forms_DDL('GRANT SELECT, INSERT, UPDATE, DELETE ON ' || :DTABLE || ' TO ' || Teller_Rec.Teller_Id || '');
              ELSE     
         IF Teller_Rec.SELECT_ACCESS = 'Y' THEN
         Forms_DDL('GRANT SELECT ON ' || :DTABLE || ' TO ' || Teller_Rec.Teller_Id || '');
         END IF;
    IF Teller_Rec.INSERT_ACCESS = 'Y' THEN
    Forms_DDL('GRANT INSERT ON ' || :DTABLE || ' TO ' || Teller_Rec.Teller_Id || '');
    END IF;     
              IF Teller_Rec.UPDATE_ACCESS = 'Y' THEN
    Forms_DDL('GRANT UPDATE ON ' || :DTABLE || ' TO ' || Teller_Rec.Teller_Id || '');
              END IF;      
              IF Teller_Rec.DELETE_ACCESS = 'Y' THEN
    Forms_DDL('GRANT DELETE ON ' || :DTABLE || ' TO ' || Teller_Rec.Teller_Id || '');
    END IF;      
              END IF;
         -- Creating Synonyms in new User schema
              Forms_DDL('CREATE SYNONYM ' || Teller_Rec.Teller_Id||'.'|| :DTABLE || ' FOR ' || :DTABLE ||'');
    ELSE
                             -- for stored procedure:
              Forms_DDL('CREATE SYNONYM ' || Teller_Rec.Teller_Id||'.'|| :DSTOREDP || ' FOR ' || :DSTOREDP ||'');
         Forms_DDL('GRANT EXECUTE ON ' || :DSTOREDP || ' TO ' || Teller_Rec.Teller_Id || '');
    END IF;
         END LOOP;     
         Message('Setting table access completed!!!', No_acknowledge);
         END IF;
    END;
    If i use oracle 8.1.7 locally, it doesn't take than 5 minutes to grant access. But whereas to Oracle 9.0.1 (through network) is taking more than 20 minutes.
    If anyone knows, do help me.
    Thank you.

    The problem is not the difference between the database versions I think; it's the location of the Server.
    Take a look what one call of forms_ddl causes network traffic. you have this traffic for each call of forms_ddl. On the Local Server this might not be so much of a problem but with the network between it I this is much slower...
    Try to bundle up your statements or even better put the whole stuff in a database procedure to do it via one call. I speeded up creating grants and synonyms from 10 minutes via forms_ddl to 3 minutes using database procedure.
    The only limitation is that your messages won't display for each user.
    regards

  • Bug: Grant/Revoke Privileges (11.1.0.5.10 Beta)

    Started getting this when attempting to change Privileges on a proc:
    "Could not launch the Grant/Revoke Privileges dialog:
    Value was either too large or too small for an Int32."
    This is happening consistently on one database but not on another.
    John

    I am also seeing this bug. When I right click on anything in the Server Explorer under my ODP based connection, I get this same message. It happens when I right click on any table icon and select "Privileges..."
    -Valkyrie-MT

  • How to grant  view privilege for Instant Portal to public users?

    How to grant view privilege for Instant Portal to public users?

    Oracle Instant Portal was designed to offer secure access to company and departmental information, and it isn't currently possible to make instant portal pages public.

Maybe you are looking for

  • How to install Apache module mod_rewrite

    Kindly tell me, how to install Apache module mod_rewrite which is a standard module in the Oracle HTTP Server (OHS).. I have installed OAS(10.1.2) but mod_rewrite module is missing.. Edited by: SrinivasanSeniorDBA on 26 Feb, 2010 2:42 PM

  • TS1707 what to do if you hit "play" before rental movie has fully downloaded?

    last night i hit "buy" on the itunes store for a HD movie. this morning i checked my rental tab and it showed the movie thumbnail and synopsis. i boarded my plane and eagerly hit "play". the 24 hour warning dialog box came on, i checked it and waited

  • License requirements question

    All, I have the following question (stranger question): I just developed a SimpleMap class which is an equivalent of the HashMap from java.util, but very specialized with respect to some special uses cases I am dealing with. There is no dependency be

  • Can't do digital signatures

    Using Acrobat STD 9.2.0 on Win7, when I try to sign a document, I get the digital signature window showing my signature, but when I selct the SIGN button, it does nothing.  It worked before.  Any ideas on the fix or how to troublshoot this? Thanks, J

  • Nikon D810 9mp raw files won't open

    Apple released an RAW update for Nikon D810 cameras. How long until the 9MB RAW files have an update?