Oracle BAM RKM reversing 问题

来源:互联网 发布:苹果怎样申请网站域名 编辑:程序博客网 时间:2024/06/16 18:53

近日需要整合ODI和Oracle BAM,按照官方文档的介绍去操作,却在逆向工程BAM时,发生以下报错:

org.apache.bsf.BSFException: exception from Jython:
Traceback (most recent call last):
  File "<string>", line 4, in <module>
ImportError: No module named bam

控制台输入了错误:ODI-1217,网上查阅相关资料后,仅发现以下的资料内容相近:

I believe i have the answer.
When are you are triggering via ODI Designer its going and reading from this folder pathOracle_ODI1\oracledi.sdk\lib
Now there is another Folder called Lib which has the re.py causing which enables Designer to run the re module perfectly.

When the same scenarios is being called via startscen it reads the Oracle_ODI1\oracledi\agent\lib and here there is Jython.jar is there butLib which contains the re.py is missing.

Temporary Solution - Copy the Lib from Oracle_ODI1\oracledi.sdk\lib to Oracle_ODI1\oracledi\agent\lib and call your startscen again .It should work.

The reason i am calling this a temporary solution is that we would need to modify the odiparams accordingly to read from the right path namely(Lib) and i dont have much time to look at it now. i will look into it later.

You can try if this works and if you want you can check with metalink if there is proper solution or reach Oracle Support for more appropriate solution or any other experts who have experinced the same can update the solution.

 

详见:https://kr.forums.oracle.com/forums/thread.jspa?threadID=2156060

结合实际情况,逆向工程时,使用了本地代理,因此根据官网的文档http://docs.oracle.com/cd/E25178_01/dev.1111/e10224/bam_odi.htm和上述链接,bam脚本产生的相关对象如jar和配置文件等均需要copy到目录下<WINDOWS_USER_HOME>\AppData\Roaming\odi\oracledi\userlib

copy完成后,重启ODI Studio,逆向BAM 模型,选择本地代理,错误消失。

 

ODI与代理相关的对象,如逆向、执行,在启动时,若出现问题,先考虑在对应代理(本地、Schedule、weblogic Agent)下是否存在所需的lib和配置文件,通常问题都能得到解决。

 

原创粉丝点击