JPA classPK created, why

Hi,
I don´t know much about JPA. So I tried some examples and created my own. Some things were very strange for me. When I use two tables with a one to many relation, my IDE creates a class names somewhat as classPK, which has only the method equals()...
What is it good for?
Can I use this method for easier access.
What is the suggestion to find an argument of an linked table, a query with a where clause or at firstt the entity and via the entities id the linked entity?
Or is it necessary for JPA to work?
By the way, I use OC4j JEE to develop and test. As it seems when I create a entiy (annotated with @Entity), a session facade and start filling a first instance with values, I can perform an query withot persist() afterwards. Why?
I thought At first I have to persist my new Entity? Is it handled by the container automatically?
When to use persist()?
Thanks for your comments.
I read some books (really) about JPA but coukldn´t find how exactly this works in JEE.
Rolf

These are probably pal accounts. How many subscribers do you have?
I have two subscribers "transactional queued". What do you mean with "pal accounts" ?
At one subscriber (test machine) i deleted now all these accounts, replication is still running, so i think they could be deleted.
Maybe they where created during the setup of the subscription because at this time the Agent Queue Reader was not in the access list of the subscriber ?
Beside an other question, also at the subscriber there are tables created like "dbo.conflict_<DBNAME>_<TABLENAME>" is that normal ?
BTW: its a pitty that i couldnt find that topic (REPLCERTLOGIN_REPLCERT...) at the knowledgebase :(
Thanks for answering
MBChris

Similar Messages

  • Weblogic 9.1 with toplink JPA - Problem creating entityManagerFactory

    I am using weblogic 9.1 with toplink jpa provider.
    I am getting the error while creating entityManagerFactory.
    Exception stack trace
    faces.FacesException: #{LogonMB.authenticateLogin}: javax.faces.el.EvaluationException: java.lang.ExceptionInInitializerError
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at javax.faces.component.UICommand.broadcast(UICommand.java:332)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    Caused by: javax.faces.el.EvaluationException: java.lang.ExceptionInInitializerError
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 19 more
    Caused by: java.lang.ExceptionInInitializerError
         at com.arisglobal.cc.service.impl.PreferencesServiceImpl.getEntityManager(PreferencesServiceImpl.java:45)
         at com.arisglobal.framework.service.AbstractBusinessService.(AbstractBusinessService.java:24)
         at com.arisglobal.cc.service.impl.PreferencesServiceImpl.(PreferencesServiceImpl.java:36)
         at com.arisglobal.cc.factory.BusinessServiceFactory.createPreferencesService(BusinessServiceFactory.java:113)
         at com.arisglobal.cc.mb.LogonManagedBean.authenticateLogin(LogonManagedBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         ... 20 more
    Caused by: Exception [TOPLINK-34002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.XMLParseException
    Exception Description: An exception occurred while processing persistence.xml from URL: file:/D:/ClinicalConnect/4. CODING/web/WEB-INF/classes/META-INF/persistence.xml. A SAXParser instance could not be created.
    Internal Exception: org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
         at oracle.toplink.essentials.exceptions.XMLParseException.getXMLParseException(XMLParseException.java:101)
         at oracle.toplink.essentials.exceptions.XMLParseException.exceptionCreatingSAXParser(XMLParseException.java:73)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceXML(PersistenceUnitProcessor.java:315)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceArchveFromUnconvertableURL(PersistenceUnitProcessor.java:90)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceArchive(PersistenceUnitProcessor.java:202)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.getPersistenceUnits(PersistenceUnitProcessor.java:77)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:222)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:240)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initializeFromMain(JavaSECMPInitializer.java:277)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.getJavaSECMPInitializer(JavaSECMPInitializer.java:80)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:118)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
         at com.arisglobal.cc.helper.ResourceManager.(ResourceManager.java:8)

    hi JavaCrazyLover
    u got why u getting the error i ma getting similar error its running fine in 8.1 but in web9.1 it is giving errors in some jsp pages may be due to versions or name spacing ie we write in top of the page DTD schema am not sure but i think , there is no jars to add on as such web 9.1 is upgraded one and it supports all files some where there will be conflicts between versions example JDK 1.5and 1.4 enum is a keyword in 9.1 but in normal in 8.1 if u get the solution for this error please mail me to [email protected]
    rgds
    Mohammed Mansoor

  • Duplicates of RAW files created - why??

    I've suddenly had LR 2.0 create duplicates of my RAW files with the changes being applied to the copies. I've now got a cluttered directory. Why, and can this be fixed easily?

    They're in the same folder and I only had one copy and worked on them for a day. I did an optimize and restart and noticed it afterward at some point. It's like LR decided to re-import the whole folder. All the photos with changes got assigned the xxx-1.nef prefix.

  • 2 x Project Files created WHY?

    OK - here's a good one for a Sunday Morning.
    Firstly let me tell you that when this is printed it's over
    600pages.
    I'd completed this project last night - about a months work.
    When I tried to load the project file i received the "unable to
    open project message" - project files created earlier that day were
    all fine and could be opened (these were "backed-up" copies).
    Now then I looked into the folder there were 2!! projects
    present in the same folder, one about 2Mb in size, and the second
    only 2kb. So you'd think that the former would be the correct one -
    but this gave the aforementioned error message.
    Now here's the odd thing. If I renamed the 2kb version, eg
    instead of MYPROJECT it was MYPROJECTPENGUIN, and then ran that one
    everything worked perfectly.
    However if I swapped this idea - I got the same error.
    OK - now I can't figure out why on earth this
    happened...............HELP!!!
    Al

    Here's a quick update:
    I've installed trial version of X5, and this seemed to sort
    out the problem.
    Managed to get an order approved for v6. So am currently
    downloading it....
    Al

  • My list of Persona designs does not list all the ones I created - why?

    My list of personas that I have created for Firefox hardly ever shows them all. I did four, and it listed three, missing one off at random. The only one I think that has been ever present is the first one.
    I then deleted one that I decided was unlikely to get much interest, and now have three, but my profile only lists two personas.
    My username is "ajjam" and my three remaining personas are "The Crests of Liverpool FC", "The Crests of Liverpool FC - 2" and "Justice For The 96". The first two are currently listed on my designs page, but all are active and can still be found. If you click for the details of any one of them, then you can see all my designs.
    It seems strange that my own gallery list is wrong.
    https://www.getpersonas.com/en-US/gallery/Designer/ajjam.is.a.red

    To revert to Google as your preferred search engine, please do the following.<br><br>
    #In the location bar, type '''about:config''' and hit Enter.<br><br>
    #In the filter at the top, type: '''keyword.URL'''<br><br>
    #Double click it and remove whatever's in there and replace it with http://www.google.com/search?q=<br><br>
    #In the filter at the top again, copy/paste the following (remove keyword.URL first): '''browser.startup.homepage'''<br><br>
    #Right click it, choose '''Modify '''and then click '''Reset'''.<br><br>
    #Close the tab.<br><br>
    #Click the Firefox button, go to Add-ons, then Extensions and remove these add-ons if they're in there: '''Windows iLivid Toolbar '''and '''Bandoo Media'''.<br><br>
    #Next, open Windows Explorer and navigate to '''C:\Program Files\Mozilla Firefox\searchplugins'''. In there, delete the following: '''SearchquWebSearch.xml'''<br><br>
    #Go to Add/Remove Programs and look for '''Windows iLivid Toolbar '''and '''Bandoo Media''' again. Remove if found. You might possibly find a reference to "Web Search" (searchqu) in Add/Remove Programs too. If so, remove it.<br>
    The URL to add in "keyword.URL" becomes a link in this post, so right click it and choose "Copy Link Location" to copy it to the Windows clipboard. Then hit CTRL+V to paste it. Saves you having to type the whole thing.
    '''To reset your home page, do the following'''.<br><br>
    * Go to the site you want to set as your homepage.<br><br>
    * Go to '''Tools '''| '''Options '''| '''General''' <br><br>
    * Make sure it says "''Show My Homepage''" in the first dropdown menu.<br><br>
    * Click the button called "'''Use Current Pages'''" to set the homepage to the one you have on the screen.<br>

  • I don't want to update my ios 6 software to ios 7, I only want to fix the security flaw in ios 6 and keep ios 6 on my iphone - it has been created why can't i use it?

    why, if the update is available, can't i use it?

    You may not like the answers your getting but they are correct. This is a user-to-user technical support forum. You're not addressing Apple here. All anyone here can tell you is what is possible. What you want to do is not possible. Apple has not made any official statement about why they do not allow this. Speculation about Apple policies and decisions is a violation of the terms of use to which you agreed when you signed up for this forum.
    Submit your feedback directly to Apple using the appropriate link on the Feedback page:
    http://www.apple.com/feedback

  • No Transaction on create -- Why?

    Hello,
    I have an entity bean (bmp) wherein I specified in my ejb-jar.xml the following in the container-transaction portion:
    <method>
    <ejb-name>AccountBean</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    However when I call home.create() on an application client
    and in the ejbCreate() code I retrieve the UserTransaction using jndi lookup and call getStatus() I get a value for NO_TRANSACTION. Shouldn't I get a value of ACTIVE since the container should have started a transaction for the create method before calling ejbCreate()?
    Thanks,
    Weljo

    The EJB spec forbids the use of the UserTransaction object when using CMT (Container Manager Transaction).
    When using CMT, you do not have access to the transaction started by the container.
    John

  • Why environment created failed ?

    I work bdb at vxworks V5.5.1. I use bdb of V4.75 about C.
    I create env by the following flag:
         open_flag = DB_CREATE | DB_RECOVER | DB_INIT_LOCK
         | DB_INIT_LOG | DB_INIT_TXN | DB_INIT_MPOOL | DB_THREAD;
         But result is failed, error code = 0xc80003.
         So I delete DB_RECOVER from open_flag. The result is OK.
         Env was created ok! So I don't know what happened.
         I trace the source code. I find if I "#undef HAVE_REPLICATION"
         in db_config.h. Then all seems to be ok. But When I reboot os,
         error just said: "/flash/soe/log.0000000017: log file unreadable"
         But I do set:
         p_env->log_set_config(p_env, DB_LOG_AUTO_REMOVE, 1);
         Before I reboot os, I find log file is just "log.0000000015" and
         "log.0000000016" left. So "log.0000000017" has not created, why error
         just said "log.0000000017 unreadable"???
         I don't know what wrong?     Can anyone give some advice?
         Thanks

    Thanks Debsubhra Roy:
    1. you mention: "You may have some privilege issues on the system with the OS you are using."
    Can you explain some more detail? I work at vxworks 5.5.1 and file system is yaffs.
    2. I'm not using replication or in-memory log. But I create environment by flags:
    DB_USE_ENVIRON | DB_RECOVER | DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_TXN | DB_INIT_MPOOL | DB_THREAD | DB_PRIVATE;
    Oh, yes, I set "#undef HAVE_REPLICATION" in "db_config.h". I compile all source, but it seems no pass, just saied "__log_rep_split function no found". So I find in "log_get.c" about 1326 line before __log_rep_split, I delete "#ifdef HAVE_REPLICATION", then compile ok. Maybe some wrong.
    Is there any wrong about the flags? By the way, I work at multithread not multiprocess.
    In "db_config.h", I #undef HAVE_FTRUNCATE 1, I'm not using posix ftruncate.
    3. If I delete the code, the result is when a log switch happened, will there be some wrong happen?
    4. Sorry for my incaution. I test once again, not environment created failed, just db created failed on the environment. Just the following:
    ret = db_create(&p_db, p_env, 0);
    the ret is not zero, is just "DB_RUNRECOVERY: Fatal error, run database recovery". All information is the following:
    */flash/soe/work/log.0000000002: log file unreadable: errno = 0xc80003*
    PANIC: errno = 0xc80003
    PANIC: fatal region error detected; run recovery
    PANIC: fatal region error detected; run recovery
    I know errno = 0xc80003 is FILE NOT FOUND in yaffs system.
    So question should be why db created failed ? Sorry.
    5. I find some simular questions about bdb on vxworks via google.
    Re: Berkeley DB High Availability  Work Error (VxWorks)
    Re: BDB vxworks 6.6 kernel port error
    All wrongs happened just at os reboot. I don't know whether vxworks has something
    against bdb. I approciate your help.
    Edited by: being on 2009-3-6 下午7:28
    Edited by: being on 2009-3-6 下午7:50
    Edited by: being on 2009-3-6 下午10:19
    Edited by: being on 2009-3-6 下午11:21

  • Xml mapping with JPA error

    I am &#304;shak Teyran , the data manager of a team which attends to IBM XML Challenge Turkey, we are trying to build a dynamic web project in Rational Software Architect 7.5, WAS 7.0 , DB2 9.5 EE.
    the article of Vitor Rodrigues - http://www.ibm.com/developerworks/data/library/techarticle/dm-0901rodrigues/index.html - describes how to map xml to java using pureQuery however we need to do the same using JPA.. is there any difference?
    we are trying to achieve the same using JPA. but unfortunately we failed..
    for simplifying lets assume we have two tables , STUDENT ( id int, name char) and COURSES ( studentID int , and lessons xml) ... these two tables are related to each other with studentID foreign key... and we want to have student and courses java files where courses.java includes proper mapping to xml column lessons..
    i tried to make an .xsd file for xml column lessons.. and then i created its java file.. then i used JPA for creating student and courses java files but it always turns me a null pointer exception.. i dont know why.. and as result , only student.java is being created..
    i have tried following steps.
    My database connection and the tables are already present.
    1- i have created a new dynamic web site project, namely dene..
    from project facets i enabled dynamic web module, faces support (base, enhanced componnents) , Java Persistence, Javascript Toolkit, JavaServer faces, JSTL, Web 2.0 , Websphere Web(Co-existence),Websphere Web(Extended),Default Style Sheet facets.. and these facets musts be enabled for our project.
    2- i have created the CourseList.xsd and using -JAXB- i have created lessons.java
    3- i right clicked project and from the menu .. JPA tools->Generate Entities .. i choose connection and tables to generate entities but unfortunately no entity gets created ... when i only choose student table to generate the entity of, Student.java is being created however Courses.java always returns nullpointerexception..
    the stack trace of the exception is in the picture i attached.. here is its link.... [http://www.ibm.com/developerworks/forums/servlet/JiveServlet/download/430-250134-14212507-336353/hata.JPG]
    i have thought it might be because i use the openjpa and jaxb libraries of RSA.. and then i tried to load the latest versions of JAXB and openjpa .. i added all of their .jar files to the application classpath.. (if it is sufficient to add only openjpa-1.2.0.jar and jaxb-api.jar files let me know it please).. but this did not work neither..
    the only exception i get is :
    An internal error occurred during: "Generating Entities".
    java.lang.NullPointerException
    while creating lessons.java and the entity java files i am making sure that i give the same package name for both ... but i never succeeded creating courses.java..
    in RSA when i right click to project and go te JPA Tools menu there is a menu item "Configure Project for JDBC deployment" .. what is this for.. i have also tried using this and then trying to create entities but this failed too..
    then when they did not work ;
    i have decided to code the classes myself but in order to get things a little easier, i opened my DB and converted the XML column to a SMALLINT column .. just not an XML column... and then using JPA in RSA - i did not include openJPA jars in my project externally- i created the classes .. both Course.java and Student.java have been created well, because the column that was actually xml was converted to small integer..
    and if i add the related persistence and strategy lines :
    @Persistent
    @Strategy("org.apache.openjpa.xmlmapping.XmlValueHandler")
    to their proper places and editing the function and attributes data types and return types and then if i re-convert the column to XML data type in database, do you think it will work properly?
    so i really need a suggestion.. any help will be appreciated..
    what would you suggest?
    how can we achieve this goal for those two tables i mentioned above in RSA and using JPA ?

    Hi Tushar
    You will need to be more specific. Do you want an XML layout to use for importing or exporting SAP Business One objects? Maybe give us details of the specific object. Most DI API objects have a write to XML which will give you the layout for that object. You can also refer to the REFDI.CHM file under the SDK Help folder.
    Kind regards
    Peter Juby

  • Getting JPA class attributes inside Visual JSFs

    Hi,
    I'm new her, so I'm deeply sorry if I'm writing this on the wrong place. But I have a small issue with the Visual JFSs in Netbeans.
    I have created a project where a person can log in and see some data, all is done using Java persistence API. I was able to get the JPA attributes into a normal JSP. by doing something like this.
    <body>
            <f:view>
                <h1><h:outputText value="You are now logged in" /></h1>
                Welcome ${user.email}  You've been loggedin successfully.
                <h:form>
                    <h:commandButton id="logout" value="Logout" action="#{usermanager.logout}"/>
                </h:form>
            </f:view>
        </body>it works fine and displays the correct result. But when I go and do this inside a Visual JSF, it does NOT give me any compiler errors. But it wont display anything. Just a blank screen. If I remove that particular code and put some label or text there, then it works. But NOT when I try to access the JPA attributes.
    Why is this happening?. I basically need a way to retrieve the bean information which is stored in a Entity class which was created from the database. Can't I do it using this ${user.email} kind of notation. If so, then how to do it. Can someone please help me.
    Thanks a lot.

    Source is empty, But I checked the app server log after you suggested. It says something like this (among other things).
    Caused by: javax.servlet.jsp.JspException: Can't write content above <f:view> tag Illegal to flush within a custom tag
    so I tried out something like this.
    <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <webuijsf:page id="page1">
                <webuijsf:html id="html1">
                    <webuijsf:head id="head1">
                        <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                    </webuijsf:head>
                    <webuijsf:body id="body1" style="-rave-layout: grid">
                        <webuijsf:form id="form1">
                            <webuijsf:label binding="#{user.email}" id="label1" style="position: absolute; left: 120px; top: 72px" text="Label"/>
                        </webuijsf:form>
                    </webuijsf:body>
                </webuijsf:html>
            </webuijsf:page>
        </f:view>
    </jsp:root>but still it doesn't work. There was a conversion error where #{user.email} returns a String but it could not be assigned to a label. so I tried it this way as well.
    <webuijsf:body id="body1" style="-rave-layout: grid">
                        <webuijsf:form id="form1">
                            <webuijsf:staticText id="staticText1" binding="#{user.email}" style="position: absolute; left: 72px; top: 72px"/>
                        </webuijsf:form>
                    </webuijsf:body> Now there were no errors, But still it doesn't work.
    I ONLY need a way to get the information inside the entity classes which was created from the database using Object Relational Mapping. My problem is this works fine inside regular JSP but not inside Visual JSF. ??? :(

  • HAVING clause error in JPA 2 examples

    In Chapter 8: Query Language of the Pro JPA 2 Mastering the Java Persistence API book, the jpqlExamples WAR has this query:
    SELECT e, COUNT(p)
    FROM Employee e JOIN e.projects p
    GROUP BY e
    HAVING COUNT(p) >= 2
    When executed, the following error occurs:
    java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Error compiling the query [SELECT e, COUNT(p) FROM Employee e JOIN e.projects p GROUP BY e HAVING COUNT(p) >= 2], line 1, column 80: invalid HAVING expression [COUNT(p) >= 2] for query with grouping [GROUP BY e]. The HAVING clause must specify search conditions over the grouping items or aggregate functions that apply to grouping items.
    I bring this us because I have an application which is getting the same error and need a fix. If the query is indeed legal in JPA 2, then why the error? If if it is my setup however, then I would like suggestions on fixing it. I am using GlassFish v3 (build 74.2), updated regularly with the Update Tool.

    The bug has been reopened. Now it says:
    Reopening because there is some debate about whether this should be supported
    by the spec. Some people read the spec to say the above query is allowed - I
    am not convinced, but discussion can be appended to this bug if necessary.
    This is Bug 308482, and I assume at least a few might want to take a look.
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=308482

  • How to create a schedule to run once?

    I am having some problems getting a schedule to run only once. If I leave the repeat_interval empty, the schedule does not run at all. The documentation explains all the options for setting the repeat frequency, but it does not explain how to run it only once at a set time/date. I have created a user interface to allow the users to create their own schedules and I'd rather not do something like a "yearly" interval with an end date of next week. I need the generic solution.
    Any ideas?

    Hi Ravi,
    Thanks for your reply!
    I have just discovered something very interesting! best explained by example:
    (I might log an SR through metalink too. I'll be sure to update this thread with the outcome...)
    I create 3 schedules and 3 simple jobs:
    schedule 1 - start_date in 2 minutes time (eg. 11:30:00), repeat_interval => null
    schedule 2 - start_date in 2 minutes, 20 seconds time (eg. 11:30:20), repeat_interval => 'FREQ=DAILY'
    schedule 3 - start_date in 2 minutes, 40 seconds time (eg. 11:30:40), repeat_interval => null
    jobs 1, 2 and 3 just insert a row into a table through a PL/SQL block.
    My test results are as follows:
    1. The first time these schedules are created only schedule 2 runs. Schedules 1 and 3 never run.
    2. I drop and re-create all schedules and jobs, (adjusting the time to a few minutes in the future) and re-submit the schedules and jobs and they all run. I can continue this as many times as I like now and the repeat_interval of null will now work fine.
    3. re-start the 10gR2 database.
    4. re-create the schedules and jobs and only schedule 2 runs again. Schedules 1 and 3 never run. (I'm back at step 1!! I can reproduce this problem anytime by following these steps)
    My script is below:
    declare
    start_datetime__w timestamp(3) with time zone;
    repeat_interval__w varchar2(200);
    begin
    * REPEAT INTERVAL NULL TEST
    * TIM_SCHED_2_1 - no repeat interval
    * TIM_SCHED_2_2 - a repeat interval
    * TIM_SCHED_2_3 - no repeat interval (identical to TIM_SCHED_2_1)
    * Results on my 10gR2 database (Redhat Enterprise Linux 4.4) are:
    * job 2 will always run
    * jobs 1 and 3 will only run after the successful run of job2 AND jobs 1 and 3 have been re-created
    * Why?
    * It seems the scheduler needs a wakeup call!!!
    * test table: create table tim (col1 varchar2(30), col2 date);
    -- Cleanup previous jobs:
    --dbms_scheduler.drop_job      (job_name      => 'TIM_JOB_2_1');
    --dbms_scheduler.drop_schedule (schedule_name => 'TIM_SCHED_2_1');
    --dbms_scheduler.drop_job      (job_name      => 'TIM_JOB_2_2');
    --dbms_scheduler.drop_schedule (schedule_name => 'TIM_SCHED_2_2');
    --dbms_scheduler.drop_job      (job_name      => 'TIM_JOB_2_3');
    --dbms_scheduler.drop_schedule (schedule_name => 'TIM_SCHED_2_3');
    repeat_interval__w := 'FREQ=DAILY';
    -- create schedule TIM_SCHED_2_1, repeat_interval__w = null
    start_datetime__w := '27-FEB-2007 11:34:00.000 AM +10:00';
    dbms_scheduler.create_schedule (schedule_name => 'TIM_SCHED_2_1',
    start_date => start_datetime__w,
    repeat_interval => null,
    end_date => null,
    comments => 'schedule created at '||to_char(sysdate,'DD-MON-YYYY HH24:MI:SS'));
    -- create schedule TIM_SCHED_2_2, with a repeat_interval set
    start_datetime__w := '27-FEB-2007 11:34:20.000 AM +10:00';
    dbms_scheduler.create_schedule (schedule_name => 'TIM_SCHED_2_2',
    start_date => start_datetime__w,
    repeat_interval => repeat_interval__w,
    end_date => null,
    comments => 'schedule created at '||to_char(sysdate,'DD-MON-YYYY HH24:MI:SS'));
    -- create schedule TIM_SCHED_2_3, repeat_interval__w = null (SCHEDULE IDENTICAL TO TIM_SCHED_2_1)
    start_datetime__w := '27-FEB-2007 11:34:40.000 AM +10:00';
    dbms_scheduler.create_schedule (schedule_name => 'TIM_SCHED_2_3',
    start_date => start_datetime__w,
    repeat_interval => null,
    end_date => null,
    comments => 'schedule created at '||to_char(sysdate,'DD-MON-YYYY HH24:MI:SS'));
    -- create jobs
    dbms_scheduler.create_job (job_name => 'TIM_JOB_2_1',
    schedule_name => 'TIM_SCHED_2_1',
    job_type => 'PLSQL_BLOCK',
    job_action => 'begin '||
    'insert into tim values (''TIM_JOB_2_1'', sysdate); '||
    'commit; '||
    'end;',
    number_of_arguments => 0,
    enabled => TRUE,
    comments => 'job created at '||to_char(sysdate,'DD-MON-YY HH24:MI:SS'));
    dbms_scheduler.create_job (job_name => 'TIM_JOB_2_2',
    schedule_name => 'TIM_SCHED_2_2',
    job_type => 'PLSQL_BLOCK',
    job_action => 'begin '||
    'insert into tim values (''TIM_JOB_2_2'', sysdate); '||
    'commit; '||
    'end;',
    number_of_arguments => 0,
    enabled => TRUE,
    comments => 'job created at '||to_char(sysdate,'DD-MON-YY HH24:MI:SS'));
    dbms_scheduler.create_job (job_name => 'TIM_JOB_2_3',
    schedule_name => 'TIM_SCHED_2_3',
    job_type => 'PLSQL_BLOCK',
    job_action => 'begin '||
    'insert into tim values (''TIM_JOB_2_3'', sysdate); '||
    'commit; '||
    'end;',
    number_of_arguments => 0,
    enabled => TRUE,
    comments => 'job created at '||to_char(sysdate,'DD-MON-YY HH24:MI:SS'));
    end;
    Cheers,
    Tim.

  • How can I create stored procedure?

    I am new in this field, I was reading in this web site on how to create stored procedure,and this is what I did :
    SQL> CREATE PROCEDURE test.proc1 (n IN NUMBER)
    2 AS BEGIN
    3 select * from districts
    4 where doe = n;
    5 END;
    6
    Please direct me. I don't know if I am wrong or right, test is the name of the database, and proc1 is the stored procedure that I want to create, why when I hit Enter after END; I got the number 6.
    How can I call this stored procedure, if it works.
    Thanks in advance
    null

    Some reading and training might prove useful. Even if you are using Linux, this forum is no place for a question like that.

  • Auto created line item in J1inchln

    Sap Gurus
    while doing J1INCHLN extra line is creating for WCT liability account.
    FS10n WCT liability account is showing credit balance of Rs 125000
    while updating challan one extra line item in credit side is generating by system automatically for Rs 3150 and debit the Liability account, by crediting the Govt. as vendor account by 128150.
    WCT liability A/C        Dr       128150
    Govt. Vendor A/C      Cr       125000
    WCT liability A/C       Cr         3150…………….Auto Created
    Why this entry is generating Please suggest.
    Pavan

    Hi Pavan,
    Check the Govt. Vendor master - withholding tax tab, whether any TDS payment related tax codes are assigned.  If so remove them and run the transactions again.
    Hope it helps

  • Creating print files that clients can modify in the future without using Indesign

    If I create a print/design piece for clients in Indesign CS3 is there a file format I can give them that they can modify in the future without coming back to me to modify it for them? Essentially build them a design template which they can use for another program such as word / publisher / something like that?
    Yes, publisher is gross...I know, i know, i cringed a little too...

    I'm with David on this one. If you can charge the client for making changes to a project you already created, why not do so? If the client has ASKED you for an "editable" format of the project so they can "save money" by making their own edits, they're cheating you.
    In a nutshell, if a client wants to edit a project, as Rodney mentioned, they'll need to pony up and purchase the required software, and THEN learn how to use it--nothing is free, right?
    Also be aware that by giving a client access to your production files, you are setting yourself up for the possibility of many phone calls "asking" how to do this or that in the files. Unless you also plan on adding a cost update for program tutorials, I wouldn't even think of it.
    Another thing to consider is this; once you turn over any production files, you may also be blamed for "corrupt files" when the client takes those files (edited or not) to an unknown printer who may tell the client, "I can't use these files". The client will then call you in frustration, exclaiming "The files you sent me are bad! The printer can't use them. You have to fix this right away." At this point, your best option is to add a disclaimer such as a READ-ME file on the disk, that states you aren't responsible for the quality of output of any files which you do not maintain final production control.
    Remember: we (as designers, printers, etc.) are in business to make money doing a job that a client doesn't know how to do. That's what business is all about. Just because a client might want to "save money" by doing it themselves doesn't mean you have to "train" them to do it without charging for that service, as well. In my business, I have an actual cost update item entry called "Software Assistance and Training", and we charge $180 per hour or fraction thereof to walk clients through editing a document we created, if they insist on requesting the project files from us. It makes sure we get paid for the time spent on all projects, even if it means spending an hour on the phone to "walk" a client through the steps of using the program. And finally: A client that doesn't want to pay for your services is a client any profitable business doesn't need.
    Just something to think about...
    Mikey

Maybe you are looking for

  • How to print to a specific printer tray in BOXI

    Post Author: hoochpit CA Forum: General I have a customer that wants the same report to print to different printer trays depending on parameters sent it.  We have no problem recognizing which tray it should go to, but cannot get it to print to the tr

  • 2 ipods and itunes accounts on one computer

    We have one computer in our home, and it has multiple accounts.  My iTouch is synced with my iTunes account and my nephews iTouch is synced with his iTunes account.  I was in the process of updating his ipod for him so he could use the features on hi

  • After update 7.1.2 i get no wifi.

    After I updated my iPhone 5 i get no internet connection on my apps.(for example snapchat will not load the snaps i get) I tried backing up my phone but that did not work.

  • AS2 adapter Outbound Message

    Hi, We have recently configured AS2 adapter for a party and started to test.  We tried to send an outbound message to the party and found the following status in our seeburger monitor It says "Initiaion to Backend Pending" with yellow state. Further

  • Controller failure - APs still online?

    If I have one controller and it fails, will the lightweight APs still be online? Or will my wireless network be down? I searched and cannot find an answer to this question. Thanks for your help.