Accessing XML View through DBUri

I am having problem in accessing XML View through HttpURI.
Also i need some advise in following such architecture between my app server and DB server.
The problem i am facing is that
1. The query passed through URI does a full table scan, hence poor performance.
2. Not able to query on date/timestamp.
Any help would be appreciated.
Thanks

Here is how my output would be..
<log systemID="00XXXABC01" MLN="9999" USN="00XXXPET01" timeStamp="Sun Jun 1 22:00:11 2003" timeZone="BST - Europe/London">
<message type="XXXHealthPage" time="Sun Jun 1 22:00:11 2003" source="XXX">
<text>This is manxx1 machine's HealthPage report</text>
<detail>
<generic_report title="XXX System Health Report">
     <emailaddr>[email protected]</emailaddr>
     <heading title="System Identification">
     <linevalue name="Report_date">Sun Jun 1 22:00:11 2003</linevalue>
     <linevalue name="Last_update_time">May 02 2003 22:00:14</linevalue>
     </heading>
</generic_report>
</detail>
</message>
</log>
I have underlined the variables that i have to query on.. basically i have to select messages between certain times for a particular system.
am trying a query..
1. http://localhost:8080/oradb/MACLOG/TEST_MACHINE_XML1/ROW/log[@systemid="415444KCT"]
This doesnt work for some reason.. i had to make systemid as a separate element.(@attribute doesnt work)2. i dono how to query for message[@time between to_char(...)]
Any Help..

Similar Messages

  • Accessing XML files through java

    Can any one explain me the easiest way of accessing XML files from Java.

    Hi,
    If you want to only access the XML file, use the SAX parser It will be very easy to handle and identify the element and value.
    else if u want to change the XML value also, then better go with DOM, Which has very good flexiblity.
    use according to the need, let me know if any help is required......
    With Cheers
    PrasannA

  • Using Views to access XML Content

    I was wondering if anyone can help me in these questions.
    I created a view to access XML Content in the database for reports. My first question is I have 18 properties in the xml document but when I created the view I only retrieve one property information. What dO I need to change in my XPath query to get all the properties see script below
    CREATE OR REPLACE VIEW AHA_PMCO_BUILDINGS_VIEW
    (BUILDINGID,NUMBEROFFLOORS, CONSTRUCTIONDATE,NAME, BUILDINGTYPE, DEMODISPODATE,MODSTARTDATE,MODENDDATE, ISANNEX) as
    select extractValue(value(p),'/Building/@Id'),
         extractValue(value(p),'/Building/@NumberOfFloors'),
         extractValue(value(p),'/Building/@ConstructionDate'),
         extractValue(value(p),'/Building/@Name'),
         extractValue(value(p),'/Building/@BuildingType'),
         extractValue(value(p),'/Building/@DemolitionDispositionDate'),
         extractValue(value(p),'/Building/@ModernizationStartDate'),
         extractValue(value(p),'/Building/@ModernizationEndDate'),
         extractValue(value(p),'/Building/@IsAnnex')
    from "Pmco438_TAB" X, TABLE(xmlsequence (extract(value(X), '/Pmco/Properties[1]/Property[1]/Buildings/Building')) ) p;
    How do I change my script to retrieve multiple properties instead of just one property
    Thanks
    Dibor

    Hi Paul
    I have access to all the documents (JavaScript via Mozilla, Adobe JavaScript API, XFA API etc etc) but none are specific enough to cater for this issue.  I will work this out before too long but it would be very useful if someone who had done this already could shortcut my journey!
    Thanks
    Roxy

  • Access Views through Public Synonyms

    Hi Friends,
    I have query need to clear. My current application is running on a schema *(s1)* associated with workspace *(w1)*. Now i have made one more schema *(s2)* in the same workspace *(w1)* where i have to create new tables.
    The thing is i want to use few tables column of s1 on s2. What will be the best practice for this. I have made views of columns of s1 schema and now i am thinking to create public synonym in s2 schema to access those views of s1 schema. Just want to confirm any changes or updates made on forms or report made on synonym of s2 will reflect in the base table (which is table of s1). Want to clear the concept of synonym through this. I am sure it will not update the table of s1 schema because i have made synonym of that in my s2 schema and for all page creation i am using objects of s2 not objects of s1.
    Would like to hear from you experts on this. If you have some other better soln for this, do suggest me. All my intension is to not update the tables of s1, just to use the required columns of s1 schema objects and use it in s2 schema
    Regards
    Edited by: User_Apex on Jul 7, 2010 2:21 AM
    Edited by: User_Apex on Jul 7, 2010 2:28 AM

    Hi,
    A synonym just helps you to avoid using the schema name before the object name. If you want to use some columns from tables in s1 just do the following:
    1. Create the views
    2. Create a role for that privilege (for example: select_s1_role), grant select to this role over the views and assign it to s2.
    3. Create the synonym in s2 to s1 views (just to avoid put s1. before the view name).
    For the steps above is required that s1 and s2 have the proper system privileges.
    Kind regards,

  • Accessing Oracle Applications View through Dblink

    Hi Gurus,
    Here is my problem:
    I have apex installed in my local machine and i have created dblink to my remote oracle applications DB. Now if i try accessing any views in the oracle apps db, iam not getting data since the org context is not set.
    I tried to set the org context using below:
    exec dbms_application_info.set_client_info@appsdblink('100');
    but still iam not receiving any data. I hope there should be some way to do it.
    Thanks,
    Sathish

    Wont work everytime. SQL Workshop uses the connections from a connection pool. So if the context setting statement and then your subsequent select from the view go to diff connections (sessions) , the view will return no data.
    Try this to verify that you can return data from the view.
    declare
    l_cnt pls_integer;
    begin
    dbms_application_info.set_client_info@appsdblink('100');
    select count(*)  into l_cnt from <your_view>;
    htp.p('Count=' || l_cnt);
    end;Varad

  • How to Access Maintenance View from a program

    Hi Experts,
    I have created a maintenance view for a table. i want to insert data's into the table through the maintenance view. I don't know how to access the view, how to insert data into the Maintenance view. Please suggest me how to access the view from the program.
    with regards,
    James...
    Valuable answers will be rewarded...

    Hi,
    What is the need to search for a program.
    Use transaction SM30 or SE16 to create or maintain entries in the table.
    e.g. if the Maintenance view is created on table A, then Goto transaction SM30 or SE16 and give the table name as A and proceed. This will automatically take u to the maintenance view on tha table A.
    Regards,
    Himanshu

  • Error Crystal report When viewed through SAP B1

    Dear Experts
    SAP B1 8.8 PL 16,SQL 2008
    I am facing error (Unable to retrive data from database)(Vendor code-156) while accessing Crystal report from client machine throgh SAP B1.I have imported Crystal report through manage layout.The crystal reported is in shared in SAP server B1 SHR folder.I am able to access data from crystal report when viewed otherwise.When accessed crsytal report through SAP b1 on SAP Server crystal report is working fine.
    Thanks & Regrds
    Saurabh Lamba

    Hi Saurabh Lamba,
    Go To Administration / System Initialisation / Authorisation / General Authorisation & Set Authorisation for user.
    If you have to Set Authorisation for user allready then follow this steps.
    1.Restore Database as Test Company.
    2.Export Report From Live Company.
    3.Import this Report in Test Company as different name.
    4.Export Report from Test Company have you Imported as deifferent name.
    5.Again Import this Report in Live company as different name
    I don't know what's the logic behind it.
    Thanks,
    Srujal Patel

  • A View Through Windows 8.1.1

    A View Through Windows 8.1.1
    There above opens fine for me; sorry, didn't expect anyone would have difficulty w/ it.
    Windows 8.1.1 or Windows 8.1 Update or KB2919355
    Call it what you like, a rose by any other name is, still, a rose. 
    And this has brought some pretty rosy stuff to Win 8.1.  8.1 delivered a plethora of cool things to the initial Windows 8.0 platform but, I am not here, right now, to discuss that gold mine but, rather its Update, Win8.1.1. This small yet,
    packed Update comes or will as an Auto Update via WU.  It installs quickly and easily. 
    Basically, its only requirement is having Windows 8.1 in place… an 8.0 device must be Upgraded to Windows 8.1 and then on to this Update.
    Now, even though 8.1 responded to User feedback and requests, 8.1.1 has tried to take that endeavor, even, further. 
    Much of that is in regard to making the OS more intuitive, more familiar and more mouse friendly, catering to non-Touch environments and to have some things more overt. 
    A good portion of the Update impact on both Consumers and Businesses whilst some are value items specifically for enterprise. 
    Firstly, let’s address the ‘common ground’ and then look at the assets to or for businesses. 
    I will not delve into extreme details for this discussion but, will provide links which, will give you the full story. 
    However, the links go to the usual, sterile, propaganda and although, certainly, informative & enlightening, not the personal perspective that I would like to share, at this time.
    I write in several tech forums, ergo, I have seen what people like, dislike or want. 
    8.1 does, indeed, indulge what people have been expressing. 
    It, also, I feel, helps make people enjoy using Store APPs more and helps draw then into the world of APPs. 
    A major part of the Update is in regard to APP handling and usage. 
    To me it’s mostly about APPs but, there are some other items so let’s tackle them, first. 
    May seem like little things but, sometimes doesn’t take much to make people happy. 
    And this does destroy the suggestion that MS doesn’t listen to End Users or care what they think or say. 
    On Start there, now, are Power & Search icons.  There are Rt Clk menus attached to the Start Tiles. 
    There’s a Search box on the ALL Applications screen.  Back to the Store APPS enhancements because I suggest, this is the, really, cool bit.
     Some people have struggled over using the Switcher Bar, opening APPs, closing APPs and positioning and maneuvering or manipulating them. 
    Well, this is where things get exciting… NOW, the Store APPs can sit on the Task Bar
    and they can be pinned.  NOW, they can be closed or minimised with a bar at the top of them. 
    NOW, as many as four can be enjoy with greater flexibility than ever before. 
    All of this making the OS easier and more similar to what people are accustom to having and doing. 
    And having APP icons permanently available on the task Bar is great since, any that are used consistently to get shut down by the OS on the Switcher Bar after a period of time. Nor does one have to pop out the Switcher Bar to access an APP. 
    Lastly, to carry the familiar Desktop experience across ALL screens, the Task Bar shows on every screen, even if it is a Store APP, Start or ALL Applications.
    There are, also, a number of things that are not quite so obvious or superficial, some under-the-covers stuff, plus things relative to business/enterprise issues. 
    One thing having positive impact right across the board is support for low cost hardware.
    With Windows 8.1 Update there is a continuance to fine-tune Windows performance to deliver a great user experience on the broad range of Windows devices. Specifically, with memory and disk space optimization in Windows 8.1 Update we now
    enable Windows to run on even lower cost hardware with as low as 1GB of RAM and a 16GB hard drive.
    So you ca see it is possible to convey the message that using the OS can, now, thanks to this Update be, even more enjoyable and appealing than it, already, was. 
    Things easier to find or see and done in established, already known ways, methods and comfort zones. 
    End Users will like what Win8.1.1 brings and offers them… so spread the word.
    Now, for some important ‘bullets’ provided by the Update that IT Pros should know about and be able to enthusiastically impart, particularly, to thrilled Enterprise Users on top of the aspects, already, mentioned that are for everyone.
    >> Improvements to take advantage of new hardware innovation and support the latest devices, such as devices based on 64 bit Baytrail™ processors.
    >> Extended Mobile Device Management (MDM)
    >> Easier app deployment and management is app side loading
    And, also, exciting
    licensing changes come with Windows 8.1 Update.
    The big caveat here, the meaningful take-away for y’all, in my view, is there are many desirable facets contained in the Windows 8.1.1 Update. 
    It is a strength to know this content so it can be transmitted to End Users both, Consumer and Enterprise customers and clients. 
    There are things for which business folks will be grateful. 
    There are things that make the User Experience nicer for anyone and everyone.
    KB2919355 may be small but, in my view, it packs a big punch.
    Here are the links I promised for your further reading and information.
    What’s New in the Update?
    Installing the Update
    Bonuses for Enterprise
    Drew
    Pres. Computer Issues
    MS Partner
    MS Beta-Tester
    MS Partner Company
    IT Forums Contributor
    Drew MS Partner / MS Beta Tester / Pres. Computer Issues Pres. Computer Issues www.drewsci.com

    The view from here, Drew:
    Reading around the edges of the error message, are you seriously trying to find things of merit in the spring update?  They seem pretty few and far between to me.  800 MB (er, 200, er, who knows) for what?  a few dozen bugfixes? 
    If you know of something of substance in the update, please share, because I'm not finding much.
    Why has there been so much hype about this version?  It was "leaked", then it has been getting press like what you're trying to show here.  Isn't the hype actually supposed to come with some substance as well?  Where is
    that substance?
    -Noel
    Detailed how-to in my eBooks:  
    Configure The Windows 7 "To Work" Options
    Configure The Windows 8 "To Work" Options
    What’s new in Windows 8.1 Update
    http://windows.microsoft.com/en-us/windows-8/whats-new

  • Accessing DB2 data through DBLINK in Java program recieves ORA-02063 error

    Hello,
    Is it posible to access a mainframe DB2 table through a Java JDBC connection utilizing a DBLink / Synonym. Using Toad or SQLDeveloper, I can select the DB2 data just fine. Also, PL/SQL programs can access the data without issues. When I try to select data from the DB2 Table in a Java program, I get ORA-01002: fetch out of sequence -- ORA-02063 preceding line from DB2D errors.
    The code I am using to test is:
    (Note: TBL_LOC_ADR is the Synonym that points to the Mainfram DB2 table)
    public static void main(String[] args) {
              Connection con = null;
              Statement stmt = null;
              String query = "SELECT * FROM tbl_loc_adr";
              ResultSet rs;
              try {
                   System.out.println("Getting connection");
                   con = BatchDBConnection.getDBConnection();
                   TestConnection tc = new TestConnection();
                   System.out.println("Creating ps");
                   stmt = con.createStatement();
                   System.out.println("Calling qds");
                   rs = stmt.executeQuery(query);
                   System.out.println(" Returned data " );
              } catch (Exception e) {
                   System.out.println("Error " + e.getMessage());
                   e.printStackTrace();
    The error occurs on the rs = stmt.executeQuery(query); line.
    Thanks for any input into this error. It's been driving me nuts all day.
    Chris

    Chris,
    What's your oracle version? You might be hitting a bug as identified in this metalkink doc id, see if this helps out. Resolution posted in the metalink by applying patches or confirm that you have applied all the required patches.
    Doc ID: 456815.1 ORA-01002 ORA-2063 When Profiling DB2/400 Table Accessed by View via Transparent Gateway for DRDA
    Regards

  • Data Modeling for controls using XML views(SAPUI5)

    Hello ,
    I am trying to create Table control using XML view and binding data to it through controller onInit method.
    XML View Code is as follows :
    <core:View xmlns="sap.m" xmlns:l="sap.ui.layout" xmlns:core="sap.ui.core">
        <l:VerticalLayout width="100%">
            <l:content>
                <Text id="description" class="marginAll" />
                <Table id="idProductsTable" items="{       
                    path:'/businessData'
                }">
                    <headerToolbar>
                        <Toolbar>
                            <Label text="Products"></Label>
                        </Toolbar>
                    </headerToolbar>
                    <columns>
                        <Column>
                            <Label text="Product" />
                        </Column>
                        <Column>
                            <Label text="Supplier" />
                        </Column>
                        <Column>
                            <Label text="Dimensions" />
                        </Column>
                    </columns>
                    <items>
                        <ColumnListItem>
                            <cells>
                                <ObjectIdentifier title="{COUNTRY}" text="{COUNTRY}" />
                            </cells>
                            <Text text="{REGION}"></Text>
                            <Text text="{CITY}"></Text>
                        </ColumnListItem>
                    </items>
                </Table>
            </l:content>
        </l:VerticalLayout>
    </core:View>
    Controller onInit method Code is as follows :
    var oData = {
                businessData : [ {
                    'COUNTRY' : "Canada",
                    'CITY' : "Toronto",
                    'REGION' : "US",
                    'LANGUAGE' : "English"
                    'COUNTRY' : "China",
                    'CITY' : "Bejeing",
                    'REGION' : "Ashia",
                    'LANGUAGE' : "Chinese"
            var demoJSONModel = new sap.ui.model.json.JSONModel();
            demoJSONModel.setData(oData);
            sap.ui.getCore().getElementById("idProductsTable").setModel(
                    demoJSONModel);
    Same thing when i tried with JS views , it worked however through XML view , I am getting empty table.
    Is the data modeling correct for XML views?
    Thanks,
    Mahesh.

    I've got it ! The reason for that is you bind items as below,
         <Table id="idProductsTable" items="{    
                    path:'/businessData'
                }">
    This pattern is followed if you wanna add a formatter/sorter/grouping.
    As you don't do any of those you can bind items as below &  it doesn't require  data-sap-ui-xx-bindingSyntax="complex".
    <Table id="idProductsTable" items="{/businessData}">

  • Accessing OC4J application through OHS

    We developed a standalone web app on OC4J. Now we would like to deploy this application to a standalone OC4J running on the same machine as 9iAS. We would like to access our application through 9iAS OHS, possibly with as few changes to our application as possible.
    So instead of http://oc4jhost:8888/appname/whatever.jsp
    we want http://standardhost/appname should then redirect/rewrite to port 8888 and so on.
    Is there a document that describes which configuration files need to be manipulated and how?
    We assume mod_oc4j, httpd.conf, orion*.xml, and possibly others have to be edited.
    We do not want to run our application INSIDE of 9iAS, because it uses its own frameset and because we want a more up-to-date Java for this application.

    Note that
    The business client does not need a portal (it can but does not have to)
    but NWBC can connect as well (by using the sapgui in the background-
    hence sapgui needs then to be installed as well on the same client as
    the NWBC) directly against the backend.
    http://help.sap.com/saphelp_nw70ehp2ru/helpdata/en/31/8dd113b8ba4832aeaa
    fb4b756e1eed/frameset.htm
    http://help.sap.com/saphelp_nw70ehp2ru/helpdata/en/31/8dd113b8ba4832aeaafb4b756e1eed/frameset.htm
    As of SAP enhancement package 5 for SAP ERP 6.0 you can choose from the
    following deployment options for ESS:
    Deployment Option 1: WD ABAP-Based ESS on NWBC
    Deployment Option 2: WD ABAP-Based ESS on SAP NetWeaver Portal
    Deployment Option 3: WD Java-Based ESS on SAP NetWeaver Portal
    Activate the switch HCM_ESS_WDA_1 to use WD ABAP services
    ESS Refer Note 1450179
    EhP 5 ESS: The architect's view

  • Accessing OC4J application through OHS, how?

    We developed a standalone web app on OC4J. Now we would like to deploy this application to a standalone OC4J running on the same machine as 9iAS. We would like to access our application through 9iAS OHS, possibly with as few changes to our application as possible.
    So instead of http://oc4jhost:8888/appname/whatever.jsp
    we want http://standardhost/appname should then redirect/rewrite to port 8888 and so on.
    Is there a document that describes which configuration files need to be manipulated and how?
    We assume mod_oc4j, httpd.conf, orion*.xml, and possibly others have to be edited.
    We do not want to run our application INSIDE of 9iAS, because it uses its own frameset and because we want a more up-to-date Java for this application.

    Note that
    The business client does not need a portal (it can but does not have to)
    but NWBC can connect as well (by using the sapgui in the background-
    hence sapgui needs then to be installed as well on the same client as
    the NWBC) directly against the backend.
    http://help.sap.com/saphelp_nw70ehp2ru/helpdata/en/31/8dd113b8ba4832aeaa
    fb4b756e1eed/frameset.htm
    http://help.sap.com/saphelp_nw70ehp2ru/helpdata/en/31/8dd113b8ba4832aeaafb4b756e1eed/frameset.htm
    As of SAP enhancement package 5 for SAP ERP 6.0 you can choose from the
    following deployment options for ESS:
    Deployment Option 1: WD ABAP-Based ESS on NWBC
    Deployment Option 2: WD ABAP-Based ESS on SAP NetWeaver Portal
    Deployment Option 3: WD Java-Based ESS on SAP NetWeaver Portal
    Activate the switch HCM_ESS_WDA_1 to use WD ABAP services
    ESS Refer Note 1450179
    EhP 5 ESS: The architect's view

  • Archive docuemnt is not viewing through  VF07 tcode

    Hi Experts,
    There was one issue regarding archive documents, if any body have the idea  plz let me pass your views.
    My user is running the transaction  VF07  to view the Archived documents , but getting the error with " no billing document doesn't exist".
    Since the billing documrnt is archived docuemnt, and it should be show there.
    Can u give me ur ideas on this why the billing document is not viewing through VF07 TCODE.
    Regards
    venkat

    Hi Venkat,
    Transaction VF07 is replaced by the functionalities
    of SAP AS (transaction SARI). Transaction VF07 is therefore no longer
    supported.
    In order to view an archived Invoice using VF07 or via menu path
    Billing Document    > Display From Archive, you must enable the
    index V_ARC_OBJ-USE_INDEX as follows...
    Transaction AOBJ, Object SD_VBRK, Click 'Make Index'  flag to ON.
    Ensure 'Create indx prg' field is blank(no program listed).
    Please refer to note 440033 for detailed information.
    However, the logic behind VF07 was only an 'experiment' to realize
    single document access. Due to the development of the Archive
    Information system (SAP AS), VF07 is not further developed. This is
    because the SAP AS should be the tool to be used to look at
    archived documents. Therefore, not all functionality is given in
    VF07.  Please use the SAP AS (transaction SARI) instead of VF07.
    You can import the SAP AS documentation with note 99388.  Please
    also see note 140652 which includes templates for business views
    for SAP AS.
    I hope this is helpful.
    Regards,
    Alex

  • Question: about accessing Nik collection through Lightroom

    I have recently purchased and installed Nik collection. I have no problem reaching the plug-ins in Photoshopbut can't in Lightroom (except for HDR)

    Thanks!  Technology senses my fear and always makes it difficult for me! Ha! I can use the Nik programs so if I have to, I'll work on them there.
    Date: Sat, 13 Apr 2013 16:27:45 -0700
    From: [email protected]
    To: [email protected]
    Subject: question: about accessing Nik collection through Lightroom
        Re: question: about accessing Nik collection through Lightroom
        created by trihelm2 in Photoshop Lightroom - View the full discussion
    I suspect there are potential issues on some systems with the Google "combined" version, when I installed it I had recieved a copy of the Google complete version free because of my purchase history. I was advised that I could install over the Individual Plugins I had. I never got as far as trying it with Lightroom, only in Elements. The plugins appeared but the load times were abysmal and I mean realy bad , far longer than the Nik individual Installs, so I dumped it and reverted to the originals. Pity cos I wanted the Sharpen Plugin that I have'nt got. After reverting all was back to normal The Nik individual Plugins load very quickly. It was this that convinced me there is a difference in the Google setup.There are people on here with far more knowledge than me, hopefully one of them can help you, alternatively you might try asking Google for help with this.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5232723#5232723
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5232723#5232723
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5232723#5232723. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Lightroom by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Query listitems by view through REST api

    I've created a custom view, and I want to access the list items based on this view through REST api.
    I've tried .../_api/web/lists(listguid)/view(viewguid)/items, but it seems not working.
    Is it possible, any ideas?
    Thanks,
    Laszlo

    Hi,
    Unfortunately, it is not possible to grab a list view via REST.  You can get the syntax for what you can grab for a list with REST by typing something like this into your browser and viewing the page source:
    https://domain/sites/sitename/_api/web/lists(guid'4065067c-e4b8-46d5-a433-76b27f508d1d')
    Simply view the source of this page once you have logged into your SharePoint site.  You will see all the possible href values you can use based on your list guid (obviously you'll have to change the values above to match your data). 
    What you can do with REST is to use certain parameters to filter your list (similar to how OOTB list views do).  Check out these pages with some examples of what I mean:
    http://msdn.microsoft.com/en-us/magazine/dn198245.aspx  (Scroll down to Advanced Operations where they talk about $select, $filter, etc.).
    http://msdn.microsoft.com/en-us/library/jj164022.aspx
    Hope this helps,
    ~ Katie

Maybe you are looking for