How to limit extract base on date condition in oracle goldengate?

Hi all,
I have a problem about date condition in extract parameter:
My extract parameter:
GGSCI>edit params ext1
EXTRACT ext1
USERID ggadmin, PASSWORD ggadmin
EXTTRAIL /u01/app/oracle/product/gg/dirdat/lt
DDL INCLUDE MAPPED
table test.chien, where (id >4 and TDATE>TRUNC(TO_DATE('01/01/2011 00:00:00','DD/MM/YYYY HH24:MI:SS')));
when I start extract, have a error:
+7. 2011-11-04 07:06:45 ERROR OGG-01157 Oracle GoldenGate Capture for Oracle, ext1.prm: Error in WHERE clause for TEST.CHIEN.+
I check where condition in the select statement is ok.
I don't know what is different between condition in params of extract and condition in select statement?
Please explaint to me and hepl me how to limit extract capture base date condition,
Thanks so much.
Omni
Edited by: user12378049 on 21:46 03-11-2011

Thanks for Stevencallan's reply.
I try again with Stevencallan's way, but not successful.
TABLE SCOTT.EMP, sqlpredicate "where EMPNO >4 AND HIREDATE> TO_DATE('01/01/1911 00:00:00','DD/MM/YYYY HH24:MI:SS')"; All Error is the same my old post:
2011-11-07 05:37:52  INFO    OGG-01517  Oracle GoldenGate Capture for Oracle, ext1.prm:  Position of first record processed Sequence 26, RBA 21009936, SCN 0.1498876, Nov 7, 2011 5:34:14 AM.
2011-11-07 05:37:53  ERROR   OGG-00212  Oracle GoldenGate Capture for Oracle, ext1.prm:  Invalid option for MAP: "where.
2011-11-07 05:37:53  ERROR   OGG-01668  Oracle GoldenGate Capture for Oracle, ext1.prm:  PROCESS ABENDING. {code}
The trunc(date) to round date to the first time in the day. I think it is not reason of the error.
{code} The TRUNC (date) function returns date with the time portion of the day truncated to the unit specified by the format model fmt. The value returned is always of datatype DATE, even if you specify a different datetime datatype for date. If you omit fmt, then date is truncated to the nearest day. Please refer to "ROUND and TRUNC Date Functions" for the permitted format models to use in fmt.
{code}
I have no resolution for this problem yet.
Who had passed this case and had resolution? Please tell me your way
Thanks so much.
---Omni                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • HOW CAN I EXTRACT THE SYSTEM DATE?

    HOW CAN I EXTRACT THE SYSTEM DATE?

    import java.util.*;
    import java.text.SimpleDateFormat;
    public class date2{
        public static void main(String[] args){
            Date today = new Date();
            SimpleDateFormat output = new SimpleDateFormat();
            String answer = output.format(today);
            System.out.println(answer);
    }If you want to make it prettier, you can look at using a locale, or a pattern string in the SimpleDateFormat constructor. Read the Documentation.
    Note that new Date(), constructs a Date with the current Time,
    you could also use: new Date(System.currentTimeMillis());
    Hope this helps
    -Philip.

  • How can i extract the particular data from Base tables

    Hi
    I have some Base R/3- Tables . I need to exact the data from these base tables.
    But i need to select some type of datarecords(eg: select Material Documents from MSEG and MKPF tables based on movement types 261,262).
    Something like that . So how can i select the particular category datarecords from base tables. Anyway im going to create the Custom DataSource.
    So please let me know . how can i extarct tha particular data from base tables
    kumar

    Hi Venkat
    See i have some 5-tables . I need to extarct from these tables.
    first i need to extract the data from one table fully.
    Then i need to extarct the data from second table based on profict centers, company codes of first table.
    Then i need to extract the data from third table based on profict centers of first table and movement type = 2p,2n,2s condition.
    So how can i extarct like this data from multiple tables.
    Please let me know
    kumar

  • How to migrate SQL Server image data type to Oracle 8 BLOB data type?

    Hi,
    I have to migrate data from sql server to Oracle 10 g.
    I am unable to migrate image data type from sql server to blob data type in oracle.
    Iam using Oracle Heterogenous Services to migrate the data,Using Merge statement and database link.
    I am getting the following error-
    ERROR at line 7:
    ORA-00932: inconsistent datatypes: expected BLOB got LONG BINARY
    Can any one suggest me how to migrate Image datatype to BLOB???

    Hi you might want to post your question in General Forum.
    General Database Discussions
    There's very few users visit this forum.

  • How do I extract original photo date when importing photos?

    Hi,
    I am trying to import photos from a backup CD of pictures that I created in August. However, when I import them into iPhoto, the date that gets associated with the photo is the August date of the CD creation instead of the original photo date.
    I can see the original date of the photo image file, and I want that to be the date that iPhoto uses to organize the photos.
    Is there any preference I can set to extract the date information from the image data itself and NOT from the date stamp on the CD file?
    Thanks!
    Jason
    Message was edited by: JasonGP

    Please don't take the following as a flame...
    <quote>The move option is grayed out when importing from a card to save you from yourself. At least that's what I've always assumed.</quote>
    That's a bit draconian don't you think? Why have the option greyed out if you don't want the user to be able to do this. It's kind of like saying hahah, this is possible to do, but, you, the user, are a moron. Why even place the option on the page in the first place.
    <quote>It just happens to be a bug that few on this forum care to see fixed because most of us feel that using it is unwise due to the danger of lost images and corrupted cards.</quote>
    Again, why put it on page as an option if it weren't intended to be enabled in a plist somewhere for those who wish to be 'unwise.'
    My logic is as follows: If Apple provides software that is more accessible to the 'unwashed masses' (because it's included with Leopard ie. Image Capture) and it deletes images directly from the camera, then why would a professional package (Aperture) limit the so called 'professional' from designing and using his/her own workflow governed by their own experience. Which could include first a backup to dvd or other device of your choice (keyword here: CHOICE) THEN import images and delete directly from the camera. Logically this is completely BACKWARDS, the app available to the 'masses'(Image Capture) should NOT let the user delete images directly from the camera and the 'professional' app (Aperture) should allow more flexibility for the advanced user who understands the implications of his/her work flow and adjusts accordingly.
    Besides, And I quote myself "I have searched the forums here and have only seen people offer advice why this is not good. Not to be an A##, but I don't want advice. I need an answer to my question. How do I enable this functionality?"
    Therefore, respectfully, your answer is: non sequitur.
    Best Regards

  • How to limit the number of price conditions in a sales order

    Dear experts,
    We've created discounts in our pricing procedure, and they are added manually. They have a maximum.
    But the problem is that the user can add several discount price conditions in the sales order!
    Is there any customizing to limit the number of occurrences to 1 in the pricing procedure?
    Thank you for your help
    Marjolaine

    HI,
    You can make use of feature to maintain maximum and minimum limits per condition type.
    SPRO > SAP Implementation Guide > Customer Relationship Management > Basic Functions > Pricing > Define Settings for Pricing > Create Minimum/Maximum Limits
    In this activity you can restrict manual processing of pricing conditions in transactions using minimum and maximum limits per condition type.
    Kindly reward with points in case helpful
    Sharif

  • How to Limit the Displaying of Data Using PointTheme over the map

    Hi,
    I have the following requirement, which i'm trying to implement with <dvt:map & <dvt:PointTheme components.
    *The requirement is ... I have a base map, which is being accessed via <dvt:map component. And i'm using point theme to display certain data over the map. Let us consider, over the US map ... i'm displaying 24 points(for each polygonone point .... taking the centroid of each polygon) when the map zoom level is 0.
    At this zoom level '0', user can see all 24 points. But when the user start clicking on '+' to Zoom In(Now the zoom level is '1'), at this zoom level user can see only 18 points. User can see the remaining 6 points by dragging the base map to either sides.
    This mean, irrespctive of the zoom level the point theme is rendering the all the points over the map. Instead, i would like to display the data specific to the polygons that are visible to the user. At zoom level '0', if the user is able to see all the polygons, then display all 24 points. And at zoom level '1'...if the user is able to see 18 polygons and then display only those 18 points. And if the user tries to see the other polygons data ... user may drag the base map either sides. In that case, the point theme should render data specific to the polygons that the user is able to see.
    Similarly, if the user is at zoom level '2'...at this zoom level user is able to see 13 polygons over the IE. so the point theme should render only 13 points specific to each polygon. If the user tries to do dragging the base map either sides...then display the points, specific to the polygons that the user is able to see.
    Similarly for other zoom levels ... Please let me know if you require any other information.
    Thanks & Regards,
    Kiran Konjeti

    You'll need to do a little software workaround on the values you read from your counter.   But first a little tutorial to explain *why*.
    The E-series boards use 24-bit counters.  When LabVIEW requests an integer count value, the count is returned in a 32-bit unsigned integer datatype, where the 24 lowest bits represent the value in the board's count register.  The upper 8 bits are *always* 0's.
    The count register can increment from 0 to 16 million plus (2^24 - 1), then it must "roll over" back to 0 again just like an odometer.  Similarly, when it decrements past 0, it next goes to the max value of 2^24 -1 as you observed.
    So we need a little software workaround that'll convert (2^24 -1) to (-1) and (2^24 -2) to (-2), etc.  The way to do it is to first detect whether the highest bit is a 1.  One way is to compare whether the count value is >= 2^23, making sure to use integers to do the comparison.  Whenever the value is >= 2^23, subtract 2^24 from it to create your new count value which will then decrement 3,2,1,0,-1,-2,-3, etc. as desired.
    Here's a link to a similar explanation.  Couple more notes too.  First, if this is a continuously rotating encoder, you may still encounter a discontinuity when the revised count value crosses the +/- 2^23 boundary.   Second, direct connection of a quadrature encoder to an E-series board isn't recommended because of unrepeatability when measureing direction changes.
    -Kevin P.

  • How to generate TPC-E schema/data sets in Oracle 11g

    Hi,
    I want to use TPC-E schema in my Oracle 11g database (Standard) and also want to use DATA SETS from this benchmark for some kind of testing.
    I've download EGen v1.8.0 from this TPC website:
    http://www.tpc.org/tpce/default.asp
    but don't know who to implement this benchmark database into my computer's database. I'll appreciate if someone please suggest me how to do this...
    Thanks alot.
    Best Regards,
    Kamran

    kamran safdar malik wrote:
    I want to find Optimal size of a data block size as this is the one parameter which can increase the performance of a database or decrease it.If there is a single optimal size, that would surely be the default Oracle block size - as Oracle should know perhaps better than any of us, just what block size differences do as it is their code that uses it?
    Can I ask why you said that you would not have chosen this topic as a thesis?My leaning has always been to expert systems and A.I. Even designed and written my own expert system language years ago. One thing that is critical in such systems is how you structure data - and that has a nice database angle to it. One that I believe can still be exploited for research purposes.
    Don't you think that it'll benefit DBA's or database developer after I reach a successful conclusion?To be honest, in the real world of database systems, the least of my concerns are data block sizes. For example, we're busy putting together a storage array that should have a maximum I/O pipe size of 40Gb. In comparison, we currently use dual 2Gb fibre channels on most of our servers for our I/O.
    Technology moves fast. And perhaps there is an ideal block size for the standard storage array and Oracle instance today - but that could invalidated by new technology next year. Would I want to spend time and effort studying and analysing and researching a very specific technical subject, that perhaps is not considered as of that critical importance by DBAs and perhaps can be outdated with new technology and techniques?
    I honestly do not want to put you off studying db block sizes. Perhaps there's still some critical issues to uncover in that respect. But personally.. there are many other subject areas in database technology that peak my interest a lot more. But then you have your personal preferences and likes and dislikes - and data blocks could be your muse. :-)

  • How can I transfer the meta data to the Oracle OLAP Object?

    When I finished in building a simple DataWare house demo in the warehouse Builder, I got meta data. But it seems that those doesn't present in the "<Database>" - "OLAP" - "Dimension" where the Sample "SH" resides.I just want to export those metadata to the SQL script, but failing to import the script to the Database. How can I transfer my demo's meta data to the OLAP Object? It is the last step to finish the whole process and I can't solve the problem.
    I'll appreciate any one who can help me.

    Hello,
    To enter/move the metadata for dimensions and facts to the OLAP catalog, you need to perform the following actions:
    1) Create a business area in the OWB business tree holding the dimensions and facts you want in OLAP
    2) Perform a metadata export, using the bridge (not to file!)
    3) This will launch a wizard that will guide you through this process, follow the instructions carefully
    4) Upon completion you will see metadata added into the OLAP catalog
    We will be releasing a new version for this, which will be running on 9.2.0.2 database that allows you to use all the new 9i Release 2 OLAP features. This will create Analytic Workspaces from Warehouse Builder and should be released late this year (around end of November).
    Hope this helps,
    Jean-Pierre

  • Need to know how to limit the number of rows returned on Oracle

    MS SQL Server has a command called 'set row count'.
    We are trying to find similar one on Oracle.
    What we are trying to do is that instead of using rownum in the query statement, we would like to find way to limit the number of rows returned. I understand that we can use JDBC resultSet object, but that's not what we want.
    I know Oracle has one called arraysize, but this would not limit the number of rows returned either.
    Pease help.
    Thanks

    I understand that we can use JDBC resultSet object, but that's not what we want.I'm not sure which feature of ResultSet you use and which not.
    But if this question has anything to do with JDBC (that's the forum where you put it), I'd recommend to use Statement.setMaxRows(). This will limit the count of rows which your statement will fetch into it's ResultSet.

  • OCI Error ORA-01403: no data found in oracle goldengate replication after tts instaniation

    I recently migrated our tg core system from sun solaris(11.1.0.7) to linux (11.2.0.3) environment using goldengate method (transportable tablespace method used for instantiation).
    The initial replication worked with HANDLECOLLISIONS and after I monitor the lag finished, I took Handlecollisions off and noticed discarded report with OCI Error ORA-01403: no data found in two replications.
    I followed every step in the tts migration steps provided by oracle best practice.
    Can anybody provide any clue how do I fix this issue?
    Thank you in advance.

    extract and replicat are on schema level.
    DO I have to do anything for replication on schema level?
    Basic trandata logging enabled on source.

  • How to use clob or blob data type in OWB

    how to use clob or blob data type in OWB?
    if OWB not surport these data type,how can i extract the large data type from data source

    The same question was asked just two days ago No Data Found: ORA-22992
    Nikolai Rochnik

  • Extraction of InfoCube data from BW system to non SAP system

    Hello All,
    Is the extraction of InfoCube data from BW system to non SAP system availbale only for BW 3.5 release ? If yes, how can we extract the InfoCube data to a non SAP system with SAP BW 3.1 ?
    Hope to get some help.
    Best Regards,
    Loveline.

    Hi Gianfranco,
    Thanks for replying.
    Yes I know that open hub service is the appropriate technique to extract data from the infocube.
    But if we look at SAP Netweaver documentation : Prior to SAP NetWeaver '04(since the SAP BW release I am working is 3.1); We find that we have the option to extract to a DB table or flat file.
    Now if we look at SAP Netweaver documentation : SAP NetWeaver '04; In addition to the above we have the option to extract to a non SAP system.
    My requirment is to extract data from InfoCube to a non SAP system. The SAP BW release I am using is 3.1
    Best Regards,
    Loveline.

  • How do I extract calendar files?

    Thank you for reviewing this post.  I appreciate any help you are willing to provide.
    I recently bought a new win 7 machine.  My tech copied all my old data from the previous machine to a single folder on my new machine. 
    I have some Palm data .... But it did not import and the TX model will not install on my Win 7 machine, so I have to get this done through Palm Desktop.  (I read that might be caused by the fact I went to version 6 of palm software and tried to import).
    Quite simply here is my issue:  I really just want to get my calendar information.  I am probably going to use a different calendar program in the near future.
    How can I extract the calendar data from the raw files?  (Calendar.dat, etc)????
    MUST I import or somehow go through Palm Software, or can this be done outside of the Palm framework?
    I just FEEL that this cannot be anything too difficult, but I am so stuck and missing appointments daily.
    I am very grateful for your help.
    Don in Tucson
    AizA 
    Post relates to: Palm TX
    This question was solved.
    View Solution.

    With the version of the data files you have, you will need to install Palm Desktop 4.2 or 4.1.4e. You will need to uninstall Palm Desktop 6.2, if that is what you have installed currently. The files with the extension of .dat are not compatible with PD 6.2.
    Another thing to consider is the version of Win7 you have installed. If you have 64 bit version, you will only be able to sync wirelessly using bluetooth, Infrared or wi-fi. On your PC go to the computer icon and right click. Look on the page and see if it states 64bit anywhere. If you have the 32bit version, you can sync via the USB cable method but you need to make sure you have the correct version of PD installed. 
    To put the .dat files into PD, you will need to go to the username folder on the program drive and paste the files into the correct subfolder. Make sure PD is closed. Go to c-program files-palm and look for the PD user folder. Once you locate the folder, look for subfolders in that folder for address (this is the folder for contacts), datebook (calendar), memos and tasks. Paste the address.xxx files into the address folder, the datebook.xxx files into the datebook folder, etc. Once the files are in the respective locations, open PD and see if the data is there. If it is, you can then setup the sync according to your Win7 version, either wireless or USB.

  • Is 000001010000z a valid date time in Oracle?

    Hi,
    When working with Open LDAP connection from Oracle, I need to set and remove the value '000001010000z' for locking and unlocking the user account respectively. This is working fine. However, for some calculation, I need to convert this value as a date value which I couldn't do. Is this a valid date time in Oracle? If so how to convert it as a date value.
    Oracle version: 10g R2
    Thanks,
    Natarajan

    Thanks, Mithun for your answer. We have the same issue, as an user, we can lock an account using the special value, but unable to unlock using the same user. I have reported this to our LDAP administrator.
    Regarding my question using this special value as a date value in oracle, though it is a valid date in the LDAP system, we cannot convert this as a date value in Oracle.
    Natarajan

Maybe you are looking for

  • Remote desktop broken after 10.9.3 update

    After the 10.9.3 update, remote desktop is completely broken... The ard status monitor display : Apple Remote Desktop is disabled. I try a clean install (app + system library coreservice remote management + user library pref ans aap support deleted.

  • Debugging for exceptions caught by adapter framework

    I am getting an error ' Exception caught by adapter framework while processing message to remote system..' Is there any way to debug in such cases. while executing sxmb_moni i am getting status processed successfully but getting an error in the runti

  • In a unique website I must manually refresh( once +) to change pages

    When in www.uswatersystems.com and attempting to change pages (ie. by clicking on a category or type of part button) a "transferring data...) notice appears at Lower Left screen but the page remains blank. Clicking the refresh (now X) button (changed

  • Photo sequence in albums?

    Recently updated to ios 8 and been really like the new changes to the photo app.... I have all my photos organised into albums, but I USED TO be able to choose which photo in an album was the one displayed when looking at all the album thumbnails in

  • A potential solution to problems viewing websites on Safari, firefox etc.

    I wanted to share with you this most curious incident, which for once has a happy ending - for whatever help it may provide others with similar problems to me.. so here goes: Since about mid-June I (on my iMac G5) and my partner on his MacBook have b