user-defined function result value was too big

Hi experts,

Face because of function result value user was too big while I extracted and insert the XML into an oracle table. That is, it works fine when the XML size less than 4000 characters, but the issue will increase when the xml code size more than 4000 characters.
I can't able to unravel using gently question out of the question.

This is my code:-

INSERT INTO ENDORSEMETN (Endorsement_name)
SELECT 
      EXTRACTVALUE (COLUMN_VALUE, '//Table1/Endorsement')
                 FROM TABLE (XMLSEQUENCE (EXTRACT (SYS.XMLTYPE (p_xmlDetails),'/NewDataSet/Table1')));
Thanks and greetings
Arun

Although the syntax is supported from 10.2.0.4 (ou.3), the ability to directly throw text() big bows that CLOB has been added in version 11.2.0.2.

For example:

SELECT endorsement_name
FROM XMLTable('/NewDataSet/Table1'
       passing xmltype(p_xml_Endorsement)
       columns endorsement_name clob path 'Endorsement'
     )
;

On older versions, you can use this trick:

SELECT dbms_xmlgen.convert(
         xmlserialize(content endorsement)
       , 1
       ) as endorsement_name
FROM XMLTable('/NewDataSet/Table1'
       passing xmltype(p_xml_Endorsement)
       columns endorsement xmltype path 'Endorsement/text()'
     )
;

Tags: Database

Similar Questions

  • User-defined function problem. Help!

    I can't get the user-defined function to work in Essbase, although it seems to be just registered. Could someone help me to have a look at java codes below? Greatly appreciated!

    public class {depreciation

    public static double Adeath (double r, int period, double LoanBalance) {}

    Calculate amortization payment
    Double LBound = LoanBalance/period;
    Double UBound = LoanBalance;
    Double MBound =(LBound+UBound)/2;
    Double err = 0;
    int i = 0;

    If (r < 0 |) Period < = 0 | LoanBalance < = 0) {}
    MBound = 0;
    }

    ElseIf (period == 1) {}
    MBound = LoanBalance *(1+r) ;}

    on the other

    {}
    Double MBalance is PVCalc (r, Period, MBound);.
    ERR = MBalance-LoanBalance;
    If (err > 0) {}
    UBound = MBound ;}
    If (err < = 0) {}
    LBound = MBound ;}
    MBound =(UBound+LBound)/2;
    i ++ ;
    }
    While (err > 0.001 | err <-0,001 & & I < = 100);

    return (MBound);
    }


    Define the present value
    public static double PVCalc (double rate, NPER, double PMT int) {}
    Double pvpmt = pmt;
    Double cpvpmt = 0;

    for (int j = NPM; j > 0; j-) {}
    for (int i = 1; i < = j; i ++) {}
    pvpmt = pvpmt /(1+rate/12);
    }
    cpvpmt = cpvpmt + pvpmt;
    pvpmt = pmt;
    }
    Return cpvpmt;
    }
    }


    Is there something to do with the double data type, int, double? Essbase spend 'int '?
    Help, please! Thank you very much!!

    Published by: user9132709 on March 2, 2010 12:47

    I just tried and it works.

    I also added

    System.out.Print (MBound);

    just before the return (MBound);

    in the Java class

    I created a calc script against Sample.Basic

    Fix("Florida","100-10","Actual","Apr")

    ('Sales'
    'Sales' = @Amort (0.06, 360, 10000000);
    )

    ENDFIX

    I run essbase in the foreground, so I see the exit of System.out.print (Mbound);
    Validated the script "59955.05251799688" was written in the output window, so the Java class works.
    I also ran the calc script and the value was written in 'Sales' (the block already existed for the POV before anyone says that my script would not work)

    I registered the CDF of Java with.
    create or replace function '@AMORT' as
    "Amortization.Amort (double, int, double).

    You must ensure that you see something like the following in the application log or output in the command window.

    External function of [GLOBAL] [@AMORT] saved OK

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Use of user defined function in mathscript containing a structure

    Hi, I am a novice user of LabView MathScript module,

    I have the following problem when integrating my code MATLAB, LabView, for HMM: in my program, I tried to call a MATLAB called "mixgaussinit.m" user-defined function, it shows this error...

    "

    I just noticed that these files appear to be copyrighted. My first question is do you have author permissions to post them in a public forum? If this isn't the case, then you can remove them. That being said, I have reviewed the code and it seems easy enough to work around your problems (provided that you have the copyright permissions). How to bypass the problems is to replace the fields of the struct with variables. There is of course allows you to change some definitions of functions for input and output the necessary variables which I think was the best 5 variables. You will also need to redo the code that uses a table of error checking cell. In total, I estimated about 30 minutes of work. I would have given you work around these files had not been protected by copyright. So, unfortunately, you will need to implement the work around you.

  • User-defined function removes the expression hooks

    Trying to convert this column in a user function expression, however when I apply the function to the user hooks literally disappear.

    1 REGEXP_REPLACE (SRC_IO_PHONES_A.PHONE, ' ({: digit:{3})\.(:digit:{3})\.(:digit:{4})' 1 (\1)-\2-\3'),)

    2 REGEXP_REPLACE (SRC_IO_PHONES_A.PHONE, ' ([[: digit:]] {3})------.) () [[: digit:]] {3}). ([[: digit:]] {4})' 1 (\1)-\2-\3')


    These lines come from the same mapping. One implements the user-defined function and the second line is with I plug the code into the target Expression field.


    Any thoughts on why this is?


    Thank you

    So I thought to it thanks to a post of @oraclebase.  Another friend of mine has indicated that user in ODI functions develops a sort of pseudo-code and it is not really passing commands to the database.  Anyway, my research turned to substitute for the construction of all [: digit:].  This resulted in me find the above post where \d = [0-9].  By replacing all the scoring by \d hooks, the function worked.

  • User Defined functions in the Mapper

    I have user-defined functions that work in BPEL but I can't make them work in the Mapper. They appear when expected for jDeveloper but throw "function not found" errors

    Can someone look at my config files and see if the error comes out? Thank you bunches!

    BPEL file:

    " < soa-xpath-functions xmlns =" http://xmlns.Oracle.com/SOA/config/XPath "" "

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    version = "11.1.1.

    resourceBundle = "oracle.tip.tools.ide.common.resource.IDEMessageBundle"

    >

    < name of the function = "f17:editCaseNumber" >

    com.F17.CustomFunction.editCaseNumber < className > < / className >

    < return type = "tree" / >

    < params >

    < param name = "stringToFormat" type = "string" / >

    < param name = "order" type = "string" / >

    < / params >

    number of valid cases and formats < desc > < / desc >

    < detail >

    <! [CDATA [this is a custom function.] If you use it, you must include the

    Following namespace declaration in your BPEL file.

    < br / > < br / >

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    < br / > < br / >

    USE: f17:editCaseNumber(string,string) < br / >

    Channel 1 is the data < br / >

    Channel 2 is the command. Valid commands are: < br / >

    1 = number of control check and come back as nnnnnnnnnn < br / >

    2 = number of control check and come back as nnn-nnnnnnn < br / >

    3 = Append check digit and return under nnnnnnnnnn < br / >

    4 = Append check digit and return under nnn-nnnnnnn

    < br / > < br / >

    Returns XML document fragment: < br / >

    Import of f17userDefinedFusnctions.xsd space variable prototype. < br / >

    See documentation for more details.]] >

    < / details >

    < / feature >

    < name of the function = "f17:compressFile" >

    com.F17.CustomFunction.compressFile < className > < / className >

    < return type = "tree" / >

    < params >

    < param name = "stringToFormat" type = "string" / >

    < / params >

    < desc > compress long strings by DB storage < / desc >

    < detail >

    <! [CDATA [this is a custom function.] If you use it, you must include the

    Following namespace declaration in your BPEL file.

    < br / > < br / >

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    < br / > < br / >

    USE: f17:compresFile (string)

    < br / > < br / >

    Returns XML document fragment: < br / >

    See documentation for more details.]] >

    < / details >

    < / feature >

    < name of the function = "f17:sortList" >

    com.F17.CustomFunction.sortList < className > < / className >

    < return type = "tree" / >

    < params >

    < param name = "listIn" type = "string" / >

    < / params >

    lists of kinds of < desc > < / desc >

    < detail >

    <! [CDATA [this is a custom function.] If you use it, you must include the

    Following namespace declaration in your BPEL file.

    < br / > < br / >

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    < br / > < br / >

    USE: f17:sortList (String) < br / >

    Build the string as: & lt; list & gt; & lt; point & gt; [data] & lt; / point & gt;... & lt; / list & gt; < br / >

    Returns XML document fragment: < br / >

    Import of f17userDefinedFusnctions.xsd space variable prototype. < br / >

    See documentation for more details.]] >

    < / details >

    < / feature >

    < name of the function = "f17:replaceString" >

    com.F17.CustomFunction.replaceString < className > < / className >

    < return type = "string" / >

    < params >

    < param name = "StringToFix" type = "string" / >

    < param name = "RegX" type = "string" / >

    < param name = "replaceString" type = "string" / >

    < param name = "mode" type = "string" / >

    < / params >

    Sets < desc > replaceFirst and replaceAll functions java < / desc >

    < detail >

    <! [CDATA [this is a custom function.] If you use it, you must include the

    Following namespace declaration in your BPEL file.

    < br / > < br / >

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    < br / > < br / >

    USE: f17:replaceString(String,String,String,String) < br / >

    Chain change, regular expression, mode [optional] replace the string - 1 = all, 2 = first by default all the < br / >

    See documentation for more details.]] >

    < / details >

    < / feature >

    < / soa-xpath-functions >

    file Mapper:

    < soa-xpath-functions

    " xmlns =" http://xmlns.Oracle.com/SOA/config/XPath "" "

    ' xmlns:repl = ' http://www.Oracle.com/xsl/transform/Java/COM.F17.CustomFunction.replaceString "" "

    ' xmlns:comp = ' http://www.Oracle.com/xsl/transform/Java/COM.F17.CustomFunction.compressFile "" "

    version = "11.1.1.

    resourceBundle = "oracle.tip.tools.ide.common.resource.IDEMessageBundle"

    >

    < name of the function = ' model: compressFile ">

    com.F17.CustomFunction.compressFile < className > < / className >

    < return type = "tree" / >

    < params >

    < param name = "stringToFormat" type = "string" / >

    < / params >

    < desc > compress long strings by DB storage < / desc >

    < detail >

    <! [CDATA [this is a custom function.] If you use it, you must include the

    Following namespace declaration in your BPEL file.

    < br / > < br / >

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    < br / > < br / >

    USE: f17:compresFile (string)

    < br / > < br / >

    Returns XML document fragment: < br / >

    See documentation for more details.]] >

    < / details >

    < / feature >

    < name of the function = "repl:replaceString" >

    com.F17.CustomFunction.replaceString < className > < / className >

    < return type = "string" / >

    < params >

    < param name = "StringToFix" type = "string" / >

    < param name = "RegX" type = "string" / >

    < param name = "replaceString" type = "string" / >

    < param name = "mode" type = "string" / >

    < / params >

    Sets < desc > replaceFirst and replaceAll functions java < / desc >

    < detail >

    <! [CDATA [this is a custom function.] If you use it, you must include the

    Following namespace declaration in your BPEL file.

    < br / > < br / >

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    < br / > < br / >

    USE: f17:replaceString(String,String,String,String) < br / >

    Chain change, regular expression, mode [optional] replace the string - 1 = all, 2 = first by default all the < br / >

    See documentation for more details.]] >

    < / details >

    < / feature >

    < / soa-xpath-functions >

    None of the answers was * exactly * correct, but they gave me enough information to solve the problem.

    To implement what I have to code the functions a bit differently.

    • BPEL functions are all the IXpathFunction extension classes.
    • Mapper functions are not.
    • BPEL functions are each separate classes.
    • A single class with a method for each desired function mapper functions.
    • BPEL classes outcrop in the config file ext-bpel-xpath-functions-config. XML
    • The Mapper class is exposed in the config file ext-Mapper-xpath-functions - config.xml

    A BPEL class looks like:

    public class editCaseNumber implements IXPathFunction {
        public Object call(IXPathContext context, List args) throws XPathFunctionException {
           return docOut;
        }
    }
    

    A class to map looks like:

    public class mapperFunctions {
        public static String replaceString(String sIn,String sMat,String sRep,String mode){
            return finalString;
        }
        public static XMLDocumentFragment compressFile(String indoc){
            return docOut;
        }
    }
    

    (I deleted the code of these to avoid confusion.)


    My ext-Mapper-xpath-functions file - config.xml looks like:

    soa-xpath-functions
            xmlns="http://xmlns.oracle.com/soa/config/xpath"
            xmlns:map="http://www.oracle.com/XSL/Transform/java/com.f17.customfunction.mapperFunctions"
            version="11.1.1"
            resourceBundle="oracle.tip.tools.ide.common.resource.IDEMessageBundle"
            >
      
      com.f17.customfunction.mapperFunctions.compressFile
      
      
      
      
      Compresses large strings for DB storage
      
                    
    USE: map:compresFile(string)

    Returns XML document fragment containing HEX binary string:
    <compressedFile$gt;[outPut]</compressedFile> See documentation for details.]]>
    com.f17.customfunction.mapperFunctions.replaceString Exposes replaceFirst and replaceAll java functions
    USE: map:replaceString(String,String,String,String)
    String to edit,
    regular expression,
    replacement string mode
    1 = all
    2 = first occurance
    See documentation for details.]]>


  • Cannot crop - cannot complete request because the document that results would be too big.

    I'm having this problem, using CS6 are part of the Creative Suite subscription (which is updated).

    I have a multi-layer document I try to crop, and I get the message:

    Could not complete your request because the document that results would be too big.

    Which is ironic, because by cropping, I try to make it already smaller than he is. Any ideas? I tried saving and opening as a PSB, but get the same message there. Thank you.

    Check the crop tool options - you left a value of resolution in there, then he crop tool attempts to create a very very large document based on the size and resolution that you specified.

  • User defined function join VS - Performance...

    Hi all

    all connecting mulitple table and get values... which one is the best?
    Join or user-defined function...


    row function
    --------------------------


    Select b.SID, get_salary (empid) from emp;

    Note: get_salary function will return the salary of the pay tables.

    Using joins
    --------------


    Select b.SID, b.salary from emp, a, b of salary
    where a.empid = b.empid;


    What is the best performancewise?

    also if you give any related document also very well.

    Thanks in advance.

    Published by: NICOLAS BELOT on January 6, 2011 22:09

    Always try to avoid calling a function defined by the user from a SQL statement.
    Word: context switching.
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:60122715103602

    "Databases are born to join" - © T.Kyte

    Another must-see:
    http://www.Oracle.com/technetwork/database/features/PLSQL/overview/doing-SQL-from-PLSQL-129775.PDF

  • Help! User-defined function problem.

    Need help on using custom function defined in Essbase. Thanks in advance!

    I have not found a function of depreciation in Essbase, so thought I might create one in Java and save it as a user defined function. However, I can't get this to work.

    Here's what I did:
    1. I created a java class called depreciation.

    public class {depreciation

    public double Adeath (double r, int period, double LoanBalance) {}
    Double LBound = LoanBalance/period;
    Double UBound = LoanBalance;
    Double MBound =(LBound+UBound)/2;
    Double err = 0;
    int i = 0;

    Calculate amortization payment
    {}
    Double MBalance is PVCalc (r, Period, MBound);.
    ERR = MBalance-LoanBalance;
    If (err > 0) {}
    UBound = MBound ;}
    If (err < = 0) {}
    LBound = MBound ;}
    MBound =(UBound+LBound)/2;
    i ++ ;
    }
    While (err > 0.001 | err <-0,001 & & I < = 100);

    return (MBound);
    }


    define the present value
    public static double PVCalc (double rate, NPER, double PMT int) {}
    Double pvpmt = pmt;
    Double cpvpmt = 0;

    for (int j = NPM; j > 0; j-) {}
    for (int i = 1; i < = j; i ++) {}
    pvpmt = pvpmt /(1+rate/12);
    }
    cpvpmt = cpvpmt + pvpmt;
    pvpmt = pmt;
    }
    Return cpvpmt;
    }
    }

    2. copy the .jar to 'C:\Hyperion\AnalysticServices\java\udf '.
    3. has created a new MaxL file and run the script that runs:

    create or replace function '@Amortize' as
    'Amortization.Amort '.
    Spec "@Amortize (spleen, period, balance)"

    It shows: statement executed successfully.

    4 then I tried to test in the following statement:

    If (@isuda ("Time", "Test Date"))
    "Depreciation Payment"=@Amortize (0.06, 360, 10000000);
    endif;

    And I got an error message as below:
    Error compiling formula [amortization payment] (line 2): [)] without [()]

    Could someone help me with this issue? 1 million thanks!

    The udf.policy file is located in the hyperion\products\essbase\essbaseserver\java directory and put the security on the java interface with Essbase points if there is a dev environment you can open the file with Notepad and go to the bottom of it. You will find a line
    permission java.security.AllPermission;

    remove the / / (which comments out) and this will allow all java functions are allowed. After the change, you must restart the service Essbase

  • How to create a user-defined function?

    is there a substitute for the exe instsrv and srvany in Vista?

    I don't know what means your post, so here's how to create a user-defined function:
    1) click Start
    (2) select "Control Panel".
    (3) select "system and maintenance".
    4) click on "Administrative Tools".
    5) click on "Task Scheduler."
    (6) click on "create task" (right in the list pane under) "Actions") "
    "(7) opened in the general tab it will choose if it only works when the account that is used to implement is connected, or ' if that user is logged in or not" (leave the box ' do not store the... "empty password)
    (8) always in the general tab, check the box 'run with highest privileges '. (This will ensure that no program can block)
    (9) type a name for the task (in the general tab)
    (10) to set the job to run an awhile, use the "triggers" tab, if you want to set a task runs after xx min. temps_inactivite, choose the 'conditions' tab, then choose the desired time.
    (12) click on the 'actions' tab click on 'new '. in the program/script line, search for and select the program you want to run, and then click Open.
    13) click OK in the window "create a task".
    14) click OK again and you are done.
    I hope this helps.

  • any user defined function in the rule set by the user

    Hello

    I wonder if I can use a function defined by the user in a rule set by the user in oracle sem... I've seen examples of user defined function the used in sparql query filter clause in this guide to dev... However, I don't know if I can define a function in oracle database SEM. and use it in the body rule or the head. For example, I want to define a function of the length that allow to calculate the difference between two dates.  So, I want to set a rule as follows: event1: d1 and event1 has_start_date: has_end_date d2 and duration (24, d1, d2) then event1:date_satisfiable 'yes '. Oracle supports this type of rule? Thank you very much.

    Hong

    Salvation Hong,

    User-defined in 12 c inference can be a good choice for your condition. Please see the following document.

    Defined by the user and querying inference

    Thank you

    Zhe Wu

  • Xquery functions using predefined in user defined functions

    Hi all

    I have a requirement to call a function defined by the user in the osb xquery file. That function, I use osb predefined string functions, but they do not work it displays the error message in the file of xquery. Can you please suggest how to use user-defined functions.

    Thank you
    Srinivas.
    xquery version "1.0" encoding "Cp1252";
    
    declare namespace xf = "http://tempuri.org/TransactieService/Xquery/test/";
    
    declare function xf:test($string1 as xs:string)
        as xs:string {
            xf:buildReferenceRange($string1)
    };
    
    declare function xf:buildReferenceRange($inRange as xs:string)
         as xs:string {
         let $filtered :=
              if (contains($inRange,"^"))
              then
                   "it's in"
              else
                   "it's not in"
    
         return $filtered
    }; 
    
    declare variable $string1 as xs:string external;
    
    xf:test($string1)
    

    It works for me

  • Unexpected problem because the result would be too big...

    I've never had this message before... "an unexpected and unrecoverable problem has occurred because the result would be too big. Even do any image manipulation, I get this message. I'm under 6 items on a version of Mac OS X 10.5.8. I thought that maybe I don't have enough space on my hard drive but I still available of 50 GB. Any advice would be greatly appreciated.

    So don't worry about that one.

  • the user-defined function

    Hi, experts,
    I wrote a sql query to get the amount after calculation.

    SELECT A.FORM_NO, C.SKUCODE, B.QUANTITY * (
    CASE WHEN TO_NUMBER(TO_CHAR(A.START_DATE,'YYYY')) = 2008 AND TO_NUMBER(TO_CHAR(A.END_DATE,'YYYY')) = 2008 THEN 
    TO_NUMBER(TO_CHAR(A.END_DATE,'MM')) - TO_NUMBER(TO_CHAR(A.START_DATE,'MM'))  +1 
    WHEN TO_NUMBER(TO_CHAR(A.START_DATE,'YYYY')) = 2008 AND TO_NUMBER(TO_CHAR(A.END_DATE,'YYYY')) > 2008 THEN
    12- TO_NUMBER(TO_CHAR(A.START_DATE,'MM')) + 1
    WHEN TO_NUMBER(TO_CHAR(A.START_DATE,'YYYY')) < 2008 AND TO_NUMBER(TO_CHAR(A.END_DATE,'YYYY')) = 2008 THEN 
    TO_NUMBER(TO_CHAR(A.END_DATE,'MM'))
    WHEN TO_NUMBER(TO_CHAR(A.START_DATE,'YYYY')) < 2008 AND TO_NUMBER(TO_CHAR(A.END_DATE,'YYYY')) > 2008 THEN
    12 ELSE 0 END )/((TO_NUMBER(TO_CHAR(A.END_DATE,'YYYY')) - TO_NUMBER(TO_CHAR(A.START_DATE,'YYYY'))) *12 + TO_NUMBER(TO_CHAR(A.END_DATE,'MM')) - TO_NUMBER(TO_CHAR(A.START_DATE,'MM')) + 1 )
    
    AS QUAN
    FROM FORM_TBL A, QUANTITY_TBL B, SKU_TBL C
    WHERE A.FORMNO = B.FORMNO AND B.SKU = C.SKU;
    It runs correctly, and no error returned.


    I would change for a user-defined function.

    create or replace
    function get_quantity
            (pi_year number, pi_year_diff number, pi_form_no varchar2, pi_skucode varchar2)
            return number is
        po_quantity number;
    begin
        
        
        SELECT ( B.QUANTITY * (
        CASE WHEN TO_NUMBER(TO_CHAR(A.START_DATE,'YYYY')) = (pi_year + pi_year_diff) AND TO_NUMBER(TO_CHAR(A.END_DATE,'YYYY')) = (pi_year + pi_year_diff) THEN 
        TO_NUMBER(TO_CHAR(A.END_DATE,'MM')) - TO_NUMBER(TO_CHAR(A.START_DATE,'MM'))  +1 
        WHEN TO_NUMBER(TO_CHAR(A.START_DATE,'YYYY')) = (pi_year + pi_year_diff) AND TO_NUMBER(TO_CHAR(A.END_DATE,'YYYY')) > (pi_year + pi_year_diff) THEN
        12- TO_NUMBER(TO_CHAR(A.START_DATE,'MM')) + 1
        WHEN TO_NUMBER(TO_CHAR(A.START_DATE,'YYYY')) < (pi_year + pi_year_diff) AND TO_NUMBER(TO_CHAR(A.END_DATE,'YYYY')) = (pi_year + pi_year_diff) THEN 
        TO_NUMBER(TO_CHAR(A.END_DATE,'MM'))
        WHEN TO_NUMBER(TO_CHAR(A.START_DATE,'YYYY')) < (pi_year + pi_year_diff) AND TO_NUMBER(TO_CHAR(A.END_DATE,'YYYY')) > (pi_year + pi_year_diff) THEN
        12 ELSE 0 END )/((TO_NUMBER(TO_CHAR(A.END_DATE,'YYYY')) - TO_NUMBER(TO_CHAR(A.START_DATE,'YYYY'))) *12 + TO_NUMBER(TO_CHAR(A.END_DATE,'MM')) - TO_NUMBER(TO_CHAR(A.START_DATE,'MM')) + 1 ))
        
        into po_quantity
        FROM FORM_TBL A, QUANTITY_TBL B, SKU_TBL C
        WHERE A.FORMNO = B.FORMNO AND B.SKU = C.SKU
        and c.skucode = pi_skucode and a.form_no = pi_form_no;
    return po_quantity;
    end;
    BUT IT CANNOT BE COMPILIED.
    The error is a recursive sql error

    ORA-00604: an error has occurred at the SQL level 1 recursive

    I think that there is no syntax error.

    What is the reason?

    Thank you very much!

    What is your DB version. If you are using 11g then can be consider that

    http://www.DBA-Oracle.com/sf_ora_00604_error_occurred_and_recursive_sql_level_string.htm

  • User-Defined Functions

    Hi, I am a newbie in oracle database,

    I want to know if this is possible:

    is it possible to build a sql (in string format), then run it inside a function defined by the user (NOT stored procedure)?

    If so, are all versions of oracle database able to do this?

    and it's samples?

    and a stored procedure can be called inside a user-defined function?

    Thank you!

    Hello

    Forreging wrote:
    is it possible to build a sql (in string format), then run it inside a function defined by the user (NOT stored procedure)?

    Yes.
    Create a string that is a SQL command and then running it is called dynamic SQL .
    You can do inside of a function, or a procedure. (Attention this: all procedures and functions is often called Stored Procedures .)
    Everything you can do in a procedure, you can also do this in a function.

    If so, are all versions of oracle database able to do this?

    Yes, all versions of Oracle behave this way.

    and it's samples?

    The [PL/SQL manual | http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/dynamic.htm#sthref852] has many examples.
    There are a lot of questions on this forum about PL/SQL. Enter "Dynamic SQL" in the serach box (top right of the Thread list page) to see [examples | http://forums.oracle.com/forums/search.jspa?objID=f75&q=dynnamic+SQL].

    and a stored procedure can be called inside a user-defined function?

    Yes, it is done very often.

  • 10g - hide, the report contains the oracle user-defined function

    Hi, experts,

    of http://obiee101.blogspot.com/2008/07/obiee-cache-management.html

    Reasons why a request is not added to the Cache:



    •The-cacheable SQL element. If a SQL query contains Current_Timestamp, Current_Time, Rand, Populate, or a parameter marker, then it is not added to the cache.

    •The-cacheable table. Physical in the Oracle BI Server repository tables can be marked "cacheable". If a query refers to any non-cacheable table then the results of the query will not be added to the cache.

    •Cache hit. In general, if the query gets a cache hit on a previously cached query, then the results of the current query are not added to the cache. The exception is query that is aggregated at winding hits hits.

    Result set is too large.
    Query is canceled. This can happen by explicit cancellation of Oracle BI Presentation Services or Administration, or implicitly through timeout tool.

    •Oracle BI Server is clustered. Queries coming into family "seeding cache" spread in the whole of the cluster. Other queries continue to be stored locally. Therefore, even if a query may be cached on the Server BI Oracle 1 node, it can not be on the node Server BI Oracle 2.




    I would like to know
    If the application (report on the dashboard) calls a function defined by the user to oracle, the cache can be created and saved for this report?

    Thank you very much!

    Hello stephen,.

    If the application (report on the dashboard) calls a function defined by the user to oracle, the cache can be created and saved for this report?

    Yes, it is cached... function defined in the database is called OBIEE is cached and saved.

    More information and example can be found here http://oraclebizint.wordpress.com/2007/09/10/oracle-bi-ee-10133-support-for-native-database-functions-and-aggregates/

    Hope this helps you. Check answers to any other questions you have posted?

    By,.
    KK

Maybe you are looking for

  • HP Pavilion - 17-f156nr (ENERG: Microphone)

    Hello, I'm looking to plug my headphones into the computer but microphone does not work, I mean it works, but very very quietly, so quietly, even when I talk through Skype no one can hear me. I tried to connect several headphones, but all had the sam

  • I have a LG LCD TV with a HDMI/DVI port

    I want to buy the Apple TV to connect this TV, but not sure it will work.  Does anyone have experience with the connection of a TV LCD from LG for Apple TV?    I tried to Sony DVD Blu Ray player and he gave me an invalid format.   There is a HDMI/DVI

  • HP officejet 4200 series all-in-one

    I send this message to someone else.  Apparently, my colleague was badly yesterday, do not know what the message was, but she decided to put new ink cartridges, she put in color and in black and white.  Now the machine says "Cartridge error - see the

  • When we submit the app for the supply of playbook?

    Hello To submit an application to be reviewed for the free offer of the Playbook just submit us the application to the Blackberry App World, or is it a separate place to submit this offer? and then it should be a separate App World submission?

  • I have an Adobe Creative Suite 2 can I turn off and install on another computer

    I have an Adobe Creative Suite 2 How disable to install the new computer I have the disc and the serial number?