XML to SQL via CF

Hi
I need to point to an XML feed and import that feed into SQL
using CF.
Is this possible and if so can someone guide me?
Thanks

cfxml will create create an XML Document Object that you can
then use standard array and structure function to manipulate it.
How that would play out for you depends on the structure of the XML
feed you are grabbing.
Here's a basic sample of using CF's XML functions.
For simplicity's sake, let's say our XML document looked like
this:
<feeds>
<feed>
<name>Feed 1</name>
<link>
http://www.somesite.com/</link>
</feed>
<feed>
<name>Feed 2</name>
<link>
http://www.someothersite.com/</link>
</feed>
</feeds>
Read in the XML feed (if it's remote, you'd use cfhttp
instead of cffile):
<cffile fule="C:\Inetpub\wwwroot\mysitedir\myXML.xml"
variable="xmlFeed" />
Then you can parse it with XMLParse()
<cfset feed=XMLParse(xmlFeed)/>
This creates an XML Document Object -- keep in mind that an
XML document is only a string. Using XmlParse() converts a valid
XML document (the string) into a an XML Document Object that CF can
then "really" work with.
You can now use structure and array functions to loop over
the XML Document Object, store them in variables, output them,
write them to a database, etc.
<cfdump var="#xmlObj.feeds.feed[1].link.xmlText#">
This should output the link,
http://www.somesite.com/ to the
browser.
I'm guessing that you do not want to simply grab and store
the entire XML feed as one document in a database. If that's the
case, you can just read the file (cffile or cfhttp) and then store
the variable contents in a DB.
Anyway, hope this helps you get a little further down the
road with CF and XML.
Cheers,
Craig

Similar Messages

  • Got error message when store XML documents into XML DB repository, via WebD

    Hi experts,
    I am in I am in Oracle Enterprise Manager 11g 11.2.0.1.0.
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 22 11:40:23 2011
    I got error message when store XML documents into XML DB repository, via WebDAV.
    I have successfully registered 5 related schemas and generated 1 table.
    I have inserted 40 .xml files into this auto generated table.
    using these data I created relational view successfully.
    but since I couldn't store XML documents into XML DB repository, via WebDAV
    when I query using below code:
    SELECT rv.res.getClobVal()
    FROM resource_view rv
    WHERE rv.any_path = '/home/DEV/messages/4fe1-865d-da0db9212f34.xml';
    I got nothing.
    My ftp code is listed below:
    ftp> open localhost 2100
    Connected to I0025B368E2F9.
    220- C0025B368E2F9
    Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
    220 I0025B368E2F9 FTP Server (Oracle XML DB/Oracle Database) ready.
    User (I0025B368E2F9:(none)): fda_xml
    331 pass required for FDA_XML
    Password:
    230 FDA_XML logged in
    ftp> cd /home/DEV/message
    250 CWD Command successful
    ftp> pwd
    257 "/home/DEV/message" is current directory.
    ftp> ls -la
    200 PORT Command successful
    150 ASCII Data Connection
    drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 .
    drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 ..
    226 ASCII Transfer Complete
    ftp: 115 bytes received in 0.00Seconds 115000.00Kbytes/sec.
    250 SET_CHARSET Command Successful
    ftp> put C:\ED\SPL\E_Reon_Data\loaded\4fe1-865d-da0db9212f34.xml
    200 PORT Command successful
    150 ASCII Data Connection
    550- Error Response
    ORA-00600: internal error code, arguments: [qmxConvUnkType], [], [], [], [], [], [], [], [], [], [], []
    550 End Error Response
    ftp: 3394 bytes sent in 0.00Seconds 3394000.00Kbytes/sec.
    I have tried all suggestion from another thread such as:
    alter system set events ='31150 trace name context forever, level 0x4000'
    SQL> alter system set shared_servers = 1;
    but failed.
    is there anyone can help?
    Thanks.
    Edited by: Cow on Mar 29, 2011 12:58 AM

    Hi experts,
    I am in I am in Oracle Enterprise Manager 11g 11.2.0.1.0.
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 22 11:40:23 2011
    I got error message when store XML documents into XML DB repository, via WebDAV.
    I have successfully registered 5 related schemas and generated 1 table.
    I have inserted 40 .xml files into this auto generated table.
    using these data I created relational view successfully.
    but since I couldn't store XML documents into XML DB repository, via WebDAV
    when I query using below code:
    SELECT rv.res.getClobVal()
    FROM resource_view rv
    WHERE rv.any_path = '/home/DEV/messages/4fe1-865d-da0db9212f34.xml';
    I got nothing.
    My ftp code is listed below:
    ftp> open localhost 2100
    Connected to I0025B368E2F9.
    220- C0025B368E2F9
    Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
    220 I0025B368E2F9 FTP Server (Oracle XML DB/Oracle Database) ready.
    User (I0025B368E2F9:(none)): fda_xml
    331 pass required for FDA_XML
    Password:
    230 FDA_XML logged in
    ftp> cd /home/DEV/message
    250 CWD Command successful
    ftp> pwd
    257 "/home/DEV/message" is current directory.
    ftp> ls -la
    200 PORT Command successful
    150 ASCII Data Connection
    drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 .
    drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 ..
    226 ASCII Transfer Complete
    ftp: 115 bytes received in 0.00Seconds 115000.00Kbytes/sec.
    250 SET_CHARSET Command Successful
    ftp> put C:\ED\SPL\E_Reon_Data\loaded\4fe1-865d-da0db9212f34.xml
    200 PORT Command successful
    150 ASCII Data Connection
    550- Error Response
    ORA-00600: internal error code, arguments: [qmxConvUnkType], [], [], [], [], [], [], [], [], [], [], []
    550 End Error Response
    ftp: 3394 bytes sent in 0.00Seconds 3394000.00Kbytes/sec.
    I have tried all suggestion from another thread such as:
    alter system set events ='31150 trace name context forever, level 0x4000'
    SQL> alter system set shared_servers = 1;
    but failed.
    is there anyone can help?
    Thanks.
    Edited by: Cow on Mar 29, 2011 12:58 AM

  • How to generate XML from SQL query

    possible ways to generate XML from SQL qury.
    i want to generate XML of following query. "Select * from emp,dep wher emp.deptno=dept.deptno"

    Hello.
    Can you try:
    SQL> set pages 0
    SQL> set linesize 150
    SQL> set long 9999999
    SQL> set head off
    SQL> select dbms_xmlgen.getxml('Select * from emp,dep wher emp.deptno=dept.deptno') from dual;
    It works fine for me.
    Octavio

  • Run XML Publisher Report  via URL (like Oracle Reports)

    Hi All,
    Is it possible to run xml-publisher report via URL?
    In Oracle Reports works this fine:
    http://test:7777/reports/rwservlet?server=test_bihome1&report=test1.rdf&userid=test/testv@db&desformat=pdf&destype=cache
    We need this for public reports without user login.
    Thanks
    Thomas

    Thomas,
    I was waiting to get home before Tim replied... He got the better of me this time :-)
    You say you want to let your users run reports using XMLP just by clicking on an URL same way you do with reports and without having to login. If I got the question right and assuming that:
    1.Your company is not overly concerned on who runs what reports
    2.Who sees what data
    3.Your XMLP installation is on your intranet and firewalled from the outside
    What you can do is:
    On the main page of your XMLP Enterprise installation you should see a folder called "Guest". Any report you create under this folder is run as user "guest" which means you don't have to authenticate yourself as you would normally do.
    I have tested this on my home server and this is what I've done:
    1.Logged in as admin or any other user you've created with admin privileges created a report under the "Guest" folder.
    2.Copied the URL, on my server it is "http://samba.private.net:15101/xmlpserver/Guest/People/People.xdo"
    4.Logged off as admin and pasted the URL to a new browser window
    5.Hit return and Voila, my report runs without the need to login to XMLP.
    Hope this helps. Let us know how you got on.
    Cheers,
    Joao
    PS: If you want to see the report for yourself here's the URL from the outside: http://medeiros.homelinux.net:15101/xmlpserver/Guest/People/People.xdo
    I'll keep the link alive for a couple of days.

  • VIEW XML IN SQL*PLUS

    how can we view xml on sql*plus?
    when xmltype is viewed on sql*prompt it shows incomplete xml.
    example:
    SQL> select xmlelement("ROOT",xmlforest(1 as A, 2 as B, 3 as C)) from dual;
    XMLELEMENT("ROOT",XMLFOREST(1ASA,2ASB,3ASC))
    <ROOT>
    <A>1</A>
    <B>2</B>
    <C>3</C>
    </ROOT>
    but i generate an xml from table so it becomes quite huge. say a forest is populated with 6-8 tags. it shows broken output.
    SQL> /
    ID LIST
    <DEPT>
    <EMPLOYEE>
    <ID>2109</ID>
    <ID>3108</ID>
    <ID>4107</ID>
    <ID>5106</ID>
    <ID
    i have tried increasing bufferwidth and bufferlength tp max value (1000 and 2000 respectively) eventhen it displays the output as shown above.
    how can i view my xml?

    use this sql plus command:
    set long 2000000
    You can increase\decrease the value as required.

  • Peter Fabian from Ottawa – Wants to learn XML and SQL

    Hi There,
    I am Peter Fabian from Ottawa. I want to learn XML and SQL. I have basic knowledge of HTML. Please provide me necessary tutorial which can help me to learn XML and SQL.
    Thanks
    Peter Fabian

    Some starting points based on existing Oracle documentation
    [url http://www.oracle.com/technetwork/indexes/documentation/index.html]Oracle Documentation
    SQL - [url http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm]2 Day Developer&apos;s Guide
    XML DB - [url http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb01int.htm#ADXDB0100]XML DB Developer&apos;s Guide
    If you are going for the basics of XML, here is a place to start at [url http://www.w3schools.com/xml/]XML Tutorial
    You can also just google for tutorials on both SQL and XML and find the basics as well.

  • Generating XML from SQL queries and saving to an xml file?

    Hi there,
    I was wondering if somebody could help with regards to the following:
    Generating XML from SQL queries and saving to a xml file?
    We want to have a procedure(PL/SQL) that accepts an order number as an input parameter(the procedure
    is accessed by our software on the client machine).
    Using this order number we do a couple of SQL queries.
    My first question: What would be our best option to convert the result of the
    queries to xml?
    Second Question: Once the XML has been generated, how do we save that XML to a file?
    (The XML file is going to be saved on the file system of the server that
    the database is running on.)
    Now our procedure will also have a output parameter which returns the filename to us. eg. Order1001.xml
    Our software on the client machine will then ftp this XML file(based on the output parameter[filename]) to
    the client hard drive.
    Any information would be greatly appreciated.
    Thanking you,
    Francois

    If you are using 9iR2 you do not need to do any of this..
    You can create an XML as an XMLType using the new SQL/XML operators. You can insert this XML into the XML DB repository using DBMS_XDB.createResource. You can then access the document from the resource. You can also return the XMLType containing the XML directly from the PL/SQL Procedure.

  • Generating XML from SQL queries and saving to a xml file?

    Hi there,
    I was wondering if somebody could help with regards to the following:
    Generating XML from SQL queries and saving to a xml file?
    We want to have a stored procedure(PL/SQL) that accepts an order number as an input parameter(the procedure
    is accessed by our software on the client machine).
    Using this order number we do a couple of SQL queries.
    My first question: What would be our best option to convert the result of the
    queries to xml?
    Second Question: Once the XML has been generated, how do we save that XML to a file?
    (The XML file is going to be saved on the file system of the server that
    the database is running on.)
    Now our procedure will also have a output parameter which returns the filename to us. eg. Order1001.xml
    Our software on the client machine will then ftp this XML file(based on the output parameter[filename]) to
    the client hard drive.
    Any information would be greatly appreciated.
    Thanking you,
    Francois

    Hi
    Here is an example of some code that i am using on Oracle 817.
    The create_file procedure is the one that creates the file.
    The orher procedures are utility procedures that can be used with any XML file.
    PROCEDURE create_file_with_root(po_xmldoc OUT xmldom.DOMDocument,
    pi_root_tag IN VARCHAR2,
                                            po_root_element OUT xmldom.domelement,
                                            po_root_node OUT xmldom.domnode,
                                            pi_doctype_url IN VARCHAR2) IS
    xmldoc xmldom.DOMDocument;
    root xmldom.domnode;
    root_node xmldom.domnode;
    root_element xmldom.domelement;
    record_node xmldom.domnode;
    newelenode xmldom.DOMNode;
    BEGIN
    xmldoc := xmldom.newDOMDocument;
    xmldom.setVersion(xmldoc, '1.0');
    xmldom.setDoctype(xmldoc, pi_root_tag, pi_doctype_url,'');
    -- Create the root --
    root := xmldom.makeNode(xmldoc);
    -- Create the root element in the file --
    create_element_and_append(xmldoc, pi_root_tag, root, root_element, root_node);
    po_xmldoc := xmldoc;
    po_root_node := root_node;
    po_root_element := root_element;
    END create_file_with_root;
    PROCEDURE create_element_and_append(pi_xmldoc IN OUT xmldom.DOMDocument,
    pi_element_name IN VARCHAR2,
                                            pi_parent_node IN xmldom.domnode,
                                            po_new_element OUT xmldom.domelement,
                                            po_new_node OUT xmldom.domnode) IS
    element xmldom.domelement;
    child_node xmldom.domnode;
    newelenode xmldom.DOMNode;
    BEGIN
    element := xmldom.createElement(pi_xmldoc, pi_element_name);
    child_node := xmldom.makeNode(element);
    -- Append the new node to the parent --
    newelenode := xmldom.appendchild(pi_parent_node, child_node);
    po_new_node := child_node;
    po_new_element := element;
    END create_element_and_append;
    FUNCTION create_text_element(pio_xmldoc IN OUT xmldom.DOMDocument, pi_element_name IN VARCHAR2,
    pi_element_data IN VARCHAR2, pi_parent_node IN xmldom.domnode) RETURN xmldom.domnode IS
    parent_node xmldom.domnode;                                   
    child_node xmldom.domnode;
    child_element xmldom.domelement;
    newelenode xmldom.DOMNode;
    textele xmldom.DOMText;
    compnode xmldom.DOMNode;
    BEGIN
    create_element_and_append(pio_xmldoc, pi_element_name, pi_parent_node, child_element, child_node);
    parent_node := child_node;
    -- Create a text node --
    textele := xmldom.createTextNode(pio_xmldoc, pi_element_data);
    child_node := xmldom.makeNode(textele);
    -- Link the text node to the new node --
    compnode := xmldom.appendChild(parent_node, child_node);
    RETURN newelenode;
    END create_text_element;
    PROCEDURE create_file IS
    xmldoc xmldom.DOMDocument;
    root_node xmldom.domnode;
    xml_doctype xmldom.DOMDocumentType;
    root_element xmldom.domelement;
    record_element xmldom.domelement;
    record_node xmldom.domnode;
    parent_node xmldom.domnode;
    child_node xmldom.domnode;
    newelenode xmldom.DOMNode;
    textele xmldom.DOMText;
    compnode xmldom.DOMNode;
    BEGIN
    xmldoc := xmldom.newDOMDocument;
    xmldom.setVersion(xmldoc, '1.0');
    create_file_with_root(xmldoc, 'root', root_element, root_node, 'test.dtd');
    xmldom.setAttribute(root_element, 'interface_type', 'EXCHANGE_RATES');
    -- Create the record element in the file --
    create_element_and_append(xmldoc, 'record', root_node, record_element, record_node);
    parent_node := create_text_element(xmldoc, 'title', 'Mr', record_node);
    parent_node := create_text_element(xmldoc, 'name', 'Joe', record_node);
    parent_node := create_text_element(xmldoc,'surname', 'Blogs', record_node);
    -- Create the record element in the file --
    create_element_and_append(xmldoc, 'record', root_node, record_element, record_node);
    parent_node := create_text_element(xmldoc, 'title', 'Mrs', record_node);
    parent_node := create_text_element(xmldoc, 'name', 'A', record_node);
    parent_node := create_text_element(xmldoc, 'surname', 'B', record_node);
    -- write the newly created dom document into the buffer assuming it is less than 32K
    xmldom.writeTofile(xmldoc, 'c:\laiki\willow_data\test.xml');
    EXCEPTION
    WHEN xmldom.INDEX_SIZE_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Index Size error');
    WHEN xmldom.DOMSTRING_SIZE_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'String Size error');
    WHEN xmldom.HIERARCHY_REQUEST_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Hierarchy request error');
    WHEN xmldom.WRONG_DOCUMENT_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Wrong doc error');
    WHEN xmldom.INVALID_CHARACTER_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Invalid Char error');
    WHEN xmldom.NO_DATA_ALLOWED_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Nod data allowed error');
    WHEN xmldom.NO_MODIFICATION_ALLOWED_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'No mod allowed error');
    WHEN xmldom.NOT_FOUND_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Not found error');
    WHEN xmldom.NOT_SUPPORTED_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Not supported error');
    WHEN xmldom.INUSE_ATTRIBUTE_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'In use attr error');
    WHEN OTHERS THEN
    dbms_output.put_line('exception occured' || SQLCODE || SUBSTR(SQLERRM, 1, 100));
    END create_file;

  • XML or Sql or ??

    Hi
    I'm developing my first app for iOS using Flashbuilder 4.6 and need to have a database to keep track of certain items, probably no more than 20 items per record (including username and password) in a single table for a single user. 
    I don't want to use server technology but want to keep the data on the device.   My question is should I use XML or SQL or some other way to store the data on the device.
    Any guidance would be appreciated.
    Thanks.

    Ok ... drop sitemesh and jmeter. So we have:
    mysql + hibernate + log4j + ant + struts + tomcat (app server) + apache (web server) running on freebsd and tested using junit.
    mysql - Half decent and free. Easy to setup.
    hibernate - Provides OR mapping. Takes a bit of learning but keep it simple and you'll be ok.
    log4j - Really easy to setup and use.
    ant - Again will take a bit of learning but once you get going you can write a basic ant script in no time (it integrates really well with eclipse)
    struts - Probably the most difficult technology to learn but it will keep your app well structured. (MVC)
    tomcat + apache - You can probably get away with just tomcat but if you've got time use the jk2 connector stuff.
    freebsd - Any unix based OS will do really.
    junit - Will look really good if you show you've properly unit tested your work. And you can integrate with junit with ant.
    How long have you got to do this btw ...

  • Generic XML to SQL translator

    We are working on a project where we need to push blobs of XML data into a DB with an unknown schema. We are looking for a tool that defines it's own XML-to-SQL protocol that would allow it to accept XML data in a format known to it and then translate it into SQL statements to store the info. Our thought is to take the data in our "internal" XML format and supply an XSL document to translate to whatever the end schema is. So if we had this data:
    <MyDataObject>
    <Member1>foo</Member1>
    <Member2>bar</Member2>
    </MyDataObject>
    the XSL would translate it into a format that the tool would understand, like:
    <Table name=DataObjects>
    <Column name=Member1>foo</Column>
    <Column name=Member2>bar</Column>
    </Table>
    the tool would then know to create an INSERT statement to add this data to the DataObjects table. The key is that we don't know the name or setup of any of the tables or columns at compile time. These may vary at each installation. It's easy to provide a new XSL translation for each install. It's harder (i.e. not feasible) to write whole new classes to match each schema.
    The normal "XML to DB" tools/architectures like Castor, Torque, and JDOs don't seem to support this sort of dynamic binding to a DB. Does anyone know of a tool that does, or do we have to write our own?
    Thanks,
    Eric

    Why don't you translate the XML directly to an SQL statement or use XSL to generate the SQL?
    Franco

  • XML to SQL (oracle) Parallel Processing Scenario

    hi,
    I have one scenario to load datas from XML to SQL but when this scenario runs in parallel duplicate information.
    I have done tests with 5 xml file these xml file have unique header_id but when run in parallel , insert 5 record in target table but one is repeat.
    the flow is the following,
    1. My scenario recieved one variable (name xml file), this variable is sent for bpel.
    2. Load datas from xml to sql(oracle), in this step I have concatenated to tables C$_, I$ and E$_ the session number how explain this link http://odiexperts.com/?p=1417.
    3. Invoke web service with status finished.
    I have tried the following.
    after of first step I set a procedure with sentence "SYNCHRONIZE schema SO from file" and modify my topology to &ro=true some time run perfect but check the target table and datas are duplicated and other time catch the error ....
    0 : null : java.sql.SQLException: class org.xml.sax.SAXException
    class java.lang.NullPointerException said null.
    Any suggestion o coment to execute my scenario in parallel?
    Thanks a lot.
    Antonio

    Please repost in the Data Integrator forum Data Integrator
    (this forum is for Data Service Integrator - an entirely different product).

  • Generate XML from SQL

    Hi I wan to create XML from SQL using XMLElement and XMLAttribute as per below Format
    *<field name="AccountNumber">TEST01</field>*
    is it possible?
    Thanks in advance
    waiting for yours positive reply

    Parth Panjabi wrote:
    Thanks in AdvanceWhy don't you open Oracle docs and read it. If you want to beautify, XMLSerialize supports INDENT:
    SQL> SELECT XMLSerialize(document
      2           XMLElement("ROWS",
      3             XMLAgg(
      4               XMLElement("ROW",
      5                 XMLElement("field",
      6                   XMLAttributes('AccountNumber' AS "name")
      7                 , ename
      8                 )
      9               , XMLElement("field",
    10                   XMLAttributes('CBAccountNumber' AS "name")
    11                 , null
    12                 )
    13               )
    14             )
    15           )
    16         )
    17  FROM EMP
    18  WHERE deptno = 10
    19  /
    XMLSERIALIZE(DOCUMENTXMLELEMENT("ROWS",XMLAGG(XMLELEMENT("ROW",XMLELEMENT("FIELD
    <ROWS><ROW><field name="AccountNumber">CLARK</field><field name="CBAccountNumber
    "></field></ROW><ROW><field name="AccountNumber">KING</field><field name="CBAcco
    untNumber"></field></ROW><ROW><field name="AccountNumber">MILLER</field><field n
    ame="CBAccountNumber"></field></ROW></ROWS>
    SQL> SELECT XMLSerialize(document
      2           XMLElement("ROWS",
      3             XMLAgg(
      4               XMLElement("ROW",
      5                 XMLElement("field",
      6                   XMLAttributes('AccountNumber' AS "name")
      7                 , ename
      8                 )
      9               , XMLElement("field",
    10                   XMLAttributes('CBAccountNumber' AS "name")
    11                 , null
    12                 )
    13               )
    14             )
    15           )
    16          INDENT
    17         )
    18  FROM EMP
    19  WHERE deptno = 10
    20  /
    XMLSERIALIZE(DOCUMENTXMLELEMENT("ROWS",XMLAGG(XMLELEMENT("ROW",XMLELEMENT("FIELD
    <ROWS>
      <ROW>
        <field name="AccountNumber">CLARK</field>
        <field name="CBAccountNumber"/>
      </ROW>
      <ROW>
        <field name="AccountNumber">KING</field>
        <field name="CBAccountNumber"/>
      </ROW>
      <ROW>
        <field name="AccountNumber">MILLER</field>
    XMLSERIALIZE(DOCUMENTXMLELEMENT("ROWS",XMLAGG(XMLELEMENT("ROW",XMLELEMENT("FIELD
        <field name="CBAccountNumber"/>
      </ROW>
    </ROWS>
    SQL>
    {code}
    SY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Performing backup of SQL via backup interface

    Hello all,
    First of all , let me tell you that i don't have much knowledge regarding SQL so, excuse me in advance for any stupid questions.
    Here is my situation:
    I have SQL 2005 Standolne server. On the server there are two interfaces(NICs) one is so called production(prod) and backup(bkp). 
    The PROD is for main communication and it's with assigned FQDN - XYZ. The other one is for backup traffic and it's with FQDN - XYZ-b. The IPs are , PROD - xxx.xxx.1.xxx, BKP - xxx.xxx.2.xxx
    I'm using a HP Data Protector software , version 7.03, with latest patched installed on the backup software.
    Unfortunately when i'm trying to create a backup(there are 3 ways for authentication - Integrated, Windows and SQL server)  with the BKP interface i receive following error:
    *RETVAL*8010
    The user name which is used by the bkp software is added into the SQL server as admin, also it's with local admin from OS point of view. 
    So my question is , are there any way to perform backup via XYZ-B interface ?
    Thank you in advance !!!

    Hello,
    Seems to be more a HP Data Protector issue, see
    http://h30499.www3.hp.com/t5/Data-Protector-Support-and-News/Integration-cannot-be-configured-error-on-HP-data-protector/td-p/5961279#.U89zyGeKD5w
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to integrate the XML data received via email in to MySQL

    Hi,
    This is JK, my compnay is planning to adopt Adobe Livecycle Barcoded forms technology, We are planning to automate the Weekly report submission of the HR dept of my company, where the various employees from various branches will be submiting their weekly reports thru Barcoded forms via email and the data has to be fed in to a MySQL database for Analysis purpose.
    The problem is, i have designed the form and tested it, when i fill out the form and submit it via email, i get a XML to the mentioneid email id, but is it possible to import the bulk amount of XML data received thru email to the MySQL database without using 3rd party XML Parser.
    Does Adobe Livecycle supports any functionality where these data's after decoding or received thru email can directly be integrated in to MySQL.
    Any Suggestions?
    Regards,
    JK

    One thing that should be clear is that you do not need to purchase Reader Extensions to use Barcode Forms technology. Take a look at the 2 articles at the bottom of http://www.adobe.com/products/server/barcodedpaperforms/ they talk specifically about this issue.
    However, if you do not get RE with your Barcoded Forms license your end users will not be able to save the form off-line or submit electronically (other than data-only by email). They will be able to fill-in and print the forms only.
    By your post it sounds like you are getting Adobe LiveCycle Barcoded Forms and you have also licensed the decoder.
    The decoder itself works with a watched folder mechanism. So what you can do is create a small Java program that simply waits for decoded output from the output directory of the decoder and then populates your MySQL database. The code should be around a day to implement.
    Here is the link to the deployment article that talks about the RE requirement: http://www.adobe.com/products/server/barcodedpaperforms/pdfs/deploying_2d_barcodedpdfform s.pdf
    Your Java will basically do something like this (very incomplete sample)
    public class theThred extends Thread {
    public void start() {
    public void run() {
    while (true) {
    checkTheDirectoryCodeHere();
    gotSomethingWriteItHere();
    sleep(foreSomeNumberOfMilliseconds);
    public void checkTheDirectoryCodeHere() {
    Directory dir = new Directory("thePath");

  • How can I load this XML with sql loader ?

    Hi,
    Im try to load a XML file into a XML table:
    Create table TEST of XMLTYPE;
    XML file is something like this:
    <!DOCTYPE list SYSTEM "myfile.dtd">
    <list>
    <item id = 1> lot of tags an info here </item>
    <item id = 9000> lot of tags an info here </item>
    </list>
    I dont know how to exactly create an appropriate control file to my XML. All examples I saw in documentation are similar to this one:
    this is an example control file
    LOAD DATA
    INFILE *
    INTO TABLE test
    APPEND
    XMLTYPE (xmldata)
    FIELDS
    I dont know how to complete this control file. Can anyone help me ?
    thank you!
    Message was edited by:
    pollopolea

    Well I found this working code
    LOAD DATA
    INFILE *
    INTO TABLE test APPEND
    xmltype(xmldata)
    FIELDS
    ext_fname filler char(30),
    xmldata LOBFILE (ext_fname) TERMINATED BY EOF
    BEGINDATA
    mifile.xml
    mifile2.xml
    mifile3.xml
    the main diference I found is that when i use:
    Insert into test values (XMLType(bfilename('XMLDIR', 'swd_uC000025127.xml'),nls_charset_id('AL32UTF8')));
    tag <!DOCTYPE list SYSTEM "myfile.dtd"> is expanded
    (I explain at DTD insertion and errors with long DTD entities
    Now using sql loader the tag is not modified.
    I dont know if is there any difference, between each case. did I lost performance?
    Message was edited by:
    pollopolea

Maybe you are looking for

  • N86 Web problems can't scroll down

    I am hoping someone might be able to help me. I have an N86 and just upgraded the firmware to the newest release. I am having a problem with the web. It will not allow me to scroll down past a text input box. For example I tried to go to T-mobile.com

  • ODI File Model gives a java error

    Hi everyone, I get the following error when I try to view data for a very simple text file Model. I have tried changing the file delimiter but to no avail. It seems like some java classpath is missing somewhere. Also, does any one know where can I fi

  • Recommended solution Web Printing?

    Hi, we plan on using Web Reporting - but we need to supply a decent solution for printing. Since we have reports with fixed layouts as well as reports for analysis purposes (no fixed layout) we want a solution for both cases. Can you recommend the SA

  • Creating records in DOKTL table

    Hello Everyone, I have to create new records for table DOKTL. I have the required data to be entered, but i didnt see a table maintenance generator for this table. I would like to know how should I go about to enter values  in it? Is there some Funct

  • Manual snapshot failure

    When I try to run a manual snapshot with EM I get the following error. SQL Error ORA-13516: AWR Operation failed: INTERVAL Setting is ZERO ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 10 ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 33 ORA