Date handeling in ogg.

Hi,
windows server 2008 and sqlserver 2005 , oracle 11g express r2, ogg for sqlserver V34016-01.
and ogg112101_ggs_Windows_x86_ora11g_32bit
about configuration of parm files and globles they all have minium configuration. except globles has USEANSISQLQUOTES on oracle side.
which few managers on both side.
after replicating i have see dates are transfering properlly
but, i would like to know , that how dates are transferd by ogg from mssql to oracle.
, it decieds the source date formate and targe formate,
i have read about the functions of date in ogg that says about source date format and target date formate,
but the problem is how to find good formate , far universion situation.
so that nothing happen to transfer of date in any condition , whether date formate of operating system or database are diffrent or same.
so please suggest some universal date formate and please also tel me how date is handeld by ogg while transfering as stated above.
yours sincerely
Edited by: 944768 on Jan 6, 2013 8:47 PM

Hello,
Please take a look at the following sample to format date:
WITH MEMBER [Measures].[CurrentMonth] AS Format(Now(),"yyyyMM")
SELECT {[Measures].[CurrentMonth]}
ON 0
FROM [Adventure Works]
If you need to conver all of attributes to expected date format, we should create a named column in your DSV and then click the “…” button to specify the translation column.
If you have any feedback on our support, please click
here.
Regards,
Elvis Long
TechNet Community Support

Similar Messages

  • Initial Load Error

    Hi All
    I am trying to make inital load but I am receiving the following error.
    But trail file has been created on target in dirdat folder about 2GB size
    Source and Destination windows2003 32 Bit
    GG version is 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230
    Have you any idea??
    Source Context :
    SourceModule : [er.extrout]
    SourceID : [er/extrout.c]
    SourceFunction : [complete_tcp_msg]
    SourceLine : [1480]
    2013-01-09 18:00:57 ERROR OGG-01033 There is a problem in network communication, a remote file problem, encryption keys for target and source do not match (if using ENCRYPT) or an unknown error. (Remote file used is ./dirdat/INITLOAD01.DAT, reply received is Error 0 (The operation completed successfully.) getting position in ./dirdat/INITLOAD01.DAT).
    2013-01-09 18:00:57 ERROR OGG-01668 PROCESS ABENDING.
    ggserr.log on target
    OGG-01223 Oracle GoldenGate Collector for Oracle: Error 0 (The operation completed successfully.) getting position in ./dirdat/INITLOAD01.DAT.
    INFO OGG-01670 Oracle GoldenGate Collector for Oracle: Closing ./dirdat/INITLOAD01.DAT.
    INFO OGG-01676 Oracle GoldenGate Collector for Oracle: Terminating after client disconnect

    Why do you keep naming the file?
    Enter the parameters listed in Table 26 in the order shown, starting a new line for each parameter statement. The following is a sample initial-load Extract parameter file for
    loading data from file to Replicat.
    <your extract name>
    SOURCEISTABLE
    SOURCEDB mydb, USERID ogg, PASSWORD
    AACAAAAAAAAAAAJAUEUGODSCVGJEEIUGKJDJTFNDKEJFFFTC &
    AES128, ENCRYPTKEY securekey1
    RMTHOST ny4387, MGRPORT 7888, ENCRYPT AES 192 KEYNAME mykey
    ENCRYPTTRAIL AES192, KEYNAME mykey1
    RMTFILE /ggs/dirdat/initld, MEGABYTES 2, PURGE
    TABLE hr.*;
    TABLE sales.*;

  • Volume name of File path / getAbsolutePath, this is driving me insane

    Hello,
    i spent another several hours on this issue i'm having and i think i'm going nuts :=)
    so heres the problem:
    System: Mac OS, two partitions "Mac" and "DATA"
    i have a file "file1.ogg" on the "main" partition (where Mac OS x resides) in the directory tecxx/Music/file1.ogg
    i have a file "file2.ogg" on my NTFS data partition, in the subfolder /DJMUSIC/file2.ogg
    so far, so good.
    when i process these 2 files in my application with a File object and the method "getAbsolutePath()" i get:
    1) /Users/tecx/Music/file1.ogg
    2) /Volumes/DATA/DJMUSIC/file2.ogg
    note that path 1 does not contain any volume name at all, while path 2 contains not just the volume name, but "/Volumes/" in front of the path.
    allright, now here comes the problem. i have another application which uses these 2 files (a dj software). it spits out the filenames of these two tracks in an xml file with these path names:
    1) /Mac/Users/tecxx/Music/file1.ogg
    2) /Data/DJMUSIC/file2.ogg
    Note that this application adds the Volume name to both paths, but NOT /Volumes/.
    what i need to do now is match the filenames against each other. when i process the xml file of the dj app, i extract the filepath, and need to find it in my internal database of my application. but how do i do that, if java returns such strange names, one time without any volume-identifier at all, and the other time with a volume-identifier AND "/Volumes" as a prefx ?
    seriously, this is bugging me for over a week now and i spent the entire day trying to fix this (manually adding "/Volumes/" to the paths, trying different combinations of getAbsolutePath, getCanonicalPath, toURL.toExternalForm; etc,etc), but isn't there an easy solution to get the volume name AND path name of a file somehow?
    in short, i'd like to have a function always return something like this:
    // returns /Mac/somedirectory/somename.ext
    // or        /Data/otherdirectory/someothername.ext
    String getFullPathName(File f)
        return f.getVolumeName() + f.getAbsolutePath();
    }but how do i do the first part (getVolumeName)?
    please help or i will kill myself (just kidding :)
    cheers,
    robert
    Edited by: tecxxtc on May 9, 2008 10:24 AM
    Edited by: tecxxtc on May 9, 2008 10:24 AM

    >
    What program is generating the XML file? What operating system is the third-party software running on?
    I only ask because in my opinion, you should just be working with the absolute pathname, and clearly the third-party app is not doing that.
    >
    traktor dj studio, latest version. it runs either on windows or mac os x. in my case, i run it on windows, but many of my app users run it on mac os x.
    >
    What is the purpose of this application? Is it a script that you're only trying to use on your computer, with your current configuration? Are you trying to distribute it?
    >
    my app has the purpose of managing the song database for traktor dj studio (if you want to take a look.. here's the webpage: http://rrs.at/trakker/ )
    yes, i'm distributing it.
    >
    However, if this is just a script that you want to hack up for yourself, just do some string manipulation on your absolute paths:
    String file = myFile.getAbsolutePath();
    if ( file.startsWith("/Volumes/") {
       //replace "/Volumes" with empty string
    } else {
       //prefix "/Mac"
    }so, this is where i've come to myself. the first part - adding "/volumes/" works fine. but the second part will fail - as i don't know the volume name of the boot partitions of my users. it is not necessarily "/Mac" - thats only true on my own machine :)
    do have a nice idea for me how to solve that?
    i thought about creating a "new File" object for the path i'm reading from the xml, and then iterating my entire "database" of files, creating another "new File" object for each one, and comparing them with "equals". that might work, but that would mean, that for every path in the xml file (up to 2000 or more) i would have to compare to every path in my database (again, up to 2000 or maybe many more). i don't even want to calculate how many cpu calls this will generate... the hashtable lookup would just be way faster, if i could get the paths right.
    anyway, thanks for all the replies yet, you're really helpful. i'm aware of the filepath differences between windows and mac, and thanks again for your thorough explanations, but as i can't change the behaviour of this third party app i'm stuck with a solution here (and my mac os experience is near zero, but it is starting to get better ;=)

  • Teatimers - new and old

    Being fond of a good tea, and not so fond of an oversteeped tea, long time ago I found a kde app kteatime. A tea timer. When you pour water over your tea, start the timer, and it beeps/pops up a message when your tea is ready. I know... any timer would do, but this one has this nice cup sitting in the tray... animation... (Actually, when I installed linux on my own computer, this was the reason for me to use KDE.) It's a part of kdetoys package, or kdemod-kdetoys-kteatime.
    After using gnome for a while, I missed it, so started looking for a replacement, so that I don't have to load the heavy kdelibs everytime I just want to use kteatime. I found a gnome version (not so nice, admittedly) teatime-applet (it's in AUR, depends on some gnome libs).
    This is the point I wanted to get to: bwalle programmed pyteatime (in AUR, depends on PyGTK and python-notify). A nice replacement for the previous two, although it still misses a few features (like showing progress during timing, entering own teas/adjusting timing), but looks promising. Try it out!
    Now finally, since I use xmonad, I don't have a system tray. What now? I put together a trivial script, which can be run through e.g. dmenu (or built-in xmonad's app launcher) like this: "teatimer.sh 2 30", and after 2 minutes and 30 seconds it shows up a message (using xosd; EDIT: playsound is in sdl_sound; and you should replace /data/mp3/notify.ogg with your favorite beep).
    #!/bin/dash
    sleep $1m $2s
    playsound /data/mp3/notify.ogg &
    echo "TeaTimer --- pay attention to the tea, you daffodil!" | osd_cat -A center -p bottom -c green -d 10 -o 40 -f '-*-dejavu serif-bold-r-*-*-33-*-*-*-*-*-*-*' -s 2 -
    Drink tea, listen to silence.
    Last edited by bender02 (2008-04-06 01:56:47)

    Haha, u could (if u have the knowledge) build on top / complement your script with the LINUX-COFFE-MACHINE http://www.faqs.org/docs/Linux-mini/Coffee.html
    Now that would be terrific

  • ERROR OGG-01148 programming error, data type not supported for column

    I am getting following error when I put null in insert statement
    2011-03-31 18:30:45 ERROR OGG-01148 programming error, data type not supported for column TXID in table advoss.tblaudittrail.
    I am replicating MySQL 5.5.9 to Oracle 11g rel2 via goldengate 11

    I am able to diagnose what is cuasing the problem
    unsigned flag was the culprit of this error
    I am able to insert null after removing unsigned flag.
    thank you very much for your kind support

  • Is data is fetched directaly from sqlserver in ogg.

    hi!
    i am repliating from sql2005 sp3 to oracle 11g xe windows 2008, using ogg for sqlserver and ogg for oracle
    i would like to know from where i should specify path of .bak in ogg. becasue
    i was asked to take bakup of full db and transaction so i thought ogg is taking data from bakup .
    or is it taking data from .mdf and .ldf directally?
    if it is taking data from here then do i have to configure it any where in ogg.
    yours sincerely

    Log file normally, and backup of the log file under some circumstances. You need to specify the backup location if you are using the non-default location.
    The log backups can be in their default locations or in a non-default location. By default, the Extract process reads the log backups if the online logs do not contain the records that
    need to be processed. This can happen if Extract lags too far behind in the transaction
    stream, and the transactions get backed up and moved offline before they can be processed.
    By default, Extract looks for the log backups in the SQL Server default location. If you store
    the backups in a different location from the default, you must specify that location to
    Extract by using TRANLOGOPTIONS with the ALTARCHIVELOGDEST option in the Extract
    parameter file.

  • Can OGG capture change data set from Oracle Materialized Views ?

    Hi Gurus,
    We have 3 DB .
    1st one is for application . 2nd one is staging where data will come via Materialized Views i.e. we have MView log on DB_1 and have MView on DB_2 . MViews are getting refreshed incrementally everday .
    Now a new requirement has come so we need to pass the data from DB_2 to a new database DB_2 .
    If OGG can capture and replicate incremental data from Miews then we can go along with OGG .
    Can any one confirm the above ?
    Thanks,
    Pujan

    Hi Pujan,
    Yes. There are some restrictions mentioned in the section Limitations of support for materialized page 8 of the Oracle Installation and Setup Guide 11g Release 1 found here:
    http://www.oracle.com/technetwork/middleware/goldengate/documentation/index.html
    Good luck,
    -joe

  • OGG-01038  Cannot fetch required data from table

    hello i have the following error
    OGG-01038 Cannot fetch required data from table SIEBEL.S_EVT_MAIL due to missing key columns.
    here is my extract policy
    EXTRACT ext3
    setenv NLS_LANG=AMERICAN_AMERICA.AL32UTF8
    USERID ggs_owner, PASSWORD *******
    TRANLOGOPTIONS ALTARCHIVELOGDEST primary instance SBPRD1 /oraarch1/SBPRD, ALTARCHIVELOGDEST primary instance SBPRD2 /oraarch2/SBPRD
    FETCHOPTIONS FETCHPKUPDATECOLS
    DBOPTIONS ALLOWUNUSEDCOLUMN
    RMTHOST i**********, MGRPORT 7809
    RMTTRAIL /home/oracle/MIGRATE_SBPRD_ACFS/ggs/dirdat/ss
    DISCARDFILE discard.txt, APPEND
    DDL INCLUDE ALL
    TABLE IT.*;
    TABLE SIEBEL.S_EVT_MAIL,KEYCOLS(ROW_ID);
    TABLE SIEBEL.*;
    TABLE APDBA.*;
    TABLE EXECUTOR.*;
    TABLE FORTHNOVA.*;
    TABLE MIGRATOR.*;
    TABLE REPORTER.*;
    thanks a lot
    Edited by: user1165357 on Nov 24, 2011 1:06 PM
    Edited by: user1165357 on Nov 24, 2011 1:07 PM

    no pk or unique key
    SQL> desc SIEBEL.S_EVT_MAIL
    Name                                      Null?    Type
    ROW_ID                                    NOT NULL VARCHAR2(15 CHAR)
    CREATED                                   NOT NULL DATE
    CREATED_BY                                NOT NULL VARCHAR2(15 CHAR)
    LAST_UPD                                  NOT NULL DATE
    LAST_UPD_BY                               NOT NULL VARCHAR2(15 CHAR)
    MODIFICATION_NUM                          NOT NULL NUMBER(10)
    CONFLICT_ID                               NOT NULL VARCHAR2(15 CHAR)
    PAR_ROW_ID                                NOT NULL VARCHAR2(15 CHAR)
    EMAIL_ATT_FLG                             NOT NULL CHAR(1 CHAR)
    EMAIL_FORWARD_FLG                         NOT NULL CHAR(1 CHAR)
    MSG_MANL_EDTD_FLG                         NOT NULL CHAR(1 CHAR)
    BODY_LANG_ID                                       VARCHAR2(5 CHAR)
    CNTNT_CTG_DB_ID                                    VARCHAR2(15 CHAR)
    EMAIL_BCC_LINE                                     VARCHAR2(2000 CHAR)
    EMAIL_CC_LINE                                      VARCHAR2(2000 CHAR)
    EMAIL_RECIP_ADDR                                   VARCHAR2(250 CHAR)
    EMAIL_RECIP_NAME                                   VARCHAR2(100 CHAR)
    EMAIL_SNDR_ADDR                                    VARCHAR2(250 CHAR)
    EMAIL_SNDR_NAME                                    VARCHAR2(250 CHAR)
    EMAIL_TO_LINE                                      VARCHAR2(2000 CHAR)
    FORMAT_TYPE_CD                                     VARCHAR2(30 CHAR)
    MIME_CHAR_SET                                      VARCHAR2(50 CHAR)
    MSG_NUM                                            VARCHAR2(200 CHAR)
    EMAIL_BODY                                         LONG

  • MAXIMUM SIZE OF DATA THAT CAN BE HANDELLED BY SOAP ADAPTER

    hi 2 all,
    Soap adapter is calling webservice through bpm.So i but its taking time to call the webservice.So i wanted to know,what is the maximum size of data that can be handelled by the adapter.

    There is no maximum size. It depends on your h/w configuration and also the consuming applications response times as well.
    Ideally a payload size of 5 - 10 MB provides the best performance.
    Regards
    Bhavesh
    PS: Please do not use Captials on the Internet.

  • WARNING OGG-00869  Oracle GoldenGate Delivery, repdb2.prm:  [SQL error 0 (0x0)][Oracle][ODBC PostgreSQL Wire Protocol driver]String data, right truncated.

         When I migrate CLOB datas from Oracle 10g to PostgreSQL 9.0,and the target data type is text,the replicat process abend,and it reports as following:
    WARNING OGG-03056  Oracle GoldenGate Delivery, repdb2.prm:  Source table SDCMNET.T_INFO_SUPERIOR_PROGRAM column PRO_CONTENT_CLOB data size exceeds the maximum target table sdcmnet.t_info_superior_program column pro_content_clob size. Automatic truncation is enabled for all tables/columns without further warnings.
    WARNING OGG-00869  Oracle GoldenGate Delivery, repdb2.prm:  [SQL error 0 (0x0)][Oracle][ODBC PostgreSQL Wire Protocol driver]String data, right truncated.
    WARNING OGG-01004  Oracle GoldenGate Delivery, repdb2.prm:  Aborted grouped transaction on 'sdcmnet.t_info_superior_program', Database error 0 ([SQL error 0 (0x0)][Oracle][ODBC PostgreSQL Wire Protocol driver]String data, right truncated.
         But,according to the SEQNO and RBA,I find the records have been migrated,and the length of records is equal to what is in oracle.Then I try to use the odbc driver of postgresql 9.3 to replace,although I can login the database ,but it warns again.
         Can anyone help me?

    This forum is for Oracle Maven Repository.  You might have more luck posting your question in an forum for GoldenGate - you are more likely to find someone who knows about that product in its own forums.

  • How to handel parametrs when bi answers is data source

    Hi All,
    I created a report which having obi answers as data source.how to create a parameters for this report same like prompts in bi answer report.
    can any one help me in this.
    Thanks,
    KSS

    The native XML driver is incompatible with ADO.NET DataSet XML.  The specific issue is that the driver cannot handle the recursive definition on "Schema" that the .NET DataSet XML uses.
    The workaround is to create a .NET class that Web References, invoke the Web Service method for the DataSet, then returns it. 
    Use the ADO.NET (XML) driver in Crystal Report to consume the .NET data source.
    Note - when you deploy your report, ensure you deploy the DLL for the .NET class you've created.
    Sincerely,
    Ted Ueda

  • Ogg data filter

    Hi ,
    i'm newbie for goldengate , we have a requirement that, replication between oracle to oracle database ,source and target data structure are not identical, also required some filtered data from source ,  there are two tables in TARGET CUST A and USER B , there is a condition if A.cid=B.cid and b.uid = source table column value (S.CID) , 
    for ex ,
    select ACCID from CUST A, USER B WHERE A.CID = B.CID AND B.UID = SOURCE table.SUID ;  if the output value is ' O' then replicate B.accid as '111' else replicate '000'
    please help how to configure this in goldengate? thanks in advance

    Use the SOURCEDEFS parameter to specify the name of a file that contains definitions of source tables or files.
    To generate the source-definitions file, use the DEFGENutility. Transfer the file to the intermediary or target system beforestarting a data pump or Replicat
    Example 1 SOURCEDEFS dirdef\tcust.def
    Example 2 SOURCEDEFS /ggs/dirdef/source_defs

  • Droid 2 Global: OGG supported as ringtone, but not as a playable music file?

    I've been having some trouble playing .ogg music in the music player (by trouble I mean it comes back as mostly static), though Android 2.2 is supposed to support ogg natively. Motorola's site on the Droid 2 Global shows something interesting: http://www.motorola.com/Consumers/US-EN/Consumer-Product-and-Services/Mobile-Phones/ci.DROID2-Global-US-EN.alt
    It lists ogg under supported ringtones but not under Playable formates. Huh? What gives? I've even tried different players that are supposed to support ogg on this phone but they do nothing. Is anyone else experiencing the same problem? How is it that the ringtone can play it but the player cannot, even though Android 2.2 supports the formate?

    Oh me of little faith. The replacement phone syncs both ways. I guess there must be some data corruption that persists past a hard reset.

  • Is it possible to save the data in the trend graphs?

     I am making a HMI and want to user to be able to study earlier graphs. It would be best if this could be saved in a report or something.... I am using labview 8.0 and the DSC module. I understand that it is possible to save data in the citadel database, but I am not very familiar with database handeling and SQL, and this will be a difficult way for the users of my HMI to view data.... I am also interrested in showing alarm history in this report.....
    Thanks in advance for your help!
    -Mari

    Hi friends,
    With out scheduling the infopackage and DTP i want to upload the data into targets.
    Please give me clear solution.
    which function module i need to use for this.
    how to write the sub routine.
    Please could you give me solution clearly. i don't know ABAP very much.
    Please help me.
    Thanks,
    Guna.
    Edited by: gunasekhar raya on Sep 16, 2008 4:03 PM

  • Looking for a program that can handel import and export of palm doc files

    I am looking for a program that can handel the import and export of palm doc Files that can convert them to to either txt or RTF files for Vista 32, running Palm Desktop 7.1.
    Could anyone give me a few suggestions of any plug-ins that would be good me?
    Hearns
    Post relates to: Palm IIIxe
    This question was solved.
    View Solution.

    Ok, you need to clean uninstall Palm desktop 6.2. Install Palm desktop 4.1.4 and download and install documents to go version 6.
    Here are the clean uninstall instructioins for Vista.
    You should first make a copy of your data to have just in case something
    happens. You can find your data files by going to Start --> Documents -->
    Palm OS Desktop. Highlight your Palm Desktop username and right click and
    copy. Then go to your PC desktop right click on a blank spot and select paste.
    If this is the first time you are installing Palm desktop and encountering a problem, skip the previous step.
    Now you want to uninstall Palm Desktop and remove everything that has to do
    with Palm Desktop from your computer.
    Go to the following locations on the PC and delete the folders listed below.
    C:\Program Files\Palm or Palm One
    C:\Users\[Vista Login Name]\appdata\local\virtualstore\Program Files\Palm or
    PalmOne
    C:\Users\[Vista Login Name]\appdata
    *Note you may need to view hidden folders to get to appdata. To do that go
    into your control panel and open folder options. Go to view tab and uncheck
    hide hidden files.
    Once this is done you will need to delete some registry keys from your PC Operating System.
    Word of warning, going here and deleting the wrong thing can cause your PC
    from starting up, crashing and deletion of programs and data. If you feel
    you are unsure of yourself, see if you have a friend that can help you or a
    PC technician that you can pay to help you. This procedure will show them everything they need to delete. To make sure we have a good copy of the current registry, we need to do a backup of the Registry.
    Go to start on the PC, in the search field type "regedit.exe" without quotes.
    Highlight COMPUTER, go to File --> Export. Should pop up with a Save As box.
    Current location is fine, should be in My Documents or save to a location you will remember. In the file name on the bottom type "backup[todaysdate]" i.e. backup07072008. Next, the hard part.
    The easiest way to make sure your working with the correct key, highlight the key i.e. palm quick install, and press delete on your keyboard. It will ask you, are you sure. Say yes. Do the same thing for all keys below.
    If you make a mistake, stop what you are doing. And call a PC technician.
    BUT do not turn off your computer.
    The reg keys are as follows (Note: some of theses reg keys will not be here
    but if they are delete them)
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Palm Quick Install
    * HKEY_CURRENT_USER\Software\U.S. Robotics\PalmOne File Transfer
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Pilot Desktop
    * HKEY_CURRENT_USER\Software\Palm
    * HKEY_CURRENT_USER\Software\Palm, Inc.
    * HKEY_CURRENT_USER\Software\PalmDesktopAutorun
    * HKEY_CURRENT_USER\Software\palmOne
    * HKEY_CURRENT_USER\Software\PalmSource
    * HKEY_LOCAL_MACHINE\Software\PalmSource or anything else that says palm
    Next reboot your computer.
    Then reinstall your palm desktop from the CD and do a hotsync. Use the username that is on the handheld.

Maybe you are looking for