Sequence starting with specific number

Hi,
Is it not possible to create a sequence in ODI starting with a specific number. An example is such as a sequence starting from 10,000 and incrementing by 1.
The reason I am asking is because , in the ODI sequence tab, although there is an option for specifying increment factor, there is no place to mention the first element
of the sequence.
Kindly suggest.

Hi,
Its not recommend to use ODI sequence as it needs to follow some process for implementation, its advisable to use DB sequence for surrogate columns.
So please use DB sequence and call it in ODI mapping using the below syntax,
<SCHEMA_NAME>.<SEQUENCE_NAME>.NEXTVAL
FYR: http://odiexperts.com/odi-sequence
Thanks,
Guru

Similar Messages

  • How to have a sequence start with specific number in mapping

    Hi,
    I can not find a way in the mapping to specify the "start with" attribute for sequence. Currently I have to execute this from sqlplus; select max(id) from tableA, then create sequence start with max(id)+1. I would like to integrate this step into owb. I'm using 9ir2. Thanks.

    You can do this from a stored procedure that you invoke from your pre-mapping trigger:
    - Scan the source and get the max_id
    - execute immediate 'drop sequence; create sequence ... start with '||max_id+1
    Etc.
    Good luck, Erik Ykema

  • HP Officejet 8600 scan - How to force scan number sequence starting with a number of my choice

    Using HP Officejet 86XX on WIn7 - with ADF. 
    I scan a lot of docs via the ADF and all docs scanned has a number in sequence noted at the documents.
    Is there any way to decide which number the HP scan software shall start its numbered sequence? Eg. prefix "Document-" and then force the sequence-number to start at 00200, on order for the next file sequence number to be 00201 and then 00202 and so on??

    Hi , I may be able to help you with your scan settings, but I want to make sure I understand what you are trying to accomplish - so let me know if this isn't what you are looking for. Click on the HP Printer Assistant icon on your desktop (It will look like your printer, and be labeled to match)In the HP Printer Assistant click on Scan a Document or PhotoChoose the shortcut you are selecting on the front panel of the printer (ie Save as PDF)Click on Advanced Settings You can modify your scanner settings, I believe you want to change the settings on the Destination tab.Base File Name: First part of the file name, so in your example "Document-", the scanner will automatically number it after each scan.. eg. Document-0001 will be your first scan, Document-0002, will be the second.Save Location: You can even setup a new folder for the scans  After you change the settings, try the scan from the front panel of your printer. Please let me know if these steps resolved your issue, or if there is anything else I can do to help.  I look forward to hearing from you!  Thanks, 

  • How to access a JSON structure key that starts with a number

    I've got an odd issue here.  I'm accessing someone else's JSON structure so I am not able to change it.  The JSON structure keys are named with both characters and numbers like this:
    0
    198456
    product_id
    198456
    1
    Rashaan Houston feat Tony Loreto
    artist
    Rashaan Houston feat Tony Loreto
    So, in other words, there's a key named "0" and a key named "product_id", both of which contain the same key.  Why they did that, I don't know, but they did.
    In one of the instances, the data stored under the text-named key isn't the same as the numerical-named key.  I tried to output the data in the numerical key like this (it's an array of structures):
    #strStompyJSON.data[1].0#
    but I get the following error:
    Invalid CFML construct found on line 41 at column 31.
    ColdFusion was looking at the following text:
    .0
    When I do the following, it works fine:
    #strStompyJSON.data[1].product_id#
    So it looks as though CF doesn't like accessing a variable that starts with a number.  I am able to loop through the structure using a collection loop, and it outputs all of the keys (including the numerical ones) and their values using the following code:
    <cfloop collection="#strStompyJSON.data[1]#" item="key">
    #key#: #strStompyJSON.data[1][key]#<br />
    </cfloop>
    However, that doesn't allow me a way to access specific keys named with a number.  Is there a way that I can specifically access a key that is named with a number?
    thanks!
    Mike

    No problem--glad it worked out.
    As a follow-up to this, I'd encourage you to keep the bracket notation in mind during future development.  It is EXTREMELY useful in a lot of situations.
    For example, if you're building a structure on the fly with dynamic keys, bracket notation is extremely helpful:
         <cfset authors = structnew()>
         <cfloop list="authorlist" index="name">
              <cfset authors[name] = getbooklist(name)>
         </cfloop>
    Also, bracket notation is really nice when creating json from ColdFusion structures.  Consider this:
         <cfset author = structnew()>
         <cfset author.name = "Neil Gaiman">
         <cfset author.genre = "Fantasy">
         <cfset author.awesome = true>
         <cfset authorjson = serializejson(author)>
    By default, the serialized json produced will have all UPPER CASE keys.  Not a big deal in most cases, but if you're returning the json to something (like a JS library) that is expecting keys in a certain case, it can be a problem.  Fortunately, bracket notation allows you to specify exactly what case you want the structure's keys to be in:
         <cfset author = structnew()>
         <cfset author['name'] = "Neil Gaiman">
         <cfset author['Genre'] = "Fantasy">
         <cfset author['AWESOME'] = true>
         <cfset authorjson = serializejson(author)>

  • "User names cannot start with a number" error while adding a user

    Is it possible to use WL Portal 7.0 admin framework to manage users with all numeric
    user id ?
    I got an error "User names cannot start with a number" while trying to add users
    with all numeric user ids. I am using "portalAppTools" web app provided with WL
    7.0 out of the box.
    What "out the box" functionality do I need to change to make this happen ? Thanks
    Shah

    The problem is that when we have user groups starting with a number, then the search
    feature doesn't work for user groups (case # 466837 with BEA).
    So, which brings me to the following question:
    a. Should the search feature work?
    b. What is the limitation? I mean, it is designed not to allow user groups starting
    with a number. So, there must be a reason for this. So, if we change "disallowFirstCharDigit",
    will it have any impacts on Portal?
    As an aside, it seems somewhat strange that the Portals can start with a number!
    Thanks in advance
    Venkatesh
    "Ture Hoefner" <replyto@newsgroup> wrote:
    Hello Shah,
    Search your tools web app for the UsermgmtTools.properties file. In
    my
    installation, it is at:
    D:\bea70sp1\weblogic700\samples\portal\sampleportalDomain\beaApps\sampleport
    al\tools\WEB-INF\classes\com\bea\jsptools\p13n\usermgmt\servlets\jsp
    It starts with this:
    # Messages and other properties used by usermgmt jsp tools
    # Name properties - UserBean and GroupBean
    disallowedCharacters: ~`!$%^&-*() {}[]|\\/?<>,:;+="'
    disallowFirstCharDigit: true
    Ture Hoefner
    BEA Systems, Inc.
    www.bea.com
    "Shah Sidi" <[email protected]> wrote in message
    news:3db0a001$[email protected]..
    Is it possible to use WL Portal 7.0 admin framework to manage userswith
    all numeric
    user id ?
    I got an error "User names cannot start with a number" while tryingto add
    users
    with all numeric user ids. I am using "portalAppTools" web app providedwith WL
    7.0 out of the box.
    What "out the box" functionality do I need to change to make this happen?
    Thanks
    Shah

  • "HTTPS hostname wrong" for a hostname starts with a number

    Does anyone know about why HttpsClient throws the error for a hostname starts with a number. I have no problem with other hostname but only for the hostname starts with a number. The certificate works fine with Browser. I am sure the hostname in the certificate and in the request are exactly the same.
    I know how to skip the hostname verification, but I don't want to do that for security concern.
    Can sun develpoer shed some light how to verify the hostname in HttpsClient?
    java.io.IOException: HTTPS hostname wrong: should be
    <1company.mydomain.com>
    at sun.net.www.protocol.https.HttpsClient.b(DashoA6275)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA6275)
    at java.net.URL.openStream(URL.java:960)
    Thanks
    Al8079

    I looked at the RFCs you mention, and they do seem to indicate that host/domain names cannot start with digits...however if you look at RFC 1123 closely it says:
    RFC1123 APPLICATIONS LAYER -- GENERAL October 1989
    2. GENERAL ISSUES
    This section contains general requirements that may be applicable to
    all application-layer protocols.
    2.1 Host Names and Numbers
    The syntax of a legal Internet host name was specified in RFC-952
    [DNS:4]. One aspect of host name syntax is hereby changed: the
    restriction on the first character is relaxed to allow either a
    letter or a digit. Host software MUST support this more liberal
    syntax.
    Host software MUST handle host names of up to 63 characters and
    SHOULD handle host names of up to 255 characters.

  • Column name in the database starts with a number!

    Hello,
    Recently we updated out database and we changed our tables' and columns' names, I'm developing an adf application with EJB3.0 the question is that the new column names start with a number (eg. 001U_ID), its a kind of encoding the names of the tables so no one can modify the values.
    When I create a query on the table it is throwing an exception:
    Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 'U_ID'.
    I think the problem is that the EJB3.0 doesn't recognize column names starting with a number!!! What can I do to solve this issue?
    Thanks
    Shahe

    Shahe wrote:
    the entities are declared using the database tables, I'm using EJBQL to retrieve data from the tables.Can you explain this more. Are you using JPA entities? If so post the definition of the Entity bean and the query you used.

  • When I quit itunes it restarts again with the dot under the itunes logo but the iTunes window doesn't open until I click the icon on the dock.  Also in the middle of the size vale in the size column the value starts with a number then a ? then a number.

    When I quit itunes it restarts again with the dot under the itunes logo but the iTunes window doesn't open until I click the icon on the dock.  Also in the middle of the size vale in the size column the value starts with a number then a ? then a number.

    This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes for Mac forums.
    Regards.

  • Split document when ever page starts with specific text

    Is it possible to split document when ever page starts with specific text

    If you look at your code you will see
    cPath: "/F/temp/"+filename+"_" + i +".pdf"
    which is the Acrobat version of saying
    F:\TEMP\ ... your filename ...
    Clearly won't work unless you change it to use your own preferred path.

  • Can't open files where the name starts with a number

    On our network server, we have some folders where the files are numbered. Example:
    1 - Memo
    2 - Agenda
    3 - Report X
    4 - Report Y
    5 - Report Z
    We have 5 Macs in our office. Everybody can read these files fine except for one person. On her computer she can't open any file that starts with a number and gets the below error message. How do I fix this?
    All our Macs (to the best of my knowledge) are setup exactly the same since they were purchased at the same time late last year.

    Word - Microsoft Support

  • How do I number pages consecutively starting with a number other than 1?

    In Pages, how do I number pages consecutively starting with a number other than 1?

    Inspector > Document > Section > Page Numbering:     click on the dropdown menu

  • Extracting a  a piece of string starting with a number

    Hi,
    I am new to SQL, so I could use some help with the following issue. I need to extract contract number from a string, but the position of the contract number and the text inside of the string might vary, which means it is important to tie the SELECT statement to the number. Extracting only numbers wouldn't help too, because contract number contains letters and other characters. For example, if there was a string "Payment to a contract nr 1100/70HE", the SELECT statement should be able to extract only "1100/70HE" from that string.
    Thank you in advance,
    Keit

    Hi,
    welcome to the forum.
    Please read SQL and PL/SQL FAQ
    When you put some code or output please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    Coming to your question, I would say that extracting the contract number from a string it is not the ideal solution for a data model.
    Beside that, you may be able to reach your goal by using regular expression but you should provide more example and explain if the contract number could be identified with a specific pattern.
    I suggest you to post some sample data (CREATE TABLE and INSERT statement or a WITH statement) and try to identify a rule that can apply to extract your data.
    I.e.: if contract number always is one or more characters, followed by a slash (/) and followed by one or more characters then maybe you can use regular expression to identify it. I suggest you to post some cases and try to find the logic to apply.
    Regards.
    Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Create sequence start with variable

    Trying to create a sequence within plsql passing a variable into the start with clause. I am getting the 'ora-01722: invalid number' error. Thoughts?
    -- Created on 06-Jun-07 by CARSONBC
    declare
    -- Local variables here
    v_staff_proxy_user_seq_num number;
    begin
    -- find max value
    select max(staff_proxy_user_id)+1
    into v_staff_proxy_user_seq_num
    from icmr32dv.staff_proxy_user;
    -- create sequence
    execute immediate 'create sequence icmr32dv.staff_proxy_user_seq2 minvalue 1 maxvalue 999999999999999999999999999 start with v_staff_proxy_user_seq_num increment by 1 nocache';
    end;

    What is the requirement of creating sequnce dynamically.?
    may be you can try this?
    execute immediate 'create sequence icmr32dv.staff_proxy_user_seq2 minvalue 1 maxvalue 999999999999999999 start With  '|| v_staff_proxy_user_seq_num || '  increment by 1 nocache';

  • My Tags that started with a number are gone! I've tagged links with the tag: "3D". they are not in my tags!

    I have tagged quite a few links with "3D" : examples of pages that used 3D in their webdesign, interesting 3D software,3D tutorials... They are all gone!
    I have found, for example, the tag "+eclectic" . So extra characters ARE used in tagging.But nothing that has been tagged with a number is in my bookmarks :-(
    Maybe Mozilla should warn users not to tag using a number?
    Thanks a lot for any help!

    As best as I can tell, 20ms is around the "sweet spot". I've tried it at 10ms and almost immediately started getting faults. At 20ms it's a bit intermittent- sometimes it'll run fine for several minutes and then get a fault, sometimes not. I've tried running at 30ms as well but it's hard to prove a fault would *never* happen.
    Part of my problem is that I don't understand what all needs to happen during this timeframe. Is this an internal loop that's running too slowly, or is my Axis interface code running too slow? Would having too many front panel controls/indicators slow down FPGA access? Should I be using some type of buffer to send configuration data, and keep front panel controls to a minimum?
    I understand that front panel controls can use up memory in an FPGA, but I've got enough space, so I assumed that would be OK, but I'm certainly not sure about any of this as it's all quite new to me.
    I did go ahead and start a service request, but I noticed it was possibly a 2-day turnaround. I'm hoping someone can give me a hand on the forums as that's both quicker and more easily accessible for future users with similar problems.
    Edit: I just did a run at 30 ms, and got the fault about 6 minutes into the run. I've got the RT VI running with the front panel on my computer, along with the Distributed System Manager, and am working on other things while it runs. Not sure how repeatable this will be but take it as it is.

  • SPC Chart and Tag Name starting with a Number

    On a 11.5.3 (latest build) install, we've found that SPC Charts don't like tag names that start with numeric characters.  The data points just don't plot.  I can right click and get the data, but there are no points on the chart.  All other applets work fine with the same tags.  Has anyone else seen this?

    Hey Rick,
    We did try that and it worked.  Also when creating the tags in the UDS Admin, I don't believe the UDS Admin will allow for this scenario (along with funky characters like pipes "|").  However, we are using an alias file (export from Historian into Excel, into SQL, and tweaked via Xacute) where the UDS Admin rules aren't enforced, which might be the inherent problem here. 
    I just thought that if the applets allowed it, the iSPCChart should also. 
    Thanks.
    Edited by: Ryan Miller on Feb 19, 2008 10:04 AM
    I'll leave this thread unanswered for a bit to see if anyone else cares to comment.

Maybe you are looking for

  • Count days in a month for a date range

    i am trying to find no. of days between 2 Date Ranges for a list of Ids. i used the logic in the below link: count days of the month My query is giving duplicates since, I have list of Ids. Doctor_ID     Patient_ID     ARRIVE_DT_TM     DISCH_DT_TM 75

  • Error while uploading the PAR file of Production to UAT-

    Hi Experts, Could you please help me out in resolving the error which i'm facing while uploading the PAR file. 1. I have downloaded the par file from the production, imported to my NWDS. 2. Made changes to my  HeadiView.jsp 3. I want to test my imple

  • Need a bit of help with css and fullscreen

    I am currently doing a javaFX application for my university project, I have it everything nearly finished, but need to finish the css component to make the application "prettier" (I am not very good on graphic design to be honest). So if i could get

  • Reporting services Installation with Globalization Locale Settings

    Hi Guys,          We have a problem in report Subscription using File share date format rendering.The File share works properly.But the data showing in Subscription "pdf"  like Date format not displaying properly based on different countries. It alwa

  • YAACE (Yet Another Access Control Exception)

    Hi, This has got to be the simplest example on record. I created the following "Hello, World" file: import java.net.Socket; public class HelloWorld Socket     socket; public HelloWorld() throws Exception System.out.println("Hello, World!"); socket =