Migrating 7.3.4 to 8.1.7 - whitespace? issue

We are migrating 7.3.4 to 8.1.7. We are aware of the need to ltrim/rtrim varchars, etc. I am looking for the Oracle documentation of the change that requires these changes. Can anyone point me to the text of this change? Is the migration guide on-line?
thanks.

found the original document on this bug fix -
WebIV:View NOTE:130132.1     
Article-ID: <Note:130132.1>
Circulation: REVIEW_CHANGES (EXTERNAL)
Folder: PLSQL
Topic: Problem and Solution Articles
Title: ORA-06502 Encountered When Converting Character to Number
Open-Remarks: See <RemarksOn:NOTE:130132.1>
Document-Type: PROBLEM
Impact: MEDIUM
Skill-Level: ACCOMPLISHED
Updated-Date: 04-APR-2001 15:08:15
References: <<BUG:571545>>
Shared-Refs:
Authors: MMCLAUGH.US
Attachments: NONE
Content-Type: TEXT/PLAIN
Products: 11/PLSQL;
Platforms: GENERIC;
This article is being delivered in Draft form and may contain
errors. Please use the MetaLink "Feedback" button to advise
Oracle of any issues related to this article.
Problem Description
You have just upgraded from Oracle7 or Oracle8 to Oracle8i (8.1.6 or higher)
and your PL/SQL code is failing with the following error:
Error Messages:
Potential Error #1:
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at line 46
Potential Error #2:
ORA-01722: invalid number
Sample Code to Generate the Error
-- Enable serverout to display DBMS_OUTPUT package calls.
SET SERVEROUTPUT ON SIZE 1000000
-- Drop test table.
DROP TABLE caste;
-- Create test table to support example program cursor.
CREATE TABLE caste (variable_number NUMBER);
-- Insert one row into the test table.
INSERT INTO caste VALUES (1);
-- An anonymous block PL/SQL program to test problem.
-- The program works in releases prior to Oracle8i (8.1.6).
DECLARE
|| Declare a VARCHAR2 datatype and initialize it with a whitespace
|| and a NUMBER datatype to store output of a NUMBER datatype
|| stored in the database.
var_in VARCHAR2(30) := ' ';
var_out NUMBER;
|| Declare a cursor that accepts a NUMBER datatype as a parameter.
CURSOR testing (var_in NUMBER) IS
SELECT NVL(variable_number,8) value_in
FROM caste
WHERE variable_number = var_in;
BEGIN
|| Display counts of the var_in variable as a whitespace.
DBMS_OUTPUT.PUT_LINE('var_char <'||var_in||'>');
|| Declare a FOR-LOOP and pass the VARCHAR2 datatype with a whitespace
|| into the CURSOR testing that is defined as accepting a NUMBER
|| datatype.
FOR i IN testing (var_in) LOOP
var_out := i.value_in;
END LOOP;
DBMS_OUTPUT.PUT_LINE('var_out is <'||var_out||'>');
END;
Sample code output in Oracle7 and Oracle8:
var_char < >
var_out is <>
Sample code output in Oracle8i (8.1.6 or newer):
DECLARE
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at line 35
Solution Description
1. Rewrite all code to pass a null, or '' value into a VARCHAR2 datatype
that will pass a value to a NUMBER datatype.
2. Redesign your PL/SQL programs so that strong datatyping principles
are used and do not pass VARCHAR2 datatype by design into NUMBER
type by implicit casting, use explicit casting with the TO_NUMBER()
and TO_CHAR() functions, as described in Chapter 2 of the PL/SQL
User's Guide for versions newer than PL/SQL 2.0.
3. If your intent is to caste a VARCHAR2 null to a zero, then you can
use the following assignment to a NUMBER datatype variable named
"p_converted" from a VARCHAR2 datatype name "p_unconverted":
p_converted := TO_NUMBER(NVL(p_unconverted,0));
Explanation
Prior to Oracle8i (8.1.6), you could assign a whitespace in a VARCHAR2 datatype
to a NUMBER datatype without encountering an error because the whitespace would
be implicitly caste to a null. Unfortunately, the behavior that allowed this
implicit caste caused a TO_NUMBER() function call to return a zero instead of
raise an "ORA-01722: invalid number" error, as described in <BUG:571545>.
Therefore, customers upgrading from Oracle7 or Oracle8 to Oracle8i will find
that code that previously did not raise an exception will now raise and
exception becasue passing a VARCHAR2 datatype with a whitespace value into a
NUMBER datatype is in appropriate and calling the TO_NUMBER() function to
return a zero from a whitespace is incorrect.
References
<Bug:571545

Similar Messages

  • I changed my system on my mac 10.6.8 by doing a migration of my data and now i do find issues when i open logic, like i cant close it anymore (need to use the force quit option) if i ll bounce anything it will crash and same thing will happen if i wanna i

    i changed my system on my mac 10.6.8 by doing a migration of my data and now i do find issues when i open logic, like i cant close it anymore (need to use the force quit option) if i ll bounce anything it will crash and same thing will happen if i wanna import something, if anybody has a idea??

    Hi
    This any help?
    http://support.apple.com/kb/TS3968
    CCT

  • Migrate custom reports UCCX 8.0 to 9.0 issue

    Dear all,
    We migrated UCCX 8.0 to the new UCCX 9.0. After the migration the customized reports (designed with old version of Crystal Reports) not work in the new CCX Historical Reports 9.0.
    Any idea or procedure to migrate easy the customized reports from UCCX 8.0 to 9.0 without re-design the report with Crystal Reports 11?
    Thanks so much!

    The advice I have seen in this forum, many times, is that you do NOT have Acrobat and Reader installed together, since some components are the same (same module name?) and installing Reader causes problems for Acrobat

  • Migrating SQL Server database to Oracle 8i - any known issues

    Hi,
    I am in the process of migrating SQL Server database to Oracle 8i for testing purpose.
    When I do migrate SQL Server database to Oracle 8i, am I doing any harm to the exiting
    SQL Server database? Would the users be able to use SQL Server database as usual?? Are
    there any known issues in this regard?
    Please reply.
    Thanks.
    Ramesh

    Hi,
    I am in the process of migrating SQL Server database to Oracle 8i for testing purpose.
    When I do migrate SQL Server database to Oracle 8i, am I doing any harm to the exiting
    SQL Server database? Would the users be able to use SQL Server database as usual?? Are
    there any known issues in this regard?
    Please reply.
    Thanks.
    Ramesh Hi Ramesh!
    The Migration Workbench does not make any modifications to the SQL Server database. It only reads information from it. Your users should be able to use the SQL Server database as usual.
    Please note however that if you migrate the data over to Oracle using the Migration Workbench and your users continue to enter/update data in the exiting SQL Server database then you may need to move all that data over again in order to have the most up to date data in the Oracle database.
    thanks
    - Garry

  • Migration from BO XI R2 to BI 4.0 issue

    Hi ,
    we are migrating from BOXIR2 TO BI 4.0 through upgrade manager tool , we are choosing the incremental upgrade option , but it gives the error as attached after the summary screen .
    The screenshot of the error is as mentioned below
    Upgrade process has been interrupted by an error : XSD file parsing exception occurred : =Restriction could not find base type metadata : base ="io Object" (FWM04011)
    Regards,
    Charu Thareja

    Hi Charu,
    This seems to be a known issue that is going to be fixed in Patch 9
    https://service.sap.com/sap/support/notes/1663459
    Regards,
    Julian

  • Migrated from weblogic 8.1 to 10.2. Issue with Message center transactions

    we recently migrated from webloguc 8.1 to weblogic 10.2. When mesasage center is accessed, we are getting below exception. It is working fine in weblogic 8.1 .
    <Name=[EJB AccountServicesBean.submitAddressChangeRequest(AccountServicesInfo,java.lang.String,java.lang.String)],
    Xid=BEA1-0310676F13BEAC935370(464474497),Status=Rolled back.
    [Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out after 60 seconds
    BEA1-0310676F13BEAC935370],HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepliesOwedOthers=0,
    seconds since begin=131,seconds left=60,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=
    (ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback,assigned=managed4),
    xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@1baf6254,re-Registered = false),
    SCInfo[admin+managed4]=(state=rolledback),SCInfo[server_2+server_2_managed2]=(state=rolledback),
    properties=({weblogic.transaction.name=
    [EJB AccountServicesBean.submitAddressChangeRequest(AccountServicesInfo,java.lang.String,java.lang.String)],
    START_AND_END_THREAD_EQUAL=false, weblogic.jdbc=t3://myserver.com}),
    OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=
    (CoordinatorURL=managed4+myserver.com+admin+t3+,
    XAResources={WSATGatewayRM_managed4_admin, weblogic.jdbc.wrapper.JTSXAResourceImpl,
    WLStore_admin__WLS_managed4},NonXAResources={})],
    CoordinatorURL=managed4+myserver.com+admin+t3+) completed heuristically:
    (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.transaction.xa.XAException:
    No connection associated with
    xid = BEA1-0310676F13BEAC935370-7765626C6F6769632E6A6462632E777261707065722E4A545358415265736F75726365496D706C)) >
    Please help us in resolving it.

    Hi,
    A general rule to follow is to make sure that WebLogic Server JTA timeout (either global, specific to an EJB or for individual transactions) is set to a lower value than the shortest timeout value configured/set for a participating XA resource (e.g., XA Transaction Timeout for Oracle XA JDBC connections). Not doing so can lead to an unexpected and inconsistent distributed transaction outcome, i.e., a participating XA Resource timing out before WebLogic Server JTA as the distributed transaction coordinator. The timed out XA Resource may take action to resolve its own part of the distributed transaction before WebLogic Server can take action. This will lead to heuristic error messages at the time when the WebLogic transaction manager tries to prepare/commit the distributed transaction.
    The solution was for the JDBC Connection Pools to set the XASetTransactionTimeout to true and XATransactionTimeout to zero. When this parameter is set to zero, the XAResource Session Timeout will be set to the global transaction timeout.
    Regards,
    Kal

  • Migrating "Documents" from one user to another without permission issues

    Hi,
    I'm facing an issue with permissions on files I have moved from one users "documents" to another users "documents" folder.
    To cut a long story short, I have installed a new HD in my iMac and have cleanly installed Snow Leopard. In addition I have created a new user (user1) and have also used time machine to recover my original user files using migration assistant (user2).
    I wanted to start off with a fresh user (user1), so wanted to copy specific files across from my old account (user2) but no application files or settings.
    I have managed to do this for iPhoto, iMovie, iTunes, Mail, iCal and Address Book, however I'm having issue with my "Documents" folder.
    Basically I think I initialy moved the "user2" (old) Documents folder into the "shared user" account, logged into "user1" (new) and copied over the files. I thought it was all good, however when my Wife attempted to duplicate her resume to edit a new version OS X requests the users password, also we are unable to rename an existing file or open the documents then save, as we do not have the correct permissions.
    I have looked at the permissions and it shows that
    user2(old) has read/write
    staff has read
    everyone has read
    This appears to be the same for all files(except "staff" is replaced with "wheel"). When I add user1(new) read/write to the list and apply to all subfile, it does not update all files. I really don't want to be updating all the files seperatly.
    Since doing this I also moved the files back to user2(old) then used "copied" the documents folder in the same way as above. Still the same issue.
    Is there a correct way of moving files between users which will remove any permission issues? As I must have done something wrong.
    Thanks
    Chris

    To move files from Account A to Account B:
    1) Log in as A
    2) Move all the files to /Users/A/Public (don't move any system-created folders like Documents, Pictures, etc. Just move their contents.)
    3) Log in as B
    4) Navigate with Finder to /Users/A/Public
    5) Drag the files to the Desktop (this will make new copies of them with correct permissions for B)
    6) File the new files away in the appropriate places in B's home folder
    7) Log in as A and delete the original copies of the files from A's home folder
    If you have already moved files from A to B the incorrect way (i.e. by using /Users/Shared) and are running into permissions issues, fix them by logging in to an Admin account and entering these two Terminal commands:
    sudo chown -R userb ~userb (this one changes ownership of everything in B's home folder to B)
    sudo chmod -R u+rwX ~userb (this one ensures that B can read and write to everything in his home folder)

  • Database migrated from Oracle 10g to 11g Discoverer report performance issu

    Hi All,
    We are now getting issue in Discoverer Report performance as the report is keep on running when database got upgrade from 10g to 11g.
    In database 10g the report is working fine but the same report is not working fine in 11g.
    The query i have changed as I have passed the date format TO_CHAR("DD-MON-YYYY" and removed the NVL & TRUNC function from the existing query.
    The report is now working fine in Database 11g backhand but when I am using the same query in Discoverer it is not working and report is keep on running.
    Please advise.
    Regards,

    Pl post exact OS, database and Discoverer versions. After the upgrade, have statistics been updated ? Have you traced the Discoverer query to determine where the performance issue is ?
    How To Find Oracle Discoverer Diagnostic and Tracing Guides [ID 290658.1]
    How To Enable SQL Tracing For Discoverer Sessions [ID 133055.1]
    Discoverer 11g: Performance degradation after Upgrade to Database 11g [ID 1514929.1]
    HTH
    Srini

  • JAPPLET Application migration from JDK1.2.2_07 to JDK1.4.2_10 - Issues

    Hi
    We have a JAPPLET application that is using SWING components. So far the development and maintenance of this application has been done using JDK1.2.2_07. Now we wanted to upgrade to JDK1.4.2_10 for some enhancements to this application. Regarding this upgrade we have the following questions.
    1.Does JDK1.4.2_10 have the complete backward compatibility up to JDK1.2.2_07?
    2.What sort of possible rework to the existing features required? Main components and features that this application has are menus, tables, tree tables, printing, tabbed and framed views.
    3.What sort of upgrades is required for user�s environment?
    I would be very grateful if you could help me with answers to these questions. Also help me with any other suggestions related to this upgrade.
    Thanks & Regards
    Srini

    Yes you can use SPA to do the test even if you are on RBO on 9.2.0.8..0.
    It is not necessary to go in cbo before the test.
    Use metalink Note.562899.1 TESTING SQL PERFORMANCE IMPACT OF AN ORACLE 9i TO ORACLE DATABASE 10g RELEASE 2 UPGRADE WITH SQL PERFORMANCE ANALYZER
    You will need to put your optimizer statistics gathering strategy in place and tune the sqls on 10.2.0.4.0 using cbo. SPA will help in doing the testing.
    you can validate the outcome of your tuning actions using SPA and even use sql tuning advisor to tune some of the sqls, if needed.
    Hope this helps.
    Thanks
    Ashish

  • Migration from EP6SP2 to EP6SP11

    Hi All,
    We are currently live in EP6SP2 Patch 4 for Portal and CM for around 3000 users...My client is interested in migrating to the current EP6SP11 Netweaver'04 version.
    Would like to discuss with anyone who has done the same...would know the following before deciding :
    1) Is the migration tools stable ? We need to migrate Portal roles and Content Management.
    2) Any issues faced during migration.
    Regards,
    Rajan.K

    Hi Rajan,
       Let me suggest that you read through the migration guide if you haven't already. (they are on service marketplace) It will run you through the prereques.  For one thing you will have to migrate to EP6SP09 and then upgrade to SP11.
    As far as issues go, I have found that each customer has slightly different issues in there migration project.  Again going through the guide will help you decide if there are potential places where you will run into problems.
    Also there is a SDN forum specifically for Portal migration.
    Good luck with your plans
    John

  • PDP pages do not get restored in database migration

    Hi All,
    I have an issue while performing database migration. Let me explain the scenario. The issue is that I had migrated 4+1 databases, i.e., 1 Content db and 4 Project Server DBs. We have only 2 site collections listed in DB, PWA and Top level root site collection,
    obviously when I restored the content DB, the PWA site is also restored. So I deleted that as I need to provision a new one with the same name. So after restoration, I provisioned a new PWA site with the restored databases. It provisioned perfectly and our
    data like projects, custom fields, etc are present. Also EPT pages are listed but they are not working reason being PDP pages are not restored in the migration. I tried this migration on 2 separate environments as well apart from this one and same is the case
    in all restoration. Though there are ways to get the PDP pages like using Playbook tool or configuring Manually again, but as per the concept it should be migrated along with the content database.
    Can anyone please help in such situation as how can we get the PDP pages in database migration? Is there anything that I am missing?
    Thanks, Sumit Gupta SharePoint Consultant MCP, MCTS, CCNA

    Hi,
    The PDPs reside in a document library within the PWA site. You mentioned above when you did the 4+1 restore you deleted the PWA site, the main benefit of doing a 4+1 is that you don't lose the contents of your PWA site and effectively wire it back up on
    the new instance.
    If you restore again, this time, do not delete the PWA site and perform the reprovision, this will take your four Project server databases and then wire them back up to the PWA site (which includes your PDPs).
    In answer to your other question, yes Playbooks can be used to move PDP's between environments.
    So in short, don't delete the PWA site post content DB migration :)
    Hope this helps.
    Alex Burton
    www.epmsource.com |
    Twitter
    Project Server TechCenter |
    Project Developer Center |
    Project Server Help | Project Product Page

  • How to migrate from existing Database Usermanagement to Active Directory?

    Hello experts,
    we are running a portal with more than 2000 users. So far our user management is done by the portal´s own identity management with the database as data source.
    However for many reasons instead of the database we would like to use an existing company´s Active Directory (=AD) as a data source for identity management. That means that we would like only to use the AD-users and AD-groups in the portal.
    All users who are in the portal´s database now you can find also in the existing company´s Active Directory. Luckily the users have the same ID both in the database and in the AD.
    We know that the migration form the database to AD is a big issue since many portal objects depend on the existing structures. However because the IDs of users are identical in both systems we hope to finde a way to "override" the existing usermanagement data with the AD data without loosing the existing settings (e.g. KM-Permissions, user profiles etc.).
    Generally I am asking you if you have had already experience with changing the user management´s datasource of an already "living" portal (several 1000 users) to Active Directory User Managent.
    What problems can occour?
    Which modifications need to be done?
    Which portal´s objects are affected by the migration?
    Is a migration possible at all?
    I will appreciate all suggestions, remarks, ideas.
    Thanks in advance.
    Thomas

    Hello experts,
    the current permissions in the KM-Objects are based on both groups and users from database.
    Because it is not possible to modify the Group´s Display Name in the portal´s database we would also like to use LDAP-Groups in the portal: All users and groups in the portal shall be managed by Active Directory in future.
    In the Active Directory it is possible to modify the Display Name of groups. This is a necessary feature because of reorganisations of departments in our company which occur from time to time.
    Creating new groups with the new department names is not an option because one has to assign all department members to the new group again. Otherwise one need to asign the new group to the ACLs of all KM objects in question. This is a too big deal.
    However, thank you for that hint Michael.
    Any other experiences?
    I will appreciate any ideas, foreseen problems.
    Thomas

  • Exchange server name not changing in mail profile after migration from 2010 to 2013

    Following a migration from 2010 to 2013 we are finding that for a number of users the old exchange server address stays in the mail profile (control panel -> mail -> e-mail accounts) which causes Outlook not to load.
    We are able to go into control panel -> mail -> e-mail accounts and change this manually to the new exchange 2013 server address but we have quite a number of users and don't really want to do it manually.
    Shouldn't it be updating automatically and if so why is it?

    Hi,
    Yes, it should be changed by autodiscover. Does this issue occur to all the migrated users?
    I have seen this kind of issues before when migrating from Exchange 2003/2007 to Exchange 2010. The most efficient way is to rebuild the Outlook profile.
    Thanks,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • Migrating to new machine - time for a new library?

    I am going to be setting up my new iMac (24-inch 3.06 GHz, 4GB Ram, 1TB HD) over the weekend. I have a VERY large iTunes library, over 50,000 items. I find that using iTunes on my current system (Powerbook G4, 17-inch, 1.67 GHz, 2GB Ram) is very sluggish.
    I realize that it is probably because of the age of the computer and such, and I am hoping that the new computer will not have the same issues.
    THE QUESTION: Should I migrate the current library file to the new machine? OR will starting over and adding ALL of my music to a brand new library actually help the problem?
    Thanks in advance for your responses!

    Use the Migration Manager. If you use the same user name on your PB and transfer to the new Mac then using that same user name then all will be well. I made a mistake of using a different user name on my new MBP and had such problems that I did a reinstall and re-Migrated form a clone to get rid of all issues.
    The migration will take a bit of time - dependent on how much 'stuff' you have to transfer. Time to take in a movie.
    MJ

  • Migration of Microsoft SQL Server 7.0 Takes A Long Time

    I just installed Migration Workbench yesterday and tried to run
    it. It seems take a long time trying to load source tables.
    (Almost 6-7 hours!) But no error message showed up. I finally had
    to cancel it. Is it normal? Please advice.
    - Brian Luo
    null

    Thanks, that definitely would help.
    - Brian
    Oracle Migration Workbench Team wrote:
    : Hi Brian,
    : The full production version will be available on the 8.1.6
    : release 2 CD early next year.
    : The release that is downloadable now from Technet is very close
    : to production. We have a number of customers who have already
    : completed full migrations with this release. If you encounter
    any
    : issues please foward them on and we will deal with them asap.
    : By the way, for our next release we have added a check into the
    : SQL Server 6.5 and SQL Server 7.0 plugin that checks what
    version
    : of SQL Server you are connecting to. It will report an error if
    : you are connecting to an incompatible version. I guess this
    would
    : have saved you some time.
    : Regards
    : John
    : Brian Luo (guest) wrote:
    : : Thanks for your response. I was using 1.2.2.2 to migrate a
    SQL
    : : Server 7.0 schema. But I found in this thread that it only
    : : supports migration from SQL Server 6.5. I just downloaded the
    : : beta version of Migration Workbench 1.2.4. It seems to be
    : : working. I wonder when the official version that supports SQL
    : : Server 7.0 will be available?
    : : - Brian
    : : Oracle Migration Workbench Team wrote:
    : : : Hi Brian,
    : : : This is not normal behavior. Unless the schema you are
    trying
    : : to
    : : : migrate is huge e.g. hundreds of tables and stored
    : procedures,
    : : : the workbench should be able to load it un under 1 hour.
    : : : Does your schema have a lot of stored procedures and
    tables?
    : : : Are you using any foreign character sets?
    : : : Regards
    : : : John
    : : : Brian Luo (guest) wrote:
    : : : : I just installed Migration Workbench yesterday and tried
    to
    : : run
    : : : : it. It seems take a long time trying to load source
    tables.
    : : : : (Almost 6-7 hours!) But no error message showed up. I
    : finally
    : : : had
    : : : : to cancel it. Is it normal? Please advice.
    : : : : - Brian Luo
    : : : Oracle Technology Network
    : : : http://technet.oracle.com
    : Oracle Technology Network
    : http://technet.oracle.com
    null

Maybe you are looking for

  • Actionable Framework in OBIEE 11g

    Hi Experts, I have a queryon the "Actionable Intelligence" in OBIEE 11g. I came to know we can invoke external bussiness applications in OBIEE through these. We have a .NET application which we want to invoke in OBIEE presentation through this. It sh

  • Dynamic Class Instantiation with getDefinitionByName

    Ok so I am trying to follow the following example in instantiating a class dynamically: http://nondocs.blogspot.com/2007/04/flexhowtoinstantiate-class-from-class.html My AS3 code looks like this: var myClassName:String = event.templateName; //Alert.s

  • Preview Release of WebLogic Portal 9 and Workshop 9

    I would like to get my hands on a developer preview release of WebLogic Portal 9 and Workshop 9. I can't seem to find it online so I'm hoping someone can point me in the right direction. We're currently evaluating portal products and I would hate to

  • Click To Activate and Use this control message in IE

    I have this message popping up only on the IE "Click To Activate and Use this control message". I googled it and there are a few solutions but somehow they did not really work for me. Is really that complicated to get a fix on that message. Does anyo

  • Lost channel strips

    I'm using Logic Studio 8, mostly working with software instruments.  I just opened one of my project files, and it appears that many of my channel strips and software instrument settings have been lost.  A few of the channel strips, and a few of the