Charsets when using SQLLDR

Hi,
I have a requirement to load the data using different character sets.. e.g. Western European and East European etc.,
Can you tellme if there is any parameter for SQLLDR?
We are using 8i and soon may migrate to 9i env.
regards
Sam

You can try to do it in some parts, just divide in few parts the .dat you will load or for example:
Load Data
infile ‘/u01/oracle/empfix.dat’
append into table scott.emp1
WHEN (deptno=’10 ‘) <--------------------------------
(empno POSITION(01:04) INTEGER EXTERNAL,
name POSITION(06:15) CHAR,
job POSITION(17:25) CHAR,
mgr POSITION(27:30) INTEGER EXTERNAL,
sal POSITION(32:39) DECIMAL EXTERNAL,
comm POSITION(41:48) DECIMAL EXTERNAL,
deptno POSITION(50:51) INTEGER EXTERNAL)

Similar Messages

  • Charset problems using SQLLDR

    Hello!
    My task is to import data from a Microsoft Access Database into an Oracle Database. I got a Script which creates Flatfiles and Controlfiles with the data from Access. My problem is the characterset. There are some signs (e.g. the typical german quotationmark at the BOTTOM oder the "longer dash" you get from MS Word by using "blank+dash+blank"), which obviously cannot be convertet. So there are "turn-round questionsmarks". So I tried many different char-sets. I tried different nls_charset settings at oracle side and many charset as the parameter of the control files. But none combination let me get the right result. Does anybody know how I can get rid of this consersation desaster?
    Best regards, Sascha Meyer

    Hello!
    Of cource I can give you the information:
    Code points:
    201C, 201D, 201E, 2013,2014
    nls_database_parameters:
    NLS_TIME_FORMAT HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT DD.MM.RR HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT DD.MM.RR HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY ?
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.2.0.2.0
    nls_session_parameter:
    PARAMETER VALUE
    NLS_LANGUAGE GERMAN
    NLS_TERRITORY GERMANY
    NLS_CURRENCY €
    NLS_ISO_CURRENCY GERMANY
    NLS_NUMERIC_CHARACTERS ,.
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD.MM.RR
    NLS_DATE_LANGUAGE GERMAN
    NLS_SORT GERMAN
    NLS_TIME_FORMAT HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT DD.MM.RR HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT DD.MM.RR HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY €
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    Default value is WE8ISO8859P15
    I tried this setting:
    Database: WE8ISO8859P15
    Charset used in controlfile: WE8MSWIN1252, UTF8, WE8ISO8859P15, we8iso8859p1, AL32UTF8
    Database: UTF8
    Charset used in controlfile:WE8ISO8859P15, UTF8, we8iso8859p1, AL32UTF8
    Database:WE8MSWIN1252
    Charset used in controlfile:WE8ISO8859P15, UTF8, WE8MSWIN1252, we8iso8859p1, AL32UTF8

  • Error when load sptial data by using sqlldr

    Currently, I have a shapeFile, so I have used shp2sdo tool to convert shapeFile to Oracle Spatial database. But when using sqlldr tool, I get the following errors:
    ----- Log file content ------
    SQL*Loader: Release 10.2.0.1.0 - Production on Sat Mar 24 09:13:07 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Control File: /home/oracle/street.ctl
    Data File: /home/oracle/street.ctl
    Bad File: /home/oracle/street.bad
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 64 rows, maximum of 10000000 bytes
    Continuation: 1:1 = 0X23(character '#'), in next physical record
    Path used: Conventional
    Table STREET, loaded from every logical record.
    Insert option in effect for this table: TRUNCATE
    TRAILING NULLCOLS option in effect
    Column Name Position Len Term Encl Datatype
    ID FIRST * | CHARACTER
    NAME NEXT * | CHARACTER
    NULL if NAME = BLANKS
    GEOM DERIVED * COLUMN OBJECT
    *** Fields in GEOM
    SDO_GTYPE NEXT * | CHARACTER
    SDO_SRID NEXT * | CHARACTER
    SDO_ELEM_INFO DERIVED * VARRAY
    Terminator string : '|/'
    *** Fields in GEOM.SDO_ELEM_INFO
    X FIRST * | CHARACTER
    *** End of fields in GEOM.SDO_ELEM_INFO
    SDO_ORDINATES DERIVED * VARRAY
    Terminator string : '|/'
    *** Fields in GEOM.SDO_ORDINATES
    X FIRST * | CHARACTER
    *** End of fields in GEOM.SDO_ORDINATES
    *** End of fields in GEOM
    Record 1: Rejected - Error on table STREET, column GEOM.SDO_ELEM_INFO.X.
    error converting data
    ORA-01722: invalid number
    Record 2: Rejected - Error on table STREET, column GEOM.SDO_ELEM_INFO.X.
    error converting data
    ORA-01722: invalid number
    Record 3: Rejected - Error on table STREET, column GEOM.SDO_ELEM_INFO.X.
    error converting data
    ORA-01722: invalid number
    Record 4: Rejected - Error on table STREET, column GEOM.SDO_ELEM_INFO.X.
    error converting data
    ORA-01722: invalid number
    Record 5: Rejected - Error on table STREET, column GEOM.SDO_ELEM_INFO.X.
    error converting data
    ORA-01722: invalid number
    Record 6: Rejected - Error on table STREET, column GEOM.SDO_ELEM_INFO.X.
    error converting data
    ORA-01722: invalid number
    Record 7: Rejected - Error on table STREET, column GEOM.SDO_ELEM_INFO.X.
    error converting data
    ORA-01722: invalid number
    -------- this is my control file ---------------
    LOAD DATA
    INFILE *
    TRUNCATE
    CONTINUEIF NEXT(1:1) = '#'
    INTO TABLE STREET
    FIELDS TERMINATED BY '|'
    TRAILING NULLCOLS (
    ID,
    NAME      NULLIF NAME = BLANKS,
    GEOM COLUMN OBJECT
    SDO_GTYPE INTEGER EXTERNAL,
    SDO_SRID INTEGER EXTERNAL,
    SDO_ELEM_INFO VARRAY TERMINATED BY '|/'
    (X FLOAT EXTERNAL),
    SDO_ORDINATES VARRAY TERMINATED BY '|/'
    (X FLOAT EXTERNAL)
    BEGINDATA
    1|A|
    #2002|8307|
    #1|2|1|/
    #106.408265|10.461029|106.409036|10.461789|106.409561|10.462392|
    #106.410520|10.463381|106.411527|10.464443|106.412017|10.464956|
    #106.412563|10.465536|106.413615|10.466630|106.414564|10.467624|
    #106.415333|10.468458|106.415749|10.468869|106.416368|10.469524|
    #106.417304|10.470526|106.418107|10.471318|/
    2|B|
    #2002|8307|
    #1|2|1|/
    #106.410156|10.461118|106.406821|10.463133|106.405549|10.463909|/
    3|C|
    #2002|8307|
    #1|2|1|/
    #106.405221|10.464159|106.404133|10.464773|106.403267|10.465291|
    #106.402926|10.465558|106.402158|10.465981|/
    4|D|
    #2002|8307|
    #1|2|1|/
    #106.402341|10.460738|106.403378|10.461422|106.403476|10.461504|
    #106.403562|10.461580|106.403633|10.461660|106.403768|10.461844|
    #106.404904|10.463687|106.405034|10.463842|106.405130|10.463947|
    #106.405221|10.464017|/
    5|E|
    #2002|8307|
    #1|2|1|/
    #106.405443|10.463815|106.406002|10.462394|/
    Have anyone can help me? Thanks

    I've seen folks work around similar problems by temporarily changing their NLS parameters (warning: you probably don't want to do this on a heavily used or production system). I know you said you changed them, but it might be worth another try.
    On NT save the registry entry for NLS_LANG. I think it is at:
    HKEY_LOCAL_MACHINE->SOFTWARE->ORACLE->KEY_YOURORACLEHOME
    Make the NLS_LANG registry value AMERICAN_AMERICA.WE8MSWIN1252
    Restart the database.
    Load the data
    Reset the registry entry
    Restart the database.

  • PTG error when using translate_params=true

    I have problems using Russian language with Personalization Portal. Renaming or creating folder in Russian results in '??????' name.
    I think it's because Apache JServ don't understand charset when using forms parameters.
    I tried to use following line in zone.properties with Apache JServ.
    servlet.oracle.jsp.JspServlet.initArgs=translate_params=true.
    Result simple JSP, using form parameters converts correctly, but I can't login as user in Personalisation Portal (results in JavaExeption). I can login as Administrator but renaming folder in Russian again results in '???????' name.
    Help please!

    As far as I understand, the way you use destroyApp(true) in commandAction is wrong. Replace it with notifyDestroyed()
    If you're interested, check [MIDlet class javadocs|http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/midlet/MIDlet.html] to understand why is that.
    I would also remove notifyDestroyed() from destroyApp. If Eclipse uses Wireless Toolkit as emulator, you can take a look into source code of application demos that are included in WTK to find out how to use these methods properly.

  • Getting ORA-22805 when trying to load XML file using SQLLDR

    I'm trying to learn the basics of XML since we'll be getting XML files in the near future. I'm using one of the sample schemas that comes with XMLSPY. I loaded this schema into an 11g Oracle DB using XMLSPY:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XML Spy v4.0 NT beta 1 build Jun 13 2001 (http://www.xmlspy.com) by Alexander Falk (Altova, Inc.) -->
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ipo="http://www.altova.com/IPO" targetNamespace="http://www.altova.com/IPO" elementFormDefault="unqualified" attributeFormDefault="unqualified">
         <annotation>
              <documentation>
    International Purchase order schema for Example.com
    Copyright 2000 Example.com. All rights reserved.
    </documentation>
         </annotation>
         <!-- include address constructs -->
         <include schemaLocation="address.xsd"/>
         <element name="purchaseOrder" type="ipo:PurchaseOrderType"/>
         <element name="comment" type="string"/>
         <complexType name="PurchaseOrderType">
              <sequence>
                   <element name="shipTo" type="ipo:Address"/>
                   <element name="billTo" type="ipo:Address"/>
                   <element ref="ipo:comment" minOccurs="0"/>
                   <element name="Items" type="ipo:Items"/>
              </sequence>
              <attribute name="orderDate" type="date"/>
         </complexType>
         <complexType name="Items">
              <sequence>
                   <element name="item" minOccurs="0" maxOccurs="unbounded">
                        <complexType>
                             <sequence>
                                  <element name="productName" type="string"/>
                                  <element name="quantity">
                                       <simpleType>
                                            <restriction base="positiveInteger">
                                                 <maxExclusive value="100"/>
                                            </restriction>
                                       </simpleType>
                                  </element>
                                  <element name="price" type="decimal"/>
                                  <element ref="ipo:comment" minOccurs="0"/>
                                  <element name="shipDate" type="date" minOccurs="0"/>
                             </sequence>
                             <attribute name="partNum" type="ipo:Sku"/>
                        </complexType>
                   </element>
              </sequence>
         </complexType>
         <simpleType name="Sku">
              <restriction base="string">
                   <pattern value="\d{3}-[A-Z]{2}"/>
              </restriction>
         </simpleType>
    </schema>
    Then I created an XMLType table:
    CREATE TABLE purchaseOrder OF XMLType
    XMLSCHEMA "ipo.xsd" ELEMENT "purchaseOrder"
    I'm trying to load the sample XML file ipo.xml into purchaseOrder using SQLLDR. This is ipo.xml:
    <?xml version="1.0"?>
    <!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Mr. Nobody (Altova GmbH) -->
    <ipo:purchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ipo="http://www.altova.com/IPO" orderDate="1999-12-01" xsi:schemaLocation="http://www.altova.com/IPO
    ipo.xsd">
         <shipTo export-code="1" xsi:type="ipo:EU-Address">
              <ipo:name>Helen Zoe</ipo:name>
              <ipo:street>47 Eden Street</ipo:street>
              <ipo:city>Cambridge</ipo:city>
              <ipo:postcode>126</ipo:postcode>
         </shipTo>
         <billTo xsi:type="ipo:US-Address">
              <ipo:name>Robert Smith</ipo:name>
              <ipo:street>8 Oak Avenue</ipo:street>
              <ipo:city>Old Town</ipo:city>
              <ipo:state>AK</ipo:state>
              <ipo:zip>95819</ipo:zip>
         </billTo>
         <Items>
              <item partNum="833-AA">
                   <productName>Lapis necklace</productName>
                   <quantity>2</quantity>
                   <price>99.95</price>
                   <ipo:comment>Need this for the holidays!</ipo:comment>
                   <shipDate>1999-12-05</shipDate>
              </item>
              <item partNum="748-OT">
                   <productName>Diamond heart</productName>
                   <quantity>1</quantity>
                   <price>248.90</price>
                   <ipo:comment>Valentine's day packaging.</ipo:comment>
                   <shipDate>2000-02-14</shipDate>
              </item>
              <item partNum="783-KL">
                   <productName>Uncut diamond</productName>
                   <quantity>7</quantity>
                   <price>79.90</price>
                   <shipDate>2000-01-07</shipDate>
              </item>
              <item partNum="238-KK">
                   <productName>Amber ring</productName>
                   <quantity>3</quantity>
                   <price>89.90</price>
                   <ipo:comment>With no inclusions, please.</ipo:comment>
                   <shipDate>2000-01-07</shipDate>
              </item>
              <item partNum="229-OB">
                   <productName>Pearl necklace</productName>
                   <quantity>1</quantity>
                   <price>4879.00</price>
                   <shipDate>1999-12-05</shipDate>
              </item>
              <item partNum="128-UL">
                   <productName>Jade earring</productName>
                   <quantity>5</quantity>
                   <price>179.90</price>
                   <shipDate>2000-02-14</shipDate>
              </item>
         </Items>
    </ipo:purchaseOrder>
    This is what's in the control file:
    LOAD DATA
    INFILE *
    INTO TABLE purchaseOrder TRUNCATE
    xmltype(xmldata)
    FIELDS
    xmldata LOBFILE (CONSTANT ipo.xml)
    BEGINDATA
    0
    The load fails with:
    Record 1: Rejected - Error on table PURCHASEORDER.
    ORA-22805: cannot insert NULL object into object tables or nested tables
    Another question I have is, how do we know how many records (0's) to specify in the control file? In this case there's only one but when real files are used we won't know how many are in the file.
    Thanks for your help!

    The concept was "Don't use SQL*Loader to parse XML".
    You can use SQL*Loader to load an entire XML document into the DB. That is fine. You can do the same via BFILENAME to read in files from disk as well.
    If you want to parse XML, do that from within Oracle via PL/SQL and/or SQL. The solution depends upon your version of Oracle and what is good enough for you in terms of performance.
    So the basics are
    a) How am I getting the information?
    b) How am I getting in into Oracle?
    c) How do I want to parse it?
    As I see the schema, it only allows for one ipo:purchaseOrder node in the document, since that is the root node. If you have multiple in the incoming file, you no longer have valid XML, both per the schema and because you have no single root node. You have an XML fragment, which must be treated different.
    Just trying to understand the question since I now realize it does not agree with what the schema in your initial example shows.

  • Using sqlldr when source data column is 4000 chars

    I'm trying to load some data using sqlldr.
    The table looks like this:
    col1 number(10) primary key
    col2 varchar2(100)
    col3 varchar2(4000)
    col4 varchar2(10)
    col5 varchar2(1)
    ... and some more columns ...
    For current purposes, I only need to load columns col1 through col3. The other columns will be NULL.
    The source text data looks like this (tab-delimited) ...
    col1-text<<<TAB>>>col2-text<<<TAB>>>col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    END-OF-RECORD
    There's nothing special about the source data for col1 and col2.
    But the data for col3 is (usually) much longer than 4000 chars, so I just need to truncate it to fit varchar2(4000), right?
    The control file looks like this ...
    LOAD DATA
    INFILE 'load.dat' "str 'END-OF-RECORD'"
    TRUNCATE
    INTO TABLE my_table
    FIELDS TERMINATED BY "\t"
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    col1 "trim(:col1)",
    col2 "trim(:col2)",
    col3 char(10000) "substr(:col3,1,4000)"
    I made the column 3 specification char(10000) to allow sqlldr to read text longer than 4000 chars.
    And the subsequent directive is meant to truncate it to 4000 chars (to fit in the table column).
    But I get this error ...
    Record 1: Rejected - Error on table COL3.
    ORA-01461: can bind a LONG value only for insert into a LONG column
    The only solution I found was ugly.
    I changed the control file to this ...
    col3 char(4000) "substr(:col3,1,4000)"
    And then I hand-edited (truncated) the source data for column 3 to be shorter than 4000 chars.
    Painful and tedious!
    Is there a way around this difficulty?
    Note: I cannot use a CLOB for col3. There's no option to change the app, so col3 must remain varchar2(4000).

    You can load the data into a staging table with a clob column, then insert into your target table using substr, as demonstated below. I have truncated the data display to save space.
    -- load.dat:
    1     col2-text     col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    XYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    END-OF-RECORD-- test.ctl:
    LOAD DATA
    INFILE 'load.dat' "str 'END-OF-RECORD'"
    TRUNCATE
    INTO TABLE staging
    FIELDS TERMINATED BY X'09'
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    col1 "trim(:col1)",
    col2 "trim(:col2)",
    col3 char(10000)
    SCOTT@orcl_11gR2> create table staging
      2    (col1 varchar2(10),
      3       col2 varchar2(100),
      4       col3 clob)
      5  /
    Table created.
    SCOTT@orcl_11gR2> host sqlldr scott/tiger control=test.ctl log=test.log
    SCOTT@orcl_11gR2> select * from staging
      2  /
    COL1
    COL2
    COL3
    1
    col2-text
    col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    XYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    1 row selected.
    SCOTT@orcl_11gR2> create table my_table
      2    (col1 varchar2(10) primary key,
      3       col2 varchar2(100),
      4       col3 varchar2(4000),
      5       col4 varchar2(10),
      6       col5 varchar2(1))
      7  /
    Table created.
    SCOTT@orcl_11gR2> insert into my_table (col1, col2, col3)
      2  select col1, col2, substr (col3, 1, 4000) from staging
      3  /
    1 row created.
    SCOTT@orcl_11gR2> select * from my_table
      2  /
    COL1
    COL2
    COL3
    COL4       C
    1
    col2-text
    col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    XYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    1 row selected.

  • Sqlldr producing ora-1008 when using conventional mode

    On 9.2.0.8 Solaris 9,
    When performing the load using direct mode it works. only when using conventional mode i get the error.
    any ideas?
    10x,

    Don't use reserved words (CHAR,which is a format specification) as column names:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e22490/ldr_field_list.htm#i1015797

  • Invalid Content-Type value on OC4J 10.1.3.4.0 when using JAX-WS

    Hi all,
    I'm developing web services using JAX-WS on top of OC4J 10.1.3.4.0. I followed the procedure to enable this in the developer guide with success. My web service is running fine but the headers of the HTTP response contains an invalid value for the Content-Type header
    The charset element has the value utf-8" (with the double quote included) which is interpreted as a wrong encoding by the client application.<br />
    Below is the HTTP request and response with the error. (I stripped the soap part for clarity)<br />
    <br />
    POST /mywebservice/ HTTP/1.1<br />
    Content-Type: text/xml;charset=UTF-8<br />
    SOAPAction: "http://soap.exemple.com/mywebservice"<br />
    User-Agent: Jakarta Commons-HttpClient/3.0.1<br />
    Host: behs0054:8888<br />
    Content-Length: 2174<br />
    <br />
    &lt;...&gt; soap message<br />
    <hr />
    HTTP/1.1 500 Internal Server Error<br />
    Date: Fri, 03 Oct 2008 13:10:43 GMT<br />
    Server: Oracle Containers for J2EE<br />
    Connection: Keep-Alive<br />
    Keep-Alive: timeout=15, max=100<br />
    Content-Type: text/xml;charset=<strong>utf-8"
    </strong>Transfer-Encoding: chunked
    &lt;...&gt; soap fault received
    <hr />
    Thanks a lot for your answers,
    Gauthier

    Does not only happen when using JAX-WS.
    the following servlet code is enough to reproduce the problem :
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType("text/xml;charset=\"utf-8\"");
    It only occurs on 10.1.3.4.0 (works fine on 10.1.3.3.0 and 11.1.1.1.0 TP4)
    Regards

  • Using sqlldr to load XML files and the file name ?  or access the file name

    I can use sqlldr to load the XML files when I declare the target table of XMLTYPE, but I need to load the filename and a sequence also with the XML in a table so we can mark wether the file passed validation or not.
    something like ....
    Create table test1
    lobfn varchar(200),
    load_number number,
    XML_COL XMLTYPE
    --------------- here is my sqlldr command
    sqlldr xml_user/xml_user load_test1.ctl
    LOAD DATA
    INFILE *
    INTO TABLE test1
    append
    xmltype(XML_COL)
    lobfn FILLER char TERMINATED by ',',
    XML_COL LOBFILE(lobfn) TERMINATED BY EOF
    BEGINDATA
    filename1.xml
    filename2.xml
    filename64.xml
    sqlldr comes back and says "commit point reached - logical record count 64
    but when I select count(*) from test1; it returns 0 rows.
    and when I
    SELECT X.* FROM tst1 P2,
    XMLTable ( '//XMLRoot//APPLICATION'
    PASSING P2.XML_COL
    COLUMNS
    "LASTNAME" CHAR(31) PATH 'LASTNAME',
    "FIRSTNAME" CHAR(31) PATH 'FIRSTNAME'
    ) AS X;
    It tells me invalid identifier ,
    Do I need to use a function to get the XML_COL as a object_value ???
    But when I create the table like
    create table test1 of XMLTYPE;
    and use sqlldr it works, but I dont have the file name, or dont know how to access it ??
    and I can use
    SELECT X.* FROM tst1 P2,
    XMLTable ( '//XMLRoot//APPLICATION'
    PASSING P2.object_value
    COLUMNS
    "LASTNAME" CHAR(31) PATH 'LASTNAME',
    "FIRSTNAME" CHAR(31) PATH 'FIRSTNAME'
    ) AS X;

    BTW
    Here's a trivial example of what you appear to be trying to do..
    C:\xdb\otn\sqlLoader>sqlplus scott/tiger @createTable
    SQL*Plus: Release 10.2.0.2.0 - Production on Wed Aug 2 22:08:10 2006
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> DROP TABLE TEST_TABLE
      2  /
    Table dropped.
    SQL> CREATE TABLE TEST_TABLE
      2  (
      3    filename    VARCHAR2(32),
      4    file_content xmltype
      5  )
      6  /
    Table created.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    C:\xdb\otn\sqlLoader>type sqlldr.ctl
    LOAD DATA
    INFILE 'filelist.txt'
       INTO TABLE TEST_TABLE
       FIELDS TERMINATED BY ','
        FILENAME       CHAR(32),
        FILE_CONTENT   LOBFILE(FILENAME) TERMINATED BY EOF
    C:\xdb\otn\sqlLoader>type filelist.txt
    testcase1.xml
    testcase2.xml
    C:\xdb\otn\sqlLoader>type testcase1.xml
    <foo/>
    C:\xdb\otn\sqlLoader>type testcase1.xml
    <foo/>
    C:\xdb\otn\sqlLoader>sqlldr userid=SCOTT/TIGER control=sqlldr.ctl log=sqlldr.log -direct
    SQL*Loader: Release 10.2.0.2.0 - Production on Wed Aug 2 22:08:11 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Load completed - logical record count 2.
    C:\xdb\otn\sqlLoader>sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.2.0 - Production on Wed Aug 2 22:08:18 2006
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from TEST_TABLE
      2  /
    FILENAME
    FILE_CONTENT
    testcase1.xml
    <foo/>
    testcase2.xml
    <baa/>
    SQL>
    If you are interested in the 11g beta program please contact me directory at
    markDOTdrakeAToracleDOTcom

  • Invalid SOAP action when using java ws WebService

    Hi all,
    this is a slightly more detailed error for a problem i posted recently. I am connecting to a web service that was generated from WSDL. It has two methods "HelloWorld" and "HelloSayFirstName". As defined in the WSDL, the methods use the SOAP action document style. I want to add a cookie to the http header, so after the port is created, I use the following to add the header to the requestContext:
              BindingProvider bindingProvider = (BindingProvider) servicePort;
              Map<String, Object> requestContext = bindingProvider.getRequestContext();
              List<String> cookies = new ArrayList<String>();
              cookies.add("mycookie=mytoken");
              HashMap<String, List<String>> httpHeaders = new HashMap<String, List<String>>();
              httpHeaders.put(HTTPConstants.HEADER_COOKIE, cookies);
              requestContext.put(MessageContext.HTTP_REQUEST_HEADERS, httpHeaders);
    This works when I call the first method (HelloWorld) - the first activity message sent to the server contains the following:
    <HttpRequest>
    <Method>POST</Method>
    <QueryString></QueryString>
    <WebHeaders>
    <Cache-Control>no-cache</Cache-Control>
    <Connection>keep-alive</Connection>
    <Pragma>no-cache</Pragma>
    <Transfer-Encoding>chunked</Transfer-Encoding>
    <Content-Type>text/xml; charset=UTF-8</Content-Type>
    <Accept>*</Accept>
    <Cookie>mycookie=mytoken</Cookie>
    <Host>exampleHost</Host>
    <User-Agent>Java/1.5.0_14</User-Agent>
    <SOAPAction>"http://tempuri.org/IMyService/HelloWorld"</SOAPAction>
    </WebHeaders>
    </HttpRequest>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <To s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://exampleHost/WebServices/WCFService/Service.svc</To>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tempuri.org/IMyService/HelloWorld</Action>
    </s:Header>
    <soap:Body>
    <HelloWorld xmlns="http://tempuri.org/" xmlns:ns2="http://schemas.datacontract.org/2004/07/" xmlns:ns3="http://schemas.microsoft.com/2003/10/Serialization/">
    <myValue1>world</myValue1>
    </HelloWorld>
    </soap:Body>
    </soap:Envelope>
    However, after this method, the httpHeaders in the requestContext object have been updated to include the "Accept" header and the "SOAPAction" header - which is the incorrect action! Now, when I call the method "HelloSayFirstName" I get the following:
    <HttpRequest>
    <Method>POST</Method>
    <QueryString></QueryString>
    <WebHeaders>
    <Cache-Control>no-cache</Cache-Control>
    <Connection>keep-alive</Connection>
    <Pragma>no-cache</Pragma>
    <Transfer-Encoding>chunked</Transfer-Encoding>
    <Content-Type>text/xml; charset=UTF-8</Content-Type>
    <Accept>*</Accept>
    <Cookie>mycookie=mytoken</Cookie>
    <Host>exampleHost</Host>
    <User-Agent>Java/1.5.0_14</User-Agent>
    <SOAPAction>"http://tempuri.org/IMyService/HelloWorld"</SOAPAction>
    </WebHeaders>
    </HttpRequest>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <To s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://exampleHost/WebServices/WCFService/Service.svc</To>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tempuri.org/IMyService/HelloWorld</Action>
    </s:Header>
    <soap:Body>
    <HelloSayFirstName xmlns="http://tempuri.org/" xmlns:ns2="http://schemas.datacontract.org/2004/07/" xmlns:ns3="http://schemas.microsoft.com/2003/10/Serialization/">
    <dataContractValue></dataContractValue>
    </HelloSayFirstName>
    </soap:Body>
    </soap:Envelope>
    It seems that the SOAPAction in the http header and the soap header is incorrect. Is there any reason why the requestContext would keep hold of the action that was previously called, and not use the new action? I'm stumped here - any help would be greatly appreciated.
    Cheers.

    Does not only happen when using JAX-WS.
    the following servlet code is enough to reproduce the problem :
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType("text/xml;charset=\"utf-8\"");
    It only occurs on 10.1.3.4.0 (works fine on 10.1.3.3.0 and 11.1.1.1.0 TP4)
    Regards

  • Using Sqlldr to load VARRAYs!!!!!!!

    HI,
    I've created a collection type within the database the description of which reads as follows.....
    SQL> desc LISTVARCHAR
    LISTVARCHAR VARRAY(200) OF VARCHAR2(4000)
    But when I try to insert a value of more than 255 characters using sqlldr, it seems to fail giving the following message, but works fine from within sqlplus!
    Record 1: Rejected - Error on table TESTER, column COL1.
    Field in data file exceeds maximum length
    ****** Sample Data:
    |ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUV|
    Shouldn't this Column take as many as 4000 characters for each element within that VARRAY? Please let me know if I'm missing anything.
    Thanks a lot for your time
    Chandra M.

    You will able to find good information about it in this document :
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96652.pdf
    Joel P�rez

  • Using sqlldr to load CLOB data from DB2

    I am stuck trying to resolve this problem. I am migrating data from DB2 to Oracle. I used DB2 export to extract the data specifying lobsinfile clause. This created all the CLOB data in one file. So a typical record has a column with a reference to the CLOB data. "OUTFILE.001.lob.0.2880/". where OUTFILE.001.lob is the name specified in the export command and 0 is the starting position in the file and 2880 is the length of the first CLOB.
    When I try to load this data using sqlldr I'm getting a file not found.
    The control file looks something like this:
    clob_1 FILLER char(100),
    "DETAILS" LOBFILE(clob_1) TERMINATED BY EOF,
    I'm using Oracle 11gR2 and DB2 9.7.5
    Your help is appreciated.

    OK..here are additional details. Some names have changed but the idea is the same. Also the sqlldr is executing in the same directory as the data files and the control file
    Primary data file is VOIPCACHE.dat Secondary datafile (file with lob data) is VOIPCACHE.001.lob
    Control Fileload data
    infile 'VOIPCACHE.dat'
    badfile 'VOIPCACHE.bad'
    discardfile 'VOIPCACHE.dsc'
    replace into table VOIPCACHE
    fields terminated by ',' optionally enclosed by '"' TRAILING NULLCOLS
    (KEY1 "rtrim(:KEY1)",
    FIELD8,
    clob_1 FILLER char (100),
    "DATA" LOBFILE(clob_1) TERMINATED BY EOF)
    Snippet from Log file
    IELD7 NEXT * , O(") CHARACTER
    FIELD8 NEXT * , O(") CHARACTER
    CLOB_1 NEXT 100 , O(") CHARACTER
    (FILLER FIELD)
    "DATA" DERIVED * EOF CHARACTER
    Dynamic LOBFILE. Filename in field CLOB_1
    SQL*Loader-502: unable to open data file 'VOIPCACHE.001.lob.0.0/' for field "DATA" table VOIPCACHE
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file 'VOIPCACHE.001.lob.0.47/' for field "DATA" table VOIPCACHE
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file 'VOIPCACHE.001.lob.47.47/' for field "DATA" table VOIPCACHE
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file 'VOIPCACHE.001.lob.94.58/' for field "DATA" table VOIPCACHE
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file 'VOIPCACHE.001.lob.152.58/' for field "DATA" table VOIPCACHE
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file 'VOIPCACHE.001.lob.210.206/' for field "DATA" table VOIPCACHE
    This is repeated for each record
    sqlldr command
    sqlldr userid=${SCHEMA}/${PASSWD}@$ORACLE_SID control=${CTLDIR}/${tbl}.ctl log=${LOGDIR}/${tbl}.log direct=true errors=50
    I dont think the variables are important here
    -EC

  • IPC problem when using WSRP

    Hello all,
    I have a problem with IPC when using WSRP. The setting: I have two Portlets, an EchoPortlet which echoes back what was typed into a textfield and a MessagePortlet, which receives the typed in text form the EchoPortlet via a custom event (PortletMessageEvent) in a custom backing file and displays it. The portlets are Weblogic JSF portlets. I am using WLP 9.2.3.
    In local mode everything just works fine; when I consume the two portlets as remote portlets, the event does not seem to get handled:
    These are my .portlet files:
    EchoPortlet:
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root
    xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:portlet
    definitionLabel="echo_1"
    title="Echo Portlet">
    <netuix:titlebar>
    </netuix:titlebar>
    <netuix:content>
    <netuix:facesContent contentUri="/portlets/echo/jsp/messageentry.faces"/>
    </netuix:content>
    </netuix:portlet>
    </portal:root>
    MessagePortlet:
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:portlet backingFile="de.awd.vertriebsportal.common.EventListenerBacking"
    definitionLabel="message_1" title="Message Portlet">
    <netuix:handleCustomEvent event="PortletMessageEvent" eventLabel="handleCustomEvent1"
    fromSelfInstanceOnly="false" onlyIfDisplayed="true" sourceDefinitionWildcard="any">
    <netuix:invokeBackingFileMethod method="handleEvent"/>
    </netuix:handleCustomEvent>
    <netuix:titlebar/>
    <netuix:content>
    <netuix:facesContent contentUri="/portlets/message/jsp/messagedisplay.faces"/>
    </netuix:content>
    </netuix:portlet>
    </portal:root>
    Here are the WSRP requests from the performBlockingInteraction request on that sends the event:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header />
    <soapenv:Body>
    <urn:performBlockingInteraction xmlns:urn="urn:oasis:names:tc:wsrp:v1:types">
    <urn:registrationContext>
    <urn:registrationHandle>4001</urn:registrationHandle>
    </urn:registrationContext>
    <urn:portletContext>
    <urn:portletHandle>echo_1</urn:portletHandle>
    </urn:portletContext>
    <urn:runtimeContext>
    <urn:userAuthentication>wsrp:none</urn:userAuthentication>
    <urn:portletInstanceKey>wsrpjsftestremote
    main_T1800382711259255957802</urn:portletInstanceKey>
    <urn:namespacePrefix>
    T1800382711259255957802</urn:namespacePrefix>
    <urn:sessionID>
    LG1JLTdVBQjGnZPJm685DwXkJPMpM122Gny8jRNSsyqwyBCgGBXR!-117247815</urn:sessionID>
    <urn:extensions>
    <urn1:LookAndFeelDescriptor xmlns:urn1="urn:bea:wsrp:ext:v1:types">
    <urn1:skeletonId>text</urn1:skeletonId>
    <urn1:skeletonPath>
    /framework/skeletons/</urn1:skeletonPath>
    <urn1:skinId>text</urn1:skinId>
    <urn1:skinPath>/framework/skins/</urn1:skinPath>
    </urn1:LookAndFeelDescriptor>
    </urn:extensions>
    </urn:runtimeContext>
    <urn:userContext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:nil="true" />
    <urn:markupParams>
    <urn:secureClientCommunication>
    false</urn:secureClientCommunication>
    <urn:locales>de</urn:locales>
    <urn:mimeTypes>text/html</urn:mimeTypes>
    <urn:mimeTypes>image/gif</urn:mimeTypes>
    <urn:mimeTypes>image/x-xbitmap</urn:mimeTypes>
    <urn:mimeTypes>image/jpeg</urn:mimeTypes>
    <urn:mimeTypes>image/pjpeg</urn:mimeTypes>
    <urn:mimeTypes>
    application/x-shockwave-flash</urn:mimeTypes>
    <urn:mimeTypes>application/x-ms-application</urn:mimeTypes>
    <urn:mimeTypes>application/x-ms-xbap</urn:mimeTypes>
    <urn:mimeTypes>
    application/vnd.ms-xpsdocument</urn:mimeTypes>
    <urn:mimeTypes>application/xaml+xml</urn:mimeTypes>
    <urn:mimeTypes>application/vnd.ms-excel</urn:mimeTypes>
    <urn:mimeTypes>
    application/vnd.ms-powerpoint</urn:mimeTypes>
    <urn:mimeTypes>application/msword</urn:mimeTypes>
    <urn:mimeTypes>*/*</urn:mimeTypes>
    <urn:mode>wsrp:view</urn:mode>
    <urn:windowState>wsrp:normal</urn:windowState>
    <urn:clientData>
    <urn:userAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows
    NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
    3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; MS-RTC LM
    8)</urn:userAgent>
    </urn:clientData>
    <urn:navigationalState>
    /wsrpjsftestWeb/portlets/echo/jsp/messageentry.faces</urn:navigationalState>
    <urn:markupCharacterSets>UTF-8</urn:markupCharacterSets>
    <urn:markupCharacterSets>*</urn:markupCharacterSets>
    </urn:markupParams>
    <urn:interactionParams>
    <urn:portletStateChange>readOnly</urn:portletStateChange>
    <urn:formParameters name="T1800382711259255957802:MessageEntryForm:messageSubmit">
    <urn:value>
    <![CDATA[Abschicken]]>
    </urn:value>
    </urn:formParameters>
    <urn:formParameters name="T1800382711259255957802:MessageEntryForm:message">
    <urn:value>
    <![CDATA[asdadasd]]>
    </urn:value>
    </urn:formParameters>
    <urn:formParameters name="T1800382711259255957802:MessageEntryForm">
    <urn:value>
    <![CDATA[T1800382711259255957802:MessageEntryForm]]>
    </urn:value>
    </urn:formParameters>
    </urn:interactionParams>
    </urn:performBlockingInteraction>
    </soapenv:Body>
    </soapenv:Envelope>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header />
    <soapenv:Body>
    <performBlockingInteractionResponse xmlns="urn:oasis:names:tc:wsrp:v1:types">
    <updateResponse>
    <navigationalState>
    /portlets/echo/jsp/messageentry.faces</navigationalState>
    </updateResponse>
    <extensions>
    <Event xmlns="urn:bea:wsrp:ext:v1:types">
    <eventName xmlns:urn="urn:bea:wsrp:wlp:v2:events:name">
    urn:PortletMessageEvent</eventName>
    <eventType xmlns:urn="urn:bea:wsrp:wlp:v2:events:type">
    urn:custom</eventType>
    <eventPayload>
    <binary>rO0ABXQACGFzZGFkYXNk</binary>
    </eventPayload>
    <sourceDefinitionLabel>echo_1</sourceDefinitionLabel>
    <sourceInstanceLabel>
    T1800382711259255957802</sourceInstanceLabel>
    </Event>
    </extensions>
    </performBlockingInteractionResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    The following getMarkup requests for the EchoPortlet and the MessagePortlet:
    Echo:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><urn:getMarkup xmlns:urn="urn:oasis:names:tc:wsrp:v1:types"><urn:registrationContext><urn:registrationHandle>4001</urn:registrationHandle></urn:registrationContext><urn:portletContext><urn:portletHandle>echo_1</urn:portletHandle></urn:portletContext><urn:runtimeContext><urn:userAuthentication>wsrp:none</urn:userAuthentication><urn:portletInstanceKey>wsrpjsftestremote     main_T1800382711259255957802</urn:portletInstanceKey><urn:namespacePrefix>T1800382711259255957802</urn:namespacePrefix><urn:sessionID>LG1JLTdVBQjGnZPJm685DwXkJPMpM122Gny8jRNSsyqwyBCgGBXR!-117247815</urn:sessionID><urn:extensions><urn1:LookAndFeelDescriptor xmlns:urn1="urn:bea:wsrp:ext:v1:types"><urn1:skeletonId>text</urn1:skeletonId><urn1:skeletonPath>/framework/skeletons/</urn1:skeletonPath><urn1:skinId>text</urn1:skinId><urn1:skinPath>/framework/skins/</urn1:skinPath></urn1:LookAndFeelDescriptor></urn:extensions></urn:runtimeContext><urn:userContext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/><urn:markupParams><urn:secureClientCommunication>false</urn:secureClientCommunication><urn:locales>de</urn:locales><urn:mimeTypes>text/html</urn:mimeTypes><urn:mimeTypes>image/gif</urn:mimeTypes><urn:mimeTypes>image/x-xbitmap</urn:mimeTypes><urn:mimeTypes>image/jpeg</urn:mimeTypes><urn:mimeTypes>image/pjpeg</urn:mimeTypes><urn:mimeTypes>application/x-shockwave-flash</urn:mimeTypes><urn:mimeTypes>application/x-ms-application</urn:mimeTypes><urn:mimeTypes>application/x-ms-xbap</urn:mimeTypes><urn:mimeTypes>application/vnd.ms-xpsdocument</urn:mimeTypes><urn:mimeTypes>application/xaml+xml</urn:mimeTypes><urn:mimeTypes>application/vnd.ms-excel</urn:mimeTypes><urn:mimeTypes>application/vnd.ms-powerpoint</urn:mimeTypes><urn:mimeTypes>application/msword</urn:mimeTypes><urn:mimeTypes>*/*</urn:mimeTypes><urn:mode>wsrp:view</urn:mode><urn:windowState>wsrp:normal</urn:windowState><urn:clientData><urn:userAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; MS-RTC LM 8)</urn:userAgent></urn:clientData><urn:navigationalState>/portlets/echo/jsp/messageentry.faces</urn:navigationalState><urn:markupCharacterSets>UTF-8</urn:markupCharacterSets><urn:markupCharacterSets>*</urn:markupCharacterSets></urn:markupParams></urn:getMarkup></soapenv:Body></soapenv:Envelope>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header />
    <soapenv:Body>
    <getMarkupResponse xmlns="urn:oasis:names:tc:wsrp:v1:types">
    <markupContext>
    <mimeType>text/html; charset=UTF-8</mimeType>
    <markupString>
    <![CDATA[
    <form id="T1800382711259255957802:MessageDisplayForm" method="post" action="http://localhost:7001/wsrpjsftestWeb/appmanager/wsrpjsftestremote/main?_nfpb=true&amp;_windowLabel=T1800382711259255957802&amp;wsrp-urlType=blockingAction&amp;wsrp-url=&amp;wsrp-requiresRewrite=false&amp;wsrp-navigationalState=%2FwsrpjsftestWeb%2Fportlets%2Fecho%2Fjsp%2Fmessagedisplay.faces&amp;wsrp-interactionState=&amp;wsrp-mode=wsrp%3Aview&amp;wsrp-windowState=wsrp%3Anormal" enctype="application/x-www-form-urlencoded">
    <table cellpadding="0" cellspacing="5" border="0" width="100%" >
    <tr>
    <td valign="top">
    <label for="T1800382711259255957802:MessageDisplayForm:message">
    <span id="T1800382711259255957802:MessageDisplayForm:messageLabel">Nachricht:</span>
    </label>
    </td>
    <td valign="top">
    <span id="T1800382711259255957802:MessageDisplayForm:message">asdadasd</span>
    </td>
    </tr>
    <tr>
    <td valign="top" colspan="2">
    <input type="submit" name="T1800382711259255957802:MessageDisplayForm:_id1" value="Zur&uuml;ck" />
    </td>
    </tr>
    </table>
    <input type="hidden" name="T1800382711259255957802:MessageDisplayForm" value="T1800382711259255957802:MessageDisplayForm" /></form>
    ]]>
    </markupString>
    <locale>de-DE</locale>
    <requiresUrlRewriting>false</requiresUrlRewriting>
    </markupContext>
    </getMarkupResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    Message:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><urn:getMarkup xmlns:urn="urn:oasis:names:tc:wsrp:v1:types"><urn:registrationContext><urn:registrationHandle>4001</urn:registrationHandle></urn:registrationContext><urn:portletContext><urn:portletHandle>message_1</urn:portletHandle></urn:portletContext><urn:runtimeContext><urn:userAuthentication>wsrp:none</urn:userAuthentication><urn:portletInstanceKey>wsrpjsftestremote     main_T1800482711259255957849</urn:portletInstanceKey><urn:namespacePrefix>T1800482711259255957849</urn:namespacePrefix><urn:sessionID>LG1JLTdVBQjGnZPJm685DwXkJPMpM122Gny8jRNSsyqwyBCgGBXR!-117247815</urn:sessionID><urn:extensions><urn1:LookAndFeelDescriptor xmlns:urn1="urn:bea:wsrp:ext:v1:types"><urn1:skeletonId>text</urn1:skeletonId><urn1:skeletonPath>/framework/skeletons/</urn1:skeletonPath><urn1:skinId>text</urn1:skinId><urn1:skinPath>/framework/skins/</urn1:skinPath></urn1:LookAndFeelDescriptor></urn:extensions></urn:runtimeContext><urn:userContext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/><urn:markupParams><urn:secureClientCommunication>false</urn:secureClientCommunication><urn:locales>de</urn:locales><urn:mimeTypes>text/html</urn:mimeTypes><urn:mimeTypes>image/gif</urn:mimeTypes><urn:mimeTypes>image/x-xbitmap</urn:mimeTypes><urn:mimeTypes>image/jpeg</urn:mimeTypes><urn:mimeTypes>image/pjpeg</urn:mimeTypes><urn:mimeTypes>application/x-shockwave-flash</urn:mimeTypes><urn:mimeTypes>application/x-ms-application</urn:mimeTypes><urn:mimeTypes>application/x-ms-xbap</urn:mimeTypes><urn:mimeTypes>application/vnd.ms-xpsdocument</urn:mimeTypes><urn:mimeTypes>application/xaml+xml</urn:mimeTypes><urn:mimeTypes>application/vnd.ms-excel</urn:mimeTypes><urn:mimeTypes>application/vnd.ms-powerpoint</urn:mimeTypes><urn:mimeTypes>application/msword</urn:mimeTypes><urn:mimeTypes>*/*</urn:mimeTypes><urn:mode>wsrp:view</urn:mode><urn:windowState>wsrp:normal</urn:windowState><urn:clientData><urn:userAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; MS-RTC LM 8)</urn:userAgent></urn:clientData><urn:markupCharacterSets>UTF-8</urn:markupCharacterSets><urn:markupCharacterSets>*</urn:markupCharacterSets></urn:markupParams></urn:getMarkup></soapenv:Body></soapenv:Envelope>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><getMarkupResponse xmlns="urn:oasis:names:tc:wsrp:v1:types"><markupContext><mimeType>text/html; charset=UTF-8</mimeType><markupString><![CDATA[
              <form id="T1800482711259255957849:MessageDisplayForm" method="post" action="http://localhost:7001/wsrpjsftestWeb/appmanager/wsrpjsftestremote/main?_nfpb=true&amp;_windowLabel=T1800482711259255957849&amp;wsrp-urlType=blockingAction&amp;wsrp-url=&amp;wsrp-requiresRewrite=false&amp;wsrp-navigationalState=%2FwsrpjsftestWeb%2Fportlets%2Fmessage%2Fjsp%2Fmessagedisplay.faces&amp;wsrp-interactionState=&amp;wsrp-mode=wsrp%3Aview&amp;wsrp-windowState=wsrp%3Anormal" enctype="application/x-www-form-urlencoded">
                   <table cellpadding="0" cellspacing="5" border="0" width="100%" >
                   <tr>
                   <td valign="top">
                        <label for="T1800482711259255957849:MessageDisplayForm:message">
                                  <span id="T1800482711259255957849:MessageDisplayForm:messageLabel">Nachricht:</span>
                        </label>
                             </td>
                   <td valign="top">
                             <span id="T1800482711259255957849:MessageDisplayForm:message"></span>
                             </td>
                   </tr>
                   </table>
              <input type="hidden" name="T1800482711259255957849:MessageDisplayForm" value="T1800482711259255957849:MessageDisplayForm" /></form>
    ]]></markupString><locale>de-DE</locale><requiresUrlRewriting>false</requiresUrlRewriting></markupContext></getMarkupResponse></soapenv:Body></soapenv:Envelope>
    Finally, the code of the handleEvent method in the backing file (works fine locally):
         public void handleEvent(HttpServletRequest request,
                   HttpServletResponse response,
                   Event event) {
              System.out.println("EventListenerBacking - Receiving custom event...");
              CustomEvent customEvent = (CustomEvent) event;
              Serializable payload = customEvent.getPayload();
              System.out.println("EventListenerBacking - payload: " + payload);
         BackingPortletUtil portletUtil = PortletUtilFactory.getInstance().getBackingPortletUtil();
              portletUtil.storeSharedState(request, payload);
              request.setAttribute("customPayload", payload);
    And the code to fire the event:
         public void sendMessage(HttpServletRequest request, Serializable payload) {
              PortletBackingContext context = getPortletBackingContext(request);
              if (context != null) {
                   System.out.println("Sending portlet message with event " + PORTLET_EVENT);
                   context.fireCustomEvent(PORTLET_EVENT, payload);
    PORTLET_EVENT is a static constant:
    public static final String PORTLET_EVENT = "PortletMessageEvent";
    Any idea, why the event is not handled when using WSRP?
    Kind regards,
    Stefan

    Hello Stefan,
    The event handling information is added to the proxy portlet only when the proxy portlet is created- not when it is added to a page. So if you already have the remote portlet added to a page when you add an event to the portlet on the producer side, you would need to remove the proxy portlet from the page on the consumer side, remove the proxy portlet from the consumer entirely, and re-add it from the producer.
    It is also possible to create the proxy portlets from the IDE, but in WLP 9.2, it isn't possible to change the IP of a producer after a streaming portal has been created in most cases. If your producer does not require registration and your streaming portal does not contain any customized remote portlets (portlets whose preference values were changed), it may be possible in WLP 9.2 to use the propagation tool to move the streaming portal to a new consumer, and once it is on the new consumer I think you can use the the Admin Tools to change the WSDL URL of the producer to point to your new producer. If registration is required or any of the producer portlets are customized, this won't work. It is worth noting that WLP 10.2 and higher versions support moving streaming portals across producers even when registration is required or portlets have been customized, so upgrading WLP versions is another possibility.
    Kevin

  • Jax-ws 2.2.8 and ws-addressing: Client throwing java.lang.NullPointerException on receipt of HTTP 202 when using non-anonymous ReplyTo address

    Server: JBoss EAP 6.2.0
    Client: JDK 1.7.0_51 x64
    JAX-WS: RI 2.2.8 ( via -Djava.endorsed.dirs )
    I am getting a java.lang.NullPointerException when calling the operation on the WS endpoint from the client when using non-anonymous replyTo address.
    I have simplified the scenario into a small test case that hopefully others can replicate. Since the exception is happening on the client instead of the server, I would think that the container used is irrelevant, but I have specified it nonetheless.
    1) WebService:
    package test.webservice;
    import java.util.Random;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.jws.soap.SOAPBinding;
    import javax.xml.ws.soap.Addressing;
    @WebService(targetNamespace="http://services.nowhere.org/")
    @Addressing(required=true)
    @SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
    public class RandomTest {
        @WebMethod
        public long nextRandom(@WebParam boolean forceException) throws Exception {
            if( forceException ) {
                throw new Exception("Some exception");
            Random rand = new Random();
            return rand.nextLong();
    2) Generated WSDL by JBossEAP 6.2.2:
    <?xml version='1.0' encoding='UTF-8'?><wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://webservice.test/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" name="RandomTestService" targetNamespace="http://webservice.test/">
      <wsdl:types>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://webservice.test/" elementFormDefault="unqualified" targetNamespace="http://webservice.test/" version="1.0">
      <xs:element name="nextRandom" type="tns:nextRandom"/>
      <xs:element name="nextRandomResponse" type="tns:nextRandomResponse"/>
      <xs:complexType name="nextRandom">
        <xs:sequence/>
      </xs:complexType>
      <xs:complexType name="nextRandomResponse">
        <xs:sequence>
          <xs:element name="return" type="xs:long"/>
        </xs:sequence>
      </xs:complexType>
    </xs:schema>
      </wsdl:types>
      <wsdl:message name="nextRandom">
        <wsdl:part element="tns:nextRandom" name="parameters">
        </wsdl:part>
      </wsdl:message>
      <wsdl:message name="nextRandomResponse">
        <wsdl:part element="tns:nextRandomResponse" name="parameters">
        </wsdl:part>
      </wsdl:message>
      <wsdl:portType name="RandomTest">
        <wsdl:operation name="nextRandom">
          <wsdl:input message="tns:nextRandom" name="nextRandom" wsam:Action="http://webservice.test/RandomTest/nextRandomRequest" wsaw:Action="http://webservice.test/RandomTest/nextRandomRequest">
        </wsdl:input>
          <wsdl:output message="tns:nextRandomResponse" name="nextRandomResponse" wsam:Action="http://webservice.test/RandomTest/nextRandomResponse" wsaw:Action="http://webservice.test/RandomTest/nextRandomResponse">
        </wsdl:output>
        </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="RandomTestServiceSoapBinding" type="tns:RandomTest">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsaw:UsingAddressing wsdl:required="true"/>
        <wsp:PolicyReference URI="#RandomTestServiceSoapBinding_WSAM_Addressing_Policy"/>
        <wsdl:operation name="nextRandom">
          <soap:operation soapAction="" style="document"/>
          <wsdl:input name="nextRandom">
            <soap:body use="literal"/>
          </wsdl:input>
          <wsdl:output name="nextRandomResponse">
            <soap:body use="literal"/>
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="RandomTestService">
        <wsdl:port binding="tns:RandomTestServiceSoapBinding" name="RandomTestPort">
          <soap:address location="http://localhost:8080/servertest/RandomTest"/>
        </wsdl:port>
      </wsdl:service>
        <wsp:Policy xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="RandomTestServiceSoapBinding_WSAM_Addressing_Policy"><wsam:Addressing><wsp:Policy/></wsam:Addressing></wsp:Policy>
    </wsdl:definitions>
    3) ant build.xml to generate the client code from WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <project default="build" basedir="..">
        <property name="jaxws.classpath" location="C://jaxws-2.2.8/jaxws-ri/lib/*.jar"/>
        <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
               <classpath path="${jaxws.classpath}"/>
        </taskdef>
        <target name="build" >
            <!-- For these to work, the JAR files in tools/jaxws-ri must be included in Ant's classpath -->
            <wsimport wsdl="http://localhost:8080/servertest/RandomTest?wsdl"
                   verbose="true"
                   sourcedestdir="src"
                   destdir="bin"
                   keep="true">
                   <xjcarg value="-enableIntrospection"/>
            </wsimport>
        </target>
    </project>
    4) Client code
    4a) ClientTest.java - Actual client run from client
    package test.wsclient;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.ws.BindingProvider;
    import javax.xml.ws.Endpoint;
    import javax.xml.ws.handler.Handler;
    import javax.xml.ws.soap.AddressingFeature;
    import org.nowhere.services.RandomTest;
    import org.nowhere.services.RandomTestService;
    public class ClientTest {
        public static void main(String args[]) throws Exception {
            ClientTest app = new ClientTest();
            app.testAddressing();
        public void testAddressing() throws Exception {
            String REPLY_TO_ADDRESS = "http://localhost:8082/servertest/RandomCallback";
            String FAULT_TO_ADDRESS = "http://localhost:8082/servertest/RandomCallbackFault";
            RandomTestService service = new RandomTestService();
            RandomTest port = service.getRandomTestPort(new AddressingFeature());
            BindingProvider provider = (BindingProvider) port;
            // pass the replyTo address to the handler
            provider.getRequestContext().put("ReplyTo", REPLY_TO_ADDRESS);
            provider.getRequestContext().put("FaultTo", FAULT_TO_ADDRESS);
            // Register handlers to set the ReplyTo and FaultTo on the SOAP request sent to the WS endpoint
            List<Handler> handlerChain = new ArrayList<Handler>();
            handlerChain.add(new ClientHandler());
            provider.getBinding().setHandlerChain(handlerChain);
            // Start endpoint to receive callbacks from WS
            Endpoint endpoint = Endpoint.publish(REPLY_TO_ADDRESS, new CallbackSEI());
            try {
                port.nextRandom(false);
            } catch( Exception ex ) {
                ex.printStackTrace();
            } finally {
                Thread.sleep(10000);
            endpoint.stop();
            System.exit(0);
    4b) ClientHandler.java - Used to set the wsa ReplyTo address and FaultTo address when sending SOAP request from client to server
    package test.wsclient;
    import java.util.Set;
    import javax.xml.namespace.QName;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.ws.handler.MessageContext;
    import javax.xml.ws.handler.MessageContext.Scope;
    import javax.xml.ws.handler.soap.SOAPHandler;
    import javax.xml.ws.handler.soap.SOAPMessageContext;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    public class ClientHandler implements SOAPHandler<SOAPMessageContext> {
        public ClientHandler() {};
        @Override
        public Set<QName> getHeaders() {
            return null;
        @Override
        public void close(MessageContext arg0) {
        @Override
        public boolean handleFault(SOAPMessageContext context) {
            return true;
        protected void setAnAddress(SOAPHeader header, String tagName, String address) {
            NodeList nodeListReplyTo = header.getElementsByTagName(tagName);
            NodeList nodeListAddress = nodeListReplyTo.item(0).getChildNodes();
            for (int i = 0; i < nodeListAddress.getLength(); i++) {
                Node node = nodeListAddress.item(i);
                if ("Address".equals(node.getLocalName())) {
                    node.setTextContent(address);
                    break;
        protected String getMessageID(SOAPHeader header) {
            NodeList nodeListMessageId = header.getElementsByTagName("MessageID");
            return nodeListMessageId.item(0).getTextContent();
        @Override
        public boolean handleMessage(SOAPMessageContext context) {
            Boolean isOutbound = (Boolean) context.get(SOAPMessageContext.MESSAGE_OUTBOUND_PROPERTY);
            if (isOutbound) {
                try {
                    SOAPEnvelope envelope = context.getMessage().getSOAPPart().getEnvelope();
                    SOAPHeader header = envelope.getHeader();
                    /* extract the generated MessageID */
                    String messageID = getMessageID(header);
                    context.put("MessageID", messageID);
                    context.setScope("MessageID", Scope.APPLICATION);
                    /* change ReplyTo address */
                    setAnAddress(header, "ReplyTo", (String) context.get("ReplyTo"));
                    setAnAddress(header, "FaultTo", (String) context.get("FaultTo"));
                } catch (Exception ex) {
                    throw new RuntimeException(ex);
            return true;
    4c) CallbackSEI.java - endpoint on the client for server to send the SOAP response back to the client
    package test.wsclient;
    import javax.annotation.Resource;
    import javax.jws.Oneway;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.xml.ws.Action;
    import javax.xml.ws.RequestWrapper;
    import javax.xml.ws.WebServiceContext;
    import javax.xml.ws.soap.Addressing;
    @WebService
    @Addressing
    //@HandlerChain(file = "/handler-chain.xml")
    public class CallbackSEI {
        @Resource
        private WebServiceContext context;
         * If there is no namespace specified in the method below, then the CallbackSEI needs to be in the same package as the
         * WS endpoint.
        @Oneway
        @Action(input="http://services.nowhere.org/RandomTest/nextRandomResponse")
        @RequestWrapper(localName="nextRandomResponse", targetNamespace="http://services.nowhere.org/")
        public void handleNotification(@WebParam(name="return")long random) {
            System.out.println("Asynch response received");
            System.out.println( random );
            //System.out.println("This response relates to the message ID: "+ getMessageID());
    In summary:
    Server is listening on port 8080
    Client will listen in port 8082 for the callback from the server for the SOAP response
    Now when I run the client, I see that the proper behaviour as far as ws-addressing is concerned. That is:
    client  -- SOAP request ( on port 8080 ) --> server
    client <-- HTTP 202 ( empty HTTP body )  --- server
    client <-- SOAP response ( on port 8082 )  --- server
    All well and good, except that I am getting a NullPointerException on the client side when I call the operation.
    With debugging of the SOAP request and responses, I get the following output:
    ---[HTTP request - http://localhost:8080/servertest/RandomTest]---
    Accept: text/xml, multipart/related
    Content-Type: text/xml; charset=utf-8
    SOAPAction: "http://services.nowhere.org/RandomTest/nextRandomRequest"
    User-Agent: JAX-WS RI 2.2.8 svn-revision#13980
    <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><S:Header><To xmlns="http://www.w3.org/2005/08/addressing">http://localhost:8080/servertest/RandomTest</To><Action xmlns="http://www.w3.org/2005/08/addressing">http://services.nowhere.org/RandomTest/nextRandomRequest</Action><ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
        <Address>http://localhost:8082/servertest/RandomCallback</Address>
    </ReplyTo><FaultTo xmlns="http://www.w3.org/2005/08/addressing">
        <Address>http://localhost:8082/servertest/RandomCallbackFault</Address>
    </FaultTo><MessageID xmlns="http://www.w3.org/2005/08/addressing">uuid:bcd2f6ef-3034-49e8-b837-dbd6a772fb93</MessageID></S:Header><S:Body><ns2:nextRandom xmlns:ns2="http://services.nowhere.org/"><arg0>false</arg0></ns2:nextRandom></S:Body></S:Envelope>--------------------
    ---[HTTP response - http://localhost:8080/servertest/RandomTest - 202]---
    null: HTTP/1.1 202 Accepted
    Content-Length: 0
    Content-Type: text/xml;charset=UTF-8
    Date: Fri, 18 Jul 2014 08:34:36 GMT
    Server: Apache-Coyote/1.1
    java.lang.NullPointerException
        at com.sun.proxy.$Proxy38.nextRandom(Unknown Source)
        at test.wsclient.ClientTest.testAddressing(ClientTest.java:43)
        at test.wsclient.ClientTest.main(ClientTest.java:18)
    ---[HTTP request]---
    Cache-control: no-cache
    Host: localhost:8082
    Content-type: text/xml; charset=UTF-8
    Content-length: 704
    Connection: keep-alive
    Pragma: no-cache
    User-agent: Apache CXF 2.7.7.redhat-1
    Accept: */*
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Action xmlns="http://www.w3.org/2005/08/addressing">http://services.nowhere.org/RandomTest/nextRandomResponse</Action><MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:65d8d7fc-09e4-494a-a9c5-0a01faf4d7e6</MessageID><To xmlns="http://www.w3.org/2005/08/addressing">http://localhost:8082/servertest/RandomCallback</To><RelatesTo xmlns="http://www.w3.org/2005/08/addressing">uuid:bcd2f6ef-3034-49e8-b837-dbd6a772fb93</RelatesTo></soap:Header><soap:Body><ns2:nextRandomResponse xmlns:ns2="http://services.nowhere.org/"><return>2870062781194370669</return></ns2:nextRandomResponse></soap:Body></soap:Envelope>--------------------
    Asynch response received
    2870062781194370669
    As you can see from the output above, the proxy is throwing an Exception when it receives the HTTP 202 response.
    Any ideas ?

    I think I have found when I get this error and probably I have found a bug. I will appreciate if someone can confirm this.
    In my BPEL project setup, my BPEL process's wsdl file imports another wsdl from different namespace. Here is sample snippet -
    <wsdl:definitions targetNamespace="http://namespace/1">
    <wsdl:import namespace="http://namespace/2" location="resources/another.wsdl"/>
    <plnk:partnerLinkType....../>
    </wsdl:definitions>
    Please let me know. I checked the bundled samples with Oracle BPEL PM and did not find any similar case where process wsdl imports another wsdl.
    Thank you.
    Meghana

  • Data Corrupted when using CREATE AS SELECT * FROM over DB LINK

    Hi ,
    I wonder if anyone has suffered a simillar issue as this:
    I have a DB Link Between a 10gR1 (Base install not patched) database on Windows 2003, and a 10gR2 (with latest Patch Database ) on Sun Solaris. The 10.1 DB is the SOURCE 10.2 is TARGET
    When using a statement like the following on the Target :
    CREATE TABLE a AS SELECT * FROM TABLE a@SOURCE
    The statement completes, however for some (not all) tables, the data content is seriously corrupted, I noticed this when trying to apply a UKey on the newly created table in TARGET. The data was completely messed up for around 600 out of 450000 rows, I could not easily tell which rows were messed up as it was the columns that build the UKey that were affected :-(
    The same happens if I precreate the table and use INSERT /*+APPEND*/ INTO AS SELECT.... etc
    I realise that using an unpatched 10.1 is not nessasarily advisable, however currently it is difficult for us to patch or upgrade the DB...
    If anyone has seen this before an/or has any ideas what might be the cause , I would appreciate any help I can get.
    Cheers
    JAmes

    The Problem Manifest itsself in that some fileds are created with incorrect Values, specificaly in easy to identify cases NULL where the original values where not NULL.
    These field do not contain special chars like ä or ß , so it does not seem to indicate a charset issue.
    JAmes

Maybe you are looking for

  • Image display (Image don't appear the first time?)

    Applet at: http://saladinsite.tripod.com/Project/MiniProject.htm Code at and Bottom: http://saladinsite.tripod.com/Project/MiniProject.java Hi, I just created my very first applet. It's a simple quiz. I'll agree it's very unefficient.. but heh.. good

  • Flex component explorer

    I have an application that I would like to develop that is basically like the flex component explorer. Any chance of getting this code? Thanx

  • Worker role monitoring/diagnostics in Azure

    Hi, I have trouble monitoring and reading diagnostics for my 6 different worker roles. - I "Enabled Diagnostics" and specified the right "storage account credentials" - I use Owin for the hosting of my worker roles and specify: config.EnableSystemDia

  • Suggestions on workflow for MPEG2 w/ AC3 to H.264 w/ Multichannel ACC

    I am struggling with how to do this and would appreciate any suggestions. I have Video that is MPEG2 (Transport Stream) with Video PID and AC3 3/2 Audio. I want to do minor edits, then export (aiming at but not only Apple-TV) a H.264 (Mpeg4-10) Video

  • Cuentas duplicadas

    Mi pareja vinculo erróneamente su cuenta de Spotify con mi facebook. Al recuperar mi cuenta de Spotify parece que ha creado otra cuenta distinta ya que no tiene los seguidores ni mis playlist. No me deja acceder a mi cuenta original. Mi nombre de usu