Schell Script to Schdule In Dbms_Schedule
Hi All,
I've a script to schedule in dbms_scheduler, here is the usage of script in linux command line..
"/home/oracle/scripts/run.sh table_name"
Any inputs how to schedule it in dbms scheduler daily to run 1200 AM
@sushaant - the post you refer to has no relevance to using DBMS_SCHEDULER - it is just using a cron job to run a shell script.
@Ramu - if the shell script is on the same server as the oracle database, you need to do the following
1) Create a credential that has the unix user you want to run the script as.
Note the script itself MUST set up any environment needed for the job to run - DBMS_SCHEDULER will not execute the .profile of the user you supply in the credential so don't assume in run.sh that any $PATH will exist or any other environment variables, you must set these explicitly. E.g. if you use a unix command, you should ensure you specify the full path to it in run.sh.
BEGIN
DBMS_SCHEDULER.CREATE_CREDENTIAL('YOUR_CREDENTIAL', 'username', 'password');
END;
2) In sqlplus, create a job with an external job that references run.sh and add argument. Change yourjob to be the job name
you want to see when the job runs and your_table_name to the table that should be used in this particular job.
dbms_scheduler.create_program(
job_name=>'yourprogram',
job_type=>'EXECUTABLE',
job_action=>'/home/oracle/scripts/run.sh',
number_of_arguments=>1);
4) Create a job which links the program to the schedule and runs daily at midday and create other jobs for other tables giving them different parameters. If you have several of these to run but don't want them to run at the same time, look at the CREATE_CHAIN commands in the Oracle 11gR2 database admin guide as there are two whole chapters (28 & 29) on the scheduler ( http://docs.oracle.com/cd/E11882_01/server.112/e25494/scheduse.htm#i1033533 )
BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'run_tablename1',
program_name => 'yourprogram',
repeat_interval => 'FREQ=DAILY;BYHOUR=12',
credential_name => 'YOUR_CREDENTIAL',
comments => 'Daily at noon');
dbms_scheduler.set_job_argument_value@orl1(job_name=>'run_tablename1', argument_position=>1, argument_value='your_table_name');
END;
Note that as you are passing a table_name to the run.sh, i'm guessing it might be running some Oracle commands such as an analyse so if run.sh contains PLSQL commands, you could create a PLSQL package or procedure in the database and instead of creating an external program that runs a shells script, just run the PLSQL directly from DBMS_SCHEDULER. This is simpler as you don't need to create credentials etc.. needed for an external program.
BEGIN
DBMS_SCHEDULER.CREATE_PROGRAM (
job_name => 'yourname',
job_type => 'STORED_PROCEDURE',
job_action => 'YOUR_PKG.DO_STUFF',
start_date => '18-MAY-13 12.00.00 AM',
repeat_interval => 'FREQ=DAILY', /* every day */
end_date => '17-MAY-14 12.00.00 AM',
auto_drop => FALSE,
comments => 'My new job');
END;
dbms_scheduler.set_job_argument_value@orl1(job_name=>'yourjob',
argument_position=>1, argument_value='your_table_name');
and again create a chain if you want to run several when one completes.
You need to select from various tables to see the result of the jobs and whether they succeed or not such as
select * From user_scheduler_job_run_details where job_Name='run_tablename1'
SELECT * FROM USER_SCHEDULER_JOB_LOG;
select * from user_scheduler_running_jobs
You can add email notifications using DBMS_SCHEDULER.ADD_JOB_EMAIL_NOTIFICATION
See the admin guide for more details.
Similar Messages
-
Dbms_scheduler error in calling a schell script.
Hi,
I am trying to execute a shell script which is called from a procedure.
below are the changes which i have made and after that i am still getting error as below:
Please help me as to where i am going wrong:
Steps takesm:
1) rdbms/admin/externaljob.ora file to add the below info
run_user = oracle
run_group = dba
2) And have changed the bin/extjob file must be permissions to 4750 (-rwsr-x---)
3) The shell script is having full permission(777) and starts with #!/bin/ksh
4) - bin/extjobo sfile should have normal 755 (rwxr-xr-x)
5) - bin/jssu should have setuid permissions i.e. with 4750 (-rwsr-x---)
error:
ORA-27369: job of type EXECUTABLE failed with exit code: 255
STANDARD_ERROR="execve: Exec format error"
version:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit
DBMS_SCHEDULER.create_job (
job_name => 'gatekr3',
job_type => 'EXECUTABLE',
job_action => '/home/cobr_sftp/var/download/test_abh.sh',
number_of_arguments => 0,
enabled => true,
comments => 'CREATE_PROGRAM test using a schell script'
Edited by: user11942774 on Sep 27, 2012 1:22 AMLog to server under account oracle.
then run /home/cobr_sftp/var/download/test_abh.sh.
What's result of shell script ? -
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 -
DBMS_SCHEDULER and Shell Script on 10.2.0.1
Hi All
My env, Oracle 10.2.0.1 and OS is Solaris.
My script can run on OS that is work without error that contain create file, delete file, call sqlplus, function to get value from database and return to OS variables.
In shell script some code as below
get_val () {
sqlplus -s /nolog <<EOF
conn test/test
set heading off
set feedback off
set pages 0
SELECT SUBSTR (SYS_CONNECT_BY_PATH (Z, ' '), 2) z
FROM (SELECT NAMEDQUERY , ROW_NUMBER () OVER (ORDER BY Z) rn,
COUNT (*) OVER () cnt
FROM X
WHERE Z LIKE '%FULL')
WHERE rn = cnt
START WITH rn = 1
CONNECT BY rn = PRIOR rn + 1;
EOF
vx=$(get_val)
if [ ${#vx} -gt 0 ]; then
for xfile in $vx
do
rm -f $CURRDIR/$xfile.txt 2> /dev/null
done
fi
When run by dbms_scheduler that show below error
ORA-27369: job of type EXECUTABLE failed with exit code: No such file or directory
STANDARD_ERROR="/home/oracle/script/test.sh: syntax error at line 26: `vx=$' unexpected
How to resolve above error? (owner of $CURRDIR/$xfile.txt is oracle user)
One more question, How to force dbms_scheduler that using user oracle (OS) to run shell script?, as I know, default user is nobody and Oracle version 10.2.0.2 later that have external.job.ora to set it but 10.2.0.1 doesn't have it.
Thank you in advance,
HikoI changed scheduler by set argument as below
dbms_scheduler.create_job (job_name=>'TEST',job_type=>'EXECUTABLE',job_action=>'/usr/bin/bash',number_of_arguments=>1);
dbms_scheduler.set_job_argument_value('TEST',1,argument_value,'/home/oracle/test.sh');
That is work. below is conclusion to did
1. Change permission of $ORACLE_HOME/bin/extjob to 4750 (-rwsr-x---)
2. Change owner of $ORACLE_HOME/bin/extjob to oracle:dba
3. Use '/usr/bin/bash' instead of '/usr/bin/sh'
But I found error about download file process that I'm using wget to download source file in shell script and run by dbms_scheduler as above.
My problem, first file can download normally and process until finish but second file was hang.
Do you have any idea or solution to prove and resolve it?
Thank you,
Hiko -
Parameters for Shell Script running through DBMS_SCHEDULER as Executable
Hi,
I'm using Oracle 10.2.0.1 on Solaris.
I have a shell script to run through DBMS_SCHEDULER.
DBMS_SCHEDULER.CREATE_PROGRAM (
program_name => 'PROGRAM_NAME',
program_type => 'EXECUTABLE',
program_action => '/home/oracle/test.sh',
enabled => TRUE,
comments => 'Test Shell Script'
But how do I define the parameters for the shell script?
Lets say if I run the shell script from the Unix promt I will enter as below:
/home/oracle/test.sh PITS aed5 XYZ
How do I define it in the DBMS_SCHEDULER.define_program_argument?
Thanks,
ShailWhen you create the program you define the number of parameters it will accept:
DBMS_SCHEDULER.CREATE_PROGRAM (
program_name => 'PROGRAM_NAME',
program_type => 'EXECUTABLE',
program_action => '/home/oracle/test.sh',
enabled => TRUE,
comments => 'Test Shell Script',
number_of_arguments => 3
);then you define your job arguments and set default values. This is optional - but if you don't then you will have to define the values using the set_job_argument_value:
-- defines the first argument
DBMS_SCHEDULER.DEFINE_PROGRAM_ARGUMENT(
program_name => 'PROGRAM_NAME',
argument_position => 1,
argument_name => 'arg1',
argument_type 'CHAR',
default_value => 'PITS',
);You can set the argument vaues using:
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
job_name => 'JOB1',
argument_position => 1,
argument_value => 'PITS');or using the argument name defined using the define_program argument
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
job_name => 'JOB1',
argument_name => 'arg1',
argument_value => 'PITS');where JOB1 is a job for program PROGRAM_NAME created using the dbms_scheduler.create_job procedure
see docmentation: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm for more details... -
Parameters for Shell Script running DBMS_SCHEDULER as Executable
Hi,
I have a shell script to run through DBMS_SCHEDULER.
DBMS_SCHEDULER.CREATE_PROGRAM (
program_name => 'PROGRAM_NAME',
program_type => 'EXECUTABLE',
program_action => '/home/oracle/test.sh',
enabled => TRUE,
comments => 'Test Shell Script'
But how do I define the parameters for the shell script?
Lets say if I run the shell script from the Unix promt I will enter as below:
/home/oracle/test.sh -d aed5 -p "XYZ"
How do I define it in the DBMS_SCHEDULER.define_program_argument?
Thanks in advance,
Samujjwal BasuRe: Excute Unix command Using PL SQL might help.
-
We have two DB instances running on similar platforms and both the DB's are on the same patch set level. We are trying to centralize all the bypass the cron scheduler and make use of the DBMS_SCHEDULER thus centralizing from the DB itself. At this end we tested a simple script for if that will succeed and it went fine on one instance and on the other it failed with an error. Searching the forums and metalink did not give us a clue as to what is wrong with that instance. Here is the error.
ORA-27369: job of type EXECUTABLE failed with exit code: Unknown error
STANDARD_ERROR="Oracle Scheduler error: Not running as extjob or extjobo."
From the above error it looks like the extjob is not getting executed as the setuid user or something we are missing. The oracle instance itself is working fine on this server.
The shell script is running fine when kicked off from the OS command prompt.
Here is the pl/sql block used to create the job and under that the original shell script used for testing.
begin
dbms_scheduler.create_job(
job_name => 'TEST'
,job_type => 'EXECUTABLE'
,job_action => '/u01/scripts/LV/lv.sh'
,repeat_interval => 'FREQ=MINUTELY; INTERVAL=3'
,enabled => TRUE
,comments => 'Test For Every 3 minutes.');
end;
--Shell Script
#!/usr/bin/bash
#Set Up Oracle Environment
ORACLE_HOME=/u01/oracle/product/10.2.0; export ORACLE_HOME
ORACLE_SID=NV2PROD1; export ORACLE_SID
LD_LIBRARY=$ORACLE_HOME/lib; export LD_LIBRARY
PATH=$ORACLE_HOME/bin:$PATH; export PATH
sqlplus ' / as sysdba'<<EOF
spool /u01/scripts/LV/lv.out
select table_name from dba_tables where owner='DM_DTB_OWNER';
spool off
exit
EOF
Any one has got similar error or issues and would appreciate your time and suggestions.
Thanks,
LVHi Ravi,
Thanks for the response and I happened to view several posts and solutions from you regarding the Scheduler issue.
Here are the results you have asked....
- Whether this job is in the SYS schema or not
The job was created in the sys schema as I logged in as sys as sysdba. However the oracle environment setup inside the shell script logs into a different schema or user to execute the sql statement.
--The output from the instance where the script is working using DBMS_SCHEDULER
a)
[navdb1:oracle:TMSPROD] /home/oracle
$ ls -l $ORACLE_HOME/bin/extjob
-rwsr-x--- 1 root dba 28912 Jan 8 14:36 /u01/oracle/product/10.2.0/bin/extjob
b)
[navdb1:oracle:TMSPROD] /home/oracle
$ ls -l $ORACLE_HOME/bin/extjobo
-rwx------ 1 oracle dba 28920 Jan 8 14:36 /u01/oracle/product/10.2.0/bin/extjobo
c)
[navdb1:oracle:TMSPROD] /home/oracle
$ ls -l $ORACLE_HOME/bin/oracle
-rwsr-s--x 1 oracle dba 120971944 Feb 3 00:17 /u01/oracle/product/10.2.0/bin/oracle
--The output from the instance where the script is NOT working using DBMS_SCHEDULER
a)
[navdb2:oracle:NV2PROD1] /home/oracle
$ ls -l $ORACLE_HOME/bin/extjob
-rwsr-x--- 1 root dba 28912 Oct 7 07:21 /u01/oracle/product/10.2.0/bin/extjob
b)
[navdb2:oracle:NV2PROD1] /home/oracle
$ ls -l $ORACLE_HOME/bin/extjobo
-rwxr-xr-x 1 oracle dba 28920 Oct 7 07:21 /u01/oracle/product/10.2.0/bin/extjobo
c)
[navdb2:oracle:NV2PROD1] /home/oracle
$ ls -l $ORACLE_HOME/bin/oracle
-rwsr-s--x 1 oracle dba 120973344 Oct 7 07:21 /u01/oracle/product/10.2.0/bin/oracle
Hope the details will help you for a valuble guidance from you.
Thanks very much for your time.
LV -
Pass variable from apex to shell script
Hi,
i am able to use apex button to run a db scheduler job and use the the job to run an OS bash script, but don't know how to pass an variable to the script from apex.Hi,
Thansk for the reply.
My scenario is
1. Apex page 1: Store List Report, click the store you want to process, the selected store id and store name will be passed to apex page 2 automatically.
2. Apex page 2: Show the store ID and Store Name, once confirm click a button on the screen. I already created dynamic action of the button to run a bash script in OS via dbms_scheduler.
My issue is i don't know how to get the store id and pass it to the bash script through dbms_scheduler.
Regards
Lion -
ORA-27475: "DBREPORT.GATEKEEPER_JOB" must be a job
Hi All,
When ever i am calling the below from a procedure i am getting the error,ORA-27475: "DBREPORT.GATEKEEPER_JOB" must be a job.
I am getting this error in first drop box it self in(DBMS_SCHEDULER.DROP_JOB ).
Please help.
DBMS_SCHEDULER.DROP_JOB
job_name => 'Gatekeeper_Job',
force => TRUE,
commit_semantics => 'STOP_ON_FIRST_ERROR'
DBMS_SCHEDULER.create_job (
job_name => 'Gatekeeper_Job',
job_type => 'EXECUTABLE',
job_action => '/home/cobr_sftp/var/controllingload/download/transfer_gatekeeper.sh',
number_of_arguments => 4,
-- auto_drop => true,
enabled => FALSE,
comments => 'CREATE_PROGRAM test using a schell script'
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
job_name => 'Gatekeeper_Job',
argument_position => 1,
argument_value => ip_d_filename );
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
job_name => 'Gatekeeper_Job',
argument_position => 2,
argument_value => v_ftype );
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
job_name => 'Gatekeeper_Job',
argument_position => 3,
argument_value => v_d_db_name );
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
job_name => 'Gatekeeper_Job',
argument_position => 4,
argument_value => v_sendoraddress );
DBMS_SCHEDULER.enable ('Gatekeeper_Job');Edited by: user11942774 on Oct 21, 2012 6:30 PMThen you could be hitting this bug. See the end of this thread
Unable to drop the dbms_scheduler job using "dbms_scheduler.drop_job" -
ORA-27475: "JOB" must be a job
Hi All,
When ever i am calling the below from a procedure i am getting the error,ORA-27475: "DBREPORT.GATEKEEPER_JOB" must be a job.
I am getting this error in first drop box it self in(DBMS_SCHEDULER.DROP_JOB ).
Please help.
DBMS_SCHEDULER.DROP_JOB
job_name => 'Gatekeeper_Job',
force => TRUE,
commit_semantics => 'STOP_ON_FIRST_ERROR'
DBMS_SCHEDULER.create_job (
job_name => 'Gatekeeper_Job',
job_type => 'EXECUTABLE',
job_action => '/home/cobr_sftp/var/controllingload/download/dbcobra_transfer_gatekeeper.sh',
number_of_arguments => 4,
-- auto_drop => true,
enabled => FALSE,
comments => 'CREATE_PROGRAM test using a schell script'
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
job_name => 'Gatekeeper_Job',
argument_position => 1,
argument_value => ip_d_filename );
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
job_name => 'Gatekeeper_Job',
argument_position => 2,
argument_value => v_ftype );
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
job_name => 'Gatekeeper_Job',
argument_position => 3,
argument_value => v_d_db_name );
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
job_name => 'Gatekeeper_Job',
argument_position => 4,
argument_value => v_sendoraddress );
DBMS_SCHEDULER.enable ('Gatekeeper_Job');Edited by: user11942774 on Oct 22, 2012 11:21 PMEvery job has an owner. YOu are probably logged as DBREPORT user.
It is better to specify full job name in OWNER.JOBNAME
See who is owner of job
select * from dba_scheduler_jobs where job_name='GATEKEEPER_JOB';the use fully qualified job name in dbm_scheduler.drop_job procedure -
ORA-27369: job of type EXECUTABLE failed for scheduler
I help reg dbms scheduler in oracle.
I am getting below error when I call a shell script from procedure. Could you please help me out in this.
Steps Taken:
==========
1) Modified rdbms/admin/externaljob.ora file to add the below info
run_user = oracle
run_group = dba
2) And have changed the bin/extjob file must be permissions to 4750 (-rwsr-x---)
3) The shell script is having full permission(777) and is sending email to db email.
Error:
=====
ORA-27369: job of type EXECUTABLE failed with exit code: 274662
STANDARD_ERROR="Oracle Scheduler error: Config file is not owned by root or is writable by group or other or extjob is not setuid and owned by root"
Code:
=====
DBMS_SCHEDULER.create_job (
job_name => 'gatekeeper3',
job_type => 'EXECUTABLE',
job_action => '/home/cobr_sftp/var/download/test_abh.sh',
number_of_arguments => 0,
enabled => true,
--auto_drop => true,
comments => 'CREATE_PROGRAM test using a schell script'
Edited by: user11942774 on Sep 26, 2012 12:33 AMHi,
I have went through the below link and have maede the changes. But i am still getting the same error.
Could you please help me as to where i am going wrong.
Scheduler link: Guide to External Jobs on 10g with dbms_scheduler e.g. scripts,batch files
1) I have modified rdbms/admin/externaljob.ora file to add the below info
run_user = oracle
run_group = dba
2) And have changed the bin/extjob file must be permissions to 4750 (-rwsr-x---)
3) The shell script is having full permission(777) and is sending email to db email.
4) - bin/extjobo sfile should have normal 755 (rwxr-xr-x)
5) - bin/jssu should have setuid permissions i.e. with 4750 (-rwsr-x---) -
I can run netca normal
I found some problem in the last two rows of th netasst,who can help me.
below is th netasst scripts in my machine:
#!/bin/sh
# $Header: netasst.sbs 10-jul-00.14:40:53 mclose Exp $
# Copyright (c) Oracle Corporation 1997, 1998, 1999, 2000. All Rights Reserved.
# NAME
# netasst - Shell script to run Net Assistant
# DESCRIPTION
# Runs the Net Assistant Java Application. This file comes in two
# forms its original, with a .sbs extension, and its final, without
# a .sbs extension. The .sbs version is source for the final
# version which the Oracle Universal Installer creates by
# doing variable substitution at install time.
# MODIFIED (MM/DD/YY)
# mclose 07/10/00 - Change location of ewtcompat
# mclose 11/19/99 - Update to ewtcompat 3.3.6
# mclose 10/13/99 - 816 install variable changes
# mclose 09/22/99 - Remove JRE -native flag (990089)
# mclose 09/17/99 - add nls message jar
# rgiardin 07/22/99 - update dependency versions
# rgiardin 07/14/99 - remove extraneous header info.
# rgiardin 07/14/99 - add config jar dependency
# mclose 06/24/99 - fixed bug 882986
# mclose 01/14/99 - Update to ewt 3.1.10.
# mclose 12/30/98 - Add check for DISPLAY
# rgiardin 12/16/98 - stop changing to %TOOLS dir before running asst
# rgiardin 12/07/98 - update ewt version to 3_1_9
# rgiardin 11/20/98 - update ewt ver to 3.1.8.1
# rgiardin 11/18/98 - update ewt version to 318 and remove reference to e
# mclose 11/13/98 - Change substitution variable names
# rgiardin 11/11/98 - add ewtcompat variable for sed replacement
# mclose 11/03/98 - Change for sbs to shell script processing
# mclose 10/28/98 - added missing HotJavaBean.jar
# mclose 09/02/98 - Update for 8.1.4
# mclose 07/01/98 - Set 8.1.3 location for maf,ewtcompat,ewtdev
# mclose 06/04/98 - add $ORACLE_HOME/lib to LD_LIBRARY_PATH
# mclose 06/04/98 - Fix possible classpath problem
# mclose 06/02/98 - fix Net Assistant schell script for 8.1
# skanjila 10/15/97 - Append current LD_LIBRARY_PATH
# skanjila 06/05/97 - Add i18n.jar in classpath
# skanjila 05/28/97 - Creation
case $ORACLE_HOME in
"") echo "****ORACLE_HOME environment variable not set!"
echo " ORACLE_HOME should be set to the main"
echo " directory that contains Oracle products."
echo " Set and export ORACLE_HOME, then re-run."
exit 1;;
esac
case $DISPLAY in
"") echo "****DISPLAY environment variable not set!"
echo " Net8 Assistant is a GUI tool which"
echo " requires that DISPLAY specify a location"
echo " where GUI tools can display."
echo " Set and export DISPLAY, then re-run."
exit 1;;
esac
# Unset any existing JAVA_HOME variable to ensure that only
# the JRE we want to use is used.
unset JAVA_HOME
# External Directory Variables set by the Installer
JREDIR=/usr/app/oracle/product/8.1.7.0/JRE
JLIBDIR=/usr/app/oracle/product/8.1.7.0/jlib
# External File Variables set by the Installer
SHAREJAR=$JLIBDIR/share-1_0_8.jar
SWINGJAR=$JLIBDIR/swingall-1_1_1.jar
EWTJAR=$JLIBDIR/ewt-3_3_6.jar
EWTOTHER=$JLIBDIR/ewtcompat-opt-3_3_6.zip
HELPJAR=$JLIBDIR/help-3_1_8.jar:$JLIBDIR/ice-4_06_6.jar
NETCFGJAR=$JLIBDIR/netcfg.jar
MAFJAR=$ORACLE_HOME/network/jlib/sysmanmaf.jar
# Net Assistant Directory Variables
NETJLIBDIR=$ORACLE_HOME/network/jlib
NETTOOLSDIR=$ORACLE_HOME/network/tools
# Net Assistant File Variables
NETASSTJAR=$NETJLIBDIR/netasstm.jar:$NETJLIBDIR/netasst.jar
# JRE Executable and Class File Variables
JRE=$JREDIR/bin/jre
JREJAR=$JREDIR/lib/rt.jar:$JREDIR/lib/i18n.jar
# Set Classpath for Net Assistant
CLASSPATH=$NETASSTJAR:$MAFJAR:$EWTJAR:$HELPJAR:$SHAREJAR:$JREJAR:$EWTOTHER:$NETCFGJAR:$SWINGJAR:$NETTOOLSDIR
# Set the shared library path for JNI shared libraries
# A few platforms use an environment variable other than LD_LIBRARY_PATH
SET_DEFAULT=YES
PLATFORM=`uname`
case $PLATFORM in "HP-UX")
SET_DEFAULT=NO
SHLIB_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib:$SHLIB_PATH
export SHLIB_PATH
esac
case $SET_DEFAULT in "YES")
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
esac
# Run Net Assistant
$JRE -classpath $CLASSPATH oracle.net.asst.container.NetApplication oracle.net.asst.container.NetApplication
exit $statusI don't understand:
My spatial data does not use projection (the SRIDs are 262148).
What is 262148? It is an SRID that isn't in the 8.1.7.4 database.
If the SRID isn't an issue, you might want to make sure the coordinate
system bounds of the geometries match if your data is coming from two
different tables and they both have quadtree indexes built on them.
If the coordinate system bounds don't match, then you can see this kind of problem.
Hope this helps,
Dan -
Hi ALL,
i am working on a requirment for OS commands i have some doubt in this.we have a file sender FTP system in unix ,i am writing a shell script to find a file .
1)My doubt is where shoud i deply tht shell script ,is that in the PI systems server or FTP server ..?
2) in help document it say %f (file name)
%F (absolute file name including path) the file mentioned here is the actual data file name or .file name of the schell script .. ?
if can give me more insight on this will be very helpfull.
thanks
SouzHi Souz,
> We are using Linux as OS ..then do we need to write the OS command script in Linux.. ?
Linux is advanced of UNIX, so UNIX all commands should work on the Linux.
So write the UNIX shell script.
> and where we have to diploy this Script in the PI system.. ?
You can deploy this file any folder in the PI server, but in the communication channel you have to mention that file path.
Regards
Ramesh -
Oracle 11g - Non Oracle JOB ?
Oracle 11g - Non Oracle JOB ?
=====================
I hope this is the right forum for this issue, if not let me, where to go.
We are using Oracle 11g (11.2.0.1.0) on (Platform : solaris[tm] oe (64-bit)), Sql Developer 3.0.04
1) We are loading table using PL/SQL -- > at Oracle server.
2) This data is consumed by Mainframe DB2 process -- > at DB2 server.
3) Return us another table with derived data from DB2 -- > at DB2 server.
There is a IBM JCL read our table and return a Oracle table with calculated data.
Do we able to automate a process using PL/SQL to start the IBM JCL upon loading the table Step (1)?
Are there any alternate approach?
Thanks in helping us.
Edited by: qwe16235 on Jul 19, 2011 1:54 PMHello,
I read the DBMS_SCHEDULER pieces. We need to create a job (Pl/sql procedure or shell script) to configure the DBMS_SCHEDULER.
If we are going to do such thing in the server, where our current Oracle DB instance located, we can perform desired tasks via jobs. No issues.
I reviewed the components within DBMS_SCHEDULER to start job on another server, where there is no Oracle DB instance running. I did not find any clue/pointer on the referred doc.
Do we need any additional components to do such things?
We are on Server A with Oracle DB 11g and Server B with Non-Oracle and no Oracle Instance running there.
How do we create a Job J1 on Server A, where it will request Server B to start a Job J2 in Non-Oracle instance?
Do we have a component within DBMS_Scheduler to do that?
Thanks in helping. -
Command equal to Solaris devfsadm in linux
I attached a tape drive to sun fire x4170m3 server having operating system OEL5.8, need to add the driver to the kernel as we do in solaris devfsadm -c tape,,
I would like to ask if someone know about any equal command to the solaris devfsadm so I can add driver module to the Linux kernel without rebooting the Server.
Thanks in Advance...
Owais Hyder.To load and unload drivers in linux, you want to use the modprobe command. Chances are the scsi card (or fibre), is already loaded. You need to just load the scsi tape driver (st).
# modprobe st
You can check what scsi devices appear with:
# cat /proc/scsi/scsi
If the tape drive is not listed, then you may need to load additional drivers for the scsi card. In some cases, you may need to rescan the scsi bus. There are a couple of ways to do this. First see if the schell script rescan-scsi-bus.sh exists on the system. If not, just google around for rescanning the scsi bus.
Good luck
- David
Moderator Action:
Signature with embedded link has been removed.
Maybe you are looking for
-
Is this HD suitable for a mid-2010 15" MBP?
The 512GB HD which came with my mid-2010 15" MacBook Pro appears to have developed some problems. The machine auto-restarts on its own more often and takes a long time to go to sleep when I close the lid. I have replaced the RAM (4GB to 8GB) about 6
-
Use time machine to backup external hard drive (not main one)
Hi all, I've searched for information on this and getting nowhere. Not sure if it's possible, but I have two USB hard drives now as I've run out of space on my laptop. So therefore I really use one of the hard drives for my main storage and drag file
-
I've erased and formatted the hard drive accordingly in order to reinstall OS X. everything went fine until about half way through the install. it just seems to stop. how long should this take? should i do something else to speed it up?
-
I have to provide to my distributor either a ProRes422HQ QT movie or Avid DNXHD QT movie. I have AME, Premiere and AE CS6, any of them able to export one of these ? Maybe with a pluggin or something ? Thank you.
-
I find the font default size too small how do I adjust it to display larger on screen?
How do I alter the display on my macbook pro so that the font size isnt so small. On a pc I would ajust the display properties to do this but I cant find an optio for this on my new macbook pro (retina display)