LAST_UPDATE_DATE audit column (sysdate times)

Hello

I have an interactive report + page of form on a table (with the attribute called LAST_UPDATE_DATE). I am populating this column by using the element in the form of
 TO_DATE(SYSDATE, 'DD-MON-RRRR HH24:MI:SS') 
But this action fills the release date: 23 / SEP / 09 12.00.00.000000 AM, the time being still, 12.00.00.000000 AM

Tried workaround solutions:
 
1. Instead of TO_DATE(SYSDATE, 'DD-MON-RRRR HH24:MI:SS'), I used the expression 
TO_DATE(TO_CHAR(SYSDATE, 'DD-MON-RRRR HH24:MI:SS'), 'DD-MON-RRRR HH24:MI:SS')
which works fine when executing directly in DB.
2. Altering the session by : alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS';
I'm still facing the same problem. Help, please.

Thank you
Mary

Good then build something hidden with the default value being generated by:

Select systimestamp
Double;

have a page that updates the column in the table was updated with this value if the registration key...

Thank you

Tony Miller
Webster, TX

Tags: Database

Similar Questions

  • My array is not having that columns every time I ran the OAF page in Jdev wife who wants mandatory columns how to override that columns?

    My array is not having that columns every time I ran the OAF page in Jdev wife who wants mandatory columns how to override that columns?

    That add columns to your table, it is necessary for the audit also. It is a preferred method of creating custom table. It will do no harm.

    If you want to continue to move forward with the recommended not method, take a look to follow the link.

    iWiDi - EO without columns that

    See you soon

    AJ

  • Select sysdate time

    Hi Experts,

    I concatenate a date (not sysdate) with the time system and save it in a column with the data type Date...

    So, I tried like this...

    SELECT

    TO_CHAR (C_DATE, 'DD-MON-YYYY')

    || ' '

    || TO_CHAR (SYSDATE, ' HH: MI: SS PM "")

    FROM DUAL;

    But while you insert the result of the query above in my table, it throws error like this...

    ORA-01830: date format picture ends before converting all of the input string

    Is it possible to achieve...

    Thanks in advance.

    Hello

    The | operator produces a string.  Do not use a string as a date; Use a DATE.  For example

    INSERT INTO new_table (c_date)

    SELECT TRUNC (SYSDATE) + (c_date - TRUNC (c_date))

    Of ancienne_table;

  • you want to look up a word in a column several times?

    Hi all

    To search for a word in the column and after this word want to read values until I encounter a blank cell, uptill this I could get the code, but then in the same column again I must look for same word and start reading again.

    In short if I encounter the word "Name" three times in one column I start reading immediately three times after that until the next very empty cell.

    I enclose the code and my .xl file.

    I hope someone could guide me...

    Thank you very much...

    Pals

    I couldn't open your code that I don't use Labview 2010.

    But you are using while loop, so if you want all the data, you can replace tunnel (of while loop) and select the option activate Indexing.

    It will give you 2D data. Each column for each header.

    I hope you know to activate Indexing concept.

  • How to audit events from timer

    Hi all

    With regard to the events of the capture timer on a BPM process:

    Is it possible to check the defined time of each of these events to trigger?
    That means these internally, they are NDA events queued on table EDN_EVENT_QUEUE or are they jobs on the SOAQTZ tables?

    My main concern is on how to test if the timer is set correctly. I would rather to check his time to trigger on other tables to wait 12 hours to go and check if it worked as planned.

    Thank you

    Tiago

    They are added to the WORK_ITEM table. Trip time must be column date_exp

  • ALTER TABLE with the column NULL time consuming

    Hello

    I have a table with nearly 2 million documents (about 10 GB size table) when I perform the following change statement its run fast

    ALTER TABLE tbl_1 ADD (DEFAULT col_4 NUMBER 100 NOT NULL);

    but when I do not give the NOT NULL in the alter its taking a long time to complete this i.e tbl_1 of ALTER TABLE ADD (NUMBER col_4 by DEFAULT 100); once I do the column as NOT NULL.

    Can someone explain why is it happening like that regarding the execution point.

    Thanks in advance.

    I can reproduce the effect in 11.2.0.1 - but not in 12.1.0.1.

    drop table tbl_1;

    create table tbl_1

    as

    Select rownum id

    , lpad ('* ', 50,' *') padding

    of the double

    connect by level<=>

    ALTER TABLE tbl_1 ADD (NUMBER col_4 by DEFAULT 100);

    --> slow in 11.2.0.1; fast 12.1.0.1

    ALTER TABLE tbl_1 ADD (DEFAULT col_4 NUMBER 100 NOT NULL);

    --> Quick 11.2.0.1 and 12.1.0.1

    A SQL trace for two operations (11g) shows that the altar slow (without the constraint explicit non-null) made explicit (and tedious) update of any row in the table:

    Update 'TBL_1"set"COL_4"= 100

    call the query of disc elapsed to cpu count current lines

    ------- ------  -------- ---------- ---------- ---------- ----------  ----------

    Parse        1      0.00       0.02          0          1          0           0

    Run 1 11,63 33.56 8336 1016125 2053531 1000000

    Fetch        0      0.00       0.00          0          0          0           0

    ------- ------  -------- ---------- ---------- ---------- ----------  ----------

    Total 2 11,63 33,58 8336 1016126 2053531 1000000

    The other trace file does not contain the explicit Update. I guess in the optimized case that oracle stores somewhere that col_4 has the value 100 and updates only the line of the block after completing DML operations. But that's just a guess.

  • I want to buy Adobe Audition as a time of purchase, not as a monthly subscription.

    I'm a long-time Adobe Audition using.  First used when it was cool edit.  I don't use it very often, but when I use it there is no other software that I found that can do the job easily.  I don't really want to buy an auto renew membership because I don't use the software often enough to justify the cost.  I want to buy a full version of the software of the hearing.  I'm not picky about the version.  I installed the CS6 trial and he is now expired.  Please advise me on how to buy a full version of the software without monthly fees or memberships.

    Thank you

    Adobe no longer seems to sell no CS6 version on their Web site, but you can still buy these Adobe software by contacting by phone.  I'm sure they will try to persuade you to join creative Cloud, but you can insist you did your thing on the CS6 and moving forward

    http://www.Adobe.com/products/CS6.html?promoid=KFOZQ

  • How to return all the TIME in a column date time?

    Hello.

    My column 'DATETIMESTAMP' usually returns November 15, 2011 10:32:15 '.

    If I TRUNC (DATETIMESTAMP) I can get just the date - what is optimal.

    But what I want here is just the TIME element.

    SUBSTR does not seem to return anything after the date element.

    I've searched high and low.

    Any thoughts people?

    See you soon.

    Ady.

    To_char(DateTimeStamp,'HH24:mi:SS')

  • Cannot retreieve column Date time

    Hello:

    I am newbie to Toplink. We use toplink 10.1.3.5 and my map file has been migrated from 9. In Oracle 10 DB, table, column type is Date and it stores the date and time. In my java code is java.util.Date.

    When toplink retrieves the date, it only retrieves the date and not the time. I get a time 12 noon. How can I get time also. Time is in the Oracle Date column.

    I have search the forum but can't find a satisfactory answer.

    Thank you

    SS

    What is the type of the column in the database, and you specified the Oracle10Platform class in your session login information? I think that it is probably related to the issue described in Oracle DATE with the time truncates only so far that is caused by the driver database, returning a java.sql.Date for DATE types object when getObject is used - the java.sql.Date has not the time part that can exist in the domain. The solutions are to make sure that you use the appropriate platform which will then call getTimestamp to return part time as well, or you can specify - Doracle.jdbc.V8Compatible = "true" so it behaves as it did, which is to return the portion of time for types DATE. " You can also use the type TIMESTAMP in the database.

    Best regards
    Chris

  • I get a bunch of junk for the values in a column of time stamp: 0x00000000000265FF

    I get a bunch of junk for a time stamp column values:

    things like:

    0x00000000000265FF
    0 x 0000000000026601
    0 x 0000000000026602

    I expected eligible dates.

    After reading this I realize my error :)

    http://www.sqlteam.com/article/timestamps-vs-datetime-data-types

  • the date column display time

    Hi all


    How can I display time of data such as on April 23, 2011 18:53:10 '?
    any Councillor will be entirely appreciate.thx




    concerning
    CCM

    You can use
    substring to get the position of the hour.

    
    
  • STARTING in the same column several times with 2 different condition

    Hello world

    I have a small question, but I can't find the answer. Can someone help me with this one? Look at this example:
    WITH T AS (
      SELECT 'a' as Name, 1 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 2 as v FROM DUAL
    ) SELECT DISTINCT name, 
             COUNT(DECODE(v, 1, 1, null)) OVER (PARTITION BY name ORDER BY v) as v1,
             COUNT(DECODE(v, 2, 1, null)) OVER (PARTITION BY name ORDER BY v) as v2
        FROM T
      ORDER BY 1;
    This returns:
    NAME V1                     V2                     
    ---- ---------------------- ---------------------- 
    a    1                      0                      
    a    1                      2                      
    b    2                      0                      
    b    2                      1                      
    But what I need in a single row with the count of 1 and 2 by name. How can I get without using subqueries as (the following query returns the correct result)
    WITH T AS (
      SELECT 'a' as Name, 1 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 2 as v FROM DUAL
    ) SELECT DISTINCT t.name, 
             (SELECT COUNT(*) FROM T z WHERE z.name = t.name and z.v = 1),
             (SELECT COUNT(*) FROM T z WHERE z.name = t.name and z.v = 2)
        FROM T t
      ORDER BY 1;
    The table I'm working on that has millions of records with subqueries it takes forever to run. The one with the analytical function takes less than 3 seconds.


    Thanks for your help!

    If I understand correctly, you need a global tally, not an analytical account. Something like:

    SQL> WITH T AS (
      2    SELECT 'a' as Name, 1 as v FROM DUAL
      3    UNION ALL
      4    SELECT 'a' as Name, 2 as v FROM DUAL
      5    UNION ALL
      6    SELECT 'a' as Name, 2 as v FROM DUAL
      7      UNION ALL
      8    SELECT 'b' as Name, 1 as v FROM DUAL
      9      UNION ALL
     10    SELECT 'b' as Name, 1 as v FROM DUAL
     11      UNION ALL
     12    SELECT 'b' as Name, 2 as v FROM DUAL)
     13  SELECT name, COUNT(DECODE(v, 1, 1, null)) v1,
     14           COUNT(DECODE(v, 2, 1, null)) v2
     15  FROM T
     16  GROUP BY name
     17  ORDER BY 1;
    
    N         V1         V2
    - ---------- ----------
    a          1          2
    b          2          1
    

    John

  • Made with multi date columns to the dimension of time

    Hello world

    First let see my script:

    I have the control panel with these columns

    order_no (int),

    create_date (date),

    approve_date (date)

    close_Date (date)

    ----

    I have a time hierarchy dimension: time

    I want to see at the time of the hierarchy, how many orders created, approved and closed for each time part(year,quarter,month,..) as below:

    Date | created | approved | closed

    ————————————————------------------------

    2007-1st quarter | 50. 40         | 30

    2007 - q2 | 60. 20         | 10

    Q3-2007 | 10. 14         | 11

    2007-4th quarter | 67. 28         | 22

    Q1-2008 | 20. 13         | 8

    Q2-2008 | 55. 25         | 20

    Q3-2008 | 75. 35         | 20

    Q4-2008 | 90. 20         | 2

    My solution:

    Physical layer;

    1. I create an order f alias as the fact table for the roll of the order

    2 i joined f-ordered with d-time (time alias) on f_order.created_Date = d - time.day_id

    3 - I added 2 logical column with the formula of the measures:

    Sum aggregation is_approved(If approve_date= THEN 0 else 1)

    Sum aggregation is_closed(If closed_date= THEN 0 else 1)

    order_no (will use to measure aggregation created County

    When I create the report in analytics in the generated query he used created_date and this isn't what I expected!

    What is the best solution?

    1-

    If I have to create 3 is of the order: f_order_created, f_order_approved, f_order_closed and join each other on these columns d-time?

    f_order_created.created_Date = d - time.day_id

    f_order_approved.approved_Date = d - time.day_id

    f_order_closed.closed_Date = d - time.day_id

    2-do you create my fine measure?

    Hello anonymous user,.

    The approach with three done alias that you then use in three separate sources of logical table for your logical fact is the right one. This way, you keep canonical once and did do the role play.

    So you won't need to 3 facts in the layer of logic that you ask above, but only 3 LTS. Physically, you need 3 alias joined the dimension of time with the join specifications you mention of course.

    PS: Jeff wrote about this a few years if you want to take a look.

  • "One time" column in dbms_xplan.display_cursor is summed up?

    Hello

    I did some research on the internet before this announcement, but I could find enough information.

    "One time" column in dbms_xplan.display_cursor is summed up?
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                                                    | Name                           | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |  OMem |  1Mem | Used-Mem |
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                                             |                                |      1 |        |    155 |00:06:36.28 |    4957K|  34952 |       |       |          |
    |   1 |  SORT ORDER BY                                               |                                |      1 |      1 |    155 |00:06:36.28 |    4957K|  34952 | 55296 | 55296 |49152  (0)|
    |   2 |   NESTED LOOPS                                               |                                |      1 |      1 |    155 |00:06:30.04 |    4957K|  34952 |       |       |          |
    |   3 |    NESTED LOOPS                                              |                                |      1 |      1 |    155 |00:06:30.04 |    4957K|  34952 |       |       |          |
    |   4 |     NESTED LOOPS                                             |                                |      1 |      1 |    155 |00:06:30.04 |    4957K|  34952 |       |       |          |
    |   5 |      NESTED LOOPS                                            |                                |      1 |      1 |    155 |00:06:30.04 |    4956K|  34952 |       |       |          |
    |   6 |       NESTED LOOPS                                           |                                |      1 |      1 |    155 |00:06:30.04 |    4956K|  34952 |       |       |          |
    |   7 |        NESTED LOOPS                                          |                                |      1 |      1 |    155 |00:06:30.03 |    4956K|  34952 |       |       |          |
    |   8 |         NESTED LOOPS                                         |                                |      1 |      1 |    155 |00:06:30.03 |    4956K|  34952 |       |       |          |
    |   9 |          NESTED LOOPS                                        |                                |      1 |      1 |    155 |00:06:30.03 |    4956K|  34952 |       |       |          |
    |  10 |           NESTED LOOPS                                       |                                |      1 |      1 |    155 |00:06:30.03 |    4955K|  34952 |       |       |          |
    |  11 |            NESTED LOOPS                                      |                                |      1 |      1 |    155 |00:06:30.03 |    4955K|  34952 |       |       |          |
    |  12 |             NESTED LOOPS                                     |                                |      1 |      1 |    155 |00:06:30.03 |    4955K|  34952 |       |       |          |
    |  13 |              NESTED LOOPS                                    |                                |      1 |      1 |    155 |00:06:30.03 |    4954K|  34952 |       |       |          |
    |* 14 |               HASH JOIN                                      |                                |      1 |      1 |    155 |00:06:30.03 |    4954K|  34952 |   872K|   872K|  927K (0)|
    |  15 |                VIEW                                          |                                |      1 |     15 |      8 |00:06:28.63 |    1305K|  34883 |       |       |          |
    |* 16 |                 FILTER                                       |                                |      1 |        |      8 |00:06:28.63 |    1305K|  34883 |       |       |          |
    |  17 |                  HASH GROUP BY                               |                                |      1 |     15 |      8 |00:06:28.63 |    1305K|  34883 |   760K|   760K| 1077K (0)|
    |  18 |                   VIEW                                       |                                |      1 |     15 |    341 |00:00:50.44 |    1305K|  34883 |       |       |          |
    |  19 |                    UNION-ALL                                 |                                |      1 |        |    341 |00:00:50.44 |    1305K|  34883 |       |       |          |
    |  20 |                     VIEW                                     | V_POSNR_2011000           |      1 |      7 |    303 |00:00:50.44 |     645K|  31282 |       |       |          |
    |  21 |                      UNION-ALL                               |                                |      1 |        |    303 |00:00:50.44 |     645K|  31282 |       |       |          |
    |  22 |                       VIEW                                   | V_POSNR_0200011           |      1 |      2 |     20 |00:00:50.42 |     429K|  31244 |       |       |          |
    |  23 |                        UNION-ALL                             |                                |      1 |        |     20 |00:00:50.42 |     429K|  31244 |       |       |          |
    |  24 |                         NESTED LOOPS                         |                                |      1 |      1 |     20 |00:00:50.42 |     376K|  28979 |       |       |          |
    |* 25 |                          HASH JOIN                           |                                |      1 |      1 |     20 |00:00:50.42 |     376K|  28979 |  1096K|  1096K| 1348K (0)|
    |* 26 |                           TABLE ACCESS BY INDEX ROWID        | PROPERTIES                     |      1 |      6 |   2651 |00:00:00.02 |    2131 |      0 |       |       |          |
    |* 27 |                            INDEX RANGE SCAN                  | P_SETAALDATE_IDX               |      1 |      6 |   2651 |00:00:00.01 |      21 |      0 |       |       |          |
    |  28 |                           VIEW                               | VW_JF_SET$7992605D             |      1 |      2 |    504 |00:02:30.85 |     374K|  28979 |       |       |          |
    |  29 |                            UNION-ALL                         |                                |      1 |        |    504 |00:02:30.85 |     374K|  28979 |       |       |          |
    (hope this execution plan is reasonably legible)

    I thought that the columns A-time indicates the time of the operation in question (summarizing all time from the operation of the child)

    but this seems different:
    |* 25 |                          HASH JOIN                           |                                |      1 |      1 |     20 |00:00:50.42 |     376K|  28979 |  1096K|  1096K| 1348K (0)|
    |* 26 |                           TABLE ACCESS BY INDEX ROWID        | PROPERTIES                     |      1 |      6 |   2651 |00:00:00.02 |    2131 |      0 |       |       |          |
    |* 27 |                            INDEX RANGE SCAN                  | P_SETAALDATE_IDX               |      1 |      6 |   2651 |00:00:00.01 |      21 |      0 |       |       |          |
    |  28 |                           VIEW                               | VW_JF_SET$7992605D             |      1 |      2 |    504 |00:02:30.85 |     374K|  28979 |       |       |          |
    Line 25 is a JOIN hash including a tableTABLE (1) the ACCESS BY INDEX ROWID and (2) the result of a VIEW
    The Timing of the HASH (line 25) JOIN is 00:00:50.42, but the timing of the VIEW is 00:02:30.85 who ought both to complete before you chop it can happen

    So I thought the HASH JOIN would be (at least) a schedule of the 00:02:30.85 of the VIEW, plus the 00:00:00.02 of the TABLE ACCESS BY INDEX ROWID.

    But it seems that it is a misconception, can anyone shed light on this?

    Best regards

    Published by: x45r32 on April 4, 2012 08:25

    Published by: x45r32 on April 4, 2012 08:46

    Hello

    How do you collect statistical plan - via STATISTICS_LEVEL = ALL or gather_plan_statistics reference to the declaration?

    The indicator is known for producing inaccurate schedules from time to time (has to do with the sampling frequency), STATISTICS_LEVEL = ALL should be more specific.

    Best regards
    Nikolai

  • DATAEXPORT RDBMS - changing column dim accounts on time

    While performing a DATAEXPORT to Oracle using the DSN, the format of the created table has members of the account dimension in columns and other dimensions in the lines. Is it possible to change the size of the accounts column in time everything by exporting the data to the RDBMS uses the DATAEXPORT command?

    The problem is that I have about 1000 members in the dimension of accounts and that it cannot be that a large number of columns in my table. Is it possible to manually set the size of column when you use the DATAEXPORT command? I can use the cdf Jexport, but I don't know if I'll get the same performance as the DATAEXPORT with the bulk insert options.

    Thank you
    FJ

    See my ignorance. I use this command all the time with relational and it works fine. I guess I should have read the reference tech closer and I never would have tried.

Maybe you are looking for