Shell Scripts in oracle Apps on Windows
Hi Experts,
Usually we are using shell scripts on Linux, but here i am using windows for Oracle applications, how can i write Shell scripts for concurrent program, is there any way to achieve this. Please suggest me.
Thanks,
RED.
Please see these docs/links.
How Do You Run A Unix Host Script From Concurrent Managers On MS Windows Platform? [ID 412392.1]
https://forums.oracle.com/forums/search.jspa?threadID=&q=host+AND+Concurrent+AND+Windows&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein
Similar Messages
-
Can anybody provide AIX shell script for Oracle Apps R12 instance backup
Hi
Can anybody provide AIX shell script for Oracle Apps R12 instance backup? Manually, i am able to backup but i donot have shell script to schedule through crontab.
Help me please.
ThanksRman can be used for Database, not for Application tier. Again, I assumed you are looking for a script to backup the database. For the application tier, you can simply do a filesystem backup.
I still do not understand your concern? Is it about using crontab? If so, then check here --> man crontab <-- -
Hi,
i havea requirement where in i should be able to call my shell script through oracle stored procedure.i tried the following way..but iam unable to get the result.please find the details below.
new.sh - my shell script - lctfile (LCTFILE) is the input pa
v_config_file=`find $FND_TOP -name LCTFILE
FNDLOAD apps/s0ccer@$dxbs1 0 Y DOWNLOAD $v_config_file /home/bir4163/RPT33/bin/menu.ldt MENU MENU_NAME='AR_NAVIGATE_GUI'
if [ $? != 0 ];then
echo "$DATE $0 FNDLOAD DOWNLOAD Failed!" | tee -a $LOG_FILE
else
echo "SUCCESS" | tee -a $LOG_FILE
fi
CREATE OR REPLACE PROCEDURE test_dbms_scheduler
AS
v_text VARCHAR2 (255) := 'AR_NAVIGATE_GUI';
BEGIN
DBMS_OUTPUT.put_line ('I am in Procedure');
DBMS_SCHEDULER.create_job (
job_name => 'test_dbms_scheduler',
job_action => '/home/bir4163/RPT33/bin/new.sh',
number_of_arguments => 1,
job_type => 'executable',
start_date => SYSDATE,
repeat_interval => 'FREQ=SECONDLY; INTERVAL=1',
enabled => FALSE,
auto_drop => FALSE,
comments => 'run shell script'
DBMS_SCHEDULER.set_job_argument_value (job_name => 'test_dbms_scheduler',
argument_position => 1,
argument_value => v_text);
DBMS_SCHEDULER.enable ('test_dbms_scheduler');
DBMS_OUTPUT.put_line ('I am back in Procedure');
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line (SQLCODE || SQLERRM);
END;
But iam unable to test it as i do not have permissions to access dbms_scheduler.can anybody tell me how to solve this using DBMS_PIPE with a sample code.
please do help its very urgent
thanks
ramyaHi,
Register your Shell Script as a concurrent program, Executable execution method "Host", then use fnd_request.submit_request to submit the program.
Regards,
Andries -
How to execucte/calll a shell script from oracle
hi all
i want to execute a shell script from oracle...... how do i do that can any one send me a good link which i can refer and learn
or if any one has already implemented anything like this plz let me know the code
RegardsHere u goooooo
http://www.experts-exchange.com/Database/Oracle/Q_21908413.html
Regards,
http://www.oracleracexpert.com
Send email using UTL_MAIL in oracle.
http://www.oracleracexpert.com/2009/11/send-email-using-utlmail-in-oracle-10g.html
Migrate Non-ASM Database to ASM using RMAN
http://www.oracleracexpert.com/2009/10/migrate-database-to-asm-using-rman.html] -
Run Shell script from oracle plsql
OS--> Linux
Version--Oracle 10g
I want to run a shell script from oracle PL/sql. I know dbms_scheduler can be used to create job , enable job and run it .
But I have a requirement where I need to know if my script ran successfully or not. Something like a return code back to oracle.
So that I can run appropriate code depending on return code of executed Script.
Kindly help !!Online documentation was invented for a reason.
And this reason was not would look it, as a volunteer, on your behalf, and post it in this forum.
All procedures are documented. There are examples for most facitlities on Asktom, and there is Morgan's Library at [http://www.psoug.org]
Sybrand Bakker
Senior Oracle DBA -
Shell scripting for oracle DBs
looking for good source for shell scripting for oracle DBs
Just buy 'Classic Shell Scripting' and 'the Unix Desktop Reference' both published by O'Reilly and you have it all.
But if you want a platform agnostic scripting language use Perl. Comes with Oracle.
However both bash and kornshell are a lot easier compared to Perl.
Sybrand Bakker
Senior Oracle DBA -
How we can call or execute a SHELL script through Oracle forms or Reports
How we can call or execute a SHELL script through Oracle forms or Reports.Its urgent.......
Use HOST command.
-
Can we call shell script from oracle 9i?
Hi experts,
I wanted to know can we call shell script from oracle 9i procedures? If yes,how
Thanks
ShaanNo. I can't think of a way to do this...
If you want you can use DBMS_SCHEDULER to call OS SHELL scripts within.
For e.g.
CREATE PROGRAM
begin
dbms_scheduler.create_program
program_name => 'CHECK_TIME',
program_type => 'EXECUTABLE',
program_action => '/opt/oracle/chk_date.sh',
enabled => TRUE,
comments => 'Check the Time'
end;
CREATE A SHELL SCRIPT
opt/oracle> cat chk_date.sh
#!/usr/bin/ksh
echo "The date is :`date`"
CREATE SCHEDULE
begin
dbms_scheduler.create_schedule
schedule_name => 'EVERY_30_MINS',
repeat_interval => 'FREQ=MINUTELY; INTERVAL=30',
comments => 'Every 30-mins'
end;
CREATE JOB
begin
dbms_scheduler.create_job
job_name => 'RUN_CHECK_TIME',
program_name => 'CHECK_TIME',
schedule_name => 'EVERY_30_MINS',
comments => 'Run the program CHECK_TIME every 30 minutes',
enabled => TRUE
end;
MANUALLY RUN A JOB
exec dbms_scheduler.run_job('RUN_CHECK_TIME'); -
Can I call host file ( Unix Shell script ) from Oracle 10g trigger
Hi,
I am new to Oracle 10g. Can I call host file ( unix shell script ) from Oracle 10g trigger ?. I know it is possible. Pl explain me with small example
thanks & regards
paraguser12009546 wrote:
Hi,
I am new to Oracle 10g. Can I call host file ( unix shell script ) from Oracle 10g trigger ?. I know it is possible. Pl explain me with small example
thanks & regards
paragIf you are in 10g, you can simple call shell script from DBMS_SCHEDULER:
BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'TEST_SCRIPT',
job_type => 'EXECUTABLE',
job_action => 'PATH_OF_YOUR_SCRIPT',
start_date => SYSDATE,
repeat_interval => 'FREQ=MINUTELY; INTERVAL=1',
enabled => TRUE,
comments => 'Shell script from Oracle'
END;
/ -
From Where i can help or manual about writing shell script in oracle
can any one help me to write shell script in oracle.
not sure what you meant by shell script in oracle. If ou want to write a shellscript that interacts with an oracle database, you ma want to refer to an unix programming book and sqlplus manual.
Rgds
Arvind Balaraman -
FTP files from Unix box to Windows ( Shell script )--inplemention in Apps
Hi,
I have an requirement like need to send files generated at a particular path in the UNIX sever into Windows machine.
This should be a scheduler( can we create any shell script
) for this...
Note : files generated at Unix move into Windows box....
Please check and help on this... and let me know if any clarification required on my requirement.
Thanks,
Pavan KThis is relatively easy to do. You will need to write the shell script code and register it as a concurrent program of type "Host". Pl see the Application Developer Guide (for 11i and R12) at http://www.oracle.com/technology/documentation/applications.html for details on how to register a shell script "Host" custom program.
ML Docs 266268.1, 147455.1, 1013907.6 and 156636.1 have some more info too.
HTH
Srini -
Unix shell script to batch file for windows
Hello all,
Iam writing a program in java in unix environment and iam executing using shell scripts in unix this program is for client-server environment
which look like this:
For server:
#! /bin/ksh
export CLASSPATH=/user/vpp/jal/classes:$CLASSPATH
#set var for filename config file
export JAL_CONF_FILE=/user/vpp/jal/conf/JALapp.conf
java -DJAL_CONF_FILE=$JAL_CONF_FILE jalsvr/JALTCPServer 7776for client side it is
#! /bin/ksh
export CLASSPATH=/user/vpp/jal/classes:$CLASSPATH
echo $CLASSPATH
java jalcl/JALTCPClient msoc05:7776my question is know i want to execute them in windows by creating batch files runsvr.bat, runcl.batbut how
i gave PATH by giving JRE path but what is the replacement of export because iam having all class files
in /jalcl for clients and /jalsvr for server but want to create this batch file in separate /bin folder how to do.please help meThank you for reply ,
And sorry by mistake question repeated twice,
but when iam executing those batch files it is throwing some exceptions,
in that file you did not mention to set the JRE path whether it is not necessary and also there msoc05 is the machine name of unix system that need to kept or need to be changed with window IP address .please reply.
thanks in advance. -
How is Oracle Apps on Windows?
I have just accepted a new position as an Apps DBA on windows. I am told the product is unstable on windows. I have not worked with Oracle Apps in over 1.5 years and that was on HPUX. Any comments welcome?
If you are familair with UNIX based OS ,then windows will be little complicated.Though its unstable,if your company has prod on windows then you have to read about 11i on windows .Happy learning :)
Regards,
alit
www.alsuminfotech.com -
Shell script for oracle alert.log file
Hi Gurus,
I wanted to write shell script to know the last 10 shutdown timings of the database from alert log file. I'm working on oracle 9i.
Could anyone please advice on this.
Thanks in advance
regards,
Shaan
Edited by: Shaan_dmp on Jan 5, 2009 1:27 PM
Edited by: Shaan_dmp on Jan 5, 2009 1:28 PMUse awk. I don't have a 9i to hand but here is a very simple version for 10g XE
My awk file (the line numbers are for the notes below - don't include them:
01:BEGIN { prevline = "";}
02:
03:/Completed: alter database close/ {print prevline,FS,$0;}
04:
05:{prevline = $0;}The command line and results (from my 300k alert log)
$ awk -f alert.awk.txt alert_xe.log
Fri Apr 11 18:08:40 2008 Completed: alter database close normal
Fri May 16 18:53:21 2008 Completed: alter database close normal
Tue May 20 17:28:23 2008 Completed: alter database close normal
Thu Jul 17 19:08:52 2008 Completed: alter database close normal
Fri Aug 15 15:12:48 2008 Completed: alter database close normal
Wed Nov 05 08:52:59 2008 Completed: alter database close normal
Fri Nov 14 16:36:03 2008 Completed: alter database close normal
Tue Dec 09 10:46:23 2008 Completed: alter database close normal
Mon Jan 05 11:12:22 2009 Completed: alter database close normalWhat it means:
1) the BEGIN section at line 01 defines the variable to hold the previous line
2) the /search string/ at line 03 finds the marker in the file for a shutdown, then does the required action (print the time which was in the previous line, and then this line; use FS (the awk field separator - normally space) as a separator
3) at line 05 is an instruction we do on every line - so we remember it in case it is the timestamp for the shutdown.
Now, you can include more of the corner cases for shutdowns by adding more search patterns etc. For more information, google for awk examples.
Awk is really good at this sort of thing!
HTH
Regards Nigel -
Need Example on calling a unix shell script from oracle stored procedure
Hi
Can anybody give example on how to call unix shell script from an Oracle stored procedure. Please give a small example on how to do this .I need this urgently please.
Have a nice time.
Thanks & Regards
JogeshIf you are on 10g you can also use DBMS_SCHEDULER. See Re: Excute Unix command Using PL SQL
Maybe you are looking for
-
Documents in BW....Can we link to R/3 Document ?
Hi All, For master data we can maintain documents in R/3 system... We also maintain documents in BW... Lets say for 'Material' we have a document available in R/3 already. We want the same document to be available from BW. So, now do we have to crea
-
Parent..child clas type casting???
Hi All, I have a query, please have a look: I have a parent class :: parent (getting compiled well , it's a simple class only) I have a child class :: child please see the code for child class below: public class child extends parent public static
-
Informational task - but not SendMail step - Reg.
Hi, I have this requirement where i need to send some informational mail / message to the agent. The problem is, I have to use this in one stream of the fork and if i put this as a dialog task with DISPLAY method, the user needs to execute(dbl click
-
http://images.forstudent.com/is/34screen.jpg Hi... I'm a university student and my current subject is about x86 intel Assembly. The teacher provides the Assembly compiler and debugger for us and they run nice on the editplus source code editor but it
-
Table JAVA$CLASS$MD5$TABLE is not created by loadjava
When loading a class using loadjava, the table JAVA$CLASS$MD5$TABLE is not created (in the schema where the class is loaded) by the loadjava tool although it should do this according to the doc. Where is this table located? The class loads successful