Show RMAN  message in log file and screen at same time

Is there any way I can save all RMAN message in a log file and also show on standar out (screen).
Thanks

Hi,
You can try a shell script like this if you are using linux:
#!/bin/sh
# Name: test_backup
# Author: Tad_cs
# Description: Executes backup using the RMAN
export ORACLE_HOME=$1
export ORACLE_SID=$2
export LOG_DIR=$3
# Variables:
SCRIPT="test_backup"
data_log=`date '+%y-%m-%d_%H:%M:%S'`
logfile=${LOG_DIR}/${SCRIPT}-${data_log}.log
# Execution of script backup of rman:
$ORACLE_HOME/bin/rman <<EOF > $logfile
connect target rman/rman
connect catalog rman/rman
run { execute script test_backup; }
EOF
exitSo, While the script is performing, you can open other screen, search for
the log that is generating, and see the contents using:
tail -f log_file_name.logIs this you need?
[]´s

Similar Messages

  • Printing messages in Log File and Output File using Dbms_output.put_line

    Hi,
    I have a requirement of printing messages in log file and output file using dbms_output.put_line instead of fnd_file.put_line API.
    Please let me know how can I achieve this.
    I tried using a function to print messages and calling that function in my main package where ever there is fnd_file.put_line. But this approach is not required by the business.
    So let me know how I can achieve this functionality.
    Regards
    Sandy

    What is the requirement that doesn't allow you using fnd_file.put_line?
    Please see the following links.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Dbms_output.put_line+AND+Log+AND+messages&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=%22dbms_output.put_line+%22+AND+concurrent&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to show more than one image on my screen at same time?

    I recently upgraded to PS-CS4 from CS3 and notice that I can only view one image on my screen. Is there a way to view more than one image on the screen at the same time? I cannot seem to find a way to change this feature.
    Thanks, Richie

    John Joslin wrote:
    In addition, if you don't like the tabs, select Float All in Windows from the Arrange Documents drop-down in the Menu bar up top.
    Or keep pressing the F key.
    The drop-down bar also has a conveneint way of fitting multiple images on the screen. See the illustration below:

  • Why do I get a NI-488 error massage when writing into a file and at the same time copiyng this file with a backup softwarre like Easy2Sync?

    I have a small LabVIEW program which writes random numbers very fast into a ASCII-file. I want that file to be copied to a new position every 10 min. Therefor I use a backup/synchronisation software which is doing a copy operation every 10 min. It works fine a certian amount of time and after a while I get either an LabVIEW error (LabVIEW: Fiel already open: NI-488 Comand requieres GPIB Controller to be System controller) or an backup-software error (couldn´t open file...whatever). I´m guessing, it has something to do with file-access but I don´t know why?!? If I run the LabVIEW program and I copy and paste the random-number-file with the windows explorer very fast (pressing ctrl+v rapidly) while LabVIEW is still writing into this file, no error appears. Can sombody help me?
    LabVIEW 2011

    Hi Serdj,
    you don't get a GPIB error, the error number has just 2 different explanations...
    Well, you have two programs accessing the same file. One program just wants to make a copy, the other (LabView) is trying to write to the file. When copying a file that is written to you get inconsistent results! That's why one of both programs is complaining an error...
    You can't have write and read access at the same time! (But you can have more than one read access at the same time...)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Store to file and backup at same time

    Hello!
    We have a very well working measurement software written in LabView. However we would like to backup the data files regularly. We want to be able to do this even during measurement and while the software is writing to the files. Now when we try to do so, we occasionally face "Error 5 occurred at Open/Create/Replace File" (in "Write To Spreadsheet File") because another software (backup, windows stuff, else...) accesses the files also. Now from my point of view this kind of concurring file access should not be a problem since LV is the only software writing to the files. There are 3 possible solutions I can think of:
    delay the write (not feasible since you don't know how long to delay, e.g. how long the other software stays open)
    queue the data and write it on next try (e.g. https://decibel.ni.com/content/docs/DOC-7212 - but again; how long to queue?)
    the proper thing is; copy the file to a temporary one, edit the temporary, delete the original and move the temp. in this place
    the last one should be the proper solution and also work on different OS since the copy/moving stuff should be atomic operations and thus safe in this context. However I implemented the solution and still have exactly the same problem but now in "Move File"... I am starting to doubt if it is possible to solve this issue at all and thus desparatly need help here! As I can see there is not lock or mutex on the file and no need for LV to raise an error (I think it is done as warning for future possible conflicts)... I assume it is some hidden/strange badly documented Windows API "feature" LV is using to detect those other accesses and it results in a behaviour I cannot change or fix - so what to do here...?
    Thanks a lot in advance for any helpful suggestions or hints! Greetings
    Ursin Solèr
    Solved!
    Go to Solution.

    I Think you must have missunderstood me; the problem is you cannot open and write to a file while another external program has it opened too with exclusive access. Consider following code:
    If you open the file during the "Wait" (it is closed then because "Write to Spreadsheet" does open, write, close) e.g. with MS Word wich does an exclusive open (allowing exclusive access only) then during the next loop your program will crash with error 5.
    The solution I mentioned is to open it first in LV an keep it open all the time:
    which prevent e.g. MS Word to open it exclusively but read-only!
    What you mentioned is regarding a backup - I considered this double write long before, but it is no good solution, beacuse e.g. the other drive might be a network drive and I don not want to handle absent drives - that's something the external backup tool should do.

  • Want to update a text file and reflect the same on iview immediately

    Dear friends,
    I have a text file in a repository path
    I could read each line and do some task.
    My query is for each line task, i would like to update a file (for me it is log file) and reflec the same on a iview in the same page
    sample code appreciated
    regards
    Kantha

    If the user backs up their device to either iCloud or Mac/PC, they can restore the app data from that backup.
    There's no need to do what you intend.

  • Why when you log on by icloud on my iPhone show a message saying password error and try again Try again

    Why when you log on by icloud on my iPhone show a message saying password error and try again Try again????????

    Hey sergioo9,
    Thanks for the question. Based on what you stated, it seems like you are having trouble signing into Messages on OSX. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
    FaceTime, Game Center, Messages: Troubleshooting sign in issues - Apple Support
    Thanks for using Apple Support Communities.
    Cheers,
    Mario

  • Syslogd -u not writing network messages to log file

    i'm trying to get remote logging of airport bs debug level log message to work.
    the airport bs it's doing it's part according to tcpdump:
    # tcpdump -i en1 port syslog
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on en1, link-type EN10MB (Ethernet), capture size 96 bytes
    11:56:39.332886 IP 10.0.1.1.syslog > 10.0.1.198.syslog: SYSLOG local0.notice, length: 71
    12:01:10.037655 IP 10.0.1.1.syslog > 10.0.1.198.syslog: SYSLOG local0.notice, length: 71
    12:07:57.786033 IP 10.0.1.1.syslog > 10.0.1.198.syslog: SYSLOG local0.debug, length: 100
    etc...
    config looks appropriate in /etc/syslog.conf:
    local0.* /var/log/appfirewall.log
    and the log file exists.
    the syslog launchctl file says:
    <string>/usr/sbin/syslogd</string>
    <string>-u</string>
    <string>-c 7</string>
    and ps confirms that the options are working:
    /usr/sbin/syslogd -u -c 7
    but the log messages i see arriving from the bs aren't being written to the log file and don't see a network socket for the udp receiver in the netstat -a output.
    i suspect that syslogd configuration may have been moved out of /etc and the airport help topics haven't been updated to reflect the new methods.
    any ideas or pointers?

    i found the answer. there's a section at the end of /System/Library/LaunchDaemons/com.apple.syslogd.plist that needs uncommenting to enable the udp listener.

  • Is there a way to show Custom message in Outlook Mail read Inspector Window same as When a File is opened in Protected View.

    Is there a way to show Custom message in Outlook Mail read Inspector Window same as When a File is opened in Protected View.
    If we open a Document from Untrusted location,the file is opened in Protected mode and a Red Message bar is shown below the ribbon for Excel,Word apps.
    Can we show this type of similar message bar with custom Message in Outlook or any other Office App.

    Are you displaying an MSG file? Keep in mind that Outlook creates a temporary copy in one of Outlook folders, so strictly speaking your are not looking at a file.
    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

  • Reading log file and calculating time between

    If someone could help me with this one, I would be very grateful.
    I have a log file and I need to search a string that contains a start time and end time (eg. <time="11:10:58.000+000">). When I have these two values, I need to measure the time that has been elapsed between these two (from start to end).

    $Path="C:\Times.log"
    remove-item $Path
    Add-Content $Path '<time="11:10:58.000+000">'
    Add-Content $Path '<time="12:10:58.000+000">'
    Add-Content $Path '<time="13:10:58.000+000">'
    Add-Content $Path '<time="15:13:38.000+000">'
    Add-Content $Path '<time="16:10:58.000+000">'
    Add-Content $Path '<time="17:08:28.000+000">'
    $File=Get-Content $Path
    $StartTime=$Null
    $EndTime=$Null
    $ElapsedTime = $Null
    ForEach ($Line in $File)
    If ($Line.Contains("time="))
    $Position = $Line.IndexOf("time=")
    $TimeStr =$Line.SubString($Position+6,8)
    IF ($StartTime -EQ $Null)
    $StartTime = $TimeStr -As [System.TimeSpan]
    Else
    $EndTime = $TimeStr -As [System.TimeSpan]
    $ElapsedTime = $EndTime.Subtract($StartTime)
    "StartTime=$StartTime EndTime=$EndTime ElapsedTime=$ElapsedTime"
    $StartTime = $Null
    Gives this output
    StartTime=11:10:58 EndTime=12:10:58 ElapsedTime=01:00:00
    StartTime=13:10:58 EndTime=15:13:38 ElapsedTime=02:02:40
    StartTime=16:10:58 EndTime=17:08:28 ElapsedTime=00:57:30

  • Diff between Log files and Trace files

    hi
    What is the exact differences between Log Files and Trace Files.
    And the relevant informative URL/reference materils would be highly appriciated.
    Thanks
    Sekhar

    Hi,
    Go through these,
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/7b1e40777cdd5fe10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0bf8c890-0201-0010-8b8c-fc93fa1f4795
    Hope it clarifies
    Regards
    Srinivasan T

  • How to delete TMS log file and and request log no.

    Dear experts,
    How to delete TMS log file and and request log no...My TMS log is not deleted since 2007. Please advice
    Thnks

    You can delete them from OS level. You can delete safely the following files:
    /usr/sap/trans/log/SAP*.<SID>
    Is this you were looking for?
    Regards,
    Faisal

  • WebAnalyticsServiceApplication_ReportingDB log file and secondary DB files issue

    Hello everyone,
    So we have a problem, a customer has a SP2010 farm, SP on one server and SQL 2008r2 on another. Little (read none by the looks of things) maintenance has been applied to the server (both SQL and SP other than patching and windows backups) over nearly a year
    and we are here now to upgrade to SQL 2012, found the current state and the situation is as follows (up-to now):
    The SP install was done from the search server binaries to give better search options (thought this may be prudent to disclose)
    The WebAnalyticsServiceApplication_ReportingDB log file is HUGE and will not truncate, Ive done the following:
    backed up (full) the DB for web analytics  
    backed up log files for same DB (with truncate selected) (both through gui in SQL MS)
    Tried to shrink log file (this told me through the gui that 99% was free in the log file, but it freed up only 1%, even after trying again and selecting 'reorganise pages before releasing unused space' and selecting 0MB for the 'shrink to' size)
    Also, there are over 30 secondary DB files for this database, Ive seen other threads about these files but am stuck as how to do the following...
    no one uses the web analytics
    the data is not needed
    I understand it maybe needed in the future
    we do not need the data
    how should I get rid and stop future log file and secondary DB file growth? 
    Anyone's help would be greatly appreciated. 

    For reference, you can control how long SP keeps the Web analytics data (which does generate one extra .ndf per week).
    To set the limit on the data retention period:
    On the Central Administration Web site, in the Application Management section, click
    Manage service applications.
    Click the Web Analytics Service Application row to select it and in the
    Operations group of the ribbon click Properties.
    In the dialog box, in the Data Retention Period section, set the data retention period, which can range from 1 month to 25 months.
    See
    https://technet.microsoft.com/en-us/library/ee620541.aspx#section1 for more info

  • I am doing two people's jobs and I need to use two separate log-ins on the same website. How can I keep both log-ins open at the same time. Everytime I switch tabs I have to log in again.

    I am doing two people's jobs and I need to use two separate log-ins on the same website. How can I keep both log-ins open at the same time. Everytime I switch tabs I have to log in again.

    Try one of these extensions for multiple cookie sessions.
    Multifox: <br />
    http://br.mozdev.org/multifox/ <br />
    Cookie Swap extension: <br />
    https://addons.mozilla.org/firefox/3255/ <br />
    Cookie Pie extension: <br />
    http://www.nektra.com/oss/firefox/extensions/cookiepie/

  • Is it possible to record and play at same time in swift, is there a option to record without storing the file

    I am making a microphone, is it possible to record and play at same time in swift, is there a option to record without storing the file

    Its pretty simple with FMS. You just need to do following things:
    Publish using FMLE with following settings: (just telling which are needed , rest you configure based on your needs)
    Video codec: H.264
    Audio Codec: <of your choice>
    Server ip: rtmp://<server-uri>/<app-name>
    Stream Name: mp4:<stream-name>.f4v
    Application : Server-side code
    application.onPublish = function(myclient,mystream){
         mystream.record();
    application.onUnpublish = function(myclient,mystream){
         mystream.record(false);
    Have a client , which subscribes in following live mode:-
    ns.play("mp4:<stream-name>.f4v",-1,0,true);   // this is subscribing in live mode
    In this way even if file is recorded, your clients are subscribing in live mode so all will be in sync.
    Now if you want to disallow any clients who will try to subscribe to "recorded" file when live event is going on, you can achieve using auth adaptor. (let me know if you want to enforce such requirement)
    But i think above solution solves your primary problem. Also please let me know if there are any issues in getting it work , i have given bare minimum which is required.

Maybe you are looking for

  • Blinky white lines then full white screen

    So... Caught in some rain with my iPod touch in my pocket... Didnt get drenched or anything like that , but my clothes were definitely damp. Then it was in a dry tent overnight with me but got rather cold (40s, so not all that bad actually). This mor

  • HT1320 how do i unlock my ipod if i dont know the pass code

    i dont know my passcode and i need to get into my ipod

  • Slow window domain logon over ezvpn netw ext mode tunnel

    I have 4 branch offices connected to a central EZVPN server in network extension mode. tunnels are working correctly but domain logon is extremely low (often more than 10 minutes). Do you think it could be a fragmentation issue? If it is, do you know

  • Photo ibooks author

    Hi, I'm putting a book together with portraits (photo's), audio and text. But when I have transferred it to my iPad I can't tap the photo to make it fullscreen. I can pinch it but it won't 'stick'. It seems simple but it doesn't seem to work only in

  • Touchscreen too slow while typing

    Hey pals i noticed a really annoying feature on my new z3. while typing normally fast - as i did on my z2 - the touch input thinks im clicking somewhere completely random. it seems like the device is not able to recognize the input so fast.  on my ol