ORA-06550 in to INSERT them all... Please help me...

I get the following errors in my code below:
ORA-06550: line 11, column 13:
PL/SQL: Statement ignored
06550 00000 - "line %s, column % s:\n%s".
* Cause: Usually a PL/SQL compilation error.
* Action:

Code:

declare
cursor cur_sales is
Select a.sal_name, a.sal_id, a.upd_by, b.cost_ref, b.cost_office from sales a, b cost where a.sal_id = b.cost_id (+);
type bulk_sales is table of the cur_sales % rowtype;
v_bulk_sales bulk_sales;
Start
Open cur_sales;
loop
collect the fetch cur_sales in bulk in v_bulk_sales;
ForAll i in 1.v_bulk_sales
insert into sa_sales (sal_name, sal_id, upd_by, cost_ref, cost_office) values (v_bulk_sales (i) .sal_name, v_bulk_sales (i) .sal_id, v_bulk_sales (i) .upd_by, v_bulk_sales (i) .cost_ref, v_bulk_sales (i) .cost_office);
When the output cur_sales % notfound;
end loop;
close cur_grp;
end;

Details of the Tables:
sale of table 1: sal_name, sal_id, upd_by, sal_dept
Table 2 cost: cost_ref, cost_office, cost_id, cost_values
Table 3 sa_sales: sal_name, sal_id, upd_by, cost_ref, cost_office, cost_details, cost_label
Here, cost_details, cost_label in table 3 are default to null

Please help me to solve it... Thanks in advance for all...

You can not use this code in the Oracle 10 g database, you will get "PLS-00436: limitation of the implementation: cannot reference the fields in the table to LINK BLOCK of documents or objects Cause: .field table (bulk_index) is not supported running." Action: use OF the loop with the statement instead that DML FORALL (FUSION, INSERT, DELETE, UPDATE). »

In fact, it is a new feature of Oracle Database 11 g.

You must set the new type of collection for each column in the select list.
For Oracle Database 10g, change your code like this.

DECLARE
CURSOR cur_sales
IS
SELECT a.sal_name, a.sal_id, a.upd_by, b.cost_ref, b.cost_office
SALES a, b cost
WHERE a.sal_id = b.cost_id (+);

TYPE sal_name_t IS TABLE OF THE sales.sal_name%TYPE;
TYPE sal_id_t IS TABLE OF THE sales.sal_id%TYPE;
TYPE upd_by_t IS TABLE OF THE sales.upd_by%TYPE;
TYPE cost_ref_t IS TABLE OF THE cost.cost_ref%TYPE;
TYPE cost_office_t IS TABLE OF THE cost.cost_office%TYPE;

v_bulk_sal_name sal_name_t;
v_bulk_sal_id sal_id_t;
v_bulk_upd_by upd_by_t;
v_bulk_cost_ref cost_ref_t;
v_bulk_cost_office cost_office_t;
BEGIN
OPEN cur_sales.

LOOP
EXTRACTION cur_sales
BULK COLLECT INTO v_bulk_sal_name, v_bulk_sal_id, v_bulk_upd_by, v_bulk_cost_ref, v_bulk_cost_office;

FORALL I IN 1... v_bulk_sales. Count
INSERT INTO sa_sales (sal_name, sal_id, upd_by, cost_ref, cost_office)
VALUES (v_bulk_sal_name (i), v_bulk_sal_id (i),)
v_bulk_upd_by (i), v_bulk_cost_ref (i),
v_bulk_cost_office (i));

EXIT WHEN cur_sales % NOTFOUND;
END LOOP;

CLOSE Cur_sales;
END;

BR, Ramin Orujov.

Tags: Database

Similar Questions

  • Windows Movie Maker won't save my movie 3 minuet, I followed everything that they told me to do and have tried them all, please help!

    I tried since 15:20 it is now 20:25, 06:05 hours, it is * to the top.

    Who is 'they' and what 'they' did he say?

    In most cases, when a project fails to save it is because
    one or more files (pictures, video, music clips source
    the files) is damaged or is not compatible with Movie Maker.

    Several formats are apparently compatible with
    Movie Maker, but the most reliable choices are:

    Photos - bmp
    Video - wmv or dv - avi
    Audio - wav, wma, wmv

    And sometimes, it can help if you go to... Tools / Options /.
    Left click abd the Reastore from the Compatibility tab all defects button / OK.

    Movie Maker - problem resolution - "cannot record a movie.
    http://www.Papajohn.org/MovieMaker-issues-CantSaveMovie.html

    To save in a .wmv movie file...
    Type of... CTRL + P (or go to...) File / save movie file)
    to open the wizard movie recording.
    Choose... My computer.
    Next /.
    Enter a name and a location.
    Next /.
    ICT... "Best quality for my computer.
    Next /.
    Wait while the movie is saved.
    Finishing...

    To save a DV - AVI movie file...
    (and other options)
    Type of... CTRL + P (or go to...) File / save movie file)
    to open the wizard movie recording.
    Choose... My computer.
    Next /.
    Enter a name and a location.
    Next /.
    Show more choices.
    Other parameters.
    Open the window of the droplet and choose... DV - AVI.
    Next /.
    Wait while the movie is saved.
    Finishing...

  • ORA-01403 no data found cursor error - please help.

    DECLARE
    Name1 talent.candidate_name%TYPE; -Declaring variables
    long name2; -Declaring variables
    emp_id talent_id.emplid%TYPE.
    EXCEPTION NO_DATA_FOUND.

    CURSOR c1 IS
    Select candidate_name,('''||) Trim (Upper (candidate_name)) | "') as tst of talent;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO name1, name2;
    OUTPUT WHEN c1% NOTFOUND; -TRUE when FETCH can't find none online

    Select distinct emplid
    IN emp_id
    a names
    where a.name_type = 'PRI '.
    and upper (a.last_name) | ',' | Upper (a.first_name) = name2;


    INSERT INTO talent_id VALUES (emp_id, Name1);

    END LOOP;

    CLOSE c1;
    COMMIT;





    Question: Above queries ask me the msg of error ora-01403 no data available for emplid. I try but fail to solve. Please help me. Thank you

    Published by: user12051088 on March 4, 2010 01:38

    Published by: user12051088 on March 4, 2010 01:40

    This unique INSERT could possibly end up with all of your pl/sql code!

    insert into Talent_ID (Emp_ID
                          ,Name1)
                    (select distinct
                            a.Emp_ID
                           ,t.Candidate_Name
                     from   names a
                           ,Talent t
                     where  a.Name_Type = 'PRI'
                     and    upper(a.Last_Name || ', '|| a.First_Name) = trim(upper(t.Candidate_Name))
                    )
    /
    

    Keep in mind, there is no way for me to test it! Furthermore, TALENT_ID is a strange name for a table. Probably typo but simply change the INSERT statement accordingly!

    P;

  • My laptop HP Pavilion will not record any sound at all - please help

    Dear all

    My laptop Hp Pavilion is not allow me to record all sounds - not in the built-in microphone and not through any plug microphone I have.

    -J' already checked that my microphone is not muted
    -J' already checked that my microphone is set to the default device
    -J' already checked that my burning software (Audacity) has selected as the device microphone to take his
    -I think I have the latest drivers for my microphone, but I'm not 100% sure

    Can someone please help me with this? I would be very grateful.

    Thanks in advance

    Hello

    Method 1:

    I suggest you to visit the links below and check if it works.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-audio-recording-problems
    http://Windows.Microsoft.com/en-us/Windows-Vista/record-sound

    Method 2:

    You can also refer to the steps below:

    a. Open Sound by clicking on the Start button, then Control Panel. In the search box, type sound, and then click sound.
    b. click on the recording tab, click on Microphone and then click Properties.
    c. click the levels tab and make sure the mute button is enabled, if off to click on it to activate sound for this connection and then click on apply.
    d. click on the Advanced tab, click to clear applications to allow him to take exclusive control of this peripheral checkbox and then click OK.

    See the link below:

    http://Windows.Microsoft.com/en-us/Windows-Vista/connect-a-microphone-music-player-or-other-audio-device-to-your-computer

  • Hi all, please help me to retrieve the last record value in field

    Hi all

    Shape the table below, I want to retrieve the latest data from column 4 disks in a new field that will be my field of view as shown in the end of the table by means of BI publisher, please help to achieve this goal.

    Column1 2 3 4 5 6

    May 1, 1067205671982868062
    May 1, 10034925706902868065
    15 May 102500005456901634220
    15 June 106000000-543101657501

    New field -54310

    Thank you and best regards,

    Prasad.

    something like

    for each: ByWhichLoop [last()]

    end foreach

  • My themes have disappeared. I have not changed the login data.  Just save freezes also. Cannot save new themes. Please help.

    My themes have disappeared.


    I have not changed the login data.


    Also cannot save new themes.  Just sitting save / freezes.


    Please help.

    Hello

    have you tried to connect to the Adobe Color CC and see if you can find them on the site? Have you checked that you are in the right library? I hope looking at Community under your themes page you will recover what seems to be lost. Keep us updated!

  • How can I reboot my pc (reformat)? Windows XP - want to remove ALL - please help, thank you!

    attempt to delete everything on my pc! Please sumone help! Thank you very much.

    You want to reinstall Windows XP, or you want to install another operating system?  Or you want to erase everything because you want to sell or give away your computer?

    If you want to reinstall Windows XP you have a Windows XP CD?  You have the product key all important?  Without the product key, you will not be able to install Windows.

    If you just want to reinstall Windows XP for your own use then just boot the computer with your Windows XP CD and press screen printing 'Welcome' to install Windows and the next screen, press F8 to accept the end user license agreement.  After accepting the EULA, you will be presented a list of partitions and disks available, simply select the partition where you want to install Windows and have the installer to format the partition and then follow the instructions on the screen.

    Note that formatting does not erase the files on the drive, everything simply writes a new boot sector and erases the record of all entries table and shows the disc under vacuum for the operating system.  You can get the free files (such as TestDisk) recovery utilities that can easily recover formatted partition.  Even if you reinstall the system operating, commercial data recovery can still recover files in areas that have not been replaced with the new files after you have formatted the drive.  Obvioyusly is not in the safest thing if you want to give or sell your computer, or if you want to remove the stubborn MBR or boot sector virus, in this case you want to zero fill the drive and rebuild it.  Get a zero fill utility (disk wiping) and fill the disk with zeros, this will completely destroy all data on the disk and prevent recovery of files.  You can get a zero utility filling of the manufacturer of your drive, or you can use one of them (Secure Erase is my preferrence):

    Secure erase

    Darik Boot And Nuke (DBAN)

    (Note that these utilities are not suitable for SCSI drives, if you have disks SCSI contact the manufacturer for a suitable utility)

    After fill you to zero the drive start just the computer with the Windows XP CD and the Setup disk selection screen will see and present as a new disk.  Create a partition and format, then proceed with the installation of Windows.  Don't make the mistake of installing Windows on a partition too small, better to use the entire disk rather than running out of space more later!

    Native and favorite of the filesystem for windows XP is NTFS, format the NTFS partition, unless you have compelling reasons to use a different file system.

    And yet once, remember that you can not install Windows without the product key, you must ensure that you have the key before format or erase the disk.  Without the key, you'll be up the proverbial Creek!

    John

  • Print the following spooler & RPC:When instructions from Microsoft to correct the 0x000006ba error I then get error 1068. Have spent hours trying to solve this problem and support web Microsofts is not useful at all - please help - I just want to be able

    Print spooler 0x000006ba and 1068 error messages

    Try the instructions and links provided by the spirit in the following thread shows to see if they help (or differ from what you have already tried):http://social.answers.microsoft.com/Forums/en-US/vistahardware/thread/ef6ac932-a6cb-48cb-a56b-de5b1443df87.

    If this does not work, what is the manufacturer, the brand and the model of printer that you have (and all that you had previously installed)?  What version of Vista you have (for example, 32-bit Vista Business SP2)?  How the printer is connected (1 LPT, USB, ethernet, wireless, network,...)?  Please report the exact error messages you've been making word - that they can help us find the cause because there are reasons a bit that these things could happen and we have to understand the situation better than to offer a more targeted solution.  For example, what is a Lexmark printer (or have you ever had a Lexmark printer)?  There is a particular problem with these printers and a fix for the problem but I don't know if this is the case here and do not want to waste your time on something that does not apply.  There are other examples, as well.  We understand the situation, the better we can help you.

    I hope this helps.  If this isn't the case, please provide a lot of information that you can including the answers to all the above questions and anything else that you think might help.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Image theme change: Please help

    Hi, everybody, this may seem a simple operation but I tried several times and did not change a theme image (the little icon to the left with the title of the URL), see the icon 'B'Screen Shot 2015-01-26 at 3.21.05 PM.png.

    1. I went to the theme change theme 101, the last section is 'use a custom image', I changed it to mine and the pages still use the 'B' icon

    2. I find the icon ' bootstrap - icon.png "and replaced it with my image with the same name, still no change

    I missed something obvious?

    * you have forgotten versions: Apex 4.2.6 on Oracle DB 11.2

    Any suggestions are greatly appreciated

    seanzh wrote:

    Hi, everybody, this may seem a simple operation but I tried several times and did not change a theme image (the little icon to the left with the title of the URL), see the icon 'B'.

    1. I went to the theme change theme 101, the last section is 'use a custom image', I changed it to mine and the pages still use the 'B' icon

    2. I find the icon ' bootstrap - icon.png "and replaced it with my image with the same name, still no change

    No wonder that it does not work as the two are not connected somehow.

    A custom Image theme appears in the display of the icon of the page of the theme of shared components.

    The small picture in the browser's address bar is a favicon, which can be implemented in the APEX page template.

    Create icon in ICO format image, upload it to your image folder or the APEX repository and add

    
    

    in the element of the required page templates, change the href URL for your applications.

    If you have only a single application / want the same icon for all your applications and you have access to the folder root of your site, you can simply locate the favicon.ico in the folder root without add link shortcut for page templates icon.

  • Dreamweaver does not appear in the extensions manager all please help more

    Dreamweaver does not appear in the extensions manager the most

    Help, please

    I have a backup of my hard drive, so I could search for missing files

    Thank you

    nicolasatpewny.com

    The extension manager is no longer supported by adobe, Adobe Exchange:

    Extension Manager no longer work after the update CC 2015

  • Trye all please help with stop();

    OK, I have a movieclip on the stage 2, which plays an animation, waits a random time then plays again.

    the code I used is stop(); does not work.

    section 1 inside the clip:

    function paause() {}
    Play();
    clearInterval (timer) ;}

    section 40:

    Stop();

    Howlong = Math.Random () * 7500 + 4000;
    Timer = setInterval (paause, howlong);

    Stage 3 I have 1 frame with the code stop(); on this subject. It does not work. He seems to act on the code of film clips. Why ive tried to solve this problem for about 4 hours please some 1.

    You should look things up in the Flash help documentation if you want to see how they work.

    In your case, try the following: remove the code you showed 1 frame inside the movieclip and put the following in the frame of 40...

    Stop();

    function paause() {}

    Play();

    }

    howlong var = Math.Random () * 7500 + 4000;
    var timer = setTimeout (paause, howlong);

  • Vundo, BHO malaware as mine PC - I don't like them. PLEASE HELP OUT. I dropped...

    I have Windows XP Home SP2 Dell XPS GEN3 (excluding guarantees and support, but still kicking).

    Yesterday I was unfortunate enough to get Antivirus 2008 - very frustrating experience. Read here and use MBAM to remove it. However, during the second test, I was careful to the left on the junk and it was Vundo, BHO (did not specify) and a few other things malaware. I tried to run MBAM - nothing, MBAM tent (or at least it say) to remove on reboot, but they keep coming back. I went to the safe MODE, disabled the system restore and MBAM used again - same result.

    I googled the problem - found FixVundo.exe here from Symantec. Run in mode safe mode with CATERING to the wide and no result once again (this time FixVundo said that there is no such malaware found on my PC).

    I dropped.

    Here's the latest MBAM log file:

    Malwarebytes' Anti-Malware 1.24
    Database version: 1036
    Windows 5.1.2600 Service Pack 2

    20:53:35 09/08/2008
    MBAM-log-8-9-2008 (20-53-35) .txt

    Scan type: Quick Scan
    Objects scanned: 41401
    Time elapsed: 4 minute (s), 21 second (s)

    Memory processes infected: 0
    Memory infected: 3
    Registry keys infected: 6
    Registry values infected: 2
    The infected registry data: 4
    Folders infected: 0
    Files infected: 5

    Process memory infected:
    (No malicious items detected)

    Memory infected:
    C:\WINDOWS\system32\vtUoLbAQ.dll (Trojan.Vundo)-> delete on reboot.
    C:\WINDOWS\system32\zurufalo.dll (Trojan.Vundo)-> delete on reboot.
    C:\WINDOWS\system32\ddcCUkIB.dll (Trojan.Vundo)-> delete on reboot.

    Infected registry keys:
    HKEY_LOCAL_MACHINE Helper Objects\ {d6c213a3-da8e-41d2-850b-fba893e492ec} (Trojan.Vundo)-> delete on reboot.
    HKEY_CLASSES_ROOT\CLSID\ {d6c213a3-da8e-41d2-850b-fba893e492ec} (Trojan.Vundo)-> delete on reboot.
    HKEY_LOCAL_MACHINE Helper Objects\ {8c57cb69-ec1f-4ff3-916f-52151aabc187} (Trojan.BHO)-> delete on reboot.
    HKEY_CLASSES_ROOT\CLSID\ {8c57cb69-ec1f-4ff3-916f-52151aabc187} (Trojan.BHO)-> delete on reboot.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ddccukib (Trojan.Vundo)-> delete on reboot.
    HKEY_LOCAL_MACHINE Software Microsoft RemoveRP (Trojan.Vundo)-> quarantined and deleted successfully.

    The registry is infected:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\luwuhuwamo (Trojan.Agent)-> quarantined and deleted successfully.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellExecuteHooks\ {8c57cb69-ec1f-4ff3-916f-52151aabc187} (Trojan.Vundo)-> delete on reboot.

    Infected registry data items:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA\Security packages (Trojan.Vundo)-> Data: c:\windows\system32\vtuolbaq-> quarantined and deleted successfully.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\AppInit_DLLs (Trojan.Vundo)-> Data: c:\windows\system32\zurufalo.dll-> quarantined and deleted successfully.
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA\Notification Packages (Trojan.Vundo)-> Data: c:\windows\system32\zurufalo.dll-> quarantined and deleted successfully.
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA\Authentication packages (Trojan.Vundo)-> Data: c:\windows\system32\vtuolbaq-> quarantined and deleted successfully.

    Infected files:
    (No malicious items detected)

    Infected files:
    C:\WINDOWS\system32\vtUoLbAQ.dll (Trojan.Vundo)-> delete on reboot.
    C:\WINDOWS\system32\QAbLoUtv.ini (Trojan.Vundo)-> quarantined and deleted successfully.
    C:\WINDOWS\system32\QAbLoUtv.ini2 (Trojan.Vundo)-> quarantined and deleted successfully.
    C:\WINDOWS\system32\zurufalo.dll (Trojan.Vundo)-> delete on reboot.
    C:\WINDOWS\system32\ddcCUkIB.dll (Trojan.BHO)-> delete on reboot.

    Whatever it says remove on reboot - nothing was happened.

    I tried to manually delete these files and to REPAIR Windows to reinstall CD.

    Now, I gave up. I need new ideas.

    Thanks in advance for any help.


  • updated my photoshop in 2015 and now it will not open at all ~ please help!

    I've updated my photoshop - and I also tried to uninstall and reinstall the program, but nothing works! The program will not just open!

    Help!

    Try to manually install Camera Raw. This is 9.2 for 2015 CC: https://helpx.adobe.com/x-productkb/multi/camera-raw-plug-in-installer.html

    The most recent for CS6 is 9.1.1: Adobe - Adobe Camera Raw and DNG Converter: for Windows: Adobe DNG Converter 9.1.1

  • I can't get my pre-defined menu.  He is not coming at all.  Help, please!

    I can't find my presets for Encore CS6.  This is the full version, but nothing is coming when I try to find them.  Please help me.

    CS5-thru-CC body/Encore tutorial list http://forums.adobe.com/thread/1448923 can help

    -More instructions http://helpx.adobe.com/encore/kb/encore-cs6-installed-cc.html for a subscription

    The lower section of the above tutorial link has several links to Adobe, and other information, downloading first Pro CS6 the CS6 Encore group and https://helpx.adobe.com/encore/using/download-library-content.html for the library of content yet... and the tutorial list includes learning to use again... attention to the image in response 3 at this link - https://forums.adobe.com/thread/1516173 (photo first published by Ann Bens and reposted by Stan Jones)

  • Impossible to update the credit card information, please help

    Hello

    The site doesn't let me update my credit card information. He said something about a date has expired and that I should write another date, but where exactly? My credit card details are correct, but the site won't let me save them! Please help, I must not lose my subscription now!

    Thank you in advance,

    Bernhardina

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <===> NOTE DAYS AND TIME
    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

Maybe you are looking for

  • Helmet n left times

    Is it possible to determine how much time is left on the Bluetooth headset?

  • HP base system device

    I recently loaded Windows 7 on a HP Pavilion Dv6700 laptop and have all the necessary drivers except for the "system of base and found a: PCI VEN_1180 & DEV_0592 & SUBSYS_30CC103C & REV_12 PCI VEN_1180 & DEV_0592 & SUBSYS_30CC103C PCI VEN_1180 & DEV_

  • Movie Maker XP has disappeared from my programs!

    I used Director of windows on my XP and one day that it comes not would open more. It is not yet listed in my programs either. I don't know how or why this happened, but I tried the download from the Microsoft Web site and that no longer works. do yo

  • WRT160N - need help

    Earlier this evening, I tried to find my IP address on my computer. I typed in ipconfig in Run command window cause I thought that's what I had to do. Turn on this was not, and now my wifi is messed up. I have wifi avaiable on my iPod Touch, but not

  • How to make a backup after the initial backup on CD?

    I backed up the files on CD.  Now after that I added or changed files, how can I save so that only files that are added or modified are saved?  It was then that not every file is saved again.