Cannot run the procedure several times

Hello

I use oracle 12 c

I just created a stored procedure that works very well

Problem is that the second time I run it, it does not what it should (data fusion)

When I run the second time I always get PL/SQL procedure successfully completed but the target table is still empty, here is the procedure:

1 create or replace procedure MERGE_TABLEA

2 as

3. start

4 MERGE TABLE_A has B (SELECT 'ID', 'NAME' OF TABLE_B) with the HELP of

ON (A.ID = B.ID)

WHEN MATCHED THEN

                 UPDATE SET B.SID = B.NAME

WHEN NOT MATCHED THEN

INSERT (A.' ID',' NAME')

VALUES (B.ID, B.NAME);

END;

/

PL/SQL procedure successfully completed.

I also tried to build a simple procedure that id just insert and name of the table to test ina and it works very well, no matter how many times I've run it

Is it maybe something with the merger or what?

Thank you!

OK guys, I think there are some misunderstandings here,

@ddf_dba_ifox , version of the db that I use is stated in the first line of my post, I can't publish data for security reasons


@rp0428 I forgot to mention that I'M to truncate the table, and then run the procedure again but the merger no longer works as the table is empty

In any case, I found out why

I'm merging the tables in the DB using the schema that is related to my installation of Oracle APEX

In the procedure if you notice there is no COMMIT

As apex has users within a schema, that I couldn't see the lines without committing before

Thank you all anyway!

Tags: Database

Similar Questions

  • I use the color picker to select a background color, then try to create a new document using this background color. The appearance of the color changing at this time. It is a new problem. I have successfully used the procedure several times in the p

    My background color changes when I try to apply it. I put the color using the color picker. Then I try to create a new document with the same background color. But that change of a very different color. What I am doing wrong? I've used the previous procedure, several times, without this problem.

    The new document has a different color profile. Make sure that they are the same.

    The same result of RGB numbers in different colors in different color spaces. Or in other words, the color space defines the specific color produced by a certain set of numbers.

  • Cannot run the procedure

    Hello


    I'm able to run this procedure.

    I created the procedure successfully.

    CREATE OR REPLACE PROCEDURE update_LOGIN_TABLE (NAMER OUT VARCHAR2)
    IS
    temp_num NUMBER;
    BEGIN
    temp_num: = 10;
    DBMS_OUTPUT. Put_line (temp_num);
    Setting a DAY to the USER SET NAME = 'Ranga' where NAME = NAMER;
    COMMIT;
    EXCEPTION
    WHILE OTHERS THEN
    ROLLBACK;
    END update_LOGIN_TABLE;
    */*


    It comes to my Table Structure:

    SQL > select * from users;
    PASS NAME
    -------------------- --------------------
    Sai Baba
    SAI Natha
    roux keyboard
    roux keyboard


    When I tried to run, I get this: execute update_LOGIN_TABLE ('good');


    SQL > execute update_LOGIN_TABLE ('good');
    BEGIN update_LOGIN_TABLE ('good'); END;

    ***
    ERROR on line 1:
    ORA-06550: line 1, column 26:
    PLS-00363: 'delighted' expression cannot serve a purpose of assignment
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    update_LOGIN_TABLE (NAMER OUT VARCHAR2)

    I think you probably wanted an IN argument in your procedure.

  • upgrade to Win7x64 and now I have my Lexmark 2470 printing problems. I reloaded the software several times and still cannot print.

    I upgraded to Win7x64 and now I have my Lexmark 2470 printing problems. I reloaded the software several times and still cannot print. Any suggestions?

    Hey! Try this link

  • Health that ap on my 6 s iPhone is frozen. I rebooted the phone several times, but it is still frozen

    health that ap on my 6 s iPhone is frozen. I rebooted the phone several times, but it is still frozen.  Can someone help please

    Hi, Lynne.

    Please visit Apple support communities.

    I understand that the application of health stops responding on your iPhone 6s.  Since this has not resolved this problem, try to force the application to close and test.

    Force an app to close the iOS

    If the tags are correct for your position and you run iOS 8.3, be sure to upgrade to the newest iOS available and test.

    Update the software on your iPhone, iPad or iPod touch iOS

    See you soon

  • I'm trying to download the updates to my computer, but can't. I get the error code 646 and the download fails. I tried to download the update several times, but get the same answer. What is the problem?

    Ideas: I'm trying to download the updates to my computer, but can't. I get the error code 646 and the download fails. I tried to download the update several times, but get the same answer. What is the problem?

    • Pragrams you have problems with
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Hello

    Try this 1st to see if it helps, and it should:

    Description of the Patch registration cleanup tool
    http://support.Microsoft.com/kb/976220/

    ------------------------------------------------------

    If necessary :

    Try this - Panel - Windows Updates - on every update that will not be installed - click on the important updates
    or the update itself - double click a view more information (or click top then discovers on the right)

    Those who will take you to a page where you can download the update.

    Or go here and the KBxxxxxx number to download it.

    Download Center - mount the KBxxxxxx.

    Microsoft Download Center
    http://www.Microsoft.com/downloads/en/default.aspx

    Download - SAVE - go to where you put them - click on - RUN AS ADMIN

    Then you can right click on the update in the updates Windows and HIDE.

    If you get an error Installer install this version:

    Windows install 4.5 Redistributable
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

    ----------------------------------------------------

    Then run this:

    How to reset the Windows Update components? -a Mr Fixit
    http://support.Microsoft.com/kb/971058

    Description of the system for Windows Vista, Windows Server 2008, update tool and
    for Windows 7
    http://support.Microsoft.com/kb/947821

    ------------------------------------------------------------
    Because these are all Office updates you might get more information if necessary in the Agency of those groups that
    may have experienced the same problem.

    Office newsgroups
    http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspx

    Microsoft.public.office.misc discussions
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Office.misc&cat=en_us_01cb749f-c998-4762-8099-df71793c11c7&lang=en&CR=us

    ------------------------------------------------------------

    If necessary you can incident free get reports however the above should take care of it for you.

    Windows updates - free Incident report

    Go here and click on-> Windows Update fails while searching, downloading or installation of updates
    http://support.Microsoft.com/GP/wusupport#tab3

    The security updates, you can get free support Incident report
    http://www.Microsoft.com/protect/resources/support.aspx

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Vista backup error: cannot run the RPC. (0x800706BE)

    Hey there, I have a question about windows vista. I'm doing a backup of my system. In the end, I get an error saying: "cannot save settings to schedule automatic backup for the following reason: cannot run the CPP." (0x800706BE).

    However, I don't want to schedule an automatic backup. I want to make a single backup. I tried to change this in windows Task Scheduler, but I can't because the WindowsBackup folder is not listed. Probably because there is no backups on demand. But I can't schedule backups since I get an error at the end. So the WindowsBackup folder does not appear and I can't change the settings. Someone knows how to fix this?

    To be clear, I want to make one backup of my system.

    When I go to services.msc and scroll down to the remote procedure call and watch 'Status' it says 'Started' or 'Released' (not sure since I have a Dutch version of Vista).

    Also, windows backup is not calculating the number of necessary for the backup dvd.

    Thanks in advance.

    Bottom of GR

    Hi Fazil,

    Thanks for the help. But Vista gave me more problems, not just this one. A few days ago, I decided to upgrade to Windows 7. Problem solved.

    Thanks again.

    Bottom of GR

  • Microsoft Fixit error "an error occurred during the download of one or more components and cannot run the Troubleshooter"

    Original title: cannot run FixIt.

    With the help of Vista Home Premium, sp2, 32-bit on Toshiba Satalite A135

    I tried for days to find a solution for the reason why I can't run software 'MR FIXIT' or "MICROSOFT FIXIT" auto diagnostic I downloaded several versions of the software and saved, but when I try to launch it I stopped.  The following message appears: "toubleshooting cannot continue b/c an error has occurred."  An error occurred during the download of one or more components and cannot run the troubleshooter. »
    These versions I've tried lately:
    microsoftfixit. Program.installuninstall.RNP.84258196752136210.7.1.Run
    microsoftfixit. Program.installuninstall.Run
    microsoftfixit. WinSecurity.fisc.8425861308153696.4.1.Run
    microsoftfixit. Wu.FISC.8425861308153696.4.2.run
    852581157233326805.5.1.run
    I don't know if the problem is related, but I was also impossible to install the download: security for microsoft .net 1.1 SP1 framework update... (kb2656353).  I tried to install this download since January of 2012.  The reason why I tried to use the auto diagnostic software should fix my problem of installation of the security update.  I remember somewhere along the way, getting the error message that some files were corrupt.  Your help would be greatly appreciated.

    Hello

    Are able to run fix it?

    You can also post your query in Microsoft solve this forum. Please visit the link below to find a community that will support what ask you:

    http://social.Microsoft.com/forums/is/fixitcenter/threads

  • Cannot run the report

    DB and dev 10grel2, xp sp2
    Hi all
    IAM trying to run the report in the form with a button generator
    I used this command to start my server: Server rwserver = "MyServer" auto = Yes and it works well.

    I created a report object (report5) on the form that contains the button to run the report.
    When I click on the browser reports node to create the report object, I assigned 'myrep' as the file name of the report, not based on a block of data and then created the report of the scott schema dnames.

    then closed the Report Builder without saving it in another format.

    then I wrote this code in the when button pressed the shutter:
     
    
    declare 
         rp report_object ;
         v varchar2(90) ; 
    begin 
         rp := find_report_object('report5') ; 
         v := run_report_object(rp) ; 
    end ; 
    -nothing wrong with the code, then I ran the form, you press the button to find out:
    FRM-41214 cannot run the report.
    When I looked at the online help, it tells me nothing but
    Cause: The report server could not run the specified report.
    Action: Check the report server and make sure it is running.
    and I checked and it runs and upward.
    What should I do?
    Thanks in advance

    Check my code and try this code in you touch. I write it given your situation and information provided. You can paste directly into your trigger button.

    DECLARE
    
         v_repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         v_rep_status VARCHAR2(100);
         v_param VARCHAR2(200) := NULL;
         v_valor VARCHAR2(200);
         v_url VARCHAR2(2000);
         v_repserver varchar2(20) := 'myserver'; -- YOUR REPORT SERVER NAME
    
         v_report varchar2(100) := 'E:\myrep.jsp'; -- YOUR REPORT PATH AND NAME
         /* IF .JSP IS NOT WORK CONVERT IT TO .REP AND TRY */
         v_PARAMETRO varchar2(100) := '';
    
    BEGIN
    
         v_repid := FIND_REPORT_OBJECT('report5'); -- report is an element from object navigator report
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_FILENAME, v_report);
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_EXECUTION_MODE, BATCH);
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESTYPE, cache);
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESFORMAT, 'pdf' );
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESNAME, v_report);
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_SERVER, v_repserver);
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_OTHER, 'paramform=no '||v_PARAMETRO);
         v_rep := RUN_REPORT_OBJECT(v_repid);
         v_rep_status := REPORT_OBJECT_STATUS(v_rep);
         WHILE v_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
         v_rep_status := REPORT_OBJECT_STATUS(v_rep);
         END LOOP;
         IF v_rep_status = 'FINISHED' THEN
         message(v_rep);
         message(v_rep);
         WEB.SHOW_DOCUMENT(v_url||'/reports/rwservlet/getjobid'||
         SUBSTR(v_rep, INSTR(v_rep,'_', -1)+1)||'?'||'server='||v_repserver, '_blank');
         END IF;
    
    END;
    

    So let me know what you get...

    Ed: I've updated my blog link. You can check the first time, if necessary.

    Published by: HamidHelal on January 21, 2013 12:43 AM

  • Cannot run the script generated with export Clip.

    I use AE CS6 and FCPX 10.0.7. I have imported the images in this way successfully before and have not changed or updated either of these programs since. Exporter of clip is up to date.

    Today, I created an XML of my calendar and trying to run the script generated from it, I get the error 'cannot run the script on line 22. WHEREAS"}

    I opened to the top of the script and 22 bed line editor ' comp [0] = {name: "Scenes of Kyle", w: 1920, h:1080, pasp:1.0000, hard: 39.7063, fps:23.9760, departure: 0.00001};

    Any help would be appreciated.

    The default is here:

    name: "Scenes of Kyle.

    For a shell script that reads as

    Kyle, scenes of s

    or be interpreted as noise and move the successive data so it would be interpreted wrongly. This is simply sloppy programming. It will have to be properly "escaped" to avoid the error:

    "Scenes of Kyle\".

    Contact the creator to fix his script and for the time being to use folder names that go without apostrophes...

    Mylenium

  • I have a folder of files in local folders that keeps reappearing after that I erase it. I tried to fix the folder several times. Any suggestions?

    I have a folder of files in local folders that keeps reappearing after that I erase it. I tried to fix the folder several times. Any suggestions?

    This is the name of a folder? Who will be in a file name in your file system. Given his situation, is it possible or likely that the total path length exceeds the limit of the operating system?

    For example: http://windows.microsoft.com/en-gb/windows/file-names-extensions-faq#1TC=windows-7

    This is not to talk about any other limit which may be inherent in the way that Thunderbird uses names of files internally.

    In your position, I explore the Thunderbird profile and check paths, as they appear in the file manager. You should be able to remove all folders that are unwanted here also.

  • E-mail messages are placed in the basket several times every minute during the strike.

    E-mail messages are placed in the basket several times (every minutes) while I'm typing / dial.  I didn't until I visited my trash to remember something. How do I get this stopped?

    From the Mail menu bar, you select

    ▹ mail preferences... ▹ Accounts ▹ behaviors of the ball

    and uncheck the box marked

    Store drafts on the server

  • Cannot run the Task Manager

    Cannot run the Task Manager. I right click and select from the list, but nothing happens.

    See: Why won't Task Manager, REGEDIT and MSCONFIG disappear when opening?
    http://WindowsXP.MVPs.org/ToolsQuit.htm Harold Horne / TaurArian [MVP] 2005-2011. The information has been provided * being * with no guarantee or warranty.

  • Cannot run the system at boot restore upward and I don't have my CD it was broken. I could use my product key?

    My Windows Vista cannot run the restore of the system at startup, and it says press F11 to enter recovery mode and it dosen't work.
    I can't use the CD/DVD from the CD/DVD because my dad broke it.
    Can I do to solve this problem?

    Hello

    Contact the computer manufacturer and ask them why F11 does not work to start recovery to factory settings...

    Or other difficulty the CD / DVD Drive and ask the manufacturer of the computer of a set of to reinstallthe Operatying system recovery disks.

    They do normally for a low cost

    Any other tips we now give you another above, you should always a working CD / DVD player.

    For this you need a DVD player:

    You can also borrow and use a Microsoft Vista DVD, which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed. The product key on your computer / Laptop box determines what Edition is installed.

    Other manufacturers recovery DVDs are should not be used for this purpose.

    And you need to know the version of 'bit' for Vista, as 32-bit and 64-bit editions come on different DVDs

    Here's how to do a clean install of Vista using a DVD of Vista from Microsoft:

    "How to do a clean install and configure with a full Version of Vista '

    http://www.Vistax64.com/tutorials/117366-clean-install-full-version-Vista.html

    And once the operating system is installed, go to your computer manufacturer's website and get the latest drivers for your particular model or laptop computer.

    And phone Activation may be necessary when you use the above installation method.

    "How to activate Vista normally and by Activation of the phone '

    http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html

    See you soon.

  • Cannot run the screen saver because it requires a newer video card or one that is compataible with Direct3D.

    Hello

    I recently rebooted my computer; (Packard Bell) and now cannot run games or screen savers because it does not start. I think my problem has something to do with a Direct3D card? When I run screensavers, I get this message:
    Cannot run the screen saver because it requires a newer video card or one that is compataible with Direct3D.
    I have the impression that sound when I run the 3D games, such as minecraft or GMOD.
    I run on Windows Vista Edition Home Premium and does not do anything but re - install my computer because it wouldn't start.
    It is not as if the graphics card is not there, so I'm really confused!
    Please help me, like playing games is my favorite thing. ;)
    Charlie
    I also ran minecraft to double check and I got this error code:
    Bad video card drivers!
    -----------------------
    Minecraft could not start because it did not find an accelerated OpenGL mode.
    Generally, this can be corrected by updating the video card drivers.
    -BEGIN 7fe0271 error REPORT-
    Generated 10/10/12 21:04
    -Minecraft Version: 1.3.2
    -Operating system: Windows Vista (x 86) version 6.0
    -Java Version: 1.7.0_07, Oracle Corporation
    -Version Java VM: Java hotspot Client VM (mixed mode), Oracle Corporation
    -Memory: 422585352 bytes (403 MB) / 518979584 bytes (494 MB) up to 1037959168 bytes (989 MB)
    -JVM Flags: 2 total; Xms512m-Xmx1024m
    -LWJGL: 2.4.2
    -OpenGL: ~ ERROR ~ NullPointerException: null
    -Is Modded: Probably not
    -Type: customer
    -Texture Pack: ~ ERROR ~ NullPointerException: null
    -Position profile: N/A (disabled) [can't get system (java.lang.NullPointerException) properties]
    org.lwjgl.LWJGLException: Pixel format not accelerated
    at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat (Native Method)
    at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)
    at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:185)
    at org.lwjgl.opengl.Display.createWindow(Display.java:311)
    at org.lwjgl.opengl.Display.create(Display.java:856)
    at org.lwjgl.opengl.Display.create(Display.java:784)
    at org.lwjgl.opengl.Display.create(Display.java:765)
    at net.minecraft.client.Minecraft.a(SourceFile:233)
    at net.minecraft.client.Minecraft.run(SourceFile:516)
    at java.lang.Thread.run (unknown Source)
    -REPORT of ERROR END bb61788b-

    Hello

    After you reinstall the operating system, you should also go to the website of your computer manufacturer > drivers download section > put your computer model number > search for your operating system and drivers (graphics, audio, etc.) > download and install.

    See you soon.

Maybe you are looking for

  • 6 s - iPhone message notifications

    I have an iPhone 6 and receive notifications of message of android phone to my daughter.  The 'badge' appears, but there is no sound.  I don't get the sounds then to other iPhones text me.  Any thoughts?

  • iphone (iphone 5 s) could not be updated. an unknown error occurred (- 1).

    When trying to repair restore or update this message appears I need fix same problem I tried twice.

  • Re: Satellite P300-19F: Win XP - bus high definition audio is not ok

    Hello! I have a Satellite P300-19F with Harman/Kardon. I have just this downgrading to XP and I have a problem with the audio drivers.I installed the drivers that I download from the toshiba web but the "audio device on high definition audio bus" is

  • Error - 1950679035

    Hi guys,. I have a problem, when I start my vi (which includes shared variables), an error named 1950679035. I also check '\National Instruments\Shared\Tagger\tagsrv.exe' and '\windows\system32\lkads.exe '. as you see in the first attachment (appoint

  • DVD will not play on the computer.

    my computer crashed.  The computer files were all saved, but I can't find any programs.  For example, I can no longer play a dvd.  I have Windows Media Player, but it won't play the dvd from the library movie.  Also, when I go to computer/CDrom, the