Does CHAR data type work with Forms 11g

We have an application in Forms 11g (32bit - version 11.1.2.0.0). DB is a Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production.
When our Forms calls a stored procedure which has parameters defined using column name type (i.e. like p_customer_code customers.code%TYPE ) and if the column data type is CHAR we get a run time error when executing the package (ORA-06502: PL/SQL: numeric or value error string).
When we change the data type of the tables column to varchar2, it works??
Problem is we have dozens of tables with CHAR data type columns and we can't do all the changes manually. For one thing, if they are part of a primary or unique key or even foreign key, we can't change the data type of the column without dropping the constraint.
What is the solution to this pls??

When our Forms calls a stored procedure which has parameters defined using column name type (i.e. like p_customer_code customers.code%TYPE ) and if the column data type is CHAR we get a run time error when executing the package (ORA-06502: PL/SQL: numeric or value error string).this might also be related to compile settings, check your NLS settings (NLS_LANG, NLS_LENGTH_SEMANTICS) both times when you compile forms AND your stored procedures.
As for the CHAR datatype: CHAR internally is treated like a blank padded varchar:
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1542606219593
Speaking of that it might be time to use varchar2 instead your char columns. You'd have to drop and recreate your constraints, but with the help of the data dictionary (+user_tables+, user_tab_cols, user_cons_columns, user_constraints) and dbms_metadata this shouldn't be that hard.
Also you'd of course need to recompile all your forms after you are finished, but I guess you are aware of that ;)
cheers

Similar Messages

  • Unicode and non-unicode string data types Issue with 2008 SSIS Package

    Hi All,
    I am converting a 2005 SSIS Package to 2008. I have a task which has SQL Server as the source and Oracle as the destination. I copy the data from a SQL server view with a field nvarchar(10) to a field of a oracle table varchar(10). The package executes fine
    on my local when i use the data transformation task to convert to DT_STR. But when I deploy the dtsx file on the server and try to run from an SQL Job Agent it gives me the unicode and non-unicode string data types error for the field. I have checked the registry
    settings and its the same in my local and the server. Tried both the data conversion task and Derived Column task but with no luck. Pls suggest me what changes are required in my package to run it from the SQL Agent Job.
    Thanks.

    What is Unicode and non Unicode data formats
    Unicode : 
    A Unicode character takes more bytes to store the data in the database. As we all know, many global industries wants to increase their business worldwide and grow at the same time, they would want to widen their business by providing
    services to the customers worldwide by supporting different languages like Chinese, Japanese, Korean and Arabic. Many websites these days are supporting international languages to do their business and to attract more and more customers and that makes life
    easier for both the parties.
    To store the customer data into the database the database must support a mechanism to store the international characters, storing these characters is not easy, and many database vendors have to revised their strategies and come
    up with new mechanisms to support or to store these international characters in the database. Some of the big vendors like Oracle, Microsoft, IBM and other database vendors started providing the international character support so that the data can be stored
    and retrieved accordingly to avoid any hiccups while doing business with the international customers.
    The difference in storing character data between Unicode and non-Unicode depends on whether non-Unicode data is stored by using double-byte character sets. All non-East Asian languages and the Thai language store non-Unicode characters
    in single bytes. Therefore, storing these languages as Unicode uses two times the space that is used specifying a non-Unicode code page. On the other hand, the non-Unicode code pages of many other Asian languages specify character storage in double-byte character
    sets (DBCS). Therefore, for these languages, there is almost no difference in storage between non-Unicode and Unicode.
    Encoding Formats: 
    Some of the common encoding formats for Unicode are UCS-2, UTF-8, UTF-16, UTF-32 have been made available by database vendors to their customers. For SQL Server 7.0 and higher versions Microsoft uses the encoding format UCS-2 to store the UTF-8 data. Under
    this mechanism, all Unicode characters are stored by using 2 bytes.
    Unicode data can be encoded in many different ways. UCS-2 and UTF-8 are two common ways to store bit patterns that represent Unicode characters. Microsoft Windows NT, SQL Server, Java, COM, and the SQL Server ODBC driver and OLEDB
    provider all internally represent Unicode data as UCS-2.
    The options for using SQL Server 7.0 or SQL Server 2000 as a backend server for an application that sends and receives Unicode data that is encoded as UTF-8 include:
    For example, if your business is using a website supporting ASP pages, then this is what happens:
    If your application uses Active Server Pages (ASP) and you are using Internet Information Server (IIS) 5.0 and Microsoft Windows 2000, you can add "<% Session.Codepage=65001 %>" to your server-side ASP script.
    This instructs IIS to convert all dynamically generated strings (example: Response.Write) from UCS-2 to UTF-8 automatically before sending them to the client.
    If you do not want to enable sessions, you can alternatively use the server-side directive "<%@ CodePage=65001 %>".
    Any UTF-8 data sent from the client to the server via GET or POST is also converted to UCS-2 automatically. The Session.Codepage property is the recommended method to handle UTF-8 data within a web application. This Codepage
    setting is not available on IIS 4.0 and Windows NT 4.0.
    Sorting and other operations :
    The effect of Unicode data on performance is complicated by a variety of factors that include the following:
    1. The difference between Unicode sorting rules and non-Unicode sorting rules 
    2. The difference between sorting double-byte and single-byte characters 
    3. Code page conversion between client and server
    Performing operations like >, <, ORDER BY are resource intensive and will be difficult to get correct results if the codepage conversion between client and server is not available.
    Sorting lots of Unicode data can be slower than non-Unicode data, because the data is stored in double bytes. On the other hand, sorting Asian characters in Unicode is faster than sorting Asian DBCS data in a specific code page,
    because DBCS data is actually a mixture of single-byte and double-byte widths, while Unicode characters are fixed-width.
    Non-Unicode :
    Non Unicode is exactly opposite to Unicode. Using non Unicode it is easy to store languages like ‘English’ but not other Asian languages that need more bits to store correctly otherwise truncation will occur.
    Now, let’s see some of the advantages of not storing the data in Unicode format:
    1. It takes less space to store the data in the database hence we will save lot of hard disk space. 
    2. Moving of database files from one server to other takes less time. 
    3. Backup and restore of the database makes huge impact and it is good for DBA’s that it takes less time
    Non-Unicode vs. Unicode Data Types: Comparison Chart
    The primary difference between unicode and non-Unicode data types is the ability of Unicode to easily handle the storage of foreign language characters which also requires more storage space.
    Non-Unicode
    Unicode
    (char, varchar, text)
    (nchar, nvarchar, ntext)
    Stores data in fixed or variable length
    Same as non-Unicode
    char: data is padded with blanks to fill the field size. For example, if a char(10) field contains 5 characters the system will pad it with 5 blanks
    nchar: same as char
    varchar: stores actual value and does not pad with blanks
    nvarchar: same as varchar
    requires 1 byte of storage
    requires 2 bytes of storage
    char and varchar: can store up to 8000 characters
    nchar and nvarchar: can store up to 4000 characters
    Best suited for US English: "One problem with data types that use 1 byte to encode each character is that the data type can only represent 256 different characters. This forces multiple
    encoding specifications (or code pages) for different alphabets such as European alphabets, which are relatively small. It is also impossible to handle systems such as the Japanese Kanji or Korean Hangul alphabets that have thousands of characters."<sup>1</sup>
    Best suited for systems that need to support at least one foreign language: "The Unicode specification defines a single encoding scheme for most characters widely used in businesses around the world.
    All computers consistently translate the bit patterns in Unicode data into characters using the single Unicode specification. This ensures that the same bit pattern is always converted to the same character on all computers. Data can be freely transferred
    from one database or computer to another without concern that the receiving system will translate the bit patterns into characters incorrectly.
    https://irfansworld.wordpress.com/2011/01/25/what-is-unicode-and-non-unicode-data-formats/
    Thanks Shiven:) If Answer is Helpful, Please Vote

  • Why does my imessage not work with only 1 phone number

    Why does my imessage not work with only 1 phone number? It keeps going to imessage and then back to text message

    Both you and the recipient have to have active data connections, and both devices have to have iOS 5 or higher to be able to use iMessage. Also, they both have to have iMessage activated. If that is already the case, there is a possiblility that iMessage is down. It has gone up and down several times in the past week. Check this page for status, and if necessary you can report a problem with a link in the lower right corner. http://www.apple.com/support/icloud/systemstatus/

  • Initialization for char data type?

    I observed that as String I can declare something like this:
    String str = ""; but for char data type, if I declare:
    char ch = ''; the compiler will have an error: "empty character literal". So how can I fixe this problem when I want to initialize my char variables as "empty"? Anyone got an idea?
    Message was edited by:
    hoangSoccer
    Message was edited by:
    hoangSoccer

    Strings (and StringBuffers/Builders) are collections* of characters - so it makes
    sense to be able to refer to a String with precisely zero characters. But char is not a collection of anything - it has whatever value it has and can never
    be empty.
    *collections with a small 'c'.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Does Informatica 7.1 work with Oracle 10g?

    Hi All,
    I have Oracle 10g (10.2.0.1.0) and I just installed Informatica 7.1. While creating a new repository in Informatica Repository Admin Console, I am getting error as:
    "Unable to create the repository content. Make sure that the database connection and the license keys are correct. Check the activity log for more details."
    I confirmed that the license keys are correct. The database connection is also good as I could connect using the same username/password in SQLPlus. The activity log says:
    WARNING : RS_39204 [Mon Mar 22 15:05:38 2010] : (5160|5392) Bad config file [Config\infrepo-es.cfg]. Has it been manually named and placed in the Config directory? The expected name is [Config\_Yrepository_0name_Z-es.cfg].
    ERROR : RS_39194 [Mon Mar 22 15:51:52 2010] : (5160|5568) Failure in running command-line request type[100401] [pmrepagent create -r "Info_Repo" -t "Oracle" -u infrep -c orcl -d "MS1252" -h sathe-3766a91ad -o 9999  -a Info_0Repo-es.lic -H "sathe-3766a91ad" -O 5001 -K 2082340862]. Error is [An error occurred while creating the repository.
    I did not change anything manually,as it says in the warning. I have no idea what the error says.
    My friend has Oracle 9i and he do not get any error like this. So does Informatica 7.1 works with Oracle 10g ?
    Please help.
    Yogini                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I found that with Oracle 10g you have to grant all DBA privileges to the repository user. This is not needed in Oracle 9i. Thats why I was getting error.
    Now it works fine.
    Thanks!
    Yogini

  • Does ipad 4 A1460 work with CDMA ?

    Hi
    I have unlocked ipad 4 from saudi arabia model
    A1460 on the iPad (4th generation) Wi-Fi + Cellular (MM)
    Now I'm In yemen i have few question
    does ipad 4 A1460 work with CDMA network in yemen (YEMENMOBILE) ?
    if it work can i switch b/w CDMA and GSM when i move b/w Yemen and Saudi ?
    can i buy cdma data plan +sim card and install it in ipad ? or there is other way ?

    The A1460 model is infact CDMA capable.
    Maldukhn wrote:
    does ipad 4 A1460 work with CDMA network in yemen (YEMENMOBILE) ?
    Probably not.  CDMA unlike GSM is not unlockable. The Settings for CDMA networks must be provisioned into the CDMA chip at the time of manufacturing, and its very difficult to modify this after the fact.  Also CDMA devices must be registered with the carrier they will be assigned to.  They must exist in the carrier's database beforehand.
    Maldukhn wrote:
    if it work can i switch b/w CDMA and GSM when i move b/w Yemen and Saudi ?
    If the Yemen provider issues you a Sim card, you can insert that into the GSM sim card slot on the iPad and connect to their network that way, again if they support it.   This would not be CDMA but GSM.
    Maldukhn wrote:
    can i buy cdma data plan +sim card and install it in ipad ? or there is other way ?
    No such thng as a CDMA sim card. sim cards are only for GSM.   Again if the Yemen carrier offers sim cards to connect to their network you can insert it into the sim card slot and use their service that way if they support it as such.
    I suggest you contact the Yemen carrier and ask about their device policies. BYOD (Bring Your Own Device) is not normally  an accepted policy with CDMA carriers.

  • Does microsoft office 2011 work with lion

    does microsoft office 2011 work with lion

    ...since upgrading from a Macbook pro to a retina pro (with the latest OS) I cannot get Outlook to work, it freezes when I try to add my email accounts info...
    The latest OS is 10.8.2. You've posted in the Lion (OS 10.7.x) forum.
    ...I don't have a clue what can be going wrong, it was all working fine on my macbook pro with Snow Leopard and the same setup is not working with Mountain Lion on the retina, ...The only reason I upgraded from Office 2008 was because I couldn't get it to stop closing down every few seconds with 'a problem'...
    Different operating systems canNOT be the "same setup."
    In my original installation of Office 2011 on a 2007 MBP with OS 10.6.8, I followed the guidelines Tips for a Successful Install. In launching Outlook 2011 for the first time, it recognized that I had Entourage 2004 and I was chose the option to have all the data transferred to Outlook 2011. While that was well over a year ago, I'm fairly certain that I did not need to manually set up my multitude of existing email accounts. Subsequently, I've added new accounts. A couple of months ago, I got a new mid-2012 MBP (non-retina) with OS 10.7.4. I used Pondini's advice , which I found here in the Apple Support Community for OS 10.7, to setup the new MBP from the old MBP with Setup Assistant. Afterwards, I manually installed my applications. I am certain that I did not need to manually setup any email accounts when I launched Outlook 2011.
    That said, if you did not fix the problem that you were experiencing with Office 2008 (and more specifically Entourgage 2008) but migrated that data to your new rMBR, then your problem may lie within the old data. You have not provided information on how you installed Office 2011, if your setup of Outlook is as new or datea ported from Entourage, and what troubleshooting steps you have tried. As Kurt Lang suggested, the Microsoft Community would be best with your specific issues as stated.
    HTH

  • Is it possible to have your whole family on one apple id or is it better to have each person have there own? If each has their own does each id have to buy their own music and apps? How does find my iphone work with one apple id or two?

    Is it possible to have your whole family on one apple id or is it better to have each person have there own? If each has their own does each id have to buy their own music and apps? How does find my iphone work with one apple id or two? also I am going to be going off to college soon should I make an itunes id for my self and how will I get all the music from the old id?

    Is it possible to have your whole family on one apple id or is it better to have each person have there own?
    Yes, it is possible. 1 apple ID can be associated with up to 10 devices.
    If each has their own does each id have to buy their own music and apps?
    Yes, all purchases are non-transferable.
    How does find my iphone work with one apple id or two?
    Every device associated with one apple ID through Find my iPhone is tied to that Apple ID; Find my iPhone will work in the same way with up to ten devices associated with one apple ID. You cannot enable Find my iPhone for one device across two apple IDs
    I am going to be going off to college soon should I make an itunes id for my self and how will I get all the music from the old id?
    If you have authorized a computer with the old apple ID, you can transfer old media purchased through the old to other devices via iTunes. This doesn't mean the media purchases through the old apple ID it transferred to the new account. If you plan to make future purchases and don't wish to share them with others, make your own apple ID.

  • DOES THE APPLE REMOTE WORK WITH THE IPOD TOUCH..? WITHOUT A DOCK..

    HI
    DOES THE APPLE REMOTE WORK WITH THE IPOD TOUCH 5TH GEN..? WHITHOUT A DOCK..??
    THANKS ANYONE

    This Apple remote requires a dock since this remote uses IR and the iPod does not ha IR capibility,.
    Manufacturer Information
    Apple Remote with iPod and iPhone: Please note a Universal Dock is required in order to use the Apple Remote with your iPhone or iPod.
    http://store.apple.com/us/product/MC377LL/A/apple-remote?

  • Does the apple remote work with the ipod touch 4th gen?

    Does the apple remote work with the ipod touch 4th gen?

    Yes, but it also requires Apple's Universal Dock to go along with it.  Otherwise, it is useles.
    B-rock

  • HT201335 does the Ipod touch work with the airplay mirroring

    Does the Ipod touch work with airplay mirroring?

    No. Only iPhone 4S and iPad (2nd or 3rd Gen) as it requires more processing power. You can still use airplay with your device though.

  • Does the ipod video work with the original ihome?

    does the ipod video work with the original ihome?

    Welcome to Apple Discussions!
    If you mean this one...
    http://www.ihomeaudio.com/products.asp?productid=10015&deptid=1003
    Them yes. I am using one myself. You may want to purcahse these if it does not come with them (depending on how old it is)
    http://www.ihomeaudio.com/products.asp?productid=10016&deptid=1000
    btabz

  • Does the iPod Mini Work with Windows?

    I am thinking of buying an iPod mini but I don't have an Apple computer. Does the iPod mini work with Windows efficiently? Thanks....

    Hello Ian,
    Can you be really specific about the necessary Windows XP updates needed? I run XP Pro on a rather new computer and just got an IPOD mini. I'm ready to tear my hair out because iTunes seems to crash my computer every time I change one CD for another. iTunes runs REALLY, REALLY slow for me. Also read on the board that iTunes 6.0 and the mini don't work well together. True or not true?
    Thanks - Genevieve

  • Does the Ipod nano work with microsoft XP?

    Does the ipod nano work with MS windows XP? itunes will recognize my Nano 7G, therefor I cannot sync,

    Have you try putting your ipod into disk mode if you need help putting it in disk mode here's a page from apple
    of how to put your ipod nano into disk mode: http://support.apple.com/kb/ht1363

  • Does photoshop elements 13 work with windows vista?

    I have V10 and a Windows Vista PC that is fast and paid for,
    Thinking of purchasing new software from Adobe.
    Does photoshop elements 13 work with Windows Vista?

    No. Windows 7 or Windows 8.x only.
    System requirements | Adobe Photoshop Elements

Maybe you are looking for