Unix script to run Load rule
Hi,
We have a Essbase 11.1.1.2 Installation on the Linux environment for our Planning Application.We have developed a Load rule to load a Flat file and we were successful in loading the file using the EAS console.
Here we need to write a script which will be used to automate the load process.Can someone provide sample shell scripts.
Any help is highly appriciated.
Thanks
I think it's stopping because the LOGIN statement is incomplete.
It should be:
LOGIN servername username password
as you are missing the first parameter, Esscmd is waiting.
See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/esscmd/login.htm
Also, you need to terminate each line with a semicolon, e.g., LOGIN servername username password ;
Regards,
Cameron Lackpour
Similar Messages
-
UNIX Script Not running - Sender File Comm Channel
I have written a script to split a large file into smaller files . It works great when I log into the server via putty, and run it from the command prompt .
However, when I run it from the Sender File Channel "Run OS command before/after processing", nothing happens . I put in some code to write a log file after every line , but it never gets generated if I run the channel , so im assuming its never called by PI .
However, the channel monitoring says "Success" for "Execute OS command "/home/Int001/Inbound/File_Split.sh" . So if it is successfully called, how come i dont get my expected results?
1. What is the credentials used by PI to run scripts ?
2. Does PI need some special permissions to run the script ?Hi Johannd,
To change Password for Sap System User, you can follow this help:
http://help.sap.com/saphelp_nwmobile71/helpdata/en/aa/1dc94af0fa11d3a6510000e835363f/content.htm -
Hi,
I is it possible to run load rules from batch file? I have saved my rules file to xml and would like to run this xml or at least myrule.rul file from batch.
Thank you very much
lubosHi,
Yes you can use maxl to load data using a rules file, just create a maxl script and batch it up.
For details on using the maxl command "Import Data", have a read of :- http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_techref/frameset.htm?maxl_imp_data.htm
Cheers
John
http://john-goodwin.blogspot.com/ -
OWB 10g R2 - Workflow vs Unix scripts.
hi,
i've created one mapping in OWB.
which one i've to use either workflow or Unix scripts to run that mapping?
Which is better?
If anyone have good docs or links plz reply ASAP.Workflow is designed to manage the run order and dependancies between multiple activities. It has the advantages of making it easy to run things in parallel, to model complex execution paths with options to execute items serially or in parallel, and allows administration via Oracle tools.
However, it is NOT the most intuitive tool, has limitations regarding naming (max 8 characters for process flow groups, requires unique names across all of your projects), and is definitely more complex to manage deployments with across multiple verticals.
If you only have a few mappings to run, I'd go with shell scripts and cron as the hands down winner. It could email you the results, and the OWB repository browser would still have all of the info if you need to troubleshoot.
If, however, you have a large number of mappings with complex run-order dependencies, then I would lean towards Workflow.
Mike -
Running Business rules thru MAXL(or CmdLnLauncher.bat utility)
I want to run the Business rule. Daily 3 times(Like automation) in 11.1.1.3 version
Refering to the forums
Running Business rules thru MAxl
.RTP file format
i found its not possible through Maxl.
But I was not able to understand clearly how to do the process atleast through "CmdLnLauncher"
Where can i Find the utility Folder
and Where and how do i need to write the script to run Business Rule(I also wanted to use the Runtime Prompt)
Note : i went to EAS --> Right click on BR--> Automatice BR --> Saved the File in desktop with .xml fileThe utility will be on a machine where EAS has been installed, it will be located at <HYPERION_HOME>\products\essbase\eas\console\bin
The post you linked to .RTP file format has all the details on running it.
Cheers
John
http://john-goodwin.blogspot.com/ -
Hi,
I'm building an report script and a load rule to extract data from one cube into another. The problem is that I want to use one of the fields in the report extract twice. The cube I'm loading to has more demension than the one I'm extracting from. I can determine the projectID in the cube I'm loading to based on the cost center but cost center is also a dimension. I have tried modifying the report script to list the cost center twice but am unsucessful. If it is only listed once, it seems that I can use it for Cost Center or ProjectID but not both. Any ideas?
ThanksIn the load rule, open the data file (File->open data file), then select the column that you want to duplicate. Then select field->create using join. It will show you the one column you had selected. click ok and it will duplicate the column, you can then move it where you want, do replacements on it, join it to other columns, or to text columns, tc
-
Hi Friends,
I have a unix script to run regularly every month. I have uploded the script and created a command fior that. Can u plz tell me how to schedule it background to run everymonth.hi,
1. create external command (sm49)
2. create simple z-program in abap (se38) which call function
SXPG_COMMAND_EXECUTE
3. schedule a job (sm36) with this z-program and period = monthly
regards, darek -
Automation of Load Rule in Unix
Hi,
We have Essbase installed on the Linux server.When are running a shell script to run a calc or run a load rule we are getting an error "Essbase client Directory Not Found".
Do we need to install the Essbase Client on the server to resolve this?
Any help is appriciated.There is no internal scheduler.You either have to use Windows Scheduler, Unix Cron or a third party tool. Take a look at Star Analytics Command center, it is designed specifically for Hyperion applications http://www.staranalytics.com/products/command_center.htm
-
How can I run a Unix script from a desktop icon?
I have a Unix script I've created in vi and would like to run it by double clicking on an icon on my desktop. I would like to do this without the additional application layer of Applescript, Automator or Terminal. Is this possible?
Thanks in advance.
HowardSounds like a job for platypus.
-
How ro run unix script freom pl/sql - dbms_scheduler 11.2.0.3
Hi,
Using 11.2.0.3 and have a unix script which works fine.
Want to run this unix script every time a piece of pl/sql runs
have put below in but doesn't actually run it.
How can we achieve this?
Many Thanks
idea is that file we create locqally on server is copied to another via the unix script caled form pl/sql
DBMS_SCHEDULER.create_program (
program_name => 'test_executable_prog',
program_type => 'EXECUTABLE',
program_action => '/oracle/jm/data/dataout/copy_tcfile',
number_of_arguments => 0,
enabled => TRUE,
comments => 'CREATE_PROGRAM test using a schell script.');Tried below but no joy
-- Shell Script (OS executable file).
/*DBMS_SCHEDULER.drop_program(program_name => 'por_copy_files');
DBMS_SCHEDULER.create_program (
program_name => 'por_copy_files',
program_type => 'EXECUTABLE',
program_action => ' /oracle/jm/data/dataout/copy_tcfile',
number_of_arguments => 0,
enabled => TRUE,
comments => 'CREATE_PROGRAM test using a schell script.');
DBMS_SCHEDULER.create_job (
job_name => 'por_copy_files_job',
program_name => 'por_copy_files',
start_date => null,--SYSTIMESTAMP,
repeat_interval => null,--'freq=hourly; byminute=0',
end_date => NULL,
enabled => TRUE,
comments => 'Job defined by existing program and inline schedule.');Edited by: user5716448 on 03-Oct-2012 08:35
Getting message when look in all_scheduler_job_run_details
ORA-27369: job of type EXECUTABLE failed with exit code: No such file or directory
even thoug hfile exists
Edited by: user5716448 on 03-Oct-2012 08:50When run for unix command line which o.k
get
AUTHSTATE=files
A__z=! LOGNAME
COLUMNS=132
EDITOR=vi
ENV=/home/oracle/.kshrc
HOME=/home/oracle
LANG=en_US
LC__FASTMSG=true
LOCPATH=/usr/lib/nls/loc
LOGIN=oracle
LOGNAME=oracle
MAIL=/usr/spool/mail/oracle
MAILMSG=[YOU HAVE NEW MAIL]
MAIL_HOST=prdikw01
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
ODMDIR=/etc/objrepos
ORACLE_BASE=/oracle/app/oracle
ORACLE_HOME=/oracle/app/oracle/product/11.2.0/dbhome_1
ORACLE_SID=IKW
ORACLE_TERM=vt100
ORATAB_PATH=/etc
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin:/usr/local/bin:/etc:/usr/sbin:/usr/ucb:/h
ome/oracle/bin:/usr/bin/X11:/sbin:/oracle/app/oracle/product/11.2.0/dbhome_1/bin:/oracle/app/oracle/product/11.2.0/dbhome_1/OPatch
PS1=[$ORACLE_SID]$PWD $
PWD=/oracle/jm/data
SHELL=/usr/bin/ksh
TERM=xterm
TMPDIR=/tmp
TZ=GMT0BST,M3.5.0,M10.5.0
USER=oracle
_=/usr/bin/env
dba=/home/oracle/dbaWhen run from pl/sql
get
ORA-27369: job of type EXECUTABLE failed with exit code: 255
STANDARD_ERROR="execve: Exec format error"when try
dbms_scheduler.create_job(
job_name => 'POR_JOB',
job_type => 'EXECUTABLE',
job_action => '/oracle/jm/data/copy_tcfile',
start_date => SYSTIMESTAMP,
number_of_arguments=>0,
enabled => true,
auto_Drop => true,
comments => 'Demo');Above code in pl/sql where create job and schedule job separately gives file not found message even though give full path -
Running a Unix script from a Java class
I am trying to use SCP (Secure copy) to copy an xml file from my J2EE application to a remote Unix server using a Unix script. How can I run the Unix script from my Java class? I could not find any resource for this on the internet. Can someone help me with this please.
ThanksI am trying this below program ,but i am getting the error please help me
import com.jcraft.jsch.*;
import com.jcraft.jsch.Channel;
import com.jcraft.jsch.JSch;
//import com.jcraft.jsch.JSchException;
import com.jcraft.jsch.Session;
//import com.jcraft.jsch.UserInfo;
import java.io.*;
public class testrad {
public static void main(String args[])
String user="usertvr";
String host="5.34.12.1";
String cmd="ls -l";
JSch jsch = new JSch();
try{
Session session=jsch.getSession(user,host,22);
session.setPassword("$yhaj23");
//UserInfo usrInfo=new MyUserInfo();
//session.setUserInfo(usrInfo);
session.connect();
Channel channel=session.openChannel("exec");
((ChannelExec) channel).setCommand(cmd);
channel.setXForwarding(true);
channel.connect();
//code
channel.setInputStream(System.in);
// channel.setOutputStream(System.out);
//((ChannelExec) channel).setErrStream(System.err);
InputStream in = channel.getInputStream();
channel.connect();
byte[] tmp = new byte[1024];
while (true)
while (in.available() > 0)
int i = in.read(tmp, 0, 1024);
if (i < 0)
break;
System.out.print(new String(tmp, 0, i));
if (channel.isClosed())
in.close();
// System.out.println("JSCH: exit-status: " +
//channel.getExitStatus());
break;
try
Thread.sleep(1000);
catch (Exception ee)
channel.disconnect();
session.disconnect();
}catch(Exception e)
{e.printStackTrace();
System.out.println("Exception"+e);}
/*public static class MyUserInfo implements UserInfo {
public String getPassword()
{ return "password"; }
public String getPassphrase()
{ return ""; }
public boolean promptPassword(String arg0)
{ return true; }
public boolean promptPassphrase(String arg0)
{ return true; }
public boolean promptYesNo(String arg0)
{ return true; }
public void showMessage(String arg0)
Here is the error
com.jcraft.jsch.JSchException: UnknownHostKey: 5.128.0.10. RSA key fingerprint is 02:a0:d6:c0:6f:69:2c:a9:a7:fa:7c:71:1c:60:ed:57
at com.jcraft.jsch.Session.checkHost(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at testrad.main(testrad.java:23)
Exceptioncom.jcraft.jsch.JSchException: UnknownHostKey: 5.128.0.10. RSA key fingerprint is 02:a0:d6:c0:6f:69:2c:a9:a7:fa:7c:71:1c:60:ed:57
Can some one help me please.
I running this program from Windows to connect to remote unix boxes. -
Hi,
how can i run a unix script from java application. This java application is on windows.
How can i do this.
thanks,Hi,
how can i run a unix script from java application.
This java application is on windows.
So I think it's safe to assume that the target script is on a remote unix server.
Take a look at http://sourceforge.net/projects/sshtools/ -
Running Unix script from stored procedure
At present, I run a unix script to export my data for backup using telnet. I would like my users to run the commands on their own without my help. My users do not know telnet (they have no IT knowledge). So, I plan to create a form using Developer/2000 and let them run the procedure thru a stored procedure.But, my problem is how can a stored procedure call a unix script?
Hi,
solution, used by me.
Create a stored procedure that produces a text file with utl_file. The content of the file is the script you want to execute on your Unix box.
On your Unix Box write a shell script that scans the utl_file_dir for Files. If a file is in, chmod 744 to grnt execute rights to it and execute it.
I have a example if you want.
Start the script with crontab or let it loop with a sleep inside.
HTH
Detlev -
Hi
Friends i am runing a abap report which genrate a ( eft.txt ) text file in /usr/tmp/
Now i want to run a unix script which encript this file.
I have created this command in SM69
type = customer
command name = ZENC
Operation system = unix
externl program = sh
parameter for external program = /usr/tmp/ enc.sh eft.txt eftdc eftdo
enc is unix script and eft.txt is imput text file eftdo eftdc are encripted files.
I am us the function module SXPG_CALL_SYSTEM'
it is ending with following messege
1 5 hello
2 19 eft.txt eftdo eftdc
3 40 The jar file is not found: Encryptor.jar
4 44 External program terminated with exit code 1
and do not give any output.
please help.
Thanks & regards
SSreport zsrchsap.
*-This is a demo report for Search Sap
*-Author : Sandeep Kulkarni
*-Date : 09/20/2001
parameters : p_sfile(60) lower case
"File to be moved
"Eg : /home/in/SFILE1.txt
p_dfile(60) lower case.
"File's Destination
"Eg: /home/archive/SFILE1.txt
data : t_btcxpm
like btcxpm occurs 0,
p_addparam
like sxpgcolist-parameters.
concatenate
'/home/ABAP/scripts/Archive_file.sh'
p_sfile
p_dfile
into p_addparam separated by space.
refresh t_btcxpm. clear t_btcxpm.
call function 'SXPG_CALL_SYSTEM'
exporting
commandname = 'ZSHELL'
additional_parameters = p_addparam
tables
exec_protocol = t_btcxpm
exceptions
no_permission = 1
command_not_found = 2
parameters_too_long = 3
security_risk = 4
wrong_check_call_interface = 5
program_start_error = 6
program_termination_error = 7
x_error = 8
parameter_expected = 9
too_many_parameters = 10
illegal_command = 11
others = 12.
if sy-subrc = 0.
write : /
'File',p_sfile,'moved to',p_dfile.
else.
write : / 'Error Occured'.
endif. -
How to run a unix script from oracle warehouse Builder
Hi,
can any one share the information about, running the unix script or scripts using oracle warehouse builder.
Regards,
AkOne way is define a workflow. Inside the workflow you put
1)an external process that "points to" the shell script and then
2)put the mapping
The external process must have the "COMMAND" parameter set to the name of the shell script. If the script has parameters you must put them in the "PARAMETERS LIST" separated by "?" (for example, ?par1?par2).
The path where OWB executes the external process I think is the ORACLE_HOME of the OWB.
f you don't use workflow, you can try with this more complex solution. I tried with 9i and OWB 9.2 and it's working well.
You create an autonomous procedure (within a package or not) :
CREATE PROCEDURE Extract_Email_List
DECLARE
PRAGMA AUTONOMOUS_TRANSACTION;
And use the sys.shell script that you need your dba/unix admin to install first of all, with a call like that.
sys.shell('sh ' || txt_dir_name || '/send_email_marketing.sh ' || txt_dir_name || ' ' || email_addr );
Then you import your procedure into OWB and use it in your mapping with the "pre-mapping" icon (you can set parameters for your proc with constants if you want).
To implement sys.shell, go to metalink and find "Note:168065.1" - "How to call a UNIX shell script from PL/SQL".
Once it's done once, it's not so bad. But I would still recommend the workflow approach also..
I hope this helps.
Maybe you are looking for
-
I have had a 3rd gen touch for a couple years. I bought my son a new 4th gen and my daughter her own 4th gen touch. I added them to my account and added a $25 iTunes card to my son's. The store is asking my security answers and I have no clue anymore
-
Please help me understand why my I phone 4s is not working in some places and my HOME!! I have been to Apple 3 times and Intelos 5 times and no one knows whats wrong and they are telling me that no one else is having this problem. It's hurting my bus
-
How to create a PDF with a variable name
I am a new user and i need a suggestion. I need to create a PDF file with a name that is a variable. I extract some data from SAP and i want use the "Offer number" to call my file. Wher i have to past my "variable" to the OutputFileName? Thanks Jeix
-
Combo unix ssh port forwarding + iChatAV + Bonjour question
I don't know which forum is best for this question, so thought I'd try here first. I've been tossing around the idea of picking up a couple of iSights and running iChatAV. Problem is, if I understand this correctly, iChatAV uses a couple of ports for
-
I'm using LR 4.3. Up until recently, whenever I selected a keyword from the "Keyword List " panel and clicked on the arrow to the right, all images with that keyword were displayed. Now though, when I do the same,not only do those images show, buit