Back-up Scripting
Dear All,
I am doing a script for taking a cold backup of instance.
1. stopping application
2. checking the FNDLIBR processes for shuting down after given a 600sec sleep time.
3. stop the database.
4. take a backup.
5. start the database
6. start the application.
schedule ity in the cron tab.
But I am having doubt in checking the FND processes.
=======================
sh $INST_TOP/admin/scripts/adstpall.sh apps/apps
sleep 600
fnd_cnt=`ps -ef | grep -v "grep" | grep -c "FND"`
if [ $fnd_cnt -gt 0 ]
then
ps -ef | grep -v "grep" | grep "FND" | cut -c10-17 > $$.sh
for i in `cat $$.sh`
do
echo "killing $i"
kill -9 $i
done
else
exit 0
fi
rm -rf $$.sh
============================
Please is aybody is having any script to check and kill the managers pl update.
Regards
Vasu
Any updates ???
Similar Messages
-
How to get the kerning value and set it to back use script?
hi,guys
I come back again.
I encountered a kerning problem.
how to get the kerning value and set it to back use script?
Thanks very much!For both cases, the filename can be found on the FILE.ReceivedFileName Context Property. You can access this Property in a Pipeline Component or Orchestration and take any action you want, such as apply to a database.
The value is accessed by: MyReceivedMessage(FILE.ReceivedFileName)
In the case of a duplicate EDI Interchange, you would use the Failed Message Routing feature to capture the error message with either an Orchestration or Send Port. -
How far back does script UI go?
I have a script that runs all the way back to CS I was wanting to update it and add fancy UI I was wondering how far back I can go?
CS3
Harbs -
Still looking for a script for a back button that will take
the user back to where the previous button was clicked. I've had a
suggestion that used a variable but I haven't got a solution
yet.that's the best you're going to get because it's the only way
for a back button to work in flash. that is, you must store
something (usually the frame number) that indicates the current
frame, at all frames to which you may want to return, in a variable
that can be used to retrieve that frame reference after you leave
that frame. -
Using Arch Wiki rsync back up script - Error Code 3
Hi Guys,
I've searched around these forums and the web for people with similar problems without getting a solution.
I took the script provided in this wiki page and directly created a file named arch_backup.sh in my bin directory.
Then I run it in the following manner:
Infernus:discourse(master!*) $ sudo ~/bin/arch_backup.sh /media/Backup/Arch
sending incremental file list
file has vanished: "/proc/10/exe"
file has vanished: "/proc/10/task/10/exe"
ERROR: destination must be a directory when copying more than 1 file
rsync error: errors selecting input/output files, dirs (code 3) at main.c(622) [Receiver=3.1.0]
total time: 0 minutes, 0 seconds
Infernus:discourse(master!*) $
Here are the relevant parts of my mount -l command:
/dev/sdd1 on /media/Backup type ext4 (rw,nosuid,nodev,noexec,relatime,data=ordered)
I get the same error when I run the provided rsync command directly:
rsync -aAXv /* /media/Backup/Arch --exclude /dev/* --exclude /proc/* --exclude /sys/* --exclude /tmp/* --exclude /run/* --exclude /mnt/* --exclude /media/* --exclude /lost+found --exclude /var/lib/pacman/sync/*
I keep getting the same error message over and over again. The destination is a directory and is writable, otherwise the provided backup script would exit with an error message.
Any help?
Last edited by Balaji Sivaraman (2013-12-01 18:05:24)jasonwryan: I had a go at re-writing the first section to avoid parsing ls output - and that was not too difficult - so the start of the script then becomes:
#!/bin/bash
# Back up stuff to backup disc
USE_AUTO_FS=0
if [ -z "$1" ]; then
USBNAME=/run/media/$USER
DIRCOUNT=$(find $USBNAME/* -maxdepth 0 -type d | wc -l)
if [ "$DIRCOUNT" -gt "1" ]
then echo Found $DIRCOUNT directories in $USBNAME;
echo rerun choosing a specific backup drive as parameter
echo quitting
exit
fi
DIRCOUNT=0
for full_path in "$USBNAME"/*/; do
if ! [ -d "$full_path" ]; then continue; fi
EXT_DRIVE=${full_path#"$USBNAME/"}
EXT_DRIVE=${EXT_DRIVE%/}
DIRCOUNT=$(($DIRCOUNT + 1))
if [ "$DIRCOUNT" -gt "1" ]
then echo Found $DIRCOUNT directories in $USBNAME;
echo rerun choosing a specific backup drive as parameter
echo quitting
exit
fi
echo "$EXT_DRIVE"
done
echo Mounted EXT_DRIVE is $EXT_DRIVE
else
EXT_DRIVE=$1
fi
This is overkill on the check for more than one mounted drive - I know!
However when I looked at using a single rsync command instead of a set in a loop - this is certainly possible but I wanted to have the script output when it started each of the top directories and not progress for every file in the recursive tree - and I could not find a solution for that. I could get a "total" progress indicator using the new --info=progress2 flag that was implemented in version 3.1.0 of the rsync command but that was not what I wanted. Having a single progress line for each item in the list variable was not something I could find. If it is possible I would love to know how?
Anyway the code for doing this is:
list=( '/etc' '/var' '/boot' '/root' '/opt')
echo Directories to be backed up are ${list[@]}
ToDir="$BAKDIR/$ME_HOST"
TIMER=$(date)
TIMER1=$(date +%s)
echo Started at $TIMER
rsync --info=progress2 --delete -aH --exclude 'lost+found' --exclude '/var/cache/*' "${list[@]}" $ToDir
TIMER=$(date)
TIMER2=$(date +%s)
echo Finished at $TIMER
TDIFF=$((TIMER2-TIMER1))
TDIFFM=$((TDIFF/60))
TDIFFR=$((TDIFF%60))
echo
echo Process time elapsed is $TDIFF seconds = $TDIFFM min $TDIFFR sec
Anyway this seems at least to work whichever option one chooses. Also the z compression flag is not necessarily faster - for a lot of small files over a gigabit link can be slower so I guess it depends on the details of how the backup is being executed.
Last edited by mcloaked (2013-12-02 21:23:36) -
Agent routes caller back into script
Not sure if this is possible but I have a script that does a DB dip to authenticate a caller if they want their password reset. It asks them for their Employee ID then will get the last 4 of their SSN. The caller is then asked to enter the last 4 of their SSN and I compare it to my query result. I then pass the caller information to the agent desktop and let the agent know if the user was authenticated or not.
The customer wants to be able to do this on the fly as well. If a caller happens to get to the agent for some other reason that didn't require authentication and then wants to have their password reset, we want to be able to have the agent send the caller back into the script, go through the authentication process then route back to the same agent that was just helping them. I could do this with a blind conference but I can't get the results to appear on the agent desktop. If I do a transfer then the caller will probably get a different agent.
How can I have the agent initiate this, place the agent in reserved mode or not ready if I have to, then display the results of the DB query into the agents desktop?
Thanks in advance,
ChrisHi Chris,
This is an interesting question. I do not think what you are wanting to do is really possible though. I'll try to explain why.
You are corect that there really isn't a way to have the agent do a conference with the customer back into the script to do the authentication process. It's just not supported. Additionally if the agent does send the call back into the script, the agent is released and will either go back into ready or go into work mode. Either way they are back in the queue and if they are Ready they are able to get any call. There is no way to reserve them either.
The only possibility, and honestly I don't really know how you might do this, but in CCX 8.5.1 you can set CAD to have non-ICD line appearances. Maybe you could have some non-ICD line assigned to the agents that they contol in CAD and could route the caller back to that agent on the non-ICD line?? This has it's drawbacks. The agent can still receive calls from the system on the ICD line. I am also not confident the enterprise data will push to the non-ICD line. This may be a killer for this idea. This is probably the only remote possibility though on what you are wanting to do. -
How to print page in front and back in scripts
hi,
I want to know to know the how to print a page in front and back.HI Ragavendra
set this
<b>Print mode is D</b>
With Print mode, you can specify single- or double-sided printing for a page. You can choose from the following values:
<b>D </b>The page is printed on the first side of a sheet in duplex mode. If another mode was previously active, then the printer is switched to duplex mode with the start of the pageand continues in this mode.
and other Print mode options are
<b>Print mode</b>
With Print mode, you can specify single- or double-sided printing for a page. You can choose from the following values:
<b>' '</b> Currently active printing mode continues unchanged.
<b>S </b>The page is printed in simplex mode. That is, the printer should print on only one side of the paper. If another mode was previously active, then the printer is switched to simplex mode with the start of the page.
<b>D</b> The page is printed on the first side of a sheet in duplex mode. If another mode was previously active, then the printer is switched to duplex mode with the start of the pageand continues in this mode.
<b>T </b>The page is printed on the first side of a sheet in tumble duplex mode. That is, the printer prints on both sides. The page on the second side is always inverted, so that the footer of the second page is printed opposite the header of the first page.
If another mode was previously active, then the printer is switched to tumble duplex mode with the start of the page and continues printing in this mode.
Print modes are currently supported for printers that use the PCL-5 language. These are printers that are defined with the following SAP device types: HPLJ_II, HPLJIIID, HPLJ4, LX4039, SNI20XX8.
See the spool system (transaction SPAD) to check on how your printers are defined.
The print controls for these functions are SPMSI (begin simplex printing); SPMDU (begin duplex printing); SPMTU (begin tumble duplex printing); SPMFS (print on first side of sheet in duplex or tumble duplex mode); and SPMBS (print on second side of sheet in duplex or tumble duplex mode).
Regards Rk -
Next/Back Action script help to stop and start
When I "removeEventListener" for img10, my last image going forward, Next no longer goes forward for 1-9 after going back. I've tried some conditional statements but I'm new to this and nothing is working. I also thought I could do what I did to stop the forward movement to the back movement, stopping at img1, but that didn't work. I'll leave the code that didn't work here with // before.
I'm also wondering if there's an easy way to have the transition of the photos dissolve from one to the next without setting up as parent-child. I've set it up with a UILoader.
Site is live (with these issues and others!) at : http://emilysperphoto.com/
next_btn.addEventListener(MouseEvent.CLICK, nextImage);
//variable is a container that holds some value...
var imageNumber:uint = 1;
function checkNumber():void
//If the image number is = 10, then do something...
if (imageNumber==10)
next_btn.removeEventListener(MouseEvent.CLICK, nextImage);
//else if (imageNumber<10)
//next_btn.addEventListener(MouseEvent.CLICK, nextImage);
function nextImage(evtObj:MouseEvent): void{
//Add a number to the current value+1
imageNumber++;
largeImageLoader.source = "images/recent/rcnt0"+imageNumber+".jpg";
checkNumber();
back_btn.addEventListener(MouseEvent.CLICK, backImage);
//If the image number is = 1, then do something...
//if (imageNumber==1)
//back_btn.removeEventListener(MouseEvent.CLICK, backImage);
function backImage(evtObj:MouseEvent): void{
//Subract 1 from the current value
imageNumber--;
largeImageLoader.source = "images/recent/rcnt0"+imageNumber+".jpg";
//checkNumber();Try this code (I did not check it functionality but the idea is there):
next_btn.addEventListener(MouseEvent.CLICK, nextImage);
//variable is a container that holds some value...
var imageNumber:uint = 1;
// parametarize number of images
var numImages:int = 10;
function addListeners():void {
next_btn.addEventListener(MouseEvent.CLICK, nextImage);
back_btn.addEventListener(MouseEvent.CLICK, nextImage);
function checkNumber():void
// if imageNumber equals number of images
// disable next click
if (imageNumber == numImages) {
next_btn.removeEventListener(MouseEvent.CLICK, nextImage);
else if (imageNumber == 1) {
// if number of images equals 1
// disable previous button
back_btn.removeEventListener(MouseEvent.CLICK, nextImage);
else {
addListeners();
function nextImage(evtObj:MouseEvent):void
imageNumber = evtObj.currentTarget == next_btn ? imageNumber + 1 : imageNumber - 1;
// first check number
checkNumber();
// now load corresponding image
largeImageLoader.source = "images/recent/rcnt0" + imageNumber + ".jpg"; -
Calendar back up - script error issue
hi,
1st of all let me tell you i am not a programmer. i dont have any kind a knowledge of apple script or automater.
but when i was serchign backup sollution via apple script, i got this script.
tell application "Safari" to activate
tell application "System Events" to tell process "Safari"
click menu item "Export Bookmarks…" of menu 1 of menu bar item "File" of menu bar 1
keystroke "d" using command down
click button "Save" of window 1
if sheet 1 of window 1 exists then click button "Replace" of sheet 1 of window 1
end tell
tell application "Contacts"
activate
delay 5
activate
end tell
tell application "System Events" to tell process "Contacts"
click menu item "Contacts Archive…" of menu "Export…" of menu item "Export…" of menu "File" of menu bar item "File" of menu bar 1
keystroke "d" using {command down}
keystroke "Contacts Archive"
keystroke return
if sheet 1 of sheet 1 of window 1 exists then keystroke space
end tell
tell application "Calendar"
activate
delay 5
activate
end tell
tell application "System Events" to tell process "Calendar"
click menu item "Calendar Archive…" of menu "Export" of menu item "Export" of menu "File" of menu bar item "File" of menu bar 1
keystroke "d" using {command down}
keystroke "Calendar Archive"
keystroke return
if sheet 1 of sheet 1 of window 1 exists then keystroke space
end tell
but when this script reaches here.......
tell application "Calendar"
activate
delay 5
activate
end tell
tell application "System Events" to tell process "Calendar"
click menu item "Calendar Archive…" of menu "Export" of menu item "Export" of menu "File" of menu bar item "File" of menu bar 1
keystroke "d" using {command down}
keystroke "Calendar Archive"
keystroke return
if sheet 1 of sheet 1 of window 1 exists then keystroke space
end tell
it gives error.
now can any one help me how to solve this issue.
in this script any scripting modification needed??Hi,
would have been best to describe this error closer
Running the script in AppleScript Editor will highlight the relevant line ...
So i guess the error occurs when it reaches the if-statement. Put it in a try block:
try
if sheet 1 of sheet 1 of window 1 exists then keystroke space
end try
and maybe do the same with the corresponding line in the contacts-block....
A GUI-Script like this one is always a little shaky since you need to pause your activities while running it.
I wanted to note that just because i might have a better solution for you: an AppleScript-application that backups Contacts and Calendar without using GUI-Scripting. You will find it here (and do be surprised about my spelling as i am not an English native speaker)
Greetings -
e.g topping up friends mobile phone on orange.co.uk. Everything fine until bank card verification window appears. Enter details and return and scrip sends me back to start of transaction. No problem usinf Safari. I tried to send feedback but no reaction on hitting submit button. Happened on similar sites with version 4 but 3.5 no problem.
Apple has barred Java from running on Macs, leaving companies that rely on Java plug-ins out in the cold.
Apple blocked Java 7 Update 11 by adding it to the banned list in XProtect.
This is the second time in two weeks that Apple has blocked Oracle's code from running on Macs. This time Java is blocked through Apple's XProtect anti-malware feature.
Java has come under fire as the means by which hackers have been able to gain control of computers. In April 2012 more than 600,000 Macs were reported to have been infected with a Flashback Trojan horse that was being installed on people's computers with the help of Java exploits. Then in August Macs were again at risk due to a flaw in Java, this time around, there was good news for Mac users: Thanks to changes Apple has made, most of us were safe from the threat.
Unwilling to leave its customers open to potential threats Apple has apparently decided it's safer to block Java entirely.
Macs running OS X Snow Leopard and beyond are affected. -
Playing back script in OpenScript with application which opens in ext windo
Hi,
I have to test an application which after log in a user opens an external window and works in this external window.
There is now way to omitt loging.
I recorded a script in open script and I tried to play it back, but there was fail before trying to open external window with application to test.
I got the error:
HTTP response code: 404 Not Found
How can I solve this problem?
Is there any possibility to put things from console to file?
Thanks in advance,
M
Edited by: usermarta on 2009-02-05 01:50Hi,
Symptoms:
Got HTTP response code: 404 Not Found when playing back a script.
Cause:
The HTTP response code "404" means that the page was not found on the web server. Either the url is incorrect or goes to a resource that was moved, renamed, or doesn't exist on the server. In scripts this mostly happens when the url is dynamic, meaning, the url changes every time that the page is requested. It also could happen if a cookie or any another http header is missing or added, yet depending how the website was designed, this could give a different HTTP response code.
Resolution:
You may want to compare:
the URL that is posted in the log when you playback the script
vs.
the URL of "the page that gives the HTTP code 404" when you do the steps of the script manually using Internet Explorer.
If for some reason you don't see the URL of the external window when doing the process manually, right click anywhere inside the external window and select "Properties". If you can't right click on the window let me know and I will give you some tips. (This is because Internet Explorer 6 may not always show the URL, Internet Explorer 7 will always show it.)
When comparing the URLs look for parts that may be dynamic. The parts that are dynamic are usually few letters and numbers that don't seam to mean an word or a phrase, for example: 7h8G5d.
You can also determine if the URL is dynamic by doing the following:
1) Open Internet Explorer and do the steps of the script manually up to the point where the HTTP code 404 is seen on the script
2) Take note of the URL
3) Open a new Internet Explorer window using the Quicklunch, Start Menu, or Desktop shortcut (not by using new Window or new tab because this would preserve session values)
4) In the new window repeat the steps of the script manually as in step 1
5) Take a note of the URL and compare it with the URL of step 2
Differences between the URLs are the dynamic parts of the URL.
It is also possible but less likely that the URL is different every time that the web application is re-built.
Once you know what are the parts that are dynamic you will need to use variables or transformations in OpenScript to make the URL to vary accordingly. Please let me know if you need these steps.
Regards,
Zuriel
btw: There is no way to "put things from console to file". I made the feature request for you. Probably you will see it in a future release.
For you and everybody, please feel free to post anything that you feel that the tool should have or should be better. This makes the product better for you and for others. I can guarantee that you will be heard by posting in this forum, what I cannot guarantee is that each of them will be implemented. -
How to roll back power shell scripts
if i am run any scripts on the power shell and after that there is a problem then i need to roll back that scripts.
AbpYou should be very comfortable with a scripting language before you should run them in production. If you are comfortable with PowerShell then you know exactly what that script will execute. You should have a backup solution, but you could also use PowerShell
to export and import configurations in certain cases as a way to backup/restore settings. If you are learning PowerShell and you are executing cmdlets you can make good use of the -WhatIf parameter.
http://blogs.technet.com/b/heyscriptingguy/archive/2011/11/21/make-a-simple-change-to-powershell-to-prevent-accidents.aspx
http://blogs.technet.com/b/heyscriptingguy/archive/2012/07/08/weekend-scripter-easily-add-whatif-support-to-your-powershell-functions.aspx
Hope this helps.
http://mariusene.wordpress.com/ -
In oracle Open Script (OATS), we have created an OracleEBS/Forms project. But when we try to record the script all the elements or fields are being identified as web objects. Due to this we are unable to use the functions like getText. Hence, please help.
Example: The below line when executed gives an error " Failed to connect to the Oracle Forms applet after 90 seconds. Verify that the applet launching page opens, and that the Forms Startup Timeout setting is high enough for this site."
forms.textField("/web:window[@index='0' or @title='Person']/web:document[@index='7' or @name='tabPage']/web:input_text[@id='PER_ID' or @name='PER_ID' or @index='0']").getText();
We have already set the event timeouts in OpenScript Preferences -> Playback -> OracleEBS/Forms Functional as
Forms startup time out = 90Sec
Forms Action timeout = 120Sec
Forms Response Timeout = 120 Sec.
OpenScript
Version: 12.4.0.1 Build 139If it is a name resolution I would try either replacing the server name in the script with the IP address or making an entry in the local host file of the machine trying to play back the script
If you try one or both of those approaches does the script play back? -
Document Upload in ADF protocol using Open script
Hi ,
My transaction is to upload a document into a portal.
I have recorded this transaction in OPEN SCRIPT using ADF protcol.
When i playback the script, it uploads a document with no contents in it.
if i open the uploaded file it has only "Null". The content is missing.
How do i resolve this?
Thanks,
PradeepOne more observation.
While recording the Contents of the file are getting stored in a resourceFile.
http.postdata(http
.param("{{@resourceFile(2283.postData.rsc, OracleBinary, true)}}")),
But while playing back the script , no content goes
Thanks,
Pradeep -
Images are not displayed in Details Page of Open script
I am trying to record a web application with open script.
After recording the images are not displayed when playing back the script.
Are there any option we have to enable to get the images.Hi
As per default OpenScript will ignore any URL that contains an image, to change the filters you can:
View -> OpenScript Preferences > Record -> HTTP Module -> Select the URL filters Tab to add/remove or edit any filters
You can un-check the first one on the list to enable image recording.
Regards
Alex
Maybe you are looking for
-
Maddening issue with text... trapping?
I have recently taken over as acting editor for a PDF-only publication with a very small audience. My previous experience with InDesign has been with preparing files for CMYK printing, so this is my first opportunity to prepare a document specificall
-
How do I get Safari to open in Preview?
I am using Safari 5.0.5; have downloaded Adobe latest version; checked on Adobe preferences/internet to use Adobe. But from Safari PDF files will not open. Get a black screen with no content. How do I get Preview to open PDFs from Safari and thereby
-
Hello All, My requirement is related to process chain 1 . I have one process chain in that i have to put abap program in middle of that chain . This program will check the status of one another process chain 2 status ( whether it was completed or it
-
Web Page Composer - Displaying & Editing pages gives a runtime error
Hi, After installing the WPC and placing the initial permission as described in <a href="http://http://help.sap.com/saphelp_nw2004s/helpdata/en/45/f91dd13c7a04aae10000000a114a6b/content.htm">defining permission in the portal content studio</a> end us
-
Upgrading oracle AS 10.1.2.0.2 to 10.1.2.3
Hello Everyone, I have installed Oracle application server ( Forms & Report service )10.1.2.0.2 on RHEL 5.3. But as per metalink guide we have to upgrade OAS 10.1.2.0.2 to 10.1.2.3. But as per read me from that patch 5983622. I lil bit confuse. Kindl