Timestamp in Oracle Forms10g

Dear ALL,
Can any one tell me how can i use the timestamp data type column in
Oracle Forms 10G.
when i create table with a time stamp as datatype and then when i make
Data block by wizard i am getting FRM-10009 error message.
My table structure is as below
create table DeptA
(Dept_No number(2),
Dept_name Varchar2(100),
Dept_A_DATE timestamp);
Please let le me know how can i create a datablock on a table which
contains timestamp data type for one field.

TIMESTAMP is an unsupported datatype in Forms. At the moment, there is unlikely any way that this datatype can be used directly in the Forms code without risk of some kind of problem. You will likely need to convert the data to something supported like a varchar when used in the form. It is likely possible to create a db procedure to perform whatever task needs to be accomplished. To show or manipulate the data from within the form convert it to a varchar. From the form call the proc and pass in and out what data needs to be handled.
The assertion error is a known issue being investigated in Oracle bug 8836073. Understand however that fixing this bug will likely only cause the ugly assertion to appear as a more user friendly error. It will not provide support for the unsupported types.

Similar Messages

  • Timestamp in oracle 8i

    Hi,
    Can anybody tell me, how can I implement Timestamp in Oracle 8i? What data type should I use and how to insert current Timestamp when an insert occurs?
    Thanx in advance.
    Nitin

    Well , no one needs to laugh on anyone's response. That could be because the way you explain was not clear enough. Nitin , whats the problem you are getting ? Do you want to use timestamp in Oracle ?

  • Oracle Forms10g Application

    Hi,
    Iam Working on Oracle Forms10g Developer Suite . In Forms6i if i ligin into application i will get the client host name and IP Address. In Case of Forms10g using webutil iam not able to get the same. Can any one tell us its very urgent
    Regards
    Venkatesh

    Venkatesh,
    Try using tool_env.getvar with SERVER_NAME and or SERVER_PORT.
    regards,
    Bernhard Jongejan
    http://bernhardjongejan.spaces.live.com

  • Oracle Forms10g view window is small

    Hi All,
    We just installed oracle forms10g, when we compile a form and run it, it opens in the browser but with small area of it appearing and the rest is hided. there is no scrolling or any thing. How can i make the browser open it in full size (viewing area)?
    Note: scrolling for the window horizontal and vertical is on.
    Regards;
    Message was edited by:
    Tomy3k_Bakr

    Swati is correct. To be specific, if you want to use all of the available space in the browser area set HEIGHT and WIDTH in formsweb.cfg as follows:
    HEIGHT=100%
    WIDTH=100%
    This will force the applet size to use the entire white space of the browser. Well, not exactly all. There will be a slight boarder around the applet area. This is expected behavior.

  • Oracle Forms10g Study Documentation

    Please help me to find Oracle Forms10g Study Documentation
    Thank You

    Oracle Forms 10g (10.1.2) Documentation
    http://www.oracle.com/technology/documentation/10g_forms.html
    oracle forms 10g documentation/reference or ebook
    oracle forms 10g documentation/reference or ebook

  • Oracle forms10g rel1 config with SSL

    Is anybody using oracle forms10g config with ssl?
    I installed OAS 10g and followed instruction in documentation http://www.oracle.com/technology/products/forms/pdf/10g/frm10gssl.pdf.
    Now I can see "welcome page" using https://localhost:4445,
    but the I'm running oracle forms, ever test form Jinitiator give me error:
    java.io.IOException: javax.net.ssl.SSLException: Failed set trust point in ssl context
         at oracle.security.ssl.OracleSSLSocketImpl.startHandshake(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.New(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsURLConnection$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.jinitiator.protocol.https.HttpsURLConnection.connect(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)
         at oracle.jre.protocol.jar.JarCache.get(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
         at sun.misc.URLClassPath$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    WARNING: Unable to cache https://34.64.0.102:4445/forms90/java/f90all_jinit.jar
    load: class oracle.forms.engine.Main not found.
    java.lang.ClassNotFoundException: java.io.IOException: javax.net.ssl.SSLException: Failed set trust point in ssl context
         at oracle.security.ssl.OracleSSLSocketImpl.startHandshake(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.New(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsURLConnection$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.jinitiator.protocol.https.HttpsURLConnection.connect(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ClassNotFoundException: java.io.IOException: javax.net.ssl.SSLException: Failed set trust point in ssl context
         at oracle.security.ssl.OracleSSLSocketImpl.startHandshake(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.<init>(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsClient.New(Unknown Source)
         at oracle.jinitiator.protocol.https.HttpsURLConnection$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.jinitiator.protocol.https.HttpsURLConnection.connect(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I ever was trying to use higher version of Jinitiator. I'm using 1.3.1.23 still not working.
    Please help it is emergency

    Hi,
    did you configure the certdb.txt on teh Forms client with your certificate? I sugget you call customer support on metalink.oracle.com
    Frank

  • Unix timestamp to Oracle timestamp conversion

    Hi all,
    I am trying to convert the UNIX timestamp to ORACLE timestamp .
    I have done like this upto now.
    CREATE OR REPLCACE FUNCTION unixts_to_oraclets(unixtimestamp IN INTEGER)
    RETURN DATE IS
    result DATE;
    BEGIN
    result := TO_DATE('1970-01-01', 'YYYY-MM-DD') + numtodsinterval(unixtimestamp, 'SECOND');
    return(result);
    end unixts_to_oraclets;
    now i have run this query
    SQL> select unixts_to_oraclets(1139291114) as TS from dual;
    TS
    07-FEB-06
    now i need the ouput to like this 07-FEB-06 01:10:12
    for that i have done like this:
    DECLARE
    v_date DATE;
    res_date DATE;
    BEGIN
    SELECT from_uts(1139291114)INTO v_date FROM dual;
    SELECT TO_TIMESTAMP(v_date,'DD-MON-RRHH24.MI.SS.FF') INTO res_date FROM dual;
    DBMS_OUTPUT.PUT_LINE(res_date);
    END;
    but the output is :
    SQL> /
    07-FEB-06
    PL/SQL procedure successfully completed.
    why is that it is not printing 07-FEB-06 01:10:12 ?
    how should i moodify the code to get the desired output.
    please help me i this regard
    Trinath Somanchi,
    Hyderabad.

    SQL> exec dbms_output.put_line(sysdate);
    07-FEB-06
    PL/SQL procedure successfully completed.
    SQL> exec dbms_output.put_line(to_char(sysdate, 'DD-MM-YYYY HH24:MI:SS'));
    07-02-2006 02:48:35
    PL/SQL procedure successfully completed.
    SQL> alter session set nls_date_format='DD-MM-YYYY HH24:MI:SS';
    Session altered.
    SQL> exec dbms_output.put_line(sysdate);
    07-02-2006 02:49:03
    PL/SQL procedure successfully completed.

  • How to convert normal timestamp to julian timestamp in oracle

    Hi Friends
    How can i convert normal timestamp to Julian Timestamp in Oracle ?
    Thanks for your help

    Hi Chris,
    I dont have any idea on this. But need clarification on your query.
    When I executing below query I'm getting same output. 'J' will give only Julian day right not the timestamp. Please correct me if I am wrong.
    SQL> select to_char(systimestamp,'J') J,to_char(sysdate,'J') from dual;
    J            TO_CHAR
    2456631   2456631
    http://en.wikipedia.org/wiki/Template:JULIANDAY.TIMESTAMP

  • DB2 timestamp to oracle timestamp conversion

    Does any one know how to convert Db2 timestamp into oracle timestamp.
    From DB2 we are getting timestamp in this format (2000-03-06-16.02.19.074474) (26 bytes).
    I want to insert this into oracle thru owb into oracle table with column type timestamp.
    Does anyone know the procedure for this type of conversion
    Thanks in advance..

    Hi,
    Try a migration tool at www.ispirer.com/chyfo.html
    It provides you the fastest, the easiest and the most powerful way to migrate
    DB2 database into Oracle.
    It works in conjunction with Oracle SQL Loader. The tool creates text files (moving of LOBs are fully supported), generates
    CREATE TABLE scripts for Oracle and control files for SQL Loader.
    The tool has a lot of other features.
    Best regards, Dmitry.
    null

  • Sybase Timestamp in Oracle

    Hi,
    I am in the process of migrating Sybase database to oracle 10g.
    In Sybase there is a column exist in most of the tables with datatype Timestamp, the data looks like 0x467469786abfc324, this is automatically generated while inserting or updating a table.
    Is this equivalent to rowid in Oracle? or please suggest a equivialent solution in oracle.
    Thanks,
    DJ

    Yes. The Sybase Timestamp is essentially a surrogate row identifier and should not be moved into Oracle.
    In Oracle, especially with newer technologies such as Advanced Compression, we enable and expect row movement so it is rowids
    should not be treated as static. If you need a surrogate key then create a SEQUENCE object and use that to generate the surrogate key.

  • TIMESTAMP in Oracle 8(i)

    I'm not sure if this is the right place but...
    Does Oracle 8 support the TIMESTAMP datatype based on SQL-92?
    Thanks,
    Mat.

    Hi Mat,
    The datatype "DATE" itself has time component in it. We can store dates in the format yyyy-mon-dd hh:mi:ss format.
    Hope this helps,
    Raghu.

  • Passing array of timestamps into oracle stored proc

    Hey there,
    I have an interesting problem. I need to pass an array of java.sql.Timestamp into a stored proc.
    I see that the PreparedStatement provides a setArray() method which takes as arguments an int, java.sql.Array
    Anybody know how I can use the java.sql.Array to my advantage here ? Basically, I don't see how I can create a java.sql.Array of Timestamps
    thanks in advance for all your help.
    Manish Mandelia

    The java.sql.Array implementation is provided by your jdbc driver.
    For exemple using Oracle you can obtain an sql.Array with something like this :
    Connection con=getConnection() // get a connection to the DB
    //first declare what type of array you will use in the DB
    // you probably want to replace CHAR(7) by Timestamp here
    PreparedStatement createArray=
    con.prepareStatement("CREATE OR REPLACE TYPE MYARRAY AS VARRAY(100) OF CHAR(7)");
    createArray.execute();          
    //then get an java instance of this Array
    oracle.sql.ArrayDescriptor arrayDescriptor = oracle.sql.ArrayDescriptor.createDescriptor("MYARRAY",con);
    // content is used to fill the Array
    String[] content= {"string0", "string1"};
    java.sql.Array sqlArray=new oracle.sql.ARRAY(arrayDescriptor, con, content);               
    // then call your stored procedure
    java.sql.CallableStatement callStmt=con.prepareCall("call MyStoredProcedure(?)");
    // passing the array as an argument
    callStmt.setArray(1,sqlArray);
    callStmt.execute();
    As you can see the code is quite database specific.
    hope that helps.

  • Avg Time  Difference of Two timestamps in Oracle SQL

    Hello Members,
      I am trying to find the average of Time Difference of two timestamp columns by order number. I need to show the average of the time difference in hours:mins format. I have is SQL Server , but unable to get this in Oracle SQL. Could anyone please let me know how I need to find the time difference of two timestamp columns and show them in hh:mm fomat and then take average of these differences and show them in hh:mm format.  Below is what I have tried in SQL server.
    CREATE TABLE temp
    startdate smalldatetime,
    enddate smalldatetime
    INSERT temp
    SELECT '6/22/2013 19:00',
    '6/22/2013 19:20'
    UNION ALL
    SELECT '6/22/2013 19:22',
    '6/22/2013 19:44'
    UNION ALL
    SELECT '6/22/2013 19:45',
    '6/22/2013 19:50'
    UNION ALL
    SELECT '6/22/2013 19:52',
    '6/22/2013 20:02'
    UNION ALL
    SELECT '6/22/2013 20:05',
    '6/22/2013 20:10'
    UNION ALL
    SELECT '6/22/2013 20:15',
    '6/22/2013 20:20'
    SELECT CAST
    CAST
    ( SUM
    DATEDIFF(MINUTE,startdate,enddate)
    6*60
    As float)
    as varchar) + ':' +
    cast
    cast
    cast
    SUM
    DATEDIFF(MINUTE,startdate,enddate)
    6
    as int )
    % 60 as float )
    as varchar ) AS avg_time_diff_in_hh_mm_format
    FROM temp
    Please let me know if you need additional information.
    Thanks in Advance.

    Thanks for the reply Frank,
      I have tried some similar lines with your suggested approach, please see below:
    --DDL
    CREATE TABLE XX_ORD_TIMES
    (ORDER_NUM NUMBER(15),
             ACTUAL_START_DATE DATETIME,
             ACTUAL_FINISH_DATE DATETIME)
    --Sample Data
    Insert into XX_ORD_TIMES
       (ORDER_NUM, ACTUAL_START_DATE, ACTUAL_FINISH_DATE)
    Values
       ('SFM-07', TO_DATE('06/20/2013 14:22:58', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('06/21/2013 07:58:55', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into XX_ORD_TIMES
       (ORDER_NUM, ACTUAL_START_DATE, ACTUAL_FINISH_DATE)
    Values
       ('SFM-07', TO_DATE('06/21/2013 09:12:42', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('06/21/2013 09:18:15', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into XX_ORD_TIMES
       (ORDER_NUM, ACTUAL_START_DATE, ACTUAL_FINISH_DATE)
    Values
       ('SFM-07', TO_DATE('06/20/2013 15:59:07', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('06/20/2013 17:06:17', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into XX_ORD_TIMES
       (ORDER_NUM, ACTUAL_START_DATE, ACTUAL_FINISH_DATE)
    Values
       ('SVCEXT', TO_DATE('05/16/2013 11:56:05', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('05/24/2013 14:47:54', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into XX_ORD_TIMES
       (ORDER_NUM, ACTUAL_START_DATE, ACTUAL_FINISH_DATE)
    Values
       ('SVCEXT', TO_DATE('05/07/2013 09:23:37', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('05/07/2013 13:00:14', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into XX_ORD_TIMES
       (ORDER_NUM, ACTUAL_START_DATE, ACTUAL_FINISH_DATE)
    Values
       ('SVCEXT', TO_DATE('05/09/2013 14:06:08', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('05/22/2013 13:25:03', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into XX_ORD_TIMES
       (ORDER_NUM, ACTUAL_START_DATE, ACTUAL_FINISH_DATE)
    Values
       ('SVCNEWPLON', TO_DATE('05/21/2013 13:17:45', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('05/24/2013 14:35:04', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into XX_ORD_TIMES
       (ORDER_NUM, ACTUAL_START_DATE, ACTUAL_FINISH_DATE)
    Values
       ('SVCNEWPLON', TO_DATE('05/24/2013 09:00:04', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('05/29/2013 09:30:32', 'MM/DD/YYYY HH24:MI:SS'));
    --Avg time diffs
    SELECT  ORDER_NUM,
             ACTUAL_START_DATE
             ACTUAL_FINISH_DATE
                    TO_NUMBER (
                       SUBSTR (
                          NUMTODSINTERVAL (
                             AVG (
                                  CAST (ACTUAL_FINISH_DATE AS DATE)
                                - CAST (ACTUAL_START_DATE AS DATE)),
                             'DAY'),
                          2,
                          9))
                  * 24
                + TO_NUMBER (
                     SUBSTR (
                        NUMTODSINTERVAL (
                           AVG (
                                CAST (ACTUAL_FINISH_DATE AS DATE)
                              - CAST (ACTUAL_START_DATE AS DATE)),
                           'DAY'),
                        12,
                        2))
             || ':'
             || CASE
                   WHEN LENGTH (
                           TO_NUMBER (
                              SUBSTR (
                                 NUMTODSINTERVAL (
                                    AVG (
                                         CAST (ACTUAL_FINISH_DATE AS DATE)
                                       - CAST (ACTUAL_START_DATE AS DATE)),
                                    'DAY'),
                                 15,
                                 2))) < 2
                   THEN
                         '0'
                      || TO_NUMBER (
                            SUBSTR (
                               NUMTODSINTERVAL (
                                  AVG (
                                       CAST (ACTUAL_FINISH_DATE AS DATE)
                                     - CAST (ACTUAL_START_DATE AS DATE)),
                                  'DAY'),
                               15,
                               2))
                   ELSE
                      TO_CHAR (
                         SUBSTR (
                            NUMTODSINTERVAL (
                               AVG (
                                    CAST (ACTUAL_FINISH_DATE AS DATE)
                                  - CAST (ACTUAL_START_DATE AS DATE)),
                               'DAY'),
                            15,
                            2))
                END
                AS TIME_DIFF
        FROM XX_ORD_TIMES
       GROUP BY ORDER_NUM,
             ACTUAL_START_DATE
             ACTUAL_FINISH_DATE
             order by 1;
    Yes, I am trying to show the time difference of two timestamps ( finish date , start date ) in Hours:Mins  and also calculate the average of this Hours : Mins by ORDER_NUM .
    Please advise.
    Thanks again.

  • Select entries between two dates by converting Unix timestamp in Oracle Dat

    Hi,
    I need to select the entries between two dates from an Oracle db. The Oracle db has a column with Unix timestamps. I use the following querry, but it doesnt seem to be working as desired.
    select count(*) from reporter_status where to_char(FIRSTOCCURRENCE, 'mm-dd-yy') between ('08-07-06') and ('08-08-06');
    FIRSTOCCURRENCE has the Unix timestamps.
    Could anyone help me out with this. Thank you for your help.

    Assuming that it is actually a UNIX timestamp, then it is the number of seconds since Jan 1, 1970, so you need something like:
    SELECT COUNT(*)
    FROM reporter_status
    WHERE TO_DATE('01-Jan-1970', 'dd-mon-yyyy') + (firstoccurrence/24/60/60)
                    BETWEEN TO_DATE('08-07-2006', 'mm-dd-yyyy') AND
                            TO_DATE('08-08-2006, 'mm-dd-yyyy');Did Y2K not teach us anything? Use 4 digit years.
    John

  • Need help on timestamp in oracle....

    hi
    in my web application i hav oracle as backend. Through web page i m suppose
    to make entry in the database. The table contains 2 entries for datatype TIMESTAMP(6) out of these one is compulsory (i.e not null) and other is not compulsory. here is what i m doing in coding:
    in java servlet
    long q = System.currentTimeMillis();
    query = "INSERT INTO TABL(field1,field2,field3,field4,field5,field_timestamp) VALUES(" val1 ",'" + val2 + "','" + val3 + "','"+val4+"','"+val5+"',to_timestamp("+q+"))";
    int r=stmt.executeUpdate(query);
    but this code gives me error that column does not exists ....
    can anyone help me i want to store timestamp value in the table....

    Probably one of those things that you are concatenating in there appears to be a column name (instead of a literal) in your SQL. When you got an error message suggesting there was a problem with your SQL, did it not occur to you that you should look at the SQL? What you posted there is just some rubbish code that generates the SQL.
    I call it rubbish code because it would be much easier, not to mention more practical, to use a PreparedStatement.

Maybe you are looking for

  • More than one slideshow in iDVD?

    I have just finished creating a slideshow & imported it to iDVD as my new project. However, now I want to make another one. I want to know if it is possible for me to add another slideshow to the same iDVD project or I have to make it as a separate o

  • Time Machine External Hard Drive Back Up

    I am wondering if there is a way to back up on time machine an external hard drive connected to my airport extreme. Here is my set-up: iMac with a 2TB external hard drive connected via firewire to the actual iMac in the back airport extreme connected

  • Pages v5.5.2 - Missing Option for right-to-left languages (bi-directional) such as Arabic & Kurdish

    Started using Pages as Windows for Mac does not support right-to-left languages (Kurdish, Arabic) effectively. BUT, sadly disappointed that Pages does not seem to support right-to-left (bi-directional) text either. I realise it gives you the option o

  • HP All in One officejet 4630 not printing

    Hi all, I bought my officejet 4630 earlier and haven't been able to print anything at all. When I press print it sends it the document to the printer but a few minutes later comes back with an error message. It scans fine and is connected through a U

  • A question about the multiple source table for the logical table

    Hi All, I am to test, having two physical sources for an logical table, but it is failing as it is always getting data from only one table rather than two tables. !http://picasaweb.google.com/KSivaUS/OracleForumQuestions#5433761212378087346! Any sugg