ORA-06503 ERROR IN ORACLE REPORT.

[Error message is fucntion without a value, the solution is er-write function to return a value. I know this much about the error, but i want someone look at my function and tell me what's the problem with it. The error not going anywhere.]
(here is my function which i defined in column level)
(function CF_1Formula return date is)
(VAR_DATE DATE;)
(ORD_DATE DATE;)
(begin)
( select max(mit_date)
into var_date
from mit_d
where mit_d.uic_well_seq = :seq1;
SELECT MAX(mit_orders.ORDER_DATE)
INTO ORD_DATE
FROM mit_ORDERS, WELL_ORDERS
WHERE mit_ORDERS.SEQ = WELL_ORDERS.UIC_ORDER_SEQ
AND WELL_ORDERS.UIC_WELL_SEQ = :SEQ1;
IF VAR_DATE >= ORD_DATE THEN
return(var_date);
END IF;
end;)
appreciate any help.

Hi,
Your function doesnt return a value.
Functions always need to return a value.
You can use an exception handler or code an alternative in case your if doesn't apply:
IF VAR_DATE >= ORD_DATE THEN
   return(var_date);
ELSE
   return(an_alternative_date); -- or raise an error, follow your requirements in this
END IF;Also realize that you SELECT INTO, maybe you need also to catch NO_DATA_FOUND and/or TOO_MANY_ROWS exceptions there, and provide alternative values for your variables.
Edited by: hoek on Apr 1, 2009 5:37 PM

Similar Messages

  • ORA-29701과 ORA-29702 ERROR의 원인과 조치방법(OGMS관련 ORACLE ERROR)

    제품 : ORACLE SERVER
    작성날짜 : 2004-08-13
    SCOPE
    Standard Edition 에서는 Real Application Clusters 기능이 10g(10.1.0) 이상 부터 지원이 됩니다.
    ORA-29701과 ORA-29702 ERROR의 원인과 조치 방법(OGMS 관련 Oracle ERROR)
    ======================================================================
    Explanation
    ORA-29701과 ORA-29702는 OGMS(Oracle Group Membership Services)에 문제가
    발생했을 때 Oracle에서 로그를 남기는 에러이다.
    1. OGMS란?
    OPS 운영 환경에서 노드 간의 통신을 위해 IDLM(Integrated Distributed Lock Manager)과
    다른 오라클 컴포넌트들은 OS의 Cluster Manager와 통신을 해야 한다.
    이 때에 인터페이스를 제공하여 주는 것이 바로 OGMS이다.
    GMS는 일련의 Application Programming Interface (API)들로 구성되어 있으며,
    OPS 컴포넌트들은 이 API들을 통해 Cluster Manager와 통신을 하게 된다.
    GMS는 클러스터의 운영 상태를 모니터하고, 클러스터와의 instance connection을
    관장하며, 메시지를 전달하는 역할을 담당한다.
    platform에 따라 GMS는 ogmsctl 프로그램을 사용해서 따로 기동을 시켜 주어야만
    하거나, opsctl 프로그램을 사용할 때 자동적으로 기동된다.
    2. Error 분석
    1) ORA-29701
    a. 오라클에서 GMS에 접속할 수 없을 경우 발생한다.
    이것은 Oracle이 startup 될 때, GMS가 실행되지 않고 있을 때 발생한다. 이와
    같은 경우에는 'ogmsctl status' 명령을 상용하여 GMS가 startup되었는지 확인
    하여야 한다.
    b. lmon( GMS client )이 communication file의 위치를 찾지 못할 경우 발생한다.
    기본적으로 사용하는 디렉토리인 /tmp/.ogms를 사용하지 않을 경우 GMS home이
    지정되어야 한다. OGMS home directory를 별도로 지정하여 사용할 경우에는
    init.ora 파라미터 파일에서 ogms_home 파라미터 값을 지정해 주어야 한다.
    c. 기타 발생 원인은 GMS에 틀린 internal function(skgxn)이 사용되거나
    GMS가 local request에 대한 서비스를 할 수 없거나 CM subsystem에 문제가 있을
    경우 등등이 있다.
    2) ORA-29702
    GMS 서비스에 예상치 못한 에러가 발생했을 경우 로그에 남게 된다. GMS가 실행
    중인지를 확인해 보고, 내부 에러로 인해 GMS가 스스로 shutdown 되었다면
    daemon file에 기록된 트레이스 정보를 살펴보아야 한다.
    Reference Documents
    none

  • ORA-06503 error

    Hi everyone,
    I am converting old 6i forms to 9iDev, Win2000. I am getting error FRM-40735:WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA-06503. How i can intercept the text of the error? ERROR_CODE, ERROR_TEXT built-ins do not show anything in message line, actually i am not able to see even message line. Are there other way to see text of ORA errors
    Thanku

    download a copy of Oracle9i Error Messages from OTN.
    ORA-06503 error is
    Function returned without value.

  • Win2000Server/WebDB2.2/Report6i/error installing Oracle Reports Secutiy

    I have installed Forms6i and Reports6i with WebDB. Everything seems to be configured fine. The test Web form and test Web report both work.
    When I try to install Oracle Reports Secutiy, the script fails at the very beginning. I created a user called WEBDB and gave it DBA privs. When I try to run this (rwwwvins.sql) using the WEBDB user, I get this error.
    ERROR at line 1:
    ORA-06550: line 1, column 20:
    PLS-00201: identifier 'WWV_STANDARD_UTIL.GET_VERSION' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    It doesn't know what wwv_standard_util is because WEBDB is a new account. So which .sql or .plb creates wwv_standard_util? Why doesn't it get created before this call? I did a search in the \server\security directory, and there was nothing that creates this. I also checked the whole dev6i directory.
    Also, what .sql or .plb file create the wwv_sys_module_groups table?
    Thanks.

    Luis_vkacito wrote:
    Hi friends,
    I have a problem when trying to install the Oracle Database 11g R2 v.11.2.0.1.0, the installation wizard reports the following error messages:
    - (PRVF-4354) Hard Limit: maximum open file descriptors: (Expected Value: 65536), Actual Value: 4096
    - (PRVF-4132), Multiple users "root, user1" with UID "0"
    As I can solve these problems inastalar Oracle Database 11g R2.
    Also present prior to these errors the following message [INS-32 055], a recommendation at this warning.
    Thanks for the supportWhen all else fails Read The Fine Manual
    http://www.oracle.com/pls/db112/portal.portal_db?selected=11&frame=
    Installation Guide

  • Error deploying oracle report JSPs in Jdeveloper.

    Hi,
    I am trying to deploy and run a report created using oracle Report tool(comes with oracle 10g developer suite). I did the below steps.
    1. I created a web layout report in oracle reports tool.
    2. Open Jdeveloper (which comes in developer suite).
    3. Create a new project in Jdeveloper. selected to create new "report component" from new. Copied my oracle report to this jsp page.(Report run time was automatically added to the libraries of the project created)
    4. Run using embedded oc4j and report was successfully run.
    5. Created a deployment profile for WAR. Created a war successfully. Then created an EAR.
    6. Right click deployment profile and configured standalone oc4j connected(connection1). Tested the connection. The test connection was success.
    7. Then right clicked the deployement profile and clicked deploy to connection1.
    8. The EAR file was deployed but in the standalone OC4J, it is showing few errors.
    07/05/02 17:04:47 Error: oracle.reports.jsp.ReportTagExtraInfo
    07/05/02 17:04:47 Errors parsing jar:file:/D:/OC4J/j2ee/home/applications/webapp1/webapp1/WEB-INF/lib/reports_tld.jar!/META-INF/taglib.tld
    07/05/02 17:06:11 Error: oracle.reports.jsp.ReportTagExtraInfo
    07/05/02 17:06:11 Error: loading Tld's into cachedConfigTable: null
    Can anyone tell me how to correct this error?
    -regards,
    K
    6.

    I can successfully deploy the EAR after including the Report Runtime in the dependencies of the deployment profile in Jdeveloper. But I am getting the below error.
    Reports Error Page
    Wed May 02 18:35:53 GMT+05:30 2007
    java.lang.NullPointerException
    java.lang.NullPointerException
         at oracle.reports.rwclient.RWClient.getTrace(RWClient.java:1321)
         at oracle.reports.jsp.JspTagUtil.getRWClient(JspTagUtil.java:59)
         at oracle.reports.jsp.RwTag.setPageContext(RwTag.java:54)
         at oracle.reports.jsp.ReportTag.setPageContext(ReportTag.java:101)
         at oracle.jsp.runtime.OracleJspRuntime.getTagHandler(OracleJspRuntime.java:1298)
         at MyReport.jspService(_MyReport.java:46)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Any help?
    -K

  • ORA-00600 error in Oracle 10.1.0.5 database

    Hi All,
    Please help me to get rid of the below mentioned issue.
    I am supporting a Oracle 10.1.0.5 prod database. we are getting a below ora-600 error message
    ORA-00600: internal error code, arguments: [qerpxSlaveFetch1], [0], [], [], [], [], [], []
    I have searched in metalink and there it is stated as bug with the product.
    They adviced us to apply the Patch 3897688 or disable parallelism or Upgrade to the fixed release, 10gR2.
    The patch 3897688 is not for window platform. Upgrade to 10gR2 is not possible in near future.
    So please help me how to disable parallelism in 10g database.

    ok fine satish will ask our development team to try your suggestion.
    Can you please tell me whether the following init parameters we can use to disable parallelism?
    PARALLEL_AUTOMATIC_TUNING = FALSE
    PARALLEL_SERVER=FALSE (this alone will disable Parallel Execution)
    PARALLEL_MIN_SERVERS=0 (this is additional restriction)
    PARALLEL_MAX_SERVERS=0 (this is additional restriction)
    Regards,
    Aruna

  • Time out error in oracle reports--very urgent

    Hi
    I have this oracle report on 9i which calls 14 other reports and runs them
    via a wrapper report which I run from a URL
    However I get this engine null crashed error or else Engine rwEng-0 is destroyed due to timeout error.
    From what I understand there is a timeout issue happening bcoz reports is taking a long time to run.Hence I increased the value of engineResponseTimeOut but it does not help either.Would you have any other idea to resolve this issue?
    Could someone plz tell me urgently how can this be resolved.This is on Oracle 9i.
    Thanks

    Hi Ravi kanth,
    You are using select * statement which is very time consuming and low performance. Dont use select * instead use select field1 field2.... into table itab  where field1 = s_field.  Use corresponding field names in the select statement.
    Follow the below rules.
    1) Dont use nested select statements
    2) If possible use for all entries in addition
    3) In the where addition make sure you give all the primary key
    4) Use Index for the selection criteria.
    5) You can also use inner joins
    6) You can try to put the data from the first select statement into an Itab and then in order to select the data from the second table use for all entries in.
    7) Use the runtime analysis SE30 and SQL Trace (ST05) to identify the performance and also to identify where the load is heavy, so that you can change the code accordingly
    <b>reward if useful</b>.
    Regards,
    sunil kairam.

  • Ora 600 and ora 7445 error in oracle 10g r2

    hi all,
    we are using Oracle 10g r2.
    os is windows 2003 server,
    ram is 4 gb.
    front end is java .
    we got a below mentioned errors.
    i got the RA-00600: internal error code, arguments: [qerghFetch:inc], [], [], [], [], [], [], [],
    and ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x61F04AC9] [ADDR:0xC] [UNABLE_TO_READ] []
    and Error 0 in kwqmnpartition(), aborting txn errors.
    for aug 3 11.42.47 we got a ora 600 error after that through front end (java) users can't able to connect the database.the not able to executed the query session disconnected error.
    what is reason for theis error . how it will rectifiy.?
    pls advice.Below i attached the alret log message .
    Sun Aug 02 04:04:24 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 05:48:10 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 05:49:10 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 07:38:49 2009
    Thread 1 advanced to log sequence 1732
    Current log# 3 seq# 1732 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG
    Sun Aug 02 07:44:14 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 07:45:14 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 22:00:26 2009
    Thread 1 advanced to log sequence 1733
    Current log# 1 seq# 1733 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG
    Mon Aug 03 07:08:15 2009
    Thread 1 advanced to log sequence 1734
    Current log# 2 seq# 1734 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG
    Mon Aug 03 09:28:23 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 09:30:27 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 11:42:47 2009
    Errors in file e:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_6012.trc:
    ORA-00600: internal error code, arguments: [qerghFetch:inc], [], [], [], [], [], [], []
    Mon Aug 03 13:20:00 2009
    Thread 1 advanced to log sequence 1735
    Current log# 3 seq# 1735 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG
    Mon Aug 03 16:07:07 2009
    Errors in file e:\oracle\product\10.2.0\em_2\rdbms\trace\orcl_ora_4756.trc:
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x61F04AC9] [ADDR:0xC] [UNABLE_TO_READ] []
    Mon Aug 03 16:07:11 2009
    Process m000 died, see its trace file
    Mon Aug 03 16:07:11 2009
    ksvcreate: Process(m000) creation failed
    Mon Aug 03 16:08:37 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 16:10:40 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 17:25:05 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 17:27:11 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 17:32:19 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 17:33:24 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 18:52:08 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 18:54:09 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 19:05:33 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 19:09:02 2009
    Errors in file e:\oracle\product\10.2.0\em_2\rdbms\trace\orcl_ora_5132.trc:
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x7C34126B] [ADDR:0x0] [UNABLE_TO_WRITE] []
    Mon Aug 03 19:10:27 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn

    Hi reshumakur
    As this is your PRODUCTION system THEN_ The best help to offer in case of ORA-600, and ORA-7445 is to open SR with metalink. Submit with the SR the following
    1- Alert log
    2- Trace files (in ur case e:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_6012.trc: and e:\oracle\product\10.2.0\em_2\rdbms\trace\orcl_ora_4756.trc:)
    3- Describe what was happening when you had these errors.
    Try to avoid free help when you have ORA-600 and ORA-07445. This errors could be becuase of BUGS. Oracle Support will know this from the call stack in the trace file.
    Then Do your best to patch 10.2.0.4 and the latest CPU patch.
    Good Luck

  • Signal 11 error in Oracle Reports 6i

    Hi,
    Im getting "Program terminated by signal 11" error in the log file,when I run a matrix report in Oracle Apps.
    I can see partial output in the output file.
    Below is the log file for the report.
    LGEIL EOE Extension: Version : UNKNOWN - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    ESODR039_EXCEL module: MIS report-D.P-New D.P Value Excel
    Current system time is 29-JUL-2005 13:23:32
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_FROM_DATE='01-JUL-2005'
    P_TO_DATE='31-JUL-2005'
    P_DIVISION='NOIDA+PUNE'
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program was terminated by signal 11
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 1101734.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 29-JUL-2005 13:23:43
    Thanks in advance,
    Vidhya.G

    Since this is a very specific issue, it could be necessary to call Oracle support. Very general there are problems reported, if NLS_LANG characterset (here UTF8) does not match the corresponding entry in
    $ORACLE_HOME/guicommon6/tk60/admin/<your_language>/Tk2Motif.rgb
    fontMapCs: iso8859-9=<other as UTF8>
    Applying Oracle Developer 6i Patchset 9 or higher could also help.
    But there are countless other reasons for a generic exception like signal 11 .

  • ORA-24816 error with oracle 10 driver

    Friends,
    I am getting the following error with Oracle 10 driver while trying to insert data > 4k into a LONG column. The table also contains another column of type varchar2(4000). The code works perfectly fine with Oracle 9i driver.
    ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column
    Kindly let me know if this is a programming error or a driver problem.
    Thanks,
    Vinay

    this driver you mentioned, is it the jdbc driver?
    ORA-24816:     Expanded non LONG bind data supplied after actual LONG or LOB column
    Cause:     A Bind value of length potentially > 4000 bytes follows binding for LOB or LONG.
    Action:     Re-order the binds so that the LONG bind or LOB binds are all at the end of the bind list.
    using this forum may be more efficient -> http://forums.oracle.com/forums/forum.jspa?forumID=99&start=0

  • ORA-01858 error from Apex Report on working/valid underlying query

    After two days of searching these forums and AskTom, I think I need to post the following problem.
    I have what seems to be a valid view of some data created as follows (with an apology for the formatting - doesn't seem to be a way of using a fixed font here):
    CREATE OR REPLACE FORCE VIEW "PRICING_CAPABILITY"."POW_EXEC_SUMM010" ("Item",
    "Jul-09", "Aug-09", "Sep-09", "Oct-09", "Nov-09", "Dec-09", "Jan-10",
    "Feb-10", "Mar-10", "Apr-10", "May-10", "Jun-10", "YTD")
    AS
    SELECT
    "Item",
    SUM(DECODE("ItemMonth",'Jul-09',"ItemValue",0)) "Jul-09",
    SUM(DECODE("ItemMonth",'Aug-09',"ItemValue",0)) "Aug-09",
    SUM(DECODE("ItemMonth",'Sep-09',"ItemValue",0)) "Sep-09",
    SUM(DECODE("ItemMonth",'Oct-09',"ItemValue",0)) "Oct-09",
    SUM(DECODE("ItemMonth",'Nov-09',"ItemValue",0)) "Nov-09",
    SUM(DECODE("ItemMonth",'Dec-09',"ItemValue",0)) "Dec-09",
    SUM(DECODE("ItemMonth",'Jan-10',"ItemValue",0)) "Jan-10",
    SUM(DECODE("ItemMonth",'Feb-10',"ItemValue",0)) "Feb-10",
    SUM(DECODE("ItemMonth",'Mar-10',"ItemValue",0)) "Mar-10",
    SUM(DECODE("ItemMonth",'Apr-10',"ItemValue",0)) "Apr-10",
    SUM(DECODE("ItemMonth",'May-10',"ItemValue",0)) "May-10",
    SUM(DECODE("ItemMonth",'Jun-10',"ItemValue",0)) "Jun-10",
    SUM("ItemValue") AS "YTD"
    FROM
    SELECT
    'New Proposals Received' AS "Item",
    TO_CHAR(t1.scope_received,'Mon-RR') AS "ItemMonth",
    COUNT(*) AS "ItemValue",
    10 AS "SortOrder"
    FROM
    PRICING_CAPABILITY.POW_DATA t1
    WHERE
    t1.scope_received IS NOT NULL
    AND extract(YEAR FROM t1.scope_received) IN (2009,2010)
    AND t1.scope_received >= '01-JUL-2009'
    GROUP BY
    'New Proposals Received',
    TO_CHAR(t1.scope_received,'Mon-RR'),
    10
    UNION
    SELECT
    'New Proposals Completed' AS "Item",
    TO_CHAR(t2.pricing_approval,'Mon-RR') AS "ItemMonth",
    COUNT(*) AS "ItemValue",
    20 AS "SortOrder"
    FROM
    PRICING_CAPABILITY.POW_DATA t1
    JOIN PRICING_CAPABILITY.POW_LAST_HISTORY t2
    ON
    t1.POW_DATA_ID = t2.POW_DATA_ID
    WHERE
    t2.pricing_approval IS NOT NULL
    AND extract(YEAR FROM t2.pricing_approval) IN (2009,2010)
    AND t2.pricing_approval >= '01-JUL-2009'
    GROUP BY
    'New Proposals Completed',
    TO_CHAR(t2.pricing_approval,'Mon-RR')
    GROUP BY
    "Item",
    "SortOrder"
    ORDER BY
    "SortOrder" ;
    This view works, ie produces the right results when run (ie select * from ...) in SQL Developer and in the SQL Workshop section of Apex.
    But when I attempt to produce an Apex report using it as the source of data, I get the following error:
    ORA-01858: a non-numeric character was found where a numeric was expected
    The error is displayed before any part of the report itself is displayed, ie the Region Header is displayed and then the error message.
    So far, anything I've been able to find on the forums or AskTom suggests that it is probably due to a date conversion problem. But the aim here is to summarise dated records by month, so I'm extracted the year and month elements of the date values, converting them to strings (using TO_CHAR), and then using the resulting 'Mon-YY' strings to group the results.
    If there is a better way, I'm interested.
    But I don't understand why Apex seems to be rejecting what appear to be valid results from a valid working query.
    Any ideas? Suggestions?
    Cheers,
    Peter

    Thanks again, Flavio. I'm learning and I appreciate your patience.
    The solution you provided is very similar to the one I came up with after your previous message, but I didn't have the NLS_DATE_LANGUAGE parameter. I'll go back and try it.
    I appreciate your explanation re Apex not needing to know and Oracle assuming that the client knows what it is doing, but it puzzles me more.
    The way that I originally had things, I think, was consistent with what you have explained, but it didn't work. To make it clear:
    1 I had an Oracle view that had no parameters and contained the date literal in the where clause and worked fine in both SQL Developer and in the Apex SQL Workshop.
    2 The view did not return any date values. Aside from the column headings and the first column (of character strings), the body of the table comprised integer values only.
    3 So, when Apex called the view, I would have expected the Oracle server to independently execute the view and return the (dateless) results to Apex, which would then present the unmodified results in a standard report. This is, I think, what SQL Developer and the Apex SQL Workshop appear to have successfully done.
    My expectation seems to be consistent with at least some of your explanation (ie [Oracle assumes] "+that the client knows what it is doing+" and "+apex doesn't need to know anything about the underlying query+"), but is not consistent with actual experience, where Apex seems to know that the underlying query contains a date literal and unsuccessfully (and unnecessarily) attempts to interpret it.
    I'm obviously missing something about how Apex and Oracle interact in this situation. While I don't need to know - as I have a working solution now - it is valuable to understand how things work. Makes life easier and more productive.
    Cheers,
    Peter

  • TEXT_IO throwing error in Oracle Reports

    Hi,
    I want to display an image on report(6i) output, the image file resides on Apps server. I am using TEXT_IO to read the image file from Server. If the image does not exists i am catching the exception and proceeding with the normal flow without exiting the report execution.When i run the Report I am getting ORA-302000 (File Not found Error).. The report is registered in Oracle Applications.
    Please help out as to where to place the image files on the Apps server so that TEXT_IO will pick the file.
    Best regards ,
    Pradeep.

    u need to first check whether image exists or not.
    If it doesnt exist then you dont need to show the image.
    Put this logic and it will fix the issue

  • NT service-error 186 Oracle Reports server 6i

    I had problems getting the Reports NT service
    to run under certain contitions. I got the
    old error 186.
    The first time it occured it was right after I installet HAHTsite 4.0 Application server
    on the box, so I thought it was a conflict.
    I ripped Oracle right off the box and reinstalled. No problemo!
    Later when installing on the production server I installed in what I though was the OK order, but nope. I got the old 186:er.
    I ripped Ora off and reinstalled, again,
    No Problemo! Hey what is this?! I checked in the tnsnames.ora and found a line at the end that said:
    Rep60_BARBRO,Rep60_BARBRO.world=(ADDRESS=(PROTOCOL=tcp)(HOST=BARBRO)(PORT=1949))
    Nice I thought and booted to DOS to Ghost
    the lot. Oh by the way, the installer said nothing about needing a reboot.
    After backing up the disks I booted NT and to my surprice the Reports service was broken again! I check the tnsnames.ora and found it lacked the last row (see above)! As I had no copy of the old file I reinstalled Reports over the curent installation and tnsnames was restored!
    Nice one, right? Please explain is you can.
    Peas to the world!
    /Hans

    Hey Hans,
    I don't know if this is the same problem which you mentioned. I am also getting error number 186. I have an Oracle 8i installed on a Windows NT workstation. Could you please advise me as to what I should do to make the reports server up and running.
    Thanks
    Sreeram

  • ORA-06550: Error in Oracle InterConnect DB Adapter

    Hi,
    We are facing a problem while inserting a row into
    Oracle database using Oracle InterConnect DB Adapter.
    All the required configuration information like AppViews,CommonViews,Events,Application etc have been
    created and configured in iStudio.
    At runtime, OracleDB Adapter bridge (subscription) gets
    the message from the interconnect hub and throws the
    following error, while trying to insert the details into
    table.
    Error: db_bridge_writer_1 could not write the message to
    the database because of an application error (java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00201: identifier 'EMPLOYEE_OBJ.SUB_NEWEMPLOYEE_OAI_V1' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ) in the application stored procedure. Please check your stored procedure. (Em
    ployee_Obj.NewEmployee:OAI/V1,OAI/V1,false,0
    EMPNO: 1000.0
    FULLNAME: aaaaaaaaa
    MANAGERNAME: sss
    DIVISIONNO: 19.0
    ) was not written to the database.
    java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00201: identifier 'EMPLOYEE_OBJ.SUB_NEWEMPLOYEE_OAI_V1' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189).........
    Following is the stored procedure that was defined in the
    iStudio at the design time.
    PROCEDURE sub_NewEmployee_OAI_V1(
    EMPNO IN NUMBER,
    FULLNAME IN LONG,
    MANAGERNAME IN LONG,
    DIVISIONNO IN NUMBER
    AS
    dummy NUMBER;
    -- fill declarations here
    BEGIN
    -- fill code here
    dummy:= 0;
    'insert into employee values(EMPNO, FULLNAME,MANAGERNAME, DIVISIONNO)';
    END sub_NewEmployee_OAI_V1;
    What could be the reason for this error? Are we missing
    something in the configuration?
    Appreciate any pointers in solving this issue.
    Thanks in advance,
    Regards,
    Murali.

    Murali,
    Where have you installed the Package EMPLOYEE_OBJ in your database?
    It sounds like you've missed this vital step.
    In iStudio...File > Export PL/SQL. Expand your subscribing Application (e.g. APPS) ... APPS > Subscribed Events, and highlight "Subscribe(EMPLOYEE_OBJ.NEWEMPLOYEE)". Press the "Browse" button, and select where you want to save the file. (e.g. d:\iStudio_Packages\XXOAI). The "XXOAI" prefix is added to the start of the created file.
    A *.sql file will be created in the directory you specified (e.g. d:\iStudio_Packages\XXOAI_APPS_EMPLOYEE_OBJ.sql).
    (Note: Ignore the empty "XXOAI_APPS_EMPLOYEE_OBJTypes.sql" file as you haven't created any new ones (i.e. NUMBER and LONG are standard))
    Login to SQL*Plus now, as the same user specified in your DB Adapter.ini file (Hint: In adapter.ini, look for the entry "db_bridge_schema1_writer_username=[Your DB User]", e.g."db_bridge_schema1_writer_username=APPS.)
    Execute the iStudio generated XXOAI_APPS_EMPLOYEE_OBJ.sql file.
    You will now have the Package EMPLOYEE_OBJ created, together with a procedure SUB_NEWEMPLOYEE_OAI_V1.
    You will notice that the DB Adapter (unless you've stopped it and cleared down any persistence files), will automatically find this new Package and Procedure, and will have updated your 'Employee' table. :-)
    Hope this helps
    Ian

  • ORA-01552 error in Oracle 10g DB!!!

    Hi,
    I have an application running with an Oracle 10g db in Solaris 10 platform.
    recently when i tried logging in to my Applicn. i get the following error in its log:-
    *"sqociExec error: sqlcode=1552 message=ORA-01552: cannot use system rollback segment for non-system tablespace 'USERS'"*
    and my login fails.
    Am this apllicn. guy and don't know much about Oracle DB. Also i don't seem to have the comfort of DBA here so am hoping to receive help from
    you guys in here.
    i tried few tips which i picked from this forum but don't know what to do with its results...here they are..
    *1) "SELECT segment_name, tablespace_name, initial_extent, status from dba_rollback_segs;"*
    SEGMENT_NAME TABLESPACE_NAME INITIAL_EXTENT
    STATUS
    SYSTEM SYSTEM 114688
    ONLINE
    _SYSSMU1$                      UNDOTBS1                               131072
    ONLINE
    _SYSSMU2$                      UNDOTBS1                               131072
    ONLINE
    SEGMENT_NAME TABLESPACE_NAME INITIAL_EXTENT
    STATUS
    _SYSSMU3$                      UNDOTBS1                               131072
    ONLINE
    _SYSSMU4$                      UNDOTBS1                               131072
    ONLINE
    _SYSSMU5$                      UNDOTBS1                               131072
    ONLINE
    SEGMENT_NAME TABLESPACE_NAME INITIAL_EXTENT
    STATUS
    _SYSSMU6$                      UNDOTBS1                               131072
    ONLINE
    _SYSSMU7$                      UNDOTBS1                               131072
    ONLINE
    _SYSSMU8$                      UNDOTBS1                               131072
    ONLINE
    SEGMENT_NAME TABLESPACE_NAME INITIAL_EXTENT
    STATUS
    _SYSSMU9$                      UNDOTBS1                               131072
    ONLINE
    _SYSSMU10$                     UNDOTBS1                               131072
    ONLINE
    _SYSSMU11$                     UNDOTBS1                               131072
    OFFLINE
    SEGMENT_NAME TABLESPACE_NAME INITIAL_EXTENT
    STATUS
    _SYSSMU12$                     UNDOTBS1                               131072
    OFFLINE
    _SYSSMU13$                     UNDOTBS1                               131072
    OFFLINE
    _SYSSMU14$                     UNDOTBS1                               131072
    OFFLINE
    SEGMENT_NAME TABLESPACE_NAME INITIAL_EXTENT
    STATUS
    _SYSSMU15$                     UNDOTBS1                               131072
    OFFLINE
    _SYSSMU16$                     UNDOTBS1                               131072
    OFFLINE
    _SYSSMU17$                     UNDOTBS1                               131072
    OFFLINE
    18 rows selected.
    2)*"select name, value from v$parameter where name like '%undo%';"*
    NAME
    VALUE
    undo_management
    AUTO
    undo_tablespace
    UNDOTBS1
    undo_retention
    900
    What next????
    Guys Please help me out!!! i have to get the application running soon!!!
    please do give steps clearly bcoz am real newbie and the DB we are working on is a *"PRODUCTION"* one
    Thanks
    kris

    890466 wrote:
    @orawiss
    Sorry what precisely should i give in place of 'name' in
    *"ALTER ROLLBACK SEGMENT 'name' online."*
    In my case?
    thanks
    kris
    Edited by: 890466 on Oct 10, 2011 3:41 AMUndo tablespace names which status are offline shown in your query.

Maybe you are looking for