What if GRANTS statement are executed twice?

What happens if GRANTS statments are executed twice?
Will there be any error thrown at the time of second execution?
And will we need to revert twice in case we need to remove the GRANTS?
Does it matter which user can give GRANTS if the user has the ccess to pass on the GRANTS for a particular object?
thanks,
tik

To add to what Sybrand said, as long as the username that runs the grant script has the necessary privilege then who issues the grants does not matter. However you cannot directly grant privileges for another users object to yourself even if you can grant them to another user so if the username who ran the script was intended to receive some of the grants then you definitely need to rerun the script.
Rerunning the script as the intended user would not hurt anything. Only one revoke would be necessary to remove any granted privilege and it can be issued by any user with the privilege necessary to perform the revoke such as the object owner or a DBA.
HTH -- Mark D Powlel --

Similar Messages

  • Iterators are executing twice

    Hi All
    I have noticed the iterators used on page fragments are being called twice once after loading the fragment and second time while unloading the fragment (i.e., navigating to other fragments), because of this the services are called twice, but we do not want the iterators executed while leaving the fragment.
    Iam using Jdev116
    Regards
    vidya

    Hi,
    You may want to set the iterator's refreshCondition to #{adfFacesContext.initialRender}.
    Check out this blog : https://blogs.oracle.com/shay/entry/preventing_queries_when_page_f
    -Arun

  • Item event handler executed twice

    SAP BO 2004A, C#, UI+DI
    Hi,
    inside an item event handler, a piece of code stores some data in database using RecordSet.Query( "INSERT INTO ..." )
    Running the application, the insert statement is executed twice, what I don't expect.
    If I add a messagebox after the Query()-statement, the code is executed only once.
    Also if I set a breakpoint in debugger, the code is executed only for one time.
    I checked allways the following things:
    1) itemEvent.beforeAction == true
    2) the SAPbouiCOM.Application object is instanciated only for one time.
    Any ideas? Thank you!
    Peter

    Are you filtering?
    It's imperitive that you filter your events. This way your add-on will only receive the events you are interested in...
    This will also allow the SBO -> add-on communication to be more efficient and faster...

  • Form Load rules of InfoPath are executed many times

    By examining the logs I saw that the “Form Load” actions of my InfoPath form in SharePoint are executed twice.
    I made some tests with Fiddler and found out that the page _layouts/15/FormServer.aspx was loaded twice.
    It must be related to the browser because with Chrome the same form is loaded 3 times.
    This behavior is very annoying because my form is initialized using web services which of course take time to execute.
    Is this a bug or am I missing something?
    Additional infos: 
    Occurs with SharePoint 2010 & 2013
    IE 10
    SOAP Web  Services
    Form  published to a content type
    InfoPath executed in browser without code
    Thanks

    Hi,
    Based on your description, my understanding is that the infopath form load rules execute more than one time when form initialized.
    As the data in the form is initialized by SOAP web service, I suggest you check if there are some post back event in the page.
    Here is a detailed article for your reference:
    http://stackoverflow.com/questions/16223324/fiddler-and-monitoring-web-service-traffic  
    Best Regards
    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]
    Zhengyu Guo
    TechNet Community Support

  • Coldfusion pages executed twice

    Hi,
    I've a simple application that need login/pass
    authentification,
    I use ce CFLOGIN process to make it work,
    So I login/pass to the application, all is all right but when
    i browse the pages of my application, i've noticed that each page
    are executed twice !!
    Is there a way to solve this issue in the admin or is my
    process wrong ?
    Any help would be great
    regards
    Francois

    For this you really need to share the code you use, else it's
    difficult to solve, it might has to do with some cflocation actions
    triggered by authentication code.

  • What kind of operations is doing when DML statement is executing

    i want to know what kind of operations are doing where dml sql statement is executeing - undo and redo log, index renewing, transaction log, audit log - is there some operations that i do not know ?

    Intially sql goes to library cache, where it checks for syntax and sematics, once it pass throw, it generates a 16 digit hash code for that sql( for the first time this can be treated as 'HARD PARSING' and and the same sql given for 2nd time it wont do the entire process, just uses the existing #code, this is called as 'SOFT PARSING") and finally this goes to DDC where object existence and privileges are checked, once it passed all these it gets the file#,block# to fetech the blocks form datafile, and those will be fetched to database buffer cache and then to client system in such a format that we can usderstood.
    Hope this makes sense to you!
    tx- Harry

  • JSP is executed twice

    hi,
              I am running weblogic 6.1 with sp4. I have got two JSP which are using a
              datasource to connect to my database (oracle 8).
              When I got a java.sql.connection through the datasource, I am creating a
              statement and executing a query. It is a really simple query (select * from
              mytable) but mostly the JSP will be exceuted twice and I have no idea why.
              So can anyone help me?
              Michael
              

    hi,
              I am running weblogic 6.1 with sp4. I have got two JSP which are using a
              datasource to connect to my database (oracle 8).
              When I got a java.sql.connection through the datasource, I am creating a
              statement and executing a query. It is a really simple query (select * from
              mytable) but mostly the JSP will be exceuted twice and I have no idea why.
              So can anyone help me?
              Michael
              

  • After Update Trigger executes twice when single row is uptd thro proc

    We have the below trigger in our db. When a single record is updated using a procedure the trigger is executed twice and it inserts two records in other table.
    But when i issue an update statement using any sql client tool it is executing only once and inserts only one record in other table.
    Can any one please help me to find the reason?
    Trigger:*
    create or replace TRIGGER CX_HEADER_ESCL_T1 AFTER UPDATE OF STATUS ON CX_HEADER
    FOR EACH ROW
    DECLARE
    "b1-CTRIYJ" boolean := FALSE;
    BEGIN
    IF UPDATING('STATUS') AND(:NEW.status = 'SUCCESS') THEN
    "b1-CTRIYJ" := TRUE;
    END IF;
    IF "b1-CTRIYJ" = TRUE THEN
    INSERT
    INTO siebel.s_escl_req(req_id, created, bt_row_id, rule_id, tbl_name, created_by, group_id)
    VALUES('11111111', CURRENT_DATE, :NEW.row_id, '1-CTRIYJ', 'CX_HEADER', :NEW.last_upd_by, '1-2CU3');
    "b1-CTRIYJ" := FALSE;
    END IF;
    END;
    Procedure:
    CREATE OR REPLACE
    PROCEDURE CLOSE_BATCH
    (ChildRecordCount IN NUMBER, HeaderId IN VARCHAR2, CompletionStatus OUT VARCHAR2) AS
    CafeChildCount NUMBER;
    BEGIN
    select count(*) into CafeChildCount from SIEBEL.CX_CHILD where HEADER_ID=HeaderId;
    IF ChildRecordCount = CafeChildCount THEN
    update SIEBEL.CX_HEADER set STATUS ='SUCCESS', MODIFICATION_NUM = MODIFICATION_NUM+1 where HEADER_ID=HeaderId;
    CompletionStatus := 'SUCCESS';
    ELSE
    update SIEBEL.CX_CHILD set STATUS='FAILED' where HEADER_ID=HeaderId;
    update SIEBEL.CX_HEADER set STATUS='FAILED' where HEADER_ID=HeaderId;
    CompletionStatus := 'FAILED';
    END IF;
    commit;
    /*CompletionStatus := 'SUCCESS';*/
    EXCEPTION
    WHEN OTHERS THEN
    CompletionStatus := SQLCODE;
    rollback;
    END;

    Your problem seems not be related to the trigger restart issue I have already mentioned because you are using a AFTER UPDATE trigger and not a BEFORE UPDATE trigger:
    >
    BEFORE Triggers Fired Multiple Times
    If an UPDATE or DELETE statement detects a conflict with a concurrent UPDATE, then Oracle Database performs a transparent ROLLBACK to SAVEPOINT and restarts the update. This can occur many times before the statement completes successfully. Each time the statement is restarted, the BEFORE statement trigger is fired again. The rollback to savepoint does not undo changes to any package variables referenced in the trigger. Your package should include a counter variable to detect this situation.
    >
    If you are sure that you update a single row and that your trigger fires twice and if you can easiily reproduce the issue, I recommend that you contact Oracle Support and create a Service Request for your issue that could be an Oracle bug.

  • Revenue recognition has been executed twice

    HI all
    G/L Balance is not correct as below.
    It looks that some of revenue recognition has been executed twice. There are both items that revenue recognition has been executed twice and items that revenue recognition has been executed once within the same sales order.  I have no idea whether there is any pattern exists or not.  This issue needs to be solved by today .
    what could be the reason, can any one help me on this.
    Thanks in advance,
    Raju

    Hi Raju,
    Can u explain us in detail,
    It can be the reason like if the revenue recog is replicating through some nightly job, there r different cases it may ran twice(relication has done twice).
    Best regards
    Bhupathi.

  • CachedRowSet executing twice?

    Hi, I'm using Java Studio Creator 2, and generating a CachRowSet along with a dataprovider to the database. I'm using a customized SQL Query for it rather then the standard select statements. Here's an example of the query:
    DELETE FROM table
    WHERE table.table_column IN ( ? )  I call that data provider by using this Java code:
           try {
                getRequestBean1().getDataProviderName().setObject(1, value);
                getRequestBean1().getDataProviderName().execute();
            } catch (Exception e) {
            }The error I get is that there is a null point exception the value I tried to delete is empty. I checked the database and the record is removed.
    So based on what I saw it's executing the query twice, I stepped through the code and it throwed an exception after it ran the execute due to a null pointer exception.
    Any help regarding this matter would be appreciated, such as being able to make it only execute once... It's doing it's job it's just I dislike the fact it will throw an exception in the process.

    I figure it was just executing a stored procedure in
    the database, I never knew it had to force a result
    set. Based on the rowset specs/javadocs and Joel's blog, my understanding
    is that a CachedRowSet is not designed to work with anything other than an sql command that returns a ResultSet.
    But as you've discovered, it does execute your DELETE statement.
    However it does work with MySQL as does using
    custom MySQL commands like:
    SELECT DISTINCT last_insert_id() AS lastID
    FROM table
    As a side note, be very careful doing this. Your app server or web server likely uses a connection pool, and if it does then each execution of this may be on a different db connection. And I understand that the last_insert_id() only works on the exact same connection where you did the last insert.
    I guess that would work due it being a select
    statement. So you're saying this won't work because
    it's not a select statement and it can't simply
    create a delete stored procedure for it?If it work's for you, go right ahead - just test test test.
    I just don't like using any stuff for a purpose other than what it's designed for, as these things tend to break when you upgrade your software.
    -Tub

  • What is difference between cs.execute,cs.executequery,cs.executeupdate

    hello friends,
    what is difference between cs.execute,cs.executequery and cs.executeupdate in callablestatement.
    Thanks,
    krish.

    Krish,
    All of them have different return types and the defns are
    boolean execute()
    Executes the SQL statement in this PreparedStatement object, which may be any kind of SQL statement.
    ResultSet executeQuery()
    Executes the SQL query in this PreparedStatement object and returns the ResultSet object generated by the query.
    int executeUpdate()
    Executes the SQL statement in this PreparedStatement object, which must be an SQL INSERT, UPDATE or DELETE statement; or an SQL statement that returns nothing, such as a DDL statement.
    Thanks,
    With regards,
    Kali.
    OSSI.

  • Proving prepared statements are being reused

    How can I prove that a prepared statement from a JDBC driver is being reused / pooled ?
    What essentially I want to do is to have prepared statements reused to reduce hard parsing ... but I also need to prove that the statements are being reused. If I query the statement in V$SQLAREA, the column PARSE_CALLS does not seem to be distinguish between hard parse and soft parse:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch3204.htm#1126299
    I am only interested for now in proving the just ONE statement is being reused ... which mean that the number of hard parses is very low compared to the number of soft parses for that ONE statement.
    Regards,
    jms
    Message was edited by:
    jms

    Hi,
    No, parse calls is all soft and hard parse together. What you would see, if used absolutely correctly, would be 1 hard parse per session and many executions.
    But since v$sql is obviously not linked to v$session other than at the time of exection, you see the aggregated parse calls and executions for each cursor. So what you should see is parse calls go up relatively slowly to the number of exections.
    However, you can see soft and hard parses using the v$sesstat and v$statname views so you can see soft and hard parses on a session by session basis, be these are again aggregated, so you can't see soft / hard counts per cursor, only the total for a session.
    What I see a lot of the time is they don't get it quite right, so hard parses is low but soft parses are high, so they are still parsing when they don't need to, but at least they are binding and using shareable SQL, which is a step in the right direction.
    When I say 'they', it is a generic reference to all Java/.Nyet programmers writing front end code where they just don't 'get' parsing and binding because it's just too complicated and hey, SQL Server isn't like this...!
    HTH
    Chris

  • HT4059 Being new to iBook publishing I need to know if stats are available to determine how many times my iBook has been downloaded. Can anyone help please? Mr Ignorant

    Being new to iBook publishing I need to know if stats are available to determine how many times my iBook has been downloaded. Can anyone help please? I need to persuade someone that this really is worthwhile. Mr Ignorant.

    The only people who can possibly assist you with this is Apple Customer Relations, call your local Apple contact number and ask for Customer Relations then explain your situation clearly and politely (be firm but don't rant).
    You might want to investiage what the local laws are regarding defective goods and 'fit for use' definitions on warranties etc. Consumer Protection can be a useful tool to use or bargain with if needed ...

  • What types of samples are included with the EXSP?

    I'm considering purchasing Logic Express, but wanted to know what types of samples (orchestral, synth, drum, keyboard, etc) are included with the EXSP player. Can anyone owning Logic Express tell me what types of samples are included?
    Mac G5   Mac OS X (10.3)  

    Hello, Jeb247.
    This is merely a matter of personal opinion, but I believe that the included samples for EXSP are among the better features of the program. Granted, there are some cases where you have several instruments loosely based on the same samples run through different filters, but you are likely to find a decent array of what you need.
    You get all the Garageband instruments, as well as the ability to load the Jam Packs into EXSP. While the following list probably contains some overlap with those samples, it will still give you an idea of what's out there:
    The top-level hierarchy lists 41 different groups of sounds. After each listing, I'll note the approximate number of 'instruments' in each group:
    Piano (10)
    Guitars (11)
    Bass (5)
    Strings (9)
    Horns & Winds (9)
    Ethnic Instruments (2)
    Voices & Choir (3)
    Drum Kits (12)
    Effects(~50)
    Percussion & Specials (2)
    Analog: Bass (45), Leads (20), Pads (17), Percussive Waves (44), SpectrumSQ (25), Sweeps (30), Synthcomp (33), Waveforms (50+)
    Digital Chromatic Kits (12), Initial Waveforms (60+), Motion & FX (36), Pad Synths (46), Percussive Waves (23), Synths (31)
    FM Bass (17)
    Synth Atmospheres Layers (31), Singles (40)
    Synth Bass (45), Brass (12), Chords (21), Leads & Hooks (30), LFO Synths (21), Multi Sequence (6), Pads (44), Percussive Synths (44), Poly (28), Sidechain Chords (14), Spacious Effects (40), Strings (16), Sweeps & Swells (32), Vocalish (25)
    Now, as to the quality of the sounds... your mileage may vary. For orchestral stuff, nothing appeals to my ears like the Kurzweil -- largely because of those smooooooooooth output filters. That's not to say that the EXSP stuff isn't worth checking out; I just happen to use it for electronic textures and percussion rather than acoustic emulations. The drums simply don't cut it for me -- not nearly enough punch. But -- as I've mentioned before, you ears may report different pleasure levels.
    Suffice it to say that the EXSP comes with a substantial array of music-making potential. For the money (a freebie w/ Logic Express) it's a really good deal. Shortcomings in its sound set can be overcome by the careful purchase of additional material where your ears report unsatisfactory sounds. If you don't like the drums, iDrum or Battery might be a good idea (or my personal favorite: an outboard drum machine with dead-short latency...); if the orchestra stuff is weak, there are alternatives there, too.
    And your options for synth textures are beyond counting -- though I can specifically recommend the utterly astounding (and free!) Alphakanal "Automat". And you can have a pile of fun with the (equally free) NUSofting daHornet. And... and... the list goes on.
    Cheers,
    Michael

  • Submit statement without executing AT SELECTION SCREEN event

    hi,
      In my report since the input data is very large iam spliiting the input data batch by batch. Iam executing the report for the first batch input data and retriving the results for it.
       Then to find the result for the enxt batch input data , iam using submit statement to execute the report again. While executing the report now it should directly start from the start-of-selection event only. It should not go for At selection screen or initialization events.
    Can anyone help me how to execute the report for second time from start-of-selection event.
    Regards,
    Phyrose.

    Is code written directly under START-OF-SELECTION or you are calling subroutine in START-OF-SELECTION?
    I would suggest you to call the subroutines written under START-OF-SELECTION.
    PERFORM form IN PROGRAM prog.

Maybe you are looking for

  • Windows 7 Black screen with cursor after boot camp partition

    So I realise this is a problem that was plaguing people a few years back. So I'll go from the very start. I've downloaded a copy of windows 7 professional 64bit from the Microsoft website. My optical/CD drive isn't working, so I've been unable to use

  • Save all details error in Exception Block of BizTalk

    In orchestration A,I make a Exception Block ,created a System.Exception object and saved Exception Error in a string and checking it in admin console. In my orchestarion, I got amount value from a element Amount, used a custom xslt and in that custom

  • Question about X-series with the bundled 65W adapter, gets very hot

    Hi all,      My company purchased many X230 notebook in last year.      some are standard configuration (i3 CPU) and some are (i5 CPU).      The i3 seems to have no problem.      However, the i5 model had some issue that it can't full run all the 4-c

  • Why are my text boxes broken up in Illustrator CS6?

    I have an iMac at work with Mountain Lion and Ilustrator CS6, I have files that I have created with Illustrator from scratch but when I bring them home and open them on my iMac at home with the same system the text boxes are broken into individual te

  • Why won't my DVD play but works in Encore

    I have just finished editing a video of my daughter's school play using Premier Pro CS5. I used After Effects to create an opening motion menu with three user choices: Play Show Select Scene Select Song The links are all corect and everything does wh