informatica session的使用

如果希望workflow存储最近20次的log,在session里的Config  Object设置,log  options做配置,save  session log :sessions  run  ;savesessio log for  these runs:20
session下面的source 里面有个tracing  level
tracing level详解:
Terse   Normal:Intergration  service里面有一些load的信息 
Verbose data:source里面load的每一条信息都会记录log
Verbose Initalization:target里面有用到哪些index都会在log中记录。一般情况我们选择normal
target  load  tyle:
bulk 指从source到target数据是直接批量提交,DB里面的target不能有index,primary  key
normal:记录redo,undo的log,一般建议选用
1)可重用session:在workflow的task  designer里面加的,点击菜单栏的task,create即可创建。可重用的session在不同的workflow可以多次使用。
不可重用的session:在workflow  designer里面添加,点击菜单栏的task,create即可。
如果需要对source数据做expression处理,从source  qualifier到expression环节,一般的做法是将所有字段都拖到expression里面,需要处理的就处理在输出不需要处理的直接输出到target。很少的做法:将不需要expression处理的column直接从source qualifier到target。
2)session log  options选项的设置
save  session  log  by:
当设置为session runs的时候,每次run都会生成一个日志文件,在production环境最多保存20次的,save  session  log  for  these  runs=20
当设置session timestamp的时候,log文件只有一个,根据时间戳每次都会追加,如果选择这个时间久了文件会很大,很少用
3)recoverty  strategy:
在general选项中设置了fail  parent  if  the task  fail 或者fail  parent  if  the task  does  not run,recoverty  strategy=file  task  and  continue  workflow,
那么即使session failed,workflow也会执行完,可能显示failed.

猜你喜欢

转载自xiaoyaya751.iteye.com/blog/2205047