Emulating TIMESTAMPDIFF

I'm new or Oracle and am trying to emulate the JDBC function TIMESTAMPDIFF(interval, timestamp1,timestamp2). This function returns an integer which represents the number of intervals by which timestamp2 is greater than timestamp1. The interval may be set to SECONDS,MINUTES,HOURS,WEEKS,MONTHS,QUARTERS, or YEARS. Anyone have any ideas?

Duplicate thread. Please only post once.
Error in function

Similar Messages

  • How to get Current Location in a Android Emulator using Flex

    Hi
    In the following code I am able to plot the Location using Latitude and Longitude but the requirement is
    in an Android Emulator on launch of the application I need google map to display the users current location,
    How can this be achieved ??? I tried to get the Latitude and Longitude of the current position using
    geoLocation class by I am not able to get that working,
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark" title="Home">
        <s:layout>
            <s:VerticalLayout />
        </s:layout>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import com.google.maps.LatLng;
                import com.google.maps.MapEvent;
                import com.google.maps.MapType;
                import com.google.maps.controls.PositionControl;
                import com.google.maps.controls.ZoomControl;
                import flash.sensors.Geolocation;
                private var myGeo:Geolocation;
                protected function showBtn_clickHandler(event:MouseEvent):void
                    if(Geolocation.isSupported == 'true')
                        myGeo = new Geolocation();
                        myGeo.setRequestedUpdateInterval(100);
                        myGeo.addEventListener(GeolocationEvent.UPDATE, onUpdate);
                    else
                        myTextArea.text = "Device Not Supported";
                private function onUpdate(event:GeolocationEvent):void
                    myTextArea.text += "Hi"+ "/n"+ event.latitude.toString() + "/n" +
                        event.longitude.toString();
                protected function myMap_mapevent_mapreadyHandler(event:MapEvent):void
                    myMap.setCenter(new LatLng(24,58),9,MapType.NORMAL_MAP_TYPE);
                    myMap.addControl(new ZoomControl);
                    myMap.addControl(new PositionControl);
            ]]>
        </fx:Script>
        <s:Button id="showBtn" label="Show" click="showBtn_clickHandler(event)"/>
        <s:TextArea id="myTextArea" width="100%" height="50%" />
        <maps:Map id="myMap" width="100%" height="50%"
                  xmlns:maps="com.google.maps.*"
                  sensor="true"
                  key="ABQIAAAA2Fwy6HLBheYSAWRBEZKwEhRLum8XdHegG17d4EymNgK0o7h2qRRWVBVQywiGHEiGtKahjfGW8xxc RA"
                  mapevent_mapready="myMap_mapevent_mapreadyHandler(event)"
                  url="http://www.xyz.com"/>
    </s:View>

    Geolocation isn't supported in the Emulator. You'll have to set up a test case that gives the geolocation without relying on the Emulator.

  • Unable to raise button Event in BlackBerry Emulator

    Hi All,
    I've created a WebDynpro Application which invokes a BAPI on click of a button(or Link to Action). This Application s running fine on IE.
    I wanted t port this on a Blackberry device. I'm testing on a BlackBerry emulator. The first view is getting displayed properly, but I'm unable to click the Button which is displayed.
    How to raise this event on the BlackBerry Emulator?
    Thanks and regards
    RK

    Hi,
    Thanks for looking at my post.
    @Heidi: I had already gone thru the link.
    @Stefanie: I am using BlackBerry Emulator for model 7520/7920. There is no wheel(I guess I didn't understand you properly). Yes I clicked on enter button.
    I'm a bit confused with the Button. In manual they said that the property 'Design' is ignored for Mobile Devices and at the same time they say if the Design is emphasized then you will get a softkey. I tried with Design Standard(which is default) and also Emphasized. I dont see any Softkey. I really don't know how a softkey looks like. I guess there will be a extra icon or button on the screen. But I don't see any.
    Thanks and regards
    RK

  • HTTPS connection from emulator

    Hello friends,
    I want to send https request from emulator from my application..
    when I am trying to send HTTPS request from emulator(wtk22's default emulator) it gives error
    javax.microedition.io.ConnectionNotFoundException: TCP open
         at com.sun.midp.io.j2me.socket.Protocol.connect(+99)
         at com.sun.midp.io.ConnectionBaseAdapter.openPrim(+52)
         at com.sun.midp.io.j2me.socket.Protocol.openPrim(+108)
         at com.sun.midp.io.ConnectionBaseAdapter.openPrim(+14)
         at com.sun.midp.io.ConnectionBaseAdapter.openPrim(+8)
         at com.sun.midp.io.j2me.https.Protocol.connect(+167)
         at com.sun.kvem.io.j2me.https.Protocol.connect(+4)
         at com.sun.midp.io.j2me.http.Protocol.streamConnect(+57)
         at com.sun.kvem.io.j2me.https.Protocol.streamConnect(+4)
         at com.sun.midp.io.j2me.http.Protocol.startRequest(+12)
         at com.sun.midp.io.j2me.http.Protocol.sendRequest(+38)
         at com.sun.midp.io.j2me.http.Protocol.sendRequest(+6)
         at com.sun.midp.io.j2me.http.Protocol.getResponseCode(+8)
         at bd.a(+97)
         at cj.run(+155)
    XML Response: null
    * Application is working fine on device/Mobile.......i.e.from mobile i can send https request successfully ...*
    so wts the problem with emulator...can anybody help me?
    Thanks in advance
    Regards,
    Parag

    Could you explain how transport protocol influences certificate exchange during SSL session?

  • XAP Applications are not getting published in Windows Phone 8.1 Emulator

    I've SCCM + Intune integrated environment (trail version of Intune). Enrolled Windows phone 8.1 (emulator) device into the infrastructure. 
    I'm able to login to company portal and can see the devices associated with my user name in the company portal however I'm not able to publish any of the apps. It says your query didn't return any results :(
    I tried all the following types of apps (Windows apps in the windows store, Windows Phone app package and Windows phone app package in the windows phone store) but nothing getting published :( any clue ?
    Anoop C Nair (My Blog www.AnoopCNair.com)
    - Twitter @anoopmannur -
    FaceBook Forum For SCCM

    Yes, at last issue got resolved :)
    http://anoopcnair.com/2014/11/11/xap-applications-published-windows-phone-8-1-intune-integrated-sccm-2012-r2/
    Anoop C Nair (My Blog www.AnoopCNair.com)
    - Twitter @anoopmannur -
    FaceBook Forum For SCCM

  • Visual Studio 2013 WP Emulator not working after adding more RAM

    After a few days I installed VS 2013 on my laptop which had 3GB RAM and got notified by visual studio that I need at least 4 GB for hardware virtualization. Now I have 6GB RAM and Hyper-V restarted and VS still doesn't recognize my new RAM and doesn't give
    me an option to run the WP emulator.
    Did any of you had a problem/solution with this?

    Run MSInfo32.exe and post the System Summary results.
    Also check them against the system requirements for Windows Phone emulators:
    http://msdn.microsoft.com/en-us/library/windows/apps/ff626524(v=vs.105).aspx
    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast
    your votes for existing suggestions.

  • [SOLVED] Terminal emulator that allows free resizing?

    EDIT: Answered my own question; terminator allows per-pixel resizing if you disable window hinting in the preferences.
    I have an annoyance with resizing terminal emulators. I use stacking WMs (xfwm4 on one setup, compiz standalone on another) but I usually like to tile my windows manually. I've enabled edge snapping in both of these WMs. However, whenever I'm resizing a terminal window, the snapping doesn't work because the terminal window can't be freely resized - I can only change the size of the window by one character's height/width. For example, if a terminal is open at 80x36, and I want to make it just a little bit wider to snap against the edge of another window, I can't because it won't let me resize the window between 80 and 81 characters.
    I've tried xfce's terminal, gnome-terminal, lxterminal, xterm, urxvt, and st. Can someone direct me to a terminal emulator that will let me resize windows to whatever size I want, regardless of whether it is a discrete character size, or am I out of luck?
    P.S. I've noticed that if I resize a window with wmctrl and issue the resize command twice, then xfce's terminal behaves the way it should. Can I replicate this behavior for resizing with the mouse?
    Last edited by thorion (2012-10-19 05:14:41)

    A terminal emulator and X Window GUI are different things. You can have a terminal emulator in a graphical desktop environment, but you cannot display GUI in a terminal.
    Putty is just a SSH client and terminal emulator (VT) and can be used with X-forwarding to display remote GUI applications (Linux), provided you are have a X Window server installed and running on your local computer, e.g. Xming Server for Windows.
    Perhaps you will find the free version of http://mobaxterm.mobatek.net/ useful. It is a single application based on Cygwin that allows you run GUI applications from your remote Linux system.
    By far the best terminal emulator in terms of user interface and configuration options that I’m aware of is the Terminal App of MacOSX, which also automatically opens Xorg if you open a GUI application. And it provides the full set of terminal escape sequences. But if you are on Windows….
    Alternatively, use VNC. You can run VNC in several modes, either to open an existing remote desktop connection, start a new desktop connection, or run a minimal X windows server, such as TWM that does not require you to install or run a graphical user desktop on your remote Linux server. If you are interested in VNC, perhaps check the following: https://community.oracle.com/thread/2456580. You can also tunnel VNC through SSH if your network firewall prevents communication.

  • How does Azure Compute Emulator (or the Azure one) determine if a role is web project or something else ("The Web Role in question doesn't seem to be a web application type project")?

    I'm not sure if this is F# specific or something else, but what could cause the following error message when trying to debug locally an Azure cloud service:
    The Web Role in question doesn't seem to be a web application type project.
    I added an empty F# web api Project to a solution (which adds Global.asax etc., I added an OWIN startup class Startup etc.) and then from an existing
    cloud service project I picked Roles and
    chose Add
    -> Web Role Project in solution, which finds the F# web project (its project type guids are 349C5851-65DF-11DA-9384-00065B846F21 and F2A71F9B-5D33-465A-A702-920D77279786),
    of which the first one seem to be exactly the GUID that defines a web application type.
    However, when I try to start the cloud project locally, I get the aforementioned error message. I have a C# Web Role project that will start when I remove the F# project. I also have F# worker
    role projects that start with the C# web role project if I remove this F# web role project. If I set the F# web project as a startup project,
    it starts and runs as one would expect, normally.
    Now, it makes me wonder if this is something with F# or could this error message appears in C# too, but I didn't find anything on Google. What kind of checks are there when starting the emulator and which one needs
    failing to prompt the aforementioned message? Can anyone shed light into this?
    Sudet ulvovat -- karavaani kulkee

    Sudet,
    Yeah you are right, the GUID mentioned seems to be correct and the first one i.e. {349C5851-65DF-11DA-9384-00065B846F21} means the web application project which compute emulator uses to determine while spawning up role instances.
    You might want to compare the csproj of your C# and F# web projects which might give some pointers.
    Are you able to run your F# web project locally in IIS? If yes then you will definitely be able to run it on azure so I will recommend to test it in IIS Express first.
    Here are some other tips which you can refer or see If you are yet to do those settings
    1. Turn on the IIS Express - You can do it by navigating to project properties
    2. Install Dependent ASP.NET NuGets / Web Api dependencies (If there are any missing), Reference System.Web assembly
    Also I will suggest to refer this nice article about how to create a F# web Api project
    http://blog.ploeh.dk/2013/08/23/how-to-create-a-pure-f-aspnet-web-api-project/
    Hope this helps you.
    Bhushan | http://www.passionatetechie.blogspot.com | http://twitter.com/BhushanGawale

  • Is there a terminal emulator with up- down output?

    The idea just hit me but it's very hard to find something in search or on google (up and down are popular keywords...).
    Here's my idea: the terminal I use (urxvt) and every other I heard of always outputs text sort of 'upwards'. Meaning: the prompt line is mostly on the bottom (and if you use a tiling wm like me it's mostly on the bottom of the screen), well except for new terminal windows of course.
    I thought it would be cool if it could be on the top of the screen and the lines would be output towards the bottom of the window. Get it? If you would take a normal terminal window and reverse the lines order, this would be exactly what I need.
    Quick example:
    A normal terminal
    [user@desktop]: ls -l
    drwxr-xr-x 5 user user 4096 Jan 17 12:53 dir1
    lrwxrwxrwx 1 user user 30 Dec 23 17:14 a-link
    drwxr-xr-x 2 user user 4096 Feb 10 13:26 dir2
    [user@desktop]: _
    What I would like
    [user@desktop]: _
    drwxr-xr-x 5 user user 4096 Jan 17 12:53 dir1
    lrwxrwxrwx 1 user user 30 Dec 23 17:14 a-link
    drwxr-xr-x 2 user user 4096 Feb 10 13:26 dir2
    [user@desktop]: ls -l
    Get it? Top -> down! So the prompt always gravitates toward the top of the window (provided enough output of course)
    So anyway, back to the question: is there a terminal emulator that can do it?
    Last edited by kosmiciatakuja (2011-03-14 10:47:55)

    lives2evil wrote:Interesting idea!
    But no, as far as I know there's no such things.
    Any if you think it a little further, it's a trouble some idea. You may not notice with a simple "ls" command but with something more complex trouble will pop up every where.
    How about you try and think how exactly will you implemented this idea.
    Could be fun (Tried it).
    Heh yea, i just did the same and came to the same conclusions.

  • How to use the Google Android Emulator in Flash Builder on Windows 7?

    I want to try out Flash Builder to create an app, but I cannot find out how to use the Google Android Emulator in Flash Builder. The simulators in Flash Builder work, and the android emulator is installed correctly and can run. I just can't seem to connect them. How do I do that?

    Hi Pahup,
    Thank you for your reply!!
    I adapted an Android App using Flash CC on a Mac. I already published this App for the Apple App Store. When I published the App for Android I chose Air 3.7.xxx for Android. I also created the p12 certificate using Flash CC in the publishing settigns for Android. So my App is theoretically finished and ready for Upload.
    When I went to the Google Play Store Developer Console I had the options to
    1.) Upload APK
    or
    2.) Prepare Store Entry
    ...so I prepared the Store entry first. When I go to "APK"-Tab in the console it looks like this:
    ... it says "Upload APK" and the Button below "Get Licence Key". When I click on the license Key Button it looks like this:
    So I think I should enter this RSA-Key somehow into my App BEFORE uploading it to the Google Play Store. This is recommended when an Ap is set to be paid. My Application is set to paid.
    I did not use any kind of licensing API (until now - cause I don´t know how and what it is for)
    This is all new to me. It is the first App I want to bringt to the Android market. I really hoped it would be as easy as getting an app into the Apple App Store. I found so many step by step instructions for dummies on "How to get an Flash iOS App into the App Store plus creating all the certificates needed", so I thought it would be the same for Android. But there is no help at all at the moment. I am totally confused.
    So any help, hint or instrusction would be great!!
    By the way - this is the App I want to get into the Google Play Store

  • Emulator 8.1 not working on windows 8.1 single language

    Hi, 
    I am facing a problem and also I spent many days and night to resolve.
    I am working visual studio 2013 visual C# to create mobile apps, the problem is when I run the code I got an error pending an emulator, after searching on net I got the following result 
    go to control panel than add / remove  than add the feature Hyper V which is not exist in my control panel.
    Notice :   I enable the feature virtualization in
     bios.
    My question hyper V is ready on win 8.1 pro.
    Thank you for your help

    Hi,
    Windows 8.1 single language doesn't support Hyper-v, Pro and enterprise edition is necessary to run hyper-v.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How do I set up an emulator for testing my application?

    I'm starting to wade into GPIB and cannot seem to find the best way to continue given all the components (not meaning ActiveX) required to assemble a semi-reliable development and testing environment for beta rollouts.
    I have set up my design environment. Now I need a way to emulate some of the equipment I will be developing for so that I may test my apps before final testing on the actual equipment (which I obviously have no access to at this point).
    Given that.. am I correct in understanding that LabView or IVI allows this type of functionality? If so, here are my specific questions regarding development:
    1) Do I currently need any hardware or can the GPIB device list be populated from IVI/LabView emula
    tors? In other words... how do I make the 'link' between these two technologies?
    2) Can IVI/LabView run on the same machine as my test application, or is a secondary machine required?
    3) Is there a general punch list of software (LabView, etc.) I might need in order to get this going?
    4) Any general (or specific) overviews that may help me get over this hump would be greatly appreciated.
    Charles

    Whether or not you are able to simulate your hardware will depend on what method you are using to program it. If you are programming the instrumentation directly using the GPIB ActiveX control or GPIB calls directly you will not have the ability to do simulate in software. If you are using an instrument driver, however, you will be able to do simulation if the instrument driver is IVI compliant.
    Assuming that you are using an IVI-compliant instrument driver, here are the answers to your questions:
    1. You do not need any hardware whatsoever. You can either specify to use simulation in your code by using the InitWithOptions functionality and specifying "SIMULATE=TRUE" in the option string parameter. You can also set things up externally so that you can alter simulation strictly through the IVI configuration so that your code doesn't have to change.
    2. It will run on the same machine as your code. As far as your application is concerned, it will not appear any differently however no GPIB communication will occur.
    3. IVI compliant instrument drivers for all of the GPIB hardware you are using. These are available for download from ni.com.
    4. I think that there may be some IVI-related application notes.
    Assuming that you are not using an IVI-compliant instrument driver and instead are either using a non-IVI instrument driver or making GPIB calls directly, things can get a little more elaborate. If you want full emulation capability you'll need to write another piece of software that emulates your device. This can be done in LabVIEW or any other ADE of your choice. What you'll need is a second GPIB card (to act as your device) that you'll cable to from your main computer. That card can live in a second machine or in the same one as your main application. You may want to put it in a separate test machine just to keep things a little cleaner.
    If you go with this approach, it's not too difficult to write an emulator for a single device (or at least that functionality of a device that you use) per GPIB card. It will be more difficult to write an emulator that emulates multiple devices using a single GPIB card. In other words, you may want to use a separate GPIB card for each instrument you want to emulate. I wrote such an emulator some time ago but can't seem to find it. In any case, it's probably only a couple of days effort.
    To make a long story short, your life will be a lot easier if you have IVI-compliant instrument drivers available for the hardware that you are using.
    Jason

  • Facing problem to display the content in Android Emulator of my mobile app

    Hi All,
    I have developed an adf mobile application as in the following and i successfully deployed my app in android emulator.....
    Link i have used to create basic mobile App ------------ http://docs.oracle.com/cd/E18941_01/tutorials/MobileTutorial/jdtut_11r2_54_2.html
    Problem :
    i can view my app in android emulator.......but if i open it i am getting a blank (white) screen in emulator......i don't know wat's happening.
    Can any one please help me to solve this problem.........
    Regards,
    Nani

    Hi,
    Yes Android emulator is very problematic, and there are certain out of box emulator configurations that would not even start up on a reasonably powerful PC.
    What works typically for me is to use an emulator built using SDK version 15 or 16 - for some reason, the Android SDK API level's emulators are much more problematic than before. There are some configurations (for example Nexus 7 tab) that simply hangs when trying to start it using default RAM allocation. After reducing it to 512, I can start it but then I can't start app. With older version of the emulator, if I set the RAM to say 512, generally the emulator will start and the app will also start (although very slowly).
    Unfortunately this is an Android issue, and there is very little ADF Mobile can do.
    In short, if possible please deploy to a device, and also please remember to deploy in release mode when you don't need to debug the app, as performance difference is very great. There are some articles on how to compile Android app in release mode. This may also help with your Android deployment. https://blogs.oracle.com/shay/entry/speed_up_adf_mobile_deployment
    Thanks,
    Joe Huang

  • How can you FORCE Classic mode to run on an Intel Mac? OS 9 emulation Rosetta Software Design

    Hello everyone, I had a few thoughts on running Classic mode on intel macs which I wanted to share.
    Now I know little about software design, but maybe someone who does could tell me if these ideas I had are at all feasible:
    Now in the first place I now that, technically, "Classic" mode went out back with Tiger because of the switch to Intel chips. Switching to Intel, Rosetta was required to "translate" pre and non-intel OSX applications, with the exception of Classic since Rosetta does not translate deep enough into the system to do that. As a substitute to Classic, SheepShaver, Basilisk II, etc. can be used to emulate OS 9, but these are very lousy applications compared to Classic mode.
    Is there ANY way whatsoever Rosetta could be edited, or Classic itself so that it will work on intel macs?
    (that is, with the exception of 10.7+ systems since these don't even use Rosetta)
    I know if Classic was placed on an intel mac, it would tell you to download Rosetta, but from there will crashes because frameworks in the system's library does not support (or was not designed for) Classic...
    So what I wanted to know:
    What if an old, Classic supporting PowerPC system's library folder was added to an Intel computer in a location other then that computers real system folder (as not to confuse the real, current system) and Classic manually edited so that it would search for the needed frameworks/etc files in the new location? Would it work?
    Since, after all, it now has the correct "system" to run on (which before Rosetta could not convert), do you think there's any chance it would work and function properly?
    Now beyond that, I wouldn't know the actual results (or consequences). I suppose the main problem to consider would be that the the PPC's system frameworks/etc wouldn't work at all on an Intel (which leads us back to Rosetta lacking in this area), and since those frameworks will be searching for other files in the system library (which would bring them to the current, Intel system) the same results would happen: crash! Or maybe sensing the system was mixed up, one or more files would try to "fix" themselves, and in turn destroy the computer's real system.
    So, would it be worth a try?
    I'd love to hear any other thoughts on running Classic on Intel...

    There is an "easier" way to acquire SheepShaver called Chubby Bunny and I have put together a post with some safe links that are relevant to this topic.  I see that emaculation is one of them.
    Why do you need OS 9 greater than 9.04?
    Feel free to let me know if you need any more help.
    With the newer Intel Macs, you have to run a Classic emulator such as SheepShaver, which requires you to extract the Mac ROMs from your older Classic Mac and then install Mac OS 9.
    A related program is Chubby Bunny, which comes bundled with all of that included.
    More information on SheepShaver:
    http://www.emaculation.com/doku.php/sheepshaver_mac_os_x_setup
    and
    http://www.everymac.com/mac-answers/mac-os-9-classic-support-faq/run-macos-9-on- intel-macs.html
    and more information about Chubby Bunny:
    http://www.macwindows.com/OS9_on_Intel_Mac.html#092408b
    and
    http://hackthemac.blogspot.co.uk/2008/08/chubby-bunny-old-virtual-machine.html
                                  [click on image to enlarge]

  • Mp3 and RecordStore Capable Emulator

    Currently I'm trying to develop an application that plays back mp3's. I am just wondering if there exists an emulator that can handle both, record sets and mp3 playback.
    WTK22 does a good job of handling recorcStores, but can not handle Mp3 playback.
    I did find a motorola emulator that handled mp3 playback, unfortunately it crashes as soon as I try and load information into the recordStore.
    If anyone knows of one, perhaps they could pass along the name, or even a link.
    Another question I do have about WTK22 is, is there any way of increasing the recordStore size, or is it stuck at 1MB . . . and what is the average size of a record store on a new phone these days?

    I wasn't sure what is RecordStore but apparently it is MIDP's way of persisting data.
    As it shows, I have little knowledge of JavaME, so I don't know if that's a problem with the emulator or the usage of RecordStore within JavaFX or something else.
    Now, perhaps you can use the [javafx.io.Storage|http://java.sun.com/javafx/1.2/docs/api/javafx.io/javafx.io.Storage.html] class for persisting data, it is designed to work both in JavaME and on desktop.
    It might offer less features than RecordStore, though.

Maybe you are looking for