Automate database start and stop
I'm trying to run the automate scripts per installation manual. It's failing on the 'rsh' line with permissions denied. Does anyone know what this line is doing and why it's in the script.
if [ ! "$2" = "ORA_DB" ] ; then
rsh $HOST -l $ORACLE /sbin/init.d/oracle $1 ORA_DB
exit
fi
It is trying to do a remote shell instruction to $HOST. Probably the remote host will not allow rsh logins. Check with the sysadmin of the remote host
btw, what version of oracle and OS, I can't imagine why a startup script would need to run rsh to another server.
Similar Messages
-
How to automate the Oracle database start and shutdown process
How we can automate and oracle database start and stop procees with Linux start/shutdown process.
I want to automatically start the oracle database at the time linux server and shutdown the database on shutdown linux server.Hi,
I can share my scripts:
1) /home/oracle/start_oracle.sh
#Script should be ran as Oracle user
cd /tmp
export ORACLE_SID=orcl
export ORACLE_HOME=/oracle/ora9i
lsnrctl start
sqlplus -S /nolog <<ENDSQL
connect / as sysdba
startup
exit
ENDSQL
emctl start dbconsole
isqlplusctl start
NOTE: emctl and isqlplus are optional
2) /home/oracle/stop_oracle.sh
#Script should be ran as Oracle user
cd /tmp
export ORACLE_SID=orcl
export ORACLE_HOME=/oracle/ora9i
isqlplusctl stop
emctl stop dbconsole
sqlplus -S /nolog <<ENDSQL
connect / as sysdba
shutdown immediate
exit
ENDSQL
lsnrctl stop
NOTE: emctl and isqlplus are optional
Then what you need:
1) K91oracle_stop (put it in the desired run level)
#!/bin/bash
# description: Stop Oracle before reboots
su - oracle -c "/home/oracle/stop_oracle.sh" >> /home/oracle/stoporacle.log
2) S91oracle_start (put it in the desired run level)
#!/bin/bash
# description: Start Oracle after reboots
su - oracle -c "/home/oracle/start_oracle.sh" >> /home/oracle/startoracle.log
Bye. -
VMM 2012: How to Configure Automatic Start and Stop Actions for a Virtual Machine?
Does somebody know how to confgure Automatic Start and Stop Actions for a Virtual Machine in VMM 2012?
I miss that option.Automatic Start or Automatic Restart actions are available for virtual machines running on a Hyper-V cluster from within Virtual Machine Manager.
From within Virtual Machine Manager, bring up the Virtual Machine's properties:
Click "Hardware Configuration"
Click "Availability"
Click "High", "Medium", or "Low" to enable automatic start/restart or
Click "Do not restart automatically" to disable automatic start/restart
Screenshot from VMM 2012 for a VM running in a Server 2012 R2 Hyper-V cluster:
VMs running on a cluster have to be marked "Highly Available" and logically, Microsoft assumes that you'll want these VMs to be running all the time when this setting is selected. If the cluster fails or needs to be restarted, you can set the priority
by which a VM restarts, or you can set the VM to not restart at all when cluster services are restored by using the settings above. -
Starting and stop Oracle 9i database
Hello;
Can anybody tell me how to start and stop an Oracle 9i database manually with Window NT 4 ?
thanks a lot !- start/settings/configuration pannel/services
- select the oracle service
- press start or stop button
Hello;
Can anybody tell me how to start and stop an Oracle 9i database manually with Window NT 4 ?
thanks a lot ! -
Starting and stopping services of SAP and database
pls tell what are the Starting and stopping services of SAP and database
Hi Ranga,
The services dealing with SAP and database(Ex: Oracle in this case) are:
SAP<SID>_<Instance No.> (For ex: SAPECC_01)
SAPOsCol
Oracle<SID><No>Listener
OracleCSSservice
OracleService<SID>
Reward points if it is helpful##
Thanks & Regards,
Santhosh P
Please change the status to answered if you got the solution...
Message was edited by:
Santhosh Kumar P -
Automatic start and Stop the SAP System
Hi experts,
We want to deploy the unattended/Scheduled Start SAP and stop SAP in IBM i series. How to do it? I have tried with WRKJOBSCDE and putted the command STOPSAP or STARTSAP but after finishing the job, now result. But when I simply put command STOPSAP/STARTSAP it works(start and stop sap system).
How to deploy it?
Thanks
AsadHi Ken,
yes, that is correct, but in the meantime, it is **** easier ;-)
As SAPHostAgent starts automatically, it is just needed in the default profile:
Autostart = 1
This is a really nice new feature ;-))
Regards,
Volker Gueldenpfennig, consolut international ag -
Start and stop a loop automatica​lly subtractin​g at each iteration
Hi there,
I know that there are some topics about it, but I could not find any solution, especially because I use the version 7.1 and cannot open new version files.
My problem is as follows:
I need to charge a tank from 6 to 10 in the morning, every day during 3 days. The process must start and stop automatically, which means, no bottoms to start or stop. The start and stop conditions come from the hour.
I start with a big loop of 72 iterations, which corresponds to 72 hours.
The tank must start at level 6 every time it starts.
After the start, 1 unit must be subtracted in each iteration. Which means, that at 6 am the tank has level 10, at 7 am level 9 and so on. In the end, at 10 am the tank level is equal to 2.
In the next day, the process must start again and the tank must start at level 6.
Any suggestions? Thanks in advance.
Solved!
Go to Solution.While this may work it can be improved significantly. This really isn't a state machine. This is basically the same as your flat sequence with the exception of using a While loop with a Case statement to implement each frame.
You should define what your actions are and create a typedefed ENUM naming them. State names of 1 through 24 are meaningless. Not to mention in your code many of the cases are duplicates of others. That would mean that all of those can be one state with logic to determine what action/state comes next. A properly defined state machine would not need the outside For loop. Without knowing your specific needs some examples of reason state names would be the following: Start, Stop, Exit, Error, Initialize, Get Tank Level, Fill Tank, Drain Tank, Idle, etc. Can you see how these are easier to understand than 1 through 24.
There are lots of examples of state machines here. Try a search and take a look at some of them.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot -
How to create a .exe script to start and stop Oracle EBS R12 in Linux
Hello,
I have installed Oracle EBS R12 in Linux enterprise through Virtual box on windows 7 professional. It takes a long time to start and stop EBS as I have to start and stop the scripts manually - can someone please help me with the following (I have tried searching the web and Oracle for help but have had no joy);
Q1. I want to create a executable file in Linux so I can double click the file in Linux to start EBS automatically instead of going through each script manually
Q2. I want to create a executable file in Linux so I can double click the file in Linux to stop EBS automatically instead of going through each script manually
you help will be appreciated.
AliI have installed Oracle EBS R12 in Linux enterprise through Virtual box on windows 7 professional. It takes a long time to start and stop EBS as I have to start and stop the scripts manually - can someone please help me with the following (I have tried searching the web and Oracle for help but have had no joy);
Q1. I want to create a executable file in Linux so I can double click the file in Linux to start EBS automatically instead of going through each script manually
Q2. I want to create a executable file in Linux so I can double click the file in Linux to stop EBS automatically instead of going through each script manually
you help will be appreciated.Please see these links.
https://forums.oracle.com/forums/search.jspa?threadID=&q=Autostart+AND+Services&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
https://forums.oracle.com/forums/search.jspa?threadID=&q=Auto+AND+Start+AND+Services&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Managing Server Processes
http://docs.oracle.com/cd/E18727_01/doc.121/e13675/T530130T530133.htm#5274555
Thanks,
Hussein -
Starting and stopping oracle in Unix
I have installed oracle in a Unix Box.
Since i am very new to Unix, Pls tell me tehs steps to start and stop oracle in Unix from telnetIn addition to Chris' answer, I encourage you to
1) Enroll in a Unix course, especially 'Shell Concepts';
2) Read Oracle's Oracle® Database Administrator's Reference
10g Release 2 (10.2) for UNIX-Based Operating Systems
TO help in 1), http://www.injunea.demon.co.uk/pages/page203.htm might be useful. -
Start and stop the Communication channel from Java Mapping
How to start and stop the Communication channel from Java Mapping in XI 3.0
Scenario PI - > MQ -> Third Party web application
Web application is down and then Communication channels are stop manually .
We need to automate this process,
MQ Solution - Trigger will be set in MQ which will be called when web application is stopped
Trigger will send u201CSTOP u201C message to PI
How to configure PI scenario to stop different com channels when this message received ?check this link: http://help.sap.com/saphelp_nw04/helpdata/EN/45/0c86aab4d14dece10000000a11466f/frameset.htm
make sure that MQ send http request to PI. i dont think a configuration scenario is required in PI. Only roles should be enabled with proper user provided to MQ team.
However, for security reasons, you can configure a scenario if you dont want to expose PI infrastructure directly to 3rd parties. -
How to create services start and stop automation script for diff servers
Hi All,
i want to create a bat file for automation purpose to start and stop services
i have some services in 1st server aand some in 2nd server and some in 3rd servers.
has you all know i have to follow sequences to start and stop services can any help me in creating .bat by linking 3 servers fo starting and stoping services.
Thanks in advance
Regards
SMHi,
this is the list of start oder for services in 11.1.2.1 from the Installation and Configuration Guide
1. Databases for repositories.
2. Any corporate user directories that you plan to configure for use with Shared Services.
3. Foundation Services Managed Server application server, which includes Shared Services,
and EPM Workspace.
4. Reporting and Analysis Framework — Agent Service (if required for your environment)
5. Reporting and Analysis Framework Application Server (if required for your environment)
6. Web server
The remaining services and processes can be started in any order:
1. Performance Management Architect Services
2. Performance Management Architect application server
3. Performance Management Architect Data Synchronizer application server
4. Essbase Server
5. Administration Services application server
284 Starting and Stopping EPM System Products
6. Integration Services Server
7. Essbase Studio Server
8. Provider Services application server
9. Financial Reporting Services
10. Financial Reporting application server
11. Web Analysis application server
12. Calculation Manager application server
13. Planning application server and the Hyperion RMI Registry
14. Financial Management service
15. Financial Management Web application server
16. Strategic Finance service
17. Performance Scorecard application server
18. Performance Scorecard Alerter application server
19. Profitability and Cost Management application server
to start services on different servers you can use the sc command in your batch file
for eg
sc \\10.121.201.21 start HypS9FrameworkAgent -
Sql server agent is not highlighting start and stop options
I configured snapshot replication , after that sql server agent is not highlighting start and stop options in instance.
But I can start & stop it in services.msc
how I can solve this?Hi,
Can you post exact error message.
Also refer below article, may be similar issue like yours.
How to start SQL Server Agent when Agent XPs show disabled
Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
Praveen Dsa | MCITP - Database Administrator 2008 |
My Blog | My Page -
Dispatcher starts and stops immediately
Dispatcher is starts and stops immediately and all the work process are died state. We don't have the backup of database also?
Database in suspect mode , How can recover from this situation?
Thanks
SrikanthHi,
Database in suspect mode , How can recover from this situation?
Have you referred this [SAP Note 81692 - Suspect database |https://service.sap.com/sap/support/notes/81692] ? Its lists possible causes for such situation. I would first determine the root cause of such issue, which can be identified in SQL Server Log.
Also you can refer some Microsoft Knowledge base articles as listed in [SAP Note 437160 - MS Disaster Recovery Articles for MS SQL Server|https://service.sap.com/sap/support/notes/437160] and [SAP Note Note 353149 - SQL server not running - hints for analyzing|https://service.sap.com/sap/support/notes/353149].
Regards,
Bhavik G. Shroff
Edited by: Bhavik G. Shroff on Jun 30, 2011 6:37 PM -
Starting and stopping stream capture repeatedly
Hi,
I am building a vmail server that captures an incoming, continuous RTP voice stream from a hardware phone and records portions of that stream to disk, based on control messages received (like record/stop buttons for a continuous RTP stream).
The first time I record, the sound file on the file system is well formatted. Subsequent recordings result in headerless audio files (although the audio data is correctly output to file otherwise).
The problem is that I need to get header information written to the audio files for subsequent recordings.
Here is a bit of source code to show how I am starting and stopping recording. At this point, the processor is already created and realized and the MediaLocator is previously initialized:
MediaLocator recordedML ;
public void startRecording() {
try {
processor.start();
DataSource ds = null;
ds = processor.getDataOutput();
recordingDataSink = Manager.createDataSink(ds, recordedML);
recordingDataSink.open();
// starts sticking captured data into a file
recordingDataSink.start();
} catch (IOException e) {
e.printStackTrace();
} catch (NoDataSinkException e) {
e.printStackTrace();
public void stopRecording() {
try {
recordingDataSink.stop();
recordingDataSink.close();
recordingDataSink = null;
processor.stop();
processor.deallocate();
} catch (IOException e) {
e.printStackTrace();
Calling startRecording() and stopRecording() the first time results in a properly formatted sound file on the file system, captured from my incoming RTP stream.
Calling startRecording() and stopRecording() subsequent times results in headerless audio files.
So the problem seems to be that subsequent calls to processor.getDataOutput() result in a DataSource that doesn't print a file header.
What I have tried includes:
-recreating the processor, but this doesn't work because it seems you can only do this once for a single incoming stream - the processor never reaches the configured state a second time.
-reconfiguring the processor or re-realizing the processor, which doesn't do what I want either.
One way that I think this would work would be to write out the audio header manually after the capture is complete, but this seems like a gross hack and I would rather do it through JMF.
Is there a way to fix this via JMF? Is this a JMF bug or is it intended to work this way?
Cheers,
-JeffHi, I am unfortunately unable to help you but perhaps you could help me. I have a Java GUI that I want to enable to record voice from a mic at the click of a button (stopping automatically if possible) and save to a defined file in the code. Would you be able to help me here? I have tried different source and rejigged things but I cannot seem to get anything working.
Any help gratefully apreciated. -
I am importing a list of 10,000 emails into memory and then
comparing them to a database which holds over 400,000 records. It
doesnt take long for the <cfquery> to time out. I know there
must be a way to loop thru 20 or so, then stop, then loop thru the
next 20, etc. I cannot lengthen the timeout so I need to figure out
a way to process the data in chunks. Thanks.
<cfhttp method="Get"
url="
http://192.168.14.51/matt/email.CSV"
columns="Email"
name="importCSV"
delimiter="#chr(10)##chr(13)#"
textqualifier="">
<cfset counter = 0>
<cfloop index="element" list = "#CFHTTP.FileContent#"
delimiters="#chr(10)##chr(13)#">
<cfset counter = counter +1>
</cfloop>
<cfset start = 1>
<cfset end = 20>
<cfset lastRow = #counter#>
<cfloop from="#start#" to="#end#" index="loop">
<cfset ThisEmail =
listGetAt(cfhttp.filecontent,loop,"#chr(10)##chr(13)#")>
<CFQUERY NAME = "CheckEmail" DATASOURCE="t">
SELECT Email
FROM Subscriber_Info_New
WHERE Email = '#ThisEmail#'
</CFQUERY>
<CFIF CheckEmail.RecordCount EQ 0>
<CFQUERY NAME="Insert" datasource="t">
INSERT INTO Subscriber_Info_New
(Email)
VALUES (<cfqueryparam cfsqltype="CF_SQL_VARCHAR"
value="#Trim(ThisEmail)#">)
</CFQUERY>
</CFIF>
</cfloop>quote:
Originally posted by:
Newsgroup User
I cannot lengthen the timeout so I need to figure out a way
to process
the data in chunks. Thanks.
Are you sure you can not lengthen the timeout. The
<cfapplication ...>
tag allows one to define a specific timeout for a given page,
as long as
that is less then the maximum timeout defined in the
administrator.
If this is not sufficient for your needs you will need to
break up your
process over multiple requests. Just starting and stopping
the loop in
a singe request does nothing for reducing the timeout
threshold of the
page. You can do this with scheduled tasks, web services,
and|or the
<cflocation ...> tag. You will need to pass through
relevant data about
what iterations to process, and use some kind of extra
request storage
for the results, such as server|application|session scopes,
databases or
files.
Hope that gives you some help.
Ian
Sounds like more than I know how to do. I cant change the
timeout because its set that way on purpose. I think Ill leave this
alone for now. Thanks.
Maybe you are looking for
-
I'm an American living on a timed (though long-term) assignment in Ireland. I have both American and Irish bank accounts and addresses. I have two Qs. 1. Can I use the US Adobe site when in Ireland? Or will my physical location prevent me from doing
-
Signed applet for file download?
Hello folks, I have a signed applet through which i can upload multiple files to a servlet. I wish to create another applet or enhance this one to enable it to download multiple files from the server to the client m/c. Any idea, how to go about it? I
-
I Have this piece of code: public void actionPerformed(ActionEvent e){ if(e.getSource() == btn_Aceptar){ }else if(e.getSource() == btn_Cancelar){ }else if(e.getSource() == btn_Ruta){ int valor = jfc_Ruta.
-
hi, sap gurus, can we know about the list of third party softwares for transportation ie is logistics execution. and for tax calculation procedures apart from the std r/3. any clues plz plz help me on this. regards, balaji.t 09990019711
-
WHY DOES THE PE EDITOR KEEP FAILING TO LOAD
I have a brand new problem with Photoshop Elements 8, which I've been using in Windows for several years. Suddenly the PE editor refuses to load--either from "Fix" in the album space or from "Edit" in the Workspace. It starts to load (with the green