Start up script for EPM 11.1.2 in Unix or Windows...
Is there a sample start up script for starting required services in EPM 11.1.2 ?
I saw that the Program Files item for EPM, has a link to some start up script but
it starts everything and it seems to refer to many scripts and seem complicated.
Is there a simple script for EPM 11 ? In System 9, I used Net Start to start services in a batch file and
used Sleep command between commands to give enough time for the services. But it would be nice
if there is a script which automatically checks to make sure to start the next service only after a dependent service has started.
cheers
Z
Simple examples for EPM11.1.2.1 on Windows env.
epmStart.bat
@ECHO OFF
ECHO EPM 11.1.2.1 STARTING / Batch EPM full start script by Antun Kulkov, 2011
ECHO See more at http://silw.blogspot.com
ECHO SQL Server Starting
sc start "MSSQLSERVER"
waitfor NONEXISTINGSIGNAL /T 5
ECHO Oracle Process Manager (ohsInstance)
sc start "OracleProcessManager_ohsInstance1649849633"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle Process Manager (EPM_epmsystem1)
sc start "opmn_EPM_epmsystem1"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle Process Manager (ConfigurationManager)
sc start "OracleEpmSystem_Administratord_oracle_middleware_user_projects_epmsystem1ConfigurationManager"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Hyperion RMI Registry
sc start "Hyperion RMI Registry"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Hyperion Foundation Services - Managed Server
sc start HyS9FoundationServices
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Administration Services - Web Application
sc start HyS9eas
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Integration Services
sc start "Essbase Integration Server"
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Provider Services - Web Application
sc start HyS9aps
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Studio Service BPMS
sc start "Hyperion Studio Service BPMS bpms1"
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion EPM Architect - Process Manager
sc start EPMA_Server
waitfor NONEXISTINGSIGNAL /T 30
ECHO Hyperion EPMA Data Synchronizer - Web Application
sc start HyS9EPMADataSynchronizer
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion EPMA Web Tier - Web Application
sc start HyS9EPMAWebTier
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion CALC Manager - Web Application
sc start HyS9CALC
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Planning - WebHyS9Planning Application
sc start HyS9Planning
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Web Analysis - Web Application
sc start HyS9WebAnalysis
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Reporting and Analysis Framework
sc start HyS9RaFrameworkAgent
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Financial Reporting - Web Application
sc start HyS9FRReports
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Reporting and Analysis Framework - Web Application
sc start HyS9RaFramework
waitfor NONEXISTINGSIGNAL /T 5
ECHO ALL DONE!
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle EPM System has been started.
epmStop.bat
@ECHO OFF
ECHO EPM 11.1.2.1 STOPPING / Batch EPM full stop script by Antun Kulkov, 2011
ECHO See more at http://silw.blogspot.com
ECHO Hyperion Web Analysis - Web Application
sc stop HyS9WebAnalysis
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Reporting and Analysis Framework
sc stop HyS9RaFrameworkAgent
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Financial Reporting - Web Application
sc stop HyS9FRReports
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Reporting and Analysis Framework - Web Application
sc stop HyS9RaFramework
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Planning - WebHyS9Planning Application
sc stop HyS9Planning
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion CALC Manager - Web Application
sc stop HyS9CALC
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion EPMA Web Tier - Web Application
sc stop HyS9EPMAWebTier
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion EPMA Data Synchronizer - Web Application
sc stop HyS9EPMADataSynchronizer
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion EPM Architect - Process Manager
sc stop EPMA_Server
waitfor NONEXISTINGSIGNAL /T 30
ECHO Hyperion Studio Service BPMS
sc stop "Hyperion Studio Service BPMS bpms1"
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Provider Services - Web Application
sc stop HyS9aps
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Integration Services
sc stop "Essbase Integration Server"
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Administration Services - Web Application
sc stop HyS9eas
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Foundation Services - Managed Server
sc stop HyS9FoundationServices
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion RMI Registry
sc stop "Hyperion RMI Registry"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle Process Manager (ConfigurationManager)
sc stop "OracleEpmSystem_Administratord_oracle_middleware_user_projects_epmsystem1ConfigurationManager"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle Process Manager (ohsInstance)
sc stop "OracleProcessManager_ohsInstance1649849633"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle Process Manager (EPM_epmsystem1)
sc stop "opmn_EPM_epmsystem1"
waitfor NONEXISTINGSIGNAL /T 10
ECHO SQL Server Stopping
sc stop "MSSQLSERVER"
waitfor NONEXISTINGSIGNAL /T 5
ECHO ALL DONE!
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle EPM System has been stopped.
Similar Messages
-
How do I start the script for Photoshop CS6 in Bridge CS6 image processor ?
I am new to Bridge and I am lookiing for a way to batch process images. I opened 'preferences' and did not find Photoshop CS6 under the script list. How do I open and run the image processor? Thanks for any help!!
I have clicked on 'tools' within Bridge but there is no 'Photoshop' in the drop-down menu.
Misread your post a bit and see you want the image processor, however, this should be in the same location as the Batch option. If you don't have Photoshop in that list it means the start up script is not active or not installed properly.
First check Bridge preferences / Start up scripts and see if Photoshop is listed inhere and has a checkmark in front. If no checkmark then set it to on, restart Bridge and try again. If no Start upScript at all first try restart Bridge holding down option key (Mac) or ctrl (Win) and choose reset preferences.
If still no luck try a reinstall of PSCS6 to also reinstall Bridge again. (you first have to uninstall PSCS6, be sure to have a back up of custom settings etc). -
Where can i find start/stop scripts for all SAP instances
Hi,
I installed CI, DB and Dialog instance on a standalone S10 machine and i could see start scripts under /sapmnt/RAM/profile
START_DVEBMGS09_hostSAP
START_D24_hostSAP
But i cann't see stop scripts for the above and also i cann't see start and stop scripts for SAP DB instance. Could some one point me where i can find them when everything is installed on a single box.
Thanks,
RamUSAGE: STARTSAP.EXE name=<SID> nr=<SYSNR> SAPDIAHOST=<host>
FURTHER INFORMATION:
- The executable sapstart.exe must be in the same directory
when you start sap instacne, it will check db instance first, if db instance not start , it will automatic start db instance then sap instance.
vice visa :
stopsap is alos can be used. -
Script for multiple tp addtobuffer and tp import in windows OS
Hi Gurus,
Can someone extend some asssitance? I need to transport 5000 transport request in OS level (window). I wanted to create a script that will enable me to addtobuffer and tp import all this 5000 request and will show the error code of the particular TPs that encountered an error.
Need your immediate assistance please?Hi,
You can do the following
1. Compose all the requests in the given specified format.
tp addtobuffer REQUEST SID client=XXX pf= Transport domain profile Using excel sheet.
We should have following things
a. Request IDs such as <SID>K9XXXXX
b. SID of the system for which these requests are to be imported.
c. Specific client no.
d. Transport domain profile.
The final format of the excel sheet with all the transport requests should look like this.
This format needs to be pasted on to the text file. (transports.txt), in windows you can save as .cmd or bat format may be.
tp addtobuffer <SID>K9XXXXX <target SID> client=XXX pf=TP_DOMAIN_SID.PFL
tp addtobuffer <SID>K9XXXXX <target SID> client=XXX pf=TP_DOMAIN_SID.PFL
tp addtobuffer <SID>K9XXXXX <target SID> client=XXX pf=TP_DOMAIN_SID.PFL
tp addtobuffer <SID>K9XXXXX <target SID> client=XXX pf=TP_DOMAIN_SID.PFL
u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026.
2. Once the text file or cmd file with all the requests are made, place it on to the target system transport directory.
/usr/sap/Trans/bin.
3. Execute this file (./transports.bat) and redirect this file to one more file (error.txt) for checking the errors
./transports.bat >> error.txt
Once all the transports are attached into buffer, you can do the mass import from STMS
Thanks and Regards
Purna
Edited by: purnachender on Mar 17, 2010 7:11 AM -
Startup/Shutdown script for OBIEE 11.1.1.5.0 on Linux
There was a very good thread on start/stop scripts for Oracle BI 11.1.1.3.0 that can be found at
https://forums.oracle.com/forums/thread.jspa?messageID=9896816#9896816Now OBI11.1.1.5.0 is out and I tried to use the scripts in the post to start OBI 11.1.1.5.0 after system reboot. I did the following
1) saved the scripts modified with my environemnt variables in /etc/init.d
2) login as root
3) issue command, and got in std out right away
# service obiee start
Starting Oracle Business Intelligence on Tue Sep 27 10:39:31 PDT 2011
Logs are sent to /var/log/obiee-start.log
4) check the log file
[oracle@cchdb ~]$ tail -f /var/log/obiee-start.log
at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:261)
at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Truncated. see log file for complete stacktrace
>
<Sep 27, 2011 10:39:54 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Sep 27, 2011 10:39:54 AM PDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Sep 27, 2011 10:39:54 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
5) Check running processes
[root@cchdb oracle]# ps -fe|grep obiee
root 9332 1 0 10:39 pts/2 00:00:00 /bin/bash /etc/init.d/obiee start
oracle 9452 9179 0 10:39 pts/1 00:00:00 tail -f /var/log/obiee-start.log
root 9481 9305 0 10:40 pts/2 00:00:00 grep obiee
OBI is not started. Can some one help ?Tried various things and has a work around.
First of all, cannot make WLST work for me. Then tried manually step by step as described in reference https://forums.oracle.com/forums/thread.jspa?messageID=9896816#9896816 that is in fact agree with document e10541.
1) Start Admin Server and response to prompt to username/password
<BI Domain Home>/bin/startWebLogic.sh
2) Start node manager
$WL_PATH/startNodeManager.sh
3) Start managed Server with Weblogic Server Admin Console
4) Start System Components with opmnctl
./opmnctl startall This works with the following notes1) Do step one in backgroumd not work, cannot response the username/password prompt properly.
2) If change WLS_USER and WLS_PW in <BI Domain Home>/bin/startManagedWebLogic.sh as in the reference cited abover, step 1 still prompt for username and stops right after username is provided.
3) Step 3 does not work if use command line
<BI Domain Home>/bin/startManagedWebLogic.sh bi_server1 http://<admin_server_host_name>:7001
Has to use UI tool Weblogic Server Admin Console. Question1) How to provide username/password to startWebLogic.sh to allow run it in background
2) How to provide username/password to startManagedWebLogic.sh to allow run it in background -
Hi All,
I am loading the data from .csv format to table by using sql*loader.
This sql*loader command was existed in one of the pl/sql Procedure. this procedure will first create a table and then it will get the data by using sql*loader command,then one procedure will run.
to run this script we are manually loading the data from excel by using sql*laoder by running the .ctl command from Command prompt.. instead of doing manually this process is there any other way to do it automatically.
if it is possible please let me know.
here i am giving the script
drop table emp;
create table emp
(eno number,
ename varchar2(20),
job varchar2(20),
sal number(4),
doj date
- here table created.then here by using below sql*loader command loading the data info emp table
load data
infile <file path>
fields terminated by ','
intto table emp
(eno,
ename,
job,
sal)by running this control file manually from command prompt loading the data.
then there is a procedure which we need to to update the EMP table.
for this whole thing we are just running the script except loading the data part.
for this please let me know the automation part.
Thanks.Hi,
Create a shell Script(Unix) or Windows batch Job to automate the entire process. The script will like below
1.Connect SQLPLUS with the Createtable.SQL file (The Createtable.sql will have the create table script)
2.invoke sql loader with the control file
3.then again connect SQLPLUS with the executeproc.sql file (the executeproc.sql will have the execute command to execute the stored procedure)
by this way your entire process can be in one script and automate by scheduling it in unix or windows.
Thanks,
Vijay
Edited by: Vijayaraghavan Krishnan on Nov 27, 2012 4:48 PM -
Start script for Nagios 3.0.4 on Solaris 10 doesn't work.
I compiled Nagios 3.0.4 on a Solaris 10 system using the following configure string:
./configure prefix=/space/nagios with-gd-lib=/usr/local/lib with-gd-inc=/usr/local/include with-nagios-user=na
gios with-nagios-group=nagios with-temp-dir=/space/nagios/tmp with-init-dir=/etc/init.d with-lockfile=/space/nagio
s/var/nagios.lock with-cgiurl=/nagios/cgi-bin with-htmurl=/nagios with-httpd-conf=/var/apache/conf enable-embedded
-perl --with-mail=/usr/bin/mailx
I have my Nagios configuration files setup and they are working properly as the command: nagios -v ../etc/nagios.cfg returns no errors.
If I run the /etc/init.d/nagios script, it will return an exit status of zero stating that it ran successfully, however, there are no nagios processes running. I tried adding my PATH and LD_LIBRARY_PATH strings from my profile to the top of the Nagios start/stop script and it still will not work. The only way I can currently start nagios is by issuing the command:
nohup /space/nagios/bin/nagios /space/nagios/etc/nagios.cfg &
By issuing that command, I can see the monitoring in the web interface and can select on the various sections within the interface, etc. with no problems.
I would like to know why the script will not work from /etc/init.d when I execute it manually. When I do attempt to start Nagios using the start/stop script, the following message is written to the nagios.log file.
Lockfile '/space/nagios/var/nagios.log' does not contain a valid PID ([122535000)
I have posted the above question to the Nagios forum and no one there has posted a response. Any help would be greatly appreciated.I have used the default (comes with Nagios) script with a few changes:
@@ -115,7 +115,7 @@
$NagiosBin -v $NagiosCfgFile > /dev/null 2>&1;
if [ $? -eq 0 ]; then
su - $NagiosUser -c "touch $NagiosVarDir/nagios.log \
$NagiosRetentionFile"
- rm -f $NagiosCommandFile
+ rm -f $NagiosCommandFile 2>/dev/null > /dev/null
touch $NagiosRunFile
chown $NagiosUser:$NagiosGroup $NagiosRunFile
$NagiosBin -d $NagiosCfgFile
@@ -138,10 +138,9 @@
# happen, and then the exiting nagios will remove the
# new NagiosRunFile, allowing multiple nagios daemons
# to (sooner or later) run - John Sellens
- echo -n 'Waiting for nagios to exit .'
+ echo 'Waiting for nagios to exit .'
for i in 1 2 3 4 5 6 7 8 9 10 ; do
if status_nagios > /dev/null; then
- echo -n ' .'
sleep 1
Why not use SMF?
vi /var/svc/manifest/network/nagios.xml (in a global zone, even if Nagios will run in a sparse root non-global zone)
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type='manifest' name='Nagios'>
<service
name='network/nagios'
type='service'
version='1'>
<dependency name='loopback'
grouping='require_all'
restart_on='error'
type='service'>
<service_fmri value='svc:/network/loopback:default'/>
</dependency>
<dependency name='physical'
grouping='optional_all'
restart_on='error'
type='service'>
<service_fmri value='svc:/network/physical:default'/>
</dependency>
<dependency
name='filesystem'
grouping='require_all'
restart_on='none'
type='service'>
<service_fmri value='svc:/system/filesystem/local'/>
</dependency>
<instance name='default' enabled='false'>
<exec_method
type='method'
name='start'
exec='/lib/svc/method/nagios start'
timeout_seconds='30'>
<method_context>
<method_credential user='nagios' group='nagios'/>
<method_environment>
<envvar name="NAGIOS_HOME" value="/usr/local/nagios"/>
</method_environment>
</method_context>
</exec_method>
<exec_method
type='method'
name='stop'
exec='/lib/svc/method/nagios stop'
timeout_seconds='60'>
<method_context>
<method_credential user='nagios' group='nagios'/>
<method_environment>
<envvar name="NAGIOS_HOME" value="/usr/local/nagios"/>
</method_environment>
</method_context>
</exec_method>
</instance>
<template>
<common_name>
<loctext xml:lang='C'>
Nagios
</loctext>
</common_name>
<documentation>
<doc_link name='nagios.org'
uri='http://nagios.org/' />
</documentation>
</template>
</service>
</service_bundle>
chown root:sys /var/svc/manifest/network/nagios.xml
chmod 644 /var/svc/manifest/network/nagios.xml
Now for the method:
vi /lib/svc/method/nagios (in a global zone, even if Nagios will run in a sparse root non-global zone)
Make sure you set prefix in the file below!
#!/bin/sh
status_nagios ()
if test -x $NagiosCGI/daemonchk.cgi; then
if $NagiosCGI/daemonchk.cgi -l $NagiosRunFile; then
return 0
else
return 1
fi
else
if ps -p $NagiosPID > /dev/null 2>&1; then
return 0
else
return 1
fi
fi
return 1
printstatus_nagios()
if status_nagios $1 $2; then
echo "nagios (pid $NagiosPID) is running..."
else
echo "nagios is not running"
fi
killproc_nagios ()
kill $2 $NagiosPID
pid_nagios ()
if test ! -f $NagiosRunFile; then
echo "No lock file found in $NagiosRunFile"
exit 1
fi
NagiosPID=`head -n 1 $NagiosRunFile`
# Source function library
# Solaris doesn't have an rc.d directory, so do a test first
if [ -f /etc/rc.d/init.d/functions ]; then
. /etc/rc.d/init.d/functions
elif [ -f /etc/init.d/functions ]; then
. /etc/init.d/functions
fi
prefix=/usr/local/nagios
exec_prefix=${prefix}
NagiosBin=${exec_prefix}/bin/nagios
NagiosCfgFile=${prefix}/etc/nagios.cfg
NagiosStatusFile=${prefix}/var/status.dat
NagiosTempFile=${prefix}/var/nagios.tmp
NagiosRetentionFile=${prefix}/var/retention.dat
NagiosCommandFile=${prefix}/var/rw/nagios.cmd
NagiosVarDir=${prefix}/var
NagiosRunFile=${prefix}/var/nagios.lock
NagiosLockDir=/var/lock/subsys
NagiosLockFile=nagios
NagiosCGIDir=${exec_prefix}/sbin
NagiosUser=nagios
NagiosGroup=nagios
# Check that nagios exists.
if [ ! -f $NagiosBin ]; then
echo "Executable file $NagiosBin not found. Exiting."
exit 1
fi
# Check that nagios.cfg exists.
if [ ! -f $NagiosCfgFile ]; then
echo "Configuration file $NagiosCfgFile not found. Exiting."
exit 1
fi
# See how we were called.
case "$1" in
start)
echo -n "Starting nagios:"
$NagiosBin -v $NagiosCfgFile > /dev/null 2>&1;
if [ $? -eq 0 ]; then
su - $NagiosUser -c "touch $NagiosVarDir/nagios.log $NagiosRetentionFile"
rm -f $NagiosCommandFile 2>/dev/null > /dev/null
touch $NagiosRunFile
chown $NagiosUser:$NagiosGroup $NagiosRunFile
$NagiosBin -d $NagiosCfgFile
if [ -d $NagiosLockDir ]; then touch $NagiosLockDir/$NagiosLockFile; fi
echo " done."
exit 0
else
echo "CONFIG ERROR! Start aborted. Check your Nagios configuration."
exit 1
fi
stop)
echo -n "Stopping nagios: "
pid_nagios
killproc_nagios nagios
# now we have to wait for nagios to exit and remove its
# own NagiosRunFile, otherwise a following "start" could
# happen, and then the exiting nagios will remove the
# new NagiosRunFile, allowing multiple nagios daemons
# to (sooner or later) run - John Sellens
# echo 'Waiting for nagios to exit .'
for i in 1 2 3 4 5 6 7 8 9 10 ; do
if status_nagios > /dev/null; then
echo '.'
sleep 1
else
break
fi
done
if status_nagios > /dev/null; then
echo ''
echo 'Warning - nagios did not exit in a timely manner'
else
echo 'done.'
fi
rm -f $NagiosStatusFile $NagiosTempFile $NagiosRunFile $NagiosLockDir/$NagiosLockFile $NagiosCommandFile
status)
pid_nagios
printstatus_nagios nagios
restart)
printf "Running configuration check..."
$NagiosBin -v $NagiosCfgFile > /dev/null 2>&1;
if [ $? -eq 0 ]; then
echo "done"
$0 stop
$0 start
else
#$NagiosBin -v $NagiosCfgFile
echo " FAILED! Restart aborted. Check your Nagios configuration."
exit 1
fi
reload|force-reload)
printf "Running configuration check..."
$NagiosBin -v $NagiosCfgFile > /dev/null 2>&1;
if [ $? -eq 0 ]; then
echo "done"
if test ! -f $NagiosRunFile; then
$0 start
else
pid_nagios
if status_nagios > /dev/null; then
printf "Reloading nagios configuration..."
killproc_nagios nagios -HUP
echo "done"
else
$0 stop
$0 start
fi
fi
else
#$NagiosBin -v $NagiosCfgFile
echo " FAILED! Reload aborted. Check your Nagios configuration."
exit 1
fi
echo "Usage: nagios {start|stop|restart|reload|force-reload|status}"
exit 1
esac
# End of this script
chmod 555 /lib/svc/method/nagios
chown root:bin /lib/svc/method/nagios
xmllint /var/svc/manifest/network/nagios.xml (should return the XML file contents)
svccfg import /var/svc/manifest/network/nagios.xml (in the zone where Nagios will run)
svcadm enable nagios
I run /path/to/nagios/bin/nagios -v /path/to/nagios.cfg when making config changes and then svcadm restart nagios -
Scripts for starting/stopping managed servers
All,
Could someone provide me with some sample scripts for starting/stopping managed Weblogic servers? I'm specifically looking for ways to start/stop them WITHOUT starting the AdminServer. I'm running WLS 10.3.6 on Windows Server 2003, and I have NodeManager set to start automatically as a Windows service.
I know how to set my managed servers up as Windows services so that they will start automatically at boot, but this requires the AdminServer to be running, which I do not want. I just want a few scripts for starting/stopping the managed servers (and maybe some hints as to how to make them start automatically without starting the AdminServer).
Thanks in advance,
TomHello Puneet,
Admin console is an web application deployed into AdminServer. Hence if you shutdown AdminServer then you wouldn't able to access Admin console.
Managed Server would function in MSI mode, however you will not be able to make any configuration or administration activities like deployment , any configuration changes , etc.
Hello PRISM,
Can you confirm your requirement about why you don't want AdminServer to be running?
As I said, you will loose the administration capability if you don't have admin server running.
Regards
Rosario -
Orarun rpm, stop/start scripts for tiers
Is anyone using the orarun rpm? If so, how do you startup your tiers? I have the metalink note 211497.1, an oracle sales person gave me it since I am evaluating OCS and can't have a metalink account. I was able to successfully install all 3 tiers finally and I had to powerdown because electricians were coming in. Now I can't even bring up the ifrastructure tier using the commands. Someone help please. Thanks for any input.
here u r the note
How to start/stop components of Collaboration Suite
PURPOSE
Helping to start and stop all components of Collaboration Suite
SCOPE & APPLICATION
All administrators and consultants working with Collaboration Suite
HOW TO START/STOP COLLABORATION SUITE
There are several steps for starting and stopping Collaboration Suite
components.
Here you can find examples how to start and stop infrastructure,
database and middletier components seperately
1) INFRASTRUCTURE
Please check first, which of the components you have configured
----infraenv begin----
export ORACLE_BASE=<your ORACLE_BASE, e.g: /u01/oracle>
export ORACLE_HOME=<your ORACLE_HOME, e.g: /u01/oracle/product/infra>
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin:/usr/local/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib:$LD_LIBRARY_PATH
export NLS_LANG=<your NLS setting, e.g: american_america.UTF8>
export ORACLE_SID=iasdb
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
----infraenv end------
----infrastart begin----
# starting infrastructure components:
# get env
. ./infraenv
ALTDISP=$DISPLAY
export DISPLAY=localhost:0.0
# listener starting
lsnrctl start
# listener checking
lsnrctl status
# database starting (refers to ORACLE_SID setting in infraenv)
sqlplus "/ as sysdba" <<!
startup
# OID starting
oidmon connect=iasdb start
sleep 5
oidctl connect=iasdb server=oidldapd instance=1 start
# HTTP and OC4J starting
dcmctl shell <<!
getState -v
start -v -ct ohs
start -v -co OC4J_DAS
getState -v
# Webcache start (only necessary for portal)
webcachectl start
# OPMN start (sometimes necessary, please try first without it)
opmnctl startall
# EMD starting (not needed for OID, only for web administration)
emctl start
export DISPLAY=$ALTDISP
----infrastart end------
----infrastop begin----
# stopping infrastructure components
# get env
. ./infraenv
ALTDISP=$DISPLAY
export DISPLAY=localhost:0.0
# EMD stopping (not needed for OID, only for web administration)
# setting pw variable to avoid emctl asking for pw
export EM_ADMIN_PWD=<ias_admin_password>
emctl stop
# Webcache stop
webcachectl stop
# HTTP and OC4J stopping
dcmctl shell <<!
getState -v
stop -v -ct ohs
stop -v -co OC4J_DAS
getState -v
# OPMN stop (to stop opmn and his shadow process)
opmnctl stopall
# OID stopping
oidctl connect=iasdb server=oidldapd instance=1 stop
sleep 5
oidmon connect=iasdb stop
# listener stopping
lsnrctl stop
# database stopping
sqlplus "/ as sysdba" <<!
shutdown immediate
export DISPLAY=$ALTDISP
----infrastop end------
2) STORAGE
If there are different databases for mailstore and Files, then each of them
needs these scripts
----dbenv begin------
export ORACLE_BASE=<your ORACLE_BASE, e.g. /u01/oracle>
export ORACLE_HOME=<your ORACLE_HOME, e.g. /u01/oracle/product/storage>
export PATH=$ORACLE_HOME/bin:/usr/local/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib:$LD_LIBRARY_PATH
export NLS_LANG=<your NLS setting, e.g. american_america.UTF8>
export ORACLE_SID=<your SID, e.g. OCS>
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
----dbenv end--------
----dbstart begin------
# starting storage components
# get env
. ./dbenv
# listener starting
lsnrctl start
# listener checking
lsnrctl status
# database starting
sqlplus "/ as sysdba" <<!
startup
----dbstart end--------
----dbstop begin------
# stopping storage components
# get env
. ./dbenv
# listener stopping
lsnrctl stop
# database stopping
sqlplus "/ as sysdba" <<!
shutdown immediate
----dbstop end--------
3) MIDTIER COMPONENTS
first of all start Calendar and Files before the other components always
(both of them as root !)
switch from oracle with environment set (see below) to root with 'su'
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
cd /users/unison/bin
./unistart
cd $ORACLE_HOME/ifs/files/bin
./ifsctl start
check <Note.205298.1> Considerations how to start UM listener as oracle
to see, if you can start listener_es as oracle (as desribed below) or not
----midenv begin------
export ORACLE_BASE=<your ORACLE_BASE, e.g. /u01/oracle>
export ORACLE_HOME=<your ORACLE_HOME, e.g. /u01/oracle/product/midtier>
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin:/usr/local/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib:$LD_LIBRARY_PATH
export NLS_LANG=<your NLS setting, e.g. american_america.UTF8>
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
----midenv end--------
----midstart begin------
# starting midtier components
# get env
. ./midenv
# UM listener_es start
lsnrctl start listener_es
dcmctl shell <<!
getState -v
start -v -ct ohs
start -v -co OC4J_Portal
start -v -co OC4J_UM
start -v -co OC4J_iFS_files
getState -v
# Webcache start (if configured, but not started, OC4J may fail)
webcachectl start
# EMD (if installed and enabled)
emctl start
# UM processes
oesctl startup midtierhost:um_system:smtp_in
oesctl startup midtierhost:um_system:smtp_out
oesctl startup midtierhost:um_system:imap
oesctl startup midtierhost:um_system:gc
oesctl startup midtierhost:um_system:list
oesctl startup midtierhost:um_system:pop
----midstart end--------
----midstop begin------
# stopping midtier components
# get env
. ./midenv
export password=oracle1
export myprompt=false
export prompt=false
ifsctl stop
oesctl shutdown sniprim2:um_system:smtp_in
oesctl shutdown sniprim2:um_system:smtp_out
oesctl shutdown sniprim2:um_system:imap
oesctl shutdown sniprim2:um_system:gc
oesctl shutdown sniprim2:um_system:list
oesctl shutdown sniprim2:um_system:pop
lsnrctl stop listener_es
# Webcache stop
webcachectl stop
dcmctl shell <<!
getState -v
stop -v -ct ohs
stop -v -co OC4J_Portal
stop -v -co OC4J_UM
stop -v -co OC4J_iFS_files
getState -v
opmnctl stopall
----midstop end-------- -
How to Enable Custom Java Scripts for forms in Planning 11.1.2.2
I am working on Planning 11.1.2.2 right now.
Planning admin guide says, there is no explicit requirement to enable java Script for planning forms.
I set simple alert to see text "Hello World" in function validateForm() function in custom/validateData.js file - to see and test that alert when I save data for my selected application/form.
Closed javascript file and workspace, and planning application web page. Since I have not to do anything new to enable this java script alert, I opened that form and saved data to see if I can see my alert.. I got no alert, except "data are saved".
Has anything changed since last version? Am I missing something? Or, do I need to recycle services to get this alert?
thanks in advance.Thanks guys, for your quick replies..!
Not sure what I missed, but I still have a hard time finding my "Hello World" alert.
What I did, is here.
a. Cleared all cookies and temp files from IE.
b. Updated validateData.js file from ear / war files using 7-zip program at given path from your link.
c. Stopped EPM services
d. Dropped tmp folder.
e. Started EPM services and let system deploy ear file (with my java script code).
All services are up. I can see EAR file deployed and java script file ValidateData.js has all my changes in new tmp folder now.
I am able to open my application and form.
But, my "Hello World" alert is still not appearing. Form is saved and saw message as usual.
One exception I noticed in my path. I have ....user_projects\domains\EPMSystem\servers\EPMServer0\.... in place of ....user_projects\domains\EPMSystem\servers\Planning_0\.... in my path. Planning_0 is replaced by EPMServer0 in this version. Rest is all same.
Any clue? thanks in advance, -
Start up script fails; Unable to boot...Please, Help.
This is my first major problem that I have had with this computer. It has been running fine until this past Sunday night. I was running AOL, Firefox & iTunes. The computer was running slow and iTunes was skipping frequently. I rebooted and resumed my activities only to have the same problems and the computer booted slower than usual. I closed all my applications and rebooted once again. Then, I ran Disk Utility had used Verify Disk. It found an error on my system volume stating an incorrect block count in one sector and referenced a file cache_003, all other volumes passed. Disk Utility was unable to repair the volume. Repair Disk ran slow. I did a search for the file cache_003 and discovered that it was part of a Netscape profile back up on a different partition. I deleted the profile and used Disk Utility again. This time, the system volume passed and a different volume failed due to incorrect block size, Repair Disk failed. The next time I tried to boot the computer the gray screen with apple and loading indicator came up and stayed for several minutes followed by a blue screen with loading indicator for several minutes and stayed blue for nearly 40 minutes. Eventually, the screen went black and displayed that the start up script failed. Here is some of what was displayed.
Darwin/BSD(Computer Name-Computer.local)(console)
System Starter[35]
login date&time Internet Sharing[96]:Libinfo[Socket_open():2318]connect():2318]connect:()connection refused (This line repeated continuously)
I am able to input commands at this stage but I am not knowledgeable enough to know what to do.
When I push the power button to turn it off the computer beeps once and the led light flashes three times and turns off.
Each time when I attempt to boot either into Safe Mode or from the Software Install DVD I encounter the same problem.
Now, Monday night by chance on another boot attempt the computer started up although it took about 20-30 minutes. It was missing one volume which showed up in Disk Utility under a different name. While I had the computer up I backed up what I could on the volumes that mounted. One file I was unable to burn using Toast 9 due to a data fork error. The computer eventually froze during my activities and since I have had no luck at my start up attempts and have had the same problem. Luckily, I was able to back up everything I needed with the exception of what was on the AWOL volume.
The last thing I had installed recently was the latest Security Update which went fine and was two days before the trouble started.
I am at a loss for what to do next. I would like to retrieve the files on that one volume but at this point if I can start up I would just like to reformat and install the OS.
Any help with this problem would be much appreciated. Thank you.Well, originally when I ran Disk Utility, although it performed slower than usaual it found the error as previously mentioned and was unable to Repair Volume. As to using the Hardware Disc & Install Discs(original & Tiger) the computer failed to boot although you could hear the disc spinnning for awhile. In both and every instance regardless of any or no disc, the computer starts the boot process and you see the gray screen with white apple and loading indicator for about 3 minutes then it switches to the blue screen with loading indicator. After quite some time the loading indicator goes away and it's just a blue screen for nearly a half-hour followed by a black screen which starts the above prompt. I can post all of what that said later as I have written all of it down at home, a portion of it is in my original post. The start up chime doesn't sound at all. I do get a tone and flashing LED lights when I hold the power button down to turn it off after the above described boot process. There is not much I can do except try and try again. I may need to get a new hard drive but I would like to resolve it without doing so if possible. When trying to boot from both discs I was holding down the C key as directed and I have tried just letting the computer boot with disc in drive without any key interaction.
-
One script for multiple loaded movie clips
Hello,
I am sure that this has been asked or answered before, but
could not locate the correct response.
Problem:
There are 20 movie clips loaded onto the stage through
actionscript. I have 20 different onPress scripts to start the drag
for each (which also contain custom variable).
Problem, I have one single onRelease script which is to be
used for each, but do now wish to give 20 custom handled scripts.
Can I somehow use certain scripting for using one single
generic script for the onRelease? So no matter what was released it
will go through this one script.
Thanks
Dlike this...
activate
set the_folder to choose folder with prompt "Select the folder you want to add folders to..."
tell application "Finder"
set the_name to "Name"
set the_count to 3
repeat with this_num from 1 to the_count
set new_num to this_num as string
if (count new_num) is 1 then set new_num to "0" & new_num
make new folder at the_folder with properties {name:the_name & " " & new_num}
end repeat
end tell -
I am getting an error in "Step 2 - Setup or Remove Lync Server Components" of "Install or Update Lync Server System" step.
"An error occured while applying SQL script for the feature BackendStore. For details, see the log file...."
Additionally, all previous steps such as: Prepare Active Directory, Prepare first Standard Edition server, Install Administrative Tools, Create and publish topology are done without any errors. The user that I used to setup the Lync server is member of:
Administrators
CSAdministrator
Domain Admins
Domain Users
Enterprise Admins
Group Policy Creator Owners
RTCComponentUniversalServices
RTCHSUniversalServices
RTCUniversalConfigReplicator
RTCUniversalServerAdmins
Schema Admins
I have tried to re-install all the things and started to setup a new one many times but the same error still occurred. Please see the log below and give me any ideas/solutions to tackle this problem.
****Creating DbSetupInstance for 'Microsoft.Rtc.Common.Data.BlobStore'****
Initializing DbSetupBase
Parsing parameters...
Found Parameter: SqlServer Value lync.lctbu.com\rtc.
Found Parameter: SqlFilePath Value C:\Program Files\Common Files\Microsoft Lync Server 2013\DbSetup.
Found Parameter: Publisheracct Value LCTBU\RTCHSUniversalServices;RTC Server Local Group;RTC Local Administrators;LCTBU\RTCUniversalServerAdmins.
Found Parameter: Replicatoracct Value LCTBU\RTCHSUniversalServices;RTC Server Local Group.
Found Parameter: Consumeracct Value LCTBU\RTCHSUniversalServices;RTC Server Local Group;RTC Local Read-only Administrators;LCTBU\RTCUniversalReadOnlyAdmins.
Found Parameter: DbPath Value D:\CsData\BackendStore\rtc\DbPath.
Found Parameter: LogPath Value D:\CsData\BackendStore\rtc\LogPath.
Found Parameter: Role Value master.
Trying to connect to Sql Server lync.lctbu.com\rtc. using windows authentication...
Sql version: Major: 11, Minor: 0, Build 2100.
Sql version is acceptable.
Validating parameters...
DbName rtcxds validated.
SqlFilePath C:\Program Files\Common Files\Microsoft Lync Server 2013\DbSetup validated.
DbFileBase rtcxds validated.
DbPath D:\CsData\BackendStore\rtc\DbPath validated.
Effective database Path: \\lync.lctbu.com\D$\CsData\BackendStore\rtc\DbPath.
LogPath D:\CsData\BackendStore\rtc\LogPath validated.
Effective Log Path: \\lync.lctbu.com\D$\CsData\BackendStore\rtc\LogPath.
Checking state for database rtcxds.
Checking state for database rtcxds.
State of database rtcxds is detached.
Attaching database rtcxds from Data Path \\lync.lctbu.com\D$\CsData\BackendStore\rtc\DbPath, Log Path \\lync.lctbu.com\D$\CsData\BackendStore\rtc\LogPath.
The operation failed because of missing file '\\lync.lctbu.com\D$\CsData\BackendStore\rtc\DbPath\rtcxds.mdf'
Attaching database failed because one of the files not found. The database will be created.
State of database rtcxds is DbState_DoesNotExist.
Creating database rtcxds from scratch. Data File Path = D:\CsData\BackendStore\rtc\DbPath, Log File Path= D:\CsData\BackendStore\rtc\LogPath.
Clean installing database rtcxds.
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
****Creating DbSetupInstance for 'Microsoft.Rtc.Common.Data.RtcSharedDatabase'****
Initializing DbSetupBase
Parsing parameters...
Found Parameter: SqlServer Value lync.lctbu.com\rtc.
Found Parameter: SqlFilePath Value C:\Program Files\Common Files\Microsoft Lync Server 2013\DbSetup.
Found Parameter: Serveracct Value LCTBU\RTCHSUniversalServices;RTC Server Local Group.
Found Parameter: DbPath Value D:\CsData\BackendStore\rtc\DbPath.
Found Parameter: LogPath Value D:\CsData\BackendStore\rtc\LogPath.
Trying to connect to Sql Server lync.lctbu.com\rtc. using windows authentication...
Sql version: Major: 11, Minor: 0, Build 2100.
Sql version is acceptable.
Validating parameters...
DbName rtcshared validated.
SqlFilePath C:\Program Files\Common Files\Microsoft Lync Server 2013\DbSetup validated.
DbFileBase rtcshared validated.
DbPath D:\CsData\BackendStore\rtc\DbPath validated.
Effective database Path: \\lync.lctbu.com\D$\CsData\BackendStore\rtc\DbPath.
LogPath D:\CsData\BackendStore\rtc\LogPath validated.
Effective Log Path: \\lync.lctbu.com\D$\CsData\BackendStore\rtc\LogPath.
Checking state for database rtcshared.
Reading database version for database rtcshared.
Database version for database rtcshared - Schema Version5, Sproc Version 0, Update Version 1.
Thanks and Regards,
Thanh LeThanks Lạc
Phạm 2
I Had similar issue i end up uninstalling and reinstallting but same issue, then i change the drive but same issue. It was I/O issue. After adjusting my I/O it fix our issue and installation went on without any issue.
If any one using KVM here is detail article
We just give this option cache=‘writeback
using this article http://www.ducea.com/2011/07/06/howto-improve-io-performance-for-kvm-guests/ and http://itscblog.tamu.edu/improve-disk-io-performance-in-kvm/ this fix my issue thanks -
Script for adding a login item for all accounts in the system
Hi,
Thanks for reading this query. I am new to the mac environment. I have developed a java application and created an installer of this application for MAC system.I want to run this application on starting the system. So I have written an apple script for adding this application in login items and this script will run immediately after completing installation process. And the entire process is fine. But the problem is, the application is added to login items of only the user who installed the application. But I want to get available the application in the login list of all accounts created in the system. How can I achieve this? Once more thanks in advance. I am attaching my script below:
+*tell application "System Events"*+
+* make login item at end with properties {path:"/Applications/MyApplication.app", hidden:true}*+
+*end tell*+Hi,
Try to use tables RSOSFIELDMAP, RSDSSEGFD and RSTRAN
Hope it helps
bhaskar -
Here are scripts for getting OAS302 working on RedHat 6.0
People have said this doesn't work. It works. It's just the
owsctl that doesn't work. I'm not saying that oas302 on RedHat 6
is the best solution anyone could come up with, but it does work,
and if you want to do it, here are some scripts that you can feel
free to modify and use as you wish. Various variables should be
updated with however you system is configured. Remember to start
the wrb (i.e. the second script) before you start any listeners.
Linux has a tendency to crash if you don't kill -KILL all the wrb
processes at the same time (i.e. the kernel gets an uncaught
exception and dies).
Erik
<disclaimer>
I do not guarantee these will work. I do not guarantee that
they will not destroy something important. I assume no liability
for what these scripts may or may not do. Use them at your own
risk. There is no expressed or implied waranty.
</disclaimer>
#!/bin/ksh
# Script to start the oraweb http servers to listen for requests
# because owsctl is kind of unpredictable under RedHat 6.0
# set this variable to be the directory that the webserver
# configuration drivetoryies are under (i.e.
# /db/app/oracle/admin/ows/web/httpd_my.host.com)
WEB_HOME=/db/app/oracle/admin/ows/web/httpd_my.host.com
LISTENER="$2"
if [[ -z "$LISTENER" ]]
then
echo "No listener name to start."
echo "Usage: listen {start|stop} listener"
echo "e.g.:"
echo " listen start admin"
exit 1
fi
case "$1" in
start)
OMN_ADDR=UDP:worf.gcg.com:2649
OWS_ADPCFG="$ORAWEB_HOME/admin/adpspy.cfg"
OWS_ADPSO="$ORAWEB_HOME/lib/ndwfs.so"
OWS_ORAWEB_FREEDOMX=1
export OWS_ADPCFG OWS_ADPSO OMN_ADDR OWS_ORAWEB_FEEDOMX
CFG_FILE=$WEB_HOME/$LISTENER/config/sv$LISTENER.cfg
if [[ -f "$CFG_FILE" ]]
then
oraweb -C $CFG_FILE
else
echo "Could not find config file for $LISTENER:"
echo " $CFG_FILE"
exit 1
fi
stop)
PID_FILE=$WEB_HOME/$LISTENER/config/sv$LISTENER.pid
if [[ -f $PID_FILE ]]
then
kill `cat $PID_FILE`
if [[ $? -ne 0 ]]
then
echo "Could not stop oraweb $LISTENER process."
exit 1
fi
else
echo "Could not find oraweb $LISTENER PID file:"
echo " $PID_FILE"
exit 1
fi
echo "Usage: listen {start|stop} listener"
echo "e.g.:"
echo " listen start admin"
exit 1
esac
#!/bin/ksh
# Script to start up the Oracle Web Request Broker (wrb)
# processes manually because owsctl doesn't work on RedHat
# Linux 6.0
TMP_FILE=/tmp/wrb.pids
case "$1" in
start)
SLEEP=3
if [[ -f "$TMP_FILE" ]]
then
echo "$TMP_FILE exits. Make sure the wrb is not
already"
echo "running, remove $TMP_FILE, and run this script
again."
exit 1
fi
if [[ -z "$ORAWEB_HOME" ]]
then
echo "ORAWEB_HOME is not set. This environment variable"
echo "should be set to the directory where the oracle was"
echo "lives, i.e. /app/oracle/product/8.0.5/ows/3.0"
exit 1
fi
OMN_ADDR=UDP:my.host.com:2649
OWS_ADPCFG="$ORAWEB_HOME/admin/adpspy.cfg"
OWS_ADPSO="$ORAWEB_HOME/lib/ndwfs.so"
OWS_ORAWEB_FEEDOMX=1 # I have no idea what this does; I read
# about it in a newsgroup. Supposedly
# it makes the oas run faster
export OWS_ADPCFG OWS_ADPSO OMN_ADDR OWS_ORAWEB_FREEDOMX
PATH=$ORAWEB_HOME/bin:$PATH
mnaddrsrv -D &
echo -n "$! " > $TMP_FILE
sleep $SLEEP
mnrpcnmsrv &
echo -n "$! " >> $TMP_FILE
mnorbsrv &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbcfg &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrblog &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbasrv &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbahsrv &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbroker &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbvpm &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbfac &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbdm &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
stop)
kill -KILL `cat $TMP_FILE`
if [[ $? -ne 0 ]]
then
echo "Could not stop wrb processes. The PIDs are in"
echo "$TMP_FILE. If these are running, please"
echo "stop them manually."
else
rm -rf $TMP_FILE
fi
echo "Usage: wrb {start|stop}"
exit 1
esac
nullHi Erick,
Your scripts for running the OAS302 on 6.0 linux had been very
helpful.
In fact, I dont know what would I have done without them.
Now I am able to run the listeners and even able to create the
packages and users in the database via the OAS 3.0.2 but the
problem starts when accessing a procedure in the database using
the pl/sql agent. By the way i am using Oracle 8.0.5.1 RDBMS and
its home is different than the webserver home.
The browser just does nothing and even does not log any error
message ,I have to stop it after a while but all my other
catridges are working.
any insight will be appreciated.
thanks,
Vikram ( Ironically enough I work for Oracle).
Erik Nielsen (guest) wrote:
: People have said this doesn't work. It works. It's just the
: owsctl that doesn't work. I'm not saying that oas302 on RedHat
6
: is the best solution anyone could come up with, but it does
work,
: and if you want to do it, here are some scripts that you can
feel
: free to modify and use as you wish. Various variables should
be
: updated with however you system is configured. Remember to
start
: the wrb (i.e. the second script) before you start any
listeners.
: Linux has a tendency to crash if you don't kill -KILL all the
wrb
: processes at the same time (i.e. the kernel gets an uncaught
: exception and dies).
: Erik
: <disclaimer>
: I do not guarantee these will work. I do not guarantee that
: they will not destroy something important. I assume no
liability
: for what these scripts may or may not do. Use them at your own
: risk. There is no expressed or implied waranty.
: </disclaimer>
: #!/bin/ksh
: # Script to start the oraweb http servers to listen for
requests
: # because owsctl is kind of unpredictable under RedHat 6.0
: # set this variable to be the directory that the webserver
: # configuration drivetoryies are under (i.e.
: # /db/app/oracle/admin/ows/web/httpd_my.host.com)
: WEB_HOME=/db/app/oracle/admin/ows/web/httpd_my.host.com
: LISTENER="$2"
: if [[ -z "$LISTENER" ]]
: then
: echo "No listener name to start."
: echo "Usage: listen {start|stop} listener"
: echo "e.g.:"
: echo " listen start admin"
: exit 1
: fi
: case "$1" in
: start)
: OMN_ADDR=UDP:worf.gcg.com:2649
: OWS_ADPCFG="$ORAWEB_HOME/admin/adpspy.cfg"
: OWS_ADPSO="$ORAWEB_HOME/lib/ndwfs.so"
: OWS_ORAWEB_FREEDOMX=1
: export OWS_ADPCFG OWS_ADPSO OMN_ADDR OWS_ORAWEB_FEEDOMX
: CFG_FILE=$WEB_HOME/$LISTENER/config/sv$LISTENER.cfg
: if [[ -f "$CFG_FILE" ]]
: then
: oraweb -C $CFG_FILE
: else
: echo "Could not find config file for $LISTENER:"
: echo " $CFG_FILE"
: exit 1
: fi
: stop)
: PID_FILE=$WEB_HOME/$LISTENER/config/sv$LISTENER.pid
: if [[ -f $PID_FILE ]]
: then
: kill `cat $PID_FILE`
: if [[ $? -ne 0 ]]
: then
: echo "Could not stop oraweb $LISTENER process."
: exit 1
: fi
: else
: echo "Could not find oraweb $LISTENER PID file:"
: echo " $PID_FILE"
: exit 1
: fi
: echo "Usage: listen {start|stop} listener"
: echo "e.g.:"
: echo " listen start admin"
: exit 1
: esac
: #!/bin/ksh
: # Script to start up the Oracle Web Request Broker (wrb)
: # processes manually because owsctl doesn't work on RedHat
: # Linux 6.0
: TMP_FILE=/tmp/wrb.pids
: case "$1" in
: start)
: SLEEP=3
: if [[ -f "$TMP_FILE" ]]
: then
: echo "$TMP_FILE exits. Make sure the wrb is not
: already"
: echo "running, remove $TMP_FILE, and run this script
: again."
: exit 1
: fi
: if [[ -z "$ORAWEB_HOME" ]]
: then
: echo "ORAWEB_HOME is not set. This environment variable"
: echo "should be set to the directory where the oracle
was"
: echo "lives, i.e. /app/oracle/product/8.0.5/ows/3.0"
: exit 1
: fi
: OMN_ADDR=UDP:my.host.com:2649
: OWS_ADPCFG="$ORAWEB_HOME/admin/adpspy.cfg"
: OWS_ADPSO="$ORAWEB_HOME/lib/ndwfs.so"
: OWS_ORAWEB_FEEDOMX=1 # I have no idea what this does; I read
: # about it in a newsgroup. Supposedly
: # it makes the oas run faster
: export OWS_ADPCFG OWS_ADPSO OMN_ADDR OWS_ORAWEB_FREEDOMX
: PATH=$ORAWEB_HOME/bin:$PATH
: mnaddrsrv -D &
: echo -n "$! " > $TMP_FILE
: sleep $SLEEP
: mnrpcnmsrv &
: echo -n "$! " >> $TMP_FILE
: mnorbsrv &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbcfg &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrblog &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbasrv &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbahsrv &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbroker &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbvpm &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbfac &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbdm &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: stop)
: kill -KILL `cat $TMP_FILE`
: if [[ $? -ne 0 ]]
: then
: echo "Could not stop wrb processes. The PIDs are in"
: echo "$TMP_FILE. If these are running, please"
: echo "stop them manually."
: else
: rm -rf $TMP_FILE
: fi
: echo "Usage: wrb {start|stop}"
: exit 1
: esac
null
Maybe you are looking for
-
Extracting .xls file from an FTP site
Hi there, I'm trying to run a DI solution that is extracting a file from a FTP site. DI can see the file but it gives me an error saying that: FTP could not transfer file <FTP site/myfile.xls> from host <IP Address>: <>. Please ensure that the FTP re
-
just bought macbook pro and want to download purchases I have already made from itunes apps but when it says downloaded can't find it. I have run a search and found it in my mac but unable to open or do anything?? Do not understand what is happening.
-
How to use resolution setting in preview
I am adjusting resolution setting for photos in preview. I just want to find out what the max resolution is and when or if you would ever need to use it. I am submitting photos to a website that wants the highest quality images. I have a mid 2010 mac
-
Retention Amount capturing in MIRO
Dear All, My Client requirement is as below. While posting a Invoice via MIRO or F-43, the invoice need to be split into 2 lines , one line(part of the amount 80%) need to be paid within 15days and remaining 20% after 1year. I defined Installment pay
-
Currencies with no decimals in SAP R/3
What are the list of countries in R/3 which do not have decimals in their currencies? I know SAP does not support for JPY.