What kind of transaction in procedure?

Hello,
I have a procedure to reset sequences in tables:
CREATE OR REPLACE PROCEDURE reset_sequence AS
BEGIN
     LOCK TABLE table_name_1, table_name_2 IN EXCLUSIVE MODE NOWAIT;
     EXECUTE IMMEDIATE 'DROP SEQUENCE SEQ_1';
     EXECUTE IMMEDIATE 'CREATE SEQUENCE SEQ_1 START WITH 1 MAXVALUE 999999999999999999999999999 MINVALUE 1 NOCYCLE NOCACHE NOORDER';
     UPDATE table_name_1 SET id = SEQ_1.NEXTVAL;
     EXECUTE IMMEDIATE 'DROP SEQUENCE SEQ_2';
     EXECUTE IMMEDIATE 'CREATE SEQUENCE SEQ_2 START WITH 1 MAXVALUE 999999999999999999999999999 MINVALUE 1 NOCYCLE NOCACHE NOORDER';
     UPDATE table_name_2 SET id = SEQ_2.NEXTVAL;
     COMMIT;
END reset_sequence;
My question is: how can I do this procedure in one transaction? Set to serializable for session? This procedure have high prority, but when it's executed, other process can insert to these tables and I want to prevent it.
Thanks.

That's easy, just fix the column:
SQL> create table t(c number(8));
Table created.
SQL> desc t
Name                                      Null?    Type
C                                                  NUMBER(8)
SQL> alter table t modify (c number);
Table altered.
SQL> desc t
Name                                      Null?    Type
C                                                  NUMBER

Similar Messages

  • How check what kind od SQL statement procedure do

    I would like to check what kind of sql statement type (DML, DDL , Retrive) procedure do on objects.
    is it possible?

    You could try to parse the SQL in DBA_SOURCE for the procedure in question, but that probably doesn't help much...
    Note as well that procedures cannot do DDL unless they resort to dynamic SQL, in which case Oracle itself doesn't know what objects you're working with and what you're doing with them until runtime.
    Justin

  • What kind of database driver should use for database adapter  in BPEL?

    what kind of database driver (XA or non-XA) should use for database adapter in BPEL? I have only one database adapter and no JMS.
    Thanks
    Jo
    Edited by: 799095 on Sep 30, 2010 8:35 AM

    Hi
    It depends on wheter you need XA transaction or not.
    See http://www.theserverside.com/discussions/thread.tss?thread_id=21385 third reply.
    If you only have one database and no synchronous dependency to the caller, non-XA should be OK.
    -Johan

  • 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

  • How can I check what kind of values does transport request saves?

    Dear All,
    I have changed the max.foregin exchange rate from 1% to 0% in company code global data and added a new error message 212 in work area F5. Then I transport it to QA system and PRD system.
    However in T001 table change log PRD, the address was said to be changed from a number to another number also. But I don't remember that I changed the address of a company code. And I was not able to find the value before and after the change. Do you know where I can find the address of the company code? I have tried to get address in company code global data but in the poped dialog neither of the values are found. It is strange that the addresses of other company codes in T001 are not changed.
    And in the transport request, the new number was not included. I don't very understand what kind of information was included but I know I did not change other config of the company codes.
    I have 2 questions
    1. Where I can find the address of a company code?
    2. How to see what information has been included in the transport request?
    Thank you in advance.
    Emma

    Hi Emma,
    How to see what information has been included in the transport request?
    Go to transaction code  SE10 and identify  your transport request then double click the left side you will be get tree.
    if you want you can doubleclick the tree again so that you can identify which configuration step you saved.
    Hope it is useful.
    Thanks,
    Haribabu

  • What kind of hard drive is in the hp pavillion dv6700. its about 7 years old

    its running vista, but the computer will not boot all the way.  I did a diagnosis test and it said to replace the disk drive so im just wondering what kind of hard drive is in it.   What happens is the computer loads to the the microsoft , right before you would put ur password in, and then just stays black.  
    This question was solved.
    View Solution.

    Piece of cake on your model.
    If the test indicates the drive needs to be replaced, I wouldn't argue against that info.
    You can try reinstalling the OS before buying a new HDD but if it doesn't work, then you know the drive is kaput.
    Below is the link to the service manual.
    R & R procedures are in chapter 4.
    http://h10032.www1.hp.com/ctg/Manual/c01295877.pdf
    You will also need to reinstall the operating system. You can see if recovery disks are available by contacting HP technical support.
    If you can read the 25 character MS Vista product key on the bottom of your PC, you can make your own Vista installation disk and use that to install the OS.
    If you're up to a slight but rewarding challenge you can make your own if you can read your 25 character Vista product key on the PC.
    Just download the 3 files you need at the link below, and read all of the instructions to create a bootable DVD installation disk using imageburn.
    Disregard the part of the text under the first screen shot about "extract the files to the Vista folder."
    The files were already extracted to that folder when you ran the X14.exe file by reading the text on top of the first screen shot.
    The other thing I noticed is on the 4th screen shot, where it shows Developer ID Microsoft Corporation. I had to type Microsoft Corporation in myself, and then the other codes automatically populated.
    When I went to compile the ISO file, ImageBurn gave a message that about a WIM file and ISO, and if I wanted to burn it in a different format.
    I selected No, make the ISO file.
    It was not that hard to do. I burned both the 64 bit disk and the 32 bit disk in case I ever need them.
    I tested both of them on my hp dc7100 CMT desktop PC, they worked perfectly.
    When you enter the product key, it knows what version of Vista you have.
    http://en.community.dell.com/support-forums/softwa​re-os/w/microsoft_os/3317.2-3-microsoft-windows-v.​...
    After you successfully install Vista, you can then install the drivers from your PC's support and driver page.
    This is where I buy my PC hardware:
    Top of the line 250 GB 7,200 RPM drive:
    http://www.newegg.com/Product/Product.aspx?Item=N8​2E16822136279
    A standard 250 GB 5,400 RPM drive of good quality.
    http://www.newegg.com/Product/Product.aspx?Item=N8​2E16822236238
    You need to transfer the caddy, screws and connector from the old HDD to the new one, so don't toss anything out until the job is done. 
    Paul

  • What kind of monifications or configurations will be effected  R3 upgraded

    Hi experts,
    Now we are upgrading our R/3 system to ECC6.0EHP4, there is one common questions which confused me log time.
    What kind of system monifications or changes will be effected during the ERP( or R/3) upgrade
    Since normally we know that the monificatioin of SAP Standarded Program (which not make the enhanced changes) will be over writed, but recently we found that the changes in TC BS22 also has been over writed which can not been seen in the  modification adjustments (SPDD or SPAU).
    So I was really want to know, what kinds of system changes ( kinds of programe changes or kinds of system configuration changes) will be overwrited or effected during the SAP R/3 system upgrade???
    We need to clearify this so during the testing we can have an specific aim to handle these.
    Thanks and waiting for all your suggestions
    Regards
    Ethern

    > Since normally we know that the monificatioin of SAP Standarded Program (which not make the enhanced changes) will be over writed, but recently we found that the changes in TC BS22 also has been over writed which can not been seen in the  modification adjustments (SPDD or SPAU).
    The table belonging to BS22 is a SAP owned table and can hence be certainly overwritten/changed during an upgrade. Quite a few support packages add entries to those tables (if you just search for notes with BS22).
    You're right, this is pretty confusing. From an upgrade perspective it's a change of the standard but for the SAP system it's just a customizing entry which needs to be even transported manually. I think this is a relict of ancient R/3 versions. The reason why it's behaving like this can only be answered by the support (who will tell you simply not to change that table).
    I'd suggest adding a special procedure in your upgrade project to check those entries separately and if you're really interested open an OSS call.
    Markus

  • What is thr transaction for posting the checks.

    Hi
    What is the transaction for posting the checks
    and i want to get details based on the posting date. so any one tell me the tables used in this.

    What kind of operation are you talking about.
    For example :
    F-53 , F-58, F110 are transactions to post vendor paymment with check
    F-28 transaction to post customer payment with check (without creating it)
    FF68 for check deposit
    Regards

  • What kind of online backup tools does iCS have? And are other backup mechanisms supported?

    What kind of online backup tools does iCS have?
    And are other backup mechanisms supported?
    <P>
    With iCS2.x, the admin utilities provide `csbackup` command to backup
    individual calendar or the whole calendar database. Solstice/Legato
    backup functionality is also available. The advantage with the Legato
    backup is that the administrator can, in addition, perform backup per user.
    (Legato backup utilizes csbackup and csrestore for calendar backup/restore.)
    Please refer to the section on Backup and Restore Procedures in the
    iPlanet Calendar Server Administration Guide:
    http://developer.iplanet.com/docs/manuals/calendar/ics20/calag/calagadm.htm#1062608
    Although it is not yet documented in the 2.x Admin guide, <b>`csbackup -l`</b>
    is the command used for initiating Legato backup directory structure (refer to
    Step 1 under Backing Up Calendar Server Data).

    What kind of online backup tools does iCS have?
    And are other backup mechanisms supported?
    <P>
    With iCS2.x, the admin utilities provide `csbackup` command to backup
    individual calendar or the whole calendar database. Solstice/Legato
    backup functionality is also available. The advantage with the Legato
    backup is that the administrator can, in addition, perform backup per user.
    (Legato backup utilizes csbackup and csrestore for calendar backup/restore.)
    Please refer to the section on Backup and Restore Procedures in the
    iPlanet Calendar Server Administration Guide:
    http://developer.iplanet.com/docs/manuals/calendar/ics20/calag/calagadm.htm#1062608
    Although it is not yet documented in the 2.x Admin guide, <b>`csbackup -l`</b>
    is the command used for initiating Legato backup directory structure (refer to
    Step 1 under Backing Up Calendar Server Data).

  • What is the Transaction/Program which gets triggered when file

    What is the Transaction or Program which gets triggered when file has been placed on application server to generate the Inbound IDoc from the same.
    Please let me know the procedure to automate the process of generating Inbound IDoc when the file has been placed in application server path...
    Thanks for your reply ....
    regards,
    G.Reddy

    hi
    MASTER_IDOC_DISTRIBUTE fm is used to create a IDOC for outbound & for inbound
    try this
    you can use master_ale_distribute function module to create the idoc.but before that you need to populate two internal table to pass in to this function module.
    1.it_edidc = this internal table tells the port,partner profile etc.this internal table having the same structure of edidc table
    2,second you create the internal table conatains the data records.this table got the the structure of edid4.
    3.populate these two internal table and pass this to this function module
    4.you can populate the second internal table from your flat file by writing some upload program
    FORM master_ale_distribute .
    *PERFORM get_mestype.
      wa_edidc-mestyp = wrk_mestyp.
      wa_edidc-idoctp = wrk_idoctyp.
      CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
      EXPORTING
        master_idoc_control                  = wa_edidc
      OBJ_TYPE                             = ''
      CHNUM                                = ''
      TABLES
        communication_idoc_control           = it_edidc
        master_idoc_data                     = it_idoc_data.
      IF sy-subrc  0.
      ELSE.     
        READ TABLE it_edidc INTO wa_edidc INDEX 1.
        IF sy-subrc = 0.
          MESSAGE s006(msg) WITH wa_edidc-docnum.
          PERFORM modify_idocnum.
        ENDIF.
      ENDIF.
    ENDFORM.
    Regards

  • I want to use the Web module to publish to the a website... What kind of server do I need to be able to publish my website?

    I want to use the Web module to publish to the a website... What kind of server do I need to be able to publish my website?

    You don't need a server, you just need a web hosting package such as the ones from GoDaddy or many other hosts. You then send the web gallery directly from LR to your web space.
    As you're asking such basic questions, it might be best if you read articles like this and see if a friend or colleague can get you started.

  • I am traveling to India, north and south, with my ipad 2, G-3. It is activated by AT and T. How do I use it in India? Do I need to purchase a sim card there and if so what kind? Would they be available in the Delhi airport or where else in central Delhi?

    I am traveling to India, north and south, with my ipad 2, G-3. It is activated by AT and T. How do I use it in India? Do I need to purchase a sim card there and if so what kind? Would they be available in the Delhi airport or where else in central Delhi?

    Also in order not to pay a fortune for the service is it better to acquire if needed a SIM card only once there?
    Check with your carrier about roaming charges.  They are usually prohibitive.  Best to get a local SIM.

  • I saw that I can order an iPhone and they will connect it to my Verizon but I have no idea what kind of package to get

    I have 2 lines that the contracts are expired.  I see that I can set an appointment, have them set up the iPhone of choice to my Verizon account and it even says that they will give me any product upgrade benefits.  I find this hard to beleive.  For one of the lines i have a product upgrade of $50 (Verizon calls it New Every Two which they did away with but still offer it to people who had it and did not use it yet).  On my other line there is a $35 product upgrade.  I can't beleive that Apple would give these product upgrade rewards( the $50 for the one line and the $35 for the 2nd line)
    does anybody know how to tell if someone is with a carrier like Verizon, how to figure out what kind of iPhone package I should get so Verizon can't get me for going over my ;allotted minutes, text messages, internet usage, etc.  I have never used a smartphone so I have no idea how to tell what kind of package I need for the iPhone.  anybody else know?  I saw that Sprint has a package that is "unlimited with all 4 services like text messages, internet usage, calls, etc for $99/mo.  is this still the case?  Verizon does everything they can to rip you off and charge you for going over.  I have not been able to figure out how I can tell when I am getting close to going over.  is there an app to tell this?
    Any suggestions about getting this servic where apple sets it all up, teaches you how to use the phone, gives a decent warranty and offers applecare.  any other carier that would be better?  I heard that the unlimited data transfers does not mean "unlimited" but they still put an amount on the unlinites and if you go over you get docked.  I hate Verizon.

    I should say before everybody else does I never learned how to type and barely learned how to write and spell so I probably should have done this some other way.  Sorry.

  • I need to install on macbook pro (early 2008) one hard disk 1 TB. Is it possible? What kind of HD is it better?

    I need to replace the HD of my macbook pro (early 2008) with another one with 1 TB storage capability. Is it possible? What kind of HD is it better?
    Thanks
    Enrico

    Take a look at what is offered by Mac specialists, such as OWC http://www.macsales.com and see what drives they handle.  Their drives are all guaranteed to be compatible with Macs.  And they have on-line videos that show how to do the installation.
    Even if there are problems getting them to deliver where you live, you can get ideas of what works well with your system.

  • I have one HDMI port on my television that is currently used for my hard drive/free view box.  What kind of adaptor can I buy so I can have the hard drive and my apple tv device plugged into the same HDMI PORT?

    I have one HDMI port on my television that is currently used for my hard drive/free view box.  What kind of adaptor can I buy so I can have the hard drive and my apple tv device plugged into the same HDMI PORT? Is it a switch or a splitter?  And where is it best to buy one?  Thanks!

    Welcome to the Apple Community.
    You need an HDMI switch.

Maybe you are looking for

  • Move rented movie from external disk to internal disk

    While at home, my iTunes library is located on an external USB drive. I've rented a movie while the disk was attached and of course it was downloaded to the external disk. But now I'd like to leave the house and watch that movie on the road. Is it po

  • Podcast episode not updated on itunes

    I uploaded a new episode to posterous however iTunes has not updated my episode and still has not refreshed my cover art. Here is my feed http://mysemeneya.posterous.com/rss.xml Feed Address:     http://feeds.feedburner.com/ MySemeneyaPodcast Please

  • Need help installing classic/OS X (10.4) on PowerMac G4

    I'm hoping someone can help me, my brother bought himself a new computer and gave me his Powermac G4 http://support.apple.com/specs/powermac/PowerMac_G4_Quicksilver2002.html the M8666LL/A model. Now this computer is a mess so I want to completely ref

  • Script to extract grouped elements

    I have some design files where sketches have been created by designer and grouped together. Is there a way to extract all grouped elements discretely and save as JPG/PNG?

  • Cc package not installed?

    Help! I can get my sun cc to get working! All I get is a message that says that "usr/ucb/cc: language package not installed". What does that mean? Does it says that the package is not in my machine? If it is where and how can i installed it back into