Using XMLType as the AQ payload type

Can you help
Some developers working on a 9.2 db are under the impression that to use XMLType as the AQ payload type you need to have XML db (catqm etc) installed . Is this true ?
ie I don't want to install it unless necessary
Currently have the the XML sdk installed (initxml.sql)
Thanks

Hey,
I need some examples on how to actually enqueue an XMLType message into the Queue
Here is my PL/SQL Script
SET TIMING ON
DECLARE
enqueue_options dbms_aq.enqueue_options_t;
indoc VARCHAR2(2000);
indomdoc dbms_xmldom.domdocument;
innode dbms_xmldom.domnode;
myParser dbms_xmlparser.Parser;
message_properties dbms_aq.message_properties_t;
message_handle RAW(16);
message sys.XMLTYPE;
BEGIN
FOR j IN 1 ..100000
loop
indoc := '<emp><name> Stan </name></emp>';
myParser := dbms_xmlparser.newParser;
dbms_xmlparser.parseBuffer(myParser, indoc);
indomdoc := dbms_xmlparser.getDocument(myParser);
message := XMLTYPE(indomdoc);
-- message := XMLTYPE('<test><name>Stan </name><ID>11111111</ID></test>');
dbms_aq.enqueue(queue_name => 'msg_queue',
enqueue_options => enqueue_options,
message_properties => message_properties,
payload => message,
msgid => message_handle);
COMMIT;
end loop;
END;

Similar Messages

  • Please explain the use of all the below movt types

    Hi friends,
    Can you Please explain the use of all the below movt types and how it is triggered.
    901     GR Area for Production
    902     GR Area External Rcpts
    904     Returns
    910     GI Area General
    911     GI Area for Cost Center
    912     GI Area Customer Order
    913     GI Area - Fixed Assets
    914     GI Area Production Orders
    915     Fixed Bin Picking Area
    916     Shipping Area Deliveries
    917     Quality Assurance
    920     Stock Transfers (Plant)
    921     Stock Transfers (StLoc)
    922     Posting Change Area
    980     R/3 --> R/2 cumulative
    998     Init.entry of stock bal.
    999     Differences
    Regards,
    Balu R.V

    Hi,
    The below mentioned objects are interim storage types, not movement types.
    Interim storage types are used as a sort of bridge between IM and WM.
    MZ

  • How to use xsl in the veriable (of type Document  packorg.w3c.dom)?

    I have xml document in the variable of type Document from the package "org.w3c.dom". I want to use xsl to this xml document to format it.
    I am trying to do something like this:
    <c:set var="aaa">
              doc // doc is of type Document created by traversing the ResultSet.           
    <c:set>
         <c:import url="/generic_stylesheet.xsl" var="xsl" />
         <x:transform xml="${aaa}" xslt="${xsl}" />
    </td></tr></table>
    Help

    hi "user615720"
    If you have questions about JDeveloper 11g TP, you might also want to try this forum :
    "JDeveloper and OC4J 11g Technology Preview"
    JDeveloper and OC4J 11g Technology Preview
    (tip : You can use "Your Control Panel" to make your name visible in forum posts.)
    regards
    Jan Vervecken

  • Adding as segment which is already used in in the bais idoc type .

    HI Every one
    Could u pls clarify me can we add a  segment which is already being used in the  basic type . If so how to do that .
    Thanks in advance .
    Example :
    We have basic type as : ACC_DOCUMENT03
    For the above basic type we have different segments .
    One of the segement is : E1BPACGL09 which is being used for differnt  G L Accounts postring .  Now we want to use the above segement once again.
    1) Can we add segement
    2) If so how to do ?
    Thanks in advance .

    Thanks very much for your answer, Mohit. That's exactly what I feared!
    I thought about another option, so I'd like to know what you think about it.
    If I set this vehicle's status (OIGV-VEH_STATUS) as 2 (Vehicle to be deleted) and run SARA with object OIG_VEHCLE, will it be successfully archived if the TD Shipment's still in the database with status=6?
    And... let's suppose it get archived somehow. Will I be able to use this very same vehicle code (OIGV-VEHICLE) to create a different (another) vehicle?
    Thank you once again!
    Regards,
    Giuliano

  • What is the Payload Type for wav file

    Please inform me what is the PT (Payload Type) for wav file.
    As 26 is for MJPEG file.
    Thanks alot

    Hi Kittu
    These are the output type generally used for GI..
    WA01
    WA02
    WAE1
    WAE2
    WAE3
    WE03
    You can see the types defined in your system using tcode M706
    regrds
    Yogesh

  • How to change DTMF RFC2833 payload type to 101 or 127

    Hi,
    We are using Flash Media Gateway 4.5, and we would like to change the DTMF payload type from 127 to 101 for RFC2833.
    as of now, I couldn't find any configuration settings from the documents. Looks like this is a discontinued product but any help is much appreciated.
    Thanks,
    Uttran I

    Hi Thomas,
    according to your first question: Why does this matter to you? As I already wrote in another thread:
    According to the XML namespace declaration the prefixes are just internal aliases with no external meaning.
    E.g. <ns1:abc xmlns:ns1="http://www.sap.com" /> and
    <iLikeLongPrefixes:abc xmlns:iLikeLongPrefixes ="http://www.sap.com" /> are totally equivalent according to the XML namespace specification.
    Therefore, everyone (human or machine) who produces a program can choose the prefixes as he wants. Moreover, he may change the rules for creating these prefixes without being incompatible.
    Consequently, the namespace prefixes should not be important for you.
    Greetings
    Stephan

  • Firefox webrtc rtp payload type

    I'm seeing an issue when placing a webrtc call with firefox when the answer SDP has different payload types than the offer. for example, i get an offer from firefox that has the opus codec with payload type 109. if the answer SDP comes in with the opus codec and payload type 110, audio will not be heard. looking in the WebRTC.log file you will see a whole bunch of "IncomingRTPPacket received invalid payloadtype".
    i believe the correct behavior in this case is for firefox to transmit opus with RTP payload type 110 (ie the remote payload type) and expect to receive opus with payload type 109. it looks like firefox will send with 110 and expect to receive with 110.
    the same scenario with chrome does not have a problem. if i change the SDP answer to match the payload type of the offer, audio can be heard in firefox.
    the same issue can be seen with VP8 video or other codecs with dynamic payload types.
    for reference, the relevant excerpt from rfc3264:
    "In the case of RTP, if a particular codec was referenced with a
    specific payload type number in the offer, that same payload type
    number SHOULD be used for that codec in the answer. "
    in this case the answer SDP is violating the SHOULD in the rfc, but this is sometimes unavoidable when interworking SDP between devices (ie some sort of back-to-back signaling agent).

    That RFC is a proposed standard at the moment [http://datatracker.ietf.org/doc/rfc3264/]
    However, this would be a great bug for tech evangelism, I would encourage you to file a bug with some technical examples. Way to keep the web open!

  • Insert XML file into Relational database model without using XMLTYPE tables

    Dear all,
    How can I store a known complex XML file into an existing relational database WITHOUT using xmltypes in the database ?
    I read the article on DBMS_XMLSTORE. DBMS_XMLSTORE indeed partially bridges the gap between XML and RDBMS to a certain extent, namely for simply structured XML (canonical structure) and simple tables.
    However, when the XML structure will become arbitrary and rapidly evolving, surely there must be a way to map XML to a relational model more flexibly.
    We work in a java/Oracle10 environment that receives very large XML documents from an independent data management source. These files comply with an XML schema. That is all we know. Still, all these data must be inserted/updated daily in an existing relational model. Quite an assignment isn't it ?
    The database does and will not contain XMLTYPES, only plain RDBMS tables.
    Are you aware of a framework/product or tool to do what DBMS_XMLSTORE does but with any format of XML file ? If not, I am doomed.
    Constraints : Input via XML files defined by third party
    Storage : relational database model with hundreds of tables and thousands of existing queries that can not be touched. The model must not be altered.
    Target : get this XML into the database on a daily basis via an automated process.
    Cheers.
    Luc.

    Luc,
    your Doomed !
    If you would try something like DBMS_XMLSTORE, you probably would be into serious performance problems in your case, very fast, and it would be very difficult to manage.
    If you would use a little bit of XMLType stuff, you would be able to shred the data into the relational model very fast and controlable. Take it from me, I am one of those old geezers like Mr. Tom Kyte way beyond 40 years (still joking). No seriously. I started out as a classical PL/SQL, Forms Guy that switched after two years to become a "DBA 1.0" and Mr Codd and Mr Date were for years my biggest hero's. I have the utmost respect for Mr. Tom Kyte for all his efforts for bringing the concepts manual into the development world. Just to name some off the names that influenced me. But you will have to work with UNSTRUCTURED data (as Mr Date would call it). 80% of the data out there exists off it. Stuff like XMLTABLE and XML VIEWs bridge the gap between that unstructured world and the relational world. It is very doable to drag and drop an XML file into the XMLDB database into a XMLtype table and or for instance via FTP. From that point on it is in the database. From there you could move into relational tables via XMLTABLE methods or XML Views.
    You could see the described method as a filtering option so XML can be transformed into relational data. If you don't want any XML in your current database, then create an small Oracle database with XML DB installed (if doable 11.1.0.7 regarding the best performance --> all the new fast optimizer stuff etc). Use that database as a staging area that does all the XML shredding for you into relational components and ship the end result via database links and or materialized views or other probably known methodes into your relational database that isn't allowed to have XMLType.
    This way you would keep your realtional Oracle database clean and have the Oracle XML DB staging database do all the filtering and shredding into relational components.
    Throwing the XML DB option out off the window beforehand would be like replacing your Mercedes with a bicycle. With both you will be able to travel the distance from Paris to Rome, but it will take you a hell of lot longer.
    :-)

  • What is the best data type to store XML string

    Hello all,
    If we want to store a XML string in oracle database table for some other program use what is the best data type that we can use in the table to store this XML string..
    Is it VARCHAR? or can we use BLOB type
    Anybody to help please
    Message was edited by:
    user483578

    If your XML data will not be larger than 4000 characters then use VARCHAR2 else CLOB. I don't see a need to use BLOB (unless your XML data contains binary information).

  • RTPExport using a new payload type

    I'm interested in using the RTPExport example:
    http://java.sun.com/products/java-media/jmf/2.1.1/solutions/RTPExport.html
    But with a custom payload type. I tried to create a dummy RTPManager object with a call to addFormat() at the very beginning, but apparently that's not enough, as when the call is made to p.configure(), I get a message stating the payload type I'm using is not registered.
    Thanks in advance for your help.

    I need a way to communicate a dynamic payload mapping to the Processor object. This is easily done with an RTPManager object, as in the AVCustom examples, but does not appear to be done as easily with a Processor. My requirements are very simple, I just need to use the RTPExport example, but with a dynamic payload type. Hope that clarifies my problem.

  • How to use the ColumnDescriptor's type as CLOB?

    I want to build a metric which are used to record the content of a file. But the length of the content is too long, it may not be stored with a ColumnDescriptor's type STRING. I tried to make the TYPE='CLOB', but failed. I though it might be something wrong with my output, but I have no idear how to make it right. Does it supposed to point to a file? Could anyone tell me how to do it?
    Here is my code:
    metadata.xml
    <Metric NAME="TEST_LOB" TYPE="RAW" HELP="NO_HELP">
    <TableDescriptor TABLE_NAME="TEST_LOB">
    <ColumnDescriptor NAME="TIMES" COLUMN_NAME="TIMES" TYPE="STRING" IS_DATE="TRUE"/>
    <ColumnDescriptor NAME="CONTENT" COLUMN_NAME="CONTENT" TYPE="CLOB" />
    </TableDescriptor>
    <QueryDescriptor FETCHLET_ID="OSLineToken">
    <Property NAME="command" SCOPE="GLOBAL">"%perlBin%/perl" "%scriptsDir%/emx/%TYPE%/testlob.pl"</Property>
    <Property NAME="delimiter" SCOPE="GLOBAL">%mydelimiter%</Property>
    <Property NAME="startsWith" SCOPE="GLOBAL">em_result=</Property>
    <Property NAME="errStartsWith" SCOPE="GLOBAL">em_error=</Property>
    </QueryDescriptor>
    </Metric>collection.xml
    <CollectionItem NAME="TEST_LOB">
    <Schedule>
    <IntervalSchedule INTERVAL="5" TIME_UNIT="Min" />
    </Schedule>
    <MetricColl NAME="TEST_LOB" />
    </CollectionItem>The output of script testlob.pl looks like as below. It started with "em_result=", and delimited by "|".
    em_result=2009-07-30 15:30:35|*** (1) TRANSACTION:
    TRANSACTION 2 1235033361, ACTIVE 0 sec, process no 14811, OS thread id 1158457696 inserting
    mysql tables in use 1, locked 1
    LOCK WAIT 3 lock struct(s), heap size 368, undo log entries 4
    MySQL thread id 26693314, query id 5239203160 192.168.95.138 passportuser update
    insert into digital_id_info (digital_id) values (0x3930303636363734)
    *** (1) WAITING FOR THIS LOCK TO BE GRANTED:
    RECORD LOCKS space id 45 page no 14 n bits 392 index `idx_unq_digitalid` of table `passport/digital_id_info` trx id 2 1235033361 lock mode S waiting
    Record lock, heap no 5 PHYSICAL RECORD: n_fields 2; compact format; info bits 0
    0: len 8; hex 3930303636363734; asc 90066674;; 1: len 4; hex 0014dae7; asc ;;
    *** (2) TRANSACTION:
    TRANSACTION 2 1235033200, ACTIVE 0 sec, process no 14811, OS thread id 1215965536 setting auto-inc lock
    mysql tables in use 1, locked 1
    3 lock struct(s), heap size 6752, undo log entries 323
    MySQL thread id 26693430, query id 5239203161 10.10.71.74 passportuser update
    insert into digital_id_info (digital_id) values (0x3930303637343639)
    *** (2) HOLDS THE LOCK(S):
    RECORD LOCKS space id 45 page no 14 n bits 392 index `idx_unq_digitalid` of table `passport/digital_id_info` trx id 2 1235033200 lock_mode X locks rec but not gap
    Record lock, heap no 5 PHYSICAL RECORD: n_fields 2; compact format; info bits 0
    0: len 8; hex 3930303636363734; asc 90066674;; 1: len 4; hex 0014dae7; asc ;;
    *** (2) WAITING FOR THIS LOCK TO BE GRANTED:
    TABLE LOCK table `passport/digital_id_info` trx id 2 1235033200 lock mode AUTO-INC waiting
    *** WE ROLL BACK TRANSACTION (1)the scripts for creating table "TEST_LOB",
    CREATE TABLE TEST_LOB
    TIMES DATE,
    CONTENT CLOB
    );Any help will be appreciated!!!
    Thanks,
    Satine

    Sorry, that doesn't solve my problem. Please read the question more closely - I want my USERS to be able to do this without changing their configurations. My users are public school elementary teachers and parents. I can't ask them to toggle any settings - I'm looking for a way that my users can do this on their own.
    Thanks

  • After upgrading to Firefox 8.0.1, now on at least one website I use, it limits the number of characters that I can type in a text box to 275, is there a way to fix this?

    After upgrading to Firefox 8.0.1, now on at least one website I use, it limits the number of characters that I can type in a text box to 275, is there a way to fix this?

    That may be part of the coding that the web page is using.
    *https://developer.mozilla.org/en/HTML/element/input

  • Since downloading Firefox 4, I am having problems archiving gmail conversations from my inbox view. Also, when I go to enter a new event in google calendar, I now have to click the cursor in the box to type the event (it used to let me just start typing).

    Since downloading Firefox 4, I am having problems archiving gmail conversations from my inbox view (either one or several conversations) as it says "No Conversations Selected" when I have selected one or several. Also, when I go to enter a new event in google calendar, I have to click the cursor in the box to type the event (it used to let me just start typing) or else it flips out and starts jumping to day view or another month. Does anyone know how to fix either of these?

    I have had this problem; but while trying to fix another problem, I reset my preferences for Firefox and it fixed this problem as well. To reset preferences, follow this link: http://support.mozilla.com/en-US/kb/Resetting%20preferences

  • We would like to Use the SKTO condition type as Acrual condition

    Hello Experts,
    We have a requirement to track the possible cash discounts in discounts bucket, Hence we though that we will use the SKTO condition type as a Accrual condition type and post to Accrual accounts at the time of billing document creation.
    While processing the Payment we will clear the bucket with relevant discounts with eligible payment terms.
    We are debating and discussing the use of SKTO as a Accrual condition type and start posting GL accounts with it (This means that we are removing the statistical check box from pricing procedure).
    In a nutshell our requirement is.
    1. Track the cash discounts in a Accrual bucket.
    2. Relieve the accrual when payment is applied (This will be done in Cash app)
    3. What are the consequences of making this change?
    4. Is there a better way of managing this?
    Thanks
    Sreedhar

    Hi,
    Your issue can be solved by CO consultant.
    Your CO consultant can generate report from CO-pa documents.(when invoice is released to a/c ,FI and CO documents are generated) and you know SKTO- cash discount amount even if it statistical condition type.
    You do not need to change in Pricing procedure for tracking  cash discount.
    SKTO is linked wtih payment terms and it is applied accordingly through standard programs.
    thanks,
    Vrajesh
    Edited by: Vrajesh G. Nayak on Jun 2, 2010 5:12 PM

  • What type of hard drive replacement should i use to replace the hard drive in my first generation mac min 2005 model a 1103?

    what type of hard drive replacement should I use to replace the hard drive on my first generation mac mini model a 1103?   G4 1.25 mhz 40 gb hd 1 gb. mem.

    You'll need a 2.5" parallel ATA interface hard drive. Most are 5400RPM, forget 7200RPM drives and slower 4200rpm drives.  You don't want a serial ATA (SATA) drive, as that has a different connector and won't work.
    One source I've used for drives is Newegg, and their parallel ATA hard drives are at http://www.newegg.com/Product/ProductList.aspx?Submit=ENE&N=100007605%2060000344 2&IsNodeId=1&name=IDE%20Ultra%20ATA100%20%2f%20ATA-6 .  Newegg also has many user comments about the drives. Other sources are OWC at http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/ (Click on ATA on the left) . Look for at least a 3 year warranty. 

Maybe you are looking for

  • Can i share itunes with 3 ipods?

    I have 3 iPods and i would like to know how to use the sae itunes account for all 3.

  • Improving query which is using IN clause

    Hi, I am currently using a query which has IN (1.2.3....N) clause in where condition. The table has more than 100000 records in it. I have a set of 20 values which I pass inside this IN clause. The column which is used for IN clause is indexed. Can I

  • Apache & Databse in different servers

    Hi All, somebody knows how I configure my apache & my database (9iR2) to work on separated server. My idea is the apache server running on a DMZ accessing the database in another server, I want to use like both server are one, e.g. running like insta

  • AEBS & AE Network advice

    I just added 3 AE to my existing AEBS network. I have a 3 story house. Currently the AEBS is on the 2nd floor with Hawkins 7dbm antenna array. I added a 3 AE on the 1st floor. 1st one is in the kitchen hooked up to a Bose stereo. 2nd near the foyer t

  • Where can I find the iPad textbooks?

    I've looked everywhere in the iBook store and can only find the life on earth textbook, I want the biology book but just can't find it.