Problem in PL/SQL and CR

Hi , i am trying to publish a report by CR i make my report on my system and run it successfull but when i published my report or reporting server then i face the following problem
Error in File C:\Business Objects\BusinessObjects Enterprise 11\Data\procSched\CIS03.reportjobserver\~tmp1a6c60b61dde8b81.rpt: Database Connector Error
this problem is solved when i removed the IF condition from my query but with IF condition i am facing the same problem. I am not facing this problem when i have this on my hand but only after pulishing so please help me if any one can following is the procedure in which i am facing the problem
create or replace
PROCEDURE cm_discon_fld_activity (
p_rep_cursor IN OUT cisadm.cr_package.cr_rpt_type,
prm_unit IN cisadm.ci_char_val.char_val%TYPE,
prm_fa_status IN cisadm.ci_fa.fa_status_flg%TYPE,
prm_fa_type_cd IN cisadm.ci_fa.fa_type_cd%TYPE,
prm_zone IN cisadm.ci_char_val_l.descr%TYPE,
prm_date_from IN cisadm.ci_fa.cre_dttm%TYPE,
prm_date_to IN cisadm.ci_fa.cre_dttm%TYPE
AS
BEGIN
IF TRIM (prm_fa_status) = 'C' THEN
OPEN p_rep_cursor FOR
select sa.acct_id, pn.entity_name,
(SELECT char_val
FROM cisadm.ci_prem_char
WHERE prem_id = sa.char_prem_id
AND char_type_cd = 'UNIT'
AND TRIM (char_val) = NVL (prm_unit, TRIM (char_val))and rownum=1) unit,
(SELECT descr
FROM cisadm.ci_prem_char pc, cisadm.ci_char_val_l cvl
WHERE pc.char_type_cd = cvl.char_type_cd
AND pc.char_val = cvl.char_val
AND prem_id = sa.char_prem_id
AND cvl.char_type_cd = 'ZONE'
AND descr = NVL (TRIM (prm_zone), TRIM (descr))and rownum=1) zzone,
fa.cre_dttm,fa.fa_type_cd,fa.fa_status_flg,
--(select work_dttm from ci_fa_stage_up where fa_id=fa.fa_id) dt_of_work,
READ_DTTM dt_of_work ,
fa.fa_id,fa.disp_grp_cd,dgl.descr,
(select sum(cur_amt) from ci_ft where sa_id in (select sa_id from ci_sa where acct_id=sa.acct_id)) os_amt
from ci_fa fa,ci_sp sp,ci_sa sa,ci_acct_per ap,ci_per_name pn,ci_disp_grp_l dgl, ci_mr_stage_up msp, ci_sp_mtr_hist smph , ci_sp spp
where --fa.cre_dttm between '01-Jan-2009' and '02-Jan-2009'
READ_DTTM BETWEEN prm_date_from /*'01-JAN-2009'*/ AND prm_date_to
/*'02-JAN-2009'*/--between '16-Feb-2010' and '17-Feb-2010'
and TRIM (fa.fa_type_cd) = upper ( prm_fa_type_cd)--in ('G-LOCK','G-UNLOCK','SG-LOCK','SM-REMVL','M-REMVL')
AND TRIM ( fa.fa_status_flg ) = 'C'
and fa.sp_id=sp.sp_id
and sp.prem_id=sa.char_prem_id
and sa.sa_type_cd like 'U-%'
and sa.SA_STATUS_FLG = '20'
AND USE_ON_BILL_SW = 'Y'
and sa.acct_id=ap.acct_id
and ap.per_id=pn.per_id
and msp.MTR_CONFIG_ID= smph.MTR_CONFIG_ID
and smph.sp_id = spP.sp_id
AND SPP.SP_ID = SP.SP_ID
AND smph.REMOVAL_DTTM IS NULL
and pn.PRIM_NAME_SW='Y'
and fa.disp_grp_cd=dgl.disp_grp_cd;
--AND SA.ACCT_ID = '9739021000';
END IF ;
--ELSE
IF TRIM (prm_fa_status) != 'C' THEN
OPEN p_rep_cursor FOR
SELECT sa.acct_id, pn.entity_name,
(SELECT char_val
FROM cisadm.ci_prem_char
WHERE prem_id = sa.char_prem_id
AND char_type_cd = 'UNIT'
AND TRIM (char_val) = NVL (prm_unit, TRIM (char_val))and rownum=1) unit,
(SELECT descr
FROM cisadm.ci_prem_char pc, cisadm.ci_char_val_l cvl
WHERE pc.char_type_cd = cvl.char_type_cd
AND pc.char_val = cvl.char_val
AND prem_id = sa.char_prem_id
AND cvl.char_type_cd = 'ZONE'
AND descr = NVL (TRIM (prm_zone), TRIM (descr))and rownum=1) zzone,
fa.cre_dttm, fa.fa_type_cd, fa.fa_status_flg,
(SELECT work_dttm
FROM cisadm.ci_fa_stage_up
WHERE fa_id = fa.fa_id) dt_of_work, fa.fa_id, fa.disp_grp_cd,
dgl.descr, (SELECT SUM (cur_amt)
FROM cisadm.ci_ft
WHERE sa_id IN (SELECT sa_id
FROM cisadm.ci_sa
WHERE acct_id = sa.acct_id))
os_amt
FROM cisadm.ci_fa fa,
cisadm.ci_sp sp,
cisadm.ci_sa sa,
cisadm.ci_acct_per ap,
cisadm.ci_per_name pn,
cisadm.ci_disp_grp_l dgl
WHERE fa.cre_dttm BETWEEN prm_date_from /*'01-JAN-2009'*/ AND prm_date_to
/*'02-JAN-2009'*/
AND TRIM (fa.fa_type_cd) IN NVL
( upper(prm_fa_type_cd), TRIM (fa.fa_type_cd))
-- ('G-LOCK','G-UNLOCK','SG-LOCK','SM-REMVL','M-REMVL')
AND TRIM (fa.fa_status_flg) = prm_fa_status
--AND TRIM (fa.fa_status_flg) != 'C'
AND fa.sp_id = sp.sp_id
AND sp.prem_id = sa.char_prem_id
AND sa.sa_type_cd LIKE 'U-%'
and sa.SA_STATUS_FLG = '20'
--AND USE_ON_BILL_SW = 'Y'
AND sa.acct_id = ap.acct_id
AND ap.per_id = pn.per_id
AND pn.prim_name_sw = 'Y'
AND fa.disp_grp_cd = dgl.disp_grp_cd;
END IF ;
END cm_discon_fld_activity;
I am facing the same problem in every report in which i use IF condition can any one help me i am using CR XI Business Object

Perhaps this question would be better asked on a Business Object forum.
As it stands, there's not really anything programatically wrong with your PL/SQL code. The issue appears to be with CR.

Similar Messages

  • Dynamic SQL and Bulk Bind... Interesting Problem !!!

    Hi Forum !!
    I've got a very interesting problem involving Dynamic SQL and Bulk Bind. I really Hope you guys have some suggestions for me...
    Table A contains a column named TX_FORMULA. There are many strings holding expressions like '.3 * 2 + 1.5' or '(3.4 + 2) / .3', all well formed numeric formulas. I want to calculate each formula, finding the number obtained as a result of each calculation.
    I wrote something like this:
    DECLARE
    TYPE T_FormulasNum IS TABLE OF A.TX_FORMULA%TYPE
    INDEX BY BINARY_INTEGER;
    TYPE T_MontoIndicador IS TABLE OF A.MT_NUMBER%TYPE
    INDEX BY BINARY_INTEGER;
    V_FormulasNum T_FormulasNum;
    V_MontoIndicador T_MontoIndicador;
    BEGIN
    SELECT DISTINCT CD_INDICADOR,
    TX_FORMULA_NUMERICA
    BULK COLLECT INTO V_CodIndicador, V_FormulasNum
    FROM A;
    FORALL i IN V_FormulasNum.FIRST..V_FormulasNum.LAST
    EXECUTE IMMEDIATE
    'BEGIN
    :1 := TO_NUMBER(:2);
    END;'
    USING V_FormulasNum(i) RETURNING INTO V_MontoIndicador;
    END;
    But I'm getting the following messages:
    ORA-06550: line 22, column 43:
    PLS-00597: expression 'V_MONTOINDICADOR' in the INTO list is of wrong type
    ORA-06550: line 18, column 5:
    PL/SQL: Statement ignored
    ORA-06550: line 18, column 5:
    PLS-00435: DML statement without BULK In-BIND cannot be used inside FORALL
    Any Idea to solve this problem ?
    Thanks in Advance !!

    Hallo,
    many many errors...
    1. You can use FORALL only in DML operators, in your case you must use simple FOR LOOP.
    2. You can use bind variables only in DML- Statements. In other statements you have to use literals (hard parsing).
    3. RETURNING INTO - Clause in appropriate , use instead of OUT variable.
    4. Remark: FOR I IN FIRST..LAST is not fully correct: if you haven't results, you get EXCEPTION NO_DATA_FOUND. Use Instead of 1..tab.count
    This code works.
    DECLARE
    TYPE T_FormulasNum IS TABLE OF VARCHAR2(255)
    INDEX BY BINARY_INTEGER;
    TYPE T_MontoIndicador IS TABLE OF NUMBER
    INDEX BY BINARY_INTEGER;
    V_FormulasNum T_FormulasNum;
    V_MontoIndicador T_MontoIndicador;
    BEGIN
    SELECT DISTINCT CD_INDICATOR,
    TX_FORMULA_NUMERICA
    BULK COLLECT INTO V_MontoIndicador, V_FormulasNum
    FROM A;
    FOR i IN 1..V_FormulasNum.count
    LOOP
    EXECUTE IMMEDIATE
    'BEGIN
    :v_motto := TO_NUMBER('||v_formulasnum(i)||');
    END;'
    USING OUT V_MontoIndicador(i);
    dbms_output.put_line(v_montoindicador(i));
    END LOOP;
    END;You have to read more about bulk- binding and dynamic sql.
    HTH
    Regards
    Dmytro
    Test table
    a
    (cd_indicator number,
    tx_formula_numerica VARCHAR2(255))
    CD_INDICATOR TX_FORMULA_NUMERICA
    2 (5+5)*2
    1 2*3*4
    Message was edited by:
    Dmytro Dekhtyaryuk

  • PL/SQL and Java implementation

    Hi all,
    We need to implement a fast solution for reporting to our existing web application. Application is totally based on stored procedures written in PL/SQL.
    We have already java classes for drawing different types of charts
    named Chartdirector (http://www.advsofteng.com/)
    This library can create chart images in memory.
    I have already read about calling java classes from PL/SQL and SQLJ too.
    My questions are;
    1. Is this safe to include classes to database and create
    reports by using loadjava in real life. I mean not in theory, in real life?
    2. Is there any experiments of the audience about this method?
    3. Would it be any performance problems about this?
    4. Should i prefer to use any Java container and jsps instead of this method?
    I will continue to research for necessary steps after i could see the light :)
    Thank you to all,
    Regards,
    Gokhan

    > 1. Is this safe to include classes to database and create
    reports by using loadjava in real life. I mean not in theory, in real life?
    Yes.
    > 2. Is there any experiments of the audience about this method?
    Experiments and actual implementation - yes. It works. Granted, it does not always work as easy as running the Java code from the command line. But it does work.
    > 3. Would it be any performance problems about this?
    This is a potential problem with any software code.
    4. Should i prefer to use any Java container and jsps instead of this method?
    To be honest, I prefer not using Java for web graphics as I'm not impressed with the quality and flexibility of the graphs generated. I prefer using (and paying for commercial use) for the JPGraph classes for PHP - and using that from PL/SQL (via Zend Core for Oracle).
    Another option is to use SVG and generated SVG directly from PL/SQL. But this requires a browser plugin and SVG also does not look that great. (this is btw what Oracle's HTMLDB does and uses)

  • Dynamic SQL and PL/SQL Gateway

    This question is kind of out of curiosity...I had created a procedure that used some dynamic sql (execute immediate), and was trying to use it on pl/sql gateway. I kept getting page not found errors until I removed the execute immediate statement, and reverted to using static sql statements.
    I am just curious, is dynamic sql not supported at all with pl/sql gateway?
    Thanks
    Kevin

    > Relax damorgan, no need to be condescending. Of course I read the docs ..
    Well, you're one of the few that actually read the docs.. And one of many that lacked to state any real technical details for forum members to understand the actual problem, the actual error, and what the environment is that this is happening in.
    Remember that you came to this forum for forum members to help you. In order for us to do that, you need to help us understand
    - your problem
    - your environment
    - what you have tried
    What PL/SQL Gateway do you refer to? Thus is an old term for an old product - today in Oracle there are two "gateways" into the PL/SQL engine via HTTP. Via Apache/mod_plsql and via the internal Java servlet web engine called EPG inside Oracle.
    As for what the "Gateway" access to the PL/SQL engine via HTTP.. whether it supports EXECUTE IMMEDIATE or not is like asking if a car "supports" soft drinks or not (just because a human that may consume soft drinks acts as the driver of the car). Not sensible or relevant at all.
    mod_plsql creates an Oracle session to the database instance, and executes a PL/SQL procedure in the database. This is no different from any other client connection to Oracle. Oracle has no clue that the client is mod_plsql and not TOAD or Java or VB or PHP or Perl or whatever else.
    So how can this support or not support the EXECUTE IMMEDIATE command? Does PL/SQL support EXECUTE IMMEDIATE? Well duh...
    Why do you get a generic 404? Because the PL/SQL call made by mod_plsql failed with an unhandled exception. mod_plsql gets that exception and now what? Was a valid HTP buffer created for it to stream to the web browser? If the buffer perhaps partially completed? All that mod_plsql knows is that it asked for a HTP buffer via that PL/SQL call and it got an exception in return.
    A 404 HTTP error is the only reasonable and logical response for it to pass to the web browser in this case.
    PS. to see why mod_plsql fail, refer to the access_log and error_log of that Apache httpd server

  • Dynamic SQL and Data with Single Quotes in it.

    Hi There,
    I have a problem in that I am using dynamic SQL and it happens that one of the columns does contain single quotes (') in it as part of the data. This causes the resultant dynamic SQL to get confused as the single quote that is part of the data is taken to mean end of sting, when in fact its part of the data. This leaves out a dangling single quote that was meant to enclose the string. Here is my dynamic SQL and the result of the parsed SQL that I have captured:
    ****Dynamic SQL*****
    l_sql:='select NOTE_TEMPLATE_ID '||
    'FROM TMP_NOTE_TEMPLATE_VALUES '||
    'where TRIM(LEGACY_NOTE_CODE)='''||trim(fp_note_code)||''' '||
    'and TRIM(DISPLAY_VALUE)='''||trim(fp_note_text)||''' ';
    execute immediate l_sql INTO l_note_template_id;
    Because the column DISPLAY_VALUE contains data with single quotes, the resultant SQL is:
    ******PARSED SQL************
    select NOTE_TEMPLATE_ID
    FROM TMP_NOTE_TEMPLATE_VALUES
    where TRIM(LEGACY_NOTE_CODE)='INQ' and TRIM(DISPLAY_VALUE)='Cont'd'
    And the problem lies with the single quote between teh characters t and d in the data field for DISPLAY_ITEM. How can I handle this?
    Many thanks,

    I have been reliably informed that if one doesn't enclose char/varchar2 data items in quotes, the right indices may not be usedI am into oracle for past 4 years and for the first time i am hearing this.
    Your reliable source is just wrong. Bind variables are variables that store your value and which are used in SQL. They are the proper way to use values in your SQL. By default all variables in PL/SQL is bind variable.
    When you can do some thing in just straight SQL just do it. Dynamic SQL does not make any sense to me here.
    Thanks,
    Karthick.

  • Problem in starting SQL*PLUS in oracle database 10g

    Hi
    Well I am facing one problem while starting SQL*PLUS in oracle database 10g
    ERROR - "Procedure entry point longjmp could not be located in dynamic link library orauts.dll"
    This has happened when I installed Oracle Database 11g on same machine and when I deinstalled Oracle 11g then SQL*PLUS is started...no error came
    Can anybody tell me the reason please...

    hi
    pls im having the same problem but in my own case i installed oracle apex using 11g.
    im env variable is:
    C:\Oracle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin;C:\app\Xty\product\11.2.0\dbhome_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\
    pls which is my apex_home so i can interchange it?
    i also have oracle 10g client installed

  • How to execute PL/SQL and branch in APEX 3.0

    I have written an APEX app with the following pages:
    1 - Main page with a "start" button that navigates to page 2
    2 - Page with a Branch "Branch to function returning a page", which has PL/SQL that returns '3' if successful or '4' if there is an error
    3 - Page with HTML to display "Success"
    4 - Page with HTML to display "Error"
    I wrote this as a very simple test to verify how to implement a button to execute a block of PL/SQL and then go to a results page. So, there is almost nothing to it right now - just the four pages described and a small PL/SQL block that actually will always fail because it SELECTs from a table that does not yet exist. The problem is that when I click the button it goes to page 2 properly (the page displays) but I can't tell if the PL/SQL is executed and it does not leave that page. What am I doing wrong? Any help would REALLY be appreciated!

    That's somewhat more complicated. If you create a Page Process (your 'long running process') that fires On Load - After Footer you won't see anything until it's finished.
    So you need an AJAX function to kick off an Application Process and call this AJAX function in the OnLoad of the BODY... And yes, you can show a progress bar or something similar then by checking if your AJAX function is finished yet.
    If you want to go that way you can search this forum on "AJAX ONLOAD" or something similar (or start a new thread).
    Cheers
    Roel

  • Differences between ANSI SQL and Oracle 8/9

    Hallo,
    i'm looking for good online texts or books concerning the problem "Differences between ANSI SQL and different database implementations (ORACLE, Informix, MySQL...)" I want to check a program written in C (with ESQL) that works with an Informix-DB. In this code i want to find code that is specific to the Informix-DB. I want to change the database, so all the code should be independent from a DB. Does anybody know texts or books concerning this problem?
    thx
    Marco Seum

    Basically there is syntax difference between both of them.
    Lets say i want to join two table EMP and DEPT based on DEPTNO.
    With Oracle SQL format its like this.
    select e.*
      from emp e, dept d
    where e.deptno = d.deptnoHere the joining condition goes in the WHERE clause.
    With ANSI SQL format its like this.
    select e.*
      from emp e
      join dept d
        on e.deptno = d.deptnoHere the join condition is mentioned separately and not in WHERE clause.
    Oracle supports ANSI SQL starting from 9i version.
    You can read more about the syntax difference Here

  • Oracle 8i Gateway Service problem for MS SQL Server 7.0

    I am installing Oracle Gateway services of oracle 8.1.7 with MS SQL Server 7.0 and want to create gateway service to access SQL Server. At some point Oracle document says :
    AT the MS-DOS prompt, enter:
    SET GTW_EXE = TGMSQL80.EXETo create a new gateway service name, enter:
    GTWSRV80 sid -CREATEI have complete Oracle 8.1.7 Release 3 pack but could not find the GTWSRV80 executable, I also do not have TGMSQL80.EXE. From where I can have these executables.
    Would some one provide solution for this problem please.
    Thanks and regards,
    Ghulam

    I am installing Oracle Gateway services of oracle 8.1.7 with MS SQL Server 7.0 and want to create gateway service to access SQL Server. At some point Oracle document says :
    AT the MS-DOS prompt, enter:
    SET GTW_EXE = TGMSQL80.EXETo create a new gateway service name, enter:
    GTWSRV80 sid -CREATEI have complete Oracle 8.1.7 Release 3 pack but could not find the GTWSRV80 executable, I also do not have TGMSQL80.EXE. From where I can have these executables.
    Would some one provide solution for this problem please.
    Thanks and regards,
    Ghulam

  • SQL and Multiple Values Parameters

    Hi,
    I've pretty much exhausted my search (google and in this forum) with finding a solution to my problem... So now I'm hoping that any of you will be able to help me out.
    I am writing an Oracle SQL query to get the data for a Crystal Report (Product Ver. 11.5.8.826).
    What I am trying to do is to allow a parameter to be entered by the user based on three possibilities:
    1. user enters a single value (eg. '66200')
    2. user enters multiple values (eg. '66200, 66201')
    or
    3. user leaves the parameter alone (eg. '' )
    The query works up to when I try do the following...
    Select
    From
    Where
    and ({?param_id} IS NULL OR table1.ID IN ({?param_id}))
    {?param_id} settings:
    'List of Values' = Static
    'Allow multiple values' = False
    'Value Type' = String
    with no Default Value
    table1.ID is of type Integer
    Using the above query, it works when I enter a single value such as '66200', but I get the following error when I leave the param_id blank:
    "Failed to retrieve data from the database.
    Details: HY000:(Oracle)(ODBC)(Ora)ORA-00936: missing expression
    (Database Vendor Code: 936 )"
    When I try to enter the value '66200, 66201' (yes, I know I have Allow multiple values set to False, and I do want the user to be able to enter more than one ID by using comma as a separator), I get the following error:
    "Failed to retrieve data from the database.
    Details: HY000:(Oracle)(ODBC)(Ora) ORA-00920: invalid relational operator
    (Database Vendor Code: 920 )"
    But when I have the following query:
    Select
    From
    Where
    and (table1.ID IN ({?param_id}))
    and enter the value '66200' it works, or if I enter the value '66200, 66201' this works too ('66200, 66201' will return the correct data result).
    However, if I leave the param_id to be blank, I get the error:
    "Failed to retrieve data from the database.
    Details: HY000:(Oracle)(ODBC)(Ora)ORA-00936: missing expression
    (Database Vendor Code: 936 )"
    What I want to try and do is to allow the user to leave the param_id empty and have the SQL query return all ID values by checking if that param_id is empty.
    I understand that I can just add a Value to the param_id to have "ALL" and just let the user select it, but the problem with that is then I will need to have the SQL Query potentially return thousands of data before I can even do the Record Selection - obviously not good on report performance and all.  I do have four (4) other parameters that I am using for the report, with two of them being required Date parameters:
    {?param_startdate}
    {?param_enddate}
    {?param_title}
    {?param_refnum}
    These four parameters are also in the SQL query, and returns with no problem at all:
    WHERE
    and ( {?param_startdate} IS NULL OR {?param_startdate}='' OR table.startdate >= {?param_startdate} )
    and ( {?param_enddate} IS NULL OR {?param_enddate}='' OR table.enddate <= {?param_enddate} +1)
    and ( '{?param_refnum}' IS NULL OR table.refnum= TO_NUMBER('{?param_refnum}') )
    and ( '{?param_title}' IS NULL OR UPPER(table.title) = UPPER('{?param_title}) )
    So, my question is:
    Is there a way to have the param_id be left blank thus allowing the SQL query to return all the ids?
    Any help would be much appreciated... thanks in advance.
    Edited by: Suolon Hu on Oct 16, 2008 6:13 PM
    Edited by: Suolon Hu on Oct 16, 2008 7:28 PM

    Hi Mohamed,
    Thanks again!  This does the job, but I find that it runs much slower than if I were to have it in the SQL query instead.  I guess there isn't a way to have a check condition in the SQL query instead of having it in the Record Selection?
    I was trying the CASE WHEN in the WHERE clause of the SQL query, but not being a SQL expert, I wasn't successful with this method - I was able to get it to work with one entry, but not multiple values '66200, 66201' or blank (all values))
    WHERE
    and table.ID IN
    (CASE
    WHEN {?param_ID} IS NULL THEN table.ID
    ELSE {?param_ID}
    END)

  • Problems with PL/SQL packages

    Hello,
    I face the following problem with PL/SQL stored procedures. The Oracle
    version is 8.0.5 on Windows NT 4. The PL/SQL package has a set of procedures and functions.
    The main procedure of the PL/SQL package is triggered from VC++ executable. If for some reason,
    an exception is caught in the stored procedure (like no_data_found
    exception), then the following problem occurs.
    If we try to trigger the stored procedure again through the VC++ executable,
    the variables in the stored procedures have the values as in the previous
    execution. They are not getting initialised. (The same database connection
    is used in VC++ executable).
    Currently, only if a new connection to the database is used , the problem is
    solved.
    Also, change in the input parameters of the procedure is not reflected, once the procedure fails because of any exception. Only the input which was given during the time of execution when the procedure failed,is considered.
    What could be the reason for this problem and how can this be corrected?
    Please send in your suggestions.
    Thanks and Regards,
    Ramya Priya
    null

    Hi Keith,
    I am connecting to the database as the package owner..
    I have noticed earlier that I have problems when capturing triggers also.. The content of one large trigger contains 36371 characters and when capturing it from DB, the content was truncated to 28020 characters in Designer.
    Our ideas with capturing the DB packages/procedures were to use the Designer as version control system.
    We wanted to have all objects used in a project in Designer.. entities, tables, triggers, packages, procedures, Forms files, etc. in order to make a configuration for a project release.
    Thank you,
    Claudia

  • How to avoid performance problems in PL/SQL?

    How to avoid performance problems in PL/SQL?
    As per my knowledge, below some points to avoid performance proble in PL/SQL.
    Is there other point to avoid performance problems?
    1. Use FORALL instead of FOR, and use BULK COLLECT to avoid looping many times.
    2. EXECUTE IMMEDIATE is faster than DBMS_SQL
    3. Use NOCOPY for OUT and IN OUT if the original value need not be retained. Overhead of keeping a copy of OUT is avoided.

    Susil Kumar Nagarajan wrote:
    1. Group no of functions or procedures into a PACKAGEPutting related functions and procedures into packages is useful from a code organization standpoint. It has nothing whatsoever to do with performance.
    2. Good to use collections in place of cursors that do DML operations on large set of recordsBut using SQL is more efficient than using PL/SQL with bulk collects.
    4. Optimize SQL statements if they need to
    -> Avoid using IN, NOT IN conditions or those cause full table scans in queriesThat is not true.
    -> See to queries they use Indexes properly , sometimes Leading index column is missed out that cause performance overheadAssuming "properly" implies that it is entirely possible that a table scan is more efficient than using an index.
    5. use Oracle HINTS if query can't be further tuned and hints can considerably help youHints should be used only as a last resort. It is almost certainly the case that if you can use a hint that forces a particular plan to improve performance that there is some problem in the underlying statistics that should be fixed in order to resolve issues with many queries rather than just the one you're looking at.
    Justin

  • Problem Getting Error Code and Description in Alerts

    We are having trouble getting the Error code and Error description in the Alerts and we're having trouble getting a alert for message mapping exceptions.  I have read through the BLOGs and the help on SAP.  I'm not sure it is something to do with the configuration or SP14.  We did not have these problems with SP12 at our other customer XI implementations.
    Background -
    We have setup an "XI Alert" classification with three Alert categories -"XI_Mapping_Error", "XI_Adapter_Error", "XI_Runtime_Error". 
    For the "XI_Mapping_Error" alert category, we have setup a rule so that any Integration Engine Application Mapping.* Error code will create an alert.  However, when we have a mapping error in XI which we can see in MONI, we do not get an alert.  The checkbox for "Suppress Multiple Alerts of this Rule" is not selected.  I am not sure why we're not getting the alert.
    For the "XI_Adapter_Error" alert category, we have setup a rule so that any Adapter Engine * adapter type will create an alert.  The alert gets created - however, some of the container variables do not get poulated in the email.  We have defined Container variables pointing to the corresponding ABAP data dictionary elements - i have double checked these definitions.
    Here is an alert email - the Error Code (SXMS_ERROR_CODE -  SXMSERRTX) and Error Category (SXMS_ERROR_CAT - SXMSERRCAT) are not being extracted:
    Alert ID: ##23896##
    Error Code =
    Error Category =
    Message ID = 1506eab0-6125-11da-9ba2-00505685 Time = 14:26:12 Date = 29.11.2005
    Sender Party =
    Sender Service = BS_CPI
    Sender Interface = MI_CPI_INV_RFC_REQ_ABS
    Receiver Party =
    Receiver Service = BS_CPI
    Receiver Interface =
    We are not able to figure out why the Alert framework is not working correctly.  We are running XI 3.0 SP 14 on Win2K, SQL 2000.
    Anyone encounter these problems?  Any help would be appreciated.
    Regards,
    Jay Malla

    >> There are some problems with SP 14 and the alert framework.
    Very true! Join the team!
    >> We applied Note 876546 which triggered certain alerts that were not getting triggered. However, we're not getting the Error code and Error Description in some of the alerts.
    Jay, This note is specifically for a situation where the 'where did the error occur' set to No Restriction. I don't think anything else is included in this fix .01 to patch 0.9 of SPS 12 of XI 3.0!!!
    My problem is that even the messageID variable is not getting replaced!!! In SP12 everything was perfect. After SP14, the errors are coming almost instantaneously to the inbox, but without any variable replacement.
    Best of luck,
    Kannan

  • Can't find oe_main.sql and HR_main.sql

    I have download and installed latest oracle database successfully (version 11g). When I followed instruction to install sample schema, I couldn't find hr.main.sql and oe_main.sql.
    I only found hr_code.sql in demo/schema/human_resources directory.
    There are a few sql files under order_entry directory like oe_views.sql. But I can't find oe_main.sql.
    I have been struggle with it for a few days. I couldn't find the script file on Internet either. Please help me identify this problem. Thank you very much.

    It's been some time ago but I encounter terrible problems with companion cd now. I have downloaded the zip file with examples already couple times and always there are crc errors in the archive that corrupt the instalation. I hate it... but I need the examples...
    What should I do?
    Download Companion CD from Oracle 10g. This is gonna take another 2 hours with my connection, but let me see...
    Edited by: prdola on Jul 4, 2009 7:26 AM

  • Integration of PL/SQL and JSP (Java Server Pages)

    I need to match a web application developed with PL/SQL with another developed in JSP (Java Server Pages) the problem is that the two apps interact with the same databese, an share de same users, I need to know how to get the user and password loged into pl/sql when the user want to use same of de .jsp pages running on another application server?

    Hi Michael Vstling,
    Did you try the java classes library (SDOAPI) that can be downloaded from OTN?
    It may provide you with a better alternative when manipulating geometries in the Java space. There is an adapter in SDOAPI which can convert a JDBC STRUCT object into Java Geometry object defined in SDOAPI, and vice versa.
    There are at least two ways in mixing PL/SQL and Java. The first one, as you mentioned, is to define your custom function in terms of PL/SQL and call it from within your Java program. With SDOAPI, you have the second option, which is to define your own functions in Java using SDOAPI and deploy them as Java stored procedures in db. You can then call them from within your PL/SQL code. In either way performance depends on a lot of things and generally it requires a "try and improve" approach.
    About JPublisher and sdo_ordinate_array it may not be a spatial related problem. Did you try search the Java-related forums first?
    LJ

Maybe you are looking for

  • Using a second external HD along with Time Capsule

    I've been using an external HD as a floating hardrive on my network for quite some time now (a little less than a year).  It's been working fine until just recently when I updated the Time Capsule's firmware.  Now the external is not available via Fi

  • Symbolic link error when exporting during heterogeneous system copy

    My enviroment is ECC6.0/Oracle 10.2.0.2/SUN Solaris 10 . I'm performing  heterogeneous system copy to Oracle 10.2.0.2/AIX 6.1 enviroment. I've succesfully exported & imported two systems ie DEV & Solutin Manager , but PRD system has an OS problem wit

  • Standby Logical DB ORA-00600: internal error code, arguments: [ksmovrflow],

    hi please help me how fix this problem? I have primary oracle database version 9.2.0.1.0 I had configured standby Logical database on separate computer & everything was going good but today I noticed the archived log havent applied & I have ORA-16111

  • Oracle.toplink.exceptions.ConcurrencyException

    Hi, We encountered a ConcurrencyException while running our batch process. - The have our minNumReadPoolsize = 5 - The have our maxNumReadPoolsize = 20 - read Pool is exclusive and we run our batch with 4 threads. Here is the stack trace. Any ideas?

  • Wifi and bluetooth turned gray and not working

    while staying in a hotel my ipod stopped connecting to wifi and would not let me do anything til i synced.when i got home i had to restore but now my wifi and bluetooth have turned gray and are unresponsive.i have restored several times even as a new