error when you try to compile this stored procedure

I get this error message

Testing_sp PROCEDURE compiled
WARNING: the execution is completed with warning

can I do this...

See the err;

and:

17/23 PL/SQL: ORA-00932: inconsistent data types: expected NUMBER obtained -
16/1 PL/SQL: statement ignored

I can't understand why.
I checked all the columns at TEST_TMP_TBL
they are all varchar2





CREATE OR REPLACE PROCEDURE testing_sp
AS

XML CLOB.
xml2 VARCHAR2 (150);

BEGIN


SELECT ' <? XML version = "1.0" encoding ="' | utl_i18n.map_charset (value) | "" ? > '
IN xml2
OF nls_database_parameters
Setting WHERE = 'NLS_CHARACTERSET ";


SELECT
XMLElement ("APPLICATION",
XMLAttributes ('TEST', "Name")
, XMLElement ("TESTPAGE",
XMLAgg)
XMLElement ("PROJ",
XMLAttributes (NVL("ORDERS",' ') AS ORDERS,
NVL("SUB_PART",' ') AS SUB_PART,
NVL("SUB_SUB",' ') AS SUB_SUB,
NVL("DESC",' ') AS DESC,
NVL("ADD",' ') AS ADD,
NVL("NUMB",' ') YOU NUMB
),

XMLForest)
NVL("ORDERS",' ') STOPPED,
NVL("SUB_PART",' ') AS SUB_PART,
NVL("SUB_SUB",' ') AS SUB_SUB,
NVL("DESC",' ') AS DESC,
NVL("ADD",' ') AS ADD,
NVL("NUMB",' ') YOU NUMB
)
)
)
)
)
in xml
OF TEST_TMP_TBL;



DBMS_XSLPROCESSOR.clob2file (xml2: xml, 'dir', 'testing.xml');



EXCEPTION
while others then
Rollback;

end;



Let me know if you have an idea, I would almost give my first born of an answer to this (not really sure)

SQL > DECLARE
2 v_xml CLOB.
3 - v_xml XMLTYPE.
4 BEGIN
5 SELECT XMLELEMENT ("Emp") IN v_xml FROM DUAL;
6 DBMS_OUTPUT. Put_line (v_xml);
7 END;
8
9.
SELECT XMLELEMENT ("Emp") IN the v_xml FROM DUAL;
*
ERROR on line 5:
ORA-06550: line 5, column 21:
PL/SQL: ORA-00932: inconsistent data types: expected NUMBER obtained -
ORA-06550: line 5, column 2:
PL/SQL: SQL statement ignored

now change the variable for XMLTYPE data type;
SQL > DECLARE
2 - v_xml CLOB.
3 v_xml XMLTYPE.
4 BEGIN
5 SELECT XMLELEMENT ("Emp") IN v_xml FROM DUAL;
6 DBMS_OUTPUT. Put_line (v_xml);
7 END;
8
9.

PL/SQL procedure successfully completed.

Tags: Database

Similar Questions

  • Errors when you try to compile WebWorks app

    Hi all. Can someone help me solve these compie errors I get when trying to build with ripple?

    [INFO] Packaging of the record bar
    javax.imageio.IIOException: cannot read the input file!
    at javax.imageio.ImageIO.read (unknown Source)
    at net.rim.tumbler.airpackager.AirPackager.createSplashscreen(AirPackager.java:723)
    at net.rim.tumbler.airpackager.AirPackager.run(AirPackager.java:191)
    at net.rim.tumbler.WidgetPackager.go(WidgetPackager.java:152)
    at net.rim.tumbler.WidgetPackager.main(WidgetPackager.java:77)
    [ERROR] Air conditioner exception occurred

    I made sure that my JRE is 32-bit, I added the path to the system of the "/ bin".

    Below is my Config:

    
    http://www.w3.org/ns/widgets"
            xmlns:rim="http://www.blackberry.com/ns/widgets"
            version="2.0.0.0">
    
      http://www.example.com/"
              rim:copyright="Copyright 1998-2012 My Corp">none
    
      Sample application
    
      
        A sample application to demonstrate some features.
      
    
      
    
      
        
      
    
          
    
      
        access_shared
        read_geolocation
        use_camera
      
    
      
    
      
    
      
    
      http://www.somedomain.com" subdomains="true">
        
        
      
    
    
    

    I have read all the threads re: the same problem but nothing I tried worked.

    Looks like your problem is because Packager WebWorks is not able to open some of your image files, check if there is any lack and make sure that permissions to read files are correct.

    I had similar problems with Packager WebWorks and I resolved by running as root.

  • Why I get an ORA-04052 error when I try to compile a procedure?

    Hello
    The following procedure I get an ORA-04052 error when I try to compile the following procedure.
    CREATE OR REPLACE PROCEDURE APPS.Find_String (
     pin_referenced_name IN dba_dependencies.referenced_name%TYPE) 
    
    IS
    
    cursor cur_get_dependancy
    is
    SELECT distinct owner, name, type 
      FROM [email protected]        -- prod.world 
     WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d' 
       AND referenced_type <> 'SYNONYM'
       AND owner <> 'SYS'
     order by name;
     
    v_owner  varchar2(40);
    v_name   varchar2(50);
    v_type   varchar2(40);
     
     
        BEGIN
    
           dbms_output.put_line(upper(pin_referenced_name)||' is found in the following objects.');
           dbms_output.put_line(' ');
           dbms_output.put_line(RPAD('OWNER', 30, ' ')||RPAD('NAME', 60, ' ')||RPAD('OBJECT TYPE', 30, ' '));
           dbms_output.put_line('-------------------------------------------------------------------------------------------------------------------');
    
            FOR i IN cur_get_dependancy
            LOOP
                v_owner := RPAD(i.owner, 30, ' ');
                v_name  := RPAD(i.name, 45, ' ');
                v_type  := RPAD(i.type, 30, ' ');
                
               
                dbms_output.put_line(v_owner ||v_name|| v_type);
    
            END LOOP;
    
    END find_string;
    I use the [email protected] link. Commented compiles it procedure for other links of database used in the cursor, including the one to the right of the code 'prod.world '.

    What is even more strange is that I took the SELECT statement
    SELECT distinct owner, name, type 
      FROM [email protected]        -- prod.world 
     WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d' 
       AND referenced_type <> 'SYNONYM'
       AND owner <> 'SYS'
     order by name;
    the procedure and he ran on the command line by using the link to @pinp.world, the SQL statement is fine. But when I tried to compile the procedure above to this exact same SQL query with the same exact link I get the following string of errors.
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02068: following severe error from PINP
    ORA-03113: end-of-file on communication channel
    How the link can work very well in a regular SQL but then cause an error when its code compiled in that otherwise compile correctly when you use any link, or even just a simple database. Does anyone have any suggestions?

    Hello

    Good thounght, but no, there is no privilege SELECT ANY VIEW; SELECT ANY TABLE includes views and materilaized.

    I suspect that the problem is something specific to the data dictionary. I have just connected as SYS and granted SELECT ANY TABLE to another user with minimum privileges, X. X, ALL_VIEWS included so all views dba_, including the dba_dependencies. However, X was still unable to dba_dependencies the query either in SQL * more or PL/SQL.

  • Error (34.2): PLS-00103: encountered the symbol "END" when you try to compile the procedure.

    Hello

    I get the following error when I try to compile the procedure. I call a package inside this simple procedure. Not sure where I do worng. Here is the error I get.

    Error (34.2): PLS-00103: encountered the symbol "END"?

    Here is my code

    create or replace PROCEDURE BATCH_JOB_CAC_SP

    (

    vstatus OUT NUMBER)

    AS

    vloadserver global_name.global_name%TYPE: = get_dbservername;

    vuseridmod CONSTANT VARCHAR2 (15): = 'SYSTEM '.

    vloadname CONSTANT VARCHAR2 (30): = "BATCH_JOB_CAC_SP";

    v_cnt_upd NUMBER: = 0;

    vrunid NUMBER;

    v_spoutput VARCHAR2 (150);

    CURSOR job_cac

    IS

    SELECT NumCli, job_cac FROM batch_job_cac, batch_recid, jobnum;

    BEGIN

    I'm in job_cac LOOP

    job_cac_pkg.job_cac_valid_sp (i.custnum, i.jobnum, v_spoutput);

    CASE v_spoutput

    WHEN "1" THEN DBMS_OUTPUT. Put_line ('update job ACC');

    WHEN "2" THEN DBMS_OUTPUT. Put_line ('update job ACC');

    WHEN '3' THEN DBMS_OUTPUT. Put_line ('can not update working ACC');

    OF ANOTHER DBMS_OUTPUT. Put_line (v_spoutput);

    END CASE;

    END LOOP;

    EXCEPTION

    WHILE OTHERS THEN

    IF job_cac % isopen THEN

    CLOSE Job_cac;

    END IF;

    ROLLBACK;

    vStatus: = 1;

    LOG_ERROR_SP_NM (vLoadServer, vLoadName, SQLCODE, SQLERRM, vUserIdMod);

    END;

    END BATCH_JOB_CAC_SP;

    Thanks for your help.

    Hello

    You have 2 statements END at the bottom of your code, but only 1 BEGIN statement earlier.

    Losing one of these END States.

  • Loading error when you try to load the Halo 2 "files are missing or damaged in the installation directory. A few important files required to run this game are missing from the installation directory.

    Original title: load error when you try to load Halo 2

    People at Microsoft, I have a problem trying to load Halo 2 on my dv7 Paviliaon with Vista and the 2.8 GB Intel Centrino 2 processor. When I try and load the game, I get and error stating: "the files are missing or damaged in the installation directory. A few important files required to run this game are missing from the installation directory. "It bothered me for several reasons. One: the disc that I use is an original disc out of the box so hsould have no problem. Two: the game has been loaded previously on the same computer without apparent problem at the time. It has been deleted (don't remember why) and when I tried to reinstall, the error came. Three: I did as recommended and updated all programs and drivers, nothing works. So my question is, how do I reinstall Halo 2 and what this problem will arise if I decide to buy and load Halo 3?

    Thank you for your time in advance.

    Hello

    As you are facing problems with Halo 2, I suggest you to refer the link for better support:

    http://forums.haloonwindowsvista.com/forums/

  • After you install a Foxfire 5.0 update, I get this message when you try to open Mozilla: the procedure entry point sqlite3_db_status could not be located in the dynamic link library mozsqlite3.dll.

    I get this message when you try to open Mozilla: the procedure entry point sqlite3_db_status could not be located in the dynamic link library mozsqlite3.dll.

    Do a clean reinstall.

    Download a new copy of Firefox and save the file to the desktop.

    • Uninstall your current version of Firefox.
    • Do not remove the data of a personal nature when you uninstall the current version.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    • It is important to remove the Firefox program folder to delete all the files and make sure that there is no problem with the files that were the remains after uninstallation.

    Your bookmarks and other profile data is stored in the Firefox profile folder and will not be affected by a relocation, but make sure that you do not select delete data of a personal nature if you uninstall Firefox.

  • Error when you try to run an application that worked when built with 8.6

    I have a simple program that I wrote in the 8.6 version that I've never had a problem generation and execution of applications built with it to 8.6.  Two weeks ago, I got 2009 by mail because we had very recently purchased 8.6 and I get errors when you try to run an application built with the same code using 2009.  The error relates to the Mean.vi.  He claims that he can't find it.  The error I get is as follows:

    Error loading VI 'NI_AALBase.lvlib:Mean.vi '.  LabVIEW support 3 error code: could not load façade.  I don't have access to the front panel of this vi, so I wonder if there is a problem with the runtime and not my code.  Please answer as soon as possible because it will quickly start to the impact of my calendar.  Thank you.

    Hello!

    The same problem ?

    I talked with my local OR technical support team. The application now works without any problem.

    Rule of thumb: when creating a Setup program do not forget that the option "Run Time Engine xxxx" in the category "Other installers" is selected despite the fact that the runtime is already installed.

    Best regards.

  • get error when you try to lower the java load error 1-4 of 4 0 x 80070643.

    get error when you try to lower the java load error 1-4 of 4 0 x 80070643.

    This forum is for Microsoft Security Essentials.

    You question is with Oracle Java.

    It is recommended to go to www.oracle.com to get help.

  • HTTP 503 error when you try to deploy the project in Visual Studio

    I get a http 503 error when you try to deploy a project in Visual Studio-SQL Server 2005. What this mean and how can I solve this problem?

    Hello

    I suggest you refer to the following msdn link for the fix for the problem.

    http://msdn.Microsoft.com/en-us/vstudio/aa718325

  • code 80070017 error when you try to downland microsoft office service pack 2 on vista

    code 80070017 error when you try to download microsoft office service pack 2 for vista

    0 X 80070017-2147024873 - ERROR_CRC
    Data error (cyclic redundancy check).

    This problem may occur if there is a failure of control of cyclic redundancy (CRC) check during the update process. This failure can occur if the received file is not the file that is expected by Windows Update

    Run the Chkdsk.exe tool to check the drive for errors

    If this does not help, then manually download the update you need and see if that fixes the problem.

    Description of 2007 Microsoft Office Suite Service Pack 2 (SP2) and of Microsoft Office Language Pack 2007 SP2
    http://support.Microsoft.com/kb/953195 TaurArian [MVP] 2005-2010 - Update Services

  • Error - when you try to delete a file and re - install a program

    Can someone help me pls? A program has stopped working for me, so I tried to remove and reinstall and I'm having no luck.

    I don't see any more on Add/Remove Programs, but when I look under C/program files, I still see the folder here. When I try to delete the folder, I get an error ' cannot delete r2.bmp: data error (cyclic redundancy check). "

    When you try to download this same program again, it says "Setup encountered a disk write error. Please ensure that all other applications are closed before starting the installation. In addition, ensure that the destination drive has enough space and that you have the necessary access rights. "For starters, I havve nothing else open. Shows user accounts I have "administrator rights."

    I'm stuck here, without being able to delete the folder or download again. I'm new to computers (wish I knew more). I watched how do I know which system I have and I have XP.

    Can any of you help me pls?

    Cyclic Redundancy Check (CRC) errors are usually associated with the hard disk errors.  The best first approach to solve this problem is to do a complete check of the disk.  The short version of the procedure to follow is:
    Under "My Computer", right click on the C drive :-> properties-> tools (tab)-> 'Check now'
    Check out the options and 'Start '.  He will complain that it cannot do it now and tell you that it will do so at the next startup.  Accept the warning.
    Restart your computer and let it complete the disk check.

    More info is here:
    "How to perform disk error in Windows XP check"
       <>http://support.Microsoft.com/kb/315265 >

    WARNING: This control is performed before Windows starts, can take two hours or more and can not be interrupted.  Do it when you won't need your computer for awhile.  Also, it would be prudent to update your backups before the race.

    HTH,
    JW

  • Error when you try to install the software update of tax

    It is for the HR Block Tax software,

    Update installs successfully on the XP machine, but on windows 7, I get this

    "Windows Installer does not allow patching of managed advertised products. At least one characteristic of the product must be installed before applying the patch.

    I made sure that it is running as an administrator. Tried to use the previous version of windows. Still lost.

    Google and seems that it may occur with other programs as well. Have not found a solution very clear.

    Hello Joslinm,

    1. do you get this error when you try to install any other application?

    I suggest that you contact the H & R support and check if the application is compatible with Windows 7. Here is a link you can follow to contact support:

    http://www.hrblock.com/support/index.html

    Thank you
    Irfan H, Engineer Support Microsoft Answers. Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • 80070490 error when you try to update

    When you try to solve this problem, I have not found a solution for it

    Charles,

    If you receive the Windows Update 80070490 error, it means that a file (CBS Manifest) that is needed to install updates is corrupt.

    The System Update Readiness Tool for Windows can correct some conditions that cause Windows Update 80070490 error.

    To learn more about this tool, go to which is the analysis of system update tool? on the Windows website. http://support.Microsoft.com/kb/947821>

    If the system update readiness tool solves the problem, you will need repair Windows.

    Repair Windows will not damage your personal files or the programs that are installed on your computer.

    Once you have completed the repair, you will need to restart Windows Update to install updates are not included on the installation DVD.

    To repair Windows, follow these steps:

    1. Close all programs and restart your computer.

    2. Insert the Windows DVD into the drive of the computer. Wait for the installer to start. If the installation program does not start automatically, follow these steps:

      1. Click Start and type Drive: \setup.exe in the search box, where drive is the letter of the DVD drive of your computer (for example, D:\setup.exe).

      2. List programs, click Setup.exe.

    3. Click on install now.

    4. Click go online to get the latest updates for installation (recommended).

    5. If you are prompted to do this, type the Windows product key.

    6. What type of installation you want? window, click upgrade.

    7. Once the installation is complete, restart your computer, and then run Windows Update.

    If you continue to see this error, see this Automatic utility on the Microsoft Support site, or go to the Microsoft Answers website for further assistance.

    UTC/GMT is 21:23 Sunday, January 13, 2013

  • Network error when you try to read from C:\Windows\Installer\iTunes.msi

    Original title: error when you try to install iTunes on Windows Vista
    I am trying to install the latest version of iTunes available in South Africa. I use Vista to the Windows Welcome page.

    I downloaded the itTunessetup.exe file, but when I try to run the installation, I get the same message "network error when you try to read from C:\Windows\Installer\iTunes.msi.
    I am at a loss to understand this - I'm not much of a PC expert either.
    Any suggestions? Thank you

    Hello

    Thanks for posting in the Microsoft community!
    You have reached the right forum for your question. I suggest you follow the troubleshooting steps to check if this may help.

    Method 1:
    Run the fix it and check.
    Solve problems with programs that cannot be installed or uninstalled

    http://support.Microsoft.com/mats/program_install_and_uninstall

    Method 2:
    You can completely uninstall older versions of iTunes installed on the computer, then I suggest you to install the latest version and check.
    Download link


    Method 3:
    You can try the form as follows article knowledge base and check if you are able to install iTunes.
    Problem installing iTunes or QuickTime for Windows
    http://support.Apple.com/kb/HT1926

    Reference link:
    Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.Apple.com/kb/HT1923

    If the problem persists then you can contact iTunes support: http://www.apple.com/support/itunes/
    Just reply with the results. I'd be happy to help you more
  • Error 0 x 00000643 error when you try to install a Kodak wireless printer. When tried to install the wireless printer is located and ready to install, I get a PnPx device then error

    Error 0 x 00000643 error when you try to install a Kodak wireless printer. When tried to install the wireless printer, wireless printer is ready to install I get a PnPx device Microsoft authorization. Runs like it is installing then error is presented. I tried fixit did not work... Frustrated

    You could settle on a previous installation. Try this:

    Go to your device manager and see if you have an old installation of the printer and right click Uninstall. You can also check if there is an old facility of the printer in Control Panel, printers, right click and delete it. Install the printer using the Add Printer Wizard. If it fails again with the same error, go to Device Manager right click on the name of your computer, click on "Scan for harware changes". He must find the printer and install it. Now you can check your printer if its work. If this does not work, please indicate your model of printer on your next reply.

    Open the Device Manager
    http://Windows.Microsoft.com/en-us/Windows-Vista/open-Device-Manager

Maybe you are looking for

  • I can keep in my iTunes library to another hard drive?

    I want to spend my videos, movies, and Podcasts files on an external drive and free space on my disk flash SSD internal. Is this possible? How can I do?

  • Re: Satellite C660 - 29G does not detect wireless networks

    Hello. I own a SATELLITE C660 - 29 G PSC1LE, bought in Spain. Once shaped my development pc, I installed Windosws 7 64-bit. As I lost the DVD attached to the purchase of the laptop, I have downloaded all the drivers for my model based on the Toshiba

  • ENVY 700-049: ASUS ROG STRIX 1080 in HP ENVY 700-049?

    I was wondering if the oversized ASUS ROG STRIX 1080 will enter my DESIRE to 700-049. I measured the case and it seems that he could hardly suitable, but I don't know the exact shape of the card. I did the updates that should affect the way that the

  • Could not get information HP printer - Google Cloud Print (HP 8600) June - 2013

    I deleted and re-entered my printer HP EPrint, use google different emails and I tried all day.  Error message from Google is very generic, (HP site down, wrong email, printer different wrong record, etc.). I printed out on the printer using e-mail t

  • No CD to install XP

    I don't have my XP CD and my i386 has been decimated by a virus. I have my product key, but I don't know how to reinstall windows with only the key. Can anyone help?