Always get compile errors in scott.emp

Hi Experts,
I get compilation errors when I compile a package body:
CREATE OR REPLACE PACKAGE TABLE_EXAMPLE AS
TYPE TNAME IS RECORD(PARAMETER EMP%ROWTYPE,VALUE EMP%ROWTYPE);
TYPE TABLET IS TABLE OF TNAME;
TYPE EMP_TABLE IS TABLE OF EMP%ROWTYPE;
PROCEDURE P1(ARG IN TABLE_EXAMPLE.TABLET);
END;
CREATE TABLE TAB_PAR
  (PARAMETER  VARCHAR2(100 ),
  PA_VALUE   VARCHAR2(100)
);
create or replace package body table_example as
PROCEDURE P1(ARG IN TABLE_EXAMPLE.TABLET) as
l_emp_tbl emp_table:=emp_table() ;
cursor c is select * from emp;

err_msg varchar2(1000);
err_code number;


begin




for m in 1..arg.count loop


insert into tab_par(parameter,pa_value) values (arg(m).parameter,arg(m).value);

end loop;

exception
when others then 
err_msg:=sqlerrm;
err_code:=sqlcode;
dbms_output.put_line(sqlerrm);
end;
 
end  table_example;

Warning: Package Body created with compilation errors.

LINE/COL ERROR
-------- ---------------------------------------
20/49    PLS-00382: expression is of wrong type
20/66    PLS-00382: expression is of wrong type
How to solve this?
Thank you.

Hello
Why do you use

TABLE_EXAMPLE.tablet

In the world
Just change it to TABLET and it should compile correctly.
This is what I did and it works fine

CREATE OR REPLACE PACKAGE TABLE_EXAMPLE2 AS
TYPE TNAME IS RECORD(P_PARAMETER varchar2(100),P_VALUE varchar2(100));
TYPE TABLET IS TABLE OF TNAME;
PROCEDURE P1(ARG IN TABLET);
END;

create or replace package body table_example2 AS

PROCEDURE P1(ARG IN TABLET) as
begin
for m in 1..arg.last loop

insert into tab_par(parameter,pa_value) values (arg(m).p_parameter,arg(m).p_value);

end loop;

end;

end  table_example2;
      

See you soon!
Bobin

Tags: Database

Similar Questions

  • I was installing 2 important updates, but I always get this error 646 (KB976321, KB981726) code, pls.help

    I was installing 2 important updates, but I always get this error 646 (KB976321, KB981726) code, pls.help

    You can search every download and manually install the same.

    IE: http://www.microsoft.com/downloads/en/results.aspx?freetext=KB976321&displaylang=en&stype=s_basic

    Save the update to a location on your hard drive, you can find and then install the update from there.

    TaurArian [MVP] 2005-2010 - Update Services

  • get compilation errors during migration of weblogic7.0 to 9.2

    I get compilation errors for my request during the migration of weblogic7.0 to weblogic9.2. These errors are specific to the weblogic.servlet.FileServlet, weblogic.servlet.WebAppServletContext, and weblogic. Security-related packages.
    In the code of the application itself is called Fileservlet classes. WebAppServletContext calls the getWar() method.
    I found these classes and methods are not api weblogic9.2 and weblogic7.0 api as well.

    But it is having compiled without error in weblogic7.0 and it's errors in weblogic9.2.

    Can anyone suggest sort of like any changes of the configuration necessary for it to fix these errors of compilation.

    This information can be provided by the support the Oracle customer... Because the missing methods belongs to 'Internal API to WebLogic' and no official docs are available from outside the world of oracle because of the internal API.

    Thank you
    Jay SenSharma

  • Have updated to F.F.6, I always get this error evertime I use it. [Message: [Javascript Application] TypeError: Components.classes[@softage.ru/skype/SkypeFfExtension;1'] is undefined - HELP

    Whenever I use f.f.. I get this error. [TypeError: Components.classes['@softage.ru/skype/SkypeFfExtension;1'] is undefined

    Anyone find it and or know how to remove it?

    Thanks a lot for your help and your support

    Extension to remove/disable Skype

    Uninstalling the modules

    Check and tell if its working.

  • Why I always get an error message on my cache in Bridge when I have already purged the central cache?

    I am having trouble in bridge with my cache. When I open the bridge I get the error message, 'the bridge has encountered a problem and cannot read the cache. Please try to purge central cache in the Cache preferences to correct the situation. "I've done this twice now and still get this error message pop up. In addition, my vertical thumbnails do not rotate automatically as they usually do the usual icon that indicates that a raw data file has been aligned in camera raw (to the right of the thumbnail) has disappeared and my rankings are not displayed to the top. I really need the functionality that I'm used I'm editing photos for customers. I'd like TO help! Thank you in advance!

    Answering my own question here, but if anyone else has this problem, try to hold Cmd-Opt-Shift when launching Bridge and choose Cache Purge. For some reason any purge the cache it worked for me vs go to Preferences.

  • I have synced my files of creative cloud (trial versions) to Apple MacBook Pro laptop. I always get an error message indicating that "some files could not be synchronized. What now? I'm at 2 GB of capacity.

    I have synced my creative files could (trial versions) on my Apple MacBook Pro laptop. I constantly get an error message that says, "some files could not be synchronized." I'm at 2 GB of capacity. What now?

    Links for synchronization of files that can help

    -https://forums.adobe.com/community/creative_cloud/host_sync

    -http://helpx.adobe.com/creative-cloud/kb/arent-my-files-syncing.html

    -http://helpx.adobe.com/creative-cloud/kb/cannot-share-certain-types-files.html

    -Size limits https://forums.adobe.com/thread/1488242

  • So I reworked my code and it seems more clear but who always get "RangeError: Error #2006: the supplied index is out of bounds"nonsense. " (CODE + ERROR ATTACHED)

    I reworked the code to make it without error. now, all we are dealing with is the problem of ERROR REANGE. I'm very new to Flash and read responses from people on sites where they solved this problem, but do not understand what people at all. any help would be greatly appreciated.

    Let me explain a little better my problem: I am creating a menu drop-down. everything goes fine UNTIL I'll scroll above the button and get the error. I added an inner glow, etc and it all works very well. I'm only stuck to where the menu is supposed to go down.

    CODE 1:

    var navBtnGlow:GlowFilter = new GlowFilter (0 x 000000, 0.5, 0, 15, 1, 2, true, false);

    navBar_mc.addEventListener (MouseEvent.MOUSE_OVER, navOverF);

    navBar_mc.addEventListener (MouseEvent.MOUSE_OUT, navOutF);

    function navOverF(event:MouseEvent):void {}

    event.target.filters = [navBtnGlow];

    navBar_mc.setChildIndex (event.target as MovieClip, 1);

    dropMenus_mc.gotoAndStop (navBar_mc.getChildAt (1) .name);

    trace ("we rolled on..." + navBar_mc.getChildAt (1) .name)

    }

    function navOutF(event:MouseEvent):void {}

    event.target.filters = [];

    }

    ERROR:

    RangeError: Error #2006: the supplied index is out of range.

    at flash.display::DisplayObjectContainer/setChildIndex()

    to NEWprim_fla::MainTimeline/navOverF()

    Thank you for your help in advance.

    not sure about this, but what happens if you change your setchildindex to 0? in the navOverF function

  • I always get the error massage 0 x 80070424 when I try to update my computer.

    I can't open any file and when I try to update my computer, I just get a massage of the error which is 0 x 80070424, what can I do to fix'it?

    Suggest that you first spread malware as the cause of the problem by following these steps:

    (1) have your system scanned by the antivirus/security suite installed.

    (2) run this tool from Kaspersky: how to remove malware belonging to the family Rootkit.Win32.TDSS

    http://support.Kaspersky.com/viruses/solutions?QID=208280684>

    (3) download, install, update and run full scans with two of these tools free anti-malware:

    MalwareBytes AntiMalware

    http://www.Malwarebytes.org/products/malwarebytes_free>

    SUPERAntiSpyware

    http://SUPERAntiSpyware.com/superantispywarefreevspro.html>

    (4) run the Windows XP and Windows Server 2003 System File Checker (Sfc.exe) tool:

    http://support.Microsoft.com/kb/310747>

    `~`

    If no malware has been detected, there's a Fixit on this page which will reset the Windows Update components:

    How to reset Windows Update http://support.microsoft.com/kb/971058components >

    Suggest you download and Save it. Then, close all the open programs and web browsers.
    Run Microsoft Fixit 50202.msi and choose its default mode.
    After that he finished the race, see if the return code is displayed again when looking for updates.

    If not, then run the Fixit once more and choose his Aggressive mode.
    Restart once it is finished and see if the return code always appears when the updates.

    IF malware is detected, then please post if it has been removed and that the specific name of what has been detected.

    07/23 / 1107:56:32

  • I cannot subscribe to Adobe Stock. I always get an error...

    I tried for days to get a connection to the Stock and connect it to my account. I am always told that there was an error when connecting to a Server / Web page or whatever...

    Hello

    Have you tried it on another browser?

    Alternatively, you can contact Adobe sales to place an order.

    Contact us | Adobe

    Kind regards

    Sheena

  • can not get netframe work 3.5 service pack 1 to install always get an error code ox643

    I have a hp windows xp x 86(32 bit) media center 2005, I tried for about 3 to 4 weeks to get to dragon speaking naturally premium to install on the computer > it will not install because it says I have to install netframe work 3.5 SP1 in order so that he can install it. . When I try to install the netframe 3.5 I get a code error message 0 x 643. Is it possible to get the netframe work 3.5 service pack 1 to install when the netframe who entered the computer is part of the operating system. I tried to eliminate the netframe 1.1 work with the system, but also many other programs is tied to it and would not be able to serve.

    HELP PLEASE!

    When installing updates using Windows update or Microsoft Update you may receive error 80070643 0 x or 0 x 643
    http://support.Microsoft.com/kb/976982

    If necessary:

    Order of relocation:

    1. .NET framework 3.5 SP1 (this will install the .NET Framework 2.0 SP2 and 3.0 SP2)
    2. .NET framework 1.1 (if you have all the programs installed in need, this blog helps you decide whether or not you need)
    3. .NET framework 1.0 (if you have all the programs installed in need, this blog helps you decide whether or not you need)
    4. .NET framework 4

    For more information, please visit: http://blogs.msdn.com/b/astebner/archive/2010/12/22/10108400.aspx

  • Database Visual C 2010 Fatal ErrorC1902 incompatibility... I can't find THE files do not match mspdb *. Why I always get this error?

    I just installed Visual C++ 2010 express and written my program "Hello, World", which was able to build because of this error. Then I restarted my computer and the build worked. I then added a few lines of code in comment (I work through a C++ Tutorial) and failure of reconstruction. I removed the comments and the build has always failed. I restarted the computer and still once, a generation that failed, all because of this C1902 not match the database error. Where should I go from here? I have to admit, I don't know a lot about the microsoft system files and I feel a bit lost and discouraged. I did a search in the system-wide for all files containing "mspdb" and it is only the four installed with Visual C++ 2010 express, mspdbsrv.exe, mspdb100.dll, mspdbcore100.dll and mspdbst.dll. They are all version 10.0.30319.1, leading me to believe that my understanding of what means this error is wrong or I am somehow wrongly the whole. Any ideas?
    On a side note, I read in another forum that someone deleted mspdb100.dll and their problem solved, but I'm afraid to start deleting shared libraries. I have MORE questions I can't fix stack up on this one.

    Hello

    I suggest you contact the Visual support from the link below.

    http://social.msdn.Microsoft.com/forums/en-us/vcgeneral/threads/

    Hope this information is useful.

  • I always get an error suphh.dll to start the computer?

    Hi all

    While I start my computer, I get the following Message.

    RunDLL

    Error loading C:\Users\Gigolo\AppData\Local\Temp\\suphh.dll

    C:\Users\Gigolo\AppData\Local\Temp\\suphh.dll is not a valid Win32 application.

    Thank you all for the HELP.

    Hi KayKhan M,

    ·         Did you do changes on the computer before the show?

    Follow the suggestions below for a possible solution:

    Method 1: I suggest you disable the startup of the system configuration item

    a. click Start, in the search box, type in msconfig.exe

    b. open system configuration window

    c. click on the Startup tab

    d. click disable all

    e. restart the computer and check if the problem persists

     

    You can also view the article mentioned for more information:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

     

    Note: After troubleshooting, be sure to configure the computer to start as usual as mentioned in step 7 in the above article.

    Let us know if it helps.

  • Impossible to get moviemaker to work on my computer. always get the error message, asking if I want to send an error report. __

    trying to open movie maker I get the winbdow which says "windows movie maker has encountered a problem and needs to close" and then askss to send an error report. Downloaded the program again, but keep getting the same message

    Hi jovato,

    Remember to make changes to the computer before that happened?

    I suggest you try the following steps to refine the question:

    Step 1: Put the computer to clean and test start

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    If everything works well after a clean boot, you can deduce that some third-party services are at the origin of the problem.

    Continue with the remaining steps to pin-point on the third party service.

    After find you the program that is causing the problem, you will have to perhaps to update or install a newer version of the program, if you rarely use that you should consider uninstalling the software.

    Important: n ' forget not the computer to start normal follow step 7 in the link.

    If the problem persists,

    Step 2: Download and install the latest service pack on the computer


    How to obtain the latest Windows Vista service pack

    http://support.Microsoft.com/default.aspx/KB/935791

     

     

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Smart error hard drive, run test, drive ok, always get the error message. Laptop HP pavilion g6

    got a "smart hard disk error": message on start up.  As suggested by ran disk hard test in the System Diagnostics.  Obtained "Hard disk 1 (301) correct", did a F10, save and exit.  Restarted the computer.  Still get the same error of smart drive on start up.

    computer: laptop pc HP Pavilion g6

    Windows 7

    computer still under warranty

    Do I need a new hard drive, or is there another solution?

    Thank you

    Hello

    The SMART 301 error would indicate that hard is defective and must be replaced.

    As your laptop is still under warranty, contact HP and arrange for the disc replaced.

    If you live in the United States, contact HP here.

    If you are in another part of the world, begin here.

    Kind regards

    DP - K

  • I tried to download the paid Version of flashfox, butter I always get an error code

    BM-CCH-17 was shown then that means this mein why not then I support u and get rid of the unwanted comercial/add

    Hello arnecollmer, the product you named is not provided by mozilla, but by a separate third-party developer - so for support, you should have to contact the software vendor that you performed the transaction with...

    Thank you for your understanding!

Maybe you are looking for

  • Firebug icon do not if the extension is enabled.

    I use Firefox on Mac OS 10.7.1 7.1 My old firebug stopped working after an update. I downloaded the new alpha version 1.9.0a3 and it seems to be enabled, but icon which is supposed to appear to launch isn't here. F12 - suggested for the previous vers

  • Cost of Skype in different currencies

    Hi you all!I just have one question, hope lecit to ask, I did my Skype account years ago when I lived in Italy, attached to the Italian credit card and paypal account... So I have to pay in euros.Now I live in Russia for a long time, I won rubles and

  • HP pavilion 15-p047nl: System disabled 87162881

    Hello I had this problem, cannot start windows, lost administrator password and the computer tell me: System disable [87162881], someone can help me, thank you very much

  • How to save an imaq image starting from a continuous stream, like a snapshot

    Hello I spent hours trying to find a solution for this on the internet for what I think should be really simple: I have a camera that gives me a stream of images, which I show in a chart of the image. Now, when the user clicks a button 'save', I want

  • Is there any material available to download documents on diskette?

    Years ago (25 +) that I wrote the outline for a book, and I recorded it on a diskette.  I recently found again.   I don't know if there's someone old enough to remember 'disks', but I would really try to access once what would be my thesis.  It is no