Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Run ODI groovy script from command line (12.2.1)

1303992Oct 12 2016 — edited Oct 19 2016

I've got a groovy script that works when I run it from within the ODI Studio 12.2.1. But I want to execute this script from the Windows command line for automated deployment, without use of ODI studio. I've found via google that in previous versions people either just used command "groovy <scriptname>", of they used java like on this forum: How do I run Groovy scripts as Java, from the command line? - Stack Overflow .

I've also tried setting the classpath like on this forum https://community.oracle.com/thread/3621145.

However when I try commands like this:

%ODI_JDK_HOME%>java -cp K:\apps\ODI\odi\sdk\lib\;K:\apps\ODI\oracle_common\modules\oracle.jdbc;K:\apps\ODI\oracle_common\modules\oracle.jps;"c:\Program Files\Java\jdk1.8.0_71\bin";. K:\ODI_deploy\applyPatchDAR.groovy

The following error is returned (like the above mentioned stack overflow forum post):

Error: Could not find or load main class K:\ODI_deploy\applyPatchDAR.groovy

I've also tried adding these paths to the %PATH%.

K:\apps\ODI\odi\sdk\lib;

K:\apps\ODI\oracle_common\modules\oracle.jdbc;

K:\apps\ODI\oracle_common\modules\oracle.jps;

Can anybody tell me how I should execute this script exactly? From which location, which classpath, path, etc. Or do I have to download groovy seperately? Thanks in advance.

Regards Eveline

This post has been answered by 1303992 on Oct 19 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2016
Added on Oct 12 2016
3 comments
791 views