Activate the xml Type in oracle

I've just installed an oracle 9.2.0.3 DB and I have to use the XMLType.
I read that I have to activate it by launching the file : dbmsxml.sql but it doesnt't work, when I try to do an extract I have an error.
An idea ?

It's ok I found the problem.
In fact, I have launched the script in sqlplus as sysdba
and now the XMLType is activated
Thx

Similar Messages

  • CUP - How to de-activate the workflow types - SP10

    Hi forum gurus,
    I am currently customizing a brand new installation of AC 5.3, SP10.
    We have activated all the workflow types under the Miscellaneous tab by mistake, which has now resulted in several
    unused request types.
    I have tried to de-activate the workflow types but get the following error, Cannot deactivate since the field is in use in Request Type.  The system does not even allow you to delete the request types only to de-activate it.
    Is there any way to deactivate these workflow types so that they do not appear?
    Thanks,
    Prevo.

    Hi Alpesh,
    NO requests have been created thus far! Its a brand new implementation.
    I don't want non-used initiators and request types to be displayed from within
    the CUP configuration tab, hence my request.
    Rgds,
    Prevo

  • Why can't I view the XML-type in my queries

    I have SQL Developer configured to connect to an Oracle 11g database, using the "thick net". I recently upgraded to version 2.1.1.64.
    I have an issue displaying XML-type results. If I execute a query that returns XML-types, I get the following error: oracle.sql.OPAQUE@e8bd13. Is there a patch, update or tweak I can do to get around this and display the actual results?
    Thanks.

    Can you see the sample schemas and the XMLTYPE in the OE Warehouses table, or does this also issue the same error.? You should be able to see the XML content using SQL Developer 2.1.
    Please note there is also an early adopter for 3.0.
    Sue

  • HOW TO: Use the XML parser in Oracle 8.1.7

    I am trying to figure out how to use the xml parser provided in oracle 8.1.7. all i want to do is parse a xml report that is defined using a schema, and place the data into the proper tables. i am totally unfamiliar with the xml parser and how it works. i have done some reading on the subject, but seem to be getting some conflicting infromation about which utilites i need and how to invoke them. can someone please tell me what utilities i need, how to invoke them, and what i need to do to get a xml document to parse and insert to a table? I would greatly appreciate any help anybody could offer. thanks.

    You can parse the XML Document with XML Parser and place the data into database using XSU(XML SQL Utility).
    Both of these are included in XDK for Java at:
    http://otn.oracle.com/tech/xml/xdk_java
    The following document could also help:
    Oracle9i XML Developer's Guide--XDK [PDF] at http://otn.oracle.com/tech/xml/doc.html

  • Logging the XML payload in Oracle Sales Cloud

    How can xml payloads for inbound and outbound web service call be logged in Oracle Sales Cloud?
    We need to capture the xml payloads as part of web service calls (inbound/outbound) and store it on server/objects.
    Is it possible to achieve this and if so how can this be done?
    Thanks,
    Abhishek

    For outbound invocations from Sales Cloud, how are you invoking the web services today?
    If you are using groovy scripts to invoke, you can using a println after the invocation and view the messages through the "Runtime logging" feature.
    This should work if you want to view the payload for debugging purposes
    However, I also see that you need to store the response. Are you trying to implement auditing?

  • What is the Function Type in Oracle Applications for UIX pages?

    Hi,
    In the Oracle forms function window (under the System Administrator responsibility) there is a field call function type. The selection does not have UIX but it does have JSP. Should the function type be set as JSP if I'm referring to a UIX page?
    Thanks,
    Merced

    Hi,
    this forum is about Oracle Forms. Try the JDeveloper forum
    JDeveloper and ADF
    Frank

  • Does the Number type in Oracle always map to the Java BigDecimal object

    We have noticed that whenever we create a column in a table of type smallint, integer, real, etc. that the type in sqlplus always shows up as number(x). Our problem is that this type always seems to map to java.math.BigDecimal through JDBC. Is this a bug in the JDBC drivers???
    Put another way when I create a column of type smallint I expect that after performing a query I should be able to call the getShort method on the result set in order to get the value from the afore mentioned column. But instead I get a ClassCastException because the Java type for the column is actually a java.math.BigDecimal.
    Thanks,
    Keith
    [email protected]

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Keith Nielsen:
    We have noticed that whenever we create a column in a table of type smallint, integer, real, etc. that the type in sqlplus always shows up as number(x). Our problem is that this type always seems to map to java.math.BigDecimal through JDBC. Is this a bug in the JDBC drivers???
    Put another way when I create a column of type smallint I expect that after performing a query I should be able to call the getShort method on the result set in order to get the value from the afore mentioned column. But instead I get a ClassCastException because the Java type for the column is actually a java.math.BigDecimal.
    Thanks,
    Keith
    [email protected]<HR></BLOCKQUOTE>
    ~~~
    The possible Java types to which SQL NUMBER type can be materialized to include
    oracle.sql.NUMBER
    java.lang.Byte
    java.lang.Short
    java.lang.Integer
    java.lang.Long
    java.lang.Float
    java.lang.Double
    java.math.BigDecimal
    byte,short, int, long, float, double
    For a complete listing for all datatypes mappings refer the Oracle8i JDBC Developer's guide and reference.

  • Using a variable value in CDATA for generating an XML type in Oracle

    Hello,
    I have prepared a function given below where I have some input variables & I have to generate one XML with those input variables as tag attribute value:
    create or replace function NEW_PROJECT_DETAILS
    ( p_ReferenceId in varchar2 ,
    p_Project_No in varchar2,
    p_Project_Name in varchar2,
    p_Project_Desc in varchar2 ,
    p_Project_Type in varchar2,
    p_Project_Location in varchar2,
    p_Project_Status in varchar2 )
    return xmltype
    as
    payload xmltype;
    begin
    dbms_output.put_line('Payload Started');
    payload:= xmltype('<?xml version="1.0" encoding="UTF-8"?>
    <ProjectDetails>
    <RefID>'||p_ReferenceId||'</RefID>
    <ProjectNo>'||p_Project_No||'</ProjectNo>
    <ProjectName>'||p_Project_Name||'</ProjectName>
    <ProjectDesc>'||p_Project_Desc||'</ProjectDesc>
    <ProjectType>'||p_Project_Type||'</ProjectType>
    <ProjectLocation><![CDATA[p_Project_Location]]></ProjectLocation>
    /* <ProjectLocation>'||p_Project_Location||'</ProjectLocation> */
    <ProjectStatus>'||p_Project_Status||'</ProjectStatus>
    </ProjectDetails>');
    dbms_output.put_line('Payload Comp1');
    return payload;
    end;
    This procedure works absolutely fine.
    Now the problem which I am having is that the variable p_Project_Location has value like "6747:BBO&M SBV".
    Due to the '*&*' in that value I have to use CDATA. But i dont know how to pass this variable directly in the CDATA in the XML.
    Please help me with this asap.
    Thanks & Regards,
    Divya Aggarwal
    Edited by: 784414 on Dec 2, 2010 4:15 AM
    Edited by: 784414 on Dec 2, 2010 4:16 AM

    Hi,
    If you absolutely want to use a CDATA section, then :
    payload:= xmltype('<?xml version="1.0" encoding="UTF-8"?>
    <ProjectDetails>
    <RefID>'||p_ReferenceId||'</RefID>
    <ProjectNo>'||p_Project_No||'</ProjectNo>
    <ProjectName>'||p_Project_Name||'</ProjectName>
    <ProjectDesc>'||p_Project_Desc||'</ProjectDesc>
    <ProjectType>'||p_Project_Type||'</ProjectType>
    <ProjectLocation><![CDATA['||p_Project_Location||']]></ProjectLocation>
    <ProjectStatus>'||p_Project_Status||'</ProjectStatus>
    </ProjectDetails>');Alternatively, you can escape non valid characters with DBMS_XMLGEN.CONVERT, e.g. :
    payload:= xmltype('<?xml version="1.0" encoding="UTF-8"?>
    <ProjectDetails>
    <RefID>'||p_ReferenceId||'</RefID>
    <ProjectNo>'||p_Project_No||'</ProjectNo>
    <ProjectName>'||p_Project_Name||'</ProjectName>
    <ProjectDesc>'||p_Project_Desc||'</ProjectDesc>
    <ProjectType>'||p_Project_Type||'</ProjectType>
    <ProjectLocation>'||dbms_xmlgen.convert(p_Project_Location)||'</ProjectLocation>
    <ProjectStatus>'||p_Project_Status||'</ProjectStatus>
    </ProjectDetails>');which outputs :
    <?xml version="1.0" encoding="UTF-8"?>
    <ProjectDetails>
    <RefID>1</RefID>
    <ProjectNo>1</ProjectNo>
    <ProjectName>PRJ1</ProjectName>
    <ProjectDesc>This is project 1</ProjectDesc>
    <ProjectType>P</ProjectType>
    <ProjectLocation>6747:BBO&amp;M SBV</ProjectLocation>
    <ProjectStatus>S</ProjectStatus>
    </ProjectDetails>Any basic XML parser should then convert back escaped characters when processing the document.
    You can also use SQL/XML functions, which will take care of that automatically.
    For example :
    SELECT appendChildXML(
            XMLType('<?xml version="1.0" encoding="UTF-8"?><ProjectDetails/>'),
            XMLForest(
             '1'                 as "RefID",
             '1'                 as "ProjectNo",
             'PRJ1'              as "ProjectName",
             'This is project 1' as "ProjectDesc",
             'P'                 as "ProjectType",
             '6747:BBO&M SBV'    as "ProjectLocation",
             'S'                 as "ProjectStatus"
    FROM dual;or,
    SELECT appendChildXML(
            XMLType('<?xml version="1.0" encoding="UTF-8"?><ProjectDetails/>'),
            XMLForest(
             '1'                 as "RefID",
             '1'                 as "ProjectNo",
             'PRJ1'              as "ProjectName",
             'This is project 1' as "ProjectDesc",
             'P'                 as "ProjectType",
             XMLCData('6747:BBO&M SBV') as "ProjectLocation",
             'S'                 as "ProjectStatus"
    FROM dual;

  • How to map Oracle ORDImage type, what is the JDBC-type ?

    Hello,
    I have a field in my Oracle database that has the type ORDSYS.ORDIMAGE. How can I map this in the standardjbosscmp-jdbc.xml file of JBOSS (in the part of the oracle 9i type-mappings)?
    The java type is "oracle.ord.im.OrdImage", but what is the jdbc-type ? Do I have to include extra oracle files in some directories of Jboss ?
    <mapping>
    <java-type>oracle.ord.im.OrdImage</java-type>
    <jdbc-type>?</jdbc-type>
    <sql-type>?</sql-type>
    </mapping>
    Thanks!!!
    Greetz J

    I've never used JBOSS, but, could the jsbc type indicate the jdbc driver to use?
    The sql type is ORDSYS.ORDIMAGE, but I am not sure what JBOSS is looking for...

  • Insertion in XML Type table and fetching the data in Pro*C

    I have a Pro*C program written which populate one temp table. That temp table is used for writing the records to a flat file and then the table is purged by this program itself. Now my requirement is to write a new procedure in this progarm which simultaneously populate new XML Type table. Also i have to write some other procedures/functions to query the XML type table
    in Pro*C. I am new to XML part of database. Could somebody suggest how to go ahead with this problem

    Please check the Oracle Database 10g: XML DB Developer's Guild for example.

  • How to Activate a Condition Type in the Tax OCde for A/P  -- Very Urgent

    Hi  Peers
    I'm creating a new Tax Code in T.Code FTXP, while creating, One Condition Type is Deactivated, say JM01, How to activate that condition Type. I know how to activate the Condition Type in A/R side but I want to know it in A/P side.  Plz help. Its very urgent. 
    Regards
    Rajaram

    Hi Rajaram,
    U pls Check ur configuration. First u check the calculation procedure (F.A- Tax on sales & purchase-Basic setting-Check calculation procedure _ Define procedure) In the procedure field u  check JM01 is activated or deactivated otherwise u created in condition Type.
    I think its usefull otherwise u let me know
    Thanks
    R.Manigandan

  • Parsing the data from and xml type field

    Hi - I have registered a schema and inserted arecord into the table with the xml type column. Now I want to parse the data from the xmltype field into a relational table. I have been using the following select statement to accomplish this - and it does work if there is data in all the selected fields but when the filed is null then the whole select statement fails and brings back 'no rows returned'.If the value is null I want the select statment to return null. please give any ideas.
    SELECT version,frmd_transaction_date,extractValue(value(b), 'event_update/location')"location",
    extractValue(value(b), 'event_update/sending_system')"sending_system",
    extractValue(value(b), 'event_update/event_identifier')"event_identifier",
    extractValue(value(b), 'event_update/event_link')"event_link",
    extractValue(value(b), 'event_update/organization_code')"organization_code",
    nvl(extractValue(value(c), '/schedule/event_duration_minutes'),'000')"event_minutes"
    FROM fraamed_user.frmd_event_update , TABLE(xmlsequence(extract(xml_event_update, '/event_update')))b,
    TABLE(xmlsequence(extract(xml_event_update, '/event_update/schedule')))c

    ...then I guess you have to rewrite the query.
    Is schedule another xml sequence inside of event_update sequence ?
    If it is not you can try this :
    SELECT version,frmd_transaction_date,extractValue(value(b), '/event_update/location/text()')"location",
    extractValue(value(b), '/event_update/sending_system/text()')"sending_system",
    extractValue(value(b), '/event_update/event_identifier/text()')"event_identifier",
    extractValue(value(b), '/event_update/event_link/text()')"event_link",
    extractValue(value(b), '/event_update/organization_code/text()')"organization_code",
    extractValue(value(b), '/event_update/schedule/event_duration_minutes/text()')"event_minutes"
    FROM fraamed_user.frmd_event_update , TABLE(xmlsequence(extract(xml_event_update, '/event_update')))b
    ...if yes, did you try nvl function (I don't think this would be a solution of a problem):
    SELECT version,frmd_transaction_date,nvl(extractValue(value(b), '/event_update/location/text()')"location", 'NULL VALUE'),
    nvl(extractValue(value(b), '/event_update/sending_system/text()')"sending_system",'NULL VALUE'),
    nvl(extractValue(value(b), '/event_update/event_identifier/text()')"event_identifier",'NULL VALUE'),
    nvl(extractValue(value(b), '/event_update/event_link/text()')"event_link",'NULL VALUE'),
    nvl(extractValue(value(b), '/event_update/organization_code/text()')"organization_code",'NULL VALUE'),
    nvl(extractValue(value(c), '/schedule/event_duration_minutes/text()')"event_minutes",'NULL VALUE')
    FROM fraamed_user.frmd_event_update , TABLE(xmlsequence(extract(xml_event_update, '/event_update')))b,
    TABLE(xmlsequence(extract(xml_event_update, '/event_update/schedule')))c
    If none of this works post your xml schema.

  • Versioning document in XML type coloumn

    Hi All,
    I have a specific requirement in my product.I have to version the data entered in XML type coloumn. I tried searching in google and oracle 9i doc but I got the information for versioning the document stored under a partcular directory using resource_view not for my set of requiremets.
    Here I am giving more info:
    created a table abcd(int id , xmlcol XMLType)
    and associated a schema for this coloumn.Inserted data in xml format in the coloumn. I need to create different version of this data in xml type coloumn with new id.
    If any of you worked on this / have some idea abt how to proceed will be very helpful to me...
    Thanks in advance,
    Cheers
    Somasekar.

    Hi
    I am looking for some information for versioning the XMLType Column defined in the schema. The data inserted into the XML Type column will adhere to same schema.
    Can anyone help me or point me to some information.
    Thanks

  • XMLTYPE as CLOB storage "inserting large xml document in xml type column"

    Hi All,
    i have a table containing an xml datatype(non schema based)
    i would like to insert a large xml document in it
    but an exception is thrown-->"string literal too long"
    i tried to use bind variables as a solution"prepared statements as i write in java"
    but it didn't work....as xml document is large
    when i tried to change the column type to CLOB,it worked but without xml validataion,
    although the xml type is mapped to a CLOB in storage, xml type couldn't insert the document
    if anyone have a solution plz tell,i needed it urgently
    thanks,in advance :-)

    thx it was very useful :-)
    but i am not having any success getting the following statement working using a JDBC connection pool rather than a hard coded URL connection
    tempClob = CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION);
    it works with:
    "jdbc:oracle:thin:@server:port:dbname"
    Does NOT work with:
    datasource.getConnection()
    if anyone colud help...

  • How to activate the standard workflow :ws10000051

    hello,experts
        here is my problem:
        I want to activate the standard workflow for document parking :ws10000051 .
         I have already activate the event type linkage in SWE2.
        And then ,  i maintian  obwa , obwj , obwb, obwc, obwd.obwe,obwf.
         In obwa,i choose posting release  , subworkflow is ws10000055. 
        In obwe, Swf amnt rel  is  ws10000052.  
        In obwf , the org object is the position cfo (myself), before i assign this ,i create a position in ppoce.
       But, when i use f-65 to park a document ,  i can't receive any workflow in sbwp. I also find "the status of Document Parking (Frame), Parallel  is error " in my outbox.
       Can anyone tell me the reason ?
       Thanks !

    hi ,hari,
        you are right . when i check swel ,i  found ws10000051  : evnet put in the queue .  more detail message said :The OPEN_DI of BTE 00002214 could not determine any function modules.  
    when i check the workflow log (view with technical details), the activity :' determine subworkflow for amount release of document etermine subworkflow for amount release of docu ' status error . the message said :error in workflow customizing for document parkig (transaction obwe).
    i don't understand this , because i have already maintian  obwe. i made a new entry,like this:
    wrkf :1000   (workflow name)
    apth: 1000   (workflow approval path)
    ammont to : 9999999
    crcy: eur
    wsf amnt rel :ws10000052
    so ,could you tell me more details about this problem ,
    thanks

Maybe you are looking for

  • Directory configuration could not be completed during instal

    Scenario: 1) New install sles 11 + oes 11 2) Have backup of domain and postoffice from a dead Groupwise 8 server 3) Upgraded to Groupwise 2014 using copies of the Backup of domain and post office copied onto new server. 4) Everything works - or seems

  • CFMail and deliverability

    Has anyone been able to use CFmail and personal email certificates like those available with Thawte? My goal is to see what I can do to increase deliverability. Hosting a number of sites I run into deliverability issues from time to time. Usually cfm

  • Update for new emails

    I've bought an iphone5s,now when i pull down to update my emails all of them update except gmail accout I recieve an error that gmail servers do not response Only when i sign in with gmail app it refresh's I updated my ios v. To 7.0.4 and reset netwo

  • Lost Entire Days Work on Flash Project

    I'm getting familiar with Flash CS3 and now I'm wondering: Is it the more complex, the more intricacy that is put into a Flash project, the more dangerous it becomes if you go off in a wrong direction and need to go back to the most recently saved ve

  • Adjusting a grayscale scan so it's black and white

    A client sent me a grayscale scan of a line drawing with small text. The lines and text, which should be black, are gray. And the background, which should be white, is a light gray. The lines should be 100% black, but I'll take what I can get. I fidd