Can't create table - using JDeveloper 11g (11.1.1.3.0)

I am running a DDL to create a table:
CREATE TABLE HORSE
HORSE_NAME VARCHAR2(30) NOT NULL
, PLACE VARCHAR2(20)
, RACE_NAME VARCHAR2(30)
, RACE_DATE DATE
, CONSTRAINT HORSE_PK PRIMARY KEY
HORSE_NAME
ENABLE
The message I get is:
Error at Command Line:48 Column:13
Error report:
SQL Error: ORA-02264: name already used by an existing constraint
02264. 00000 - "name already used by an existing constraint"
*Cause:    The specified constraint name has to be unique.
*Action:   Specify a unique constraint name for the constraint.
This suggests to me that I should change the name to something else, like HORSE_ID. Whilst I don't agree that HORSE_NAME is used in another constraint I have changed the name but it doesn't make a scrap of difference.
There is another parallel table called HORSES (plural) but but other examples ( eg PUNTER/PUNTERS) have been happily created.
I would be grateful for any suggestions.
Thanks,
Jim

The message is not specifically about the HORSE_NAME - it is more likely about the table name.
You probably already have another database object called Horse (maybe not a table but it could be a view or a procedure).
Try a different name for the table.

Similar Messages

  • We can't create form using dblink  and synonim

    We have created a dblink pointing to a table in the remote database.
    When we create a form based on table or view using this dblink, we get the error "page not found".
    We read from
    Re: I can't create form using dblink
    that we must create a synonim, and this was done creating one in the same schema of the db-link using the "Database Objects" of oracle portal 10g (external db is an oracle 9.0.2).
    The new synonim work (tested with reports and pl/sql page)
    but if we click on "Grant Access" (of the synonim) we get the following error :
    Error: The underlying object of the synonym does not exist, is a remote object or is not of type function, procedure, package, sequence, synonym, table or view. (WWV-17076)
    Does form work only with table and view of the portal database (not external one)? or have we loose something in the creation of the synonim?
    Have someone succesfully created a form based on a db-link towards an external database?
    Thanks to all.

    Hei guys, has nobody created succesfully a data-driven forms based on a dblink towards an external database?
    I can't believe this!!!!

  • Possibility & Drawback  Using JDeveloper 11g ADF Faces with Oracle 10g DB

    We are new to ADF Faces, would like to use JDeveloper 11g ADF Faces with Oracle 10g database (Enterprise Edition). As we are new to JDeveloper 11g ADF BC, so we want to know about the Possibility & the Drawback.
    Edited by: eng.shahed on Apr 5, 2010 11:21 AM

    i dont think so any drawbacks using Jdeveloper with any database.....its a open product ... You can use it with Sybase, MySQL, Oracle etc etc..

  • Create Tables using sql.

    Hi Dear;
    can i create tables from SQL enterprise manager and not from SAP-BO without having problem in the upgrade?
    thank you Dear.

    Hi Adele,
    I never heard that there is any issue with additional / custom tables in a B1 <b>company</b> database.
    For certification there is no issue with that - except that you must use your SAP namespace also for these tables.
    For your reference I add here the current links to the page about Solution Certification (B1-SDK) + the Test Plan - which lists all requirements:
    B1-SDK: SAP BUSINESS ONE ADD-ON SOLUTION CERTIFICATION  (B1-SDK) [original link is broken]
    Test Plan: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/81a22ee1-0701-0010-45aa-ec852e882de3
    Regards,
    Frank
    Message was edited by: Frank Moebius
    PS: Adding tables to SBO-Common is a different game though since it is not expected that a partner adds tables there and <u>eventually</u> additional tables there might get removed during upgrades.
    If you have a need for additional data storage across all companies, please create a dedicated database for that purpose.

  • Problem creating jar using JDeveloper

    I'm creating jar using JDeveloper..I need to keep two dll files in the jar. But if I create the jar in JDeveloper, it can't include the dll files. If the jar is created from command prompt, it can include the dll files. Can anyone tell me how can I include these dlls in my jar?

    Putting DLLs in your classes directory is dangerous (eg. Run->Clean Project.jpr will remove it). I use a different way to achieve that:
    When you double click on the deployment profile you'll see a dialog window containing a list of items. The one of interest is the one called File Groups. Select this item, click on the New button and add a new file group just for your DLLs.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Logical error in creating tables using db link in solaris

    Hi,
    While creating table using the syntax create table newtab...as select * from tab@dblink .. I am facing a problem. The newtab table created is having a structure different (from datalength point of view of varchar2 and char datatypes) from the source. The data length is getting tripled i.e. if a column a is varchar2(20) in tab then it is becoming --- a varchar2(60) in newtab. This is happening in solaris environment when the two databases are in 2 different servers. Please let me know if there are any patches to resolve the problem.
    Thanks
    Arnab

    ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
    The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link?

  • Can I create and use more than one repository on OVM 2.1.5

    The version of Oracle VM I am using is 2.1.5 .
    I wonder can I create and use more than one repository on OVM 2.1.5. Because I want to install different GOS on different disks.
    I know in Oracle VM 2.2 we can use following commands to realize that.
    a. #/opt/ovs-agent-2.3/utils/repos.py –n /dev/mapper/mpathxp1
    b. #/opt/ovs-agent-2.3/utils/repos.py –r UUID
    c. #/opt/ovs-agent-2.3/utils/repos.py –i
    And other repositories can also be mounted and found under /var/ovs/mount/UUID.
    But in Oracle VM 2.1.5, seems just one repository can be created and mounted. For example:
    At first, I create a repository using mpath1p1:
    a. # mkfs.ocfs2 /dev/mapper/mpath1p1
    b. #/usr/lib/ovs/ovs-makerepo /dev/mapper/mpath1p1 C "cluster root"
    c. I can find the repository has been mounted under /OVS.
    But if I want to use "/usr/lib/ovs/ovs-makerepo /dev/mapper/mpath2p1 C "cluster root" to create another repository, and check the mount status using command "mount", these two disks are all have been mounted under /OVS.
    "# cat /etc/ovs/repositories", only mpath1p1 with UUID was recorded there.
    After reboot, only repository with mpath1p1 was mounted under OVS.
    Can anyone tell me how to use more than one repositories on OVM 2.1.5. Do I have to install all the GOSs on the same disk and repository.
    Thank you very much.

    Now I've known how to create different repository. They will be mounted under /OVS/UUID. Thanks.

  • Can i create SalesOrder using SalesQuotation

    Hi all,
        I want to create SalesOrder with reference using the SalesQuotation. How can i achieve this.
        I am using JAVA to develop this. I am using DI API to achieve this. I am creating SalesOrder directly by giving the items and their quantities and succeded. But when i want to give the SalesQuotation number Reference while creating salesOrder it is giving error.
    -5002Item no. is missing  [ORDR.ObjType]
    com.sap.smb.sbo.wrapper.com.ComFailException: Invoke of: DoQuery
    Source: SAPbobsCOM.Recordset.6.7
    Description: 1). [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'FOR'.
    2). [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.
         at com.sap.smb.sbo.wrapper.com.Dispatch.invokev(Native Method)
         at com.sap.smb.sbo.wrapper.com.Dispatch.invokev(Unknown Source)
         at com.sap.smb.sbo.wrapper.com.Dispatch.callN(Unknown Source)
         at com.sap.smb.sbo.wrapper.com.Dispatch.call(Unknown Source)
         at com.sap.smb.sbo.api.Recordset.doQuery(Unknown Source)
         at SalesOrderCreate.main(SalesOrderCreate.java:133)
    Can any body give me a sample code that how can we create salesOrder using SalesQuotation.
    regards,
    JAYA

    Hi
    I've never tried doing it in java. But i here is an example of how it is done in VB.Net, im sure it will help you connect the dots. This example makes a invoice based on a sales order
    Dim oInvoice As SAPbobsCOM.Documents
            oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
            oInvoice.CardCode = BPCode.Text
            oInvoice.DocDueDate = Now
            oInvoice.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
            'OrderStr is sales order DocEntry,not Docnum
            oInvoice.Lines.BaseEntry = CInt(OrderStr)
            oInvoice.Lines.BaseLine = 0
            oInvoice.Lines.Add()
            oInvoice.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
            oInvoice.Lines.BaseEntry = CInt(OrderStr)
            oInvoice.Lines.BaseLine = 1
            lRetCode = oInvoice.Add
            oCompany.GetLastError(lErrCode, sErrMsg)
            If lRetCode <> 0 Then
                MessageBox.Show("Not Added" & lErrCode & " " & sErrMsg)
            ElseIf lRetCode = 0 Then
                'oCompany.GetNewObjectCode(OrderStr)
                MsgBox("Added Invoice")
            End If
    please not, OrderStr is sales order DocEntry,not Docnum
    Hope this helps

  • Can't Create Table on HBase

    Hi,
    When trying to create table on existing HBase cluster I get an error.
    I try to create table using the following command: 
    create 'sampletable', 'cf1'
    The error I get is:
    hbase(main):005:0> create 'sampletable', 'cf1'
    ERROR: java.io.IOException: Table Namespace Manager not ready yet, try again lat
    er
    at org.apache.hadoop.hbase.master.HMaster.getNamespaceDescriptor(HMaster
    .java:3205)
    at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:1730)
    at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:1860)
    at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService
    $2.callBlockingMethod(MasterProtos.java:38221)
    at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2008)
    at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:92)
    at org.apache.hadoop.hbase.ipc.FifoRpcScheduler$1.run(FifoRpcScheduler.j
    ava:73)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
    1)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
    java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:615)
    at java.lang.Thread.run(Thread.java:745)
    Thanks

    The amazing guys at MS helped us with that one.
    For the future,
    HBase clusters shouldn't share the same storage account, to be specific, they shouldn't share the same storage container.
    The solution was to delete the clusters and recreate them with proper settings.

  • Can i create report using more than one Business Area ?

    Hi Gurus,
    Can i create report using more than one Business Area?.Could anybody tell me that report will work?.
    Vikram

    You should have no problem creating a report using more than one Business Area, we share folders across BAs all the time for ease of management. As long as your joins exist its not a problem.
    Matt Topper
    TUSC, The Oracle Experts
    [email protected]

  • How to create table using Procedure

    Hi,
    I want to create table using procedure .
    How to write procedure for the table creation?
    thanks in advance.

    Use dynamic sql or DBMS_UTILITY.EXEC_DDL_STATEMENT:
    SQL> desc tbl1
    ERROR:
    ORA-04043: object tbl1 does not exist
    SQL> begin
      2      execute immediate 'create table tbl1(x number)';
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> desc tbl1
    Name                                      Null?    Type
    X                                                  NUMBER
    SQL> drop table tbl1
      2  /
    Table dropped.
    SQL> begin
      2      DBMS_UTILITY.EXEC_DDL_STATEMENT('create table tbl1(x number)');
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> desc tbl1
    Name                                      Null?    Type
    X                                                  NUMBER
    SQL>  SY.

  • How can I create Droplets using Actions with several Stops?

    My Droplets (using Actions but with several Stops) work very nicely when using a single image source. However when using multiple images thing start to go crazy.
    At the first stop on the first image a pop-up emerges asking me to continue to the next image or stop. If I select stop I can continue with the Action for this first image and complete the Action on that first photo.
    If I select continue it halts the action on that photo at the first stop then opens the 2nd image and repeats the action to the first stop on the next photo then the pop-up appears again and the cycle repeats.
    How can I create Droplets using Actions with several Stops?

    I don't believe this is possible when starting from Java. I think you need to start with a WSDL to get this to work. I am curious as to why having multiple WSDLs is an issue, would you care to eloborate.
    Thanks

  • How can i create table which in use

    Dear all,
    How can i create a index on table which have much dml any time?

    In 10g :
    The CREATE ONLINE waits for existing transactions to commit before it can proceed. Once it starts, it uses a log table (MV Log) to track subsequent changes (i.e. it allows concurrent DML once it has started). At the end of the operation, it encounters another wait if there are existing transactions as it has to sync changes from the MV Log to the index.
    Here's an explanation by Jonathan Lewis : Re: Alter Index Rebuild Online
    In 11g :
    There's an improvement in that only the transactions that were active at the instant when the CREATE .. ONLINE was issued are the ones it waits for. It does not have to wait on subsequent transactions.
    Here's an explanation by Richard Foote : http://richardfoote.wordpress.com/2008/02/11/index-create-and-rebuild-locking-improvements-in-11g-ch-ch-ch-changes/
    Hemant K Chitale

  • Can we create cursor using the table created dynamically

    Dear all,
    Can we create the cursor using the table which is created dynamically using "Execute immediate" within the same procedure,
    or is there any way to call the table created dynamically ..
    please Do Help me in this
    thanks alot
    Edited by: khaja on Jan 18, 2009 10:57 AM

    Well, I don't think this approach is bad in any possible circumstances. It depends on the requirements we don't know. Yes, usually applications should not be designed in this way. But 'usually' does not mean 'never'. One possible case is described in Oracle's example Referencing Database Objects that Do Not Exist at Compilation. It's possible to assume that tables inv_01_2003, inv_04_2003, etc from the referenced topic What Is Dynamic SQL? are generated automatically by some job using dynamic create table stmt. If the OP has similar requirements tnen this approach is not bad. It may not be the best one but it at least is not so bad as you said.
    I believe that OPs know their requirements much better than me. This is why I always try to answer the exact question. If the approach is really ugly then I don't answer such questions at all.
    Regards,
    Dima
    Message was edited by:
    DimaCit

  • JCA DBAdapter configuration using JDeveloper 11g

    hello,
    I cannot create correct wsdl files for the jca WSDL-based business service :-(
    I try to use JCA dbAdapter in OSB 10.3.1
    following guideliness from
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/jcatransport/transport.html
    and
    OSB DBAdapter Demo (but it refers to JDev 10gR3 :-( which allows creation of DBAdapter component)
    in Jdev 11g, I can create such components only inside SOA project
    and no bindings are generated inside the wsdl (they are in composite.xml)
    is there a way to automatically use the wizard to create the correct wsdl (or I have to write it on my own)
    thanx in advance
    regards
    yannis
    Edited by: ydes on May 11, 2010 1:01 PM

    Hi Yannis,
    You can use the DB Adapter created with JDeveloper 11g on OSB 11g.
    The only difference from OSB/JDev 10g is that you will import a JCA file (along with WSDL and its dependencies) from JDev 11g into OSB 11g.
    Then you just need to right click on the JCA file and select 'Oracle Service Bus / Generate Service' and OEPE will automatically create the business service and the respective wsdl.
    Hope it helps.
    Regards,
    Rodrigo

Maybe you are looking for

  • Get bind variables of a dynamic view object

    I seem unable to retrieve the bind variables for a dynamically created view object, even though I can do the same thing for a regular view object. Here is the code: newVO = repServ.createViewObjectFromQueryStmt("newQry",strSql); VariableValueManager

  • Matchcode Sap Portal

    Hi, Can I develop a matchcode for input field in web dynpro java? If it is possible, how to do it? Many thanks... Alfonso.

  • Large delay in FFMPEG stream

    I'm attempting to setup a system where my co-hosts of our show can send me their video feeds, without having to use Skype.  I've worked out a system using ffmpeg, nginx, and vlc that works, but has several seconds of delay, which if it can be reduced

  • Access to Business Catalyst

    Hello, I have just purchased the creative cloud. I am very new to all of these different types of programs. Over the past couple days I have been trying it all out and figuring out what I need and can use to help push my business to the next level. H

  • APEX 4.1 Appears to still have the bug -link enclosed, Tabular Form ROWID

    I created a tabular form on a view, specifying Primary Key, not Rowid. Validations were auto-generated for the three numeric updatable columns as value must be numeric. When running the page, I received the error: failed to parse SQL query: ORA-01445