Trouble converting MS SQL 7 ntext to 10g CLOBs

Hola -
Using OMWB 10.1.0.2, and I'm having trouble converting over SQL 7 ntext fields to CLOBS; I either wind up with a single character in the CLOB field, the first character in the SQL field, or all text is brought over with spaces in between (represented by some odd character I haven't fully checked out yet, but it shows up onscreen as a box).
I'm in the early stages of checking this out, but any greneral ideas or directions for testing/solving this difficulty would be greatly appreciated, many thanks.

Hi James,
S a m p l e T e x t
After futher investigation, I determined
that these are not spaces but a null character
ascii code "0".This data is in Unicode, so you see a null char after each character in text editor.
It is normal.
Seems you data were transferred well.
If the original data is not in Unicode, change the database character set to ASCII.
Or please make sure that SQL Server NTEXT was converted to CLOB, not NCLOB. NCLOB is always Unicode.
Best regards, Dmitry Tolpeko
SQLWays - Data, schema, procedures conversion for Oracle, DB2, SQL Server, Informix, Sybase and MySQL
http://www.ispirer.com

Similar Messages

  • Trouble creating PL/SQL connection from JDEV to 10g XE

    Hi,
    I am wanting to run PL/SQL from JDev against the hr table in the 10g XE database.
    <br><br>
    In doing so I first need to create <em>my first</em> connection from inside JDev 10.1.3.2.0 to an Oracle Lite (10g) database. Both are installed on my personal PC.
    <br><br>
    So far I have been unable to create the connection; here is where I am so far in my attempts:<br><br>
    Enter the Create Database Connection Wizard<br>
    1) Entered a connection name and choose "Oracle Lite" as the connection type<br>
    2) Entered the User Name and Password for the System user of the 10g XE database<br>
    3) Entered Type 4 Driver; Host Name: localhost, JDBC Port 100, SID XE<br>
    4) I created my own library called "Oracle_Lite" with a class path that points to an olite40.jar file. I did not set the Source path or the Doc path when creating the library. Is this the correct library? <br>
    5) When clicking "Test Connection" it comes back pretty quickly with "Internal Error:Invalid Connect String"<br><br>
    After talking with a work mate I changed the JDBC Port to 1521 and now when I test the connection it starts testing and doesn't stop. The testing indicator bar continues going back and forth indefinitely. Can I assume I am at least now using the correct port?<br><br>
    Any advice or general tips on creating the connection to allow PL/SQL against the 10g XE database from JDEV would be great.

    Oracle 10g XE is not Oracle Lite. Just leave the connection type as the default - Oracle(JDBC), later use the thin JDBC driver, it should work. Continue to use port 1521 and SID as XE.

  • Converting PL/SQL with OE S Fields for 11i

    We recently moved to 11i and I am having trouble converting a PL/SQL report. This is part of an exception report (below) that we have and I am not exactly sure how to convert it in 11i to do what it did in 11.0.3. Particularily I am not sure about how to convert the "S" fields, if someone could provide some guidance that would be great. I have marked the lines I am not sure of with DON'T KNOW. Thanks, Joe.
    SELECT
    soh.order_number
    , sol.s2_date --Pick Release Release Date  DON'T KNOW
    , usr.user_name
    , sol.line_number
    FROM oe.so_headers_all soh --WILL BE ONT.OE_ORDER_HEADERS_ALL
    , oe.so_lines_all sol --WILL BE ONT.OE_ORDER_LINES_ALL
    , apps.fnd_user usr
    WHERE 1=1
    AND soh.header_id = sol.header_id
    AND soh.created_by = usr.user_id
    AND (sol.s2 = 4 -- line is pick released DON'T KNOW
    AND sol.s4 = 18 -- ship confirm Eligible DON'T KNOW
    AND soh.s6 != 10 --not closed WILL BE AND SOH FLOW_STATUS_CODE != 'CLOSED'
    ) -- line is pick released, ship confirm confirmed, not closed
    AND soh.order_type_id != 1000
    AND SOL.S2_DATE < sysdate-5 --Pick Release Release Date  DON'T KNOW                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    You can use DML error logging approach or FORALL SAVE EXCEPTIONS.
    Since you didn't mention the version I assume you are using 11g.
    Below is the sample code for DML error logging mechanism
    SQL> select * from v$version;
    BANNER                                                                         
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production   
    PL/SQL Release 11.2.0.3.0 - Production                                         
    CORE 11.2.0.3.0 Production                                                     
    TNS for Linux: Version 11.2.0.3.0 - Production                                 
    NLSRTL Version 11.2.0.3.0 - Production                                        
    SQL> DROP TABLE tableA;
    Table dropped.
    SQL> DROP TABLE Err$_tableA;
    Table dropped.
    SQL>
    SQL> CREATE TABLE tableA
      2  (
      3     col1   NUMBER PRIMARY KEY,
      4     col2   NUMBER,
      5     col3   VARCHAR2 (10)
      6  );
    Table created.
    SQL>
    SQL> -- Create error log table
    SQL>
    SQL> BEGIN
      2     DBMS_ERRLOG.create_error_log (dml_table_name => 'TABLEA');
      3  END;
      4  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> BEGIN
      2     FOR i IN (SELECT 1 AS col1 FROM DUAL
      3               UNION ALL
      4               SELECT 1 FROM DUAL)
      5     LOOP
      6        INSERT INTO tableA (col1)
      7             VALUES (i.col1)
      8                LOG ERRORS INTO Err$_tableA REJECT LIMIT UNLIMITED;
      9     END LOOP;
    10 
    11     COMMIT;
    12  END;
    13  /
    PL/SQL procedure successfully completed.
    SQL> column column_name format a30
    SQL> set linesize 300
    SQL> select * from tableA;
    SQL> select * from err$_tablea;
    Thanks,
    GPU

  • CONVERT Redo Logs across platforms - 10g or even 11?

    Hi all,
    I've seen that it's possible to convert databases across platforms on
    10g, but have not seen a reference to the Redo Logs. Can these
    be converted across platforms? Interested in AIX to Linux - there are
    obvious problems of endianess - anybody any experience?
    TIA.
    Paul...

    To be able to share archived log files, the two database must be identical on a block-for-block basis. Logical Standby use SQL apply where physical organization and structure of the database can be different from primary.
    In both cases, the Oracle need to be on same OS platform.
    In 11g that requirement is not lifted.
    What's New in Oracle Data Guard 11g?

  • Problem executing a sql query in 10g environment

    Hi,
    I am having problem executing the following sql query in 10g environment. It works fine in 8i environment.
    I tried to_number(to_char) and it did not work.
    **A.APPL_ACTION_DT >= TO_CHAR("&v_strBeginStatusDate&", 'DD-MON-YYYY') AND A.APPL_ACTION_DT <= TO_CHAR("&v_strEndStatusDate&", 'DD-MON-YYYY')))**
    Any suggestions..
    --Pavan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I would be surprised if that worked in 8i as posted, although I no longer have 8i to test. You do not tell us the error message you are getting, but there are several things wrong with what you posted.
    First, the substitution variable requires only the & at the beginning, you have one on each end of your string, the one at the end will remain in the string that is passed to the database.
    Second, you cannot TO_CHAR a string with a date format as you are trying to do. The TO_CHAR function is overloaded and has two basic forms TO_CHAR(date, format_model) and TO_CHAR(number, format_model). Note that neither takes a string. It would appear that at least current versions of Oracle choose the second signature unless specifically passed a date datatype.
    SQL> select to_char('&h', 'dd-mon-yyyy') from dual;
    Enter value for h: 12
    old   1: select to_char('&h', 'dd-mon-yyyy') from dual
    new   1: select to_char('12', 'dd-mon-yyyy') from dual
    select to_char('12', 'dd-mon-yyyy') from dual
    ERROR at line 1:
    ORA-01481: invalid number format modelalthough I suspect that the error you are getting with your posted code is more likely to be ORA-01722: invalid number.
    Depending on the data type of appl_action_date, you are probably lokoing for TO_DATE instead of TO_CHAR.
    John

  • Learning PL/SQL in Oracle 10G XE

    Successfully installed Oracle 10G XE on my desktop. I'm a newbie Oracle user who wants to learn PL/SQL through Oracle 10G XE.
    Is this possible? Hope you can give me tips and advice on how I would start with this?
    Thanks!

    Certainly possible. I would suggest you crack open the PL/SQL Users Guide. DO you have previous programming experience? If so, looks at the examples.

  • I'm having troubles converting my raw files from Nikon D5200 (NEF) to DNG. I tried using Lightroom 4, but it didn't identify the folder containing the files. So i downloaded the latest DNG converter but that too didn't identify the files kept in the folde

    I'm having troubles converting my raw files from Nikon D5200 (NEF) to DNG. I tried using Lightroom 4, but it didn't identify the folder containing the files. So i downloaded the latest DNG converter but that too didn't identify the files kept in the folder location. So I downloaded DNG converter v7.3 for D5200. It identifies the folder and files; but it is giving me parsing error on trying to convert files. I'm running Windows Vista Home Edition SP1. Kindly advise. Thank you.

    I probably missed this detail in what you’ve posted, but do you see the thumbnails of the three cameras’ raw files in Finder if you don’t convert to DNG?
    What has happened in the past is that the Apple raw interpreter doesn’t read thumbnails of DNGs it doesn’t like, where at least one thing it didn’t used to like was embedded lens corrections for mirrorless cameras.  Are the Olympus and Panasonic mirrorless—meaning there is no optical viewfinder and everything is seen on an LCD screen or perhaps an electronic view finder?  If so the reason these are different is that the camera is doing the lens distortion corrections automatically and this information is stored in the raw files and in the DNGs but Apple doesn’t know how to use these embedded lens corrections or doesn’t know how to read the newer DNG spec that does allow for this information to be embedded in the DNG, at least.
    Apple could just extract the embedded jpg preview and ignore the other parts of the file it doesn’t understand, but it apparently doesn’t do this.
    What I’m not sure about is if the Apple raw interpreter still has this problem or if you’re on an older system without the latest updates for camera raw decoding by Apple.

  • Can any one convert my SQL for Discoverer?

    This is a SQL you can run on the server but I was wondering if someone could convert the SQL for Discoverer?
    SQL:
    SELECT po.profile_option_name "NAME",
    po.USER_PROFILE_OPTION_NAME,
    decode(to_char(pov.level_id),
    ‘10001', ‘SITE’,
    ‘10002', ‘APP’,
    ‘10003', ‘RESP’,
    ‘10005', ‘SERVER’,
    ‘10006', ‘ORG’,
    ‘10004', ‘USER’, ‘???’) "LEV",
    decode(to_char(pov.level_id),
    ‘10001', ”,
    ‘10002', app.application_short_name,
    ‘10003', rsp.responsibility_key,
    ‘10005', svr.node_name,
    ‘10006', org.name,
    ‘10004', usr.user_name,
    ‘???’) "CONTEXT",
    pov.profile_option_value "VALUE"
    FROM FND_PROFILE_OPTIONS_VL po,
    FND_PROFILE_OPTION_VALUES pov,
    fnd_user usr,
    fnd_application app,
    fnd_responsibility rsp,
    fnd_nodes svr,
    hr_operating_units org
    WHERE po.profile_option_name LIKE ‘%&&profile%’
    AND pov.application_id = po.application_id
    AND pov.profile_option_id = po.profile_option_id
    AND usr.user_id (+) = pov.level_value
    AND rsp.application_id (+) = pov.level_value_application_id
    AND rsp.responsibility_id (+) = pov.level_value
    AND app.application_id (+) = pov.level_value
    AND svr.node_id (+) = pov.level_value
    AND org.organization_id (+) = pov.level_value
    AND decode(to_char(pov.level_id),
    ‘10001', ”,
    ‘10002', app.application_short_name,
    ‘10003', rsp.responsibility_key,
    ‘10005', svr.node_name,
    ‘10006', org.name,
    ‘10004', usr.user_name,
    ‘???’) LIKE ‘%&&username%’
    ORDER BY "NAME", pov.level_id, "VALUE";

    Hi,
    You can create a custom folder on using the administrator using the code,
    The only change is that you need the take off the conditions over the parameters and create those in the worksheet and not in the SQL.
    so you need to create the custom folder using:
    SELECT Po.Profile_Option_Name "NAME"
    *,Po.User_Profile_Option_Name*
    *,Decode(To_Char(Pov.Level_Id)*
    *,'10001'*
    *,'SITE'*
    *,'10002'*
    *,'APP'*
    *,'10003'*
    *,'RESP'*
    *,'10005'*
    *,'SERVER'*
    *,'10006'*
    *,'ORG'*
    *,'10004'*
    *,'USER'*
    *,'???') "LEV"*
    *,Decode(To_Char(Pov.Level_Id)*
    *,'10001'*
    *,'10002'*
    *,App.Application_Short_Name*
    *,'10003'*
    *,Rsp.Responsibility_Key*
    *,'10005'*
    *,Svr.Node_Name*
    *,'10006'*
    *,Org.NAME*
    *,'10004'*
    *,Usr.User_Name*
    *,'???') "CONTEXT"*
    *,Pov.Profile_Option_Value "VALUE"*
    FROM   Fnd_Profile_Options_Vl    Po
    *,Fnd_Profile_Option_Values Pov*
    *,Fnd_User Usr*
    *,Fnd_Application App*
    *,Fnd_Responsibility Rsp*
    *,Fnd_Nodes Svr*
    *,Hr_Operating_Units Org*
    WHERE  Pov.Application_Id = Po.Application_Id AND
    Pov.Profile_Option_Id = Po.Profile_Option_Id AND
    Usr.User_Id(+) = Pov.Level_Value AND
    Rsp.Application_Id(+) = Pov.Level_Value_Application_Id AND
    Rsp.Responsibility_Id(+) = Pov.Level_Value AND
    App.Application_Id(+) = Pov.Level_Value AND
    Svr.Node_Id(+) = Pov.Level_Value AND
    Org.Organization_Id(+) = Pov.Level_Value
    ORDER  BY "NAME"
    *,Pov.Level_Id*
    *,"VALUE";*
    Tamir

  • Convert java.sql.date to dd.mm.yyyy format

    Hi,
    Can any one tell me how to convert java.sql.date to dd.mm.yyyy format
    Regards,
    H.V.Swathi

    Hi ,
    Create a simple data type of type java.sql.date and give the format in it as "dd/MM/yyyy". This will work i guess.
    Regards
    Ishita

  • Utility class to convert ms sql to oracle queries

    HI all
    if any body can write a java utility for converting MS SQl queries to oracle really appreciate

    HI all
    if any body can write a java utility for converting MS SQl queries to oracle really appreciate

  • Converting MS SQL Server Query to Oracle Query

    Hi There,
    I've a strange problem. My project uses both MS SQL Server and Oracle server at run time. I've lot of queries which are written in MS SQL Style. Now, iam planning to write a helper class whic converts MS SQL Query to Oracle Query. Please Help me if any one has that kind of Helper with you.
    Thanks And Regards,
    Sasi Kanth

    That is why persistence applications like Hibernate or
    CMP get used for apps that will use more than one DB,
    but it takes upfront planning.
    If you have a set of automated unit tests that work
    with SQL Server, they will be a big help in getting
    your Oracle code up and running.Indeed - JUnit and Ant would be a big help here.
    It sounds like you have SQL in your JSPs, that will
    work against you as well if so. If you are using a
    DAO pattern, this will be much easier, as you can
    re-implement each DAO for Oracle.If you'd layered this app properly, you might just implement an OracleDAOFactory and be done with it. Interfaces and a DAO layer would go a long way.
    This is why layering is such a good idea. It isolates changes in a smaller subset of classes.
    But your problem sounds pretty big. It'd be daunting even if it were well designed.

  • Some minor issues we are facing in converting the 6i application to 10g ,

    Regarding 10g froms i need support in resolving following issues:-
    1. Direct print to default printer
    In some of our applications user do not want to see the print preview and prefer direct print in 6i we were doing this by defining Desitination in report paramenters
    2. Open each form in new window
    We open each new form using OPEN_FORM() builtin, but all forms open in same MDI window, how using open form we can open the forms in new window
    3. Maintaining source code in windows and linux
    Initaially our developers test the forms under windows 10g AS environment but when the same form in uploaded on Linux machine they need to make some changes like " replacing all \ with /, converting all paths to lower case etc
    how we can write the same code for linux and windows
    These are some minor issues we are facing in converting the 6i application to 10g environment ...

    1) We don't do direct printing. We print everything to PDF files in a user's network mapped drive. They print or preview as required.
    2) We overcame this problem by using Java WebStart
    [http://groundside.com/blog/JanCarlin.php?title=forms_and_java_web_start&more=1&c=1&tb=1&pb=1]
    It frees Forms from being browser based and looks more like a 'real' application.
    3) We use FormsAPI Master [Link to ORCL-Toolbox|http://www.orcl-toolbox.com/] to automatically convert from Windows to Unix. Our script converts uppercase to lowercase for icons, menus, library attachments, etc. We only do this once - unless new libraries have been attached in the wrong case. For things like '\' to '/' , Windows is quite happy to accept '/' as a delimiter. "cd C:\temp" is the same as "cd c:/temp". However, there are obvious differences between Windows and Unix. If there is any interaction between the Form and the operating system, then we do all our testing in the Unix environment - leaving Windows as a "does the screen layout look OK" environment.

  • Convert java.sql.Timestamp to java.util.Calendar?

    What's the best way to convert java.sql.Timestamp to java.util.Calendar?

    Use Calendar's setTime(Date date) method.
    java.sql.Timestamp extends java.util.Date.
    -Roy

  • Sql tracing in 10g

    Hi,
    I need to trace the sql statements in 10g in linux so that as sys as sysdba i have entered the command
    alter session set sql_trace=true;
    session altered
    Now i need to know the location where i can find the sql statements pls help me

    Check USER_DUMP_DEST init. parameter. See http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm#g22503.
    Example with a SQL*Plus SYSDBA connection :
    SQL> show parameter user_dump_dest
    NAME                                 TYPE        VALUE
    user_dump_dest                       string      C:\ORACLEXE\APP\ORACLE\ADMIN\X
                                                     E\UDUMPEdited by: P. Forstmann on 14 janv. 2010 09:35

  • Trouble converting a math statistic document

    Have trouble converting a scanned math statistics document. I am unable to turn off the OCR on my scanner an help

    Good day,
    The ExportPDF service has the ability to OCR your file.  Could you share some more information about the specific trouble you're having?
    Kind regards,
    David

Maybe you are looking for

  • How do i change the icloud account associated with my iphone and ipad when i forgot the password and no longer have access to the email account?

    I have an iPhone 5c and an ipad 3.  using the latest version of iOS.  I can't delete the old iCloud account on the devices without putting in a password but I don't have it, nor a way to change it via email since the email acct is an old one.

  • HTML Character entity references on SQLQuery

    I am trying retrieve the data thru XMLElement and I like to do a HTML Character entity references. I guess XMLElement does it with the proper character set translations and I was not successul in getting it correct. Could you please help me out. My D

  • 1z0-897 java web services certification dumps needed

    Hi, Can you please tell me if any one has take the 1zo-897 exam recently and share their experience. Also please post dumps if you get a chance... Thanks Nithin

  • Front Row Garbles up

    Ok, computer as described below in my profile... Transferred everyting from my old Mac to my new Mac. Worked perfectly. But... I activate Front Row and it works great... until I start navigating through the menus. It gets garbled up lines in it. Is t

  • Photoshop CS6 black UI

    Anybody experiancing this? I'm using: MacBook Pro : 17-inch, Early 2008 Processor  2.5 GHz Intel Core 2 Duo Memory  4 GB 667 MHz DDR2 SDRAM Graphics  NVIDIA GeForce 8600M GT 512 MB Software  OS X 10.8.2 (12C60) Mountain Lion I installed CS6 2 days ag