Help with Defining a new Concurrent Program using Parameters

I wrote a very simple sql script and I want to register it as an Oracle Concurrent Program. I included a parameter field in the sql script to allow the entry of value to determine the number of days prior for the script. The script runs successfully in SQL*Plus, but when I try to register it as an Oracle Concurrent Program I get the following errors below:
This works in SQL* PLUS
SELECT emp_id, amount
FROM tblSalaries
WHERE hire_date > SYSDATE-&Days;
Enter value for Days: 7
old    3: hire_date > SYSDATE-&Days
new  3: hire_date > SYSDATE-7
And it provides my results....Although when I register this as a concurrent program and assign the parameter in the setup, and run the concurrent program and enter the number in the parameter field, the job completes in ERROR with the following:
Enter value for Days: EXEC FND_CONC_STAT.COLLECT;
hire_date > SYSDATE-EXEC FND_CONC_STAT.COLLECT; and
ERROR at line 3:
ORA-00933: SQL command not properly ended If I put single quotes around '&Days', in line 3, I get a different error:
ERROR at line 3:
ORA-01722: invalid number Do you know what could be the problem?
Thanks for reviewing!

Duplicate post - Setup for Defined Concurrent Program with Parameters - SQL Script
Srini

Similar Messages

  • Need help with updates and new apple programs

    something happened to my pc. having problems with my pc when it restarts.
    wondered if anyone whichapple updates require a restart, and which don't?
    if they require a restart to finish installation, they fail, and my pc crashes, and i have to resintall os.
    i know the iwork does not require a restart, where ilife does. so for now, i can install iwork, but not ilife.
    in anyone familiar with 10.5.6 knows which updates/add ond require a restart and which don't, please post. any help appreciated. 4th re install now.

    Hey network --
    Sorry to hear of your problems . . .
    What Mac are you running there?
    Did the installation of 10.5.6 finally go well?
    You're having problems with iLife, but what about Snow Leopard?

  • Summary : WF: PO - Emailing PO's from concurrent program using new workflow

    Hi Consultants,
    We have requirement to send PO - Emailing PO's from concurrent program using new workflow
    Request details>
    develop a way to email a PO as a PDF from the reports menu. Currently the PO can only be emailed from the PO approval screen.
    The business would like a way to email the PO anytime after the PO is approved. Reference IT Request ticket #87341.
    Ticket#87341: Details
    Details: If a purchase order has been sent to the supplier by email, and it needs to be resent for some reason (lost, recipient out on vacation, etc.)
    we have to print off a hard copy, then scan it and email it out.
    We cannot just send a new email copy directly. We would like to have the ability to re-send an email copy of the PO directly.
    Business Justification: If a purchase order has been sent to the supplier by email, and it needs to be re-sent for some reason (lost, recipient out on vacation, etc.) we have to print off a hard copy, then scan it and email it out. We cannot just send a new email copy directly.
    This takes extra time and is inefficient.
    Please advice me how can i achive this one
    Thanks,
    Ashok

    Pl post details of OS, database and EBS versions.
    Pl see if MOS Doc 387949.1 (How Can a User Email a Purchase Order To an Email Address Without Modifying and Reapproving the PO?) can help
    HTH
    Srini

  • Can anyone help with associate my new iPhone with iTunes? My other old devices are there, but I see only how to delete one, not how to add one.  Thank you.

    Can anyone help with associate my new iPhone with iTunes? My other old devices are there, but I see only how to delete one, not how to add one.  Thank you.

    iTunes Match is a subscription system that allows you to upload your own music (e.g. coped from CDs) to the cloud so that it shows (in the cloud) on your devices and computers without having to sync/copy it.
    Automatic downloads allows to, for example, buy an app on your computer's iTunes and have it automatically download on your phone without having to connect and sync it or go to the Purchased tab in the App Store app on your download and download it yourself - but doing that, going to the Purchased tab and redownloading an app, should get it associated.
    But no, I'm not aware of any problems that not having it associated causes.

  • Help with setting an IF value when using a Pop-up Value

    Hello,
    I'm hopeful that someone out there has enough understanding with numbers to help me figure out how to program this function.
    I'm trying to create a spreadsheet that will allow me to track payments that have been reimbursed for a given service provided in a medical clinic. As the payout from the insurance companies is not only variable with time before reimbursement, but also with the actual amount that the each reimburses for a given procedure - I'm trying to create a system to track this all.
    So,  here's what I've got so far:
    On one sheet, I've created a one column - in which I've created a pop-up menu selection using three of the insurance companies that we bill out to regularly (let's call it Column I - cell I2).  On "another" sheet, I've created a list of values comprised of what the actual reimbursement from each of the three companies is for the particular service provided, in dollar amounts.
    What I'm trying to do, is set it up so that when I select say "First Choice" from the pop-up menu (cell "I2), the dollar value from the "other" sheet appears in the column following that of the pop-up menu column (column I),  with this new value now in (Column J) - cell J2.  I had then planned on being able to create a row at the bottom of the entire sheet that could then "SUM" the values represented by the newly created J2 cell.
    Any help would be GREATLY appreciated!

    Hello
    I guess that the contents of the table "rates" is clear.
    In table "Main", standard cells of column E contain a popup menu with four items :
    "company 1"
    "company 2"
    "company 3"
    In standard cells of column I, the formula is :
    =IFERROR(VLOOKUP(E,rates :: $A:$B,2,0),"")
    Yvan KOENIG (VALLAURIS, France) jeudi 28 avril 2011 18:50:26
    Please :
    Search for questions similar to your own before submitting them to the community

  • How do I define a new salutation for use in vendor & customer master data?

    Hi
    Can someone please advise how/where I need to go in order to define a new salutation type (eg: to be used in vendor and customer master set up)
    We currently have several standard salutations (eg: Mr, Miss) but not some really common ones we use (eg: Dr, Rev, Sir etc)
    I guess this might be somewhere in SPRO/IMG but anyone with the answer will be awarded points.
    Thanks
    Steve

    That's fixed it
    T code SA03
    Thanks & points awarded...
    Steve

  • How to integrate a class with template.java - Java Concurrent Program. 11i

    Hello, I have a java class I got from a vendor. This java class needs to run through as concurrent program. As per metalink note *How To Create a Java Concurrent Program? [ID 827563.1]* it says that, we must require template.java to wrap around the custom class. I have done that in the following java code. However, being a new java guy, I really dont know how to connect these two classes and constructor.
    Any suggestions about how do I make these classes work in order to run from a concurrent program?
    package oracle.apps.fnd.cp.request;
    import oracle.apps.fnd.util.*;
    import oracle.apps.fnd.cp.request.*;
    import java.io.BufferedReader;
    import java.io.IOException;
    import javax.net.ssl.SSLSocketFactory;
    public class cyberBatch implements JavaConcurrentProgram {
        // Optionally provide class constructor without any arguments.
        // If you provide any arguments to the class constructor then while running the program will fail.
        public void runProgram(CpContext pCpContext) {
            ReqCompletion lRC = pCpContext.getReqCompletion();
            String CompletionText = "";
        // This class is to upload files but can be expanded to download files also.
        public class SSLFileTransfer {
            Properties props =
                new Properties(); // stores properties from property file
       * SSLFileTransfer(): constructor
            public SSLFileTransfer() {
       * init(): initialization (load property file)
          * @param propsFile          properties needed for file transfer
            public void init(String propsFile) {
                try {
                    props.load(new BufferedInputStream(new FileInputStream(new File(propsFile))));
                } catch (Exception e) {
                    e.printStackTrace();
                    System.exit(-1);
       * usage()
            public static void usage() {
                System.out.println("USAGE: java SSLFileTransfer <full path property file name>");
                System.exit(-1);
       * getFactory(): get factory for authentication
          * @throws IOException     if exception occurs
            private SSLSocketFactory getFactory() throws IOException {
                try {
                    SSLContext ctx;
                    KeyManagerFactory kmf;
                    KeyStore ks, ks1;
                    char[] passphrase =
                        props.getProperty("passPhrase").toCharArray();
                    ctx = SSLContext.getInstance("TLS");
                    kmf = KeyManagerFactory.getInstance("SunX509");
                    ks = KeyStore.getInstance("PKCS12", "BC");
                    ks1 = KeyStore.getInstance("JKS");
                    ks.load(new FileInputStream(props.getProperty("key")),
                            passphrase);
                    ks1.load(new FileInputStream(props.getProperty("keyStore")),
                             passphrase);
                    kmf.init(ks, passphrase);
                    TrustManagerFactory tmf =
                        TrustManagerFactory.getInstance("SunX509");
                    tmf.init(ks1);
                    ctx.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
                    return ctx.getSocketFactory();
                } catch (Exception e) {
                    e.printStackTrace();
                    throw new IOException(e.getMessage());
       * getHost(): Get host from property file
            private String getHost() {
                return props.getProperty("host", "localhost");
       * getPort(): Get port from property file
            private int getPort() {
                return Integer.parseInt(props.getProperty("port"));
       * sendRequest(): Send request (file) to the server
          * @param out          stream to send the data to the server
          * @throws Exception     if an error occurs.
            private void sendRequest(PrintWriter out) throws Exception {
                String path = props.getProperty("path");
                out.println("POST " + path + " HTTP/1.0");
                final String BOUNDARY = "7d03135102b8";
                out.println("Content-Type: multipart/form-data; boundary=" +
                            BOUNDARY);
                String uploadFile = props.getProperty("uploadFile");
                String authString =
                    props.getProperty("bcUserName") + ":" + props.getProperty("bcPassword");
                String encodedAuthString =
                    "Basic " + new sun.misc.BASE64Encoder().encode(authString.getBytes());
                out.println("Authorization: " + encodedAuthString);
                final String CRLF = "\r\n";
                StringBuffer sbuf = new StringBuffer();
                sbuf.append("--" + BOUNDARY + CRLF);
                sbuf.append("Content-Disposition: form-data; name=\"upfile\"; filename=\"" +
                            uploadFile + "\"" + CRLF);
                sbuf.append("Content-Type: text/plain" + CRLF + CRLF);
                FileReader fi = new FileReader(uploadFile);
                char[] buf = new char[1024000];
                int cnt = fi.read(buf);
                sbuf.append(buf, 0, cnt);
                sbuf.append(CRLF);
                sbuf.append("--" + BOUNDARY + "--" + CRLF);
                int sz = sbuf.length();
                out.println("Content-Length: " + sz);
                out.println();
                out.println(sbuf);
                out.flush();
                // Make sure there were no surprises
                if (out.checkError())
                    System.out.println("SSLFileTransfer: java.io.PrintWriter error");
       * readResponse(): reads response from the server
          * @param in          stream to get the data from the server
          * @throws Exception     if an error occurs.
            private void readResponse(BufferedReader in) throws Exception {
                boolean successful = false;
                String inputLine;
                while ((inputLine = in.readLine()) != null) {
                    if (inputLine.startsWith("HTTP") &&
                        inputLine.indexOf("200") >= 0)
                        successful = true;
                    System.out.println(inputLine);
                System.out.println("UPLOAD FILE " +
                                   (successful ? "SUCCESSFUL" : "FAILED") +
                                   "!!!\n");
       * upload(): upload file to server
          * @throws Exception     if an error occurs.
            public void upload() throws Exception {
                try {
                    SSLSocketFactory factory = getFactory();
                    SSLSocket socket =
                        (SSLSocket)factory.createSocket(getHost(), getPort());
                    PrintWriter out =
                        new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())));
                    BufferedReader in =
                        new BufferedReader(new InputStreamReader(socket.getInputStream()));
                    socket.startHandshake();
                    sendRequest(out);
                    readResponse(in);
                    out.close();
                    in.close();
                    socket.close();
                } catch (Exception e) {
                    e.printStackTrace();
                    throw e;
       * main(): main method to start file transfer
          * @param args          command line arguments (property file, see usage())
          * @throws Exception     if an error occurs.
            public static void main(String[] args) throws Exception {
                if (args == null || args.length != 1)
                    usage();
                SSLFileTransfer fileXfer = new SSLFileTransfer();
                fileXfer.init(args[0]);
                fileXfer.upload();
        lRC.setCompletion(ReqCompletion.NORMAL,CompletionText) ;
    }Thanks,
    R

    I believe the OP is aware of this :) -- Re: Oracle 11i - 11.5.10.2 - and Java
    Thanks,
    Hussein

  • Issue with class loading -  Java concurrent Program

    Hi ,
    We are facing a strange issue for one of our customer.
    Scenario :
    We have a Java Concurrent Program (A.java ) which refers another Java class (B.java) , we modified the file B.java for a fix and created a patch. after applying the patch and bouncing the apache ,we found that B.java is loaded the old version of the class file.
    We asked them to restart the concurrent manager and related services, still we see that old version of B.java is loaded. (confirmed by adding code throwing exception - throw new Exception from a specific line and found that its not getting thrown at run-time)
    Any clue on this?.
    Thanks
    Joseph George

    Deployed this file both tier - Database server tier and Application server tier.
    I have face same issue, Concurrent program not picking file application server tier. its picking file from database server tier.
    Thanks, Avaneesh

  • Downloaded yosemite and my iPhotos pics now appear as a grey square and triangle with an ! in it with in the new photos program

    I have a mac book pro and i just downloaded yosemite. after i downloaded yosemite i went to the new photos program as he iPhoto icon was no longer there and i followed the instructions. i then opened my pics and they all seemed to be there but when i enlarge them or double click on them all i see is a grey screen with a grey square with a grey triangle with an exclamation point in it. so in reality the pics aren't really there! maybe they are somewhere else but i do not know.
    just so you know: before i downloaded yosemite i did all the upgrades my computer said i needed to do, no iPhoto upgrade was listed. i didn't do any specific backup before downloaded yosemite but i do have a time machine connected to the computer so i do believe that i therefore have a backup. i am not exactly sure what version iPhoto i had but perhaps my iPhoto and the new photos program are not compatible. i say that because when i went into applications and clicked on iPhoto (as it was listed there) it said "in order to open "iPhoto" you need to update to the latest version. the version of iPhoto installed on this mac is not compatible with os x yosemite. download the latest version for free from the mac app store." so i searched the app store and it says that version is not available. the app store does list iPhoto in my purchased products but it only says update and not download. i clicked on update it doesn't appear to do anything but do a spinning circle for a few seconds and then nothing further. i don't know what to do next! what happened and how do i go about fixing this problem?

    The exclamation mark means that the app has lost the link to the actual file.
    First step: try and make sure the iPhoto Library is working correctly:
    Go to the App Store and check out the Purchases List. If iPhoto is there then it will be v9.6.1
    If it is there, then drag your existing iPhoto app (not the library, just the app) to the trash
    Install the App from the App Store.
    Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • How Can I Submit A Concurrent Program Using Form Personalizaton?

    How can I submit a concurrent program? Please help!
    Thanks in advance
    PhuTri

    I think the problem in your case coould be that the Concurrent Program you are trying to run has not been registered in the responsibility from which you are runnig it.
    For eg. You are trying to run a program from Inventory Super User responsibility and the request group attached to the responsibility is say 'RG Inventory', but the concurrent program which you are trying to run from your inventory super user responsibility is registered under some other request group say 'RG Order Mangement' which is not attached to the nventory responsibility.
    So register the program under correct request group and see if this helps you.
    Other possibility is that check if you have permission to submit request from that responsibility. You can check this by going to the Menu ->View If the Request menu is disabled then you cannot submit the request.

  • New "Windows Programming Using Java" Website

    Our newly created "Windows Programming Using Java" website (http://fivedots.coe.psu.ac.th/~ad/winJava/) is for programmers who want to extend Java's capabilities on Windows XP and/or Vista, but aren't sure where to start. One of the drawbacks of Java's portability is that many Java programmers have a rather sketchy knowledge of Windows-specific programming.
    We plan to explain how Java applications can utilize Windows application software, OS features, and hardware beyond the reach of Java's standard libraries. A variety of Java/Windows programming techniques will be explained, including:
    * Java's employment of the Win32 API via C, JNI, and J/Invoke.
    * Java's utilization of Window's Command Line Interface (CLI) and batch files, accessed through Java's Runtime, ProcessBuilder, and Process classes.
    * Java and Windows object-based scripting, centered around the use of VBScript, Windows Script Host (WSH), and Windows Management Instrumentation (WMI).
    * Java interoperability with COM, including hosting of ActiveX controls in Swing containers using jacoZoom.
    This website is a work in progress, with four chapters available for download at the moment. We'll be adding more regularly, and would love feedback on what we're doing.
    Thanks,
    Gayathri Singh and Andrew Davison
    [email protected] and [email protected]
    Edited by: AndrewDavison on Jun 20, 2008 1:36 AM

    Hi, I am looking the similar kind of requirement that you had done.. Do you have any more details on the code that is working for you . All i need is if the user logs in successfully in windows, the the app should be accessible. Please let me know if you have the code with you on this problem.
    Thanks in advance
    "what i meant is the we b applications running in my system, when i access the application iam able to to login automatically with windows authentication and now in case of other users following process happened:"

  • Need help with defining composite foreign keys

    Hi there, i´m in troubles with defining a composite foreign key. The scenario is:
    * Table TABLE_A has no unique primary key. Instead its primary key is a composition of five foreign keys.
    * Table TABLE_B and TABLE_A have a many-to-many relationship with each other.
    When I create the entity manager for running the DDL scripts into the DB i´m getting "ORA-02270: no matching unique or primary key for this column-list".
    These are my entities (sorry the portuguese terms, but i think the issue can be understood without translation...).
    @Entity
    @Table( name = "DESTAQUE_PDE" )
    public class DestaquePDE implements Serializable {
         private static final long serialVersionUID = 4694859522628884981L;
         @Id
         @GeneratedValue( strategy = GenerationType.SEQUENCE )
         @Column( name = "ID_DESTAQUE_PDE", nullable = false )
         private long id;
    //Some fields were ommited here for simplicity....
         @ManyToMany( cascade = CascadeType.ALL )
         @JoinTable( name = "JOIN_DESTAQUES_CORRELACAO",
                        joinColumns           = @JoinColumn( name = "JOIN_ID_DESTAQUE", referencedColumnName = "ID_DESTAQUE_PDE" ),
                        inverseJoinColumns      = {@JoinColumn( name = "JOIN_ID_COR_PUB_ALVO", referencedColumnName = "FK_ID_PUBLICO_ALVO" ),
                                                 @JoinColumn( name = "JOIN_ID_COR_RES_LINHA", referencedColumnName = "FK_ID_RESOLUCAO_LINHA" ),
                                                 @JoinColumn( name = "JOIN_ID_MOD_CRED", referencedColumnName = "FK_ID_MODALIDADE_CREDITO" ),
                                                 @JoinColumn( name = "JOIN_ID_AG_FIN", referencedColumnName = "FK_ID_AGENTE_FINANCEIRO" ),
                                                 @JoinColumn( name = "JOIN_ID_PROG_LINHA", referencedColumnName = "FK_ID_PROGRAMA_LINHA" )}
         private List<EntradaTabelaCorrelacao> correlacoes;
    @Entity
    @Table( name = "CORRELACAO" )
    @IdClass( TabelaCorrelacaoPK.class )
    public class EntradaTabelaCorrelacao implements Serializable {
         private static final long serialVersionUID = -3337072470212918325L;
         @Id
         @Column( name = "FK_ID_PUBLICO_ALVO" )
         private long idPublicoAlvo;
         @Id
         @Column( name = "FK_ID_RESOLUCAO_LINHA" )
         private long idResolucaoLinha;
         @Id
         @Column( name = "FK_ID_MODALIDADE_CREDITO" )
         private long idModalidadeCredito;
         @Id
         @Column( name = "FK_ID_AGENTE_FINANCEIRO" )
         private long idAgenteFinanceiro;
         @Id
         @Column( name = "FK_ID_PROGRAMA_LINHA" )
         private long idProgramaLinha;
         @Column( name = "CS_SITUACAO", nullable = false, length = 1 )
         private String situacao;
         @ManyToMany( mappedBy = "correlacoes" )
         private List<DestaquePDE> destaquesPDE;
    //more relationships ommited for simplicity....
    public class TabelaCorrelacaoPK implements Serializable {
         private long idPublicoAlvo;
         private long idResolucaoLinha;
         private long idModalidadeCredito;
         private long idAgenteFinanceiro;
         private long idProgramaLinha;
    //getters and setters ommited....
    These are part of the DDLs generated by toplink:
    CREATE TABLE DESTAQUE_PDE (
         ID_DESTAQUE_PDE NUMBER(19) NOT NULL,
         VL_ALOCACAO_AUTORIZADA NUMBER(16,2) NOT NULL,
         VL_TOTAL NUMBER(16,2) NOT NULL,
         QT_OPERACOES NUMBER(16,2) NOT NULL,
         NM_DESTAQUE_PDE VARCHAR2(255) NOT NULL,
         VL_ESTIMATIVA_REAPLICACAO NUMBER(16,2) NOT NULL,
         VL_MONTANTE NUMBER(16,2) NOT NULL,
         FK_ID_PDE NUMBER(19) NOT NULL,
         FK_RESOLUCAO_PROGRAMA NUMBER(19) NOT NULL,
         PRIMARY KEY (ID_DESTAQUE_PDE)
    CREATE TABLE CORRELACAO (
         FK_ID_PUBLICO_ALVO NUMBER(19) NOT NULL,
         FK_ID_RESOLUCAO_LINHA NUMBER(19) NOT NULL,
         FK_ID_MODALIDADE_CREDITO NUMBER(19) NOT NULL,
         FK_ID_AGENTE_FINANCEIRO NUMBER(19) NOT NULL,
         FK_ID_PROGRAMA_LINHA NUMBER(19) NOT NULL,
         CS_SITUACAO VARCHAR2(1) NOT NULL,
         PRIMARY KEY (FK_ID_PUBLICO_ALVO, FK_ID_RESOLUCAO_LINHA, FK_ID_MODALIDADE_CREDITO, FK_ID_AGENTE_FINANCEIRO, FK_ID_PROGRAMA_LINHA)
    ALTER TABLE DESTAQUE_PDE
    ADD CONSTRAINT FK_DESTAQUE_PDE_FK_ID_PDE
    FOREIGN KEY (FK_ID_PDE)
    REFERENCES PDE (ID_PDE)
    ALTER TABLE DESTAQUE_PDE
    ADD CONSTRAINT DESTAQUEPDEFKRESOLUCAOPROGRAMA
    FOREIGN KEY (FK_RESOLUCAO_PROGRAMA)
    REFERENCES RESOLUCAO_PROGRAMA (ID_RESOLUCAO_PROGRAMA)
    (*) ALTER TABLE CORRELACAO
    ADD CONSTRAINT CORRELACAO_FK_ID_PUBLICO_ALVO
    FOREIGN KEY (FK_ID_PUBLICO_ALVO)
    REFERENCES PUBLICO_ALVO (ID_PUBLICO_ALVO)
    ALTER TABLE CORRELACAO
    ADD CONSTRAINT CORRELACAOFKID_RESOLUCAO_LINHA
    FOREIGN KEY (FK_ID_RESOLUCAO_LINHA)
    REFERENCES RESOLUCAO_LINHA (ID_RESOLUCAO_LINHA)
    ALTER TABLE CORRELACAO
    ADD CONSTRAINT CRRELACAOFKIDMODALIDADECREDITO
    FOREIGN KEY (FK_ID_MODALIDADE_CREDITO)
    REFERENCES MODALIDADE_CREDITO (ID_MODALIDADE_CREDITO)
    ALTER TABLE CORRELACAO
    ADD CONSTRAINT CORRELACAOFKIDAGENTEFINANCEIRO
    FOREIGN KEY (FK_ID_AGENTE_FINANCEIRO)
    REFERENCES AGENTE_FINANCEIRO (ID_AGENTE_FINANCEIRO)
    ALTER TABLE CORRELACAO
    ADD CONSTRAINT CORRELACAOFK_ID_PROGRAMA_LINHA
    FOREIGN KEY (FK_ID_PROGRAMA_LINHA)
    REFERENCES PROGRAMA_LINHA (ID_PROGRAMA_LINHA)
    As I told before, the error i´m getting with these mappings is:
    ORA-02270: no matching unique or primary key for this column-list
    The error occurs exactly when executing the instruction with (*).
    Thanks in advance for any help!
    Regards
    Loreno

    The error says that the table PUBLICO_ALVO does not have a primary key or unique constraint for (ID_PUBLICO_ALVO), so you cannot define a foreign key constraint to it. This table was not included in your DDL, how was it created? You need to add a primary key or unique constraint in this table on this field.
    If you do not wish to have the unique or foreign key defined you can just ignore the error, it is just a warning.
    <p>---
    <br>James Sutherland
    <br>Oracle TopLink, EclipseLink
    <br>Wiki: Java Persistence, EclipseLink

  • [New] Help with a VERY simple asterisk program.

    Alright...I feel like a complete idiot asking this question..but I'm having such trouble writing this program. The program description is here:
    Write a Java application using two for loops to produce the following pattern of asterisks.
    I guess I'm really bad at algorithms yeah? Haha...well, any help would be very much appreciated.

    Hi,
    I don't think you don't need to look through any C programming books.
    When you have a problem like this, do some thinking about what methods you need to use and what the general structure of the program will be.
    You need to print asterisks out to the screen... so you'll need:
    System.out.println
    System.out.printAnd you already know that you need two loops.
    Now you can ask yourself how you might use the print statements with two loops in order to design a basic structure for the program.
    You have 8 lines, so you might want a loop that runs through 8 times, one of the lines printed each time.
    Within this loop, you need another loop that prints out *'s. This loop could run once for each asterisk, but because there is a different number of asterisks on each line, the number of times this loop runs would be variable.
    So a basic structure:
    //loop1 that runs 8 times
        //loop2 that runs once for each *
            print one star
        //end loop2
    //end loop1The key now is to recognise the difference between print and println. I don't know if you alread know, but System.out.print will print a string without creating a new line at the end, and println will create a new line at the end of the printed string.
    Hope that helps. If you have any other problems, post specific questions along with the code you've written and are having trouble with.

  • Hi, Ever since I updated the new Version 9, my internet closes intermittently for no reason or report, plus it seems to be hanging for longer periods. Can anyone help with this, the system I am using is Windows7. Thanking you in advance, Rgds Arthur

    My system is windows 7 and the laptop I am using is a 4 month old Sony Vaio.

    Perform the suggestions mentioned in the following articles:
    * [[Firewalls]]
    * [[Server not found]]
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
    * [[How to clear the cache#w_clear-the-cache|Clear the Network Cache]]
    Check and tell if its working.
    -> Update All your Firefox Plugins
    * https://www.mozilla.org/en-US/plugincheck/
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
    * Restart Firefox

  • Help with Defining a Class

    I wrote a program that reads files and parses the contents. This information is stored in a vector and then this vector is stored in another vector.
    This is a simplified version of the code.
    Vector Row = new Vector();
    Vector Field = new Vector();
    Field.addElement("Date");
    Field.addElement("Title");
    Field.addElement("Version");
    Row.addElement(Field);How can I do this by defining a class? I don't have to use a Vector for the Field information. ArrayList will do the job. I want to be able to store the information that I parse from the fill using something like:
    myDocument Fields = new myDocument;
    Fields.addDate("Date");
    Fields.addTitle("Title");
    etc...
    Row.addElement(Fields);All the information parsed out is a String. When I used the .addDate, it should convert the String into a Date.
    .addVersion would convert the String to an integer.
    This class stuff sure is confusing.
    I think I need to do something like:
    class myDocument extends ArrayList {
         Date myDate;
         String myTitle;
         int myVersion;
    public myDocument() {
    /code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    That does help. I wasn't sure if I was on the right track with how to define the class. I added some comments to the code below. Do my comments make sense? Do I understand the terminology and flow of this class?
    So my class would look like this:
    class myDocument extends HashMap{
         Date myDate;  //these are called class variables???
         String myTitle;
         int myVersion;
    public addDate(String dateString) {
          SimpleDateFormat dtFormat = new SimpleDateFormat("MM/dd/yyyy");
          myDate = dtFormat.parse(dateString);
          this.put("Data", myDate);
    public addTitle(String titleString) {
          myTitle = titleString;  //Don't think I need this. Can just this.put("Title", titleString);???
          this.put("Title", myTitle);
    public addVersion(String versionString) {
          int myVersion = Integer.parseInt(versionString);
          this.put("Version", myVersion);
    public myDocument() { //constructor???  Do nothing in here because I am creating a simple HashMap???
    }The program would call the class like this:???
    Vector Row = new Vector();
    myDocument Field = new myDocument(); //This creates a Field object that really is a HashMap with some new methods???
    Field.addDate(parsedString);// Calls the .addDate method in the myDocument class;  In the method, this.put would be the same as Field.put if Field was a HashMap not a myDocument???
    Field.addVersion(parsedString);
    Row.addElement(Field); // Store the new class in a Vector called Row

Maybe you are looking for

  • Windows Vista Treo 755 Not HotSynchin​g

    I have followed all the HELP links and am totally frustrated. I have had synch problems since I moved to Vista. I can go into my computer one day and all my Palm info is gone! The info remains on my phone, but won't synch to the PC.  I get the messag

  • IDVD, Burning a dvd

    Hi there, hope someone out there can help me! I have just finished a video clip for a band in imovie and have exported it to idvd to burn the finished product to dvd and up to there all seems to go well. However when I play back the dvd in any mac, i

  • Difference Between OBIEE 10g and OBIEE 11g

    Hi everyone, I have a doubt when choosing two versions of OBIEE, 10g and 11g. Actually, is there any big difference between 10g and 11 version ? From the point of view of easiness finding tutorial in internet, simplicity of using the tool, and other

  • Aren't there supposed to be more presets in the Color FX room in ver 1.5?

    Maybe I am crazy, but I thought there were more preset looks in FCS3?

  • Debug Webclient UI

    Hi,       I am new the CRM Web client UI programming part. How to debug a specific Webclient UI , if i know the techical details of the UI programing after press F2. for example. In business partner search i am searching based on the last name and fi