Problem in Database convertion from US7ASCII to UTF8

Hi,
We are facing the following problem while converting the database from US7ASCII to UTF8:
We have recently changed the database character set from US7ASCII to UTF8 for the internationalization
purpose. We ran the Character set scanner utility and it did report that some data may pose problems.
We followed the the below mentioned process to convert into UTF8 -
1) alter database character set utf8
2) alter database national character set utf8.
Now we find some problem while working with the old data in our application which is java based.
We are getting the following error "java.sql.SQLException: Fail to convert between UTF8 and UCS2: failUTF8Conv".
We further analyzed our data and found some interesting things :
e.g.
DB - UTF8.
NL_LANG also set to UTF8.
Select name from t1 where name like 'Gen%';
NAME
Genhve
But when we find out the length of the same data it show like this
NAME LENGTH(NAME) VSIZE(NAME)
Genhve 4 6
The question is why is it showing length as 4 only and when we try to use a substr function
its extracting like the following :-
select name,substr(name,4,1) from t1 where name like 'Gen%';
NAME SUB
Genhve hve
We have execute the above queries on US7ASCII DB and it is working fine, length it shows 6
and using SUBSTR it extracts just 'h' as well.
We also used dump function on the UTF8 Db for the above query,,this is the result :-
select name,length(name),vsize(name),dump(name) from t1 where name like 'Gen%';
NAME LENGTH(NAME) VSIZE(NAME) DUMP(NAME)
Genhve 4 6 Typ=1 Len=6: 71,101,110,232,118,101
We checked a lot with the data and it seems 'h' (accented e) is posing the problem.
We want to know where is the problem and how to overcome this.
Further, we tried all of the following :
1)
Export Server: US7ASCII
Export Client: did not set NLS_LANG / NLS_CHAR, so presumably US7ASCII as well
Import Client: did not set NLS_LANG / NLS_CHAR, so presumably US7ASCII as well
Import Server: UTF8
RESULT: Acute e became h
2)
Export Server: US7ASCII
Export Client: did not set NLS_LANG / NLS_CHAR, so presumably US7ASCII as well
Import Client: NLS_LANG=AMERICAN_AMERICA.UTF8 and NLS_CHAR=UTF8
Import Server: UTF8
RESULT: IMP 00016 error
3)
Export Server: US7ASCII
Export Client: NLS_LANG=AMERICAN_AMERICA.UTF8 and NLS_CHAR=UTF8
Import Client: did not set NLS_LANG / NLS_CHAR, so presumably US7ASCII as well
Import Server: UTF8
RESULT: Acute E became h
4)
Export Server: US7ASCII
Export Client: NLS_LANG=AMERICAN_AMERICA.UTF8 and NLS_CHAR=UTF8
Import Client: NLS_LANG=AMERICAN_AMERICA.UTF8 and NLS_CHAR=UTF8
Import Server: UTF8
RESULT: Acute e became h
5)
Tried using Update sys.props$
set value$='UTF8'
where name='NLS_CHARACTERSET'
RESULT: Acute e shows properly but it gives problem in the application
"java.sql.SQLException: Fail to convert between UTF8 and UCS2: failUTF8Conv"
Looking further it was observed the following:
when you try this command on a column 'city' in a table which contains 'Genhva' (note the acute e after n), it shows
command: select length(city), vsize(city),substr(city,4,1),city from cities
Result: 4 6 hva Genhva
if you see the value of substr(city,4,1) , you will see the problem. Also note that the length shows 4 and size shows 6. Moreover, when these records are selected through JDBC Driver, it starts giving problems.
6)
Actually the above (point no. 5) is similar to changing the character set of the database with 'ALTER DATABASE CHARACTER SET UTF8'. Same problem is observed then too.
7)
We have also tried to with another method, that is by changing the third byte of the export file which specifies the character set, to the UTF8 code by editing the export file with a Hexdecimal editor. After import the same problem has been observed as defined in (5) and (6) above.
We have no more ideas how to migrate without corrupting the data. Of course we have known the records where these characters occur through the Oracle's cssacn utility but we do not want to manually rectify each and every record by replacing it with an ASCII character. Any other idea as to how this can be accomplised?
Thanx
Ashok

The problem you have is that although your original database is defined as US7ASCII, the data it contains is more than is covered by this code page (as the reply on Sept 4 to the previous posting already said).
This has probably happened because the client was also defined as US7ASCII, and when the DB and client are defined as having the same character set no conversion (or checdking) takes place when data is passed between them. However if you are using a Windows client then it will in fact be using Windows code page 1252 (Latin-1) or similar, and this allows many more characters, including h (accented e). So a user can enter all these characters and store them in the database, and similarly read them from the database, because data transfer is transparent.
When you did ALTER DATABASE CHARACTER SET UTF8 this will only change the label on the database, but not affect the contents. However only part of the contents are valid UTF8, any character above 7F (like h) is invalid. If your original client now uses the database, code page transformation will take place because the client and DB have different character sets defined. The invalid codes can then cause problems.
Without being able to explain what has happened in detail, it may help to see what your h (dec 232, x'E8') looks like. The actual data has not changed (you can see this as it is reported as 232). However the binary code there (11101000) is invalid UTF8. UTF8 encodes a character in 1 to 4 bytes, and the first bits in a UTF8 character tell how many bytes it uses. 0xxx tell it is one byte (same as the corresponding USASCII character), 110x that it uses 2 bytes, 1110 that it uses 3 bytes etc. So if you interpret what is there as UTF8 it looks like the first byte of a 3-byte character, which explains why the substringing is giving you the other 2 bytes as well.
Can you fix this without losing data? I believe yes. First you should check what other characters are being flagged by the scan. See if these are contained in another standard character set. If they are only Western European accentet characters then WE8ISO8859P1 is probably ok, but watch out for the euro sign which Windows has at x'80', an undefined character in ISO8859-1.
You can see the contents of the Microsoft Windows Codepage 1252 at: http://www.microsoft.com/globaldev/reference/sbcs/1252.htm
For a listing of the US-ASCII defined characters see http://czyborra.com/charsets/iso646.html and for ISO 8859-1 see http://czyborra.com/charsets/iso8859.html#ISO-8859-1
If all is well, you can first ALTER DATABASE CHARACTER SET to WE8ISO8859P1. This will not change any data, but ensure that all the data gets exported. Then export the DB and import it to a UTF8 DB. This will convert the non-US-ASCII characters to Unicode. You will also have to change the clients character set to something other than USASCII or they will just see ? for the other characters.
Good Luck!

Similar Messages

  • Database migration from US7ASCII to UTF8

    Hi All,
    As a part of Data migration we need to change the existing database
    character set from US7ASCII to UTF8. My Database is running on Oracle 9.2.0.6.
    In my database I have 5 schemas.
    1) Can any body suggest how to migrate the character set from US7ASCII to UTF8?
    2) How to migrate all schemas data from US7ASCII to UTF8?
    Thanks in advance

    You may want to consider the character sets of your clients and the settings used up until now to store and retrieve data. Did you have true ascii-only clients/apps? The general idea is data quality analysis and management. You can find more info about this in the doc in the link given above.

  • Clarification on Character set migration from US7ASCII to UTF8

    Hi,
    I need clarification on the below.
    I need to migrate the database from US7ASCII to UTF8.
    For this I ran csscan for user "TEST" as well as against full database.
    Below log is the csscan output against full database. but my application is depended on TEST schema only. Shall I need to migrate SYS objects data as shown below or it's not required?. If required how to migrate these objects data?
    Looking forward you help.
    USER.TABLE Convertible Exceptional
    SYS.METASTYLESHEET 58 TEST.Table_1 9 0
    TEST.Table_2 11 0
    TEST.Table_3 17 0
    TEST.Table_4 11 0
    [Distribution of Convertible Data per Column]
    USER.TABLE|COLUMN Convertible Exceptional
    SYS.METASTYLESHEET|STYLESHEET 58 0
    Thanks,
    Sankar

    I think you need to migrate all schemas data not only one application schema because
    the database character set is common to all CHAR, VARCHAR2, LONG and CLOB colums
    for any tables in any schema.
    In your case (US7ASCII to UTF8), you need to use export/import because:
    Another restriction of the ALTER DATABASE CHARACTER SET statement is that it can be used only when the character set migration is between two single-byte character sets or between two multibyte character sets. If the planned character set migration is from a single-byte character set to a multibyte character set, then use the Export and Import utilities.
    (see http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96529/ch10.htm#1009904)

  • Problem connecting DataBase Link from windows oracle to oracle on Linux

    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?

    1005745 wrote:
    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?A database link is acting as a client to the target, remote database in exactly the same fashion and using exactly the same tns infrastructure as any other client trying to connect to that remote database. your ORA-12154 when querying a db link means exactly the same as if you had gotten it trying to connect with sqlplus, from the same server. Check the link SB provided. Keep in mind that the tnsnames file of concern is the one on the source database server.

  • Moving from US7ASCII to UTF8

    We are using "standard installed" database. The language only used is (US) english. We are going to add texts in different languages to the database scheme. It means that in some table we want to keep a column that is able to store text in different languages. The answer is UTF8. My questions are follow:
    * How i migrate my database to UTF8 character set ?
    * Can i leave it as it is and use NVARCHAR2 with UTF8 character set for multilanguage columns ?
    * What is happening to search indices ? Do i have to build special indices for tables with NVARCHAR2 columns in UTF8 if i want to search by the column or it works like ordinal string search index ?
    * How i store or read data on client/front end ? In what format must data come to Oracle database ? I am talking about Windows WIDE CHAR format mostly.
    Thank you.

    Dear Sir
    I am glad to see that you sincerely wanted to help me. But to make your help efficient it is very desirable to read a question first! I asked about US7ASCII to UTF8 migration and not anything else. As well the rest of questions were also very important and related to the subject. Therefore i will be glad to accept any help, also yours, in the case it will relate to the subject of the question.
    Thank you for your time.
    P.S. Would you be so kind and left your attributes in place of BT unregistered.
    BT is a name of cigaretts

  • Problem running DNG Converter from command line in Windows XP

    I'm a frustrated user trying to run Adobe DNG converter from the Windows command line - more specifically from a batch file.
    - Am reasonably conversant with writing batch files
    - Have read the PDF file provided by Adobe
    I just can't figure the correct syntax for adding the command line parameters and, unfortunately, the Adobe PDF file doesn't have verbose examples for idiots like me. Nor can I find any such examples on the Net, or any discussion of this problem in the forums.
    The Adobe PDF instructions state...
    "The parameter list includes the conversion options you want to use, followed by the names of the files to convert."
    As there is no switch to prefix 'the names of the files to convert' I assume I just leave a space and include the path to the source files at the end of the parameter list?
    Here is the batch file line I am trying to use...
    "C:\Program Files\Adobe\Adobe DNG Converter.exe [parameter list]"
    Where I want to specify in the [parameter list] that...
    (a) The destination directory (-d <directory> parameter) is c:\DNG_files
    (b) And the source files are in directory c:\RAW_files
    Here is the batch line with the parameters entered...
    "C:\Program Files\Adobe\Adobe DNG Converter.exe -dC:\RAW_files c:\DNG_files"
    I've tried variations of this with space between -d and C:\RAW_files and C:\DNG_files\*.* for the source files parameter.
    I just keep getting DOS erros like "The filename, directory name or volume label syntax is incorrect"
    Can anybody help me. I'm clueless how to solve the problem. :-(
    I'm running DNG COnverter version 4.2
    Thanks in anticipation.
    Rob

    Thanks for responding G Sch.
    LOL. Well this lemming doesn't habitually rename .exe files (e.g. Adobe DNG Converter.exe) to a non-spaced alternative either! (Adobe_DNG_Converter.exe)
    Still no luck...
    *** Here is my batch file...
    REM Copy and DNG-convert files from CF
    CD c:\RAW_files
    dir c:\RAW_files
    "C:\Program Files\Adobe\Adobe DNG Converter.exe" -d C:\DNG_files
    dir c:\DNG_files
    pause
    ***Here's the DOS shell output...
    <<BEGINS>>
    C:\RAW_files>dir c:\RAW_files
    Volume in drive C is Local Disk
    Volume Serial Number is D084-58ED
    Directory of c:\RAW_files
    12/03/2008 10:29 AM <DIR> .
    12/03/2008 10:29 AM <DIR> ..
    11/03/2008 07:00 AM 10,661,632 _3110455.ORF
    11/03/2008 07:01 AM 10,661,632 _3110457.ORF
    11/03/2008 07:01 AM 10,661,632 _3110458.ORF
    11/03/2008 07:02 AM 10,661,632 _3110460.ORF
    11/03/2008 07:02 AM 10,661,632 _3110461.ORF
    11/03/2008 07:03 AM 10,661,632 _3110462.ORF
    11/03/2008 07:03 AM 10,661,632 _3110463.ORF
    11/03/2008 07:04 AM 10,661,632 _3110464.ORF
    11/03/2008 07:04 AM 10,661,632 _3110465.ORF
    9 File(s) 95,954,688 bytes
    2 Dir(s) 2,619,731,968 bytes free
    C:\RAW_files>"C:\Program Files\Adobe\Adobe DNG Converter.exe" -d C:\DNG_files
    C:\RAW_files>dir c:\DNG_files
    Volume in drive C is Local Disk
    Volume Serial Number is D084-58ED
    Directory of c:\DNG_files
    12/03/2008 02:46 PM <DIR> .
    12/03/2008 02:46 PM <DIR> ..
    0 File(s) 0 bytes
    2 Dir(s) 2,619,731,968 bytes free
    C:\RAW_files>pause
    Press any key to continue . . .
    <<ENDS>>
    As you can see (a) Source files exist(b) DNG command line runs without generating an error (c) no output files in destination.
    DNG Converter did not run.
    If I remove everything after the command (i.e. the parameter list stuff) it fires up DNG Converter in interactive mode. Not what I'm after.
    Any other thoughts on what the problem is?
    Thank you.
    Rob

  • Convert from utf16 to utf8 ?? er?

    Dear list,
    I have recently seen a sample to convert a utf16 string to utf8. I am a little bit confused. I thought utf16 was a superset of utf8. Could please someone explain why this is necessary sometimes ?
    regards
    Ben

    how can utf16 be a superset of utf8. I thought this
    relationship was similiar to ASCII and utf8/utf16,
    where for example the space bar has a value of 32 in
    ASCII and Unicode (utf8 and utf16).... This been tjhe
    case there is not much need for a utf8 to utf16
    conversion program.I didn't say it was a superset. It is a different way of representing the same thing.
    >
    You say that utf16 is ALWAYS 2 bytes, and utf8 is
    usually 8 bits but is variable when necessary. Is
    utf16 not a variable byte character set ? No.
    The name
    according to this, utf8 and utf16 is somewhat
    misleading as they are NOT always 8 or 16 bytes.
    And "java" is neither an island nor a beverage. The name does not convey the entirety of the subject.
    characters the first byte (or 2) is an 'escape' bytewhich means that more bytes are needed.
    What do you mean by first or (2). escape byte?
    When something sees a given specific byte then then it knows that there are a certain number of bytes after that are needed to fully represent the character.
    I am still not convincedConvinced?
    If you do not find my explaination satisfactory then you might try writing some code that converts to UTF16 and UTF8 using String.getBytes(String).
    You might also try to find the character set definitions.

  • Convertion from ASCII to UTF8

    How do we convert the Extended ASCII character to UTF8 without using the ALTER DATABASE CHARACTER SET command

    Is [url http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/functions027.htm#i77037]convert function ?
    SQL> select convert('a','utf8','us7ascii') from dual;
    C
    a

  • Convertion from Unicode to UTF8

    I want to convert some string having Unicode chars into a string with UTF8 char. I used following code snippet:
    try {
    String str = new String(givenString);
    String utfStr = new String(str.getBytes("UTF-8"), "UTF-8");
    System.out.println("Converted:" + str + " to:" + utfStr);
    } catch (Exception e) {
    e.printStackTrace(System.out);
    I also tried :
    Charset utf8Charset = Charset.forName("UTF-8");
    CharsetEncoder encoder = utf8Charset.newEncoder();
    CharsetDecoder decoder = utf8Charset.newDecoder();
    ByteBuffer bbuf = encoder.encode(CharBuffer.wrap(givenString));
    CharBuffer cbuf = decoder.decode(bbuf);
    String dest = cbuf.toString();
    When Java tries to encode Unicode to UTF-8 and it runs into an unknown character (typically a character that is in the High Ascii range) it substitutes it with '?' or some other wierd character.
    How do I prevent this.

    Where is this string coming from? Are you initializing it in your source code as a String literal? String str = "A�roport Princesse B�atrix"; If so, you need to make sure the .java file is saved in an encoding that can handle all of the characters. ISO-8859-1, windows-1252, and of course, UTF-8 will all suffice. You also need to make sure the compiler reads the source file with the correct encoding. For example, if you saved your source files as UTF-8, you would do this: javac -encoding UTF-8 *.java Finally, before you print the text to the console, you need to make sure the console is using an encoding that can handle it. On my WinXP box, the default encoding (or codepage, as they call it) for console windows is cp437, which doesn't support accented characters. You can change it with the "chcp" command, like so: chcp 1252 Unfortunately, chcp won't accept UTF-8 or any other Unicode encoding, but cp1252 can handle the accented characters in your string. Note that you don't need to specify that encoding in your code; the Java runtime detects it automatically.
    >
    If you see question marks or some other placeholder character when viewing output, that's probably because the terminal or whatever doesn't have the fonts available to render those characters.>
    No, question marks always indicate an encoding problem. If the character is valid but the font lacks a glyph for it, it shows up as a little rectangle.

  • Convertion from ASCII to UTF8 on Oracle 8.1.7 via PLSQL

    I need to extract a string from a ascii db, put it into a variabile in a plsql procedure, then with a 'magic box' convert it into utf8 and put it into a new utf8 database.
    I need the magic box, does exist a tool, or package or procedure or..... that works like that?
    Thanks in advance!

    I suggest to post this message on the genaral RDBMS or PL/SQL forums
    Kuassi

  • Importing from an Oracle database converted from non-unicode to unicode - SSIS 2012

    Hi,
    I've some SSIS 2012 pkgs that read from a non-unicode Oracle database to a non-unicode SQL Server database.
    Few days later, the Oracle database will be converted to unicode one and so I need to update the SQL database and the SSIS pkgs. Obiously no data conversion transformations are present in the pkgs. I'd like to avoid to add more of these data conversions.
    As a first step, I'm trying to convert a SQL table to unicode format, but it isn't possible to convert non-unicode and unicode string data types.
    I did not expect to have an error about the conversion from to non-unicode Oracle database (not yet converted) to unicode SQL Server database: a such conversion doesn't lost any information content. For me, it is right to have an error by from unicode to
    non-unicode conversion.
    Any suggests to solve this issue with a minimum development effort? Many thanks

    Nope once you change datatypes to unicode you've to refresh metadata settings within SSIS packages for it to work fine. SSIS doesnt have the ability to do metadata changes at runtime. So someone has to update package metadata information to make them unicode
    to make sure it works correctly after the changes.
    What you can do is create test dbs in oracle and sql in uncode and create some modified packages based on it. Once you make changes to production dbs you need to move these modified copies also to production after making necessary config value changes like
    servername,dbname,folder paths etc and then they will continue to work normally without causing any further downtimes to the customer.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Problem publishing database contents from non-unicode to unicode system

    Hello everyone!
    We just set up a new SAP WAS based on Netweaver 2004 as a unicode system. Out problem now is that we have a content management system on our non-unicode system and that we are publishing the contents via rfc to the WAS unicode system to display the contents online. the contents are stored in our own database tables.
    The problem thereby is that many texts pasted from microsoft word contain special characters like bullets, long minus or low-9 quotation marks which are not correctly displayed in the unicode system / on the website. we already found out that it has something to do with the codepage. the sap notes say we should use 1160 instead of 1100 and that the transaction SPUMG would be helpful. but we are not able to select any tables there.
    so now we do not know what to do exactly. do we have to change something in our non-unicode system or do we have to conversion in our unicode system. and what happends if content containing special microsoft word characters is published after the spumg conversion? do we have to to this frequently?
    We would be glad if anyone could help.
    Thanks a lot!

    Hi Martin,
    thanks for your quick answer.
    You got me right. We have a local non-Unicode SAP HCM Netweaver 2004 system running a self-developed web based content management system / wiki. The texts entered in the bsp application are stored in a string field in our database table. Actually we publish the contents to a WAS 6.20 non-Unicode system with the same database tables to provide the content via BSP for the public. Everything is working fine including the special characters.
    Now we want to replace the WAS 6.20 non-Unicode system by a new WAS 7.0/2004 Unicode system. But when publishing the contents via the same RFC function module to the new system the special characters seem to be damaged. We are not able to replace them with abap commands and when they are displayed on the website we only see "boxes".
    If I get you right we have to run SPUMG on our nw 2004 non-unicode productive hcm system, right? but isn't there a danger to damage existing contents?
    Best regards,
    Stefan

  • Problem of JPG converted from LR:(

    Hi everyone,
    Is anybody here a Canon DSLR user? I just got a problem when using LR to deal with RAW file.
    Originally, I use DPP and Arcsoft (these two software is presented when u bought the camera) as "one RAW converter" + "one PS tool". I am learning to use LR these days. However, I found the quality of JPG exported via LR is much inferior than that of DPP. The detail lost in LR-exported JPG file. Of course, I notice the default setting of LR's JPG export is 60 and I just set the figure as 100 for best pic.
    Actually, the size of the JPG proved my feeling. The JPG exported from DPP is usually around 5~6M while the same JPG exported from LR is only about 4M.
    So, did anybody also find this problem and finally get a high-quality JPG? The LR beats DPP nearly in all aspects and I really want use LR as my major "photo developer".
    Many thanks for your help:)

    Which Canon DSLR are you using?
    I also shoot raw and have a 5D, an XT, and LR blows the doors off DPP for output quality in my work. I've never used Arcsoft so I have to pass on that one.

  • Problem migrating database diagram from JDeveloper 10 to Jdeveloper 11

    Hi List,
    I have database diagrams created by use of JDeveloper 10 (files *.oxd_db), but (after automatic migration) they are not displayed as diafram in JDeveloper 11 (they are displayed as xml).
    If I create new diagrams from JDeveloper 10 I get *.db_diagram files.
    Anybody knows how to migrate JDeveloper 10 diagrams to JDeveloper 11?...
    Best regards
    Francesco

    Hi,
    >>>SAP BASIS 7.11 SWC, after importing it from the SLD
    you don't import that from SLD
    import it from TZP file from PI installation DVD
    then it will work
    Regards,
    Michal Krawczyk

  • Problem Opening Files converted from Javamail Attachments (io problems)

    Hello,
    I am streaming a Word doc attachment from a JavaMail Message object, to a file using the code below. The file shows up in the file system as the proper size, but when I attempt to open it, it says "The document or path is invalid". It seems to happen the moment I write even a single line of the stream from the BufferedReader to the DataOutputStream, let alone the entire input stream (simply creating the empty file before streaming between objects, and I can open the file without problems). I would be grateful for any insights. Thank you.
    public void capture(TRIMAttachment ta, Part part){
       String filename = path + ta.getDocumentName();
       String attContent = "";
       attachmentFile = new File(filename);
       try {
          FileOutputStream fos = new FileOutputStream(attachmentFile);
          DataOutputStream dos = new DataOutputStream(fos);
          InputStreamReader isr = new InputStreamReader(part.getInputStream());
          BufferedReader br = new BufferedReader(isr);
          String s="";
          while ((s = br.readLine()) != null) {
             attContent=attContent+s;
          dos.writeBytes(attContent);
          br.close();
          isr.close();
          dos.close();
          fos.close();
          }catch(IOException ioe){
             ioe.printStackTrace();
          }catch(MessagingException me){
             me.printStackTrace();
          }

    A Word document is not a text file (surprise!). You shouldn't be using
    a Reader to read the content. Copy the data to the file using the
    InputStream and a FileOutputStream. See the msgshow.java demo
    program.

Maybe you are looking for