New to Oracle: DateTime subtraction problems.

Hello
I have a background SQL and I would normally use datediff to get the difference between two times. I'm having a problem getting in oracle. I get a result, but I have no idea what it is! Here's what I'm looking for:

CAs.q_ld_opn_tm = starttime (format: 23 December 08 08.21.23 AM)
CAs.q_ld_cls_tm = endtime (format: 23 December 08 09.41.09 AM)

I need to know how many minutes is between the two. The response I get seems to be in the wrong format, but I don't know how to specify I want minutes.


(cas.q_ld_cls_tm - cas.q_ld_opn_tm) as CastMin

My result is:
0.0553935185185185185185185185185185185185

Can someone give me an example of syntax?

Thank you!
AJ

Oracle date arithmetic uses day as a unit. To get used to the minutes:

(cas.q_ld_cls_tm - cas.q_ld_opn_tm) * 24 * 60

SY.

Tags: Database

Similar Questions

  • Able to decrypt the passwords to oracle, a security problem?

    Hello
    Before all sorry if this is a silly question. I'm still fairly new to Oracle...

    My company is using Toad for Oracle to access our database, now I found a thread on the internet saying there is a tool that allows to decrypt the passwords to oracle.
    How can we prevent someone from our database passwords decryption?

    Thread of the example: http://toadfororacle.com/thread.jspa?threadID=36841

    Is it a security issue?

    Thank you
    Dere

    Published by: user6032647 on 05/04/2012 22:12

    The way I read it is that TOAD stores Oracle connection details in an .ini file, and this file can be decrypted.

    Oracle does not store the encrypted passwords, it stores the hashed passwords that cannot be decrypted. If the hashes are exposed they can be brute-force, so the complex passwords are essential.

    It is a problem of TOAD. Connection passwords should not be saved (I guess that TOAD a standard Windows "save my password checkbox", it were not used for years). If it is used as a mechanism to hide the users of TOAD database connection details, then serious consideration of safety is required.

    Dave

  • I downloaded Safari 10 and now every page that uses Java asks me to activate or not. How to avoid this new feature? I have problems to access my bank account.

    I downloaded Safari 10 and now every page that uses Java asks me to activate or not. How to avoid this new feature? I have problems to access my bank account.

    I think they mean JavaScript.

    In your Safari menu bar, click Safari > Preferences and then select the Security tab, and then select: Enable JavaScript

  • I created a new profile to resolve a problem of crash, and now I can't get to my favorites.

    Create the new profile has solved my problem of crash and I copied files and folders from my old profile to my new but I still can't have my favorites. What I am doing wrong?

    You can also restore bookmarks from a JSON backup in the folder bookmarkbackups.

  • I can't add new tabs to my window, or by clicking on the little + on the right of the last tab or CTL T or the new file tab. This problem was recently

    1. Question

    I can't add new tabs to my window, or by clicking on the little + on the right of the last tab or CTL T or the new file tab. This problem was recently

    The Ask toolbar is initially only in versions of Firefox 3.6.x. uninstall this extension.

    There are a few places to check for the Ask toolbar:

  • Hi, I can't save all plunge on Icloud? This is the new update of softwer have problem with that?

    Hi, I can't save all plunge (6 IPhone / IPhone 5 / and my ipad on Icloud? is the new update of softwer have problem with that?)

    (1) disconnect from the iCloud and reconnect and try backup

    (2) backup on iTunes then restore the device to factory settings. Try the backup in iCloud. If it works, restore your device from the backup you made to iTubes

  • Hi I am new to Oracle forms and reports I want to know the differences between the Enter query mode and Normal mode?

    Hi I am new to Oracle forms and reports I want to know the differences between the Enter query mode and Normal mode?

    Welcome to Oracle Forms!  Out of curiosity, what do you mean by 'new '?  You are a student or new to an organization that uses Oracle Forms?  Or just play with Oracle Forms to learn something new?

    Let me start by saying that many of your questions designtime can answer by searching in the help of the constructor of the form library.  It's accessible, like most of the other products in the Builder menu > help.

    Regarding your question, ENTER QUERY mode, as the term implies, is when it is in a State where it is accept input for the execution of a query.  When in this mode, there are various restrictions.  Yet once, it will find more details in the Builder Help.  In this case, search help for these two subjects, "SYSTEM." MODE'and "built-ins comments that are not allowed in the input query Mode".  There are many other pages that contain information about the ENTER_QUERY method, but these two should help you get started.

    Normal mode, as its name implies, is when it is in a State of 'normal '.  Basically to do nothing in particular, but also not in ENTER QUERY mode.  In this State, you can move the shape, INSERT, UPDATE, DELETE, documents, etc..

    You will find additional information, as well as a lot of documentation on the product page of forms of OTN:

    http://www.Oracle.com/technetwork/developer-tools/forms

  • Am new to oracle ADF, what JOBS prospect within 3 years?

    Am new to oracle ADF, what jobs prospect within 3 years in ADF, actually am a form oracle developer and I would like to know if oracle will be good learning and good in terms of career...

    You do not you ask this in the wrong place?

    The people here are biased for JDeveloper and ADF. From my point of view, the chances are great!

    Oracle has announced to do more or less everything with ADF. However, this will not mean that you as a developer of forms are without a chance.

    Timo

  • Oracle XE text problem

    I have a XE Database 11.2 under Windows, with Oracle 11.2.0.2.0 text, all verified object, which has an import Application Apex that was exported form Oracle 10 without problem.

    I used the data pump to fill the underlying tables of the demand, which was also successful, but need to re-create full-text indexes in the instance target of 11.2.

    I used ctx_report.create_index_script to create the 4 that I needed, without issue.

    When the first script on the instance running target while running OK except for the section "create index", and I can't seem to work around the problem.

    The part of the script that fails is

    creating index 'SCHEMA_OWNER '. "" A_INDEX1 ".

    on "SCHEMA_OWNER". » A »

    ('A1')

    indexType is ctxsys.context

    parameters (')

    data store "A_INDEX1_DST".

    filter "A_INDEX1_FIL".

    Group of the section "A_INDEX1_SGP".

    lexer "A_INDEX1_LEX."

    list of words "A_INDEX1_WDL".

    stoplist 'A_INDEX1_SPL '.

    storage "A_INDEX1_STO."

    ')

    /

    Which returns the following errors

    ERROR on line 1:

    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE

    ORA-20000: Oracle text error:

    DRG-50857: error oracle in drvxtab.create_index_tables

    ORA-00905: lack of keyword

    ORA-06512: at "CTXSYS. DRUE", line 160

    ORA-06512: at "CTXSYS. TEXTINDEXMETHODS', line 366

    Can anyone help point me in the right direction, a little crazy.

    I have now managed to solve this problem, and kevinUBC is right, the error was in the storage clause.  The problem was caused by the rupture in 3rd line of the storage clause to the semi colon ^^.

    Start
    ctx_ddl.create_preference ('"A_INDEX1_STO" ', 'BASIC_STORAGE');
    ctx_ddl.set_attribute (' 'A_INDEX1_STO"', 'R_TABLE_CLAUSE',' lob (data) store (cache) ');

    ctx_ddl.set_attribute ('"A_INDEX1_STO" ', 'I_INDEX_CLAUSE', 'compress 2')

    ;

    end;

    I dropped the clause storage with ctx_ddl.drop_preference and recreated with the semi colon at the right place, the index created then no problem

    Thank you all

  • Hi I am new to Oracle APEX and my desires to organize me working on it... can someone help me to begin with?

    Hi I am new to Oracle APEX and my desires to organize me working on it... can someone help me to begin with?

    Hello

    Start reading the documentation

    Oracle Application Express - Documentation

    Check the packaged applications that comes with the APEX.

    You can find a lot of info and examples of Oracle Learning Library

    http://Apex.Oracle.com/pls/Apex/f?p=44785:2:0:FORCE_QUERY:2, IRB, CIR:P2_GROUP_ID, P2_PRODUCT_ID:1000 %2 C 2039

    APEX to read related blogs

    WORLD: APEX Blogroll

    You can find many things from this forum, just use search.

    Kind regards

    Jari

  • When I have videos on my calendar, they do not play in the screen of the monitor. I hear the audio but can't see the image. To test if my new files are somehow the problem, I went back and used video files that I have used successfully a year ago and th

    When I have videos on my calendar, they do not play in the screen of the monitor. I hear the audio but can't see the image. To test if my new files are somehow the problem, I went back and used video files that I have used successfully a year ago, and they no longer play in the monitor window. I hear the sound track, but don't see any video. Have I changed it some setting that controls video playback in the monitor window?

    Randy Ruttger

    Thanks for the follow-up.

    Missing in this equation are the Premiere Elements version you were using and the operating system on which it is running. But...

    The Act is accomplished. But... Up to now, and after that you went ahead and moved to version 12, we now learn what Premiere Elements version you were using. We don't yet know the operating system involved.

    You said first Elements 10. First 10 Elements is affected by a problem serious display known if the computer uses an NVIDIA GeForce video/graphics card card. In this issue, the only cure is to roll back the version of the driver about may 2013. The description of the problem and how to make the rear roller are described in one of the messages at the top of this forum. What video/graphics card your computer use?

    On another front, Adobe will release a new version of Premiere Elements any day now. Not one, but Adobe knows the function defined for the new version. This type of information is announced at the time of the release of the new version.

    So the solution to the problem you presented in this thread could have been...

    1 roll back the version of the NVIDIA GeForce driver for all may 2013 if possible (Windows 8 or 8.1 64 bit, maybe not possible)

    2. move to a different version of Premiere Elements (which you did)

    I offer the foregoing for consideration so that you can review your decisions. We are pleased to learn that the first items 12/12.1 works for you.

    Please do not hesitate to ask questions and seek clarification, but do not forget that the answers are in the details.

    Best wishes

    RTA

  • New to Oracle - interested in certification SQL

    I am new to Oracle and am interested to learn SQL, but have to pay myself, seeks to do this through Oracle books.

    Have you noticed that there is a review called Oracle SQL Fundamentals I, who has his own book: [http://www.amazon.co.uk/gp/product/0071597867/ref=s9_sima_gw_s0_p14_t1?pf_rd_m=A3P5ROKL5A1OLE & pf_rd_s = center-1 & pf_rd_r = 0NNERWYN8T9PAX64B5HG & pf_rd_t = 101 & pf_rd_p = 467198433 & pf_rd_i = 468294]

    However, it doesn't seem to be a book for Oracle SQL Fundamentals II, although I saw somewhere that it will be published before the end of the year?

    This book seems to cover everything, but is for 9i: [http://www.amazon.com/OCP-Introduction-Oracle9i-Exam-Guide/dp/0072195371]

    Just a few basics:

    Which is the best db Oracle. Download for Windows XP that I can put on more than one computer, it is better for my sql certification?

    Can I take the exam SQL 9i or it is no longer used (can't seem to download from anywhere?)

    Can I take the exam at the Oracle headquarters or an authorized service center, without their own path?

    Thank you very much

    user11935518 wrote:
    I am new to Oracle and am interested to learn SQL, but have to pay myself, seeks to do this through Oracle books.

    Have you noticed that there is a review called Oracle SQL Fundamentals I, who has his own book: [http://www.amazon.co.uk/gp/product/0071597867/ref=s9_sima_gw_s0_p14_t1?pf_rd_m=A3P5ROKL5A1OLE&pf_rd_s=center-1&pf_rd_r=0NNERWYN8T9PAX64B5HG&pf_rd_t=101&pf_rd_p=467198433&pf_rd_i=468294]

    The book is related to the exam 1z0-051. I'm not sure it's the best way to learn SQL from scratch. However, since once you know a little SQL book is useful, though sometimes, some might say t make sure that you get enough practice.

    However, it doesn't seem to be a book for Oracle SQL Fundamentals II, although I saw somewhere that it will be published before the end of the year?

    Don't worry in the short term. There is a review of SQL, you may want to consider longer term (1z0-047), but which is advanced. ISBN-13: 978 - 0071498500 probably apply the material (but does not focus on the review... maybe it's a good thing).

    This book seems to cover everything, but is for 9i: [http://www.amazon.com/OCP-Introduction-Oracle9i-Exam-Guide/dp/0072195371]

    Just a few basics:

    Which is the best db Oracle. Download for Windows XP that I can put on more than one computer, it is better for my sql certification?

    Oracle is resource intensive; and more as it increases version numbers.

    10g XE [http://www.oracle.com/technology/products/database/xe/index.html] is perfect, EXCEPT that it is 10g 11g not and cannot indicate features of 11g but its greate from the manageability perspective.

    11 GR 1 material has a much higher footprint, but course has all the features.

    Unfortunately, it's a choice s one or the other. and historically the windows uninstaller can be an ightmare.

    I think that I must really be suggesting you look at virtualization - example: [http://www.virtualbox.org/] to run Oracle 10 g XE at first... but then again I am not sure if I'm over complicating things and have not tried it myself.

    Versions of the database newever and reviews using the SQL syntax that is no longer compatible with ansi standards more late especially in the use of the joins of tables in my humble OPINION.

    Can I take the exam SQL 9i or it is no longer used (can't seem to download from anywhere?)

    You can take the exam but its is no longer available for download. REF for example unable to download Oracle 9i database (any version)

    Can I take the exam at the Oracle headquarters or an authorized service center, without their own path?

    You can take in some centres of Pearson VIEW [http://pearsonvue.com/oracle/locate]. (1z0-051 can also be taken online).

    Thank you very much

    If you want some tutorials to practice simple SQL online be sure to visit [www.w3schools.org] but attention to other SQL dialects. This site is safe certification, but there are many who are not. See [http://forums.oracle.com/forums/ann.jspa?annID=1122] and other messages of the forum announcement.

    Visit also [http://www.oracle.com/education/certification]

    Published by: bigdelboy on 24-Sep-2009 04:30

    * I just remembered - a caveat: Please note Oracle requires professional XP (XP Home and Vista Home does not work... If you have these virtualbox perhaps with linux work and stay within the license agreement *.

  • New to Oracle, would like to know the authentication process

    Hello

    I am new to Oracle. I would like to know how the operation of the authentication of the user if the database is closed and one instance runs?



    Naveen.

    Naveen,
    Welcome to Oralce forums/community. If you're new to Oracle, the first thing to learn is to start reading the Oralce documentation which is an excellent and free resource for learning.
    There are many methods of authentication that are supported by oracle. You can read all here,
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14220/security.htm#sthref2682
    At the point where the database is out of service and portion of memory dead it is to say the instance is there, no normal user and/or the dba user is allowed to log on. At that time, only the superuser, system is allowed to log on and it should start the database to other users to connect to it.
    For the user Sys to connect, there may be two ways, you can be using operating system authentication which requires underlying to authenticate your log in. The other may be using file password that contains the password for the Sys user and is created using Orapwd util. using these two techniques, you can connect to oracle as user Sys while the instance is available.
    HTH
    Aman...
    PS: If you find that your question is answered, mark it as even. If you find the answer given as useful/correct, mark it as even.

  • Problem with Date in the Remedy to Oracle datetime conversion

    SELECT Systems_Changed,

    Impact_Summary2,

    TO_CHAR (to_date (January 1, 1970 ',' DD-MM-YYYY HH24:MI:SS') + (Time_Change_Begins / (60 * 60 * 24)), "YYYY-MM-DD HH24:MI:SS") "Time_Change_Begins."

    TO_CHAR (to_date (January 1, 1970 ',' DD-MM-YYYY HH24:MI:SS') + (Create_Date / (60 * 60 * 24)), "YYYY-MM-DD HH24:MI:SS") "Create_Date_Convert".

    OF ARADMIN. CHANGE_NOTIFICATION

    WHERE

    (((to_char (to_date (1er janvier 1970 ',' JJ-MM-AAAA HH24:MI:SS') + (Time_Change_Begins / (60 * 60 * 24)), "DD-MM-YYYY")) > =))
    ((SELECT to_char ((SYSDATE + 1), 'DD-MM-YYYY') FROM dual))

    AND ((to_char (to_date (1er janvier 1970 ',' JJ-MM-AAAA HH24:MI:SS') + (Time_Change_Begins / (60 * 60 * 24)), "DD-MM-YYYY")) <)
    (SELECT to_char (SYSDATE + 31, "DD-MM-YYYY") OF double)))


    I'm not able to get good results. Any help on this.

    nikhilreddy wrote:
    Can you tell me what are the other changes I have to do to make it work.

    Again, define doesn't work do not. After a small sample showing that it "doesn't".

    SY.

  • Oracle and ODBC problem

    I'm in the following situation, I use a commercial software that connects as a client to a server Oracle 11 g for the ODBC protocol (works 24/7). I did not administer the database and what happens, is that when the administrator stops the database with the command "stop immediately", the journal of software code get code oracle ORA-3114 not connected to Oracle. This is normal, because the instance of the business application was canceled, the problem is that when the database is started, the code 'ORA-3114 not connected to Oracle' is still there, so I'm still without a connection to the db.

    For what is this:

    1 - What is the DBA has a way (code or configuration) to restart my instance? or avoid this situation?

    2 - I I don't know the reason for the power outages in the comics (maybe is necessary), but in the company, the environment is a bad practice or common OFF the comics without notice to other important services? Or the new instance is the responsibility of the application?

    3 - What are best practices for a DBA to work with client applications for high availability?

    4 - from the point of view of the ODBC connection, there are parameters that can be done to restore a new instance?

    Any advice will be appreciated, looks.

    2945108 wrote:

    Yes when I restart the client application, everything works fine. so given your answer could there is a limitation of the ODBC to reopen this kind of connections? (The oracle instance is the only cut that does not turn to listen) Your answer caught my attention because or is a software bug or a limitation of the ODBC.

    What do you mean by 'the oracle instance is the only cut that does not turn to listen '?

    It is not a software bug.  Please reread my post above.  It is essential to client-server architecture.  It is NOT the responsibility of the server at startup process, try to find any process of potential customer who has been disconnected and reconnect.  It is basically impossible.  If possible, it would be a huge security breach in network architecture.  No, it is the responsibility of a client process, if it disconnects from the server, in order to "do what is necessary."  This could mean trying to reconnect so often to such or such an interval for such or such a time.  This could mean sending a warning message to someone.  But it is up to the client to detect and react, not the server.

    And Yes, the odbc has a few design limitations (no bugs) in that it can receive the server (on behalf of the customer) and pass on to the customer.  Don't forget, in this architecture, the db is concerned the client is ODBC.  Now that talking to the database.

Maybe you are looking for

  • Can I install MS PUBLISHER 2000 with Vista?

    I tried Compatibility Wizard programs without success. This program works on XP. It works on Vista.

  • Satellite PM30: Not able to write CD

    Whenever I try to write in a new CD, I get an error message indicating that the CD cannot be written to. I tried different CD without success. My wife also has a Toshiba and has no similar difficulty with CD.If I changed a parameter and if yes, how c

  • 'put in cartridge' with the warning light.

    mp360 printer shows 'put in cartridge' with warning light. The cartridges are in. Will print once, then stop. Had the head cleaned and it printed fine nozzle boss, tried to print a page of the same alarm.

  • Battery Acer Aspire V5

    When you use a laptop computer with a removable battery at home for a long period, you generally disconect the battery and connect the charger. My Acer is not a removable battery, and I use it at home a lot, with the charger plugged. This does not af

  • Invoke the hand image + text

    What you set the mimetype when you want to share an image, but also have a text to go with the image. Keeping to "image/jpeg" and just help you add on a text of the query attribute? query { mimeType: "image/jpeg" invokeActionId: "bb.action.SHARE" uri