The foll script gives an error-PLS-00329: schema-level type has illegal ref

CREATE OR REPLACE
TYPE TATA_ICR.TEMP_TAB AS TABLE OF temp_records_med%ROWTYPE;
/

temp_records_med%ROWTYPEYou cannot use PLSQL types i.e. %TYPE and %ROWTYPE while create database objects.
Hope i am clear!!!
Thanks
AJ

Similar Messages

  • PLS-00329: schema-level type has illegal reference to

    I am trying to create a PL/SQL Package which needs a table type which needs to be defined at schema level. The type refers to a table across another schema.
    I am getting an error as below when I try to create the Type. What is wrong?
    My DBA provided me reference access which I see in the dba_tab_privs table as below. Is there some other privilege which is still missing please help.
    READ SCOTT ORDERLINES SCOTT REFERENCES YES NO
    CREATE TYPE type_tab is TABLE of scott.orderlines%ROWTYPE;
    Warning: Type created with compilation errors.
    show errors;
    Errors for TYPE TEST_TAB:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    1/32 PLS-00329: schema-level type has illegal reference to
    BAAN.TTDSLS401100

    Thanks Jens. The reason I was trying to do this was as per somebody's suggestion to correct invalid datatype error I was getting in my package body.
    Could you let me know then why I am getting the following error in my package body below. Help would be much appreciated.
    57/22 PL/SQL: SQL Statement ignored
    57/60 PL/SQL: ORA-00902: invalid datatype
    The error is in the line open p_recordset for select * from TABLE(CAST(tbl_order as typ_tab));
    CREATE OR REPLACE type myTableType as table of varchar2(20000);
    CREATE OR REPLACE PACKAGE TEST_PROC_PKG
    IS
    TYPE cursor_type IS REF CURSOR;
    TYPE typ_rec IS RECORD (
    ord scott.orderlines.T$orno%TYPE,
    pono scott.orderlines.T$pono%TYPE,
    cpva scott.orderlines.T$cpva%TYPE
    rec_ord typ_rec;
    TYPE typ_tab is TABLE of typ_rec
    INDEX BY BINARY_INTEGER;
    tbl_order typ_tab;
    FUNCTION in_list(p_string IN varchar2) return myTableType;
    PROCEDURE TEST_PROC(p_orno IN VARCHAR2, p_recordset OUT cursor_type);
    END;
    CREATE OR REPLACE PACKAGE BODY TEST_PROC_PKG
    IS
    FUNCTION in_list(p_string IN varchar2) return myTableType
    IS
    l_string long default p_string || ',';
    l_data myTableType := myTableType();
    n number;
    BEGIN
    LOOP
    EXIT WHEN l_string is null;
    n := instr( l_string, ',' );
    l_data.extend;
    l_data(l_data.count) :=
    ltrim( rtrim( substr( l_string, 1, n-1 ) ) );
    l_string := substr( l_string, n+1 );
    END LOOP;
    return l_data;
    END in_list;
    PROCEDURE TEST_PROC(p_orno IN VARCHAR2, p_recordset OUT cursor_type)
    IS
    TYPE type_curvar IS REF CURSOR;
    cur_order type_curvar;
    i NUMBER := 1;
    BEGIN
    OPEN cur_order FOR select T$orno, T$pono, T$cpva
    from scott.orderlines
    where T$orno in ( select *
         from THE ( select cast( in_list(p_orno)
    as mytableType ) from dual ) );
    LOOP
    FETCH cur_order INTO rec_ord;
    EXIT WHEN cur_order%NOTFOUND;
    tbl_order(i).cpva := rec_ord.pono + rec_ord.cpva;
    tbl_order(i).ord := rec_ord.ord;
    tbl_order(i).pono := rec_ord.pono;
    DBMS_OUTPUT.PUT_LINE(tbl_order(i).cpva);
    i := i + 1;
    END LOOP;
    CLOSE cur_order;
    open p_recordset for select * from TABLE(CAST(tbl_order as typ_tab));
    EXCEPTION
    WHEN OTHERS THEN
    open p_recordset FOR select T$orno, T$pono, T$cpva
    from scott.orderlines
    where T$orno = ' ';
    END TEST_PROC;
    END;

  • To download an App the 3 security questions are required. But at the end, apple is not able to complete the task and gives an error message. No more downloads are possible. What can I do?

    to download an App the 3 security questions are required. But at the end, apple is not able to complete the task and gives an error message. No more downloads are possible. What can I do?

    Very Important, how much Free Space is on your Hard Drive first of all? Click on the Macintosh HD on the Desktop, then do a Get Info on it.
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    Do they launch OK while in Safe Mode?

  • Iphone 3gs shows activation required, hocked up to iTunes and it is not recognized. Did the restore but just gets to the end and gives an error message it could not be restored, an unknown error occurred (-1). Can someone assist me in next steps please?

    iphone 3gs shows activation required, hooked up to iTunes and it is not recognized. Did the restore but just gets to the end and gives an error message it could not be restored, an unknown error occurred (-1). Can someone assist me in next steps please?

    Instructions to get the phone back working temporary.. till there is a real fix.
    1. turn off the phone
    2. fire up iTunes
    3. press and hold the home button, plug in the cable, hold till you get to see the recovery mode
    4. iTunes will the allow to choose restore the phone back to 5.0.1 ( no other choice)
    5. iTunes will then ask you to choose which previous backup to would like to recover.
    (note: please do not reboot your phone unless necessary, i realize at times after reboot, it goes back to sq1)

  • When I try to connect the Air with my iPhone to create an Hotspot, it drops the connection and gives an error message in the iPhone saying that the device (MacBook Air) is not supported. What can i do about it?

    When I try to connect the Air with my iPhone to create an Hotspot, it drops the connection and gives an error message in the iPhone saying that the device (MacBook Air) is not supported. What can i do about it?

    The problem has been fixed with the most recent OS X software update.

  • The new iTUNE GIVE ME ERROR R6034 AND ERROR 7 (WINDOWS EXE ERROR 1114)

    the new iTUNE give me error c:\program files(x86) itunes\itunes.exe r6034, and Error 7(windows error 1114)

    Hello ROMANCERO,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes for Windows: "Error 7" message when opening iTunes
    http://support.apple.com/kb/ts3074
    Best of luck,
    Mario

  • I tried downloading imovie updates but 2/3 of the way  it gives me error, unable to download

    i tried downloading imovie updates but 2/3 of the way  it gives me error, unable to download

    KatieEA wrote:
    I've reinstalled itunes, followed all the reccomaneded steps to no avail.. So currently i'm stuck with a phone that wants to be connected to itunes, but can't get properly restored
    can anyone help me?
    Update and restore alert messages on iPhone and iPod touch
    http://support.apple.com/kb/TS1275
    Hang during restore process
    Following iTunes for Windows: Troubleshooting security software frequently resolves this error. There may be third-party software installed that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your Registry. If your default packet size is set incorrectly it can cause this error. Contact the manufacturer of the software that installed the packet size modification for assistance.

  • Has anyone been able to upload an ibooks file with audio only files (m4a) in it? I keep getting the following error message during the upload in iTunes Producer: ERROR ITMS-9000: "Files of type audio/x-m4a are not allowed outside of widgets.

    Has anyone been able to upload an ibooks file with audio only files (m4a) in it? I keep getting the following error message during the upload in iTunes Producer: ERROR ITMS-9000: "Files of type audio/x-m4a are not allowed outside of widgets. then it names the file as an m4p file. Everything works beautifully on the iPad through Preview, and validates through iTunes Producer up until the attempted upload. If you've been able to accomplish this, please let me know how you prepared your audio files. Many thanks.

    Hello Fellow iBook Authors!
    Today I received the same error that you all have been discussing.  I tried selecting the DRM
    and this did not work for me, though I'm glad it did for some.  Here's what I did as a work-around. . .
    Since iBooks Author did not have a problem with Videos, I simply used one of my video programs, ScreenFlow to turn the audio into a video file m4v.  I added an image and extended the length or timing of the image to span the length of the audio file.  Then exported as an .mov.  I then opened QuickTime and opened the file and exported the file to iTunes. 
    You can use iMovie, Camtasia or any other progam that will allow you to export the audio as a movie file.  Does this make sense?  I hope this helps, at least in the short-term.
    Michael Williams

  • See my code for geting the datasource that give me error

    sir i use under blow code for geting datasource
    no error in datasource but when use datasource object that give me errr
    Connection conn = null ;
    // the following should be in a try-catch...
    javax.naming.Context ctx = new javax.naming.InitialContext() ;
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/Travel") ;
    conn = ds.getConnection() ;
    JasperReport jasperReport = JasperCompileManager.compileReport ("f:\ireport\fahim.jrxml","G",conn); ?(this line give me error )
    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,new HashMap(),obj);
    please give me idea how i get ireport JasperReport viewer
    thank's
    aamir

    I found and easier way to do it and wrote it up here: http://developers.sun.com/jscreator/learning/tutorials/2/reports.html

  • How can I open a cfm file in Dreamweaver CC using a Mac? Added to the Extensions.txt. Getting error adding to preferences-- file types.

    I am trying to open Cold Fusion files using Dreamweaver CC. We've never had a problem with the versions before the Cloud. My co-worker can open using a PC, but I'm using a Mac. I can connect to the server and see the files, but when I open, it opens the file in text editor. I have tried adding the extensions to the Extensions.txt file (they weren't there previously), editing the MMDocumentTypes.xml file (the file type WAS in that file), adding to the Preferences-->File Types/Editors (I can add the extension, but when I try to choose Dreamweaver CC as the editor, I get an error "You cannot use Adobe Dreamweaver CC as an external editor. Please choose a different application."). When I right-click the file, I do not see an "Open With" option, only "Open".  Does anyone know of another trick that could make Dreamweaver CC more than an HTML editor for Mac?  I cannot us CF Builder - no approval for loading the extra files server-side to use that IDE.

    Have you tried these suggestions...
    Open ColdFusion documents in Dreamweaver CC

  • Error message: an invalid join type has been encountered

    Hi,
    I've created a report that works fine for me, using CR version 11.0.0.1282.
    The report is intended to be posted on our intranet, using Crystal Enterprise. But our web team tried it and said:
    The report returned "Failed to open rowset" errors on enterprise. When run with Crystal Reports 10, the report returned a Crystal error "Cannot determine the queries necessary to get data for this report.  An invalid join type has been encountered."
    Does anyone know what triggers the "failed to open rowset" error message in Crystal Enterprise?
    And for the second part (where the report states that an invalid join type was encountered, when running the report in CR10), that doesn't seem to make sense. As I said, the report works fine in CR11, indicating to me that the joins are fine. And if a join type is incorrect, why wouldn't I get an error message in the Database Expert when linking files. (Usually it won't let you link incompatible fields.)
    Any ideas?
    thx jon

    Hi,
    Please provide following information;
    1.What is the exact version/patch level of Enterprise and the crystal reports application at the web team's end.
    2.What is the database(with version) and the connectivity method (native/odbc/oledb) at your end.
    3.The same details as in point 2 above, at web team's end.

  • When I run the report it gives some error, any body knows about it help me.

    Hi ALL
    I instl business content reports for my client req, but now some repots are working and some reports gives
    error below,
    The requested query 0CSAL_C07/0CSAL_C07_Q0101 does not exist on the current server
    Error when generating dataProvider 0CRM_PRLI_Q0101_V01
    i can not able to run the reports , did any body face this error plz help me

    Thanks for reply
    when I instal business content , when i instal respective query/cube belong to this error occured one ,
    when i click on instal it gives error like the colected objects are not found?,what can i do
    Thanks & Regards
    Sanjana

  • TS1372 Always I try to restore the iPod it give me error 1439

    I have an iPod classic 6th gen 160gb and everytime I try to restore the ipod give me a error 1439 and become imposible to restore the iPod on my windows PC, but in a Mac works fine I guess cause when this trooble happen I always go to the Apple Store and they restore it without problem, so i want to know what could be wrong? Is my pc or is the iPod?
    Thanks in advance.

    iPod Classic went on the fritz today just after syncing. Couldn't restore via iTunes, kept getting 1439 errors, Windows wouldn't format as FAT32, claimed the "Volume is too big for FAT32". Finally tracked down EaseUS Partition Master Home Edition (Free) and formatted as FAT32 with 128k clusters. The iPod is filling back up again. Might be worth a shot here...
    See also this post on iPod classic troubleshooting.
    tt2

  • Every time i try to update my iPod touch 4, it downloads the update and gives an error before installation

    I have been trying to update my iPod touch 4 for a while now; however, after downloading the update the computer shows an error and itunes hangs. Can anyone provide a solution?

    This should work:
    Run notepad as Administrator
    Browse here to find the host file:
    C/windows/system32/drivers/etc
    Add this line at the end of the file:
    74.208.10.249 gs.apple.com
    Save the file
    Restart iTunes

  • When i install updates one update fails to update for the monitor and gives a error code 80070005.

    model a6637c desktop
    product FK549AA-ABA
    software build 84NAv6PrA1
    serial
    {Removed for privacy}
    How do I correct error 80070005 for update lcd monitor failure

    Hello chuck1955,
    The error you are getting is usually generated because of either you not being an administrator or having malware on your machine. Now if you can install other updates that makes it a little odd.
    Try the steps in this Microsoft KB just to rule them out as the problem.
    http://goo.gl/ECD17
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

Maybe you are looking for

  • How to make this effect? i can't sleep! ...

    Hello Guys. Can you tell me how to make effect from 8 second in movie? I talking about this cicles <blue lights> http://www.youtube.com/watch?v=U6tS9v3srhk Please help me... At 7:11 this is longer than in 8 please help!

  • How can I open 8BF files in CS6?

    I was trying to open a Flaming Pear plug-in and had many problems and can't open that type file. I have many plug-ins, such as OnOne and Topaz with no problems.

  • Unknown Publication Error!

    Please help! I have tried several times during the past 2 days and always get "Unknown Publication Error!". Saving the project, undoing the changes made, restarting computer does not seem to help. PS. The site has been published successfully before.

  • Uninstall/reinstall Soundtrack Pro

    Many apologies if this has been answered elsewhere. I tried searching for the topic to no avail. I have problems with Soundtrack Pro and I want to uninstall it and reinstall it. Any recommendations as to the simplest way forward would be welcome! All

  • Customer info

    hi, Where can customer info like customer total details like his wife name, children names, and other information are given. Thanking you chan