[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 576
  • Last Modified:

Mapping Using informatica

Hi,

I need a help in mappings using informatica.

I am trying to extract the data from one database 1(table1 ) to another database 2(table2).

In database 2(table2) already i have data upto yesterday.

I want to create daily extraction from one database 1(table1 ) to another database 2(table2).

I want to appent the data  every day. I need to shedule the job.
**************************************************************
Thing to keep in mind for the daily audit mappings:

 

As neither the source nor target tables have primary keys, the only way to update the data for only new rows is using the timestamp to determine which records are new. This approach is less than optimal. In additional to not being able to validate that all the new records written are actually new records (increasing risk of duplication), we also have to worry about running this daily. If a day is missed, we will lose data.

 

To filter the source based on date, you need to add a ‘Source Filter’ to each of your Source Qualifiers in your mapping that restricts the records you are pulling based on date. I assume this job would pull information based on the previous day (current date -1). You will most likely need to cast the NTIMESTAMP# field in the filter to be able to equate it to a date.

 

I would use NTIMESTAMP# = XXX rather than NTIMESTAMP# > XXX as this will allow us to be more specific in the extractions and have a more flexible rollback plan if we need one.

*****************************************************

Please help out to create mapping using informatica.

0
Cha1tu
Asked:
Cha1tu
  • 2
2 Solutions
 
aikimarkCommented:
@Cha1tu

Is there a unique key on these two tables?  If so, you might be able to take advantage of the unique key index to prevent duplicates and try to append all the rows.
0
 
Cha1tuAuthor Commented:
I don't think so, there is no unique key.
Do you want me to create unique key.
0
 
aikimarkCommented:
It is good practice to have a unique key for all tables as part of your database design (normalization process).

However, an arbitrary unique key won't do you any good unless your updates only happen on one side and are applicable to both table images.
0
 
gkrajasekarCommented:
Since you are also looking at automating incremental extraction, please take a look at the mapping template titled "Automate Incremental Extraction"  available on Informatica Marketplace at https://community.informatica.com/solutions/1635
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now