APEX 4.2.2 - ORA-6502 when you connect the application with anything other than Firefox!

If I try to connect to my application by something else that Firefox I get the following message appears on the screen:

ErrorError processing request.
ORA-06502: PL/SQL: digital error or value
Ok

If I try to access the APEX generator via one browser other than Firefox, I don't receive any returned HTML.

Last night, I improved from 4.1 to 4.2.2 and ran the patch which dealt with lack of developer toolbars...

Of course, I never use Firefox, but my users use IE...

Any ideas?

Post edited by: AndyH Clarified that it is a 4.2.2 question.

Hello

I don't know if this bug 16760897 relative

Oracle Application Express 4.2.2 - known issues

Kind regards

Jari

Tags: Database

Similar Questions

  • ORA-00942 when you run the application after import

    APEX 4.1.1

    Hello

    I transferred my request via import/export to our production database. I had no errors during installation, but when I run the application, I get the following error message.
    User not found
    ORA-00942: table or view does not exist
    
    Technical Info (only visible for developers)
    
        is_internal_error: true
        ora_sqlcode: -942
        ora_sqlerrm: ORA-00942: table or view does not exist
        component.type: APEX_APPLICATION_COMPUTATIONS
        component.id: 3102806535980644
        component.name: LANG
        error_backtrace:
    
        ORA-06512: at "SYS.DBMS_SYS_SQL", line 1325
        ORA-06512: at "SYS.WWV_DBMS_SQL", line 1287
        ORA-06512: at "SYS.WWV_DBMS_SQL", line 1358
        ORA-06512: at "SYS.WWV_DBMS_SQL", line 1375
        ORA-06512: at "APEX_040100.WWV_FLOW_DYNAMIC_EXEC", line 776
        ORA-06512: at "APEX_040100.WWV_FLOW", line 4155
    I don't know, where to look for the error. I do not have an application element with the name of LANG and there is a calculation application for LANG:
    SELECT  LANG_CODE
    FROM    GPS_WEB_USERS
    WHERE user_name = upper('&APP_USER.')
    All advice where to look?

    Published by: Anne-Marie Rosa on August 16, 2012 05:37

    Published by: Anne-Marie Rosa 16 August 2012 06:32

    Hello
    >
    I transferred my request via import/export to our production database. I had no errors during installation, but when I run the application, I get the following error message.

    User not found
    ORA-00942: table or view does not exist
    
    Technical Info (only visible for developers)
    
    is_internal_error: true
    ora_sqlcode: -942
    ora_sqlerrm: ORA-00942: table or view does not exist
    component.type: APEX_APPLICATION_COMPUTATIONS
    component.id: 3102806535980644
    component.name: LANG
    error_backtrace:
    
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 1325
    ORA-06512: at "SYS.WWV_DBMS_SQL", line 1287
    ORA-06512: at "SYS.WWV_DBMS_SQL", line 1358
    ORA-06512: at "SYS.WWV_DBMS_SQL", line 1375
    ORA-06512: at "APEX_040100.WWV_FLOW_DYNAMIC_EXEC", line 776
    ORA-06512: at "APEX_040100.WWV_FLOW", line 4155
    

    I don't know, where to look for the error. I do not have an application element with the name of LANG and there is a calculation application for LANG:

    SELECT LANG_CODE
    FROM GPS_WEB_USERS
    WHERE user_name = upper('&APP_USER.')
    

    The source of the error is ora_sqlerrm: ORA-00942: table or view does not exist

    Search for the name of the calculation Application in APEX_APPLICATION_COMPUTATIONS APEX view using component.id: 3102806535980644 to find his name.

    Once you have the name, you can change this App mockup and understand what Table/view is not available.

    See you soon,.

    PS: {code} is the tag, which is tiny.

    Published by: Dominique 16 August 2012 18:01

  • ORA-01789 - when you use the operator of TABLE and SEM_MATCH

    Client version: 11.1.0.7 on Windows 7 (32 bit)
    Server version: 11.2.0.3 on Windows 7 (64-bit)

    I am model prototyping a simple RDF, and I'm getting a ' ORA-01789: block has an incorrect number of columns in query results "when you use the SEM_MATCH with the SCOREBOARD operator.

    I can run this:
    select id, a.triple.GET_TRIPLE() from drik.rdf_data a
    and the first line is:
    (<http://www.ihc.com/drik/term#2>, <http://www.w3.org/2000/01/rdf-schema#subClassOf>, <http://www.ihc.com/drik/term#1>)
    Now, I want to use the TABLE like this:
    select
      c
    from 
      table(sem_match('{ <http://www.ihc.com/drik/term#2> <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?c . }', 
            sem_models('Prototype'),
            sem_rulebases('RDFS'),
            sem_aliases(sem_alias('rdfs','http://www.w3.org/2000/01/rdf-schema/')),
            null
            ))
    But this performance gives the ORA-07189. Even try SELECT * gives the same error.

    I expect to get a refund:
    <http://www.ihc.com/drik/term#1>
    How should I approach troubleshooting this?

    Thank you, Steve

    Thanks for posting the script. I was able to reproduce the error locally.

    The problem is the use of the sem_apis.create_rules_index () procedure, which has been deprecated:
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25609/sdo_rdf_newfeat.htm#autoId26

    Please use sem_apis.create_entailment () instead, and the error should disappear.
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25609/sem_apis_ref.htm#CHEHDGBD

    Thank you
    Matt

  • Have HP Pavilion dv2500, won, t turn on. When you connect the power supply blinks blue.

    Have HP Pavilion laptop dv2500, p/n kn997ua #aba, does not illuminate. When you connect the power supply blinks blue.

    Now you can take the laptop at best buy or Wal-Mart and get them to plug a power cord. This will give you an idea if you need to buy a power cord or not.

    Again, you can always buy the power supply cord and if it does not return.

    THX

  • Cannot get signal when you connect the TV to HDMI port.

    * Original title: HDMI Signal

    Hello. My nam is Kieu. I have a problem and and we hope you guys can helo me. I just bought a Gateway desktop all-in-one computer and tried to connect it to the TV via the HDMI port, but I could not get signal on my TV. Help, please.
    Thank you very much

    Hi David,

    Thanks for posting your query in Microsoft Community Forum!

    According to the description of the problem, it seems that you are unable to get the signal when you connect the TV to HDMI port.

    I will certainly help you with this issue.

    Here are some steps that you can try in order to solve the problem.

    Step 1. First you need a video cable to make the physical connection. For a better image quality, you need to connect the computer to the TV using standard VGA ports or via DVI to HDMI Cable provided your TV supports these ports.

    Step 2. Open thedisplay settings' ' in your Vista computer and Activate the output to the TV screen. You can reflect the content of your computer on the TV or extend the display as a double screen control.

    Step 3 Pick up your TV remote and switch to "External inputs" in the menu. You need to change the value by default "Video 1" to a different selection which may be "HDMI 1" or "video 2" depending on how you made the connection. "

    Important: Make sure you connect the cable to the TV before turning on the computer, because sometimes it may not recognize the external display.

    You may also change the resolution of your TV screen using the display settings in your panel of control remains the image may appear distorted.

    For more information, see the article.

    Connect your computer to a TV

    http://Windows.Microsoft.com/en-us/Windows-Vista/connect-your-computer-to-a-TV

    If anything in my post is not clear or if you have any questions on Windows, feel free to let us know. It is our pleasure to be of service.

  • The icon of my creative cloud that appears on top of the MAC, the box and when you open the application is displayed in white. It does not work. What should I do? Thank you

    The icon of my creative cloud that appears on top of the MAC, the box and when you open the application is displayed in white. It does not work. What should I do? Thank you

    Please visit:creative cloud is empty window why?

    Re: Empty opening creative cloud app

    Cloud Desktop App is empty

    I hope this helps.

    Concerning

    Megha Rawat

  • Exception when you run the application deployed standalone WLS

    When you run the application deployed in a standalone WLS, I get the following exception, and nothing will be displayed in the Explorer. Running-in of jdev/integratedWebLogicServer is however very well. I deployed the application in jdev to the autonomous WLS.
    ]] Root cause of ServletException.
    javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'com.oracle.pm.eai.supporttool.ui.bean.SupportToolBean'
         at oracle.adfinternal.controller.util.Utils.createAndLogFacesException(Utils.java:192)
         at oracle.adfinternal.controller.beans.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:180)
         at oracle.adfinternal.controller.beans.ManagedBeanFactory.instantiateBean(ManagedBeanFactory.java:860)
         at oracle.adfinternal.controller.application.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:112)
         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
         at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
         at com.sun.el.parser.AstValue.getValue(AstValue.java:107)
         at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:251)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:486)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:670)
    Here are the versions WLS and Jdeveloper, I used.
    WebLogic 10.3.3.0
    JDeveloper 11.1.1.3.0

    Hello

    It seems that there is something wrong with your support of bean is instantiated.
    Check that it is correctly stated in the taskFlow and you have a default constructor in your backing bean.

    Gabriel.

  • How to change the icon of the browser when you run the application

    Hi guys,.

    How can I change the icon of the browser when you run the application. That is to say the icon that the browser displays when we surf on this forum is a red square.

    I typed the following text in the page template, but nothing happened
    < link rel = "icon" herf = "" #IMAGE_PREFIX #erp.png "type =" image/png">
    " I hope that my question is simple,


    Kind regards
    Fateh

    Published by: Fateh June 30, 2011 03:36

    See + {message identifier: = 9591426} +.

    
    

    2 things: it is href not herf; and the only image file format with complete cross-browser ICOsupport.

  • Why gesture to turn on my trackpad behaves not as before for switching between tabs when it works the same with all other programs besides Firefox?

    Why gesture to turn on my trackpad behaves not as before for switching between tabs when it works the same with all other programs besides Firefox?

    I changed the subject: config to make the rotation gesture to move between tabs and it worked great for well over a year. It now behaves properly, as described here:

    https://Bugzilla.Mozilla.org/show_bug.cgi?id=877598

    It used to be very controllable move a tab on, now it is erratic and moves quickly and the unexpected tabs regardless of the slowness, I do the gesture of rotation. It's the main reason I use Firefox on Chrome and I will continue to do so unless there is no solution for this.

    Just put the browser.gesture.twist.threshold to something around 15-25.

  • ORA-00900 when you use the command COPY with dynamic SQL

    Helllo,
    I created the following procedure:

    create or replace procedure copyTable (pSourceTableOwner IN varchar2
    pSourceTableOwnerPasword IN varchar2
    pTargetTableOwner IN varchar2
    pTableName IN varchar2
    pDatabaseLink IN varchar2)
    as

    vStatement varchar2 (250): = null;

    Start

    vStatement: = "copy of". pSourceTableOwner | '/' || pSourceTableOwnerPasword | '@' || pDatabaseLink |
    "Insert" | pTargetTableOwner | '.' || pTableName | ' using select * from '. pTableName;

    immediately run vStatement;

    end;
    /

    The generated command (variable vStatement) looks like this:
    "Insert a copy of O_GLCEN/o_glcen@SELLENTW o_jh. "X_PLZ_CD_MERGED_CTIS using select * from X_PLZ_CD_MERGED_CTIS".

    When you call this procedure as "exec copyTable ('O_GLCEN', 'o_glcen', 'o_jh', 'X_PLZ_CD_MERGED_CTIS', 'SELLENTW');" the following lifts:

    FEHLER in line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at "SYSTEMTECHNIK". COPYTABLE", line 20
    ORA-06512: at line 1

    But when you call the command COPY directly from SQL prompt the statement runs without error.
    Is in general not possible to use the dynamic COPY with SQL command? If it is possible does anyone has an idea what I am doing wrong?

    Any help will be appreciated...

    Rgds
    JH

    I would like to use something like

    vStatement: = ' start in f (select * from ' | pSourceTableOwner |) '.' || pTableName | '@' || pDatabaseLink | Insert loop ') in ' | pTargetTableOwner | '.' || pTableName | "f-values; end loop; end; »
    immediately run vStatement;

  • T460s refreshing when you connect the AC adapter / CC

    Lenovo's expensive

    My T460s Thinkpad refreshes when I plug in or unplug the laptop charger.

    All the drivers are up to date.

    IM using windows 10.

    By default, the refresh rate of the screen is reduced automatically when you disconnect the adapter to save power. Right-click on the "desktop", select "Graphics properties", click on 'Power', select 'on battery' and disable the change rate of auto update so this behavior is unintentional.

  • Pop - up screen to record images does not appear when you connect the camera

    Original title: when I plug in my camera to download photos I don't have a pop up screen to ask me some questions were to save you more pictures. I want the pop up screen to come back.
    Guest USB? Download the pictures?

    Hello

    1. Are you referring to the AutoPlay window that appears when you connect a device to the computer?

    What is the number and the model of the camera?

    In case you are referring to the Auto play option then try the troubleshooting steps provided in the link below to fix the problem.

    Troubleshoot AutoPlay

    http://Windows.Microsoft.com/en-us/Windows-Vista/Troubleshoot-AutoPlay-problems

  • When you use the application phone on my Droid, the screen flashes

    The phone is a Droid that is original, bought in December 2009 at Costco.  The service provider is Verizon.

    For example, when I call automatic CVS Pharmacy prescription refill service, the screen flashes and is mainly off makes it difficult-not impossible to enter a list of numbers of RX to recharge.  It is repeatable.

    I tried to use the phone to access the payment system of automated mortgage payment to my Bank, a large National Bank and had the same results. It's also repetitive.

    I am running firmware version 2.1 - update1.

    I'd appreciate any help anyone has this problem.

    Thanks in advance,

    Glen

    I think your problem is that your fingers trigger the proximity sensor.  When you enter the numbers on the phone during a call make sure you hit the first speaker key.  This will disable the proximity sensor and the screen will not virgins on you you are trying to enter numbers.  I hope this helps.

  • Error ORA-00979 when you run the SQL in Oracle 11.2.0.3

    Hi Oracle Experts,


    I am trying to execute a SQL statement which consist of 2-3 levels of inline queries. Part of this SQL statement is as below:
    SELECT
          "SAMPLE_RESULT"."PROPERTYID",
          "SAMPLE_RESULT"."QUALIFIER",
          ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
          AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
          TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt,
          TO_CHAR("SAMPLE"."SAMPLEDT",'rrrr-mm-dd') sortdate
          STD.stdev,
          getCL.cl
        FROM
          (
            SELECT
              ROUND(stddev(INS.avg_result),2) stdev
            FROM
              (
                SELECT
                  "SAMPLE_RESULT"."PROPERTYID",
                  "SAMPLE_RESULT"."QUALIFIER",
                  ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
                  AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt
                FROM
                  "SAMPLE",
                  "SAMPLE_RESULT",
                  "ACTIVITY"
                WHERE
                  (
                    "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
                  )
                AND
                  (
                    "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (
                    sample.sampleid, sample_result.testid, sample_result.propertyid
                    )
                  )
                AND
                  (
                    "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
                  )
                AND
                  (
                    ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
                  )
                AND
                  (
                    ACTIVITY.LOCATIONID = 'S-5003C'
                  )
                AND
                  (
                    SAMPLE.EVENTID <> 'AD-HOC'
                  )
                AND
                  (
                    "SAMPLE"."SAMPLESTATUS" = 'L'
                  )
                AND
                  (
                    TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE
                    (TO_CHAR(:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(
                    :StartDate,'dd-Mon-RRRR')) + 6
                  )
                AND
                  (
                    SAMPLE_RESULT.PROPERTYID = 'GCV'
                  )
                GROUP BY
                  SAMPLE_RESULT.PROPERTYID,
                  SAMPLE_RESULT.QUALIFIER,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy')
              )
              INS
          )
          STD,
          (
            SELECT
              ROUND(AVG(INS.avg_result),2) cl
            FROM
              (
               SELECT
                  "SAMPLE_RESULT"."PROPERTYID",
                  "SAMPLE_RESULT"."QUALIFIER",
                  ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
                  AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt
                FROM
                 "SAMPLE",
                  "SAMPLE_RESULT",
                  "ACTIVITY"
                WHERE
                  (
                    "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
                  )
                AND
                  (
                    "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (
                    sample.sampleid, sample_result.testid, sample_result.propertyid
                    )
                  )
                AND
                  (
                    "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
                  )
                AND
                  (
                    ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
                  )
                AND
                  (
                    ACTIVITY.LOCATIONID = 'S-5003C'
                  )
                AND
                  (
                    SAMPLE.EVENTID <> 'AD-HOC'
                  )
                AND
                  (
                    "SAMPLE"."SAMPLESTATUS" = 'L'
                  )
                AND
                  (
                    TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE
                    (TO_CHAR(:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(
                    :StartDate,'dd-Mon-RRRR')) + 6
                  )
                AND
                  (
                    SAMPLE_RESULT.PROPERTYID = 'GCV'
                  )
                GROUP BY
                  SAMPLE_RESULT.PROPERTYID,
                  SAMPLE_RESULT.QUALIFIER,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy')
              )
              INS
    
          )
          getCL,
          "SAMPLE",
          "SAMPLE_RESULT",
          "ACTIVITY"
        WHERE
          (
            "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
          )
        AND
          (
            "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (sample.sampleid,
            sample_result.testid, sample_result.propertyid)
          )
        AND
          (
            "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
          )
        AND
          (
            ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
          )
        AND
          (
            ACTIVITY.LOCATIONID = 'S-5003C'
          )
        AND
          (
            SAMPLE_RESULT.PROPERTYID IN ('GCV','SG','T. Sulphur','Dew Point',
            'HC Dew Pts')
          )    
        AND
          (
           TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE(TO_CHAR
            (:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(:StartDate,
            'dd-Mon-RRRR')) + 6
          )
        GROUP BY "SAMPLE_RESULT"."PROPERTYID", "SAMPLE_RESULT"."QUALIFIER", TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy'), TO_CHAR("SAMPLE"."SAMPLEDT",'rrrr-mm-dd'),
        
          STD.stdev,
          getCL.cl
      )
    When I run the level the lowest and second lowest level inline queries statements, which consists of a select field of data and functions, there is no error and capable of generating the result.

    But when I run the statement which refer to the alias of queries inline (STD, getCL), it prompted an error ORA-00979 not a group by expression. This happened only Oracle 11.2.0.3. If I run the statement in another version of Oracle (11 GR 1 material and below), I am able to generate the result.

    Please advice how can I fix this problem.

    Published by: xysOra on 29 April 2013 19:37

    It seems that this should be the "SAMPLE" TO_CHAR conversions "" SAMPLEDT ".

    You seem to be willing to cut the time part of SAMPLEDT. The best way to do so is TRUNC (SAMPLEDT).

    In each of the groups of clauses, replace TO_CHAR ('SAMPLE'. ("' SAMPLEDT ', 'dd-Mon-yyyy') with TRUNC ('SAMPLE'. (' "SAMPLEDT") and completely remove the TO_CHAR ('SAMPLE'. ("' SAMPLEDT ',"dd-mm-rrrr") in the last group of.

    Replace in selection lists, TO_CHAR ('SAMPLE'. ("' SAMPLEDT ', 'dd-Mon-yyyy') with TO_CHAR (TRUNC ('SAMPLE'. ((' ' SAMPLEDT '), 'dd-Mon-yyyy') and replace TO_CHAR ("SAMPLE". "SAMPLEDT", "dd-mm-rrrr") with TO_CHAR (TRUNC ("SAMPLE" ".")) " "" "SAMPLEDT"), "dd-mm-rrrr").

    These changes can take you the ORA-00979 not one group by expression.

    Also the date manipulation is wrong — you do implicit conversions to date using default formats, when what you seem to want is to truncate the time part. Instead of

     TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE(TO_CHAR
            (:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(:StartDate,
            'dd-Mon-RRRR')) + 6
    

    use

     TRUNC(SAMPLE.SAMPLEDT) BETWEEN TRUNC(:StartDate) AND TRUNC(:StartDate) + 6
    

    I hope this helps.
    David

  • ORA-06502 when you use MAX (Column) with % TYPE

    Hello

    I tried to limit the problem as much as I can and have managed to isolate a particular scenario. As the structure and sensitive data, I had to come up with a scenario that I tested it and it causes the same problem occurs. The scenario is as follows

    Assuming that I have a table defined as follows

    CREATE TABLE TEST_TABLE (TEST_COLUMN CHAR (8 BYTES));

    and the table has only one record NZ07100S

    We also define a function as

    CREATE OR REPLACE FUNCTION
    FUNCTION GETTESTVALUE
    TEST_TABLE RETURN. TYPE % TEST_COLUMN
    IS
    TEST_VALUE TEST_TABLE. TYPE % TEST_COLUMN;
    BEGIN
    SELECT MAX (TEST_COLUMN) IN TEST_VALUE TEST_TABLE;
    RETURN TEST_VALUE;
    END;



    We ran the following command

    SELECT GETTESTVALUE FROM DUAL;

    and receive an error as follows

    Error report:
    SQL error: ORA-06502: PL/SQL: digital or value error: character string buffer too small
    ORA-06512: at "GETTESTVALUE", line 6
    06502 00000 - "PL/SQL: digital error or the value of %s.


    However, if were to change the function of the following

    CREATE OR REPLACE FUNCTION
    FUNCTION GETTESTVALUE
    TEST_TABLE RETURN. TYPE % TEST_COLUMN
    IS
    TEST_VALUE TEST_TABLE. TYPE % TEST_COLUMN;
    BEGIN
    SELECT TEST_COLUMN IN TEST_VALUE TEST_TABLE;
    RETURN TEST_VALUE;
    END;

    There is no error reported and the value nz07100s is returned.

    Of course, when we changed the function is

    CREATE OR REPLACE FUNCTION
    FUNCTION GETTESTVALUE
    TEST_TABLE RETURN. TYPE % TEST_COLUMN
    IS
    TEST_VALUE TEST_TABLE. TYPE % TEST_COLUMN;
    BEGIN
    SELECT CAST (MAX (TEST_COLUMN) AS CHAR (8)) IN TEST_VALUE TEST_TABLE;
    RETURN TEST_VALUE;
    END;

    No error is reported, and the value is returned

    However, the function in question is in the use of production since 2004. We are currently a few changes to the application and imported the backup of Oracle 10 g Oracle XE. When we try to run the function, the error is thrown.

    I would like to understand if this is a limitation with Oracle XE that causes this problem. It seems to me that the problem is to select the MAX value in the variable that has been set. Executing the query directly from sqlplus does not generate an error, and therefore do not feel there is an error with the SQL code. The only time that we can't get the error is with the INTO statement.

    Is there a way to use the function as it has been defined in production? Why the ORA-06502 error would be thrown? It does not seem to make sense to me. Would appreciate any guidance on this.


    Thanks and greetings

    Jega

    Thank you

    What happens if you do this and rerun the select

    SQL>alter table test_table modify test_column varchar2 (8 byte);
    

    Edit:
    You may need to open a SR with Oracle on this one
    (Really, financial system on XE?)

    Concerning
    Peter

    Published by: Peter on March 4, 2009 12:58 AM

Maybe you are looking for