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 ();

}

Tags: Business Intelligence

Similar Questions

  • How Business Service (file protocol) can read the location of the server XML file


    Hi Experts,

    I have a use case where I have to expose a Web service and as a response, I send a large xml (size max would be 18 MB).

    Customer <>- ProxyService (exposed as a Web service) <>- BusinessService (File protocol) < - read - > File.xml

    Here the xml response must be stored in the "SomeName.xml" file in the directory of the same server share path.

    So when the Client calls ProxyService, inturn would call it BS, where BS inturn would have read the contents of the xml file and pass it back as a response to the customer via PS

    Challenge is here using Protocol of file I can't do BS to read the xml file, instead his writing in a new file with conent as input message.

    Can someone let me know is it possible to read a xml file using business service.

    Note: I know that the PS can read a file using the Protocol of files, but my BS need use cases to read the contents of the file.

    Any quick response is more significant.

    Thank you

    Deba

    Cannot use the OSB in this case file adapter, you need to use a file in OSB JCA adapter. Specifically, what is called a 'synchronous reading' JCA adapter type file. Can be created in JDeveloper and then pulls in EPCO, can then be invoked as you want to extract the contents of a file synchronously in a proxy stream.

  • Operation of the sample XML data.

    Hello

    I use BI 11g Publisher.

    I'm creating a large data (50000 lines) report.

    I'm done with data sets, they work, and I could also get the example of xml data (I chose 'all' in the menu drop-down lines) for them.
    But when I try to create the new report, after checking the boxes for all data sets, loading... message appears and does not disappear.

    The reason for the problem may be the enormous amount of data?
    Because when I tried with the example of XML for only 100 lines, it has successfully loaded.

    I want that when reports are displayed, they are shown for all rows of the table...

    I have some more questions.

    1. the report displays data only for lines that are generated in the sample xml?

    2. If more data are added after reports are generated, new data will be included in the reports?

    3. what needs to be done, it is filed, I want the same reports of data from different sources (in my case this is the JNDI) but the same table definitions?

    Help, please

    Thanks in advance,

    ShuklaG

    When running the engine TONE pulls all matching records and renders on model and generate the report.

    with regard to other issues:

    1. the report indicates the complete data.

    2.Yes, the report shows with addition of data as well. It depends entirely on the SQL of data overall.

    3. change the data source (as long as datasource is already configured) at the level of datamodel regenerate the XML. If different data sources must be defined for the different sets of data, change the data source in data defination game save the datamodel, generate the xml data and save.

    Hope that it answers the questions.

  • Error specifying the spry xml data source?

    I have been using Spry in Dreamweaver XML data sets without any problem until I added the YUI calendar widget. After that, I get a message error "no entity expected to name reference (65: 23). Also, there is no evidence in the bindings panel. I have a Mac OS X, which I find very frustrating after being on a PC for 15 years. I can never find anything that I am looking help section.

    Here's what I tried to present this has not worked.

    1 removed the YUI extension

    2. remove the * file *.dat in the folder of configuration in the user library folder

    3 Rename the configuration folder in the user library folder

    4 copy the folder of my laptop configuration library works

    5. uninstalled and reinstalled Dreamweaver CS4

    I can code everything by hand, but it of a lot of your time and makes the software a virtual paper weight.

    I would be recognizing an advisor who may be offered.

    Preference for programs files Mac is in your user folder/Library/Preferences account.  The files that DW and other applications create end in .plist.  These files are created by Mac OS for many applications.  If you delete one, the operating system will be re - create another preferences file the next time the application opened.

    Also other files DW records during a re - install are saved only if you go through the uninstall process and enable this option.  It's the same for the Windows version.  Sometimes if there are strange errors you can contact Adobe support for more information.

    If not and you need to do a reinstall, I would recommend disabling everything first.  Then, by running the adobe CS # own tool.  Just type this phrase into Google and you'll find the best result for CS3 or CS4.

    Adobe - Adobe CS3Clean Script

    Adobe - Adobe CS4 clean Script

    Those more that simply remove the program.  They will remove all the items in the applications folder and shared in the user's library and the library of the system.  It is the only true way to make a re-install AFAIK.  But you will need to disable the function before doing so because it will erase all files and all the serial numbers of all the Adobe programs with this tool.

  • How to analyze the server JSON data?

    I use an API and I get responces in JSON format. I need help in the analysis of the received data to JSON.

    This is the data that I get...

    {"code": 200, "lang": "en - us", 'text': ['Hello']} »

    I need to extract the text value (ie: Hello must be extracted)

    Please help me with tis problem!

    Thank you

    In C++ JsonDataAccess is right for you

    http://developer.BlackBerry.com/native/reference/Cascades/bb__data__jsondataaccess.html

    In QML:

    var json = JSON.parse(response)
    

    Now you can access the property like this

    CODE = json.code

    LANG = json.lang

    Etc...

  • Unable to read Blob (BlobDomain) of the DB Xml data

    I'm reading a BLOB file in the database with the code below. However, I am facing 2 challenges - which i need your help...


    1. the data in a readable format, maybe I'm missing more or coding code somewhere (this is how the data is print - i¿½bi¿½...)

    2 throw an exception in the end

    Data types Blob appears as BlobDomain in the defination entity. My jdev is 11.1.1.5




    +{+
    +..............+

    oracle.jbo.domain.BlobDomain blobDomainXml = (BlobDomain) r.getAttribute ('Document');
    System.out.println ("XML Out put ="blobDomainXml); +
    +}+

    public getBlobObject() {} ViewObject

    return (ViewObjectImpl) findViewObject ("getBlobObject1");
    }



    Here's the exception after the call-

    Caused by: java.lang.NullPointerException
    at oracle.jbo.server.ViewRowSetIteratorImpl.getViewObject(ViewRowSetIteratorImpl.java:238)
    at oracle.jbo.server.ViewRowSetIteratorImpl.getSyncLock(ViewRowSetIteratorImpl.java:178)
    at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1904)
    at com.stryker.gtc.view.bean.LoginPageName.getBlob(LoginPageName.java:243)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke (unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)

    Well, it is possible that the BLOB data like this. You should check this by opening the table holding the blob in SQLDeveloper or using the browser of database JDEVs. Select the data tab and double-click a blob cell in the grid.
    So yu should get a pencil that lets you change the blog. Click it and you can see the blob as text or image. You must save the blob on your local disk and then use an editor to look into the file.

    That's what you should get from the show.

    Timo

  • The Spry XML data Pages continue to increase the memory IE7 use

    Hello

    I am facing a recent issue when I built a data page spry with Dreamweaver cs3 and when you test the page using IE7 displays the data and after that I'm not doing something else opens the Manager of Windows taskbar and found shocking that the tab for iexplore.exe guard incrementing memory usage and as soon as I navigate to another page in the Web site or return to the previous state of the history by clicking aft IE7 button, it stops incrementing and shows a number of static Ko. It is not increment more.

    Please help me, I enclose the coding as below. I kept this code in my project directory web tomcat because it is only used by a Web server running and gives an error if security policy test it offline on the local computer.

    Thanks in advance.

    Anmol Saraf

    "mranmolsaraf" wrote in message
    News:f4oidv$k6f$1@forums. Macromedia.com...
    > ds1 var = new Spry.Data.XMLDataSet ("menubarXML.xml",
    > "specials/menu_item" {distinctOnLoad: true, useCache:false, loadInterval:100});}

    You reload the XML file every 100 milliseconds, I'm not surprised
    the memory usage increases...

    ----------------------------
    Massimo Foti, programmer web-rental
    Tools for ColdFusion and Dreamweaver developers:
    http://www.massimocorner.com
    ----------------------------

  • How do you get the incremented xml data a statement?

    Hello

    I am importing data using xml and incrementing data that looks like this

    peopleObject.name0

    peopleObject.phone0

    peopleObject.image0

    peopleObject.name1

    peopleObject.phone1

    peopleObject.image1

    And now I'm trying to use this information using a statement but I don't know how I can add the number that is incremented at the end I tried to add a '+ I' like this

    for (var i = 0; i < = peopleTotal; i ++) {}
    var newMC:MovieClip = placeHolder.attachMovie ("peopleMovie", "peopleMovie_" + I, i);
    newMC._x = 100;
    newMC._y = is;
    newMC.peoplename.text = peopleObject.name + i;
    trace (peopleObject.name + i + "name + I")
    newMC.peopleimg = peopleObject.image + i;
    ago += newMC._height;
    }

    So no idea how can I access the data, it's in a variable incremented in a separate for the statement? Let me know if I'm not explaining enough good.

    Thank you

    Randy

    Use array notation:

    peopleObject ['name' + i] = everything which

    ["phone" + i] peopleObject = whateverelse;

    etc.

  • presence of xmlns prevents the e4x XML data access

    I was pulling my hair out trying simply to access data in a tag of an XML object. When I remove the attribute xmlns, it works, otherwise it doesn't. In the following code when I remove 'xmlns = http://xyz' list the data. What I need to add to keep this xmlns in the XML file and always fill the list box?
    Thanks, JH

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "vertical" horizontalAlign = "center" >
    < mx:Script >
    <! [CDATA]
    public var ydata:XML =
    "< theResponse xmlns =" http://xyz "> "
    < theReturn >
    < > 1234 myId < / myId >
    < > 2345 myId < / myId >
    < > 5678 myOther < / myOther >
    <-c >
    < / theResponse >;
    []] >
    < / mx:Script >
    < mx:VBox width = "100%" height = "100%" horizontalAlign = "center" >
    < mx:List width = "50%" dataProvider = "{ydata... myId}" height="20%"/ >
    < / mx:VBox >
    < / mx:Application >

    Adding the following code resolves the problem:
    namespace private myNS = "" http://xyz "; "
    Use the myNS namespace.

  • selection column of the table xml data type

    Hello.
    I tried the following example with xml as column name data type
    create table emp_detail( empno number,ename varchar2(32),empdetails sys.xmltype)
    
    Insert into EMP_DETAIL
       (EMPNO, ENAME, EMPDETAILS)
     Values
       (1, 'satya', XMLTYPE('<NAME>
      <FIRSTNAME>SATYA</FIRSTNAME>
      <LASTNAME>SREE</LASTNAME>
      <LOC>SECBAD</LOC>
    </NAME>
    '));
    Insert into EMP_DETAIL
       (EMPNO, ENAME, EMPDETAILS)
     Values
       (2, 'jo', XMLTYPE('<NAME>
      <FIRSTNAME>JO</FIRSTNAME>
      <LASTNAME>REDDY</LASTNAME>
      <LOC>MYPR</LOC>
    </NAME>
    '));
    So, after that I tried this query to retrieve the State of an attribute data.
    SELECT a.empdetails.extract('//NAME/text()').getStringVal() AS "Table Name"
    FROM   emp_detail a
    WHERE  a.empdetails.existsNode('/NAME')  = 1;
    But those who above indicates no record...
    Why?


    Thank you
    SQL>  SELECT a.empdetails.extract('//NAME/FIRSTNAME/text()').getStringVal() AS "first_name",
      2     a.empdetails.extract('//NAME/LASTNAME/text()').getStringVal() AS "last_name",
      3     a.empdetails.extract('//NAME/LOC/text()').getStringVal() AS "loc"
      4     FROM emp_detail a
      5    WHERE a.empdetails.existsNode('/NAME')  = 1;
    
    first_name           last_name            loc
    -------------------- -------------------- --------------------
    SATYA                SREE                 SECBAD
    JO                   REDDY                MYPR
    
  • How to change IP address of Agent connection on the server running?

    I have problem with the change of IP address of the agent as opensource Hyperic 4.0.2
    I changed the IP address of the agent system and after a reboot it show up on the dashboard for autodiscovery with note new IP address. I can open in Autodiscovery and click on 'OK '. So far so good. Can I browse the resources and find this platform and I'm taking the inventory. Now, it is not so good - I can see old IP address in 'properties Type and network '. I can add the new set IP address, mask of MAC manually and remove them manually the old IP address and it seems better. But the big problem is "Agent connection" field - it's still shows old IP agent. I run the query to change the IP address in the EAM_AGENT table for the corresponding id. It still shows the same old IP address in 'Agent connection' and it's drop-down list where I can't find the wiring is correct!
    Now, it's a way of communication - it seems that I get the measures defined previously, but I can't define new service to monitor. A quick test is to run live Exec 'df' command -, error message indicates that the server is trying to connect to the old IP address of the agent.
    I searched through all tables in database and it is not there. My guess is "cache". Is it possible to invalidate cache entries? Or hide it all?
    I restarted the Hyperic server, which is already bad in itself - why I have to restart the server if the broker IP address? This solved the problem with value of agent connection - now it shows the right IP address (it looked really as if it were in the cache), but it did not help too much. Now when I do ' live Exec - df "I get"unauthorized"error message. I have not deleted the directory of 'data' still on the side of the agent, but it seems a little too much work when the stockbroker IP address:
    -Restart agent
    -recognize the IP address change in the dashboard on HQ Server
    -to run the query to edit the EAM_AGENT table
    -(via user interface or through SQL query) remove old IP address manually and add a new IP address in the network platform properties
    -restart the server
    -delete data on the agent, and then restart the agent.

    Is there a better way to deal with it? I'm mainly looking for a workaround to restart the HQ server to change 'Agent connection. And blowing all directory data is not a good approach either - I have spent some time to add and configure the log files and services to monitor. If I understand correctly, it must be configured again.

    Hello

    normally execution of installation interactive on the Agent (HQ - agent.sh of installation) and recognizing changes in Autodiscover should suffice.

    Mirko

  • Select this OPTION to generate XML data from the table using XMLELEMENT, XMLAGG gives error ORA-19011 string buffer too small

    My select statement fails with the error:


    The ORA-19011 string buffer too small


    The select statement looks like:


    SELECT TO_CLOB)

    XMLELEMENT ("accounts",

    XMLELEMENT ("count",

    XMLATTRIBUTES)

    rownum AS "recordId."

    To_date('20130520','YYYYMMDD') AS "datestarted."

    123456 AS "previousBatchId."

    56789 AS 'previousRecordId '.

    ),

    ....

    .... .

    .....

    XMLFOREST)

    SIG_ROLE AS "SignatoryRole."

    To_char(TRANSFER_DATE,'YYYY-mm-DD') AS "TransferDate."

    NVL(Reason,0) AS 'reason '.

    ) AS the 'transfer '.

    )

    ()) AS CRDTRPT

    OF ANY_TABLE;

    • It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)

    I'd use the XMLGEN package. But the environment team says no mounted drives in the future with the arrival of the EXADATA.

    NO HARD DRIVE MOUNTED, NO ACCESS TO THE DATABASE DIRECTORIES

    No UTL_FILE

    I need to use the REEL spool the resulting XML data of the SELECT query.

    SQL is a standard in my org, but I can do with a PL/SQL solution also to load data into a table (cannot use a COIL with PL/SQL)

    What I do is:

    1. a column of type CLOB to a xml_report of the loading of the above SELECT query table
    2. Then using SELECT * FROM xml_report to SPOOL the data to a file report.xml

    No need of XMLTYPE data behind. Xml data stream is fine for me.

    In addition, I need to validate the XML file, also using XSD.

    Problem is that the resulting lines of the select query are supposed to be from 15000 to 20000 bytes long.

    Oracle database version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    A Suggestion or a solution to this problem would be appreciated.

    (Sorry for the use of "BOLD", just to make it more readable and highlight the imp points)

    Bravo!

    Rahul

    It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)

    You use the right method.

    There is an implicit conversion from XMLType to the data type VARCHAR2 as expected by the function TO_CLOB, where the limitation, and the error.

    To serialize XMLType to CLOB, use the XMLSerialize function:

    SELECT XMLSerialize (DOCUMENT

    XMLELEMENT ("accounts",

    ...

    )

    )

    OF ANY_TABLE;

    For the rest of the requirement, I wish you good luck trying to spool the XML correctly.

    You may need to play around with the SET LONG and SET LONGCHUNKSIZE commands to operate.

  • using PersistentStore or sqlite to cache feeds the server

    Hello world?

    I'm get the stream from my server at intervals lets say 5 minutes and I want to be able to cache that feeds from the server (electronic data interchange is json), now I am confused it will be wiser to use sqlite to store these data or I use the persistentstore, my confusion is the persistent vector size against the size of the sqlite database and also performance and efficiency in operations reaad and writing Thank you.

    Download 5 MB every 5 minutes seems to be wrong.  But maybe I'm old fashioned.

    If you treat it just like a sequential file, you could just stick it on the SD card yourself, it will be faster, but much less flexible than SQLite.  .

    For a file of this size, I would not put it in the persistent store if it was for all those consumers who might have small curve devices.  But if you target it to the high end of recent phones, then 5 MB is not a concern, and it would be much easier.

  • How to read the value of the attribute XML using DBMS_XMLSTORE

    the following xml data

    + < ROWSET > +.
    + < ROW > +.
    + < > 2290 EMPNO < / EMPNO > +.
    + < SAL > 2000 < / SAL > +.
    + 31 December 1992 of < HIREDATE > < / HIREDATE > +.
    + < TYPE > +.
    + < ENO > 123456 < / ENO > +.
    + attr_name < ENAME > < / ENAME > +.
    + < / TYPE > +.
    + < / ROW > +.
    + < / LINES > +.

    The above XML data stored underneath table of the object using DBMS_XMLSTORE

    CREATE or REPLACE TYPE typ_dummy AS OBJECT
    (
    ENO NUMBER,
    Ename VARCHAR2 (100)
    );

    CREATE TABLE EMP
    (
    EmpNo VARCHAR2 (25).
    SAL NUMBER,
    HireDate DATE,
    Typ typ_dummy
    );


    DECLARE
    insCtx DBMS_XMLStore.ctxType;
    lines NUMBER;
    xmlDoc CLOB: =.
    ' < ROWSET >
    < LINE number = "1" >
    < SAL > 1800 < / SAL >
    < > 7369 EMPNO < / EMPNO >
    < HIREDATE > 27 August 1996 < / HIREDATE >
    < / ROW >
    < ROW >
    < > 2290 EMPNO < / EMPNO >
    < SAL > 2000 < / SAL >
    < HIREDATE > 31 December 1992 < / HIREDATE >
    < TYPE ENO = ENAME "123456" = "attr_name" / >
    < TYPE >
    < ENO > 123456 < / ENO >
    attr_name < ENAME > < / ENAME >
    < / TYPE >
    < / ROW >
    < / LINES > ';
    BEGIN
    insCtx: = DBMS_XMLStore.newContext ('emp'); -be saved context
    lines: = DBMS_XMLStore.insertXML (insCtx, xmlDoc);
    DBMS_XMLStore.closeContext (insCtx);
    END;



    but I don't know if the XML contains the attribute values for particular node means how to insert in the table (assuming the creation of the structure of the table)


    + < ROWSET > +.
    + < ROW > +.
    + < > 2290 EMPNO < / EMPNO > +.
    + < SAL > 2000 < / SAL > +.
    + 31 December 1992 of < HIREDATE > < / HIREDATE > +.
    * + < TYP ENO = ENAME "123456" = "attr_name" / > + *.
    + < / TYPE > +.
    + < / ROW > +.
    + < / LINES > +.

    You can declare the type of object like this:

    CREATE OR REPLACE TYPE typ_dummy AS OBJECT (
      "@ENO"   NUMBER
    , "@ENAME" VARCHAR2(100)
    );
    /
    

    Oracle will know that XML attributes must be mapped to attributes of the object.

    But personally, I would not use DBMS_XMLSTORE:

    INSERT INTO emp (empno, sal, hiredate, typ, eno, ename)
    SELECT empno, sal, hiredate, eno, ename
    FROM XMLTable('/ROWSET/ROW'
           passing xmltype(xmlDoc)
           columns empno    varchar2(25)  path 'EMPNO'
                 , sal      number        path 'SAL'
                 , hiredate date          path 'HIREDATE'
                 , eno      number        path 'TYP/@ENO'
                 , ename    varchar2(100) path 'TYP/@ENAME'
         )
    ;
    
  • Users of readers to save the xml data file

    Hello
    We can e-mail through the form xml data file without its extension drive. It is very good. Instead of emailing, I want just to save the xml data file in my local system.
    What is the syntax to get it? To send email, I usually create a "submit" button and the area of the submittoURL write us mailto:[email protected].
    What to write to save it on the local computer instead of emailing? I tried saveto: C:\NewFolder or fileto:C:\NewFolder. Nothing works. I think I'm missing the good syntax here.
    I know its possible by RE the pdf, you can get using savedataXML(). I want to achieve this goal without the form.
    Thanks in advance,

    Chaitanya

    The best you can do is set up a submitForm action and uses a type mailto URL. This will prompt the user to attach to an e-mail message using their email client or save it to a file.

Maybe you are looking for

  • Open the Control Panel folder

    I thought it would be simple! but I can't seem to find a way to do it. I am tring to open a folder in My Documents by using a Boolean control on the front panel. Any ideas would be great.

  • Firefox is more compatible w/TPT?

    That's happened? The stable Firefox continues to work for me, but it is now listed as "not compatible with your device" on the market. Œuvres and Firefox s beta updated, so it isn't a big problem for me, but I'm curious...

  • HP envy ultrabook 6-1070el problem with audio and HDD

    Hello I have a problem with my wanting to ultrabook 6-1070el running windows 8; I noticed that when food is attached, and the hard drive is written, speakers make a strange noise when I listen to something. This happens when the power is off, probabl

  • Cancel initialization AX4 - 5i

    Hello I would change the management IP address for both SPS of an AX4 - 5i. When I run the Initialization utility once again, he tells me that SPs should initially be uninitialized. I was unable to find information on the procedure in the documentati

  • "Group Policy" block several functions and there is no way to fix it

    When I try to change some features/functions on my Win7 system, the operating system blocks attempts, telling me that "group policy" prevents me from doing what I want and to consult my "system administrator".  Because my house is not a system admini