Varchar2(8) field with 7 characters gives length = 8

table1
uoe varchar2(8) has a 7-character string in it 'bnorton'
when inserted into (insert into...select from)
table2
uoe varchar2(8) it becomes an 8 character string.
1. I can't tell what the extra character is.
2. temporarily goes away if I rebuild the table with the
original script
3. cannot dump the extra char with ltrim(rtrim())
4. doesn't happen with all tables in the collection
version8.1.7.2.0
stored procedure

This forum is for general suggestions and feedback about the OTN
site. For technical question about an Oracle product, you can
use the appropriate discussion forum in our 'Discussions' section
at: http://forums.oracle.com/forums/homepage.jsp
You can also use our new offering called OTN Service Network:
For Oracle Advice/Minimal Support (fee based) on Reports, Forums,
SQL*Plus, and PL/SQL, please go to:
http://www.oracle.com/start/otnServiceNetwork/intro.html?src=9123
86&Act=6
For customers with paid support (Metalink) please go to:
http://www.oracle.com/support/metalink

Similar Messages

  • To display text field with more than 1000 length in ALV

    Hi Friends,
           I need to display material long text field which is more than 1000 length in ALV or Object oriented ALV.
    Please help me to resolve the issue.
    Regards,
    Jaya.

    Hi,
    U mean to say in a single cell of ALV ??
    It is not possible in ALV .. As per OSS note 857823
    Below is the reason for same.. I think you should to split in number of columns.
    Summary
    Symptom
    Entries in cells of the type CHAR or string are truncated after 128 characters in the SAP GUI.
    Other terms
    ALV Grid Control (cl_gui_alv_grid), function module (Full-screen)
    Grid (Reuse_alv_grid_display, SAPLSLVC_FULLSCREEN), SAPGUI, back end, front end
    Reason and Prerequisites
    The data table that is sent to the front end only allows character values with the length 128.
    Solution
    This is the standard system behavior and cannot be changed.

  • Oracle and MySql via ODBC - Field with special characters

    Hi,
    I recentely installed and configured DG4ODBC 11.2 in my environment, with Oracle 10g as Database. I have a working ODBC and I can successfully select from tables@mysql.
    I have a problem with some fields in the mysql table though: various fields are named "Attività", "Località" and so on. Please, note the "à" character.
    Now if I select @mysql from some table with normal field name everything works fine. But in some case I have this error:
    [MySQL][ODBC 5.1 Driver][mysqld-5.0.77]Unknown column 'A1.attivit??A commessa'
    in 'field list' {42S22,NativeErr = 1054}
    The field true name is "attività commessa" and if in a test database I rename the field changing that "à" with a normal "a" everything start working. But of course, that is a production database and I can't change the field name.
    Anyone faced that problem before?
    My init entry:
    HS_FDS_CONNECT_INFO = myodbc5
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libmyodbc5.so
    HS_FDS_SQLLEN_INTERPRETATION=32
    HS_FDS_FETCH_ROWS=1
    HS_LANGUAGE=ITALIAN_ITALY.I8EBCDIC280
    set ODBCINI=/usr/local/etc/odbc.ini
    set SQL_MODE='ANSI_QUOTES'
    Note: I added HS_LANGUAGE and SQL_MODE but tried even without those entries and it's still not working.
    My odbc.ini:
    [myodbc5]
    Driver = /usr/lib64/libmyodbc5.so
    Description = MySQL Driver DSN
    SERVER = xxx.xxx.xxx.xxx
    PORT = 3306
    USER = user
    Password = pass
    Database = sm_test
    OPTION = 3
    SOCKET =
    CHARSET = latin1
    P.S.: Please don't kill me, I'm not the creator of the Mysql database with those field names!

    I've created your test table in my Oracle database using this extra character and I'm able to describe it properly.
    SQL> desc test;
    Name Null? Type
    ATTIVITÀ VARCHAR2(40)
    My character set being used is:
    SQL> select * from v$nls_parameters;
    NLS_CHARACTERSET
    WE8ISO8859P15
    NLS_NCHAR_CHARACTERSET
    AL16UTF16
    NLS_LENGTH_SEMANTICS
    BYTE
    So as long as it doesn't work for you in your native Oracle database I don't think it would work with DG4ODBC. So yes, it would be best to log a service request so that the Oracle database support can check out the NLS issue.
    Edited by: kgronau on Sep 28, 2011 9:21 AM
    To be complete here the describe of the MySQL table native and using DG4ODBC:
    mysql> create table TEST (attività Varchar(40));
    Query OK, 0 rows affected (0.00 sec)
    mysql> desc TEST;
    ---------------------------------------------------+
    | Field | Type | Null | Key | Default | Extra |
    ---------------------------------------------------+
    | attività | varchar(40) | YES | | NULL | |
    ---------------------------------------------------+
    1 row in set (0.00 sec)
    SQL*Plus: Release 11.2.0.2.0 Production on Wed Sep 28 09:20:17 2011
    SQL> desc "gateway"."TEST"@MYSQL_DG4ODBC_EMGTW_1122_DB;
    Name Null? Type
    attività VARCHAR2(80)
    So in general it should work.

  • Desktop Mailer truncates address field to 30 characters w/ Lorton NCOA

    My database fields include a primary address field and a secondary address field, both with 48 characters maximum length.
    After running the Lorton NCOA process using Business Objects Desktop Mailer Extended Services, data in the secondary address field had been truncated to 30 characters.  A Lorton technician assured me that Lorton had not done it, but that it was apparently a problem with Desktop Mailer.
    No truncation appears to take place for the primary address field when data length > 30 characters.
    Can anyone confirm this behavior and present a solution?

    Harry,
    This is actually a limitation of Lorton.  This was included in the users guide for 7.90 on page 124
    "When you perform Extended Services NCOALink, DSF2, or ZIP4 processing, Lorton Data returns 48 characters for the Address Line 1 field and 30 characters for Address Line 2 u2014 except in the case of move-updated records. If your Address Line 1 field and Address Line 2 field are set up longer than 48 and 30 characters, respectively, data in those fields will be truncated, and you may lose data. Move-updated records receive a total of 48 characters split between Address Line 1 and 2."
    We are working with Lorton hopefully change this in the future.
    Thanks,
    Kendra

  • ORA-01461 Error when mapping table with multiple varchar2(4000) fields

    (Note: I think this was an earlier problem, supposed fixed in 11.0, but we are experiencing in 11.7)
    If I map an Oracle 9i table with multiple varchar2(4000) columns, targeting another Oracle 9i database, I get the ORA-01461 error (Can't bind a LONG value only for insert into a LONG).
    I have tried changing the target columns to varchar2(1000), as suggested as a workaround in earlier versions, all to no avail.
    I can have just one varchar2(4000) map correctly and execute flawlessly - the problem occurs when I add a second one.
    I have tried making the target column a LONG, but that does not solve the problem.
    Then, I made the target database SQL Server, and it had no problem at all, so the issue seems to be Oracle-related.

    Hi Jon,
    Thanks for the feedback. I'm unable to reproduce the problem you describe at the moment - if I try to migrate a TEXT(5), OMWB creates a VARCHAR(5) and the data migrates correctly!! However, I note from you description that even though the problematic source column datatype is TEXT(5), you mention that there are actually 20 lines of text in this field (and not 5 variable length characters as the definition might suggest).
    Having read through some of the MySQL reference guide I note that, in certain circumstances, MySQL actually changes the column datatype specified either at table creation time or when interfacing with other databases ( ref 14.2.5.1 Silent Column Specification Changes and 12.7 Using Column Types from Other Database Engines in the MySQL reference guide). Since your TEXT(5) actually contains 20 lines of text, MySQL (database or JDBC driver .... or both) may be trying to automatically map the specified datatype of the column to a datatype more appropriate to storing 20 lines of text.... that is, to a LONG value in this case. Then, when Oracle is presented with this LONG value to store in a VARCHAR(5) field, it throws the ORA-01461 error. I need to investigate this further, but this may be the case - its the first time I've see this problem encountered.
    To workaround this, you could change the datatype of the column to a LONG from within the Oracle Model before migrating. Any application code that accesses this column and expects a TEXT(5) value may need to be adjusted to cope with a LONG value. Is this a viable workaround for you?
    I will investigate further and notiofy you of any details I uncover. We will need to track this issue for possible inclusion in future development plans.
    I hope this helps,
    Regards,
    Tom.

  • Adding field with more than 255 characters to table VBAP

    Hi experts,
    i am with a requirment to add field model number to VBAP table.
    but the length of the field permitted is 255 char. basically model number comprises of all the characterstics fo material explained, so naturally its lenght will be long....sap do not allow me to enter string as data type for the field.
    what should i do
    thaks in advance
    Edited by: Thomas Zloch on Mar 1, 2012

    Hi, exactly. Since you are trying to write a data longer than 255, try this solution:
    variable_string type string.
    var_clear type string.
    strlen type i.
    count type i.
    strlen = strlen(variable_string).
    if strlen > 132.
    Do.
    count = count + 1.
    TLINE-TDLINE = variable_string(132).
    if count = 1.
    TLINE-TDFORMAT = '*'
    else.
    TLINE-TDFORMAT = space.
    ENDIF.
    append tline.
    MOVE variable_string+132 to var_clear.
    clear variable_string.
    MOVE var_clear to variable_string.
    if variable_string = space.
    EXIT.
    ENDDO.
    *now your VBAP-ZCUSTFIELD
    concatenate sy-datum sy-uzeit vbap-vbeln vbap-posnr to VBAP-ZCUSTFIELD.
    input in SAVE_TEXT Function module.
    The next time youre running it, just use the value in VBAP-ZCUSTFIELD. and run READ_TEXT FM
    As much as you want to extend one field to 255 characters, it is impossible. Unless you have to fill in several fields and cut your >255 character data.

  • How to read table fields form a table  having length of 7 characters

    HI all,
    could you please tell me how to read table fields from a table having length 7 characters, i have requirement that in my ztable i have 30 fields out of which 20 fields are location fields, i want to select 20 fields which have 7 characters length.
    please could any body suggest me on this issue.
    thanks,
    sre.

    hi,
    try like this
    create a data variable of type i as
    data: len type i.
    create internal table for 20 fields as
    data:begin of itab,
               fld 1 type .......
            end of itab.
    data:itab type itab1 occurs 0 with header line.
    loop at itab2. // original internal table which all fields.
    read table itab2 with index sy-tabix.
    len = strlen (itab2-fld).
    if len eq 7.
          move itab2 itab1.
          append itab1.
    endif.
    endloop.
    if helpful reward some points.
    with regards,
    Suresh.A

  • How to create a field with  1200 chars length

    Hi,
    Will anybody let me know how to create a field with length 1200 in a table.
    Regards,
    Madhavi

    Hi Madhvi,
    Other thing what you can do is
    1. First create a Table type.
         Goto SE11-> Dataelements ->Table type
         There on the next screen select Predefine radio button & there provide data type & size.
    2. Create a structure having a field typa of Table type created before. say that field is quant.
    Now in your program refer that structure to create an internal table & work area.
    Now if u append ur text to the field quant.
    try creating line type of size more that 255 if it works then fine other wise reduce it.
    Note:: This will be a deep structure.
    so first append value to the field quant,  the at the end of first record append valu to ur internal table.
    thanks
    Satyam

  • SAP Cloud SDK : How to create the Note Field with Char 1000 length

    Hi Experts,
    I have a requirement to create Note type fields in the standard business object. and that note field should be 1000 char length.
    Also I need to check whether that Note field we can add under the standard report or not with report enhancement?
    1) How to make a Note type field using SDK with length 1000 char? Is it possible? If yes How ?
    2) If using SDK Note type field possible then how to display that field in report ?
    Many Thanks,
    Mithun

    Hi Frank and Horst,
    I have followed the steps you have mentioned in the post.
    1) Create Business Object Extension.
    2) Add the Custom Field with Type " LANGUAGEINDEPENDENT_EXTENDED_Text".
    3) Enhance the Screen and Add into the Header section of the COD_TI screen.
    I have successfully entered the unrestricted character into that field.
    But I want to add that custom field into the Standard Data Source or Standard Report.
    1) Is it possible to add custom field under the Standard Data Source or Report Using SDK?
    2) Is it Possible to display the 1000 character length on the Report field?
    3) Is it possible to display the created extension field under the report / data source using SDK?
    Many Thanks,
    Mithun

  • I am trying to update my billing detail on my IPAD2. However it keep on saying that the country need at least 3 characters long. But the country field is a dropdown list with Malaysia's states all with 2 characters long only! I can't make any purchase now

    I am trying to update my billing detail on my IPAD2. However it keep on saying that the country need at least 3 characters long. But the country field is a dropdown list with Malaysia's states all with 2 characters long only! I can't make any purchase now because I can't verify the billing detail because it just doesn't work! Very frustrating now.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Varchar2 Field with Number Data

    Hi,
    I am having a small problem.. i have one field in which i have data in the following type ::::
    0017257
    005BJ26LA494
    005BJ26LB142
    005BJ26LB988
    005CG26XA939
    0210160
    now i want data of all numbers in the fields for example i want to take out *0210160* from above data..
    so, what conditions i should apply to take out all Numbers data from the field... AND BY THE WAY ITS A VARCHAR2 Type Field...

    If you have access to the query generating the data, I would create the correct value there like this:
    regexp_replace( column_name, '[[:digit:]]', '' )
    If you must do it in the query, try using the XPath translate function:
    http://www.w3schools.com/Xpath/xpath_functions.asp#string
    translate( ELEMENT_NAME, '0123456789, '' )
    VARCHAR2 is a variable length text data type. See here:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/datatype.htm
    Kurz

  • Can we create a table field with more than 1200 char length

    Hi,
       As per business requirement, need to create new table - and one of the field should contain 1200 char length. i found the sap data element but when i was activating it was throwing an error.. is there any alternative for this.
    Thanks in advance.

    hi jayasri,
    Can you use datatype as LCHR for the character string.
    before creating the string you need to decalre one INTEGER field.
    you can refer to the table EDID4 where SDATA field declared.
    check for the data  type EDI_SDATA.
    Hope this will solve your problem.
    Regards,
    Madhavi

  • Sometimes the address bar / url field is filled up with weird characters. How can I stop this?

    The address bar in Firefox fills sometimes completely with strange characters. There are no letters or numbers, but symbols / icons. Is this a bug or something that I can change? Here you can see how this looks.
    https://drive.google.com/file/d/0ByVixQ4OnwKfWGJBZTRxRGJZWVE/edit?usp=sharing

    Try disabling the RSS Icon 1.0.6 extension. A number of users have reported that extension as causing that type of display.

  • Problem with SQL loader - "maximum length"

    using SQL*Loader: Release 8.1.7.0.0
    ===================================
    (full CTL enclosed below)
    I have a problem with several rows, in which I'm getting the "Field in data file exceeds maximum length" error.
    the DB field (referer) is a VARCHAR2(4000), and the field in the error rows never exceeds few hundred characters. According to Oracle docs I should be able to load fields which are no bigger than the DB field, what gives?
    I tried the variation
    referer CHAR "SUBSTR(:referer,1,100)"
    for this field, which causes all the "referer" columns in the "good" rows to load no more than 100 characters, but the same error repeats for the same rows!
    the input file is an IIS log, and the field is the REFERER field. its pure ASCII encoded, is there some character that cause Oracle to behave this way? is this a bug?
    here is one "bad" row: the "bad" field starts with "ht
    tp://web , is enclosed with quotes. I have replaced the client IP and other fields with xxx for privacy reasons.
    after that, I have enclosed my CTL as well.
    any help ?
    Yoram Ayalon
    BTW - I verified in the LOG file that the loader is reading my options for the columns as I described in the CTL. no problem there.
    "2003-06-30 11:11:12" xxx.xxx.xxx.xxx WEBSRVXX 80 GET /xxx.xxx 200 0 778 1359 "ht
    tp://web.ask.com/redir?bpg=http%3a%2f%2fweb.ask.com%2fweb%3fq%3dWhat%2bis%2bsign
    al%2bcommunication%253f%26o%3d0%26page%3d1&q=What+is+signal+communication%3f&u=h
    ttp%3a%2f%2ftm.wc.ask.com%2fr%3ft%3dan%26s%3da%26uid%3d032EBF1A318A100F3%26sid%3
    d3d2bbe4f8d2bbe4f8%26qid%3d4B2346DA8A56C6418CB4DCB9091EEBA7%26io%3d0%26sv%3dza5c
    b0db2%"
    LOAD DATA
    INFILE '/tmp/mod_websrvxx.txt'
    APPEND INTO TABLE tmpLogs
    FIELDS TERMINATED BY WHITESPACE optionally enclosed by '"'
    (LogDate DATE "YYYY-MM-DD HH24:MI:SS", ClientIP, ServerName, ServerPort, ClientM
    ethod,UriStem,Status,BytesSent,BytesReceived,TimeTaken,Referer CHAR "SUBSTR(:Re
    ferer, 1, 100)" )

    Use:
    readsize=3000000
    or some large number to raise this limit.
    Check the below link for detailed explanation
    http://asktom.oracle.com/pls/ask/f?p=4950:8:380010202423963671::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:2167288643374,

  • Problems with special characters in InputStream or XPath

    Hello everyone,
    I am having problems with special characters such as ", ', - and so on, everything becomes ? (questionmark). (Not with special nordic characthers (å,æ,ø) though.)
    The encoding of the XML is UTF-8, and the server that holds the webservice is setting encoding to UTF-8 also, so no conflict there.
    What I have done is something like this:
    {code}
    String url = "http://www.formula1.com/rss/news/latest.rss"; // This is not the feed I use, it is a custom XML document
    InputSource is = new InputSource(url);
    DocumentBuilderFactory fct = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = fct.newDocumentBuilder();
    Document doc = builder.parse(is);
    Element rootElement = doc.getDocumentElement();
    XPathFactory factory = XPathFactory.newInstance();
    XPath xPath = factory.newXPath();
    out.print(xPath.evaluate("/rss/channel/title", rootElement)); // The xml is not a RSS feed, this is just an example.
    {code}
    Please let me know what I am doing wrong, or give me a hint of how to solve this in another way.
    Best regards,
    G.Hansen
    Edited by: G.Hansen on Mar 24, 2009 2:39 AM

    Hello, thanks for you reply. I had to rewrite your code a little, and I think that your code would not really compile, if you tried yourself :-)
    I ended up with something like this:
    our environment is running in 1.4 mode, so I could not use the for-each loop :-(
    public String printEntities(String s) {
         char[] sArray = s.toCharArray();
         StringBuffer sb = new StringBuffer();
           for (int i = 0; i < sArray.length; i++) {
             if (sArray[i] > 256)
                  sb.append("&#x" + Integer.toHexString(sArray) + ";");
         } else
              sb.append(sArray[i]);
         return sb.toString();

Maybe you are looking for

  • How do I get Adobe to help with an installation problem?

    I removed Windows Vista, and installed XP instead. Then tried to install CS3 using the file I downloaded from Adobe 2 years ago. It installed Acrobat, but the other components (InDesign, Photoshop, Illustrator) failed with "Component not installed."

  • Help needed in using JMX APIs

    Hi My requirement is to retrieve the JNDI Names of the JMSConnectionFactory and the JMSQueue using the Connection factory or Queue name. In short im trying out a feasibility of reading the JNDI values for queues from weblogic config.xml instead of re

  • "Trust this computer" message in iPhone 5 each time it's plugged, not recognized by iTunes

    iPhone 5 using iOS7 is not recognized by iTunes. It keeps popping up "Trust this computer" message each time I plug it in to my laptop (Windows 8). It shows in my devices in my computer. Both my iPad with Retina display and iPod touch 5th generation

  • Hieroglyphics instead of text on pages

    When I open some websites in Safari some of the text looks similar to Egyptian hieroglyphics. Examples being hotmail on msn, yahoo messenger How can I cure this? Pip

  • My new Canon MarkIII and CS2 are not compatible...

    Hi - I wish I could go into a camera shop or an Apple shop to get this sorted. But there are none where I live so I hope someone can help me. I have a legal version of CS2 and use a G5 mac. I'm a professional photographer and I want only to open my R