SEQUENCE TABLE QUESTION

For the sequencing processing, i tell TopLink to use Native Sequencing in my mapping file. When i generate it, TopLink write in the file :
<uses-native-sequencing>true</uses-native-sequencing>
<sequence-table>SEQUENCE</sequence-table>
<sequence-name-field>SEQ_NAME</sequence-name-field>
<sequence-counter-field>SEQ_COUNT</sequence-counter-field>
But my SEQUENCE TABLE name is USER_SEQUENCES (ORACLE SYSTEM TABLE) with SEQUENCE_NAME and LAST_NUMBER as fields.
I can not rename this table in "SEQUENCE" like TopLink want.
How can i do without modify the mapping file ?

I have the proof that TopLink use the sequence-table, sequence-name-field, sequence-counter-field when i use Native Sequencing. TopLink generates :
<uses-native-sequencing>true</uses-native-sequencing>
<sequence-preallocation-size>1</sequence-preallocation-size>
<sequence-table>SEQUENCE</sequence-table>
<sequence-name-field>SEQ_NAME</sequence-name-field>
<sequence-counter-field>SEQ_COUNT</sequence-counter-field>
SEQUENCE is not found when i commit a record -> error
If i modify the XML file with :
<uses-native-sequencing>true</uses-native-sequencing>
<sequence-preallocation-size>1</sequence-preallocation-size>
<sequence-table>USER_SEQUENCES</sequence-table>
<sequence-name-field>SEQUENCE_NAME</sequence-name-field>
<sequence-counter-field>LAST_NUMBER</sequence-counter-field>
USER_SEQUENCES exist, it works !!
Here is my code when i log to my server :
private static ServerSession launchServer() {
if (_server == null) {
String fileName =
Configuration.getInstance().getProperty(
"project.mapping_file");
if (new File(fileName).exists()) {
Project builderProject = XMLProjectReader.read (fileName);
_server = (ServerSession)   builderProject.createServerSession (1, 50);
_server.useExclusiveReadConnectionPool(1, 1);
_server.logMessages();
try {
_server.login();
} catch (DatabaseException e) {
} else {
throw new RuntimeException(
"Fichier " + fileName + " n'existe pas...");
} else {
throw new RuntimeException("M�thode static StarServerSession.launchServer() ex�cut�e deux fois...");
return _server;
My code to acquire a client session :
public void open() throws DBException {
try {
clientSession = DBServerSession.server.acquireClientSession();
} catch (DatabaseException e) {
throw new DBException(
DBException.DATABASE_EXCEPTION_ERROR_CODE,
e.getDatabaseErrorCode(),
e.getMessage());
}

Similar Messages

  • Question about sequence table

    hello
    when i set up the sequence table within the mapping work bench,i DON'T select write it to database,i wonder if i need to generate the class code for the sequence table,and put it in my project source files package with all of the other table class code?
    otherwise,as i have said,during my creating the sequence table,i don't select to write it to the database,but now,i want to write it to the database,how can i do?
    which one is the better solution?writing the sequence table to database?or not?
    thank you

    I would recommend writing the sequence table to the database from the Mapping Workbench. If you export a DDL file for all of the tables, the sequence table will be included in this definition as well.
    I might mention one more point however. After creating the sequence table, it will need to be initialized for each descriptor which uses a sequence. You can do this either by manually inserting rows of data or by using TopLink's SchemaManager:
         SchemaManager manager = new SchemaManager(session);
         manager.createSequences();          
    The SchemaManager (from package oracle.toplink.tools.schemaframework) must be initialized with a logged in TopLink DatabaseSession.
    JIM

  • Table question/problem

    This is an html table question, but since I am working with
    CF on this, I thought I would post here for help.
    I query and cfoutput the data in a table. The table has ten
    columns. The first five are alpha numeric and the last five are
    numeric. The output displays fine.
    What the want to do now is to put a black border around the
    number columns, the last five.
    I tried to make each column its own table, but that just puts
    a box around each value, the columns are not connected.
    How can I do this ?
    Thanks for helping.

    Put a thin black left border in the sixth column and a
    similar right border in the tenth (last) column.
    It is neater and advisable to use CSS.
    <style type="text/css">
    <!--
    .bdrLft {
    border-left-color:#000000;
    border-left-width:thin;
    -->
    </style>
    <td class="bdrLft">
    The inline formatting will look like:
    <td style="border-left-color:##000000;
    border-left-width:thin;">
    Do the same for the top border (last 5 column headers). The
    bottom border may be trickier. The idea is to apply bottom border
    at the last query count. One can do without the top and bottom
    borders, however.

  • What is access sequence tables and how to use them in program?

    hi all, I know a little about SD and access sequence tables, but I get a requriment like this:
    condition type is a paramater
    The condition types allowed in this report are: Note: A list of pre-defined condition types with their corresponding access sequence tables will be defined.
    How can I make it? How can I use it in program to get the price?

    Hi,
    An access sequence is a search strategy with the aid of which the SAP
    System searches for valid condition records of a certain condition type.
    For example, you can stipulate for a price that the SAP System first
    searches for a price for a specific plant, and then for a generally
    applicable price.
    For condition types for which you wish to maintain conditions with their
    own validity period, you must assign an access sequence. With this, you
    define which fields the SAP System checks in searching for a valid
    condition record.
    e.g. When you create condition record (e.g. Purchasing condition record) you enter condition type, system asks you the key combination to enter the entries. These key combinations are nothing but the access sequence. On the basis of combination of condition table it will search record. e.g. when u maintain condition record with acc seq Material/plant combination, it will transfer the same record in PO when u enter same material and plant in the PO.
    Example:
    An access sequence has been assigned to condition type PB00 so that
    prices can be maintained in purchasing info records and contracts.
    No access sequence has been assigned to condition type RC00 because it
    does not have a validity period of its own. In the standard system, it is
    always maintained simultaneously with the price and is valid for the
    period of the price.
    For more help
    http://www.sap-img.com/materials/steps-for-mm-pricing-procedures.htm
    Regards,
    Raj.

  • NoSuchElementException when using sequence table in Toplink with Oracle 9i

    Hi,
    UnitOfWork(11608452)--Connection(15933498)--UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + 1000 WHERE SEQ_NAME = 'ABN_NOTIF_SEQ'
    UnitOfWork(11608452)--Connection(15933498)--SELECT SEQ_COUNT FROM SEQUENCE WHERE SEQ_NAME = 'ABN_NOTIF_SEQ'
    ClientSession(17794660)--Connection(15933498)--commit transaction
    java.util.NoSuchElementException
         at java.lang.Throwable.fillInStackTrace(Native Method)
         at java.lang.Throwable.fillInStackTrace(Compiled Code)
         at java.lang.Throwable.<init>(Compiled Code)
         at java.lang.Exception.<init>(Compiled Code)
         at java.lang.RuntimeException.<init>(Compiled Code)
         at java.util.NoSuchElementException.<init>(NoSuchElementException.java:35)
         at java.util.Vector.firstElement(Compiled Code)
         at TOPLink.Private.DatabaseAccess.DatabasePlatform.sequenceTableGetSequenceNumberNamed(Compiled Code)
         at TOPLink.Private.DatabaseAccess.DatabasePlatform.getSequenceNumberNamed(Compiled Code)
         at TOPLink.Public.PublicInterface.Session.getNextSequenceNumberValue(Compiled Code)
         at TOPLink.Public.PublicInterface.UnitOfWork.getNextSequenceNumberValue(Compiled Code)
         at TOPLink.Private.Descriptors.ObjectBuilder.assignSequenceNumber(Compiled Code)
    This is the error I am getting occasionally. I am using Toplink with custom sequence table and pre-allocation size is 1000.
    Can you Please advise me on this problem.
    Thanks in Advance,
    Durga

    hello,
    i m using msync for synchronization on Pocket PC 2003 with eVB. I dont know about msyncCom.
    i have mentioned a part of my code where the problem is found.
    rsmastbl.Open tblnm, conn, adOpenKeyset, adLockOptimistic
    MsgBox tblnm & " opened"
    'get the key fields to be compared in the query to get required record
    MsgBox rsmastbl.Fields(1).name
    keyfldnm1 = rsmastbl.Fields(1).name
    MsgBox "keyfldnm got value = " & keyfldnm1
    rsmastbl.Close
    MsgBox "keyfldnm got value = " & keyfldnm1
    Now here the value of keyfldnm1 before closing the record set is found to be correct.
    But the message box after closing the record set shows no value in the keyfldnm1.
    its very urgent....
    if anybody can help me
    thanx

  • SOA 11g DBAdapter Polling using a Sequencing Table with a DATE Field

    Hi.
    I have implemented a polling solution using a sequencing table that references a DATE column. For the most part the poll works correctly, but on occasion, I am not seeing a BPEL process instantiation for various records that get created in my source table.I have also noticed that in this particular case, the DATE field content on one or more source records is exactly the same --> "YYYYMMDDhhmmss".
    I just want to confirm here, that the polling adapter should be able to pick up multiple records from the source table, even though the date field is exactly the same. As well, how should I go about trying to debug this issue, if point #1 is handled by the system. Is there is a specific log or trace file that I can look at. Also, could I be facing a timing issue ?
    Can someone please comment on this.
    Thanks.

    In my table, I don't see a primary key, but only a unique index. I would assume then, that this would be analogous to the primary key capture; noticed that currently this code was only using one column out of two, from the unique index itself.
    Also, is the date content issue that I mentioned above a moot point then, based upon not having the correct primary key/unique key data pointers established ?
    Thanks.

  • How to poll data with DBAdapter using external sequencing table usecase ?

    Hi,
    When I'm polling for data using the 'update external sequencing table on different db' with a dbadapter, I'm getting this error ORABPEL-09903
    My sequencing table is present in another schema. I created the connection pool and data source for the same and provided it as a credential to the adapter when it asked for data source. But my process is not getting deployed. The complete error it's giving is as below :
    [deployProcess] Deploying process E:\Softys\jdev\jdev\mywork\Test\PollExternal\output\bpel_PollExternal_1.0.jar
    BUILD FAILED
    E:\Softys\jdev\jdev\mywork\Test\PollExternal\build.xml:79: A problem occured while connecting to server "ple-jgau.us.oracle.com" using port "7777": bpel_PollExternal_1.0.jar failed to deploy. Exception message is: ORABPEL-09903
    Could not initialize activation agent.
    An error occured while initializing an activation agent for process "PollExternal", revision "1.0".
    Please ensure that the activation agents are configured correctly in the bpel deployment descriptor (bpel.xml).
    oracle.tip.adapter.fw.agent.jca.JCAActivationAgent: java.lang.reflect.InvocationTargetException
    at com.collaxa.cube.engine.core.BaseCubeProcess.startAllActivationAgents(BaseCubeProcess.java:370)
    at com.collaxa.cube.engine.deployment.DeploymentManager.activateDefaultRevision(DeploymentManager.java:1577)
    at com.collaxa.cube.engine.deployment.DeploymentManager.setDefaultRevision(DeploymentManager.java:1536)
    at com.collaxa.cube.engine.deployment.DeploymentManager.deployProcess(DeploymentManager.java:886)
    at com.collaxa.cube.engine.deployment.DeploymentManager.deploySuitcase(DeploymentManager.java:728)
    at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.deploySuitcase(BPELDomainManagerBean.java:445)
    at sun.reflect.GeneratedMethodAccessor152.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
    at com.evermind.server.ThreadState.runAs(ThreadState.java:646)
    at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    at DomainManagerBean_RemoteProxy_4bin6i8.deploySuitcase(Unknown Source)
    at com.oracle.bpel.client.BPELDomainHandle.deploySuitcase(BPELDomainHandle.java:319)
    at com.oracle.bpel.client.BPELDomainHandle.deployProcess(BPELDomainHandle.java:341)
    at deployHttpClientProcess.jspService(_deployHttpClientProcess.java:376)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Total time: 20 seconds
    Any help regarding this would be highly appreciated.Please provide me with any link to the documentation for DBAdapters,Polling and its different Usecases.
    Thanks,
    Bhavya

    Hi there,
    this exception just mentions that the process failed to deploy, but it does not explain why. Could you look at the bpel logs, and find the complete exception stack trace with linked exceptions?
    This is a common trouble shooting problem as the process deployer doesn't show the linked exception. Please look at the best practices guide:
    http://download.oracle.com/technology/tech/soa/soa_best_practices_1013x_drop3.pdf
    Under DBAdapter there is a section on how to troubleshoot the adapter. Search for "Find the Root Exception". It is on Page 130.
    Thanks
    Steve

  • Weblogic Eclipselink Sequence Table Connection Pool Sequence Separate transaction while JTA on main transaction

    Hi,
    And thanks in advance for your support.
    In weblogic 12, managing to get the eclipse link connection sequencing mechanism when one uses Tables for sequencing entity ids seems to be complicated.
    QUICK REFERENCE:
    http://www.eclipse.org/eclipselink/api/2.5/org/eclipse/persistence/config/PersistenceUnitProperties.html
    The concept:
    While having EJB, MDBs etc... run on a JEE container, be it glassfish or weblogic, it should be possible to have the main thread transaction be managed as part of JTA global transactions by the contianer.
    Namely, pumping messages to JMS queues, persisting entities etc.
    Meanwhile, it should be also possible to as the transaction is on going write and update entity ids from sequencing tables.
    For this very purpose, eclipse link provides persistence.xml properties, such as the now deprecated eclipselink.jdbc.sequence-connection-pool" value="true", to fullfill this very purpose.
    This option greatly avoids dead longs, by allowing eclipse link to fetch a non JTA managed connection, pseudo "two phase locking read table update table" go to the datbase and fetch a new sequence.
    The same mechnism under JTA is a disaster. A transaction that creates ten different entities, might do ten reads and updates on this table, while mean while a competing transaction might be trying to do the same. It is guaranteed dead lock with minimal stress on the environment.
    Under glassfish, for example, tagging a persistence.xml with :
    <persistence-unit name="MY_PU" transaction-type="JTA">
            <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
            <jta-data-source>jdbc/DERBY_DS</jta-data-source>
            <non-jta-data-source>jdbc/DERBY_DS</non-jta-data-source>       
            <properties>           
                <property name="eclipselink.jdbc.sequence-connection-pool" value="true" />
            </properties>
    </peristence-unit>
    does miracles, when entities are using TABLE sequencing.
    Under weblogic, say you are using the Derby embedded XA driver with two phase commit, deploying the applicaiton immediately leads to:
    Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.3.v20120629-r11760): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Cannot call commit when using distributed transactions
    Error Code: 0
      at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:324)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicCommitTransaction(DatabaseAccessor.java:426)
      at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.commitTransaction(DatasourceAccessor.java:389)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.commitTransaction(DatabaseAccessor.java:409)
      at org.eclipse.persistence.internal.sequencing.SequencingManager$Preallocation_Transaction_Accessor_State.getNextValue(SequencingManager.java:579)
      at org.eclipse.persistence.internal.sequencing.SequencingManager.getNextValue(SequencingManager.java:1067)
      at org.eclipse.persistence.internal.sequencing.ClientSessionSequencing.getNextValue(ClientSessionSequencing.java:70)
      at org.eclipse.persi
    While weblogic is right that their might be a distributed transaction ongoing, it is mistaken in the fact tha tthe connection requested by eclipse link for generating the ID should be part of the global transaciton.
    Eclipse link provides other ways to attempt to configure the sequencing mechanism, by sating for example a non-jta transaction.
    I have attempted also using these properties both withe original data DERBY_DS that uses the XA driver, and later with a new data source i created on purpose to try to work around the sequencing contengy.
    For example:
    <!--property name="eclipselink.jdbc.sequence-connection-pool.nonJtaDataSource" value="jdbc/DERBY_SEQUENCING_NON_JTA" /-->
                <!--property name="eclipselink.connection-pool.sequence.nonJtaDataSource" value="jdbc/DERBY_SEQUENCING_NON_JTA" /-->
    This new DERBY_SEQUENCING_NON_JTA is explicitly configured to use a NON_XA driver with global transactions flag set to disabled.
    Regardless, the only thing I get out of this is that the application is deployed and super fast, up to the point where i stress it with a system test that introduces some degreee of concurrency, and then I see the dead locks on the sequencing table.
    Meaning that the ongoing transactions are holding tight to their locks on the sequencing table.
    Is this a known issue?
    Is there something I am missing in the configuration?
    It really should not be this diffcult to get eclipse link to run its sequence reads and updates on a separate transaction of the main JTA transaction, but so far looks impossible.
    Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.3.v20120629-r11760): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested
    Error Code: 30000
    Call: UPDATE ID_GEN SET SEQ_VALUE = SEQ_VALUE + ? WHERE SEQ_NAME = ?
      bind => [2 parameters bound]
    Query: DataModifyQuery(name="MyEntity_Gen" sql="UPDATE ID_GEN SET SEQ_VALUE = SEQ_VALUE + ? WHERE SEQ_NAME = ?")
    Many thanks for your help.

    Are you calling the cmp bean code and your new Sql code under a same transactional context?
    The following setting
    "rollbackLocalTxUponConnClose=true"
    will make the connectionpool to call the rollback method on the connection object before keeping it back in the pool. In your sql code if you are calling connection.close() , then your entire transaction will be rolled back.
    CMP bean requires a transactional connection while communicating with the database.
    What is the sequence of code execution?
    I think you must be calling sql code first and then cmp bean code later.
    You may avoid this problem in this way. This is my guess based on my understanding on your code execution.
    1. set rollbackLocalTxUponConnClose=false
    Execute the sql code and cmp code in a single transaction (in a single session bean method with cmt or bmt transaction ). Specify tx.rollback if it is bmt. or call tx.setRollbackOnly() if it is a cmt. In this way you will have control to roll back the transactions.
    Hope this helps you.
    bmt-> bean managed transaction
    cmt-> container managed transaction.
    Regards,
    Seshi.

  • Wrong sequencing with Oracle db using sequence table?

    Hi,
    we have a strange problem resulting in primary key violations in a table which is using a sequence (no native sequencing, but a sequence table).
    We use Oracle 9.2.0.x
    We have a table which is mapped to a Java type which has two derived types, i. e. in the table, two different "object types" are contained (the table contains all attributes of both classes). This table uses a sequence key as primary key.
    This works pretty fine when the table is left empty in the beginning.
    However, if we fill 15 records in this table by a SQL script - not by toplink! - (for migration purposes), and then set the initial sequence value in the sequence table to 500 (which should be greater than 15 ;-) by the same SQL script, then restart the application server (Bea Weblogic), and then try to add new records via Toplink, we get a primary key violation.
    It sounds odd but it seems as if Toplink would store the initial sequence value somewhere else and does not care about the value we entered "manually" in the sequence table.
    Can anybody give us a hint what the reason could be for this problem? Is it the inheritance of the Java Types from one abstract type? Does sequence number caching play a role (we used a preallocation size of 500 and of 1 - with the same negative effect).
    If you need additional information, don't hesitate to drop me a notice.
    Thanks,
    Andreas.

    Each time the application using TopLink starts it will lazily acquire the next pre-allocation batch of values from the database.
    You will see SQL entries like:
    UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + 50 WHERE SEQ_NAME = 'EMP_SEQ'
    SELECT SEQ_COUNT FROM SEQUENCE WHERE SEQ_NAME = 'EMP_SEQ'
    TopLink will increment the table's value and then use the values from 1 greater then initial value up to and including the value it just incremented the row to.
    In your example you should see, after re-starting the server, the next value to be 501.
    What exact version of TopLink are you using?
    When you enable SQL logging what statement do you see executed, related to the sequence table prior to the invalid INSERT?
    Doug

  • Sequence table maintenance

    Hi all,
    We are using Toplink sequencing and everything works fine. When a new class is mapped, a new record has to be manually inserted in the sequence table. No big deal. But our model is quite large, and we have many database schemas (one per developper). That makes the maintenance of the sequence table problematic. And when a sequence is missing, Toplink fails without reporting which one.
    Since Toplink already has all the information (table definition, sequence name, ...), is there a configuration option to tell Toplink to automatically insert missing sequences ?
    Thanks.
    JCG

    You should be able to use the SchemaManager class for this.
    SchemaManager manager = new SchemaManager(databaseSession);
    manager.createSequences();
    oracle.toplink.tools.schemaframework.SchemaManager is the package you'll need.
    Darren

  • 9.0.4 and sequence tables

    Hi all,
    I am trying to upgrade from 9.0.3 to 9.0.4 and I noticed that there has been a lot of refactoring done to the sequence table code in DatabasePlatform.
    Is there a Thread or Document that describes the changes and how to do things in the 'new world'?
    Specifically, I need to alter the way sequences are generated to work in harmony with our RPG code. The legacy code assumes that the current value of the sequence is valid as a new id (the default semantics is to assume that the current values has already been used).
    Any help would be greatly appreciated.
    Thanks!
    --Dave.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi David,
    I think the problem could be solved by specifying custom sequence queries (by the way it is an old feature): http://download-west.oracle.com/docs/cd/B10464_01/web.904/b10313/mapping.htm#1166370

  • DEFAUT SEQUENCE TABLE (Please Help !!!)

    Hi,
    kann somebody tell me what is better using:
    - Default sequence table
    or
    - Custom Sequence Table
    What is the difference.
    THX

    Both of these options will perform the same. The Default sequence table is simply a table schema based on TopLink defaults. The custom sequence table allows a developer to specify their own sequence table schema.
    --Gordon                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Concurrency into sequence tables

    Hi,
    Is there any concurrency problem by using sequence tables instead of a real sequence?
    []s

    In general there is no concurrency problem, however using the sequence table TopLink allocates the sequences in another transaction/connection(with server session). There may be an issue when using external connection pools and JTS and no non-JTS pool, as the sequence table access will be in the JTS transaction so could reduce concurrency in this specific case.
    If you are using Oracle, then native sequencing with sequence objects and preallocation through the increment is suggested, and is a little more efficient and concurrent than table sequencing.
    If you are any other database the sequence table with preallocation is suggested as their native sequencing does not allow preallocation.

  • Table Question

    Hi Pls help me to know following
    I want to check SAP field J_3GBUARTB in table T685.
    But the field is not exist.
    Pls let me know how i can check and where i will get this filed
    Regards
    Vicky

    Hi
    I have checked the same but this filed is not appearing in the list of parameter.
    only following screen are coming Usage
    Application
    Condition type
    Access sequence
    Prop. valid-to
    Prop.valid-from
    Width of Output List
    Maximum No. of Hits
    The same position in User parameter selection.
    Pl advice or is there any other way where i can get this field for table T685
    Warm Regards
    Vikcy

  • SQL and External table question

    Hello averyone,
    I have a file to be read as an external table part of it is below:
    ISO-10303-21;
    HEADER;
    FILE_DESCRIPTION((''),'2;1');
    FILE_NAME('BRACKET','2005-07-08T',('broilo'),(''),
    'PRO/ENGINEER BY PARAMETRIC TECHNOLOGY CORPORATION, 2004400',
    'PRO/ENGINEER BY PARAMETRIC TECHNOLOGY CORPORATION, 2004400','');
    FILE_SCHEMA(('CONFIG_CONTROL_DESIGN'));
    ENDSEC;
    DATA;
    #5=CARTESIAN_POINT('',(5.5E0,5.5E0,-5.1E1));
    #6=DIRECTION('',(0.E0,0.E0,1.E0));
    #7=DIRECTION('',(-1.E0,0.E0,0.E0));
    #8=AXIS2_PLACEMENT_3D('',#5,#6,#7);
    The first question is: how to ignore the lines until the DATA; line or SQL already does it for me?
    The second question is: since the fields of interest are separated by commas and the first field does not interest me (it is solved with a varchar2) how can I read the following fields as numbers ignoring the (,# and ) characters please?
    Thanks for any help.
    Sincerely yours,
    André Luiz

    The SKIP option can be used with SQL*Loader to skip a certain number of lines before starting to load. Off hand I cannot see any easy way to load the data in the format given. The format does not resemble a typical CVS format. You can look at the test cases provided for SQ*Loader in the Oracle® Database Utilities guide - or simply write PL/SQL code to load this data manually using UTL_FILE.

Maybe you are looking for