Info about Time, GIS and other usable XML(DB) Services

Based on Re: how to retrive World Server time in Sql here some thoughts about "TimeService the XMLDB Way".
This post for all who are in need of such a solution. If I have time I will also post the proper XMLTABLE alternative.
Probably there are better ways - Does anyone know better / useful web services? (that can be used with or called from XMLDB).
Cool XMLDB examples that can be used by others are appreciated.
...while thinking about it I would do it for instance via HTTPURITYPE (also based on UTL_HTP btw).
In "steps" (based on XMLDB functionality and http://www.nanonull.com/TimeService/TimeService.asmx)
SQL> set long 1000000
SQL> set pages 50000
SQL> select httpuritype('http://www.nanonull.com/TimeService/TimeService.asmx/getTimeZoneTime?timezone=CET').getClob()
  2  from dual;
HTTPURITYPE('HTTP://WWW.NANONULL.COM/TIMESERVICE/TIMESERVICE.ASMX/GETTIMEZONETIM
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://www.Nanonull.com/TimeService/">5:54 PM</string>
SQL> select extract(xmltype(httpuritype('http://www.nanonull.com/TimeService/TimeService.asmx/getTimeZoneTime?timezone=CET').getCLOB())
  2                      ,'/*','xmlns="http://www.Nanonull.com/TimeService/"')
  3  as "CET Time"
  4  from dual;
CET Time
<string xmlns="http://www.Nanonull.com/TimeService/">6:00 PM</string>
SQL> select extractvalue(xmltype(httpuritype('http://www.nanonull.com/TimeService/TimeService.asmx/getTimeZoneTime?timezone=CET').getCLOB())
  2                      ,'/string','xmlns="http://www.Nanonull.com/TimeService/"')
  3        as "CET TIME"
  4  from dual;
CET TIME
6:01 PM
SQL> create table M as
  2  select extractvalue(xmltype(httpuritype('http://www.nanonull.com/TimeService/TimeService.asmx/getTimeZoneTime?timezone=CET').getCLOB())
  3                      ,'/string','xmlns="http://www.Nanonull.com/TimeService/"')
  4        as "CETTIME"
  5  from dual;
Table created.
SQL> desc M
Name                                      Null?    Type
CETTIME                                            VARCHAR2(4000)The "Time" in London (one of the strings that worked... LOV for the city's would be useful...?)
SQL> select extractvalue(xmltype(httpuritype('http://www.nanonull.com/TimeService/TimeService.asmx/getCityTime?city=London').getCLOB())
  2                      ,'/string','xmlns="http://www.Nanonull.com/TimeService/"')
  3        as "The Time in London"
  4  from dual;
The Time in London
5:09 PM

XML Schema: http://www.hostip.info/api/hostip-1.0.0.xsd
SQL> SELECT *
  2  FROM v$version;
BANNER
Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE    11.1.0.6.0      Production
TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
5 rows selected.
SQL>
SQL> col Name          FOR a20
SQL> col CountryName   FOR a20
SQL> col CountryAbbrev FOR a20
SQL> col Coordinates   FOR a20
SQL>
SQL>
SQL> SELECT extractvalue(value(t),'/Hostip/gml:name'
  2                          , 'xmlns:gml="http://www.opengis.net/gml"
  3                             xmlns="http://www.hostip.info/api"')   AS "Name"
  4  ,      extractvalue(value(t),'/Hostip/countryName'
  5                          , 'xmlns:gml="http://www.opengis.net/gml"
  6                             xmlns="http://www.hostip.info/api"')   AS "CountryName"
  7  ,      extractvalue(value(t),'/Hostip/countryAbbrev'
  8                          , 'xmlns:gml="http://www.opengis.net/gml"
  9                             xmlns="http://www.hostip.info/api"')   AS "CountryAbbrev"
10  ,      extractvalue(value(t),'/Hostip/ipLocation/gml:PointProperty/gml:Point/gml:coordinates'
11                          , 'xmlns:gml="http://www.opengis.net/gml"
12                             xmlns="http://www.hostip.info/api"')   AS "Coordinates"
13  FROM TABLE (XMLSEQUENCE (EXTRACT (HTTPURITYPE ('http://api.hostip.info/?ip=141.146.8.66').getxml ()
14                           , '/HostipLookupResultSet/gml:featureMember/Hostip'
15                           , 'xmlns:gml="http://www.opengis.net/gml"
16                              xmlns="http://www.hostip.info/api"' ))) t
17  /
Name                 CountryName          CountryAbbrev        Coordinates
Redwood City, CA     UNITED STATES        US                   -122.206,37.5164
1 row selected.

Similar Messages

  • Max Number of Time Series and Other Columns?

    What are the ceilings on the number of Time Series and Other Columns that BOP can handle?
    I can not find this very basic info anywhere but I have a client that I think has hit it.

    @ cfr:
    I googled. But I opened this thread the July 25th and I'd forgot about that link and the fact that my problem could be Firefox fault. Silly me. -_-
    I'm trying to surf w/ Chromium right now (I don't like very much Opera and other browsers based on Webkit don't read much stuff on the web) to check if issue returns. If so I'll try to check log.
    Edit:
    I found that I don't even like Chromium as well. So I think I'll use W3m and Elinks for "normal browsing" and FireFox just when I need to write a mail with my damned Hotmail account.
    Edit (2012-10-08):
    the issue still presist, even without Firefox.
    Last edited by rix (2012-10-08 20:16:25)

  • Needed info about io devices and cpu without using prtdiag

    Hi
    I need to collect info about io devices and cpu. but i cannot use prtdiag.
    is there any way to collect this information on solaris machine....
    may any available c APIs
    Thanks in advance.
    Nagesh

    yep.... prtconf -vp | grep <wot u r looking 4>

  • HT4623 I cannot install my ipod to my computer. Says something about the device driver. I did not get it new either and so have no info about it. And I have never used one before and have no friends who have either. Can someone help me?

    I cannot install my ipod to my computer. Says something about the device driver. I did not get it new either and so have no info about it. And I have never used one before and have no friends who have either. Can someone help me?

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

  • Old computer I had is OSX Snow Leopard with Entourage. New one is OSX Mavericks. Using Mail where are my addresses and old address book. Transferred old computer backup by Time Machine and other things work? Can't see a symbol for address book.

    Old computer I had is OSX Snow Leopard with Entourage. New one is OSX Mavericks. Using Mail where are my addresses and old address book. Transferred old computer backup by Time Machine and other things work? Can;t see a symbol for address book.

    Where are addresses kept on MAIL?  I don;t like the new format at all. Frances
    Begin forwarded message:
    From: Frances Topping <[email protected]>
    Subject: Re: - Old computer I had is OSX Snow Leopard with Entourage. New one is OSX Mavericks. Using Mail where are my addresses and old address book. Transferred old computer backup by Time Machine and other things work? Can't see a symbol for address book.
    Date: August 25, 2014 at 9:46:01 AM EDT
    To: discussions-replies <[email protected]>
    Old Entourage is POP and new Mavericks MAIL  is IMAP I believe. I don;t know how to export in the forms you mention. Frances

  • If i upgrade to mountain lion (from lion), will i need to reinstall my windows VM? and what about my apps and other stuff? will those need to be reinstalled too?

    if i upgrade to mountain lion (from lion), will i need to reinstall my windows VM? and what about my apps and other stuff? will those need to be reinstalled too?

    I started off with problems about being in the wrong region and now  have Plug- in Failure
    I am trying to access Setanta Sports Australia which requires
    Microsoft Silverlight and was already pre-installed on a Macbook Pro Retina 2.5 ghz Intel core i5 with Mountain Lion 2.8.3
    I have these different PlugIns active :
    file://localhost/Library/Internet%20Plug-Ins/DivXBrowserPlugin.plugin/
    file://localhost/Library/Internet%20Plug-Ins/Flash%20Player.plugin/
    file://localhost/Library/Internet%20Plug-Ins/JavaAppletPlugin.plugin/
    file://localhost/Library/Internet%20Plug-Ins/QuickTime%20Plugin.plugin/
    file://localhost/Library/Internet%20Plug-Ins/Silverlight.plugin/

  • Hi, i'm a new member of this community. I've recently learn about flashback malware and other threats to Mac devices. I've installed the new Mac OS X update for Lion 10.7, and the flashback removal tool. what about the update for Flash Player?

    Hi,
    i'm a new member of this community. I've recently learn about flashback malware and other threats to Mac devices. I've installed the new Mac OS X update for Lion 10.7, and the flashback removal tool. What about the update for Flash Player? Should i install it? Otherwise, should i permanently remove this app?
    I realy need some advice.
    Thank's to all.

    Be sure to install the latest version of Safari (version 5.1.7) which is available via Software Update (in the Apple menu) if you have not already installed it. This update will automatically disable older versions of Flash when new versions are available, and will instruct you on how to install the latest version on your system. This should help keep your system safe from any vulnerabilities in Flash.
    Note that this is only useful if you use Safari, though other browsers have their own update mechanisms you should research and enable or configure to your liking.

  • Using Time Machine and other uses on one drive

    I want to get the Iomega Prestige 500 GB USB 2.0 Desktop External Hard Drive 34270 to back up some files from a Tiger machine, and possibly from some Windows machines to, but I also want to be able to use it for Time Machine in the future.
    How do I format the drive for Time Machine? If I format it after I start putting files on, would the files be removed? If it's formatted for Time Machine, will it work with the Windows computers? If formatted for Time Machine, will I be able to use it for Time Machine AND regular file storage?

    Prepare the drive as follows:
    Extended Hard Drive Preparation
    1. Open Disk Utility in your Utilities folder. If you need to reformat your startup volume, then you must boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger or Leopard.)
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area. If it does not say "Verified" then the drive is failing or has failed and will need replacing. SMART info will not be reported on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Set the number of partitions from the drop down menu (use 1 partition unless you wish to make more.) Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID (only required for Intel Macs) then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    Now, you cannot use a Mac formatted drive with Windows unless you install Windows software that enables this such as MediaFour's Mac Drive.
    If you format the drive FAT32 instead of Mac OS X Extended then you can use the drive on both the Mac and Windows without anything additional, but the drive will not be usable with Time Machine unless it's formatted Mac OS X Extended.
    Now, you can partition the drive so that one partition is formatted for OS X and the other for Windows, but to do that you must partition the drive using GUID instead of APM. The former is not compatible with Tiger or non-Intel Macs.
    Note that to use Time Machine you must upgrade to Leopard. TM is an incremental archiving backup program so your backup drive will need to be at least twice the capacity of the drive you will backup.

  • HDD for Time Machine and other stuff

    Just a very short question.. Can I use my external harddrive for Time Machine and for example putting files on it to take it to my friend, or the otherway around, put files on it and take it back home?
    The reason I ask this is that I hooked up a USB HDD and it said I needed to clear all the data on the disk first before using Time Machine.

    As you probably already figured out.. I don't know anything about External HDDs. That's why I want you to ask which of those LaCies you would suggest for TM with 40GB of used data and it needs to be fast:
    1: http://www.lacie.com/products/product.htm?pid=11022 (320GB)
    2: http://www.lacie.com/products/product.htm?pid=11013 (320GB)
    3: http://www.lacie.com/products/product.htm?pid=10695
    4: http://www.lacie.com/nl/products/product.htm?pid=10811 (only a Dutch link, I'm sorry)
    Hope you're able to help because your help is fabulous so far!
    Message was edited by: FiveMenM

  • Info about oracle 7 and forms

    I need manual or info about forms. I use a forms with oracle 7
    over AIX.
    thank in advance
    gabriel

    Are you after any specific info releated to Forms and/or Oracle
    7?
    sandeep

  • How to change loacalization of time capsule and other wifi hardware

    I have several apple machines like, time capsule and airport extreme from different countries around the world. In a globalized world I move every 3-4 years to a new country/region. In the wifi setup of the time capsule and the airport extreme you'll only find 5 or six countries (china, Korea, Japan, chile...) but nothing about Morocco or any european country. So when you try to set "restricted access" between 1 to 5 p.m., your regional setting is China, but you live some where in Europe, there is a time difference of several hours you have to take into consideration. That is a bad joke.
    There is no way of choosing a different location or setting the time as far as I know inside the setup.
    Any ideas, before I sell all my Apple stuff and buy Samsung or Fujitsu?

    Hi, you must go to Airport Utility, and in menù Disk you can change the name.
    Sergio

  • Question about Time Capsule and Spotlight

    I have a simple question about using Time Capsule and Spotlight. Is everything that goes on to Time Capsule indexed into Spotlight? It would appear so but when I search for something (that is still on my hard drive and also backed up to Spotlight) only the local copy appears. Would it be that it finds the closest copy and if that were not there it would point to the Time Capsule copy? Thanks in advance for clarifying this for me.

    The automatic setup in the airport utility has changed something.
    Is the line down to the TC from the express dotted.. in other words is wireless??
    Funny stuff happens.
    Please post the screenshots of the 3 pages from the airport utility setup for both airport express and TC..
    Make sure wireless is set to off in the express.
    Both should be set to dhcp on the internet tab and both set to off bridge mode on the network tab.
    So for example the bridge on the network tab.
    The summary page can also be a help.
    There is a half summary page when you click the item in the airport utility.
    There is also a fully summary page, when you hold option key and double click the TC icon for example.

  • Can I have two Time Capsules in the same network, use one as Time Machine and other to expand network?

    I need to purchase a divice to expand my Wi-fi network. I was looking at the AirPort Extreme, but a friend has a brand new Time Capsule for sale. So, for the same price of the AirPort Extreme, I´m getting the Time Capsule.
    I already own one and using it as Time Machine and wireless router. If I decide to purchase another TC would it have any conflict with the one that I already have?
    Is it possible to use one as Time Machine and wireless router and the other to just expand network and storage only (not as Time Machine)?

    If I decide to purchase another TC would it have any conflict with the one that I already have?
    No
    Is it possible to use one as Time Machine and wireless router and the other to just expand network and storage only (not as Time Machine)?
    Yes. The important thing to remember is that the "extending" Time Capsule must be located where it can receive a strong wireless signal from your "main" Time Capsule.

  • About time capsule and external hard disk

    I have got rMBP.  I also have got time capsule.  External WD hard disk is connected to time capsule.
    I have got 3 users in my rMBP:
    (1) Admin : Administrator
    (2) User A : I normally do all my work from this user.
    (3) User B: I recently added this new user.
    Here, using Finder tabs, User A can see time capsule and External WD hard disk.  But, Admin and User B cannot. I also want User B to have the ability to see WD hard disk (and time capsule).  For User B and Admin, time capsule does show up, but it shows as not connected.  How can I provide User B the ability to see External WD hard disk (since User B needs to store large different files there)?  Any permission issue on hard disk?
    (Amazingly backup does take place automatically even if I am connected as User B or Admin).
    I will appreciate your feedback.  Thanks.

    Emma1609 wrote:
    Hi,
    hi emma, and welcome to discussions
    Once the external HD is turned on my Time Capsule is not longer recognized. I can't connect to Time Capsule and make any backups. It is also no longer appearing in the Airport settings.
    you could try a power cycle on your devices. turn off modem, TC, and HD for, say, 10 minutes. turn the modem back on for 2 minutes, followed by the HD, followed by the TC.
    then go airport utility > manual setup > disks. see if your HD is showing beneath the TC

  • Need detailed info about Active,New and Change log table in BI 7.0

    Dear Experts,
    I am new to this technology. Can you any one explain in very detail about ACTIVE, NEW and CHANGE LOG tables workflows.
    And also i am requesting you all to give tips to how to study BI 7.0
    Regards,
    Ameer.N

    For your first problem solution is this note: 936644
    You might have not mapped the filed in your tarnsfer/update rules?

Maybe you are looking for

  • Iweb SEO tool or iweb valet

    Which is the best iweb SEO tool or iweb valet? or is there a alternative to these? I have used iweb SEO tool, itweak, RAGE Sitemap Automator, and upload my site http://www.southfarm.co.uk/home.html with Transmit. It is a pain when I have a small upda

  • Wrapping but truncating in WEBI with Arial Unicode MS font(Bold only)

    hi, My Webi XI R3 report should support Localization. So we chose 'Arial Unicode MS' as standard font which can support single-byte as well as multi-byte languages. In webi report, Column headers are BOLD where as column values are REGULAR. We select

  • Post removed

    Post removed: Wrong place in the forum. See FM or BAPI for Outbound delivery / Batch split Post removed:Wrong place in the forum. Message was edited by:Yann Portrait Message was edited by:         Yann Portrait

  • When installing mission control on rhel64bit - "text file busy" message

    Dear gurus, I am trying to run jrmc-3.1.2-1.6.0-linux-x64.bin as ./jrmc-3.1.2-1.6.0-linux-x64.bin on rhel5.4 64 bit, but I am getting cannot execute [Text file busy] Anybody has an idea? Thank you Anatoliy

  • INSERTINR ANOTHER ERROR

    hI, i Change the Structure of CUSTOMER_T to KNA1 from BRFCKNA1</b>' BUT another Error will be shown ''Comma without preceding colon (after INSERT ?).''           FUNCTION ZRFC_CUSTOMER_INSERT. ""Local Interface: *"  EXPORTING *"     VALUE(RFCRC) LIKE