Getting ORA-06502 in Runtime, but not throug Developer

I got a copy of Matrix.fmb & Matrix.pll from someone at oracle and changed it up for my application. It worked great. I just recently upgraded from 8.05 to 10G and Developer 5 to 6. If I run the form from Developer, it runs great. If I run in using the runtime, I get an ORA-06502 error in an assigment statment. I tracked down the location of the error, and it seems the variable looses it dimension.
I even inserted a dummy statment after declareing it, to test the problem.
i.e. v_test := 'abcdefg'; it seems to error out on this statment.
I even took all the procedures, packages, and funtions from the pll and put them directly in forms and it runs and errors out the same.
Sometimes if I put remarks and 'message' statments in the form, t will error out on a different statement in the package, but the same error.

What is your 6i version? We had similar strange problems and applied the latest 6i patch. E.g. instead of this:
if my_function(my_parameter) = 'X' then ...
We had to change the code (in some cases only) to:
my_variable := my_function(my_parameter);
if my_variable = 'X' then ...

Similar Messages

  • Why am I getting ORA-06502

    Hi:
    I have the following call in a form trigger:
    ERROR_MSG('Access denied');
    Here is the detail on ERROR_MSG, which is in a pll (base.pll):
    PROCEDURE ERROR_MSG(
                         P_MSG                 VARCHAR2,
                         USE_ALERT             BOOLEAN  := FALSE,
                         P_TITLE               VARCHAR2 := '',
                         RAISE_FAILURE         BOOLEAN  := TRUE,
                         USE_LONG_MSG          BOOLEAN := FALSE
    IS
      V_ALERT_ID          ALERT;
      V_ALERT_RESPONSE    NUMBER;
      V_MSG               VARCHAR2(32767) := P_MSG;
    BEGIN
      CLEAR_MESSAGE;
      IF SUBSTR(V_MSG, -1) <> '.' THEN
        V_MSG := V_MSG || '.';
      END IF;
      IF USE_LONG_MSG THEN
           VIEW_LONG_MESSAGE(V_MSG, P_TITLE);
      ELSE
        IF USE_ALERT THEN
          V_ALERT_ID := FIND_ALERT('OK_ALERT');   
          IF ID_NULL(V_ALERT_ID) THEN
            MESSAGE(REPLACE(V_MSG, CHR(10)));
          ELSE
            SET_ALERT_PROPERTY(V_ALERT_ID, TITLE, NVL(P_TITLE, 'Error'));
            SET_ALERT_PROPERTY(V_ALERT_ID, ALERT_MESSAGE_TEXT, V_MSG);
            V_ALERT_RESPONSE := SHOW_ALERT(V_ALERT_ID);
          END IF;
        ELSE
          MESSAGE(REPLACE(V_MSG, CHR(10))); -- I am getting this message
        END IF;
      END IF;
      IF RAISE_FAILURE THEN
        RAISE FORM_TRIGGER_FAILURE;
      END IF;
    END;I am getting the message in the line marked "I am getting this message"
    My problems is that I am also getting ORA-06502 error message after the "Access Denied" meesage.
    Does anybody have an idea why?

    I suspect that whatever trigger or procedure is issuing the "Access denied" message is not causing the ORA-06502: PL/SQL: numeric or value error message. What trigger are you issuing the message from? Is there some other trigger or procedure running? If it is issuing some sort of navigational command, which is causing the current procedure to issue the "Access denied" error message, but NOT checking
        If not form_success then
          Raise Form_trigger_failure;
        End if;then it may be proceeding, and then encounters the 6502 problem.

  • Hi...Please help...Getting ORA 12154 TNS Listener could not resolve...

    Hi,
    I have just loaded Oracle 10g Rel 2 in Win 2003 Enterprise Edition.
    But when I try to connect to sqlplus, I am getting ORA -12154 : TNS: Listener could not resolve the connect identified specified.
    I have registered the database, the listener and tnsnames have been set correctly.
    I have also set the Oracle Home environment variable.
    Still getting the error.
    Any help will be highly appreciated.
    Thanks,

    I agree
    ORA-12145: (does not exist in the standard manuals)
    ORA-12154: TNS:could not resolve the connect identifier specified
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    ORA-12541: TNS:no listener
    It is pretty easy to fat-finger these 4 message numbers. As a result, when a person has the actual and complete error message and an error number for a different message, it is usually not a bad idea to use the actual message. (Based on transposing only 3 digits compared to typing over 50 characters correctly.)
    In this case the OP has really bollixed things: Subject implies a true 12154, text in the thread is an actual 12514 but mentions 12154.
    As a result, there are several potentially correct answers, depending on the interpretation of the question.
    - sb92075 gave the correct answer based on the number
    - I gave the correct answer based on the message in the thread
    - Anurag and Ed gave the correct answer based on 'the question is not formed correctly'
    Edited by: Hans Forbrich on Jan 24, 2010 7:13 AM
    (BTW - ORA-12415 and ORA-12451 are the other permutations ... described http://download.oracle.com/docs/cd/B19306_01/server.102/b14219/e12400.htm#sthref3357)

  • My iphone 3g stays on the apple logo for about 4 minutes then flashes white and goes back to the apple screen, it repeats untill battery is flat,  every now and then im lucky enough to get it to turn on but not very often and then it freezes and repeats??

    hello my name is kirstie, i updated to firmware 4.2.1 .....my iphone 3g stays on the apple logo for about 4 minutes then flashes white and goes back to the apple screen, it repeats untill battery is flat,  every now and then im lucky enough to get it to turn on but not very often and then it freezes and repeats the same problem?? (if i turn the phone off my pressing the two buttons it wont keep rebooting, its only when i leave it after turning it on)
    I have reset the phone, full firmware restore, even downgraded back from firmware 4.2.1 to .3.1.3 official by using dfu mode and still doesnt fix.
    (i correctly got out of dfu mode after the downgrade)
    i can enter dfu mode and recovery, and update through itunes with no problem, but it doesnt fix the problem,
    i have searched and found no answer to this problem, every option availible to try that i know of i have tried and failed. i dont care about preserving my content i just want a fix. i have a good understanding how to operate software on a computer and shouldnt be too confused by any advice given, so plz even if the answer is very complex i wish to try anything, please help me to get my iphone working.

    Anyone have any suggestions? or is everyone else just as clueless as me !

  • I am batch processing in PS 2014 (watermark and saving as jpeg from ps file). I get the message for some but not all 'this file needs to be saved as a copy with this option'. And then I have to save it manually. Does anyone know why this happens? (It is j

    I am batch processing in PS 2014 (watermark and saving as jpeg from ps file). I get the message for some but not all 'this file needs to be saved as a copy with this option'. And then I have to save it manually. Does anyone know why this happens? (It is just a plain photoshop file, a watermark is added, then save as jpeg - the jpeg is saved to a different folder than the original photoshop file.)  It happens for about 10 of 30/40  files approximately . Thank you, Kathryn

    I believe I have figured it out - I need to flatten the image, even though there are no layers except for layer 0, first.

  • I have programmed iCal and Address book to sync via MobileMe. The info I type in iCal and Address Book on the MacBook Pro gets updated on the iPad, but not the other way around. Any hints?

    I have programmed iCal and Address book to sync via MobileMe. The info I type in iCal on the MacBook Pro get updated on the iPad, but not the other way around. Any hints?

    Levi G B ... Also found another thread by Davidfromsurfside on 10/14/11 0703A with the same problem. I responded on his thread "I have the same problem. IOS5 on iPad1, iPad2 and iPhone4S all with iCloud on. Lion 10.7.2 installed on my MacBookPro and iCloud set up/on. Any new iCal entry on either iPad or on the iPhone ends up via iCloud on both iPads and iPhone. BUT NOT ON THE MacBookPro. And iCal entry on the MacBookPro does NOT GET SENT to iCloud.com or to either iPad or the iPhone. This is a huge problem for me because I do all my office scheduling on the iPad or iPhone but rely on the MakeBookPro to print out daily client lists. I REALLY need to get this fixed...it is causing major business issues. " No one so far has had a fix....  :(

  • I installed win8 64bit on macbook pro. everything running good but i am not getting sound in speakers. i am getting sound in earphone/headphones but not in main speakers.

    i installed win8 64bit on macbook pro. everything running good but i am not getting sound in speakers. i am getting sound in earphone/headphones but not in main speakers.

    Have you checked System Preferences -> Sound to see the Output when nothing is plugged in the headphone jack? Also, check if the headphone jack shows a faint read-light, which is the optical laser.

  • I just bought an iMac now running OSX 10.8.4.  I have a G5 running OXS 10.5.8 - External HD connected to the G5 been using Time Machine to back up. Need to get my files, photos etc. but not applications etc. onto the iMac. How do I do it?

    I just bought an iMac now running OSX 10.8.4.  I have a G5 running OXS 10.5.8 - External HD connected to the G5 been using Time Machine to back up. Need to get my files, photos etc. but not applications etc. onto the iMac. How do I do it?

    David JHS21 wrote:
    Can I just plug the external hard drive into the iMac and copy the "Documents" and "Pictures" from the hard drive to the iMac?
    Not those whole folders, but their contents, maybe.
    If the user account now on the Mac has read rights to the user account(s) on the backups, yes.  If not, you may have to do some finagling. 
    Try the Browse Other Backup Disks option, per Time Machine - Frequently Asked Question #17.  If you find an account that can open those folders, restore what you want to an alternate location (#16 in the FAQ).
    If not try creating one or more accounts temporarily.

  • There are times when I try to start firefox 3.6 that it does not come up,but when I click it again, I get fire fox is running but not responing, close fire fox, or shut down computer. There are other times that it starts up normaly wit no probs

    # Question
    there are times when I try to start firefox 3.6 that it does not come up,but when I click it again, I get fire fox is running but not responding, close fire fox, or shut down computer. There are other times that it starts up normally wit no probs
    ..

    Not using any mouse pad, I have a very smooth desktop. But I just tried to use a sheet of A4 printing paper, but no result, the problem persisted.
    Someone on this forum suggested, that USB3 may interfere with the magic mouse.
    I have 2 LaCie HDD's about 70 cm away from the mouse, I use them on Thunderbolt. But in operation or not - the result is the same, the mouse plays up! Just now I was clicking the desktop and the mouse created a new folder!!
    Thanks for the advice, Bee
    Cheers, Gerd

  • Can get sound thru i tunes but not on internet

    can get sound thru i tunes but not on internet

    You are welcome. 
    As best as I can recall, the MacBook will try to remember your settings. 
    You can test it out - just hook your machine up to the TV and use it as a second display.  Try some sounds.
    -charlie

  • I get mail on my phone but not on my computor, all it shows is loading mail and nothing happens

    i get mail on my phone but not on my computor, all it shows is loading mail and nothing happens

    Hello,
    On the POP account it sounds like you have this checked...
    Mail>Preferences>Accounts>POP Account>Advanced tab>Remove copy from Server after downloading.

  • Tcode in production client but not in development & quality client

    I am facing this particular situation, I am seeing a particular Ztode which is in production client but not in development & quality client
    Is it possible to have a tcode in production client but not in development & quality client, If yes what would be the reasons for maining in production client but not in development & quality client

    It could be a local object that a person who has developer access in production created. This is unusual, but not unheard of.
    Or the transaction could have been deleted in DEV and the deletion transported to QA but not PRD.
    Rob

  • 11g on Win2k8R2 - ORA-12560 - Database up but not reachable

    Hello,
    i've got a serious issue with a production database which affects about 500 users. I already created a SR but by now i got no answer and i thought maybe someone here got an idea.
    What i did:
    - Installed Windows Updates via WSUS Offline
    - Rebooted the machine
    What works:
    - Database can be opened without a problem via sqlplus or "oradim -startup -sid xxx"
    - "tnsping xxx" works
    - listener can be started via "lsnrctl start" and shows a handler for xxx
    What does not work:
    - listener can NOT alternativel be started via "srvctl start listener" (PRCR-1079: Ressource ora.LISTENER.lsnr could not be started, CRS-5016, CRS-2674
    - database is not reachable via sql developer - not from my work client and not locally from the server itself
    - enterprise manager is extremely slow and gets timeouts (i can't login) when the database is open, when i shutdown the db em is really fast
    - alertlog is full of "Fatal NI connect error 12560 [...] opiodr aborting proccess unknown ospid (6696) as a result of ORA-609)
    What i tried to resolve the issue:
    - Uninstalled all Windows Updates which i installed -> no effect
    - rebooted the machine -> no effect
    - tried to start listener before the database or database before listener -> no effect
    - checked local_listener parameter which is automatically set by system when starting the database, also set by myself -> no effect
    - disabled windows firewall and antivirus -> no effect
    The thing is, that i just rebooted the machine and the database is perfectly up but not reachable. I really don't know if it's a good idea to change tns files etc. because it worked before the reboot.
    Anyone got an idea?
    Thank you very much!

    which OS user owns the grid software?
    which OS user owns the asm software?
    which OS user owns the Oracle DB software?
    Do you mean the windows service? I installed the database and grid software with the user oracle (with administrator privileges).
    The services are all owned by "local system", besides OracleOraCrs11g_home1TNSListener and OracleServiceSID (they are owned by ./oracle)
    which %ORACLE_HOME% is being used to start the listener?
    ORACLE_HOME=C:\app\oracle\product\11.2.0\grid
    what does %PATH% contain when invoking lsnrctl & similar utilities?
    Path=c:\app\oracle\product\11.2.0\dbname_1\bin;C:\app\oracle\product\11.2.0\grid\bin;[other windows paths]
    which OS user is logged onto the DB trying to start the listener & such?
    user "oracle" with administrative privileges, i used a command line started as administrator

  • Getting ORA-06502 error. Don't know why. Please help!

    I am getting the following error msgs and don't understand why?
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "SMSRPT.SP_DATA_CHECK", line 22
    ORA-06512: at line 6
    Here is my procedure. Can someone look at it and explain to me what i could possibly be doing wrong here.
    create or replace
    PROCEDURE sp_data_check(p_date number) is
    --DECLARE
    v_table_name VARCHAR2(35);
         v_string VARCHAR2(1024);
         v_result number;
         v_output VARCHAR2(1024);
    v_report_date VARCHAR2(8);
    v_dt VARCJAR2(8);
    CRLF char(2) := chr(10)||chr(13);
         CURSOR c_table is
              select table_name
              from user_tab_columns
              where COLUMN_NAME = 'REPORT_DATE'
              and table_name NOT LIKE '%BIN%';
         BEGIN
    OPEN c_table;
         loop
              FETCH c_table into v_table_name;
              exit when c_table%NOTFOUND;
              v_string:='select decode(max(report_date),'||p_date||',1,0)'|| ' from ' || v_table_name;
              execute immediate v_string into v_result;
    v_report_date:='select max(report_date)'|| ' from ' || v_table_name;
    excute immediate v_report_date into v_dt;
              v_output:=v_output||CRLF||v_table_name||': '||v_dt;
    end loop;
    if v_result =0 then
    sp_send_mail('reports@localhost','[email protected]',
    'Report Date Not There','The following tables do not have the correct report_date information:'||v_output);
    end if;
    close c_table;
    END;
    The bold section of my code is what i added that broke it. Before adding these lines of code it all worked fine.

    That worked. Here is the revised working program
    create or replace PROCEDURE sp_data_check(p_date number) is
    --DECLARE
    v_table_name VARCHAR2(35);
         v_string VARCHAR2(1024);
         v_result number;
         v_output VARCHAR2(1024);
    v_report_date VARCHAR2(100);
    v_dt VARCHAR2(100);
    CRLF char(2) := chr(10)||chr(13);
         CURSOR c_table is
              select table_name
              from user_tab_columns
              where COLUMN_NAME = 'REPORT_DATE'
              and table_name NOT LIKE '%BIN%';
         BEGIN
    OPEN c_table;
         loop
              FETCH c_table into v_table_name;
              exit when c_table%NOTFOUND;
              v_string:='select decode(max(report_date),'||p_date||',1,0)'|| ' from ' || v_table_name;
              execute immediate v_string into v_result;
    v_report_date:='select max(report_date)'|| ' from ' || v_table_name;
    execute immediate v_report_date into v_dt;
              v_output:=v_output||CRLF||v_table_name||': '||v_dt;
    end loop;
    if v_result =0 then
    sp_send_mail('reports@localhost','[email protected]',
    'Report Date Not There','The following tables do not have the correct report_date information:'||v_output);
    end if;
    close c_table;
    END;

  • Firefox 29.0.1 on Windows 7 (64-bit): ALWAYS get "Firefox is already running but not responding..." error and need Task Manager to close/restart Firefox.

    I run Firefox 29.0.1 on Windows 7 (64 bit) and I get the "Firefox is already running but not responding. In order to open the program you must close the existing window." error. EVERY TIME I try to start Firefox. The posted solution works to start the program, but it is not a permanent solution. I go through the Task Manager and end the old Firefox process, then I can open a new window. While working, I can open multiple tabs and multiple windows, everything seems to (usually) work the way it should. Then after I completely exit Firefox, in order to open the program again I need to fix the SAME error again. Every time. It doesn't seem to hurt anything really, but it is quite annoying.
    I used to get this same error on some of the older Firefox versions but it was only once in a while. With the new 29.0.1 it is literally EVERY TIME I TRY TO RUN FIREFOX!!!!
    So, down to the big question: is there a permanent fix for this yet? Or will there be one included in the next version update? Or am I going to have to go back to Internet Explorer? I know I am not alone in this experience; i've seen several other users posting similar questions but none of them received satisfactory answers. So what's the story here, team Firefox?

    '''https://support.mozilla.org/questions/997866?esab=a&s=&r=1&as=s'''.<BR>
    This is not a cure but will make it easier if Firefox locks up.

Maybe you are looking for