jpa and oracle WebLogic xmltype column type

Hello
I try to use app with a table with a column of "xmltype.
I use 10.3.2.0 (eclipselink) WebLogic and I got this error:
java.lang.NoClassDefFoundError: oracle/xdb/XMLType

Of course, the xdb.jar and the xmlparverV2.jar are grouped in the ear with the other libraries,
and I also put them in the directory lib to the weblogic server.

In my persistence class the categorized are declared as a 'string. '

I also try to use a DescriptorCustomizer with a DirectToXMLTypeMapping
to access the value of the field as a string.

Thank you for your help.

Option-1). If you want classes to be loaded inside of your Application only you can use ClassLoader filtering...
It will be a better option... Just put your Xdb.jar file in your applications Lib directory and apply the filtering of ClassLoader. Like this you do not change the Classpath of the server... so other applications has not will be required to use the jar, you need a specific application.
ClassLoader filtering including demonstrated here: http://weblogic-wonders.com/weblogic/parsers_issues/

Option that I think will work under 95% in your case.

Option-2). Add this jar path in * "setDomainEnv.cmd" * (this script is present in the directory \bin ) in the POST_CLASSPATH variable.
the POST_CLASSPATH=D:\oracle\Middleware\user_projects\domains\base_domain\config\lib\oracle.xdb_11.1.0.jar value;

Tags: Fusion Middleware

Similar Questions

  • How to insert a XML node over 4 k in a column type Oracle of XMLType with cfqueryparam

    In a file XML that I analyze, I have a subnode is more than 4 kilobytes in length, and I'm trying to insert this XML in a column in a table in Oracle 10 g defined as XMLType.

    < cfquery = database "qInsert" name = "abc" >

    Insert into test_table (test_col)

    values)

    < cfqueryparam value = "" #variables.some_xml_4k_plus_in_size # "cfsqltype ="cf_sql_clob">"

    )

    < / cfquery >

    Now, if only there are: cfsqltype = "cf_sql_xmltype", is there a wall to get something like that done...

    Error casting an object of type coldfusion.xml.XmlNodeList cannot be cast to java.lang.String by an incompatible type.  This usually indicates an error in programming in Java, although it could also mean that you tried to use a foreign object in a different way, that it was designed.

    coldfusion.xml.XmlNodeList cannot be cast to java.lang.String

    Oh yes!

    Oracle threw your as XMLTYPE()

    as follows:

    XMLTYPE ()

    leaving the xmltype column type.

  • Ask about the structured storage of XMLTYPE column in Oracle Xml db

    Dear all,

    Version of DB: Oracle 11g (11.2.0.3.0)

    I have a table with an XMLTYPE column with a structured storage.

    CREATE TABLE Orders
        (
        Order_id NUMBER NOT NULL,
        Order_etc VARCHAR2(100),
        Order_desc XMLType NOT NULL
        )
        XMLTYPE Order_desc STORE AS OBJECT RELATIONAL XMLSCHEMA  "http://localhost/public/xsd/order_desc_xsd.xsd" ELEMENT "OrderState";
    

    I then recorded the XSD XML Db schema that is required for the structured storage.

    Before the creation of the table, I had created a table XMLTYPE (db_objects) and was able to use the query to verify that all objects, the XMLTYPE table got broken into when I signed his XSD below.

        SELECT column_name,      
               data_type
        FROM   user_tab_cols
        WHERE  table_name = 'DB_OBJECTS';
    

    And used under query to find data stored in the object-relational structure for my table (DB_OBJECTS) created with definition of XMLTYPE.

      SELECT EXTRACTVALUE(xseq.column_value, '/THISROW/OWNER')       AS owner
        ,      EXTRACTVALUE(xseq.column_value, '/THISROW/OBJECT_NAME') AS object_name
        ,      EXTRACTVALUE(xseq.column_value, '/THISROW/OBJECT_TYPE') AS object_type
        ,      EXTRACTVALUE(xseq.column_value, '/THISROW/OBJECT_ID')   AS object_id
        ,      EXTRACTVALUE(xseq.column_value, '/THISROW/CREATED')     AS created
        FROM   db_objects do
         ,      TABLE(XMLSEQUENCE(EXTRACT(VALUE(do), '/ROWSET/THISROW'))) xseq  
        WHERE  ROWNUM <= 10;
    

    Now could someone let me know, How to find how the column of XMLTYPE (Order_desc) was divided between other objects, just as I did for the Table with XMLTYPE (as shown above)?

    Thank you very much.

    First of all, because you are on 11.2, ExtractValue is obsolete and the documentation lists three options to use instead.  Here's an (untested) option

    SELECT owner, object_name, object_type, object_id, created
      FROM db_objects do,
           XMLTable('/ROWSET/THISROW'
                    PASSING do.object_value
                    COLUMNS
                    -- Set data types accordingly
                    owner        VARCHAR2(20) PATH 'owner',
                    object_name  VARCHAR2(20) PATH 'object_name',
                    object_type  VARCHAR2(20) PATH 'object_type',
                    object_id    VARCHAR2(20) PATH 'object_id',
                    created      VARCHAR2(20) PATH 'created');
    

    Secondly, why the column order matter?  You store in a method of object / relational.  As long as the XML is valid per the schema, Oracle will be able to store the data and thus to retrieve later.  How these data are mainly internal Oracle and shouldn't be touched because it can be changed from one version to another.  You can use the schema annotation to control how Oracle cards and stores the XML content, but nothing in there specifies the column order I know.

    It seems several details are missing information which could help others to answer your question as to what you need.

  • The xmltype column search and listing content in relational format

    Hi all

    I have a database of GR 11, 1 subject table containing the xmltype column. I'm writing a query that displays conetents xml in a relational format.
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Jan 17 11:45:06 2013
    
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Release 11.1.0.7.0 - 64bit Production
    SQL > select * from v version $;

    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11 g Release 11.1.0.7.0 - 64 bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE Production 11.1.0.7.0
    AMT for 64-bit Windows: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production

    SQL > BULKMESSAGES Desc;
    Name of Type Null
    --------------- ---- -------------
    TRANSFER_ID VARCHAR2 (100)
    TRANSFER_LOGS XMLTYPE()
    TRANSFER_RESULT VARCHAR2 (10)

    SQL > select * from BULKMESSAGES
    where TRANSFER_RESULT = "REFUSED."
    /
    TRANSFER_ID TRANSFER_LOGS TRANSFER_RESULT
    ---------------- ---------------------------------------------------------------- ---------------
    T3217 < env:Envelope xmlns:env = 'http://www.w3.org/2003/05/soap-envelope' > REJECTED



    Column of xmltype TRNASFER_LOGS stores the SOAP responses. Response SOAP sample (dummied) of the TRANSFER_LOGS xml column is below:
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
         <env:Header xmlns:env="http://www.w3.org/2003/05/soap-envelope"/>
         <env:Body xmlns:env="http://www.w3.org/2003/05/soap-envelope">
              <env:Fault xmlns:env="http://www.w3.org/2003/05/soap-envelope">
                   <env:Code xmlns:env="http://www.w3.org/2003/05/soap-envelope">
                        <env:Value xmlns:env="http://www.w3.org/2003/05/soap-envelope">env:Receiver</env:Value>
                        <env:Subcode xmlns:env="http://www.w3.org/2003/05/soap-envelope">
                             <env:Value xmlns:fault="http://www.es.com/soapfaults" xmlns:env="http://www.w3.org/2003/05/soap-envelope">fault:MessageBlocked</env:Value>
                        </env:Subcode>
                   </env:Code>
                   <env:Reason xmlns:env="http://www.w3.org/2003/05/soap-envelope">
                        <env:Text lang="en" xmlns:env="http://www.w3.org/2003/05/soap-envelope">connection rejected</env:Text>
                   </env:Reason>
                   <env:Detail xmlns:fault="http://www.es.com/soapfaults" fault:type="faultDetails" fault:messageId="0000013a6" xmlns:env="http://www.w3.org/2003/05/soap-envelope">
                        <fault:path policy="Request Message">
                             <fault:filter status="Fail" name="Call 'Process request '">
                                  <fault:path policy="Process xml ">
                                       <fault:filter status="Fail" name="Call 'Call 3rdparty service'">
                                            <fault:path policy="Call external service">
                                                 <fault:filter status="Pass" name="Extract message"/>
                                            </fault:path>
                                       </fault:filter>
                                  </fault:path>
                             </fault:filter>
                        </fault:path>
                        <fault:attributes>
                             <fault:attribute name="monitoring.enabled" value="true"/>
                             <fault:attribute name="requestor" value="none"/>
                             <fault:attribute name="circuit.failure.reason" value="connection rejected"/>
                             <fault:attribute name="message_protocol" value="SOAP"/>
                             <fault:attribute name="user_id" value="31274556"/>
                             <fault:attribute name="ws_name" value="PUSHDOC"/>
                             <fault:attribute name="user.enabled" value="N"/>
                             <fault:attribute name="http.request.clientaddr" value="/10.254.123.44:43840"/>
                             <fault:attribute name="soap_action" value="pushDocument"/>
                             <fault:attribute name="message.reception_time" value="1349769769742"/>
                             <fault:attribute name="user.api_logging_flag" value="Y"/>
                             <fault:attribute name="circuit.exception" value="com.es.circuit.CircuitAbortException: connection rejected"/>
                             <fault:attribute name="end_point" value="https://es.live.com/pdfs"/>
                             <fault:attribute name="message.protocol.type" value="http"/>
                             <fault:attribute name="user.incoming_date" value="09-11-2013 09:02:49"/>
                             <fault:attribute name="http.destination.host" value="es.live.com"/>
                             <fault:attribute name="message.local.address" value="/100.25.40.82:8085"/>
                             <fault:attribute value="N"/>
                        </fault:attributes>
                   </env:Detail>
              </env:Fault>
         </env:Body>
    </env:Envelope>
    My goal is to search for documents TRANSFER_LOGS for lines that contain flaws: attribute name = "circuit.exception". Then report "fault: name attribute" and their values in relational format. For example:
    TRANSFER_ID    TRANSFER_RESULT FAULT_FAIL_REASON    FAULT_CIRCUIT_EXCEPTION                               FAULT_WS_NAME   FAULT_DESTINATION_HOST
    ----------     --------------- ----------------     -------------------------------------------------------- -------------   ---------------------
    T3217          REJECTED       CONNECTION REJECTED  com.es.circuit.CircuitAbortException: connection rejected  PUSHDOC       es.live.com
    I am new to oracle XML sql querying. Documents in the column of xmltype TRANSFER_LOGS have many namespaces and the query I've tried does not work. So, any help or pointers to search and extract TRANSFER_LOGS in above format is greatly appreciated.

    Thanks in advance.

    VC

    Hello

    You can use something like this:

    SQL> select t.transfer_id, t.transfer_result, x.*
      2  from bulkmessages t
      3     , xmltable(
      4         xmlnamespaces(
      5           'http://www.w3.org/2003/05/soap-envelope' as "e"
      6         , 'http://www.es.com/soapfaults' as "f"
      7         )
      8       , '/e:Envelope/e:Body/e:Fault/e:Detail/f:attributes'
      9         passing t.transfer_logs
     10         columns
     11           FAULT_FAIL_REASON       varchar2(200) path 'f:attribute[@name="circuit.failure.reason"]/@value'
     12         , FAULT_CIRCUIT_EXCEPTION     varchar2(200) path 'f:attribute[@name="circuit.exception"]/@value'
     13         , FAULT_WS_NAME           varchar2(200) path 'f:attribute[@name="ws_name"]/@value'
     14         , FAULT_DESTINATION_HOST  varchar2(200) path 'f:attribute[@name="http.destination.host"]/@value'
     15         ) x
     16  where xmlexists(
     17         'declare namespace e = "http://www.w3.org/2003/05/soap-envelope"; (: :)
     18          declare namespace f = "http://www.es.com/soapfaults"; (: :)
     19          /e:Envelope/e:Body/e:Fault/e:Detail/f:attributes/f:attribute[@name="circuit.exception"]'
     20          passing t.transfer_logs
     21        ) ;
    
    TRANSFER_ID     TRANSFER_RESULT FAULT_FAIL_REASON        FAULT_CIRCUIT_EXCEPTION                                       FAULT_WS_NAME    FAULT_DESTINATION_HOST
    --------------- --------------- ------------------------ ------------------------------------------------------------- ---------------- -------------------------
    T3217           REJECTED        connection rejected      com.es.circuit.CircuitAbortException: connection rejected     PUSHDOC          es.live.com
     
    

    Or, more simply:

    SQL> select t.transfer_id, t.transfer_result, x.*
      2  from bulkmessages t
      3     , xmltable(
      4         xmlnamespaces(
      5           'http://www.w3.org/2003/05/soap-envelope' as "e"
      6         , 'http://www.es.com/soapfaults' as "f"
      7         )
      8       , '/e:Envelope/e:Body/e:Fault/e:Detail/f:attributes'
      9         passing t.transfer_logs
     10         columns
     11           FAULT_FAIL_REASON       varchar2(200) path 'f:attribute[@name="circuit.failure.reason"]/@value'
     12         , FAULT_CIRCUIT_EXCEPTION     varchar2(200) path 'f:attribute[@name="circuit.exception"]/@value'
     13         , FAULT_WS_NAME           varchar2(200) path 'f:attribute[@name="ws_name"]/@value'
     14         , FAULT_DESTINATION_HOST  varchar2(200) path 'f:attribute[@name="http.destination.host"]/@value'
     15         ) x
     16  where x.FAULT_CIRCUIT_EXCEPTION is not null ;
    
    TRANSFER_ID    TRANSFER_RESULT FAULT_FAIL_REASON      FAULT_CIRCUIT_EXCEPTION                                      FAULT_WS_NAME      FAULT_DESTINATION_HOST
    -------------- --------------- ---------------------- ------------------------------------------------------------ ------------------ --------------------------
    T3217          REJECTED        connection rejected    com.es.circuit.CircuitAbortException: connection rejected    PUSHDOC            es.live.com
      
    
  • ADF and the use of the XMLType columns

    After discovering the Jdeveloper 11 g was able to generate business components/data controls for complex web services (see this tutorial excellet http://www.oracle.com/technology/tech/fmw4apps/agile/pdf/adf11g-agile.pdf), I assumed that jdev 11 g should now have the same capacity on XMLtype columns with a registered scheme, and was therefore a good match for our enforcement objectives be able to edit
    parts of an XML document to aid in the face of components and Assembly/store the document in a way centic document in a relational/XML database XMLType column hybrid.

    I tested this point, has created a table with an XMLType column binary, saved the schema in database (11g) and jdev(11g) and generated my components.


    I was very disappointed at the discovery of the structure of data controls stops at the level of the attribute in the table (ie the XMLType column), so none of the structure of the XML document is revealed or can be used in a meaningful way through data control.

    Am I missing something here? should not control data generated reveal the XML structure and allow the use of components of forms/table faces on some parts of the structure of the document? I'm not a java programmer, so was really hoping to do this with data not generated controls beans not.

    If it is just to treat it as a CLOB, what's the point of registered xsd schemas?

    Yes, it is through java. Sorry

  • Choose between MySQL and Oracle - problem with MySQL text columns?

    Hello.

    New to this forum and Oracle please go easy on me.

    I'm selecting data in a MySQL database.

    This SQL works very well: -.
    Select 'Device_Label' Device"@ed_link «»
    where "Device_ID" = 6665;
    Here, the MySQL Device_Label column is of type varchar (255).

    This SQL fails with the error - ORA-00904: "Device_Tag": invalid identifier
    Select 'Device_Tag' Device"@ed_link «»
    where "Device_ID" = 6665;
    Here, the MySQL Device_Tag column is of type text.
    Column Device_Tag certainly exists and is populated.

    Is the problem related to the MySQL type text column, and is there a solution?

    Thank you.

    Hello
    The ora-997 because of the entry door is not a restriction of the Oracle. You cannot use a table defined as a long in the create table... as select statement..., you would see the problem even if it was a copy of Oracle for Oracle.
    If one of the columns of MySQL are translated as a long in Oracle you will hit this problem.
    The bypass alone is to avoid columns long or you can try to create a view in MySQL by using the cast function, which converts the columns that translate to long something and then use it in the create statement.

    Kind regards
    Mike

  • Oracle WebLogic Server 11 g 1 material (10.3.6) the file name is different in the site and while his error getting buildstage

    Hi all

    I downloaded Oracle EBS https://edelivery.oracle.com/EPD/ 12.2.0 and selected for "outsourced manufacturing and Oracle for discrete Industries R12.2 V5 (12.2.3) v1, Linux x 86-64" on the page

    downloaded the files required for the staging area, in the Linux x86_64 gave error for "file name V29856 - 01.zip Oracle WebLogic Server 11 GR 1 material (10.3.6) Generic and coherence but on oracle delivery page, I can only find Oracle WebLogic Server 11 GR 1 material (10.3.6) and coherence for the file name of Linux x 86" : V29851 - 01.zip which is already uploaded on the stage space, how can I find the file in the site or should I rename to V29856 - 01.zip you please help me on this problem.

    Thank you

    JAI Srinivas.

    Srinivas,

    I think I got an idea after reading it several times

    This is what I understood

    checksum is a failure, so you use version 12.2 Overview disk file (1320300.1) to find which zip file must be downloaded. The overview shows V29856 - 01.zip downloaded but delivery file only has V29851 - 01 V29856 - 01.zip instead.

    I remember something like downloaded this sometimes return that I did checksum digest view used to check the integrity of files and went ahead with the buildstage.sh script to build the stadium. I have been able to complete installation without problems.

    You could try the same thing or try to rename as you suggest.

    I also recommend to contact support so that you will be clear and they will get to know.

    Concerning

    SANAE

  • What type of newspapers exist in and Oracle

    What type of newspapers exist in and Oracle

    and what format to be like them,

    and can any body give me link or something to download these types of newspapers.

    Thank you. 

    '' newspapers '' can have many interpretations

    archived redo redo logs, logs, alert logs, tracking logs

  • Oracle Weblogic server and Oracle Application Server

    The Bea weblogic and Oracle application server have been combined in a product-viz Oracle Weblogic server.

    Please clarify - because Oracle Application Server is always available as a separate offering


    Thank you

    Yes, since version 10.3.4 the product called Weblogic Server provides the two "BEA WLS' and 'Oracle AS' characteristics (namely, support for forms and reports, ADF, etc..)

    Existing customers of Oracle ACEs can move to Weblogic Server to get its benefits (for example, JRockIt JVM). For the new Oracle AS it is no longer available.

    BTW. This is not a good forum for this kind of questions. You must use these: https://forums.oracle.com/forums/category.jspa?categoryID=193

  • WebLogic and Oracle Application Server

    Probably a stupid question, but what is the difference between WebLogic and Oracle Application Server or are they the same thing?

    Hello

    Please find below the link... It can erase some of your doubts: -.

    http://orachat.com/Oracle-application-server-Oracle-WebLogic-Server/

    Thank you
    JD

  • Difference between an XMLType table and one table with an XMLType column?

    Hi all

    Still trying to get my mind on all that XML stuff.

    Can someone explain briefly the difference between:
    create table this_is_xmltype_tab of xmltype;
    and
    create table this_is_tab_w_xmltpe_col(id number, document xmltype);
    What are the advantages and disadvantages of each solution? How are they really different?

    Thank you

    -Mark

    Sorry Mark, as far as I know it is not a real difference despite the fact that you can use the table with the column (ID), probably more effective for document-focused while driving the query via the ID column and anything else I can think off automatically about XMLType contra XMLType table columns is that (as far as I KNOW) you can not use a column of XMLType to shred the data into it via WebDAV o FTP. But then again I never really tried to do an XMLType column-based. Alternatives, for example, a binary XML column begins with a column of $ sys_nc_oid which is indexed, so in principle you shouldn't need an ID (number) column that has an index (a read also on http://www.liberidu.com/blog/?p=494). If there has been non-null that you could use this index for document oriented applications.

  • WebLogic and Oracle RAC + DataGuard

    Hello

    I'm testing Weblogic 9.2 with Oracle 10g RAC (2 knots) and Oracle DataGuard and trying to find the best possible data source configuration that would deal with load balancing between RAC nodes and failover/switchback between RAC nodes and data pending. The problem I see is that all Oracle instances must be open in order to successfully deploy the data sources on Weblogic. This means that, at the time of the creation/deployment and after every restart WebLogic, all Oracle instances must be upward and running and accept connections, because otherwise the data sources will not be instantiated and therefore not accessible to the consumer application.
    Is it possible to smoothly deploy data sources without having to go through the hassle of ensuring all nodes RAC and DataGuard are open?
    What I expected, it is that the data source would be instantiated but disabled if no connection is available. Having to redeploy the data source once the database is available again is a limitation regarding transparent high availability.
    Thank you.

    Hi, Yes. Configure the pool to have an initial capacity of zero. Then it will be
    deploy and not try to make connections. He'll only try when / if
    He is asked at run time. While the DBMS is not passed, the
    Data source throws an exception just until the DBMS is in place.

  • excerpt from the XMLType column

    In my XMLType column I'm storing XML content that is the xml below.

    <? XML version = "1.0" encoding = "UTF-8"? >

    < project >

    < basics >

    < attribute name = "Id" > 3197915 < / attribute >

    < attribute name = "Name" > 345 < / attribute >

    < attribute name = "Révision" / >

    < name of attribute 'Type' = > project < / attribute >

    < / basics >

    < relationship / >

    < children >

    < application >

    < basics >

    < name of attribute 'Type' = > Application < / attribute >

    < attribute name = "Name" > rty < / attribute >

    < = "Scope" attribute name > SCOPE_PROJECT < / attribute >

    < attribute name = "Révision" / >

    < attribute name = "Id" > 3197918 < / attribute >

    < / basics >

    < relationship type = "Project relationship Configuration" >

    < attribute name = "Subclassification subcomponent" / >

    < attribute name = 'Type of subcomponent' / >

    < attribute name = "Quantity" > 1 < / attribute >

    < attribute name = "Unit of measurement" / >

    < = "Scope" attribute name > SCOPE_PROJECT < / attribute >

    < attribute name = "Post number" / >

    < attribute name = "Additional Information" / >

    < / relationship >

    < children / >

    < / application >

    < typical >

    < basics >

    < name of attribute 'Type' = > rrrr < / attribute >

    < attribute name = "Name" > rrr_Mo < / attribute >

    < attribute name = "Id" > 944674 < / attribute >

    < = "Scope" attribute name > SCOPE_GLOBAL < / attribute >

    < attribute name = "Révision" / >

    < / basics >

    < children / >

    < / typical >

    < application >

    < basics >

    < name of attribute 'Type' = > Application < / attribute >

    < attribute name = "Name" > yu123 < / attribute >

    < = "Scope" attribute name > SCOPE_PROJECT < / attribute >

    < attribute name = "Révision" / >

    < attribute name = "Id" > 3197922 < / attribute >

    < / basics >

    < children / >

    < / application >

    < / children >

    < / project >

    How to write a query to extract the Application name?

    Here, it should return "anais" and "yu123".

    I'm using Oracle 11 g.

    Thanks in advance.

    Something like the following, where TMP_XML. DOC is my XMLType column:

    SQL> select x.*
      2  from tmp_xml t
      3     , xmltable('/Project/Children/Application/Basics'
      4         passing t.doc
      5         columns application_name varchar2(30) path 'Attribute[@Name="Name"]'
      6       ) x
      7  ;
    
    APPLICATION_NAME
    ------------------------------
    rty
    yu123
    
  • XMLTYPE column is PROTECTED or BASIC FILE BINARY?

    Hi all

    I'm working on tables with XMLTYPE columns, I need to identify tables with the XMLType column and its storage type is basicfile or secure binary files?

    Below is an example:

    drop table CHB_SECURE;

    drop table CHB_BASIC_FILE;

    CREATE TABLE CHB_SECURE_FILE

    (

    IDENTIFICATION NUMBER,

    XMLDATA XMLTYPE

    )

    XMLTYPE COLUMN 'XMLDATA' STORE AS BINARY XML NAVIGATION;

    CREATE TABLE CHB_BASIC_FILE

    (

    IDENTIFICATION NUMBER,

    XMLDATA XMLTYPE

    )

    XMLTYPE COLUMN 'XMLDATA' STORE AS BINARY XML BASICFILE;

    When I check the user_tab_cols of view, I found that oracle create new columns with blob types,

    SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE USER_TAB_COLS WHERE TABLE_NAME IN ('CHB_SECURE_FILE', 'CHB_BASIC_FILE');

    CHB_BASIC_FILEIDNUMBER
    CHB_BASIC_FILEXMLDATAXMLTYPE
    CHB_BASIC_FILESYS_NC00003$BLOB OBJECT
    CHB_SECURE_FILEIDNUMBER
    CHB_SECURE_FILEXMLDATAXMLTYPE
    CHB_SECURE_FILESYS_NC00003$BLOB OBJECT

    Select table_name, column_name, segment_name, a.securefile in the user_lobs where table_name IN ('CHB_SECURE_FILE', 'CHB_BASIC_FILE');

    TABLE_NAMECOLUMN_NAMENOM_SEGMENTSECUREFIL E
    CHB_BASIC_FILESYS_NC00003$SYS_LOB0000768291C00003$ $NO.
    CHB_SECURE_FILESYS_NC00003$SYS_LOB0000768288C00003$ $YES

    In the view of user_lobs, I found that this new addition of columns, I can identify words securefile or not.

    But I can not get this information for xmltype columns.

    I think that there is a relationship between the column SYS_NC00003$ and my column of xmltype XMLDATA but I can not get this information

    Could you please help me?

    Thank you

    Cherif

    I think that there is a relationship between the column SYS_NC00003$ and my column of xmltype XMLDATA but I can not get this information

    Yes, there is a relationship.

    The XMLType column is a virtual column that points to the hidden BLOB where the data is actually stored as binary XML.

    There should be something more simple, but you can use the DBMS_METADATA API to retrieve the information you need:

    SQL > select t.table_name, x.*

    user_tables 2 t

    3, xmltable (xmlnamespaces (default 'http://xmlns.oracle.com/ku'),

    "4 ' / TABLE/RELATIONAL_TABLE/TABLE_PROPERTIES/PROPRIETES_COLONNE/COL_LIST/COL_LIST_ITEM [DATATYPE ="XMLTYPE"]"

    5 passage xmlparse (document dbms_metadata.get_sxml ('TABLE', t.table_name))

    path of varchar2 (30) 6 column column-name 'NAME '.

    7 road of varchar2 (5) is_securefile 'exists(XMLTYPE_PROPERTIES/XMLTYPE_STORAGE/LOB_PROPERTIES/STORAGE_TABLE/SECUREFILE) '.

    8       ) x

    9 where t.table_name in ('CHB_SECURE_FILE', 'CHB_BASIC_FILE')

    10;

    TABLE_NAME COLUMN_NAME IS_SECUREFILE

    ------------------------------ ------------------------------ -------------

    False CHB_BASIC_FILE XMLDATA

    True CHB_SECURE_FILE XMLDATA

  • The script generation is not supported for Table with XML or UDT column Types

    I get this message trying to generate a script to create a table with an XMLTYPE column.  We use the Oracle Developer Tools for Visual Studio to generate scripts as SQLDeveloper does still not support TFS integration.  He was always pretty easy to generate scripts and maintain control of source code in this way (with the exception of materialized views).  It was great, just right click and generate a script for the project and check it in.  Unfortunately as the adoption of XML grows, we find passage to the SQL Developer more often to perform tasks not supported and then return to the VS IDE to manage source code control.  Free of any chance that it will be supported in the future?

    Yes, our plan is to support several types as time goes by.

    You possibly can speed things along by voting or by filing a request for new feature here:

    http://Apex.Oracle.com/pls/Apex/f?p=18357:46

Maybe you are looking for