Update a sequence

Hi
I have 2 DBs that looks exactly the same. They are both production versions, one is online(A) the other(B) is not. A a certian point I will export data from A and import into B. DB A will still run for a week and will of course generate new sequence numbers. After a week I will switch over to DB B, but now the sequence numbers are out of sync. Is there any way I can update a sequence? Something like':
UPDATE sequence_name set sequence_number ='a number'.
Thanks for your feedback.
Regards
Truls

Here's another way to do it as demonstrated below:
SQL> create sequence altest start with 1 nocache;
Sequence created.
SQL> select altest.nextval from dual;
NEXTVAL
1
SQL> /
NEXTVAL
2
SQL> alter sequence altest increment by 5; <<< you can use alter instead of drop/create or PL/SQL loop
Sequence altered.
SQL> select altest.nextval from dual;
NEXTVAL
7
On a separate note:
I have 2 DBs that looks exactly the same. They are both production versions, one is online(A) the other(B) is not. A a
certian point I will export data from A and import into B.If the databases are supposed to be identical have you looked into database cloning instead of export/import. We reload
a test database with production data every month. We used to use export/import which took 2 hours. We now use the
cloning method and it takes 20 minutes to get an exact copy. You do have to be able to shut down the database you're
copying though, which could be a drawback depending on your situation. If you're interested I can post more information
about cloning here.

Similar Messages

  • HT1600 I want to update my Apple TV software but cannot find the recommended Settings General Update Software sequence?

    I want to update my Apple TV software but cannot find the recommended Settings>General>Update Software sequence?

    Start here

  • Database Polling - Using Update a Sequence File - Not working

    Hi All,
    We need to use the Database Adapter Polling feature to poll a table for inserts and updates. In the database configuration page of "After Read" , we have used "Update a Sequencing File".
    But the process is not being triggered. Any one has successfully tried this option.
    Do we need to do any additional configurations ?
    Please respond. Its urgent.
    Thanks,
    Sayama

    If this is your first time working with the Property Loader I recommend the following steps:
    - Save the Sequence File and go to Tools-> Import/Export Properties…
    - Set the Data Location to be a File (You can change it later if you need to use a Database).
    - Enter the file path.
    - Select a File Format.
    - Go to the Properties Tab and from the Available properties list (tree) select your global variable. The global variable should appear in the selected properties list.
    - Click the Export Button.
    - If you go back to the Source Destination File and click on View File you will notice that the file you selected was generated and that it has a special format.
    You will identify the name of your variable under <File Globals> and the variable value under ‘Variable Value’.
    Change the variable value to whatever value you want and save the file.
    - Now, if you click the Import Button, the tool will get the value from the source file and set the edit-time copy of the sequence global variable to the value you entered in the file.
    - Click the Done button and go and check the value of the sequence global variable. The value should be the value you entered in the file.

  • How can I force update image sequences?

    I am using Premiere to composite various image sequences from a 3D program, Blender.  Many times I export a draft version from Blender, import the sequence to Premiere, place it in the time line, then I find that I want to make some changes in Blender and re-render some of the frames.  Of the frames that I re-render, Premiere only updates some of them.
    I did a test where I re-rendered a section with a different background color to the scene.  In Premiere it updated the first three frames, then the fourth was the old image, 5th and 6th were new, 7th was old, 8th and 9th were new, and so on.  It did this for the entire updated image sequence, using a combination of old and new frames.
    I did the above test three times.  The first time I saw mixed frames, the second time everything imported fine, the third time I got the mixed frames again.
    If I restart premiere, then it goes through the "media pending" screen for all of my media and it then shows the correct updated frames, but that would be inconvenient to have to restart premiere every time I want to see my new frames.
    I am using Premiere Pro CS5.0.3, on a 2.66 Ghz Quad-Core Mac Pro with 8GB of RAM.  The files are located on an eSATA RAID 5 array.
    Is there a way I can force Premiere to update the frames in the image sequences?
    Does anyone else have these problems?  What do you do when dealing with many image sequences that you update frequently?
    Thanks for any help.

    Is there a way I can force Premiere to update the frames in the image sequences?
    Three choices.
    1. Don't leave Premiere open while rendering in another
    application (this is what I do).
    Overwritten files will update when you launch Premiere.
    2. Right-click your image sequence in the Project window,
    select "Make Offline...>Media Files Remain on Disk>OK.
    Then, right-click your image sequence in the Project window,
    select "Link Media...
    3. Close then re-open your project without exiting Premiere.
    File>Close (Ctrl>W), then re-open same project.

  • Update 700 Sequence Files

    A couple years ago we created a template for all of our TestStand sequences which included the "Setup" and "Cleanup" using discrete subsequence calls and to simplify and add functionality I've created a new Master Initialize and Cleanup
    OLD FORMAT:                                         NEW FORMAT:
    Setup:                                         Setup:
      Initialize Network                           Master Initialize
      Initialize Database
      Record Tester Information
        (More exist here as well)
    Main:                                           Main:
      (Specific Test)                                (Specific Test)
    Cleanup:                                      Cleanup:
      Report Test Status                         Master Cleanup
      Close Database
      Close Network
    End                                              End
    Also, the original templates did NOT include the required Locals.ResultList variable (the author deleted this from all of the templates, and thus from all of the tests).  We've changed from a home grown XML reporting (problematic) to use the existing TestStand HTML reporting and this variable is required.
    So I need to update all of the test sequences that we have to:
      1. Replace the existing Startup steps with the new "Master Initialize".
      2. Replace the existing Cleanup steps with the new "Master Cleanup".
      3. Add the Locals.ResultList variable back into the scripts.
    Problem is that I have nearly 700 test sequences to update with these 3 changes.
       I have considered changing the first sequence in Setup to call the Master Init a and similar to the Cleanup to call the Master Cleanup and make all of the others basically null calls (exit immedately), but we may need these some other functions and I still need to add in the Locals.ResultList variable anyway.
    SO the question is:
      Is there an easier way to update these 700 sequences besides doing the necessary:
         Delete Setup
         Paste New Setup
         Delete Cleanup
         Paste New Cleanup
         Paste Locals.ResultList variable
    Mike

    You can use a simple program to automate this for you. You will have to call the TestStand API to do these copy paste and delete work for you.
    Are you using LabVIEW...? What is you exact requirement...? From your post what I understand is you have to delete few steps in the setup and cleanup and insert sequence call steps there. Is that correct...?
    Thanks,
    Sathish

  • Updating the sequence number on import?

    OK, this is probably and oldie, and obvious to the informed observer, but I looked out on the web and in here, and apparently I"m not asking the right question 'cause I didn't find the answer:
    When doing an import into Lightroom, I can rename the files.  As part of the rename I'm incorporating
    a sequence number.  I can set the Start Number, BUT once I"ve imported the files, how do I get the
    Starst Number AUTOMATICALLY updated so on the next import it starts at the new value?
    AND, have it retained betwen sessions?  I don't want to have to run around finding the Start Number the
    next time I start Lightroom...

    Ok, I think I have found out what is going on and have answered my own question.
    The 'Import #' and 'Image #' use the entries from catalog settings ONLY if you are importing pictures.
    It does NOT work if you are using 'File / Rename Photo'.
    In that case, they always seem to start at 1.
    It doesn't sound like the logical way to function, but at least I think I have a handle on it now.
    Gary

  • Update All Sequence files automatically (Types)

    We have a very large number of sequence files that need to be updated.  The "Types" have changed.
    Is there a way to have TestStand (2010 f1) update all the files in a Directory, or hopefully recursively?
    What I'm used to doing is to check all the files out of our Version Control, select about 20 files at a time and open them in TestStand, Save them all and then close them, then do another set...
    Is there a faster way?  (I would expect to check them out of Version Control.)
    Mike
    Solved!
    Go to Solution.

    Take a look at the Sequence File Converter located at Tools >> Update Sequence Files
    CTA, CLA, MTFBWY

  • Problem in updating 300 sequence files.

    Hi,
        We have around 300 requirements and each requirement trace to one sequence file. So there are total 300 sequence files. In each sequence file we have a set of variables which hold the address which is present in map file.
        As you know for each release map file updates there by we need to modify all variables in all 300 sequence files and rerun. I would like to know any solution where I can store all variables in one text file and read a variable whenever I required. 
       Please help me better solution for this type of problem.
       It would be great help if any sample sequece file attached. 
    Thanks,
    krishna 

    Hi,
    Why do you need 300 sequence files for 300 requirements??? You can keep each requirement in a seperate sequence in a single/multiple sequence files.
    With regards to reading your variables, you can read from a file through activeX or easier still, doing it through a code module (say a LabVIEW VI or CVI module).
    .......^___________________^
    ....../ '---_BOT ____________ ]
    ...../_==O;;;;;;;;_______.:/

  • System.Data.Entity.DbSet entity doesn't get updated with sequence nextval

    I am using EF6 with oracle 12c client. I need dynamic entity object to be added in System.Data.Entity.DbSet
    System.Data.Entity.DbSet entity = Request.Context.Set(obj.GetType());
    Object Updated = entity.Add(obj);
    Result_SaveChanges = Request.Context.SaveChanges();
    int sequence = Request.Context.Database.SqlQuery<int>("SELECT " + SeqName + ".currval FROM DUAL").FirstOrDefault();
    Save Changes doesn't update the object's key but fetching the sequence give me the updated value. I need System.Data.Entity.DbSet entity to be properly updated so that i can insert child entities too through their navigation properties.

    Hello Sidra,
    Since you are working with EF based on Oracle database provider, for this, i suggest that you could post it to the Oracle related forum:
    https://community.oracle.com/welcome
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Do I have to install acrobat updates in sequence?

    I choose to disable Acrobat automatic updates and install them manually.  I find the end users don't install updates and usually ignore the acrobat updates icons. 
    The only issue is that I'm not able to install the latest updates unless I go through each previous update first.  For example I have Acrobat 11.0.0 from DVD and I want to update to 11.0.9 but it fails unless I install 11.0.1, 11.0.2, 11.0.3 and so on. This seems silly. To bring Adobe Acrobat up to date I will have to install over 900MB of patches. 
    Do the updates need to be applied in sequential order?
    Thanks

    The way it works if you just did a normal installation from the default installation file is as follows:
    - The base installation 11.0.0
    - The latest Quarterly Update (11.0.09 at this time)
    * Note:  If there are Security Updates between the Quarterly Updates then you need to apply those but as soon as the next Quarterly Update comes out you are back to first and last.

  • Updating color sequences from final cut

    I am completely new to Color but really like the extra control it seems to have over FCP color options. I am wondering how one goes about adding new clips to an already timed Color file? Basically, I have most of my fcp sequence in place and want to get a head start on the timing phase but there is one shot in particular that we cannot yet shoot. What is the best way to time what I have, resend to fcp, and then when the new shot is added to my timed sequence, import everything into color, have my grades still show up on the other clips so I can transfer them to the new clip, and then re-export? Hope that makes sense.

    "Color timing" is more of an analog concept with actual lights and timers than it is a digital concept.
    Typically, one doesn't start color work until the edit is locked. However, if you're chomping at the bit, you can change your edit within FCP and then follow the "reconform" procedure outlined within the Color User Manual. Be aware that the reconform procedure has been historically problematic for Color (Final Touch).

  • Updating a Sequence To Reflect in Other Sequences

    I taped an interview on 2 camera's. I use my Sony FX1 HDV camera for my main HQ audio and 2nd camera, while I use the other camera, Canon 7D, for my First Camera. Then I sync up the Audio in Final Cut.
    This weekend I wanted to edit, but I didn't have the Sony to capture the HDV tape with the better audio.
    So I got the Canon footage onto my computer. Then, I created a "RAW Footage" sequence and dropped the Canon footage into it. I figured I could cut from this sequence as if it were the raw footage, and then go back and add the better audio track to the sequence.
    So I cut from the RAW Sequence and had a few new sequences.
    Then I got the HDV tape with audio imported and synched up the audio in the "RAW Footage" Sequence, however, this change does not reflect in the newer sequences.
    Is there a way to do this, or do I have to go and synch it all up cut by cut?

    I figured out an easy workaround by just cutting and pasting the entire new sequence into the new ones ;P

  • Should I load updates in sequence if there are more than one...

    I have WRT54GS (no version #), should I add driver updates in sequentially ? I also have WAP51AB Dual Band Access Point (no version #), and BEFSR41 (no version #) but printed User Guide states on cover
    to install BEFSR41 Ver. 2.

    Rather than "driver" updates, I assume you mean firmware updates.
    You do not need to install them in order.  Each firmware update is complete.  Only the latest firmware upgrade needs to be installed.
    However, please note that you should only install the firmware posted for your model number and version number.   For example, if your WRT54GS is (hardware) version 4, install the firmware for version 4, NOT the firmware for version 6.
    If the router WRT54GS does not have a version number on it, call Linksys and they will look up the router serial number and tell you which version you have.
    Message Edited by toomanydonuts on 12-16-200601:15 AM

  • Boot Camp Update Installation Sequence for Windows Vista ?

    Hello,
    how is the installation order for Boot Camp 3.0 ? Shall I install it after the Windows Vista installation or after the Service Pack 1 or 2 because Boot Camp 2.2 need Service Pack 2. If I look in the Boot Camp 3.0 manuals, there aren't any details about Service Pack 1 or 2.
    I thank you indeed for the help.
    Greets

    No idea ?

  • I have the iphone 4.  Before I update to ios 5.1, do I first need to update (in sequence) ios 5 and ios 5.0.1

    hello?

    much appreciated......i have the iphone 4 with the latest version of the ios for that model PRIOR to when Ios 5 was released, it's ios 4.3.3   Do I have to connect to itunes to get ios 5.1 or can i get it over the air like i did for my ipad (original) which already had ios 5.0.1

Maybe you are looking for

  • Windows 7 desktop (redirected folder) icons layout

    Please help me to solve this issue. Our computers louse desktop icon layout after returning from sleep. Important facts about our setup: Windows 7 professional SP1 64 bit Redirected folders We louse desktop icon layout every time after computer louse

  • Dynamic Forms in Dreamweaver?

    Hi guys, We hav a project using livecycle designer; but that relies on the user having adobe reader and in early user testing some folks complain about having to install it (WOW_i mean it's free, great, and takes two minutes!!!) So we thought we migh

  • Create SQL Job with Invoke-Sqlcmd

    I'm trying to run a set of .sql files, i didn't know how to pass a common variable to all, so i've started running the statements directly in ps.  One of these creates a job but i'm running into all of the errors due to the special characters and the

  • SAP&_TRANSAKT

    hii    i want to display all the users with a particular t-code so i am executing suim but when i am clicking on the below mentioned path      user information system         --->user >user by complex selection criteria > by transaction authorization

  • Selection breaks after inserting into dataProvider

    I have been battling this issue for a couple of days now. I have a HorizontalList that is using an itemRenderer component that I created. When I insert an item into the dataProvider using addItemAt.... 1) the item is inserted 2) i see the item render