Code encountered error in 10g, but ok in 9i

What is the problem with this code ?
It works fine in Oracle 9i (9.2.0.4.0)
But it encountered an error when run in Oracle 10g (10.2.0.4.0 - 64bi), at
"{color:#0000ff}ave_rec(g_average_var).rec_1 := ave_rec(g_average_var).rec_1 + '12';{color}".
{color:#ff0000}ERROR at line 1:
ORA-01403: no data found
ORA-06512: at line 40{color}
Thanks/Rgds
tsp
<quote>
{color:#0000ff}Declare
Type averagerec is record
(rec_1 number := 0,
rec_1_cnt number := 0,
rec_2 number := 0,
rec_2_cnt number := 0,
rec_3 number := 0,
rec_3_cnt number := 0,
rec_4 number := 0,
rec_4_cnt number := 0,
rec_5 number := 0,
rec_5_cnt number := 0,
rec_6 number := 0,
rec_6_cnt number := 0,
rec_7 number := 0,
rec_7_cnt number := 0,
rec_8 number := 0,
rec_8_cnt number := 0,
rec_9 number := 0,
rec_9_cnt number := 0,
rec_10 number := 0,
rec_10_cnt number := 0,
rec_11 number := 0,
rec_11_cnt number := 0,
rec_12 number := 0,
rec_12_cnt number := 0,
rec_13 number := 0,
rec_13_cnt number := 0);
g_average_var number := 1;
Type averagerec_tab is table of averagerec index by PLS_INTEGER;
{color}
{color:#0000ff}
ave_rec averagerec_tab;
begin
{color}
{color:#0000ff}
ave_rec(g_average_var).rec_1 := ave_rec(g_average_var).rec_1 + '12';
dbms_output.put_line('ave_rec(g_average_var).rec_1 '||ave_rec(g_average_var).rec_1);
end;{color}
<un-quote>
Edited by: user6469330 on Jan 7, 2009 11:39 PM
Edited by: user6469330 on Jan 8, 2009 1:14 AM
Edited by: no one on Jan 8, 2009 5:45 PM
Edited by: no one on Jan 8, 2009 5:46 PM

Try the below:
Sybrand is right 10g is more fussy about your code being 'right'. 9i is doing an implicit initialisation for you where 10g does not.
Regards,
Harry
Declare
Type averagerec is record
(rec_1 number := 0,
rec_1_cnt number := 0,
rec_2 number := 0,
rec_2_cnt number := 0,
rec_3 number := 0,
rec_3_cnt number := 0,
rec_4 number := 0,
rec_4_cnt number := 0,
rec_5 number := 0,
rec_5_cnt number := 0,
rec_6 number := 0,
rec_6_cnt number := 0,
rec_7 number := 0,
rec_7_cnt number := 0,
rec_8 number := 0,
rec_8_cnt number := 0,
rec_9 number := 0,
rec_9_cnt number := 0,
rec_10 number := 0,
rec_10_cnt number := 0,
rec_11 number := 0,
rec_11_cnt number := 0,
rec_12 number := 0,
rec_12_cnt number := 0,
rec_13 number := 0,
rec_13_cnt number := 0);
g_average_var number := 1;
fred averagerec;
Type averagerec_tab is table of averagerec index by PLS_INTEGER;
ave_rec averagerec_tab;
begin
ave_rec(g_average_var):=fred;
ave_rec(g_average_var).rec_1 := ave_rec(g_average_var).rec_1 + '12';
dbms_output.put_line('ave_rec(g_average_var).rec_1 '||ave_rec(g_average_var).rec_1);
end;

Similar Messages

  • Error in 10g but not in 9i

    Hi
    i have configured modplsql and used DADs to execute some packages from my database to run my web application. When i create DADs on Application server 9i release 1, it works fine but on 10g(9.0.4) it is giving my following error
    I really cant understand, whether its a PL/SQL error or its error because of Application server. Dafinately this error is because assigning NULL to a NOT NULL variable or assigning charachter to a numeric variable but why its running successfully on 9iAS but giving following error on 10g
    Sat, 11 Feb 2006 07:51:58 GMT
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 10
    DAD name: int_applink
    PROCEDURE : wl_common.menu_page
    URL : http://naran.lhr.systemsltd.com:7779/pls/int_applink/wl_common.menu_page?p_major=wl_major_menu.exists_user&p_minor=wl_minor_menu.no_menu&p_entnameshort='LizLink'&p_request_id=137
    PARAMETERS :
    ===========
    p_major:
    wl_major_menu.exists_user
    p_minor:
    wl_minor_menu.no_menu
    p_entnameshort:
    'LizLink'
    p_request_id:
    137
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Oracle-Application-Server-10g/9.0.4.0.0 Oracle-HTTP-Server
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=7779
    SERVER_NAME=naran.lhr.systemsltd.com
    REQUEST_METHOD=GET
    QUERY_STRING=p_major=wl_major_menu.exists_user&p_minor=wl_minor_menu.no_menu&p_entnameshort='LizLink'&p_request_id=137
    PATH_INFO=/wl_common.menu_page
    SCRIPT_NAME=/pls/int_applink
    REMOTE_HOST=
    REMOTE_ADDR=192.168.0.136
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTP
    REMOTE_USER=weblogin
    ORACLE_SSO_USER=
    HTTP_CONTENT_LENGTH=
    HTTP_CONTENT_TYPE=
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
    HTTP_HOST=naran:7779
    HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    HTTP_ACCEPT_ENCODING=gzip, deflate
    HTTP_ACCEPT_LANGUAGE=en-us
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=liz_request=1716357630
    HTTP_IF_MODIFIED_SINCE=
    HTTP_REFERER=http://naran:7779/pls/int_applink/wl_selection.goto_exists_user?p_entnameshort='LizLink'
    HTTP_SOAPACTION=
    HTTP_ORACLE_ECID=1139644318:192.168.0.24:28792:0:824,0
    HTTP_ORACLE_CACHE_VERSION=
    HTTP_AUTHORIZATION=
    WEB_AUTHENT_PREFIX=
    DAD_NAME=int_applink
    DOC_ACCESS_PATH=docs
    DOCUMENT_TABLE=wpg_document
    PATH_ALIAS=
    REQUEST_CHARSET=WE8ISO8859P1
    REQUEST_IANA_CHARSET=ISO-8859-1
    SCRIPT_PREFIX=/pls
    HTTP_IF_MATCH=
    HTTP_CACHE_CONTROL=
    SOAP_BODY=
    HTTP_X_ORACLE_DEVICE_CLASS=
    HTTP_X_ORACLE_DEVICE_ORIENTATION=
    HTTP_X_ORACLE_DEVICE_MAXDOCSIZE=
    HTTP_X_ORACLE_DEVICE=
    HTTP_X_ORACLE_ORIG_ACCEPT=
    HTTP_X_ORACLE_ORIG_USER_AGENT=
    HTTP_X_ORACLE_USER_LOCALE=
    HTTP_X_ORACLE_USER_NAME=
    HTTP_X_ORACLE_USER_DISPLAYNAME=
    HTTP_X_ORACLE_USER_USERKIND=
    HTTP_X_ORACLE_USER_AUTHKIND=
    HTTP_X_ORACLE_USER_DEVICEID=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE1=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE2=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLASTLINE=
    HTTP_X_ORACLE_USER_LOCATION_BLOCK=
    HTTP_X_ORACLE_USER_LOCATION_CITY=
    HTTP_X_ORACLE_USER_LOCATION_COMPANYNAME=
    HTTP_X_ORACLE_USER_LOCATION_COUNTY=
    HTTP_X_ORACLE_USER_LOCATION_STATE=
    HTTP_X_ORACLE_USER_LOCATION_POSTALCODE=
    HTTP_X_ORACLE_USER_LOCATION_POSTALCODEEXT=
    HTTP_X_ORACLE_USER_LOCATION_COUNTRY=
    HTTP_X_ORACLE_USER_LOCATION_TYPE=
    HTTP_X_ORACLE_USER_LOCATION_X=
    HTTP_X_ORACLE_USER_LOCATION_Y=
    HTTP_X_ORACLE_SERVICE_HOME_URL=
    HTTP_X_ORACLE_SERVICE_PARENT_URL=
    HTTP_X_ORACLE_HOME_URL=
    HTTP_X_ORACLE_MODULE_CALLBACK_URL=
    HTTP_X_ORACLE_MODULE_CALLBACK_LABEL=
    HTTP_X_ORACLE_CACHE_USER=
    HTTP_X_ORACLE_CACHE_SUBID=
    HTTP_X_ORACLE_CACHE_AUTH=
    HTTP_X_ORACLE_CACHE_DEVICE=
    HTTP_X_ORACLE_CACHE_LANG=
    HTTP_X_ORACLE_CACHE_ENCRYPT=
    HTTP_X_ORACLE_ASSERT_USER=
    ****************************************************************

    URL :
    http://naran.lhr.systemsltd.com:7779/pls/int_applink/w
    l_common.menu_page?p_major=wl_major_menu.exists_user&p
    minor=wlminor_menu.no_menu&p_entnameshort='LizLink'&
    p_request_id=137
    PARAMETERS :
    ===========
    p_major:
    wl_major_menu.exists_user
    p_minor:
    wl_minor_menu.no_menu
    p_entnameshort:
    'LizLink'
    p_request_id:
    137are you sure this url worked before? You pass 'LizLink', but I do not think that quotes ( ' ) are supported in url's. There should be no need for it anyway.

  • Itouch 3rd gen not recognised in Windows vista but ok in itunes (code 10 error)

    Windows Vista pc running latest itunes. pc will recognise itouch 3rd gen in itunes but not in  explorer. device driver posts a code 10 error. checked for update driver, response in latest driver installed (digital camera). Need help to be able to download photos in itouch.

    Thanks IIIaass, I have checked to see that the Vista pc hase the lastest driver (confirmed latest drivers, incl MTP USB drivers) and tried uninstalling and reinstalling itunes no luck.
    I am having the same problem on another computer running windows 7 - itunes ok but code 10 error as well. I have also tried uninstalling and reinstalling itunes on this pc as well - no luck.
    Any other suggestions?

  • How to fix Adobe App Manager error code -60 Download appears corrupt but only for Photoshop CS6 app

    How to fix Adobe App Manager error code -60 Download appears corrupt but only for Photoshop CS6 Creative Suite Cloud App. Many attempts were made to install Photoshop CS6 with Adobe Application Manager without success. Every other Creative Suite Application was successfully downloaded. I keep getting Installation Failed when attempting the Photoshop install. How does one correct this?

    Thanks Jeff! So, it totally appears as if it was a network issue. The corporate network where I work is quite likely the culprit. Where I was thrown off is that since I have admin rights on my computer, I can install software. But using Adobe Application Manager to install Adobe software wasn't working. And to make matters worse, there didn't appear to be any way to install Acrobat Pro for Mac without using AAM. The workaround that I used previously was to install the trial versions of Adobe software, and then just register them using my username and password. But the workaround for being able to install everything using AAM was to bring my computer home and download from my home network.

  • When installing Adobe Illustrator CS6, the Installer says "Your installation encountered errors" but error summary file lists 0 fatal errors, 0 errors, 0 warnings.

    How should I proceed?
    I'm running Windows 7.

    Sure! Here it is:
    "Installation Failed
    Your installation encountered errors.
    The error summary file may help you identify the issue.
    More troubleshooting tips:
    1. Restart your computer.
    2. Exit all applications including startup items, virus checking and firewall software.
    3. Close this window and launch the installer again to reinstall your application.
    If the problems persist, please contact Customer Support for further assistance."
    I tried all three of the tips suggested in the troubleshooting.
    The error summary file says:
    Exit Code: 20
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 0 error(s), 0 warning(s)

  • I own acrobat 9 pro and had to re-download the program from a computer issue but when i get the serial code from the adobe website it give me serial code invalid error.  i am using copy and paste to prevent miss typing the code.

    i own acrobat 9 pro and had to re-download the program from a computer issue but when i get the serial code from the adobe website it give me serial code invalid error.  i am using copy and paste to prevent miss typing the code.

    Hi Lawrence,
    Please try the steps mentioned in the KB: https://helpx.adobe.com/creative-suite/kb/error-invalid-serial-number-acrobat.html
    Regards,
    Rave

  • I cannot connect to FaceTime, encountered "error processing registration, please try later" message on my Macbook Air, but I don't have this problem on my IMac. Can anyone help?

    I cannot connect to FaceTime, encountered "error processing registration, please try later" message on my Macbook Air, but I don't have this problem on my IMac. Can anyone help?

    I have the same problem on my iMac. My facetime has been working, but now I'm getting the same error as You. I've been through the following:
    The stuff that Linc Davis suggested, new profile on iMac, moved iMac into DMZ zone with no firewall rules, tested with other Apple-ID, checked hosts file, checked different timezone settings, tried to connect to 2 mobile APs (with diferent providors), changed DNS servers (ISP's DNS + Google DNS + Open DNS) - Nothing helped. Also talked to Apple Support, since i have Apple Care, but the seem to be a bit clueless also Well I've mailed them the results of my different tests, so lets see what they come up with - Unfortunately I'm sure it will be the same suggestion as all the major PC manufactures suggests, reinstall and test - RIGHT !!!!!!
    If I get solution, I'll post it here.
    Kind Regards
    Kim

  • Encountering error code U44M11210

    Encountering error code U44M11210 when trying to update Bridge CS6 5.0.2. Any suggestions most welcome.

    I'm having the same issue none of the newly installed products will update.  I've tried for days and it errors out each time.
    I'm on a new windows 7 64bit computer.  The products run just fine just will not update.
    This is what shows up in the error log:
    Adobe Bridge CS6 5.0.2 Update
    There was an error installing this update. Please quit and try again later. Error Code: U44M1U5
    Photoshop Camera Raw 7.3
    There was an error installing this update. Please quit and try again later. Error Code: U44M1U5
    Adobe Photoshop 13.0.1.1
    There was an error installing this update. Please quit and try again later. Error Code: U44M1U5
    Extension Manager 6.0.4 Update
    There was an error installing this update. Please quit and try again later. Error Code: U44M1U5
    Dynamic Link Media Server CS6 1.0.1 Update
    There was an error installing this update. Please quit and try again later. Error Code: U44M1U5
    Adobe CSXS InfrastructureCS6
    There was an error installing this update. Please quit and try again later. Error Code: U44M1U5
    Adobe Application Manager
    There was an error installing this update. Please quit and try again later. Error Code: U44M1P210
    Adobe Bridge CS6 5.0.2 Update
    There was an error installing this update. Please quit and try again later. Error Code: U44M1U5

  • When trying to download iTunes, I get an error message saying "the instaler encountered errors before iTunes could be configured. Errors occured during installation."  But it gives me no more information as to what I can do.  Help please?

    When trying to download iTunes, I get an error message saying "the instaler encountered errors before iTunes could be configured. Errors occured during installation."  But it gives me no more information as to what I can do.  Help please?

    Also I now can`t access any of my itunes library and am concerned that if I remove it from my computer I will lose everything as I have no option of accessing and therefore backing anything up. Any ideas?

  • Problem Re-Installing Creative Cloud - trying to uninstall and reinstall creative cloud bc of problems. encountering Error Code: 86 - "Another version of Creative Cloud desktop is currently running. To continue, pls quit that instance and click retry." No

    trying to uninstall and reinstall creative cloud bc of problems. encountering Error Code: 86 - "Another version of Creative Cloud desktop is currently running. To continue, pls quit that instance and click retry." No other CC exists on my computer anymore. Advice?

    If you are on MAC Open Activity Monitor and check for Creative Cloud, it it Running Quit it
    MAC HD /Applications/Utilities/Activity Monitor
    If you are on Windows check in task manager
    Ctrl + shift +  Esc keys

  • Net flix error code 114:503 ... but netflix work on laptop fine...

    net flix error code 114:503 ... but netflix work on laptop fine...

    Same issue here.  Looking at the history of the forums, it looks like this happens every 1 to 3 months and is resolved within 24 hours.  I have a PS3 with netflix streaming.  I switch back and forth between the two when Netflix somehow screws things up on one or the other.  If you call netflix, they say to call Apple or Sony.  It's usually Netflix's problem.  Glad they raised the price for a service that is so reliable (sarcasm).

  • HT3910 i did it all above. but it could not be installed. problems shows installer encountered error that caused the installation to fail. an unknown error occured. so now what should i do.

    i did it all above. but it could not be installed. problems shows installer encountered error that caused the installation to fail. an unknown error occured. so now what should i do.

    The above you are talking about refers to instructions for Snow Leopard (10.6) and you did post in the Snow Leopard forum area.
    Your system profile confirms you are actually using Lion (10.7.1).  Therefore, you should seach for Lion instructions in the Apple's Knowledge Base or post over in the Mac OS X v10.7 Lion forum area.

  • Wls 8.1 - error code 302 for unauthorized request - but 401 required

    having the following configuration in my web.xml
         <error-page>
            <error-code>401</error-code>
            <location>/login/error401.jsp</location>
        </error-page>
        <login-config>
            <auth-method>FORM</auth-method>
            <realm-name>myrealm</realm-name>
            <form-login-config>
              <form-login-page>
                 /login/index.jsp
              </form-login-page>
              <form-error-page>
                 /login/index.jsp
              </form-error-page>
          </form-login-config>
        </login-config>I expect that if I request a page not being authorized for, the weblogic server returns the error-code 401.
    But instead the code 302 (moved temporarily) is returned and the user is redirected to the configured login-page (/login/index.jsp).
    What do I need to do, in order to get a 401 errorcode for a form-based authentication?

    having the following configuration in my web.xml
         <error-page>
            <error-code>401</error-code>
            <location>/login/error401.jsp</location>
        </error-page>
        <login-config>
            <auth-method>FORM</auth-method>
            <realm-name>myrealm</realm-name>
            <form-login-config>
              <form-login-page>
                 /login/index.jsp
              </form-login-page>
              <form-error-page>
                 /login/index.jsp
              </form-error-page>
          </form-login-config>
        </login-config>I expect that if I request a page not being authorized for, the weblogic server returns the error-code 401.
    But instead the code 302 (moved temporarily) is returned and the user is redirected to the configured login-page (/login/index.jsp).
    What do I need to do, in order to get a 401 errorcode for a form-based authentication?

  • Running Oracle 9i client code against an Oracle 10g install on PC

    On Unix I am able to run Oracle 9i client code against an Oracle 10g install by setting ORACLE_HOME to the Oracle 10g install location and then creating a symbolic link (example: ln -fs libclntsh.so.10.1 libclntsh.so.9.0).
    On PC (in particular XP SP2) I want to do something similar without using "junctions" or "junction points". Is there a way to set an environment variable or ini file to have my 9i client code point to the right libraries? I keep getting an error saying that my client code will not run due to "orasql9.dll" not being found. The "orasql10.dll" is installed on my machine.
    Any assistance would be appreciated.

    You might want to check metalink doc,
    Client / Server / Interoperability Support Between Different Oracle Versions
    Doc ID: Note:207303.1
    Even your application built on 9i, doesn't mean it will not work with 10g database. From what I can see, running 9i executable under 10g installation to create mixed blood breed will do more harm than good. Not only it's not supported but also the outcome is unpredictable.

  • Error on Installing CS5.1, CS6 - Exit Code 15, ERROR: Media DB Error 6

    Hi. I am trying to install Photoshop CS6 trial on my machine (win 8 x64) but all the time it returns the error:
    Exit code : 15
    Summary
    - 0 fatal error(s), 1 error(s), 0 warning(s)
    ERROR: Media DB Error : 6
    I have already used all the steps described on the forum (restarting the PC, downloading again the app, using Adobe Clean Tool) and no success. I even tried to install Photoshop CS5.1, but it goes with the very same error.
    I currently have Fireworks CS6 installed, which I managed to install several months ago without a problem. However, when I try to uninstall it, it shows me also an error message:
    UNINSTALL FAILED
    Your uninstallation encountered errors.
    Troubleshooting tips:
    1. Restart your computer.
    2. Exit all applications [...]
    3. Uninstall again.
    You may also download & run the Cleaner Tool. If the problems persist, please contact Customer Support for further assistance.
    Well... here I am, Customer Support!
    I can't seem to make this thing work. I've passed my whole weekend reading about it on the web and no solution found whatsoever. How can I sort it out, please?
    Thank you,

    After using the Adobe Clean tool, I checked its output log and it mentioned it couldn't find a "caps.db" in the Common Files/Adobe/caps/ folder under Program Files or Program Files (x86).
    So what I did: I manually deleted the Adobe folders from:
    - Program Files
    - Program Files (x86)
    - Program Files (x86)/Common Files
    After that, I was able to install successfully Photoshop CS5.1 and at this very moment I'm able to install PS CS6 (it's been already 50% of the installing progress).
    So far, this action of deleting the Adobe folders from my Program Files folders seems to be sorting out the matter...

Maybe you are looking for

  • Preview for XFCE Panel Window Buttons?

    In Windows 7 taskbar, theres a useful feature where mouse over taskbar icons (window buttons) will show a preview of the window, is there something like that for XFCE?  Its veryuseful especially when I have many PDF open and all icons look like a bla

  • Help with ORBER BY in my query when negative numbers are involved

    hi, I have SELECT * FROM my_table WHERE age = 5 ORDER BY photoSmall DESC my_table looks like this: key | age | photoSmall 1 25 2 2 25 3 3 25 1 4 25 -1 now, i would expect my results to be ordered as follows: firstly record 2 (because it has the highe

  • Missing purchased history items

    hello some of my purchased items are missing and cant downloadable unless i pay them again. but i already bought them and now i just want to re download them. even in mac itunes apps tab i cant see them street fighter 4 real racing 2 etc.. please hel

  • Mac Pro 2007 can't upgrade to Yosemite

    Hi I am unable to upgrade to Yosemite. Is it possible or do I have to give away my Mac Pro 2007 and get a new one? Please advice. Thanks!

  • Dv6 -2155 TV

    i have dv6 -2155 laptop. this laptop have integrated tv tuner but donot veiw the tv. because not found epg channel