OGG Using Colmap and Datenow millisecond.....

Hi
i have a problem.
i want to put the current time in target table column.
table column datatype
SQL> desc yyy
Name                                      Null?    Type
COL1                                               VARCHAR2(30)
COL2                                               VARCHAR2(30)
COL3                                               TIMESTAMP(6)
so i used the following parameter,
1)
MAP "GGS"."XXX"       ,      TARGET GGT.yyy      , colmap(col1=cola,col2=colb, col3=@date("yyyy-mm-dd hh:mi:ss.ss", "yyyy-mm-dd hh:mi:ss.ss", @datenow() );
2)
MAP "GGS"."XXX"       ,      TARGET GGT.yyy      , colmap(col1=cola,col2=colb, col3=@datenow() );
the result of both two methods are as follows:
3          4          02-SEP-13 01.55.00.000000
4          5          02-SEP-13 01.56.53.000000
@datenow function does not get the millisecond value?
If I would like to express the value in milliseconds, what should i do?

Format the date so it includes the milliseconds. You are truncating it. If your col3 is a date data type, just use col3=@datenow() and not worry about the formatting. If you need fractional seconds (which would be FF, and DATE does not include that to begin with), use TIMESTAMP.
Datetime Datatypes and Time Zone Support

Similar Messages

  • Error wile using colmap

    Hi,
    I am getting some error while using colmap command. Attached below are my extract, datapump, replicat files. Pls let me know what i need to fix this error
    Thanks
    Extract
    EXTRACT eactlg
    EXTTRAIL ./dirdat/ea
    USERID gguser, PASSWORD gguser
    TABLE xxx.MP_EXP_IMP_MAX_LIMITS_OT;
    datapump
    EXTRACT pactlg
    RMTHOST <hostname>, MGRPORT 15001, COMPRESS
    RMTTRAIL ./dirdat/pa
    PASSTHRU
    TABLE MP_EXP_IMP_MAX_LIMITS_OT;
    replicat
    REPLICAT ractlg
    DISCARDFILE ./dirrpt/ractlg.dsc, PURGE
    USERID gguser, PASSWORD gguser
    SOURCEDEFS ./dirsql/MP_EXP_IMP_MAX_LIMITS_OT.sql
    MAP xxx.MP_EXP_IMP_MAX_LIMITS_OT, TARGET yyy.EBSSPD_MEL_LOG,&
    COLMAP ( USEDEFAULTS, &
    SBN = SUBMIT_ID, &
    BMU_ID = UNIT_NAME, &
    DATETIME_RECEIVED = SUBMIT_TIME, &
    DATETIME_FROM = START_TIME, &
    DATETIME_TO = END_TIME, &
    VD2_MEL_IT = FROM_VALUE, &
    VD1_MEL_IT = TO_VALUE, &
    SOURCE = LIMIT_TYPE, &
    DML_TYPE = LIMIT_TYPE, &
    TIMESTAMP = UPDATE_TIME, &
    USER_NAME = UPDATE_USER);
    Error in report
    Source Context :
    SourceModule : [er.main]
    SourceID : [/scratch/aime2/adestore/views/aime2_staxk11/oggcore
    /OpenSys/src/app/er/rep.c]
    SourceFunction : [take_rep_err_action(short, int32_t, const char *, e
    xtr_ptr_def *, std_rec_hdr_def *, char *, file_def *, bool)]
    SourceLine : [16148]
    2012-01-19 02:55:37 ERROR OGG-01296 Error mapping from xxx.MP_EXP_IMP_MAX_LIMITS_OT to yyy.EBSSPD_MEL_LOG.
    error in discard
    Key column BMU_ID (1) is missing from update on table NED.EBSSPD_MEL_LOG
    Key column DATETIME_RECEIVED (2) is missing from update on table NED.EBSSPD_MEL_
    LOG
    Key column DATETIME_FROM (3) is missing from update on table NED.EBSSPD_MEL_LOG
    Key column DATETIME_TO (4) is missing from update on table NED.EBSSPD_MEL_LOG
    Key column VD2_MEL_IT (5) is missing from update on table NED.EBSSPD_MEL_LOG
    Key column VD1_MEL_IT (6) is missing from update on table NED.EBSSPD_MEL_LOG
    Key column SOURCE (7) is missing from update on table NED.EBSSPD_MEL_LOG
    Key column DML_TYPE (10) is missing from update on table NED.EBSSPD_MEL_LOG
    Missing 8 key columns in update for table NED.EBSSPD_MEL_LOG.

    I have turned on database supplemental logging and trandata for the table. Also i have regenerated the def files and placed them in the correct location and deleted and added the replicat. But yet i have no success and am getting the same error. The strange part is that the initial load went fine and i had the same mapping there as well. Pls help
    Initial configuration
    SQL> select supplemental_log_data_min from v$database;
    SUPPLEME
    YES
    GGSCI (ng-db) 4> info trandata xxx.MP_EXP_IMP_MAX_LIMITS_OT
    Logging of supplemental redo log data is enabled for table xxx.MP_EXP_IMP_MAX_LIMITS_OT
    replicat
    REPLICAT ractlg
    DISCARDFILE ./dirrpt/ractlg.dsc, PURGE
    USERID gguser, PASSWORD gguser
    SOURCEDEFS /abbrt/oracle/GG/dirdef/MP_EXP_IMP_MAX_LIMITS_OT.defs
    MAP xxx.MP_EXP_IMP_MAX_LIMITS_OT, TARGET yyy.EBSSPD_MEL_LOG,&
    COLMAP ( USEDEFAULTS, &
    SBN = SUBMIT_ID, &
    BMU_ID = UNIT_NAME, &
    DATETIME_RECEIVED = SUBMIT_TIME, &
    DATETIME_FROM = START_TIME, &
    DATETIME_TO = END_TIME, &
    VD2_MEL_IT = FROM_VALUE, &
    VD1_MEL_IT = TO_VALUE, &
    SOURCE = LIMIT_TYPE, &
    DML_TYPE = LIMIT_TYPE &
    TIMESTAMP = UPDATE_TIME, &
    USER_NAME = UPDATE_USER);
    ractlg.rpt
    MAP resolved (entry xxx.MP_EXP_IMP_MAX_LIMITS_OT):
    MAP xxx.MP_EXP_IMP_MAX_LIMITS_OT, TARGET yyy.EBSSPD_MEL_LOG,COLMAP ( USEDEFAULTS, SBN = SUBMIT_ID, BMU_ID = UNIT_NAME, DATETIME_RECEIVED = SUBMIT_TIME, DATETIME_FROM = START_TIME, DATETIME_TO = END_TIME, VD2_MEL_IT = FROM_VALUE, VD1_MEL_IT = TO_VALUE, SOURCE = LIMIT_TYPE, DML_TYPE = LIMIT_TYPE TIMESTAMP = UPDATE_TIME, USER_NAME = UPDATE_USER);
    2012-01-20 02:24:33 WARNING OGG-00869 No unique key is defined for table EBSSPD_MEL_LOG. All viable columns will be used to represent the key, but may not guarantee uniqueness. KEYCOLS may be used to define the key.
    Using the following default columns with matching names:
    Error with default mapping. No matching fields found in source and target
    Using the following key columns for target table yyy.EBSSPD_MEL_LOG: SBN, BMU_ID, DATETIME_RECEIVED, DATETIME_FROM, DATETIME_TO, VD2_MEL_IT, VD1_MEL_IT, SOURCE, TIMESTAMP, USER_NAME, DML_TYPE.
    2012-01-20 02:24:34 WARNING OGG-01431 Aborted grouped transaction on 'yyy.EBSSPD_MEL_LOG', Mapping error.
    2012-01-20 02:24:34 WARNING OGG-01003 Repositioning to rba 13032111 in seqno 0.
    2012-01-20 02:24:34 WARNING OGG-01151 Error mapping from xxx.MP_EXP_IMP_MAX_LIMITS_OT to yyy.EBSSPD_MEL_LOG.
    2012-01-20 02:24:34 WARNING OGG-01003 Repositioning to rba 13032111 in seqno 0.
    Source Context :
    SourceModule : [er.main]
    SourceID : [scratch/aime2/adestore/views/aime2_staxk11/oggcore/OpenSys/src/app/er/rep.c]
    SourceFunction : [take_rep_err_action(short, int32_t, const char *, extr_ptr_def *, std_rec_hdr_def *, char *, file_def *, bool)]
    SourceLine : [16148]
    2012-01-20 02:24:34 ERROR OGG-01296 Error mapping from xxx.MP_EXP_IMP_MAX_LIMITS_OT to yyy.EBSSPD_MEL_LOG.

  • Using Functions and/or Graphs with Custom Cell Formats in Numbers

    I am attempting to use the AVERAGE function or create a graph in Numbers for cells with a custom format, however, I keep receiving an error message telling me that "Numbers can't be divided by Zero" or an empty graph.
    The format I am using is for a split time for a certain distance, as in time it takes a runner to go around a track: minute:seconds.milliseconds i.e. 1:56.4
    Is there a solution to the formatting or another way to accomplish having the correctly formatted cell and still be able to use functions and graphs.

    Hi nich.lee,
    You can't chart Duration formatted data without first converting it to another format. Also, you will get an error if you attempt to use the AVERAGE function on an empty range.
    Here's an example of charting Duration data by using a conversion...
    Best regards,
    Jerry

  • Looking for sample code using "first_tab" and "next_tab"

    Looking for sample code using "first_tab" and "next_tab". How is it used with ItemID within a dialog box? I've read the reference books - don't understand it.

    Hi Ray,
    There are several ways to do this, and in the example I created, I actually did not end up using shift registers. I've attached some example code that basically multiplies the period by the duty cycle percentage to achieve the number of milliseconds to be high and low.
    You would just need to insert your DIO code in each frame of the sequence structure.
    Hope that helps. Kind regards,
    -Sam F, DAQ Marketing Manager
    Learn about measuring temperature
    Learn how to take voltage measurements
    Learn how to measure current
    Attachments:
    70_PWM_Example.vi ‏23 KB

  • Using NULL and NOT NULL in prompted filters

    Dear all,
    While trying to grap the concept of prompted filters in sap bo web intelligence, I had a question whether why we cannot use NULL and NOT NULL while creating a prompted filters in our report.

    HI,
    'Is Null' and 'Not Null' are the predefined functions in webi which only eliminate the null values or considering only null values.
    'Is Null' and 'Not Null' are itself predefined functions that why you are not getting  prompts.
    Null values are standard across the databases so this is defined  as a function in webi to specific eliminate the null values.
    If something is not standard then there is option in the webi to use different operator with static values or with prompts.
    More more information on Null see the Null wiki page.
    Null (SQL) - Wikipedia, the free encyclopedia
    Amit

  • How do I use Qt and OpenGL with Visual Studio

    Hi! I mainly want to program in C++ and I want to use Qt and OpenGL with Visual Studio.
    I am currently revising C++ and later on i am going to start reading Qt and OpenGL. I have a background of
    Embedded firmware design(C and Assembly).
    The Visual Studio Version I have is 2013 ultimate. How do I use Qt and OpenGL with Visual Studio?
    Thanks
    Alexandros

    Hi ClassicalGuitar,
    The forum supports VS setup and installation. And your issue is not about the forum. I will move the thread to off-topic forum. Thanks for your understanding.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Use VBA and Excel to open Dreamweaver HTML (CS5), find and replace text, save and close

    I wish to use VBA and Excel to programmatically open numbered Dreamweaver HTML (CS5) and find and replace text in the code view of these files, save and close them.
    I have  5000 associations between Find: x0001 and Replace: y0001 in an Excel sheet.
    I have the VBA written but do not know how to open, close and save the code view of the ####.html files. Please ... and thank you...
    [email protected]

    This is actually the code view of file ####.html that I wish to find and replace programmatically where #### is a four digit number cataloguing each painting.... In 1995 I thought this was clever... maybe not so clever now :>)) Thank you for whatever you can do Rob!
    !####.jpg!
    h2. "Name####"
    Oils on acrylic foundation commercial canvas - . xx X xx (inches) Started
    Back of the Painting In Progress </p> </body> </html>
    Warmest regards,
    Phil the Forecaster, http://philtheforecaster.blogspot.ca/ and http://phils-market.blogspot.ca/

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • TS3999 I had an icloud account setup in 2009 when I first got my family members each a mac. I let that account expire(we never used it) and I don't know how to get it off of my ical. It is not recognizing any of the information to reset the password?

    I had an icloud account in 2009. We set it up as a family plan because my family had just changed from PC to Mac. We never used it and let the plan expire in 2010. My ical will not sync with my new iphone because it is linked to the family plan account that no longer exist. Because I don't remember my password, I tried resetting it. It says the personal information I entered is incorrect, but I know the information is correct...It's my birthday it asks for! Does anyone know how to get that account off of my mac without the account existing?

    You were a MobileMe (not iCloud) subscriber in 2009 and this service has been terminated. However the login is an Apple ID and this never expires. What is your operating system? Do you have a MobileMe icon in System Preferences? - if so you should be able to sign out in it, but you may not have an iCloud icon to let you create an iCloud account, though you can do so if your iPhone has iOS 5 or above.
    If you are getting login requests or other irritations from your MobileMe account you can go to (user)/Library/Preferences/ByHost and delete all .plist files beginning with com.apple.DotMac or com.apple.idisk, then reboot.
    The minimum requirement for iCloud to let you sync your data is 10.7.5 though you can sync through iTunes (except with Mavericks).

  • Can I use classes and methods for a maintenance view events?

    Hello experts,
    Instead of perform/form, can I instead use classes and methods, etc for a given maintenance view event, lets say for example I want to use event '01' which is before saving records in the database. Help would be greatly appreciated. Thanks a lot guys!

    Hi viraylab,
    1. The architecture provided by maintenance view
       for using EVENTS and our own code inside it -
       It is provided using FORM/PERFORM
       concept only.
    2. At this stage,we cannot use classes.
    3. However, inside the FORM routine,
       we can write what ever we want.
       We can aswell use any abap code, including
       classes and methods.
      (But this classes and methods won't have any
       effect on the EVENT provided by maintenance view)
    regards,
    amit m.

  • Error while accessing a library using content and structure

    I have a library having document and folder inside it. When I open the library using content and structure I get an error with a correlation ID. When checked the the logs with Correlation ID got an error message "View 'All Document' does not exist."
    'All Document' is name of default view on the library.
    When I open the library from view all site content the library is being opened.
    Please help!!!

    Hello Victoria,
    Thanks for  the response.
    I have tried troubleshooting steps given by you. 
    Check if the issue occurs with other users. Use another user to access the library in Content and Structure and then compare the results. --
    I tried with different users but no luck
    Make sure that the user account with issue has permission to view the All Documents view of the library. --
    Yes, user Account have the permission
    Check if the issue occurs with other libraries in the Content and Structure. If not, I recommend to save the library as
    a template including contents and then create a new library based on this template. After that use the new library instead of the old library. --
    No other library have this problem. I cannot save the library as template including the contents as the it has many folders and  files. The current size of library is 786 MB
    Clear cache in the browser or use another browser to see if the issue still occurs. --
    tries but issue persists.
    Best regards,
    Ratnesh

  • How do I install windows 7 on a macbook pro mid 2009 using bootcamp and no optical drive?

    How do I install windows 7 on a macbook pro mid 2009 using bootcamp and no optical drive?
    My optical drive is non-functional and I want to dual boot with win7. The only problem is my macbook does not boot from USB at all, even when I hold th ALT key down when it is starting up.
         -I have a flashdrive with win7 on it.
         -I mounted the ISO of win7 with toast for bootcamp to do its thing.

    Good luck.
    Consider this a bump so that hopefully someone with better news spots your thread.
    Allan

  • Using iPhoto and editing with Photoshop Elements 4

    Hello
    I am new to Macs after many years using PC and I am struggling to set up my photo workflow. I shoot in RAW format and input into iPhoto from iPhoto I double click on the photo and which opens the RAW editor in Photoshop Elements. After making changes I open the file in Photoshop and then save as a TIFF.
    My problem is I do not see the changed and saved file in iPhoto and if I double click on the photo again it opens back up in the RAW editor not as a TIFF.
    Can any one point me in the right direction to solve this or is what I am trying to do not possible
    Thanks
    Grant

    Grant
    Welcome to the Apple Discussions.
    What you're trying to do is not possible.
    When you save as a TIFF you create a whole new file that needs to be imported into iPhoto anew. iPhoto will track an edit as long as you stay with the same file - so, edit your jpeg in PSE and use the 'Save' command and the change is reflected in iPhoto. However, you cannot Save RAW files, it's always a Save As... and so the resulting file has to be imported.
    Regards
    TD

  • Hi,  If I have 1 license for creative cloud, will it possible to install in 2 computers (1 laptop and 1 desktop)?  When I am in the office I can use desktop and at home I can use laptop? At the same time I will be using only one devise. Will that be possi

    Hi,  If I have 1 license for creative cloud, will it possible to install in 2 computers (1 laptop and 1 desktop)?  When I am in the office I can use desktop and at home I can use laptop? At the same time I will be using only one devise. Will that be possible?  Thanks

    Yes. Yes. Yes.
    Mylenium

  • Get "Creation Script" of the existing table ( in SQL database) using C# and without using SMO dlls

    Hi All,
    I need to get the "Creation Script" of the existing table using c# and without using SMO dlls (is it possible? I don't know).
    I.e. In SQL Management Studio -> right click on any table -> Script table as -> Create To  - > open in the new query editor window. This will give you the schema of the table with the constraints of the table.
    For E.g. In Northwind database, for the table "Categories", I would like to get it as show below
    USE [Northwind]
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[Categories](
        [CategoryID] [int] IDENTITY(1,1) NOT NULL,
        [CategoryName] [nvarchar](15) NOT NULL,
        [Description] [ntext] NULL,
        [Picture] [image] NULL,
     CONSTRAINT [PK_Categories] PRIMARY KEY CLUSTERED
        [CategoryID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    I would like to get the same schema using c#. Please help.
    Thanks & Regards,
    Kalai.

    SMO is the easiest way to get this. This is what Management Studio uses. If you can't use SMO, get a Profiler trace of the queries that SMO executes when generating the script and execute the same using ADO.NET.
    Regards,
    Farooq Mahmud
    Support Escalation Engineer 
    •  Microsoft Health Solutions Group

Maybe you are looking for

  • Background job not showing full output of Report

    Dear Experts we have created zpgm for stad report and try to take output as mail to particular user for future analysis bcaz stad gives only 2 days report only we need keep report for months together so when we run job in foreground it shows proper o

  • Trial download of Acrobat XI Pro fails

    I try to download a trial of Acrobat XI Pro. It starts downloading CS6 - over and over. Then it decides to try Elements 13. Then I decide to accept the CS6 downloads. It is an incomplete download, even though it claims to be "complete." I am using Fi

  • Payment File Encryption

    Hello, I would like to know the process of payment file encryption.... Please let me know where i can get the SAP documentation on this. Thnx SundAR

  • I have some fonts showing up in Japanese(?)

    I just installed illustrator from CC. First object I insert and some fonts are named in English but have Japanese characters instead of "sample" Other fonts are all Japanese. I checked edit > preferences > type. There is no English option of any kind

  • Webview goback doesn't work in iframe?

    I have an page, called MyPage.html loaded into a UIWebview that uses an iframe. When the user is inside the iframe, they may click many links. At some point they select "goback". I expect the webview to go back to the previous page in the iframe but