Stopping/starting BO4 via scheduled script (SIA enough?)
Hi,
We are wishing to implement a backup stratgey for our new BO4 deployment running on 2 windows servers against Oracle 11 CMS database.
Wish to have cold backups in addition to hot ones.
In order to implement cold backups will need to bring the BOE services down via script.
Just wondered as to best practice.
1) Is it sufficient to simply stop the SIA via script and what would command be. In old XIR2 we have net stop and net start server names.
I'm assuiming fine to leave Tomcat up and running during this time - will be for up to 1 hr during night when nobody using system.
Many Thanks
Edited by: Philip O'Rourke on Jan 14, 2012 12:58 PM
Create a file C:\Windows\reboot-script.bat and put the following command string in it:
shutdown /r /f /d P:4:1
/r = reboot
/f = force running applications to close (this shuts down BOE and Tomcat)
/d P:4:1 = the reason for the reboot (P=Planned)
the numbers are Major and Minor reasons for the reboot
4:1 = Application:Maintenance
4:2 = Application:Installation
(The /d and it's following parameters are not really necessary but I put them in there so that my Wintel support team can see the reboot is planned and executed by me)
With that one command string in your *.bat file, you can then use Task Scheduler to "Start a Program" at the specified time you need.
CAUTION: If you set this up and run it under your own ID, that can lead to inconsistent results. It's really much better to run it as SYSTEM (your Windows Admin has to get involved) or a Service Account. This is on the General tab of the Task Scheduler.
Similar Messages
-
Stopping/Starting Portal via BAT file on Windows
In our landscape we have the ABAP and JAVA stack installed on separate servers for security reason. We are trying to implement windows updates via SUS and need to automate the stopping and starting of SAP. The bat file that was created works when stopping and starting the ABAP portion of SAP but on the Portal server it will take it down but when trying to start Portal, the J2ee Server will not start, but when I use the SAP MMC all servers starts up without any problem. Below is the start up bat file, any assistance will be greatly appreciated:
REM start of script
PATH=%path%;G:\usr\sap\QBE\SYS\exe\uc\NTAMD64
SET ORACLE_SID=QBE
SET SAPDATA_HOME=K:\ORACLE\QBE
REM
REM
REM ***** starting Oracle Services *****
REM
net start OracleQBE102TNSListener
net start OracleServiceQBE
net start OracleQBE102iSQL*Plus
REM
REM ***** starting SAP services *****
REM
net start SAPOsCol
net start SAPQBE_00
net start SAPQBE_01
REM
REM ***** starting SAP Instances ******
REM
G:\usr\sap\QBE\SYS\exe\uc\NTAMD64\startsap.exe name=QBE nr=00 SAPDIAGHOST=SAPEPQA
G:\usr\sap\QBE\SYS\exe\uc\NTAMD64\startsap.exe name=QBE nr=01 SAPDIAGHOST=SAPEPQA
REM
REM end of scriptI looked up some training material and in TADM10 - Unit4 - Starting and Stopping a SAP NetWeaver AS Java.. the following is stated:
Under Windows, the SAP system can also be started and stopped without a GUI by
calling a command by means of the executable files startsap.exe and stopsap.exe. This
can be done using a simple telnet access.
To start an instance of the SAP system, open a telnet connection and enter the
following command: startsap name=<SID> nr=<instance nr.>
SAPDIAHOST=<hostname>
To stop an instance of the SAP system, open a telnet connection and enter the
following command: stopsap name=<SID> nr=<instance nr.>
SAPDIAHOST=<hostname>
For the SAPDIAHOST parameter, enter the name of the host on which the instance is
to be started.
So the script is correct, its all according to SAP advice... very strange -
Starting SQLPlus via batch script
Hi,
When I type in: sqlplus USER/PASS@SERVER at command prompt it starts SQL Plus in the command prompt.
Now when I save this command as .bat file and then execute this bat file it doesn't start SQL Plus. It just keeps on executing this command continuously.
How can I start SQL Plus via a batch file.
Thanks in advance,
Raja> Once I execute the bat script it just keeps on executing this command endlessly on the command
prompt.
This is typically how you should start SQL*Plus in "batch" mode. Note, the script does not use the command line for the username and password, as that will make it visible to others via a process listing (that typically includes the command line for that process).
/home/billy> cat x.sh
#!/bin/sh
sqlplus -s /nolog <<EOF
set heading off
set feedback off
connect scott/tiger
select sysdate from dual;
exit;
EOF
/home/billy> ./x.sh
2008-06-11 07:33 -
Start wls_forms via scheduler?
I was wondering if anyone on 2008r2 64 had tried starting wls_forms (10.3.4) on startup configuring that via the windows
scheduler?
(This is then not the same as making it a service as oracle talks about in 1060058.1 Seems like the service
thing has a lot of negatives. If the machine restarts such as from a long powerfailure or whatever I want the
wls_forms to come up on its own. But I can live without the service thing.)
So I created the boot.properties id and password.
%MIDDLEWARE_HOME%\user_projects\domains\<domain name>\servers\WLS_FORMS\security\boot.properties
and then I'm thinking of basically configuring the scheduler to start at startup that which oracle installed in the start menu to start wls_forms under oracle classic instance, forms services, start weblogic server
(which is in my case: )
C:\formmid\user_projects\domains\forms\bin\startManagedWebLogic.cmd WLS_FORMS t3://MYMACHINE:7001
Now this works interactively (running as administrator command prompt) at least.
(If it is not already running such as having been started by the console/environment/servers/control )
Anyone ever try this and have any comments?
Edited by: robinxx on Jun 21, 2011 1:28 PMI have tried it on server 2008 32 bit but am wondering that 64 bit windows allowed you to install oracle 11g .Which version middleware fusion you are using ?
i have used a scheduler to start weblogic when the system starts .didnt found any problem . go to the batch file provided by the middleware fusion start weblogic server .right click and give username password there and save it . then go to the scheduler and rest you know give 15 minute after windows start . and 15 min after that schedule report server it will work . -
Error starting db via batch script: Cannot communicate with crsd
Hi,
I've installed Oracle 11g on a Windows 7 64 bit laptop, and I have no problems starting the database using Windows Services
I tried starting the db using the batch command, but received the following error:
C:\Users\Scott>C:\app\Scott\oracle\11.2.0\11gr2_home\BIN\srvctl.bat start database -d sw11g
PRCD-1027 : Failed to retrieve database sw11g
PRCR-1070 : Failed to check if resource ora.sw11g.db is registered
Cannot communicate with crsd
Have I missed a parameter?
CheersNo, this is my laptop where I'm using the DB as an experimental tool etc.
This was my attempt in placing a shortcut on my desktop for startup. -
Can't get MAC to shut down and start up via the schedule button in system preferences energy saver. Is there another way?
Try this to start:
Repair the Hard Drive and Permissions
Boot from your Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X. -
Starting applications from a keynote via Apple Script?
Is there any way to start an application from a keynote via Apple Script?
Welcome to the forums!
Keynote does not support the use of AppleScript in that fashion. -
Start/Stop a tablespace via SAP transaction
Dear All,
I'm just wondering about start/stop a tablespace via SAP transactions. Is it possible? At the moment i'm working on SAP Netweaver (DB Server:DB2 8.1/z/os 1.7, AS:AIX 5.2).
Many thanks for your help.
Regards,Thanks Thomas for the fast answer!
Starting right now to write my commands
Best regards,
Andrea -
Hello,
the volumne control of my apple earphones is not working.
All other functions available at the switch on the earphones work fine (Stop, Start, next/previous title, accept incoming call)
I have already several times rebooted the iPhone 5S.
I'm gratefull for every hintHello Any one? Apple?
Ah forget it... it been two weeks and nothing.
The product wasn't even designed to last for 2 years, and mine is trash after less than one.
I will NEVER buy another song from the itunes store or another iPod. or even another Mac product for that matter.
Message was edited by: Chompers417 -
BO4 - Lifecycel Management Console to export all content via scheduled job
Hi,
We wish to export the entire content of our repository to a lcmbiar file via scheduled job every week.
Whilst could do this manually, want this to be a periodic refresh.
The purpose of this is to have a developemnt system which has the content of the production system as of a week ago.
So would want this job to be dynamic, exporting entire content including any new content on weekly basis at week-end during quiet time on servers.
Anybody know if this can be done via lcmbiar file automatically?
I'm thinking say sales folder week 1 10 reports, week 2 somebody creates another 2 reports, would want lcmbiar file to automatically pick up the new reports which have been added in week 2.
Is this possible via lifecycle management console?
Can't simply export cms database to development system as contains the production host embedded within it and don't want the development system to have reference to the physical production host.
Many ThnaksHi,
Yesterday ASUG conducted webinar on LCM 4.0 FP3. URL for webbex session
http://www.asug.com/Default.aspx?tabid=124&vp_url=http://jive.asug.com/docs/DOC-32206
summary:
1. We can not schedule to export LCMBIAR file in 4.0 SP2
2. When ant file added to folder, automatically scheduled job do not pick the file in 4.0 SP2
But above two options are good and working in FP3 as per SAP. -
I am curious as to what the "normal" time frame is for stop & start process is for most companies.
In my situation, I have 2 virtual servers dedicated to Essbase, Financial Reporting and Workspace. It takes me about 20-30 minutes everytime I stop & start.
I am curious to know if this is about normal compared to others.
Thank you,
DanHello DanJe,
The best thing you can do it to generate your own scripts as John suggested and can automate the task by scheduling it in the Windows Scheduler for early morning over a weekend to Stop the services and then you can have another Windows scheduler to Start the services after 20 mins.
We have a similar kind of approach for one of our environments, and it works great for us and I guess it takes around 30 mins for everything to shut down and then come up again!!
Thanks,
hyperionEPM
Please mark answers as helpful or correct for others to find them easily. -
Essbase Dimension build error and Unable to Stop/Start Application
Hi All,
I am trying to build the dimendion in the ASO application it is throwing the Error meaasage " Dimension Biuld failed , ther may be problem in allocating memory".
While i am trying to and Start/Stop my respective Application it is throwing the below error meaasge
I tried to debug this issue by checking the Locked objects, and asked my Admin to close my sessions forcebully if any running and also checking all rules files . But i didn't get any clue/solution from them.
Please help me out from this issue
***ess-dev.ASOAPP Stop application April 15, 2009 4:15:08 PM IST Failed***
***Error: 1013018 Cannot unload database [Sample] while user [ASDF] is performing database operation. Wait for user [ASDF] to complete the operation, or ask the user to abort it. Log out all users and then unload the database.***
*** MaxL Command April 15, 2009 4:40:52 PM IST***
***Error: 1053012: Object [Sample] is locked by user [ASDF]***
***Error: 1013100: User [ASDF] is Active on Database [Sample]***
***Error: 1013132: Cannot build dimensions. There are other active users on database [Sample]***
***Error: 1241101: Unexpected Essbase error 1013132***
***Error: 1053013: Object [Sample] unlocked by user [ASDF]***
*** MaxL Command April 15, 2009 4:43:28 PM IST***
***Error: 1270040: Data load buffer [2] does not exist***
RegardsHi,
Thanks for your answer friend. My admin has successfully killed my session forcebully. And he doubted that i may not have enough rights to Stop/Start application and he provided me the required rights. After that also the error is repeating as below. we two are not getting where we went wrong.
ss-dev.ASOAPP Stop application April 15, 2009 8:19:35 PM IST Failed
Error: 1013018 Cannot unload database [Sample] while user [ASDF] is performing database operation. Wait for user [ASDF] to complete the operation, or ask the user to abort it. Log out all users and then unload the database.
Help me out from this issue -
hi,
I am using OGG and is working well (two-way replication)
Every night, my databases are stopped and started (for snapshot backup)
my question:
is it better to stop/start OGG with the database
or let OGG running all the time ?
Thanks for your helpIdeally, it would be better to stop GoldenGate and here is why:
1. You know for sure that all transactions in the source have been replicated/applied to the target. You won't have source at SCN 123 and the target at SCN 119. You won't induce a synchronization problem.
2. What if scenario - suppose while the databases are closed, something happens to the trails?
3. What happens to a long-running transaction? Do you want to deal with bounded recovery issues? (answer: no)
4. You won't be adding/generating irrelevant errors to GoldenGate processes, those about not being able to connect to the database. It just adds clutter to detail reports, and if you have any monitoring built-in, you can avoid generating irrelevant alerts.
You can use the event marker infrastructure (i.e., send a message to GoldenGate to stop replicat or other processes), or if using regular scripting, check for lag being 0 after extract is stopped. -
Stop/start in PGW active/standby mode
Hi all
My VOIP Network has 2 PGW in active/standby mode. But when we add more telco, the state of ss7path is OOS. i must stop/start the PGW and ss7path is IS status.
Now PGW is running services. it processing many call with other telco.
i have question need to support.
When we stop/start PGW,has PGW disconnected all call or not?
Thank for supporting
PhaiLQIf you restart the service on active pgw, calls are disconnected. If you don't want out of services you must pass the control to the standby server first.
From mml console of active server use the command:
rtrv-ne to check the status, the output is:
MGC-01 - Media Gateway Controller 2010-09-07 16:53:42.655 MEST
M RTRV
"Type:MGC"
"Hardware platform:sun4u sparc SUNW,Sun-Fire-V240"
"Vendor:"Cisco Systems, Inc.""
"Location:MGC-01 - Media Gateway Controller"
"Version:"9.6(1)""
"Platform State:ACTIVE"
sw-over::confirm to swich control to standby server
now restart the service
/etc/init.d/CiscoMGC stop
/etc/init.d/CiscoMGC start
P.S. If I remember the right way, the OOS (out of service) state of new ss7 path can be set in IS (in service) via mml command line without service restart.
set- your ss7 path ::IS use tab for help
Regards. -
How can I enable java applet plug-in and Web Start applications via terminal?
Since the last Java update to Snow Leopard, I have found that the system periodically disables the Java applet plug-in after a period of disuse. I know I can go to /Applications/Utilities/Java Preferences and just click to re-enable Java. But I want to write a script which will do this periodically for a couple hundred Mac users where I work.
My question is - how can I reenable the Java applet plug-in and web start applications via Terminal command? Is this possible? Is there a plist file that can be modified, etc.?
Bob ReedIt is my understanding that Apple's most recent Java update automatically disables Java after a certain period of time that it hasn't been used. We don't want users to have to keep re-enabling it. So we wanted to find a way to do this via script either run by a Casper JSS server or stored locally on each workstation. With the guidance provided by Mark Jalbert above and some text from a script written by Rich Trouton, I was able to make a script (with some minor changes) and a launch agent to re-run the script upon login. So the preference is always enabled.
For your reference, the script content is:
#!/bin/sh
# DYNAMICALLY SET THE UUID FOR THE BYHOST FILE NAMING
if [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` == "00000000-0000-1000-8000-" ]]; then
MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c51-62 | awk {'print tolower()'}`
elif [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` != "00000000-0000-1000-8000-" ]]; then
MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-62`
fi
# Set the the "Enable applet plug-in and Web Start Applications" setting in the Java Preferences for the current user.
/usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsEnabled" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
/usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsEnabled bool true" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
/usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsLastUsed" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
/usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsLastUsed real $(( $(date "+%s") - 978307200 ))" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
The launch agent plist content is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>Label</key>
<string>org.XXXXX.enableJavaPlugin</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>/Library/Scripts/XXXXX/enableJava_plugin.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartOnMount</key>
<true/>
</dict>
</plist>
I hope this is helpful to anyone wishing to keep the Java web plugin enabled.
Bob
Message was edited by: Robert Reed2
Maybe you are looking for
-
How to print dynamic text in a window
Hi All, My requirement is to print the payement in a window and which will be dynamic and will span across multiple number of pages and there is a main window which i already using to display line item details. Please suggest if there is any possible
-
HT4623 my iphone is not being recognized by itunes on my new macbook
my iphone 5s was previously synced with my pc but i have purchased a new macbook and would like to know how to get it to sync with the itunes on this computer
-
Having a Macbook Pro i have taken and loaded in 569 photos from my cameras and want to share using iCloud. But I simply cannot get iPhoto to enable iCloud photo sharing. What could be the cause? what should I try other than the instructions which I f
-
Removed PS CS3; now CS5 says there is a file missing.....
I used the Adobe CS3 uninstaller to remove PS CS3. When I start PS CS5, I get an error message that there is a file missing from Application Support and telling me to reinstall CS5. Before I go ahead and uninstall CS5 and then reinstall it, I want to
-
Can't install Lightroom 5.7 on Mac
I have Lightroom on both Mac and PC. The upgrade to 5.7 from 5.6 worked fine on PC but not on Mac. When I get a popup or go to upgrade on the help menu, I click on upgrade but the link takes me to a 5.6 download which I already have installed.