Groovy ODI command-line script
I've been playing with ODI 12 c groovy script for a while now and it is a very powerful tool, but did someone knows if it is possible to run the command-line groovy scripts?
I also think that the editor groovy in ODI is very limited. There are much better alternatives like InteliJ IDEA. Has anyone tried to use an external editor to write scripts groovy for ODI and how did you do?
concerning
Leon
If yes go to the following Oracle\Middleware\Oracle_ODI1\modules\oracle.jps_11.1.1 location
and get next to the jar jps - api .jar file and add it to your project / as appropriate classpath or search this jar file on your server ODI where the J2EE agent is installed
Tags: Business Intelligence
Similar Questions
-
Join the host ESX to Virtual Center via the command line script
Question for the guru-, we are spinning up to our servers ESX 3.5 using HP OpsWare. It would be very helpful if someone could point me in the direction of a function/command line script that I could launch the ESX Server, allowing him to join a server VC.
Thanks in advance
Caisse hostops.pl included in the VIMA/vMA or the VIPerl Toolkit. Does exactly this.
-Matt
VCP, vExpert, Unix Geek
-
Is there a way to generate a report via the command-line script or groovy?
I would like the option to generate a report (for example, model "Host physical load summary") from the command line, where I will provide the settings he needs. Is there a way to do in groovy?
Okay, maybe this constant is not declared in 5.5.8.2 yet. Just replace-1
-
Is it possible to "build" a custom component using a command line script?
Hi all
From time to time to replicate our environment in instances of development/sandbox sandbox, we need the current generation of custom components production.
What we do in general is - Component Wizard allows you to "build" each component one & then download the ZIPs. \
I wonder if there is some sort of command line to "build" a custom component?
That would allow me to write a script to quickly create all my custom components in a go, whenever necessary.
Kind regards
PrateekTo answer the original question, Yes, there is a command line tool to build, activate, deactivate and install the components (even with the preferences), her right here:
/ Data/Oracle/user_projects/Domains/my_domain/UCM/CS/bin/ComponentTool
Usage: ComponentTool [v |-vv] [t trace_section]--enable |-disable name
ComponentTool [v |-vv] [t trace_section]... - sync
ComponentTool [v |-vv] [t trace_section]... [- Install] path.hda: path.zip [-path.hda Preferences]
ComponentTool [v |-vv] [t trace_section]--check-depends name
ComponentTool [v |-vv] [t trace_section]... - name of the package
ComponentTool [v |-vv] [trace_section]...--list-enabled|--list-disabled|--list|--interact|--help t
The only thing is to compile the Java classes for you. For this you will need to an ANT script or something.
-
Create a command-line script VM install
I was looking for a way to the creation of vm of the script command line. Our environment is mostly RedHat 5.4 and esx 4.0. We wanted to be able to spin off the virtual machine from the command line, and then deploy the operating system with kickstart. I came across the following script, but still get this error when I try to run it:
vmodl.fault.InvalidArgument: a specific parameter was not correct.
Is it still possible to do so or if orders have been deprecated? Thanks in advance for any help that anyone can provide. Also, if I placed this question in the wrong place please advise and I will pass it to the appropriate place.
VM creation script #.
#Script version 1.1
#Author David E. Hart
#Date 10-05-06
#
#--------+
Goal |
#------
+---------------------------------------------------This script will create a virtual machine with the following attributes:
Virtual Machine Name = ScriptedVM
Location of the Virtual Machine/VMFS/volumes/storage1/ScriptedVM =
Virtual machine Type = 'Microsoft Windows 2003 Standard '.
Virtual memory allocation Machine = 256 meg
#
#----------------------------------------+
#Custom variable section for editing.
#--------------------------------------
+-------------------#NVM is the virtual machine (NVM) name. No spaces allowed in the name
#NVMDIR is the directory that contains all the files of the virtual machine
#NVMOS specifies the VM operating system
#NVMSIZE is the size of the virtual disk to create
#--------------------------------------------------------------
###############################################################
Variable parameters by default - change that to your preferences
NVM = "ScriptedVM" # name of Virtual Machine
NVMDIR = "ScriptedVM" # specify only the name of the folder must be created; NOT the
full path
NVMOS = "winnetstandard" # Type of operating system for the Virtual Machine
NVMSIZE = '4g' # Virtual Machine disk size
VMMEMSIZE = default memory size # "256".
End Variable Declaration
mkdir/vmfs/volumes/storage1 / $ directory to create NVMDIR #.
exec 6 > & 1 # Sets up writing to file
Exec 1 > open the file # /vmfs/volumes/storage1/$NVMDIR/$NVM.vmx
write configuration
config.version = "" "6" "" ECHO # for ESX 3.x, the value is 8
virtualHW.version = "" "3" "" ECHO # for ESX 3.x, the value is 4
echo memsize = "" «$VMMEMSIZE»»»
echo floppy0.present = "" ' TRUE' "' # VM installation with diskette
echo displayName = "" "$NVM" "" # name of virtual machine
echo guestOS = "" «$NVMOS»»»
ECHO
echo ide0:0.present = "" «TRUE»»»
echo ide0:0.deviceType = "" "cdrom-raw»»"
echo ide: 0.startConnected = "" "false" "" # CDROM active
echo floppy0.startConnected = "" «FALSE»»»
echo floppy0.fileName = "" ' / dev/fd0»»»
echo Ethernet0.present = "" «TRUE»»»
Ethernet0.networkName = "" "VM" "" echo # default network
echo Ethernet0.addressType = "" «vpx»»»
ECHO
echo scsi0.present = "" «true»»»
echo scsi0.sharedBus = "" «none»»»
echo scsi0.virtualDev = "" «free»»»
echo scsi0:0.present = "" ' true' "' # virtual disk parameters
echo scsi0:0.fileName = "" "$NVM.vmdk»»»
echo scsi0:0.deviceType = "" 'scsi-hard drive»»'
ECHO
Close the file
Exec 1 > & -.
stdout of the make a copy of FD 6 (reset stdout) and close fd6
Exec 1 > & 6
exec 6 > & -.
Change the permissions on the file so it can be run by anyone
chmod 755 /vmfs/volumes/storage1/$NVMDIR/$NVM.vmx
#Creates 4 GB virtual disk
CD/vmfs/volumes/storage1 / $ NVMDIR #change for the directory of the virtual machine
vmkfstools - c $NVMSIZE $NVM.vmdk - a free
#Register VM
VMware-cmd - s register /vmfs/volumes/storage1/$NVMDIR/$NVM.vmx
>
In the attachment, you can find a version renewed your script (create - vm.sh), you must set the following variables for your environment:
NVM="ScriptedVM" # Name of Virtual Machine NVMDIR="ScriptedVM" # Specify only the folder name to be created; NOT the complete path NVMOS="winnetstandard" # Type of OS for Virtual Machine NVMSIZE="4g" # Size of Virtual Machine Disk VMMEMSIZE="256" # Default Memory Size STORAGEDIR="/vmfs/volumes/datastore1"
This script worked in my environment ESX4, but the resulting virtual machine has hardware version 4 (by default for ESX4 7)
If you have found this or other useful information, please consider awarding points to 'Correct' or 'useful '.
-
Run the command line script AfterFX
Hi all
I'm trying to run a script from the command line AfterFX.exe and I get the message: "unable to run the script at line 1. Syntax error.
If I run the same Script AE editor script file, it works perfectly
Here is the command line that I use:
"C:\Program Files\Adobe\Adobe after effects CS6\Support Files\AfterFX.exe" indefinite display - noui s 'D:\Product\Watermark\Rendering\WatermarkedSecuritySample.jsx '.
Someone has an idea of what may cause this error? I tried to run the script directly from the command line like
"C:\Program Files\Adobe\Adobe after effects CS6\Support Files\AfterFX.exe" indefinite display - noui s 'alert('1') '.
and it works very well for small script but mine is way big to do
As you can probably guess with the 'watermark' and 'Security' in the name of the file, I can't post here, the script file, all I can say is that line 1 is:
{
projectName = "D:\\Product\\WatermarkTemplate.aep"; var
I tried to replace the entire script 'alert('1')'; and it causes the same error when running it from the command line
Also, if anyone knows where I can find the command line arguments AfterFX.exe description, I'd be very happy... everybody talks about aerender.exe, but I need these options to AfterFX.exe
Thanks for your help
Have you tried using "-r" instead of "-s"?
("-s" argument is a script; and to "-r" argument is a path to the script)
-
is there a way to provide command line arguments when calling the Profile Manager so that I can perfectly create a profile of an invocation? By the way the profile name and the location of the profile. I need to bypass the user interaction with the Profile Manager window. Thank you.
http://developer.Mozilla.org/en/docs/Command_Line_Options#User_Profile
-
Hello
I use shell, awk and php scripts to encapsulate sqlplus for html output requests
Simple question:
1 - What is the best (or fastest) way to generate an HTML output of a command line script (sqlplus, sqlcl, sqldeveloper)
Subsequently, I use sqlplus on a linux machine, because he does not expect 4 or 5 seconds for the launch of all java stuff on every single batch request, and does not expect the end user to the browser page
can 2 - I use other databases (of course with the related jdbc drivers) with sqlcl?
(with sqldeveloper, can interrogate data bases mysql or mssql)
Sorry for my English.
Thanks in advance.
Stone
Set html sqlformat
coil...
Run your query
If you don't like HTML, you might investigate our new SCRIPT function that lets you use javascript to work against your resultset - Kris examples on his blog.
SQLcl is only for the Oracle database
-
Launch application from command line
ImageMagick is a graphics reportoire command line application. I wish I could control this (launch windows command line scripts) within Director.
Is this possible?
Thank youFree ShellXtra looks like Valentine's day a good fit for you:
-
Load plans being run/Scheduling command line ODI
Here's our scenario
(1) we have a several load plans that move on different schedules. These changes of schedules each month. For example, we have a defined business window (usually end of month process) which changes from month to month. This business window set is stored in a custom table.
(2) in this window, we run load is considering either once a day or every hour or just only once in this window, etc.
I looked in the Plan charge hourly, but that wasn't our goal because of the complexity in date, time, and frequency. Also, we do not have any third party planner. I think to launch Plans to load a command line (. / startloadplan.sh) using a programming language (PL/SQL or Unix script)
However, I am struggling to find how can I reach annex to a charge by command line plan? for example if I want to execute the plan to charge for the next 3 days every hour, how can say I do it through command line?
Any suggestions would be very helpful.
You can simply create a schedule like that unfortunately. The schedule should be attached to the repository, then the agent must be updated.
What you could do, is add a script using the SDK of ODI. Chantal Mangano wrote a great blog about this (ODI11g): http://dwteam.in/scheduling-in-odi-using-sdk/
-
Is it possible to change the parameters of the scheduled scan of the Microsoft Security Essentials from the command line or in a script?
I know that I can use the command to schedule the MpCmdRun.exe tool command line to run, but that do not change or remove the existing scheduled scan that appears in the software. Run regedit to merge into the corresponding registry keys does not work because the keys are "locked", probably by the running of MSSE program.
Suggest you post it in one of the forums dedicated to MSE - Microsoft Security Essentials: scanning, detection and removal of threats MowGreen Update Services - consumer safety
-
VBS script does not have command line parameters
Suddenly the VBS scripts that I use for several years is no longer work correctly on Windows 7. By "suddenly" I mean they worked Wednesday and do not work on Friday, two days later. There were / are two incidents:
First of all, the program default for the extension VBS WScript to CScript changed. CScript would scripts pretty well, except that my scripts are designed to run in debug mode under CScript, with many calls MsgBox, and I need them to run unattended.
So I re-associated .vbs WScript. Now the question is that WScript.Arguments.Count always returns 0 even when the script is invoked with command-line parameters. I checked with the command FTYPE that Windows is configured to pass arguments to WScript:
C:\>Assoc .vbs
.vbs = VBSFileC:\>ftype VBSFile
VBSFile="%SystemRoot%\System32\WScript.exe" "%1" % *.It's as if a Windows Update has suddenly dropped support for the %
If anyone else has noticed this? I can't go to CScript - I wrote dozens of scripts that I designed to behave differently under CScript or WScript.
OS = Win 7 Pro 64-bit SP1
In the meantime, I'm going to see events in the event viewer to see if this box received updates, MS or otherwise.
Thank you for responding. The content of the registry that you have provided is almost identical to one that I exported from a work computer. The only difference was in the placement of the @= line "VBScript Script file", so I tried to import them both. No one changed the behavior.
Fortunately, this isn't a problem only when I need to type command-line parameters. So I also tape "WScript" before the name of the script before you press Enter.
I don't think I'll do more to solve problems, but I'll keep trying all the answers in this thread that look promising.
Hello
Check this key?HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.vbs
You can export and send the content here. The value under "UserChoice" is most likely the culprit. And remove "UserChoice" key should straighten this issue.
-
Hi Experts,
We load data from .txt files in Linux server into a table.
Scenario runs perfectly when running Windows ODI GUI (on linux agent.we have two agents who perform one is windows and Linux).When we try to run it from the command line using startscen.bat getting following error.
ODI-1227: SrcSet0 (load) task fails on the source FILES FILE_SERVER connections.
Caused by: java.sql.SQLException: ODI-40438: file not found: /loadfiles/Test/xyz.txt
By this mistake if we conclude that this file may not exist... But it works well to GUI.
Infact we have given 777 permissions to file.
Ideas please share...
Concerning
PrakashV
Hi all
It works very well by adding the URL of the AGENT in a syntax such as startsen
StartScen.bat FILE_TO_ORACLE 001 GLOBAL-NAME = OracleDIAgent3-AGENT_URL =http://10.64.165.73:20912 / oraclediagent
-
Hi Experts,
Try to run the scenario of the computer local windows...
Below prereuisites are all very well... don't know, this drving crazy me...
Agent self installed, configured, able to run the same scenario with support only studio agent is going well... but not from command line...
Node Manager works well, OracleDIAgent1 is up... Why then... Please see capture screen below what I'm trying to do... syntax for command line mentioned in the documentation:
StartScen.bat < scenario_name > < scenario_version > < context_code > [< log_level >] [-AGENT_URL = < remote_agent_url >] [-ASYNC = yes | no] ["-NAME = < local_agent_name >"] ["-SESSION_NAME = < session_name >"] ["-mots-cles = < keywords >"] ["" < variable > = < value > ""] *.
That's what I do see photo below... Please help me guys... spend too much time, but could not capture error.
Concerning
ASP.
Hi, ASP.
-INSTANCE is a new parameter required in 12 c. Provide a correct value for - INSTANCE
Please read Oracle Support Document 1950687.1 (startscen or startcmd OdiStartScen fails with errors in ODI 12 c)
-
PL/SQL in Sql Developer 4 script, works not sqlplus command line.
Hello guys, Xev here.
I hope I meet new people there into that in this space. I hope this is the appropriate space to ask this, I see that others have asked about sqlplus and they where permitted to post...
I have a pl/sql script that runs in sql developer 4, but the exact same script will not run in the sqlplus command line?
When I run the script, it gives me this, but as you can see with this script that works fine with sql developer, he is not running sqlplus command line.
ERROR at line 3:
ORA-06550: line 3, column 28:
PLS-00201: identifier 'DYNAMIC_COUNTS' must be declared.
ORA-06550: line 3, column 4:
PL/SQL: Ignored Element
ORA-06550: line 39, column 17:
PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.
ORA-06550: line 39, column 1:
PL/SQL: Statement ignored
ORA-06550: line 41, column 17:
PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.
ORA-06550: line 41, column 1:
PL/SQL: Statement ignored
ORA-06550: line 43, column 17:
PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.
ORA-06550: line 43, column 1:
PL/SQL: Statement ignored
ORA-06550: line 45, column 17:
PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.
ORA-06550: line 45, column 1:
PL/SQL: Statement ignored
ORA-06550: line 82, column 15:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 82, column 3:
PL/SQL: SQL statement ignored
Here is the script I use... You define a type of thing in the sqlplus command line?
Set serveroutput size unlimited
run the DBMS_OUTPUT. ACTIVATE (buffer_size = > NULL);
DECLARE
TYPE nt_tab IS TABLE OF dynamic_counts % ROWTYPE;
v_nttab nt_tab: = nt_tab();
FND_LOOK INTEGER.
v_incr NUMBER: = 0;
------------------------------------------------------------------------------------------------------------------------
BEGIN
FOR t IN (SELECT master, table_name, column_name
From all_tab_columns
Owner WHERE = UPPER ('& SCHEMA_NAME'))
------------------------------------------------------------------------------------------------------------------------
LOOP
BEGIN
EXECUTE IMMEDIATE ' with an ACE (select case when REGEXP_LIKE (' | t.column_name |))
-This search 1 letter and 12 figures-
', "^ ([[: alpha:]] |) [[: alpha:]] ({3}) [0-9] {12} $")
then "match"
another "no matches found" end up as output of ' | t.Owner | '.' || t.table_name | ')
Select count (*) in a where a.output = "Match Found" clause '
IN FND_LOOK;
------------------------------------------------------------------------------------------------------------------------
IF FND_LOOK > 0 THEN
v_incr: = v_incr + 1;
v_nttab. EXTEND;
v_nttab (v_incr) .t_owner: = t.owner;
v_nttab (v_incr) .t_table_name: = t.table_name;
v_nttab (v_incr) .t_column_name: = t.column_name;
v_nttab (v_incr) .fnd_govids: = FND_LOOK;
END IF;
------------------------------------------------------------------------------------------------------------------------
/ * This is for DBMS output, thus we have 2 different ways, one can see the results in the table dynamic_counts
and in the dbms_output
*/
IF FND_LOOK > 0 THEN
Dbms_output.put_line (t.owner |) '.' || t.table_name | ' ' || t.column_name | ' ' || FND_LOOK);
END IF;
------------------------------------------------------------------------------------------------------------------------
/ * Exception Handeling * /.
EXCEPTION
WHILE OTHERS
THEN
Dbms_output.put_line)
"Generic error".
|| t.column_name
|| "from".
|| t.Owner
|| '.'
|| t.table_name);
END;
END LOOP;
------------------------------------------------------------------------------------------------------------------------
FORALL i IN 1.v_nttab. COUNTY
INSERT INTO dynamic_counts (t_owner,
t_table_name,
t_column_name,
fnd_govids)
VALUES (v_nttab (i) .t_owner,
v_nttab (i) .t_table_name,
v_nttab (i) .t_column_name,
v_nttab (i) .fnd_govids);
COMMIT;
END;
/
Are you sure that you are connected to the database to the same user with both clients?
Maybe you are looking for
-
How can I remove Age of Empires 3 save files?
I'm trying to remove the old parts saved AoE3 and AoE3 - warlords, as my computer is running out of space. May not know how this - someone can help me?
-
B &; w threshold too low when scanning
HP DeskJet F4135 printer range: when you scan pages in a pdf file, the b/w line is still too low. I need to reset for each page that takes a long time. Any way to adjust the threshold of b/w once for all pages?
-
Critical hard drive put in custody and loss of blue screen
I lost my blue screen and get warnings re critical threats of damage from hard drive and virus (trogen horse) however no virus detected on a scan from windows? warnins continually pop up.
-
I don't have Windows XP tablet PC edition - please help
I have the Toshiba Portege 3505 with Microsoft Windows XP tablet PC edition... It's bad, I can't run upward and unfortunately, I can't locate my CD to reinstall... I contact Toshiba and Microsoft, they are not available. I would be grateful if you c
-
Problem delete windows.old
I can't remove an older version of windows. Windows.Old - it's my personal computer, but I'm being denied permission - what can I do? The computer is my own staff.