批量导入xml到informatica repository中的shell script

本文档介绍如何通过shell script配合pmrep的objectimport命令,批量将xml文件导入到Informatica Repository中。控制文件配置了导入选项和参数,包括导入后的check in操作、对象冲突解决策略等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

主要利用pmrep的objectimport命令,该命令执行时需要配置control file(xml文件,配置导入的一些参数和设置)

script:

#!/bin/bash
# -----------------------------------------------------------------------
# Script Name: inf_impobj.sh
# Purpose: To batch import mappings or workflows into repository 
# Created by: Indifferent_to
# Date: 2014-09-30 
# ----------------------------------------------------------------------
function usage {
 cat <<EOUSAGE
 Usage:
    inf_impobj.sh -d <folder> <user_name>
 
 This scirpt will import the file in specified directory.It has a control
 file import_Infa_Objects_Control.txt and a log Infa_import.log.txt. If file
 import into repository successfully, script wil delete the file. If not, 
 the file will be moved to infa_shared/scripts/xml_dir/imp_dir.


 Options:
    -m xml files location
 
 Example:
    inf_impobj.sh -m mluo
EOUSAGE
 exit 1
}
# -----------------------------------------------------------------------
case $1 in
-d)
IMP_PATH=$2/*.xml
shift 1
;;
*)
usage;;
esac


USE_NAME=$2
i=0
j=0
repository="repository name"
domain="repository domain"
host="informatica server host name"
port="informatica server port number"


pmrep connect  -r $
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值