I found ORA-00001 ERROR but there is not Unique Constraint or Primary key

Tell me is the error in following code
declare
     cursor c1 is
     select a.cust_no as loan_id,a.cust_no as instrf,152 as l_code,cor_brwr,
     a.name,21 as pro_id,FRST_CT_DT,
     ADD_MONTHS(C.ct_DaTe,c.PERIOD_MM)as maturity,'S'as secured,irr as IRATE,
     'HEAD OFFICE'AS branch_id,'F'as FACNAT,lease_amt as tlimit
     from      cu_customer a ,cor_brwr b ,le_contract c
     where a.name=b.name
     and a.cust_no=c.cust_no
          and c.ct_no in (select ct_no from le_contract d
     where cust_no=a.cust_no
     and 
(DISB_POST_DT IS NOT NULL OR DISB_POST_DT<=:dated)
AND (TERM_TYPE IS NULL)
OR (TERM_TYPE='T'
AND TERM_POST_DT IS NULL OR TERM_POST_DT>=:dated)
OR (TERM_TYPE='M' AND TERM_DATE IS NULL OR TERM_DATE>=:dated)
begin
     for a in c1 loop
          insert into cor_loan
          (loan_id,instrf,LCOD,cor_brwr,name,PROD_ID,ldate,maturity,secured,irate,branch_Id, FACNAT)
          values (a.loan_id,a.instrf,a.l_code,a.cor_brwr,a.name,a.pro_id,a.FRST_CT_DT,a.maturity,a.secured,a.irate,a.branch_id,a.FACNAT);
     end loop;
commit;
end;

Hi,
can you provide the results of the above query ?
select  owner, constraint_name, constraint_type
from all_constraints
where table_name = 'COR_LOAN'and
select  owner, constraint_name, constraint_type
from user_constraints
where table_name = 'COR_LOAN'Regards
JeanYves

Similar Messages

  • How to resolve ORA-00001 Error in SQL Insert?

    Hi all, I need your appreciated help.
    I make a plsql procedure that is inserting a row according cursor value, I'm having oracle error ORA-00001: unique constraint (constraint_name) violated.
    You may see this message if a duplicate entry exists at a different level: in RDBMS MySQL I have the syntax IGNORE to resolve this duplication error... and in Oracle ?
    Thanks for your time and hints.
    Miguelito

    user6317803 wrote:
    How to resolve ORA-00001 Error in SQL Insert?ORA-00001 means table has unique/primary key/index and you are trying to insert a row with key value that already exists in the table. I'll assume table COUNTRIES has primary key on COUNTRY_ID. Then change SQL to:
    SQL = "INSERT INTO COUNTRIES(COUNTRY_ID,COUNTRY_NAME,REGION_ID) SELECT 'BZ','BLZ',3 FROM DUAL WHERE NOT EXISTS(SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID = 'BZ')"There is a good chance table COUNTRIES also has unique key/index on COUNTRY_NAME. If so use:
    SQL = "INSERT INTO COUNTRIES(COUNTRY_ID,COUNTRY_NAME,REGION_ID) SELECT 'BZ','BLZ',3 FROM DUAL WHERE NOT EXISTS(SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID = 'BZ' OR COUNTRY_NAME = 'BLZ')"SY.

  • ORA-00001 error

    Hi all,
        After we restarted portal,we cannot start jcontrol,and we get a strange ORA-00001 error,when we check the log:
    Here is the log defaulttrace:
    Date : 12/10/2007
    Time : 15:13:26:500
    Message : ORA-00001: unique constraint (SAPSR3DB.SYS_C005260) violated
    com.sap.caf.eu.gp.base.exception.EngineException: ORA-00001: unique constraint (SAPSR3DB.SYS_C005260) violated
         at com.sap.caf.eu.gp.model.pfw.wfc.local.db.impl.AbstractLocalProcessPersistence.createBlockInputLocal(AbstractLocalProcessPersistence.java:904)
         at com.sap.caf.eu.gp.model.pfw.wfc.local.db.impl.LocalProcessPersistence.createBlock(LocalProcessPersistence.java:250)
         at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.startBlock(StatusWriter.java:984)
         at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.startActivity(StatusWriter.java:927)
         at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.changeParentBlockStatus(StatusWriter.java:2710)
         at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.changeParentBlockStatus(StatusWriter.java:2728)
         at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.updateProcessStatusUserDecisionBlock(StatusWriter.java:2574)
         at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.updateProcessStatus(StatusWriter.java:2235)
         at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.completeAction(StatusWriter.java:223)
         at com.sap.caf.eu.gp.model.pfw.wfc.local.impl.LocalWorkflowConnector.completeAction(LocalWorkflowConnector.java:247)
         at com.sap.caf.eu.gp.model.pfw.wfc.local.impl.BackGroundActionProcessorHelper.processAction(BackGroundActionProcessorHelper.java:223)
         at com.sap.caf.eu.gp.model.pfw.wfc.local.impl.queue.BackgroundCOQueueProcessor.run(BackgroundCOQueueProcessor.java:269)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.sql.DuplicateKeyException: ORA-00001: unique constraint (SAPSR3DB.SYS_C005260) violated
         at com.sap.sql.jdbc.common.CommonPreparedStatement.executeUpdate(CommonPreparedStatement.java:259)
         at com.sap.engine.services.dbpool.wrappers.PreparedStatementWrapper.executeUpdate(PreparedStatementWrapper.java:240)
         at com.sap.caf.eu.gp.model.pfw.wfc.local.db.impl.AbstractLocalProcessPersistence.createBlockInputLocal(AbstractLocalProcessPersistence.java:901)
         ... 15 more
    And i also check the startlog.It seems ok.
    Someone knows what's happening and how to solve this?
    Best regards
    delma

    Hi,Shikhil
    Thank you for your reply.
    But actually,we just install a WEB AS FOR JAVA on the portal server,no ABAP at all.
    I think it may be the database problem.
    Thank you.
    Best regards
    delma

  • Everytime I  try and sign into my iCloud account it tells me I can't log in due to a server error, but there is nothing wrong with my server . It also wont allow me to view any of my Photos or Documents that i have backed up.

    Everytime I  try and sign into my iCloud account it tells me I can't log in due to a server error, but there is nothing wrong with my server . It also wont allow me to view any of my Photos or Documents that I have backed up. Please help

    Hi,
    Are you running any Anti-virus software or do you have your firewall turned on? If so, disable them and try again. If that doesn't work, delete the iCloud account and then sign it back on again.
    Make sure you are running the most current version of the iCloud Control Panel:
    http://support.apple.com/kb/dl1455
    Cheers,
    GB

  • When I check the content in a test server I get this: ssl_error_bad_cert_domain and the option to accept, but in a iframe I get the same error but theres not op

    I work in an international company and we have a server farm with 54 servers, so I need check content in all of them for 118 countries, I created a little application to do this and the problem is this:
    When I check the url in the main window I get: "Error: ssl_error_bad_cert_domain" but there is "add exception" option and the problem ends there. But my application loads the pages within an iframe and when I try to load them the error appears but there is not any option to continue.
    Could you tell me please which option of the configuration (about:config) I should change to avoid this, because adding an certificate for every country for every server (6372 certificates) it's not an option for me.
    *Note: The error appears because the dns of such servers have several subdomains and the certificate is not valid for the resultant url.

    Facebook uses such servers to store additional content media files and maybe CSS and JavaScript files.
    Reload web page(s) and bypass the cache.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Cmd + Shift + R" (MAC)
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • Trying to put pics on a flashdrive and keep getting error that there is not enough free space when there is.  I tried to empty trash with the flash drive in but still not working.  Help!

    Trying to copy photos in folder on desktop to a flash drive but keep getting error that there is not enough free space when there is.  I read to delete trash with the flash drive in but that still doesn't work.  Help!!

    How is the flash drive formatted? Open Disk Utility (Applications>Utilities) and see how it's formatted - that might be the problem.
    Clinton

  • Trying to update apps on iphone and getting error message, there is not enough available local storage to download these items. you can manage your local device storage usage in settings

    trying to update apps on iphone and getting error message, there is not enough available local storage to download these items. you can manage your local device storage usage in settings. What am I to do?

    The storage you purchased is in the cloud, and doesn't do anything with your pad.  Your problem is simply that you have too much content on your pad.   Go to settings, general, usage, and it will show you how much space you have avaliable on your pad.  If you let the screen sit for a while, all the apps will be displayed, and you can see how much stuff you have associated with each.
    You have to no option but to delete some of the content on your pad.  Videos, comics, pitcures and some music files use a lot of space.   The cloud allows you to leave stuff there, so you can get it when you need it.

  • CS3 wants me to activate but there is not any seats left.  Can somebody help?  thanks

    Hello  I had a major problem with a computer and had it rebuilt.  CS3 wants me to activate but there is not any seats left.  Can somebody help?  thanks

    Hi Jeff
    OK The licensing.adobe.com won't let me login, I can't get it to do anything.  I downloaded new install file from the download cs3 site.   Deleted old file installed the new ones and got the same error 194:12    thanks

  • I have a 27" IMac.  I want to add additional monitors to it.  There is a vga slot for the first monitor.  I would like to add a second monitor but there is not another via slot.  Is there an adapter I can get for via to usb?

    I have a 27" IMac.  I want to add additional monitors to it.  There is a vga slot for the first monitor.  I would like to add a second monitor but there is not another vga slot.  Is there an adapter I can get for vga to usb?

    Here's the problem I am trying to research for you...
    There does exist a way to add a second monitor via USB:
    USB 2.0 to HDMI Audio Video 1080P Adapter for Windows and Macbook
    It's the only device I know of that can do that.  The problem is that it wants a HDMI connection.  So that means a HDMI-to-VGA adapter or converter needs to be found (not VGA-to-HDMI, those are easier to find).
    Interesting article realted to this:
    Hdmi to vga adapter
    Maybe somthing like this converter will work. 

  • I have a g4 running os10.4.11, i bought a epson workforce 1100 and tried to set it up but there is not a listing for it when i try to add it before installing the driver software from the supplied cd...anyone know what i can do to get it set up?

    i have a g4 running os10.4.11, i bought a epson workforce 1100 and tried to set it up but there is not a listing for it when i try to add it before installing the driver software from the supplied cd...anyone know what i can do to get it set up?

    Load the drivers and you should then be able to add it in Print Center.

  • HT2534 When setting up my apple I'd I get a verification email but there does not seen to be a link to click on there is a link that says "verify now" but it's not a link the only other thing on the page is a link to apple thats starts the process all ove

    When setting up my apple I'd I get a verification email but there does not seen to be a link to click on there is a link that says "verify now" but it's not a link the only other thing on the page is a link to apple thats starts the process all over again.does anyone have a solution for this problem?

    The idea to jumpstart by change was not the smartest one, but gives you an opportunity to use that "temporary" account as permanent. You do not have a choice cause obviously despite you thinking that old account is no more -it does exist on Apple servers. And if you are unwilling to share your [email protected] with friend, just create one extra [email protected] for your friend. One suggestion - do not use gmail.

  • TS1967 My computer failed and the main drive had to be formatted but all my music was on a separate internal hard drive. So I downloaded the latest iTunes , problem is it has found all my songs but seems to not recognize half of the album data, half of th

    My computer failed and the main drive had to be formatted but all my music was on a separate internal hard drive. So I downloaded the latest iTunes , problem is it has found all my songs but seems to not recognize half of the album data, half of the artists, all of the dates and all ratings data.
    I had a large part of it backed up on DVD's but it does not want to recognise them either?
    Any tips?

    Hey briannagrace96,
    Welcome to Apple Support Communities! I'd check out the following article, it looks like it applies to your situation:
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/ts1363
    You'll want to go through the following troubleshooting steps, and for more detail on each step follow the link to the article above:
    Try the iPod troubleshooting assistant:
    If you have not already done so, try the steps in the iPod Troubleshooting Assistant (choose your iPod model from the list).
    If the issue remains after following your iPod's troubleshooting assistant, follow the steps below to continue troubleshooting your issue.
    Restart the iPod Service
    Restart the Apple Mobile Device Service
    Empty your Temp directory and restart
    Verify that the Apple Mobile Device USB Driver is installed
    Change your iPod's drive letter
    Remove and reinstall iTunes
    Disable conflicting System Services and Startup Items
    Update, Reconfigure, Disable, or Remove Security Software
    Deleting damaged or incorrect registry keys
    Take care,
    David

  • I bought an IPhone 3gs and tried to reset the APN but when I click on settings then General they tell me to click on the "Network" tab but there is not a tab for "Network"? After Network, I was supposed to go to Cellular Data Settings?

    I bought an IPhone 3gs and tried to reset the APN through Strait Talk Wireless but when I click on settings then "General" tab they tell me to click on the "Network" tab but there is not a "Network" tab? After Network, I was supposed to go to Cellular Data Settings but I can't find the Network tab under the General tab. I watched videos and every IPhone I saw had the Network tab but mine don't, can anyone please help this old man fix this new technology, so I can use the Internes and MSM?Thanks, jerry b <><

    Hey electrikn,
    Thanks for the question. If your iPhone 3GS has been updated to iOS 6, this setting had moved:
    Set network options: Go to Settings > General > Cellular
    via http://manuals.info.apple.com/MANUALS/1000/MA1658/en_US/iphone_ios6_user_guide.p df
    Thanks,
    Matt M.

  • I already installed Lion 10.7.2 but there is not icloud on system preferences panel

    I already installed Lion 10.7.2 but there is not icloud on system preferences panel. Anyone can help me please?

    Try re-installing the update using the combo updater.

  • HT4623 how to update iphone 4 software but there's not a choice to update software in settings tab? Thoughts

    how to update iphone 4 software but there's not a choice to update software in settings tab? Thoughts

    Welcome to the Apple Support Communities
    Connect the phone to the Mac or PC and iTunes will ask you to update to the most recent version

Maybe you are looking for

  • Issue in Cheque Printing using Laser Printer

    Hi,     There is a requirement wherein cheque needs to be printed from F-58 using Laser Printer.I have created the custom page format for Cheque printing .Attached it to the custom device type that i have created(Copy of Device type HPLJIIID).Aslo i

  • Mac pro with windows - unable to get from mac to windows..

    can not get the partition up on booting up for mac and windows only mac as an option however windows is visible in bootcamp? What can i do to fix this and how?

  • ITunes Match Broken since iOS8

    ive been having major problems with iTunes match since the update first when i tap on a song on my device it plays but then downloads to the system and can't be cleared off unless I hit the cloud button "download" the track again and then swipe to de

  • Can i build a JMS client application with J2ME ?

    I need to know which configuration and profile will allow me to build a application that will run on a windows ce / pocketpc PDA and send JMS messages to a server. I need the J2ME application to be a JMS client I also need messaging pda -> server (te

  • I am reinstalling Photoshop Elements 7 on my computer after my hard drive died.

    I am reinstalling Photoshop Elements 7 on my computer after my hard drive died.  I found a download page on adobe's website for the software and installed.  Install went fine but when I entered the serial number I received from my original e-bay purc