Insert into MSSQL from Oracle

Hello together,
I'm a little bit frustrated. The follwoing is my problem:
I want to insert some values from an Oracle 10gR2 database into a MSSQL database (SQL Server 2008 R2).
Therefor I'm using DG4ODBC 11.2.0.3. The connection is working absolutly fine.
I want to insert five values from five columns from oracle.table-a into a msssql table-b.
But I'm hitting the error:
Invalid character value for cast specification.
Two columns from the oracle table are chars size 12 and 40, and three are number size 5.1, 5.1 and 4.
The MSSQL column definitions are varchar40, varchar50, 2x float8 and int.
The column assignments are:
Oralce -> MSSQL
a. char 12 -> varchar40
b. char 40 -> varchar50
c. number 5.1 -> float8
d. number 5.1 -> float8
e. number 4 -> int4
The insert works greate for a,b and e but nor for c and d.
I tried so many solutions (cast, to_binary_float, nls_character_format, nls_theritpory etc..) but nothing helps.
I always hitting this error.
Can anyone help me with this problem?
cheers
Joe

Hi together,
I fixed the problem. I multiply the origin number with 10. The result is a number without any comma. During the insert into MSSql I divide by 10.
I now, this is a very strange solution but it works.
Yes I know this helps only, because the column can only save number with one decimal place. For higher decimal places you have to multiple it with 100 or 1000 or......
Hope this helps also other peoples.
kind regards
Joe

Similar Messages

  • Create and insert into table from Oracle to MS SQL server.

    Hello,
    Oracle Database 11g and Red hat 5
    I have a very different kind of issue. I am handling the ORACLE db(remote db with all the important data). On the other side their is a MS SQL server db(local db with some testing data in it). All the users will access the ORACLE db for the actual processing but for sometime they need to apply some of their own concepts. So they will transfer the data from ORACLE to MS sql server.
    I want to create a code in ORACLE db like a procedure , which will create a table in MS sql server , insert data into it,Also create some metadata table to keep some of my table's info on MS SQL serve db,If the table is present it should append the data, .... like many things ...
    Overall my question is , how can i write a code to make these operation on a remote db, that to these operations are DDL and on MS SQL Server(Non-Oracle) ???
    Please guide me with some ideas or solutions ...
    Also provide if you have some good links to study ...
    thanks in advance.

    I'm not sure why you never visit http://tahiti.oracle.com prior to asking any question. Is it forbidden in your locale? Are you afraid of it? Will your salary be decreased when you visit the documentation?
    http://www.oracle.com/pls/db111/search?word=sql+server&partno=
    should provide sufficient information.
    Your doc question must be considered a violation of Forum Etiquette and an abuse of this forum.
    Sybrand Bakker
    Senior Oracle DBA

  • INSERT INTO QUERY AGAINST ORACLE

    I've tested the INSERTINTO query where it successfully pulls data from one table in SQL DB and inserts into another SQL DB.
    However, when I use the same script to pull data from one table in Oracle DB to another table in Oracle DB, I get an error.
    I'm assuming the syntax is a little different for Oracle?
    Added debugging and the query looks like this...
    ** Begin FDM Runtime Error Log Entry [2012-06-27-21:20:57] **
    ERROR:
    Code............................................. 1
    Description...................................... INSERT INTO tWadmin30284128092 (PartitionKey, CatKey, PeriodKey, DataView, CalcAcctType, Entity, Account, UD1, UD2, UD4, Amount) SELECT 752, 12, '31-Mar-2008', 'YTD', 9, Entity, Account, UD1, UD2, UD4, Amount FROM tdataseg4
    Error Message...
    ** Begin FDM Runtime Error Log Entry [2012-06-27-21:10:52] **
    ERROR:
    Code............................................. -2147217900
    Description...................................... ORA-02291: integrity constraint (FDM1113ORCL.FKC_DS6_TCTRLPERIOD) violated - parent key not found
    INSERT /*+ Append */ INTO tDataSeg6 ( PartitionKey, CatKey, PeriodKey, DataView, CurKey, CalcAcctType, ChangeSign, JournalID, Amount, AmountX, Account, AccountX, AccountR, AccountF, Entity, EntityX, EntityR, EntityF, ICP, ICPX, ICPR, ICPF, UD1, UD1X, UD1R, UD1F, UD2, UD2X, UD2R, UD2F, UD3, UD3X, UD3R, UD3F, UD4, UD4X, UD4R, UD4F, DESC1, DESC2, ATTR1, ATTR2, ATTR3, ATTR4, ATTR5, ATTR6, ATTR7, ATTR8, ATTR9, ATTR10, ATTR11, ATTR12, ATTR13, ATTR14, ArchiveID, HasMemoItem, StaticDataKey ) SELECT PartitionKey, CatKey, PeriodKey, DataView, CurKey, CalcAcctType, ChangeSign, JournalID, Amount, AmountX, Account, AccountX, AccountR, AccountF, Entity, EntityX, EntityR, EntityF, ICP, ICPX, ICPR, ICPF, UD1, UD1X, UD1R, UD1F, UD2, UD2X, UD2R, UD2F, UD3, UD3X, UD3R, UD3F, UD4, UD4X, UD4R, UD4F, DESC1, DESC2, ATTR1, ATTR2, ATTR3, ATTR4, ATTR5, ATTR6, ATTR7, ATTR8, ATTR9, ATTR10, ATTR11, ATTR12, ATTR13, ATTR14, ArchiveID, HasMemoItem, StaticDataKey From tWadmin436038889587
    Procedure........................................ clsDataManipulation.fExecuteDML
    Component........................................ upsWDataWindowDM
    Version.......................................... 1111
    Thread........................................... 3888
    Function INSERTINTO(strLoc, lngCatKey, dblPerKey, strWorkTableName)
    'Oracle Hyperion FDM IMPORT Integration Script:
    'Created By:       admin
    'Date Created:       2012-06-27-21:01:10
    'Purpose:
    Dim objSS 'ADODB.Connection
    Dim strSQL 'SQL String
    Dim rs 'Recordset
    Dim rsAppend 'tTB table append rs Object
    Dim strPeriod
    Dim strYear
    'Period
    'strPeriod=MonthName(Month(RES.PdtePerKey))
    a=CStr(FormatDateTime(RES.PdtePerKey,1))
    'Tuesday,January 30, 2012
    b=Right(a,(Len(a)-Len(DW.Utilities.fParseString(a,1,1,",")))) '7
    c=DW.Utilities.fParseString(b,2,2,",")
    strPeriod=Left(c,3)
    'Year
    'strYear=Year(RES.PdtePerKey)
    strYear=Right(b,4)
    DW.DBTools.mLogError 1, CStr(strPeriod), CStr(strYear), Nothing
    'Initialize objects
    Set cnSS = CreateObject("ADODB.Connection")
    'Connect To SQL Server database
    cnss.open "Provider=OraOLEDB.Oracle.1;Password=password;Persist Security Info=True;User ID=fdm1113orcl;Data Source=orcl"
    'DW.DBTools.mLogError 1, CStr(strSQL), CStr(strSQL), Nothing
    'Initialize common SQL statement
    strSQL = "INSERT INTO " & _
            strWorkTableName & " " & _
            "(PartitionKey, CatKey, PeriodKey, DataView, CalcAcctType, Entity, Account, UD1, UD2, UD4, Amount) " & _
            "SELECT  " & RES.PlngLocKey & ", " & RES.PlngCatKey & ", " & _
            "'" & Day(RES.PdtePerKey) & "-" & MonthName(Month(RES.PdtePerKey), True) & "-" & Year(RES.PdtePerKey) & "', " & _
            "'YTD', 9, Entity, Account, UD1, UD2, UD4, Amount " & _
            "FROM tdataseg4 " '& _
    DW.DBTools.mLogError 1, CStr(strSQL), CStr(strWorkTableName), Nothing
    DW.DataManipulation.fExecuteDML(strSQL)
    'cnss.Execute strSQL
    'Records loaded
    RES.PlngActionType = 6
    RES.PstrActionValue = "SQL Import successful!"
    'Assign Return value
    INSERTINTO = True
    cnss.Close
    Set cnss = Nothing
    End FunctionEdited by: user12152138 on Jun 27, 2012 6:29 PM
    Edited by: user12152138 on Jun 27, 2012 6:33 PM
    Edited by: user12152138 on Jun 27, 2012 6:36 PM
    Edited by: user12152138 on Jun 27, 2012 6:37 PM
    Edited by: user12152138 on Jun 27, 2012 6:46 PM

    Hi together,
    I fixed the problem. I multiply the origin number with 10. The result is a number without any comma. During the insert into MSSql I divide by 10.
    I now, this is a very strange solution but it works.
    Yes I know this helps only, because the column can only save number with one decimal place. For higher decimal places you have to multiple it with 100 or 1000 or......
    Hope this helps also other peoples.
    kind regards
    Joe

  • Export into xls from oracle web toolkit.

    select * from emp;
    i want export the above query into xls from oracle web toolkit.
    can anybody help me please

    hi
    instead of exporting to excel why not import into excel using InProcServer
    here is a code snippet that i am using to generate reports for my bank
    Dim OraSession As OraSession
    Dim OraDatabase As OraDatabase
    Dim OraDynaset As OraDynaset
    Dim sql1, sql2, sql3
    Dim SQLSTMT
    Dim myarray()
    SQLSTMT="select * from emp"
    Set OraSession = CreateObject("OracleInProcServer.XOraSession")
    'Create the OraDatabase Object by opening a connection to Oracle.
    Set OraDatabase = OraSession.OpenDatabase("report", "report/report", 0&)   ' (hoststring,user/password,0&)
    Set OraDynaset = OraDatabase.CreateDynaset(SQLSTMT, 0&)
    If OraDynaset.RecordCount > 0 Then
    ReDim myarray(0 To OraDynaset.RecordCount - 1)
    Else
    MsgBox "Zero Records Found", vbOKCancel, "Error"
    Unload Me
    End If
    Debug.Print UBound(myarray, 1)
    '***********************populating myarray********
    If OraDynaset.RecordCount > 0 Then
            OraDynaset.MoveFirst
            'For x = 0 To OraDynaset.Fields.Count - 1
             '   Cells(1, x + 1) = OraDynaset.Fields(x).Name
                'Cells(1, x + 1).Format = Bold
            'Next
    For n = rng1.Columns.Count To (UBound(heading, 1) + 1) Step -1
    rng1.Cells(1, n).Select
    ActiveCell.EntireColumn.Delete
    Next
            For m = 1 To rng1.Columns.Count
                rng1.Cells(1, m).Select
                rng1.Cells(1, m).ClearContents
            Next
                For a = LBound(heading, 1) To UBound(heading, 1)
                Cells(1, a).Select
                Cells(1, a) = heading(a)
                                    With Selection
                                        .HorizontalAlignment = xlLeft
                                        .VerticalAlignment = xlCenter
                                        .WrapText = True
                                        .Orientation = 0
                                        .AddIndent = False
                                        .IndentLevel = 0
                                        .ShrinkToFit = False
                                        .ReadingOrder = xlContext
                                        .MergeCells = False
                                    End With
                                    With Selection.Borders(xlEdgeRight)
                                        .LineStyle = xlContinuous
                                        .ThemeColor = 1
                                        .TintAndShade = 0
                                        .Weight = xlThick
                                    End With
                                    With Selection.Font
                                        .Name = "Arial Rounded MT Bold"
                                        .FontStyle = "Regular"
                                        .Size = 11
                                        .Strikethrough = False
                                        .Superscript = False
                                        .Subscript = False
                                        .OutlineFont = False
                                        .Shadow = False
                                        .Underline = xlUnderlineStyleNone
                                        .ThemeColor = xlThemeColorDark1
                                        .TintAndShade = 0
                                        .ThemeFont = xlThemeFontNone
                                    End With
                                    With Selection.Interior
                                        .Pattern = xlSolid
                                        .PatternColorIndex = xlAutomatic
                                        .ThemeColor = xlThemeColorLight1
                                        .TintAndShade = 0
                                        .PatternTintAndShade = 0
                                    End With
                                Next a
            For y = 0 To OraDynaset.RecordCount - 1
                For x = 0 To OraDynaset.Fields.Count - 1
                    m_split = Split(OraDynaset.Fields(x).Value, "|", -1, vbTextCompare)
                    For m = LBound(m_split, 1) To UBound(m_split, 1)
                        Cells(y + 2, x + m + 1) = m_split(m)
                    Next m
                    'Cells(y + 2, x + 1) = OraDynaset.Fields(x).Value
                Next
                OraDynaset.MoveNext
            Next
        End Ifsee if this serves your purpose
    hemu

  • How to insert into table from a xml with XDE for java?

    want to insert into the oracle tables from the xml with XDE for java, some sample better. thank you.

    XML Document may be stored in a SQL database with XML SQL Utility.
    http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10794/adx08xsu.htm#i1008168
    XML Document may be stored in a SQL database with Oracle XML DB.
    http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10790/xdb03usg.htm#CEGFECFH

  • Anyone inserted data directly from Oracle 11g to MySQL?

    Hi There,
    We work mainly on Oracle 11g. However, there is a requirement to now connect to an external MySQL database from our company's Oracle Database. Would be trying to do this for the first time. The process would be to download the data using PL/SQL from the ORacle 11g DB and then insert the data into the MySQL DB table. Had a few questions,
    1. Are there any known issues with connections between ORacle as source and MySQL as target. Anything that needs to be kept in mind?
    2. How do we send the data to MySQL, I mean in PL/SQL we can have the procedure create the insert statements. But can we directly fire the insert on MySQL ? If yes, any suggestions on what the commands would be?
    3.Any way to figure out if the insert was successful?
    4. We might also have to do other operations like update/delete etc.
    5. Any possible reference or sample code on this would also help.
    Thanks

    Well, the simplest and most direct approach would be to create a java function in the database to perform the operation and call it from pl/sql. I've done it before and there are examples out there and its a pretty straight-forward process.
    A quick example from [this website|http://w2.syronex.com/jmr/edu/db/oracle-and-java]
    import java.io.*;
    import java.sql.*;
    public class OraThin {
      public static void main(String[] args) {
        try {
          Connection con=null;
          Class.forName("oracle.jdbc.driver.OracleDriver");
          con=DriverManager.getConnection(
            "jdbc:oracle:thin:@machine_name:1521:database_name",
            "scott",
            "tiger");
          Statement s=con.createStatement();
          s.execute("
            INSERT INTO BOOKS VALUES
            'A Tale of Two Cities',
            'William Shakespeare',
            4567891231,
            '5-JAN-1962'
          s.close();
          con.close();
       } catch(Exception e){e.printStackTrace();}
    }Check out Oracle's Java tutorial at http://docs.oracle.com/javase/tutorial/jdbc/basics/storedprocedures.html for more in-depth information.
    If you're going to be doing this for more than a handful of tables under very controlled circumstances keeping it synchronized is going to be a mess, however.
    Edited by: Bill Haverberg on Jun 20, 2012 8:05 AM

  • Issue inserting into USER_SDO_GEOM_METADATA via Oracle Apex

    G'day All,
    I've originally riased my issue in "Application Express - http://forums.oracle.com/forums/thread.jspa?threadID=537922&tstart=45 " but have not had any solutions provided yet.
    Just a quick summary, when I insert a record into user_sdo_geom_metadata using Oracle Apex SQL Command tool and run a select on the view no records appear. After a bit of investigating I found it is wrongly being given a SDO_OWNER value of ANONYMOUS instead of the value from sys_context('userenv', 'CURRENT_SCHEMA') which in my case would be "TEST".
    When I run SELECT sys_context('userenv', 'CURRENT_SCHEMA') FROM DUAL it correctly returns "TEST".
    If anyone could let me know whats going wrong I would be most appreciated :)
    Cheers
    Mark

    try to
    grant select on table1 to schema2....
    Once you have granted the access to teh schema...you should be able to access the MDSYS schema.
    This should be OK.

  • Unable to insert into mysql from flash burrito

    I'm having issues inserting a record to mysql, if I use the test "test operation and use these values the it works fine, but now in the android app.
    values in my test operation
        id:0,
        type:"cool",
        navn:"vegar 16"
    the getall method works fine, and shows up on the network monitor, but the button dont work at all, nothing happends in the network monito, if I debug it I can see that the button works, any suggestions on what Im doing wrong?
    code in my view:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:kunderservice="services.kunderservice.*"
            title="Home">
        <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                import valueObjects.Kunder;
                protected function list_creationCompleteHandler(event:FlexEvent):void
                    getAllKunderResult.token = kunderService.getAllKunder();
                protected function button_clickHandler(event:MouseEvent):void
                    var item:Kunder = new Kunder();
                    item.id=0
                    item.navn="vegar"
                    item.type ="test"
                    createKunderResult2.token = kunderService.createKunder(item);
            ]]>
        </fx:Script>
        <fx:Declarations>
            <s:CallResponder id="getAllKunderResult"/>
            <kunderservice:KunderService id="kunderService"/>
            <s:CallResponder id="createKunderResult2"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:List id="list" x="35" y="45" width="409" height="193"
                creationComplete="list_creationCompleteHandler(event)" labelField="navn">
            <s:AsyncListView list="{getAllKunderResult.lastResult}"/>
        </s:List>
        <s:Button id="button" x="20" y="406" label="Button" click="button_clickHandler(event)"/>
        </s:View>

    I really appreciate your help. Yes indeed, debugging and seeing what is going on in general is most difficult with flash!
    Once I get this cracked I should be able to complete a lot of what I am trying to achieve.
    After inserting some echo's into my php as such:
    <?php
    $player = $_POST['player'];
    $tournament = $_POST['tournament'];
    $position = $_POST['position'];
    $prize = $_POST['prize'];
    mysql_connect("localhost", "root","poker");
    echo "onnected to database"
    mysql_select_db("poker");
    echo "database connected";
    mysql_query("INSERT INTO results(player,tournament,position,prize) VALUES
    ('$player','$tournamnet','$position','$prize')");
    echo "result added";
    ?>
    The returned info is a load of nonsense to me:
    response from server:  %3C%3Fphp%0A%24player%20=%20%24%5FPOST%5B%27player%27%5D%3B%0A%24tournament%20%3D%20%24%5 FPOST%5B%27tournament%27%5D%3B%0A%24position%20%3D%20%24%5FPOST%5B%27position%27%5D%3B%0A% 24prize%20%3D%20%24%5FPOST%5B%27prize%27%5D%3B%0A%0Amysql%5Fconnect%28%22localhost%22%2C%2 0%22root%22%2C%22poker%22%29%3B%0Aecho%20%22onnected%20to%20database%22%0Amysql%5Fselect%5 Fdb%28%22poker%22%29%3B%0Aecho%20%22database%20connected%22%3B%0Amysql%5Fquery%28%22INSERT %20INTO%20results%28player%2Ctournament%2Cposition%2Cprize%29%20VALUES%20%0A%28%27%24playe r%27%2C%27%24tournamnet%27%2C%27%24position%27%2C%27%24prize%27%29%22%29%3B%0Aecho%20%22re sult%20added%22%3B%0A%3F%3E

  • How to insert special character from Oracle form builder 10g

    Dear all,
    I need help. how to insert special character like 'Superscript or Subscript ' from oracle form builder 10g. I had try in Oracle form builder 6i with press ALT+ASCII code in the text item and it work, but in the oracle form builder 10g this method doesn't work... would you like to help me...somebody please...
    Best Regard,
    Dedy P.T.

    What do you mean by insert ... from Forms Builder? Do you mean you want to add it as text in a string of pl/sql code or as part of boiler plate text (label) or a value on the Property Palette?
    For special characters you would need set NLS_LANG to something that would support the characters you want to use. For the Builder to see the change, you would need to set NLS_LANG to something like:
    NLS_LANG=AMERICAN_AMERICA.UTF8
    This can be done in the Windows Registry or system. As I mentioned, this will only apply to the Builder and will have nothing to do with a running form. For running forms you would need to set this in default.env. As for things like super and sub scripts, these are font formats and not necessarily characters. For the most part, I don't believe these are supported in Forms.

  • SSIS - Script Task creates a DTS var and using Foreach loop, Execute SQL needs to INSERT into table from this DTS var.

    I have a script task written in C# that creates an array of strings "arrayFields" after parsing a text file. It saves the array of strings in a DTS variable.
    Each row in array represents a row is comma separated and is a row that must be inserted into a table. For example,
    X and Z are fields in the table
    X1, X2,....Xn
    Z1,Z2,...Zn
    I am using a Foreach Loop  to grab each row and then  Execute SQL Task to take each row from the array and insert each field per row in a table,
    The SQL is something like,
    INSERT dbo.table values(field1, field2,...fieldn) arrayFields?
    What should this this INSERT look like?

    I guess you implemented
    Shredding a Recordset
    Based on what I understood (correct me if I am wrong) you have difficulties mapping the input parameters, if so here is the guide
    http://www.sqlis.com/sqlis/post/The-Execute-SQL-Task.aspx
    In short it might look like
    INSERT dbo.table  (ColumnA, ColumnB,...) VALUES (?,?...)
    The syntax for the T-SQL INSERT is http://technet.microsoft.com/en-us/library/dd776381%28v=sql.105%29.aspx
    Arthur
    MyBlog
    Twitter

  • How to import data into TimesTen from Oracle

    I want to import data from Oracle into TimesTen,but not found tools provided by TimesTen. I hope TimesTen may convert Oracle's dump file(exp).
    thanks for your suggest.

    TimesTen cannot read Oracle's data pump export files.
    If you are using Cache Groups to cache Oracle tables into TimesTen, then the LOAD CACHE GROUP statement will automatically load the data from Oracle into TimesTen for you.
    If you are using TimesTen as a standalone database, then you can SPOOL out the Oracle table data into text files, and use them as data files to feed the TimesTen ttbulkcp command line utility. ttbulkcp is similar to SQL*Loader except it handles both import and export of data.
    For example, the following command dumps the contents of the table foo from a TimesTen database mydb into a file called foo.dump.
    ttbulkcp -o dsn=mydb foo foo.dump
    The file foo.dump will give you an example of what the default ttbulkcp dump file format looks like. You can then generate a new dump file based on the above, but populate it using the data from Oracle.
    The following command loads the rows listed in file foo.dump into a table called foo in database mydb, placing any error messages into the log file foo.err.
    ttbulkcp -i -e foo.err dsn=mydb foo foo.dump
    For more information on the ttbulkcp utility you can refer to the Oracle TimesTen API Reference Guide.
    You can also use SQL Developer to export data from Oracle table into ttbulkcp file format, via the Export Data option. Please note that this option is meant for small tables say with a few thousand rows, exporting large tables can be slow in SQL Developer and could require a lot of client side memory.

  • How to insert into table from an Datatable ?

    Hi Friend,
    I have a datatable that is created at some point in my SSIS as an object.
    I need to insert the data into a sql table, how should I do that ?
    I have this:
            Dim oleDA As New OleDbDataAdapter
            Dim dt As New DataTable
            Dim col As DataColumn
            Dim row As DataRow
            Dim sMsg As String
            oleDA.Fill(dt, Dts.Variables("history").Value
    and want to insert into a table in a SQL DB
            Dim sqlCon As New SqlClient.SqlConnection("server=Myserver\SQL2008R2;database=MyDB;Integrated Security=SSPI")
            Dim sqlreader As SqlClient.SqlDataReader
            sqlCon.Open()
    Thanks in advance,
    Pat
    Patrick Alexander

    Convert it to a ADO .Net recordset and store it in a object variable in SSIS.
    Then you can use it to populate the table using foreach loop with ado enumerator
    http://www.codeproject.com/Articles/10503/Simplest-code-to-convert-an-ADO-NET-DataTable-to-a
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Problem inserting into DB from XML using XSQL

    Hi everyone!
    I try to load an XML document into a DB table, for the moment i only get access to a MySQL DB server, but i hope to use ORACLE soon. My problem is the next one:
    when i try to execute an insert query against the DB server it always fails, i get no problem doing another operation like select and so on. I have try in several ways:
    1. From a XSQL page using the tags xsql:insert-request, in the case the error looks like:
    Action xsql:insert-request
    Message org.gjt.mm.mysql.jdbc2.Connection
    2. I also have try the MoreoverIntoNews java examples, and the problem seem similar:
    Exception in thread "main" oracle.xml.sql.OracleXMLSQLException:
    org.gjt.mm.mysql.jdbc2.Connection
    at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:1967)
    at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1060)
    at MoreoverIntoNewsstory.main(MoreoverIntoNewsstory.java:43)
    How can i fix this problem?
    I also have realize that when i remove from the CLASSPATH the file "classes12.zip" then i
    get next exception:
    java.lang.NoClassDefFoundError: oracle/sql/CLOB
    Then it seems that the XML-SQL utilities (XSU) are only to work with Oracle and not with other DB engine.
    Thanks in advance.
    Marcos.

    Is there a solution to this problem? Does anyone have any suggestions?

  • How to insert arabic&english  from oracle clients like TOAD,SQL*PLUS

    Hi
    iam trying to insert arabic&english data from TOAD&SQLPLUS.
    if i try to insert arabic by copy and paste iam getting ???? and
    if i try to insert through my keyboard (after updating my system with regional
    settings) iam able to type some junk characters.
    I have installed Oracle 8.1.6 with characterset set to UTF8 and
    in my client NLS_LANG settings i have tried with different settings like:-
    AMERICAN_AMERICA.UTF8
    AMERICAN_AMERICA.AR8MSAWIN
    ARABIC_UNITED ARAB EMIRATES.UTF8
    ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256
    i have also updated INIT.ORA nls_language ='ARABIC'.
    but still iam getting same problem.
    any help in this appriciated.
    Thanks
    Srinivas

    Are you able to use Arabic with your Java VM in general? Or are you having problems specific to your database interactions? Sun provides an internationalized version of the JDK and also an "English only" version. Perhaps you have the English only version? I would recommend trying a simple Hello World app with your JVM first... I would also check your JDBC driver documentation and make sure there are no limitations there, and that your database is also setup for internationalization.
    It is certainly possible to use TopLink in internationalized environments as we have lots of customers doing this, so hopefully we can figure out what is wrong with your setup.
    - Don

  • Viewing Pictures inserted into Eudora from iPhoto '08

    I tried inserting (NOT attaching), by dragging-and-dropping, a photo I'd exported from iPhoto '08 into the text of an e-mail I was composing on Eudora v. 6.2.4. Cc's of the message to Hotmail and Yahoo addresses displayed the picture correctly, but a Cc back to Eudora showed only an icon which, when clicked, resulted in the message "Core Image Fun House cannot open files of this type". This was never a problem with iPhoto '06, and I did it all the time! (I tried again, this time first opening the picture in "Preview" and saving it as a .jpg file before insertion with the same result.) Is this another reason NOT to have bought iLife '08? Can Eudora users no longer display inserted images? (Bad enough that my web-site on iWeb '08 can no longer be read by 95% of the population—the ones who use only "Internet Explorer" and have probably never heard of "Firefox" or "Safari", nor want to!)

    Thanks for the response... this is getting a little closer. The files in question--since they were inserted, rather than attached-- are not, in fact, in the "Attachments" folder, but in the folders named "Parts Folder" and "Spool Folder" (also to be found in the "Eudora Folder"). (I've never quite understood these ones... something about outgoing vs. incoming, I thing! And they've usually been renamed to some code name.)
    It seems that the ones that wouldn't allow themselves to be displayed are listed (without a .jpg extender) as "Documents" and couldn't be opened by "Preview", the ones that did display were listed as "JPEG Image" and could be opened by "Preview". If I added a ".jpg" extender to the non-display ones, they did actually then open in Preview.
    At this point I've added and removed so many ".jpg" extenders to various files that I no longer recall where I'm at, so I'll take a bit of a time out, regroup, and report back. Hope this is all of some ultimate use to someone else out there, eventually!

Maybe you are looking for