Creating XML data server

Hi guys,.

I can't create a server of data to XML files. I have XML files in my local directory and I want to import into ODI. Please let me know the steps for creating a root for the same thing. I can't define the schema and URL parameters. If not, please direct me to any example for the creation of a data server for XML files available on the internet.

Thanks in advance

Hello

To generate an XML in a RDBMS table-

1 topology manager - insert a server data (user name, pwd not required), choose the driver in the form of url "com.sunopsis.jdbc.driver.xml.SnpsXmlDriver" and jdbc as ' jdbc:snps:xml? d = C: / abctest.dtd "and if you want to reverse a Xml file jdbc url will be" jdbc:snps:xml? f = C: / abctest.xml.
Note that you should have your placed dtd before giving the location... Click test... It should say 'successful connection '. Insert a diagram logical and physical... also to select your data schema and the scheme of work of gout dow.it shud be somewhat similar to your "root element"... a little...

2 Goto designer--> insert a new model--> specifies the XML technology... global context... standard reverse... all your elements in DTD will be visible as data warehouses... to reverse them.

3. to fill each element, you will need to create an interface. Put the source as Oracle db table and target is your store of XML (any element you wish to fill).

4. by default the PK of the root of your item will be 0.

5 create an interface to fill your second... put element element FK root as 0 and fill in the required columns.

6. use "IKM SQL command append", different rest as target area and put it under Oracle db only.

7. now, create a procedure to create an xml file, like "create xmlfile from a scheme.

8 set this interface on the first, then this procedure in a package and run it. It will create an xml file to the specified location.

9. you can create "n" number of interfaces with the elements of "n" and write in the xml file.

Note: by default after overturning the DTD, it automatically creates the PKs and FKs also order some columns... so that you can tell him the order of the items or subitems in your xml file.

Its always a good practice to reward points if you find the answer correct and useful. This would encourage more people to reply to messages.

Thank you
CJ

Tags: Business Intelligence

Similar Questions

  • Creating a data server - Hyperion Planning

    Hello

    In the old 10.3 ODI, in physical Architecture we would right click on Hyperion Planning in "physical Architecture. Then we entered name, Server (database server), user and password. Downstairs there are buttons: OK, cancel, apply, help and test. Then, when you have selected OK here a new window emerged where you can enter the request (catalog), request (catalogue of work) on the definition tab. Then go to the tab context and add context and the logic diagram.

    In ODI 11.1.1 is a different GUI and I am confused how to proceed. I right click "Planning of Hyperion" under physical Architecture section and select "new Data Server. Fill in the 'name', 'Server (data)', 'User' and 'Password '. What I'm doing here to get to the next step and perhaps to test this connection...

    Confused here...

    You are getting confused between the database server and the physical schema. Looks like that you cooked up with success a data server now need do is create a physical schema, which is where you will specify request (catalog), request (catalogue of work) on the definition tab and establish a context. All you have to do is right click on your server of planning data and add a new physical schema.

  • SQL to create xml data

    Hi all - I have an obligation to create an XML from a table. The table has produced number repeated for each attrbiutes values. Is it possible to create an xml file with product_id that only once and all attributes and values listed under that. Help, please

    Example of

    WITH tmp AS
    (SELECT '0983433' PRODUCT, 'color' prd_attr, 'blue' AS val
    OF THE DOUBLE
    UNION
    SELECT "0983433" AS a product, prd_attr 'size', '23' LIKE val
    OF THE DOUBLE
    UNION
    SELECT "0983433" AS a product, prd_attr 'group', 'beauty' AS val
    OF THE DOUBLE
    Union
    SELECT "0384491" AS a product, prd_attr of 'sale', 'Y' HAVE val
    OF THE DOUBLE
    UNION
    SELECT "0384491" AS a product, prd_attr 'size', '23' LIKE val
    OF THE DOUBLE
    UNION
    SELECT "0384491" AS a product, prd_attr 'segment', 'lie' AS val
    THE DOUBLE)
    SELECT *.
    OF the tmp

    And the file must be as follows:

    PRODUCTS >
    -< PRODUCT >
    < ID > 0384491 < /ID >
    -NATURE >
    Y < SALE > < / SALE >
    Mens < SEGMENT > < / SEGMENT >
    < SIZE > 23 < / SIZE >
    < / NATURE >
    < / PRODUCT >
    -< PRODUCT >
    < ID > 0983433 < /ID >
    -NATURE >
    < COLOR > blue < / COLOR >
    beauty of < GROUP > < / GROUP >
    < SIZE > 23 < / SIZE >
    < / NATURE >
    < / PRODUCT >
    < / PRODUCT >

    Help, please

    Functions SQL/XML is the best option.

    SQL> WITH tmp AS (
      2    SELECT '0983433' AS product, 'color' prd_attr, 'blue' AS val FROM DUAL UNION ALL
      3    SELECT '0983433' AS product, 'size' prd_attr, '23' AS val FROM DUAL UNION  ALL
      4    SELECT '0983433' AS product, 'group' prd_attr, 'beauty' AS val FROM DUAL UNION ALL
      5    SELECT '0384491' AS product, 'sale' prd_attr, 'Y' AS val FROM DUAL UNION ALL
      6    SELECT '0384491' AS product, 'size' prd_attr, '23' AS val FROM DUAL UNION ALL
      7    SELECT '0384491' AS product, 'segment' prd_attr, 'mens' AS val FROM DUAL
      8  )
      9  SELECT xmlserialize(document -- for display purpose only
     10           xmlelement("PRODUCTS",
     11             xmlagg(
     12               xmlelement("PRODUCT",
     13                 xmlelement("ID", product)
     14               , xmlelement("NATURE",
     15                   xmlagg(
     16                     xmlelement(evalname(upper(prd_attr)), val)
     17                   )
     18                 )
     19               )
     20             )
     21           )
     22           indent
     23         ) as result
     24  FROM tmp
     25  GROUP BY product
     26  ;
    
    RESULT
    --------------------------------------------------------------------------------
    
      
        0384491
        
          Y
          mens
          23
        
      
      
        0983433
        
          blue
          beauty
          23
        
      
    
     
    

    If the order of the elements is a meaning, you can add the good ORDER BY clause, for example

    xmlagg(
      xmlelement(evalname(upper(prd_attr)), val)
      order by prd_attr
    )
    

    Published by: odie_63 on 14 nov. 2012 18:40

  • The ODI API method to test the connection to the server XML-Data

    Hello

    I tried my hands on ODI SDK API and could create the physics/logic connections through it successfully.

    At the studio of ODI, for XML technology, when test us the data server-> JDBC-> connection test connection, corresponding to the xml specified in the JDBC url schema (xsd) the lorsque nous tester la connexion de données serveur-> JDBC-> tester la connexion, correspondant à la schema (xsd) xml spécifié dans l' url JDBC les tables tables are created.

    But I'm not able to get this functionality with the API in the SDK. It seems that JDBC connection is not tested when the code below is run

    connection settings

    myDataServer.setConnectionSettings (new OdiDataServer.JdbcSettings)

    "jdbc:snps:xml? d = C: / my_sample_xsd.xsd & s = ITEST..." »)) ;

    So basically I want to imitate the "Test Connection" feature using the API of the SDK. Currently, it creates Server XML data and physical schema but no tables in the database.

    Pointers?

    Thank you.

    I found the solution...

    test the connection to the jdbc url

    RemoteRuntimeAgentInvoker remoteRuntimeAgentInvoker = new RemoteRuntimeAgentInvoker (": http://application-tier server: port/odiagentname", "odiuser", "odipassword".toCharArray ());

    try {}

    remoteRuntimeAgentInvoker.invokeTestDataServer (myDataServer.getDataServerId ());

    } catch (InvocationException e) {}

    e.printStackTrace ();

    }

  • create the SQL server programmatially data source

    Hello

    I would like to create a SQL server by programming in LabVIEW data source. The SQL server version that I used is from 2005. Can someone give some ideas? An example of code will be more favorable.

    Thank you

    Jane

    You can build the connection string you even.  The open function in the Toolbox of data base accepts a string as well (it's polymorphic) who can be the connection string.  This is the site I use to understand.  Is the most common things.  You may need to search Google more specific elements.

    http://www.ConnectionStrings.com/

    If you want to use the other option, someone has achieved a UDL editor in LabVIEW.  You can use this code to create your own UDL which can use the Open DB function:

    https://decibel.NI.com/content/docs/doc-18613

    I have used the above code, so can't comment on that.

  • Can I create an XSD from XML data into a CLOB?

    Environment:


    Oracle 11.2.0.3 EE on Solaris.


    Highly an XML newbie so please be nice!

    I spent the past few days pouring through the documentation and various articles, including this one, but... I need help.

    I am trying to extract XML data stored in a CLOB and produce a flat file for the user's consumption.

    They sent me what they think is the XSD for XML data, but when I look at the data in the CLOB I don't see tags in the XSD.

    I would like to produce a XSD based on real data to compare with what they sent.

    Is this possible?

    I am able to query XML data using the tags that I see in data using XMLTable and it works fine.

    Any help is greatly appreciated.

    -gary

    Welcome to the side of the world, where you're going to love it and curse, like any other piece of XML technology.

    So if I understand correctly, the scope of your operation is to extract information from an XML file and then write this information to the disk, correct?

    A few questions

    -Why did the XML stored in a CLOB instead of an XMLType column?  Without knowing the history of the system, it is a pertinent question.

    -What size are the XML?  I ask this question, it is because when the XML is stored in the columns of XMLType (relational structure object or XML BINARY SECUREFILE format), then Oracle can parse the XML much more easily when it is stored as a CLOB.  If the XML is small enough, you can see no difference in performance between the two.

    The Oracle DB itself has no built in the ability to generate a schema from an XML file.  To do this, you need to use a third-party tool that has this feature in.  For example, XML Spy can do.  Other tools as well, but that's what comes to mind first is what I use.  The only thing to remember is that the scheme he built is only an XML instance.  Other XML instances can be different and not valid against the schema you generated, but still valid against the original schema unknown.

    You can save the schema in the database and then use the XML to create an XMLType instance related to the schema and then validate the XML in this way.  An example XML DB FAQ and here's another one Re: validation of XML schema

    Hope that helps you continue.

  • Creating sub XMLList Collection from XML data

    Hello

    I use three TileList components - A, B and C

    Get the data as a single XML from a remote XML data function through a component generator HTTPService

    for example: simple XML data:

    nodes <>

    < node id = "1" type = "a" > < / node >

    < node id = "2" type = "b" > < / node >

    < = '3' type = 'c' node id > < / node >

    < node id = "4" type = "b" > < / node >

    < = '5' type = 'c' node id > < / node >

    < node id = "6" type = "a" > < / node >

    < node id = "7" type = "a" > < / node >

    < / node >

    I would like to create (group based on the XML attribute ' type') 3 sub list XML collection / XMLs using the received XML (see above) to propose it as a data provider for the three TileList component matching

    as:

    1 XMLA as a data provider for A tileList

    nodes <>

    < node id = "1" type = "a" > < / node >

    < node id = "6" type = "a" > < / node >

    < node id = "7" type = "a" > < / node >

    < / node >

    2 XMLB as data provider for B-tileList

    nodes <>

    < node id = "2" type = "b" > < / node >

    < node id = "4" type = "b" > < / node >

    < / node >

    3 XMLC as data provider for C-tileList

    nodes <>

    < = '3' type = 'c' node id > < / node >

    < = '5' type = 'c' node id > < / node >

    < / node >

    How can I accomplish this?
    -Sen

    This can be done very concise, with the help of E4X, which allows you to work with XML from child's play.

    Here is my example which binds the data provider to all nodes of the type 'a' and that specifies the field of the label of the control set to the id attribute of the node:


    http://www.Adobe.com/2006/mxml">

     
         
         
         
         
         
         
         
     


  • Cannot create the data source to SQL Server

    Hi people,

    I am running IIS, Windows XP SP3, SQL Express 2005, Trial Version of ColdFusion 9 (no patches).

    The administrator using ColdFusion, when I try to create a data source for SQLExpress 2005 (SQL Server Express), by using the SQL Server driver, I get the following error:

    Connection verification failed for data source: AMT
    java.sql.SQLException: [Macromedia] [SQLServer JDBC Driver] the requested instance is not valid or is not running.
    The root cause was that: java.sql.SQLException: [Macromedia] [SQLServer JDBC Driver] the requested instance is not valid or is not running.

    The "instance", which I interpret as meaning the database instance, is "machinename\SQLExpress" (it is a so-called "named instance").  That's what I enter in the "Server" field of the display (data & Services-> sources-> Microsoft SQL Server).

    However, I am able to create an ODBC data source name in Windows using the driver Microsoft SQL Server Native Client Version 09.00.3042 and the same instance, "machinename\SQLExpress".

    Does anyone have any ideas as to what is wrong?

    Try to use the domain name TCP/IP (or IP address) and port instead of the info of the connectivity of Windows style.  You may need to enable TCP/IP as a network on the DB server protocol well (I think it is disabled by default on SQL Express Ed).

    --

    Adam

  • extract data from blob field containing xml data big

    I'm working on Oracle 11 g 2, 11.0.2.0.3. UNIX database server.

    my oracle instance receive large xml data service web ftp, I put this file as blob in a table called TBL_ALERT_XML (ID_ALERT NUMBER, DATE of the TIMESTAMP_ALERT, ALERT_XML BLOB).

    My goal is to get data of BLOB content e file put in one or more other tables.

    I try with the opening of a cursor on

    SELECT XMLTYPE (UTL_RAW.cast_to_varchar2 (ALERT_XML)). Extract (' alerts/points/point / / Text () ') threads

    OF TBL_ALERT_XML

    without any filter on ID_ALERT.

    But I get the error:

    ORA-22835: buffer too small for to CHAR CLOB or BLOB to RAW conversion



    Please help me, thank you very much

    Because the web service is deployed in python and my co worker is not able to call a stored procedure with the parameter xmltype, but only with the setting of the BLOB.

    If you can't get around it, so be it. All the less, using CLOB would be better.

    However, which prevents you to convert BLOB XMLType entry within the stored procedure and store it in an XMLType column.

    To do this, simply use the XMLType of BLOB.

    create table tbl_alert_xml)

    number of id_alert

    date of timestamp_alert

    alert_xml xmltype

    );

    insert into tbl_alert_xml

    values)

    1

    sysdate

    xmltype (p_blob

    , nls_charset_id ('AL32UTF8') - put the encoding of the file here

    )

    );

    Then, you will be able to execute queries optimized using XMLTABLE.

  • Table design for the newspaper error due to a xml data type

    Hello

    I am trying to create a table of error log, but I get the below error

    ORA-20069: unsupported column or the types found:

    Table on which I am trying to create a column with the xml data type.

    Is there a way to create the error table for tables with the XML data type.

    Thank you

    PAL

    http://docs.Oracle.com/CD/E11882_01/server.112/e41084/statements_9014.htm#SQLRF55101

    Concerning

    Etbin

    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e40758/d_errlog.htm#ARPLS680

    Look at the skip_unsupported setting

  • Create another data base of Liquibase changelog: automatic data type conversion

    I need to convert the structure of PostgreSQL databases to Oracle. In PostgreSQL, I a postgres database.

    In Oracle, I have an empty database in which I want to write to postgres database in PostgreSQL.

    Actually, I didn't need the data, only the structure (relationships).

    For this, I use Liquibase. I get the changelog of PostgreSQL with the command:

    Liquibase.

    -driver = org.postgresql.Driver.

    --classpath="C:\db_drivers\postgresql-9.3-1102.jdbc3.jar------.

    --changeLogFile="./postgresql_changelog.Xml------.

    -url = "" jdbc:postgresql://localhost:5432 / postgres "\"

    -username = schema_name_here.

    -password = *.

    -logLevel = debug.

    -defaultSchemaName = Ms.

    generateChangeLog

    After that, I try to create objects in the Oracle database:


    Liquibase

    -driver oracle.jdbc.OracleDriver =

    --classpath="C:\db_drivers\ojdbc14.jar".

    --changeLogFile="./postgresql_changelog.xml".

    --URL="JDBC:Oracle:thin:@ip_here:orabeta".

    -username = *.

    -password = *.

    Update

    Does not work: ORA-00902

    Here is a fragment of postgresql_changelog.xml:

    ...

    < changeSet author = '(generated) Alexey' id = "1409146335011-53" >

    < create table tableName = "TABLE1A" >

    < column name = "total_pk" type = 'INT8' >

    < forced nullable = "false" / >

    < / column >

    < column name = "form_fk" type = 'INT8' >

    < forced nullable = "false" / >

    < / column >

    ...

    I also generate a pure SQL file:


    Liquibase

    -driver oracle.jdbc.OracleDriver =

    --classpath="C:\db_drivers\ojdbc14.jar".

    --changeLogFile="./postgresql_changelog.xml".

    --URL="JDBC:Oracle:thin:@ip_here:orabeta".

    -username = *.

    -password = *.

    updateSQL > update.sql

    Here is a fragment of update.sql:


    ...

    CREATE THE TABLE SCHEMA_HERE. TABLE1A (total_pk form_fk INT8 INT8 NOT NULL,.. .etc);

    INSERT INTO SCHEMA_HERE. TABLE1A (ID, $form_id,... etc.)

    ...

    I want to generate the file, in which all the data types correspond to the target database, that is to say I want to create. I can write a simple parser that replace the data types, but this isn't the right solution - can be a lot of data.

    It is possible to get changelog from a database and update another database on a different server this changelog RDBMS? I need to get the automatic and Automatic data type conversion generate XML data / SQL output with the data types of target database.

    Or maybe there is an option to generate output data types with "abstract"? That is to say with data types that are not in the actual databases, for example, instead of INT8 - whole, etc.

    I would be very grateful for the information. Thank you all.

    Why not to use pg_dump to extract the schema in a file of script that you can then 'change '?

  • XML database server

    I created a data XML server and deleted thereafter. Today, I recreated. But he has been unable to test the connection. Error message as below.

    My question is where ODI need to create a table for the XML file. I checked the working repository. It is not an object named LOGIN_LOGINS.

    oracle.odi.runtime.agent.invocation.InvocationException: oracle.odi.core.exception.OdiRuntimeException: java.sql.SQLException: the object name already exists: LOGIN_LOGINS in the statement [create table LOGIN_LOGINS (LOGINSPK NUMERIC (10) NOT NULL, SNPSFILENAME varchar (255) NULL, SNPSFILEPATH varchar (255) NULL, SNPSLOADDATE varchar (255) NULL)]

    at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.invoke(RemoteRuntimeAgentInvoker.java:336)

    at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.invokeTestDataServer(RemoteRuntimeAgentInvoker.java:899)

    at com.sunopsis.graphical.dialog.SnpsDialogTestConnet.remoteTestConn(SnpsDialogTestConnet.java:688)

    to com.sunopsis.graphical.dialog.SnpsDialogTestConnet.access$ 1200 (SnpsDialogTestConnet.java:51)

    to com.sunopsis.graphical.dialog.SnpsDialogTestConnet$ 6.doInBackground(SnpsDialogTestConnet.java:665)

    to com.sunopsis.graphical.dialog.SnpsDialogTestConnet$ 6.doInBackground(SnpsDialogTestConnet.java:658)

    at oracle.odi.ui.framework.AbsUIRunnableTask.run(AbsUIRunnableTask.java:258)

    at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:947)

    at java.lang.Thread.run(Thread.java:745)

    Solved.

  • Update the XML data store

    Hello experts,

    I've created an interface when an xml file is reversed in the form of a source data store. Xml data are pumped into a target of oracle db. All this goes well.

    I'm creating a scenario where I get an xml file from a ftp server on a daily basis (with agent). This new xml file has the same structure as that already used in the interface. The question is: How can I update the data in the xml data store?

    I tried to replace the original xml file, but it does not work and cdc does not seem to apply here, I searched for quite a while now.

    Thank you very much!

    Yves

    Hello

    See if that helps
    XML for the interface Oracle even insert County regardless of input XML file

    Thank you
    Fati

  • Combining XML data from a LiveCycle form in original form

    Hello

    I found a lot of questions on the subject but very few answers...

    I create a new form in the designer (Dynamics and grows to the size, etc.) who died and has now been returned (about 15 or 20 copies). Some chose to return the PDF saved for me since I had extended rights of use to the reader, another sent the XML data. I have compiled the form returned (in Adobe Pro 9) and everything looks good, but now I also want to be able to view all THE answers to a given domain in the original shape/model (or at least together in a cell/field any). In the upper part, I can select a line (this is a suite of XML from a returned form data) and Adobe provides information the original model (shown in the lower pane) with all selected form data, but when I select several lines, the data that a single line appears in the form.

    Say a field named "Objective_1_2", I now have 15 answers with multiple lines of text in this field and return in the model of origin (or in any other way), I want to see THE answers of "Objective_1_2" together in a single field.

    The result I'm after is to be able to show everything at once without the manual work of reorganization and restructuring of the exported spreadsheet (as seems to be the case at the moment).

    Is it possible (keeping in mind that I don't have the option to use the server software for all merge...).

    Thanks a lot, a lot.

    Cory

    This is because each line gets a unique name... so from the perspective of tables each is different.

    Paul

  • retrieving xml data field

    Question: How to create the ability to load an XML to another area?

    For example, I create an embedded video player which plays on the field that the xml file resides and also embarked on other sites.

    I'm at the point where the video player works entirely on the area that the xml file is located and when I embed on another field, the .flv plays, but the xml data won't.

    FYI, I have full access to the domain where the xml file resides.

    Following are excerpts from the security settings I tried to go to work:

    Code of the player:

    System.security.loadPolicyFile (domain + "data / crossdomain.xml");

    Code of "data / crossdomain.xml:

    <? XML version = "1.0"? >

    < cross-domain-policy >

    < allow-access-from domain = "" * "/ >"

    < / cross-domain-policy >

    Any help would be beneficial, even a link to another site. Thanks in advance!

    There are two quick fixes:

    (1) simply host the SWF on your domain and enable version "embarked on other sites" reference just the absolute path to your SWF file. your swf file is not "live" on any other field, but it is loaded in the pages of the domain of your server.

    (2) do not put the crossdomain.xml file in a special folder. Just put the file to the root of the web server. This allows backwards compatibility with older versions of the Flash Player too, if you need build a legacy Flash SWF from a previous version of the player.

    HTH.

    -Robert

    --

    Robert Reinhardt

    Creator, videoRx.com

    Author, series Bible Flash and video for Adobe Flash CS4 Professional Studio Techniques

    Adobe Community Expert

    http://blogs.flashsupport.com/Robert

Maybe you are looking for