Sequence should always start with 1

Hello,
i am using a sequence in a Mapping. But by starting the mapping the second or 3rd time the sequence did not begin with the value 1 but with the last value + 1 of the sequence in the 1st mapping.
Is it possible to use a sequence so that it always begins with the value 1 everytime you start the mapping?
Regards,
vinzi

I'm not sure I quite understood what you want, lemme get this straight:
U have a sequence named SEQUENCE and you use it in 3 different mappings. When you finish run the first, you want it to restart counting?
If so, then, I'm afraid you'll have to re-deploy the sequence. But you don't have to do it in Control Center.
You may create a stored procedure that creates the sequence using 'EXECUTE IMMEDIATE' facility. Then, use it as a pre mapping process. It would be something like:
-- This one you'd use in the pre-mapping process
create or replace procedure Create_seq as
begin
execute immediate 'create sequence bla bla bla bla';
end;
-- This one you'd use in the post-mapping process
create or replace procedure drop_seq as
begin
execute immediate 'drop sequence bla bla bla bla';
end;
Then, using this procedures in each mapping you want to use the same sequence. That should be enough.
Good luck

Similar Messages

  • [SOLVED] XFCE always starting with the US keyboard

    Hi guys.
    Recently I came back to XFCE and I have one problem: it always starts with the keymap set to US. I have to manually change it to PL (which I need) with setxkbmap. Also, when I'm using the panel plugin I cannot choose any keymaps other than the currently selected.
    What can I do about it?
    Last edited by JeremyTheWicked (2008-10-12 21:49:56)

    The way I deal with the multimedia keys is that
    1) figure out what keycodes they generate (run 'xev' and do some presses)
    2) assign the correct name to them via xmodmap
    maybe 3) use xbindkeys to let them do what they should do (but this is probably not necessary, DEs like xfce should be able to act just based on having a correct name assigned to the keypresses)
    the xmodmap stuff:
    ~/.xmodmaprc wrote:keycode 144 = XF86AudioPrev
    keycode 153 = XF86AudioNext
    keycode 162 = XF86AudioPlay
    keycode 164 = XF86AudioStop
    and then have 'xmodmap ~/.xmodmaprc' executed at X start (again, some DEs do this automatically, some don't)
    But! maybe figuring out the correct option for your keyboard might render all of the above steps unnecessary. I don't know a good place to look for the options, except closely inspecting the contents of /usr/share/X11/xkb - there's a lot of stuff, but that's for instance where I found out the possible variants for the us keyboard.

  • Tetris always starts with the same blocks

    Has anyone else noticed that the first game in Tetris after launching it always starts with the same blocks? For me, it always gives me the red "Z" block, the yellow square, the green "Z", orange "L", purple "T", blue straight block, blue "L", and so on. Every time. Without fail. And although my second game starts with something different, all second games always start with the same sequence too (purple "T", orange "L", yellow square, green "Z", red "Z", and so on).
    Seems to me like whoever wrote the random number generator used by Tetris did a very poor job. Hopefully EA creates a version 1.1 to fix this, and Apple makes the update available for free to people who already bought Tetris. I find it hard to believe that something so obvious made it past QC.
    PowerMac G5 Dual 1.8   Mac OS X (10.4.5)   5G iPod 60GB

    Definitely agree about the need for a 1.1 update. The random generator and also the fact that, on my iPod at least, if I am listening to music and playing at the same time, whenever there is a change in tracks, the game locks up for a few seconds and I can't see the piece and it ends up dropping some place unexpected. This desparately needs to be fixed as many a 12th level game has been ruined because of this.

  • Mail app always starts with the standard account.

    iPhone 5s
    iOS 7.1.2
    Mail app always starts with the standard account.
    Can´t it start in the mail overview, where all different mailboxes are shown.
    iPhone 4 did it..
    Opens in standard account:
    Should open in MailBox-Overview: (here just one mailbox)
    7.1.2

    After some searching I have found a solution. I had to delete the contents of the following folder:
    ~/Library/Mail/myemailaccount/.OfflineCache/
    Note: replace "myemailaccount" with the appropriate folder on your computer that represents your e-mail account. Once I deleted the contents of this folder (there were 2 files), and restarted Mail, there were no problems.
    Hope this helps a few people in the future!

  • Satellite L500-1ek - setup system always starts with 800x600

    I have new Satellite L500-1ek notebook with Windows 7.
    Whatever screen resolution I setup system always starts with 800x600. And not only after restart but even when I logout my profile and login again.
    More: I use also external monitor. I can have mirror of my laptop screen on the monitor or only display on monitor but whatever I do I cannot have extended screen.
    When I try to set it up I'm simply ignored by driver.
    So I tried to install newest driver. I downloaded it from Toshiba site but it never installed saying me that my system did not meet minimum requirements.
    What to do now?
    Marek

    Hi Marek,
    > I downloaded it from Toshiba site but it never installed saying me that my system did not meet minimum requirements.
    As far as I know your notebook is equipped with Intel graphic card and so you are installing the latest display driver from Toshiba website. Is this right?
    Well, I have to say that I had the same issue on my Satellite U400 that is also equipped with Intel graphic card. The solution for this problem was pretty easy: I installed the driver via device manager. There select the graphic card, make a right click on it and select Update Driver. In next windows choose the advanced installation where you can choose the driver directory yourself. After the installation make a restart and thats all! :)

  • Phptoshop CC always starts with window open

    Dear reader,
    Photoshop always starts with opening a window (grey) at start-up or when closed en re-opened. How can I close this window permenently so that i can see my desktop when closing last Photoshop picture (window).
    With kind regards.

    Sounds like your on a mac and want to turn off the Window>Application Frame

  • A name should not start with any special characters

    I need to put a condition in iF statement such that a name that is given by the user should not start with any special charecters.A dialog box should display indicating this conditon.Can u plz give sample code for this.My code is as below.
    //text box for giving the name
    JTextFeild ReportNameText;
    //the name is stored in String
    String name=ReportNameText.getText();
    //Here tell me how the if condition should be written
    //condition to be mentioned

    Already asked, and answered, here: http://forum.java.sun.com/thread.jspa?threadID=727919
    See reply 4 in that thread, and scsi-boy's suggestion of writing another
    method to check for "special" characters. And the links to the String
    and Character API documentation given.

  • How should i start with web dyn pro abap

    Hi,
    I have been working on webdynpro java now i would like to start working on webdynpro abap
    could any one tel me how should i start with it.. pdfs, blogs would surely help??
    i do have sufficient knowledge of abap too..
    some brief idea about what is "web dynpro for abap" would surely help me
    Thank u in advance...

    hi,
    please do a search before posting for basic questions, i searched the same and got around 700 hit.
    any ways check these links.
    As the name suggests Web Dynpro for ABAP uses exactly the same meta model as its cousin Web Dynpro for Java. A Web Dynpro component, a Web Dynpro view, a Web Dynpro model, a Web Dynpro controller have the same semantics both for ABAP and Java. The main difference is the designtime environment, the development infrastructure and the runtime environment.
    The designtime environment is properly embedded in the ABAP Workbench where Web Dynpro artifacts are simply a new category like BSP applications or classical dynpro based applications before. Also no surprises regarding the development infrastructure. The correction and transport system keeps track on all changes that are done, versions them and helps to propagate the Web Dynpro application from development to production like you would do with ordinary BSP or dynpro-based applications.
    Last not least the execution platform is the ABAP server that produces application content ready to be integrated in the NetWeaver Portal seamlessly. Features like portal eventing can be used between applications written in ABAP or applications developed with Java.
    The following r excellent websites containing PDF & PPT docs on ABAP Web Dynpro:
    Web Dynpro for ABAP in SDN
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/512040e1-0901-0010-769c-c238c6ca35d9
    Developing ABAP Applications Using Web Dynpro
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/d41b25d2216babe10000000a1553f6/frameset.htm
    Web Dynpro ABAP: Development in Detail
    http://help.sap.com/saphelp_nw2004s/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm
    WDA Sample programs & tutorials
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Web Dynpro ABAP Demonstration Videos
    Web Dynpro ABAP Demonstration Videos
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11
    SAP Web Dynpro Overview
    http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2005/presentations/12-WebDynpro-Overview.ppt
    Web Dynpro General Concepts
    https://admin.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/30ea953b-8e57-2910-4e85-f7be60b00407
    Web Dynpro
    http://help.sap.com/saphelp_nw2004s/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
    Web Dynpro for ABAP: Tutorials for Beginners
    Web Dynpro for ABAP: Tutorials for Beginners
    Developing ABAP applications using Web Dynpro Configuration Scenario
    http://www50.sap.com/businessmaps/8729920B31E343F099B71340B15F06DB.htm
    Web Dynpro for ABAP
    http://www.vnsg.nl/temp/508773747/A1-WDA_Themadag.pdf
    Yogesh N

  • What apple certification should I start with?

    What apple certification should I start with?
    I am confused with which certifications I should work on first to be able to work as a technician and application support individual.

    I would start with the basic Mac Integration. It's a quick and easy test to see if you know the basics. If you can pass this, then move foward from there.
    Do you plan on taking clases or self study?
    http://training.apple.com/certification/macosx

  • Should I start with Entity Object or Java Class Diagram ??

    Hi,
    I come to J2EE / OO application development from non-oo programming world. I am still confused about what step-by-step development approach should I take ?
    Should I :
    - start with creating Entity Object from available database table ?
    - should I start with Java class diagram, followed by generating database tables, then create EO from it ?
    Could anybody please help me, what best practice step by step development approach should I take ?
    Is there any white paper / docs about this ?
    Thank you for your help,
    Krist

    Krist,
    If you are not from the OO world then you may be interested in this new site on OTN (http://otn.oracle.com/formsdesignerj2ee) There is a workshop that starts by looking at an existing datamodel and builds up from there.
    If you are starting from nothing, you can indeed start higher at the Class Model level.
    I recently started discussing data modeling on my blog (http://www.groundside.com/blog/content/SueHarper/) and there are some very good comments(feedback from readers) that may possibly be useful to you.
    If you are new to the UML modeling world, I recommend you read two very good papers by Jan Kettenis on OTN (http://www.oracle.com/technology/products/jdev/collateral/collateral10g.html) They are Getting Strted with UML Class modeling and Getting Started with UML Use Case Modeling.
    Shay pointed you to Toplink. There are a lot of resources on OTN for Toplink, including tutorials.
    Personally? I think if you have time, and if you can, start with a Class Model and perhaps a Use Case model, then you can start planning your application development from a solid base.
    Regards
    Sue Harper

  • Which Oracle Certification Should I Start With

    Hi,
    I'm looking for some advice on which Oracle certification I should start with. Let me first tell you about me and my business goals. I an new to the SQL world but have a firm grasp of the RDBMS. I have also worked as a Business Analyst for a company that is doing an Oracle upgrade including the EBS. I have had to do some very basic queries. My business goal is to improve my Oracle database skills.
    I would like to add Business (Data) Analyst to my job description some day. I would like to be both a Business Analyst and a Business Data Analyst. I have been asked to work as a jr. DBA in the past, and would like to continue to pursue those options. Currently, my work seems to evolve around Oracle as opposed to the other businesses out there.
    Given this information, which certification would you recommend I start with. Please let me know if you require additional information. This is my long term business goal so I will take as much time as needed to get it done. I was thinking I should start with *1Z0-051 SQL Fundamentals I* (11g). Any thoughts?
    Thank you in advance!
    CRC_05

    Hi;
    I'm looking for some advice on which Oracle certification I should start with. Let me first tell you about me and my business goals. I an new to the SQL world but have a firm grasp of the RDBMS. I have also worked as a Business Analyst for a company that is doing an Oracle upgrade including the EBS. I have had to do some very basic queries. My business goal is to improve my Oracle database skills.
    I would like to add Business (Data) Analyst to my job description some day. I would like to be both a Business Analyst and a Business Data Analyst. I have been asked to work as a jr. DBA in the past, and would like to continue to pursue those options. Currently, my work seems to evolve around Oracle as opposed to the other businesses out there.
    Given this information, which certification would you recommend I start with. Please let me know if you require additional information. This is my long term business goal so I will take as much time as needed to get it done. I was thinking I should start with *1Z0-051 SQL Fundamentals I* (11g). Any thoughts?You could get this certificate as a first steps. If you want to be expert on dba subjects than you need to go OCA and OCP certification path.
    If you get to Business Analyst than you can go wiht ebs certification
    http://blogs.oracle.com/certification/2008/08/oracle_ebusiness_suite_r12_cer.html
    But dont forget those subjects are different from eachother and need different skills to become senior on those subjects
    Hope it helps
    Regard
    Helios

  • Eth0 always starts with rc.d/network start

    Here is the relevant bit from my rc.conf
    lo="lo 127.0.0.1"
    eth0="eth0 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.5"
    #eth0="dhcp"
    eth1="dhcp"
    INTERFACES=(lo !eth0 eth1)
    but eth0 always starts.  I am using a wireless card on eth1 to connect to the web and eth0 is a builtin NIC - it's really annoying!

    dibblethewrecker wrote:um - as you can see from my rc.conf - that isn't gonna work for me!
    I saw your "rc.conf".  What I'm trying to explain to you is an easy sol'n.  You seem to have you integrated NIC disabled anyway.  What I offered was what worked for me.  Of course, this was before hotplug was being used, so I don't know how that adds into the mix...
    I guess your post was more of a "concern as to why this is occuring" than a sol'n.  What I meant, in case of confusion was this:
    MODULES=(...,<wireless NIC>,<integrated NIC>...)
    eth0="dhcp"
    eth1="eth1 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.5"
    INTERFACES=(lo eth0 !eth1)
    I believe that's what gave me a eth0 only interface, with no eth1, and eth0 was my wireless NIC.  I don't think you'll have to worry what hotplug is doing that way.  I may be wrong...

  • Openbox always starts with only 1 desktop

    can anybody tell me what's wrong with the following rc.xml entry?  I always get only 1 available desktop on startup, and then have to use the openbox gui configurator to tick up the number to 5 to enable them (then I tick back down to 4).
      <desktops>
        <number>4</number>
        <firstdesk>1</firstdesk>
        <names>
          <name>1</name>
          <name>2</name>
          <name>3</name>
          <name>4</name>
        </names>
        <popupTime>600</popupTime>
      </desktops>

    When my xml edits don't work as I expect, I always check with xmllint or I use an online xml validator such as this one from w3c: http://validator.w3.org/#validate_by_upload

  • How should I start with EJB programming?

    I have more than one year's programming experience in developing complicated data-driven web applications.
    Now I decide to use EJB to build new web applications, how should I start?
    Should I take a professional training class or just read several EJB books? I have Ed Roman's EJB book, it is great.
    Thanks for your reply in advance.
    James

    I think you start of by reading the EJB book by Ed Roman.It's free and availaible at www.theserverside.com.
    Read the first few chapters.
    Another good book is Richard-Monson Haefel's EJB published by Orielly.
    Start of by coding a few examples of stateless session beans on an easily deployable server like the J2EE server, available from this website.
    Your next aim should be to understand Entity beans and the issues surrounding container managed persistance and bean managed persistance.
    Voila in no time you wil be a champ.

  • Should I start with Flash?

    I have decided to teach myself how to build and design web
    pages. I have illustration background, so I have an eye for what
    looks good. However I am a newbie to web development. I wanted to
    know if I should start by teaching myself Flash? Or should I start
    somewhere else? I am not going back to school , so please please do
    not suggest that.
    Thank you for your input.

    Well, that depends on if you want to create flash websites or
    html websites. Since flash itself requires little to no html
    knowledge, I would think it's up to you. Personally, I would learn
    html basics then flash basics.

Maybe you are looking for

  • Query to find out sum by using decode or case

    Hi, I have data like below and required an output as given below, could you please help me to get the same by using decode / case .....Thanks for your help INSNAME INSID STATUS AAA 1000 Scheduled AAA 1000 Processing BBB 1001 Inspector BBB 1001 Schedu

  • No of Items in the Materials Master

    Hi , Can someone tell me how to view the list of Items which have been uploaded as part of Stock balance in to SAP before going live and the updated date? Edited by: Csaba Szommer on Oct 13, 2011 8:41 AM

  • Getting video dimensions

    Hello, Is it possible to get video dimensions (for example 320x240) using JMF. thanks

  • 0PS_C02 update rules are not getting activated when i install 4rm BI conten

    Hi All, In BI Dev. sys for PS module-  Project System - Dates 0PS_C02 cube-  update rules are not getting activated when i install from the business content and its giving the error  " IC=0PS_C02 IS=0PS_DAT_PRJ error when checking the update rules   

  • Is it possible to set the stateof a command button

    I want to call a function when the user presses a command button (left click), then wait until he releases the mouse button, then call a second function. Here is the code for EVENT_LEFT_CLICK: CallFunction_1(...) GetRelativeMouseState(panel, control,