I need a shell script to move latest archivelogs from one server to another server..

Hi,
     I need a shell script to move latest archivelogs from one server to another server..
Thanks&Regards,
Vel

ea816fb9-f9ea-45ac-906f-36a8315970d0 wrote:
Thanks it's really helpfull..
Now i have pasted a shell script which generates archivelog and shows latest archivelog time..
just check let me know the answer, that how i need to execute it..
# Force a logswitch to get the last archivelog to the standby host
ORACLE_SID=ORCL
ORAENV_ASK=NO
. oraenv >/dev/null 2>&1
SwitchLogfile()
  # Do logswitch 
  RESULT=`echo "Alter system switch logfile;" | sqlplus -S / as sysdba | grep 'System altered'`
  if [ "$RESULT" = "System altered." ]
  then
  export RETURN=1
  else
  export RETURN=0
  fi
  # Do we need to do something with this return value?
  export RETURN
GetArchiveTime()
  CURYEAR=`date +%Y`
  echo "set heading off;" > temp.sql
  echo "set termout off;" >> temp.sql
  echo "select to_char(first_time,'YYYY-MM-DD HH24:MI:SS') from v\$archived_log where sequence#=(select sequence# - 1 from v\$log where status='CURRENT');" >> temp.sql
  sqlplus -S / as sysdba <
spool tempres.txt
@temp.sql
quit
EOF
cat tempres.txt | grep ${CURYEAR} | grep -v grep | awk '{print $1" "$2}'
#rm -f temp.sql  tempres.sql
SwitchLogfile
GetArchiveTime
You seem to have ignored Dude's VERY good advice and continue to press down this ill-advised path.  If you continue this approach, you WILL have problems at the very time you do not need any additional problems.  Trying to recover your production database at 2:00 in the morning is not the time to be getting errors from rman because it can't find what it needs - because you decided to move them around yourself.
Please reconsider.

Similar Messages

  • I need to move 1000 photos from one library to another. How do I do that and keep the ratings and dates they were created?

    I need to move 1000 photos from one library to another. How do I do that and keep the ratings and dates they were created? I tried exporting them, but it loses all info. Also, how do I move the quicktime movies from one iphoto library to another? They were exported as jpgs

    Add both libraries to iPhoto Library Manager.  Then select the events or albums that you want to copy from library A  and drag them to library B in iPLM.
    This video shows the process:
    OT

  • Using the content aware move tool, I want to move an item from one image to another image but it does not seem to work. I think I need two layers on one document so how do I do this

    Using the content aware move tool, I want to move an item from one image to another image but it does not seem to work. I think I need two layers on one document so how do I do this

    Good day!
    A simple Paste does not work for you?
    It should place the clipboard content as a new Layer which you can then move around.
    If there is any chance that the elements need to be scaled, rotated etc. I would prefer to place them as Smart Objects (File > Place …) and do the masking that is specific to the images themselves in those.
    Regards,
    Pfaffenbichler

  • How do I move vznavigator favorites from one phone to another?

    how do I move vznavigator favorites from one phone to another?
    Wife has Pre 2 where GPS works beautiful... my old Pre Plus was always hit or miss on GPS.
    But I've developed quite a library of favorites on my Plus.  How do I move these to our new Pre 2?

    Good afternoon CWFlink.
    I am a fan of the VZ Navigator myself, and all of the great features of this application!  Is the Palm Pre 2 on the same number as the Palm Pre Plus?  If yes, you can synchronize your Favorites through our website at the following link: VZ Navigator  
    You will sign in using your My Verizon login information, and sync the Settings and Favorites to your new device.  However, if your Favorites are on a different mobile number, you will have to manually enter in the information/ settings.  I still encourage you to use the website to set everything up as you like, in case you need to change devices in the future.
    I trust this information is helpful.  
    Thank you,

  • How do i move an app from one page to another

    how do i move an app from one page to another? When I upgraded to the latest software on my 4s, the camera went to the last page rather than remaining on the home page

    What Rudegar says is true, but it's a lot easier to rearrange icons in iTunes:
    Connect your phone and open iTunes. 
    Click on the Apps tab. 
    You will see your home screen in the main window, with the other screens in a scrollable column on the right. Scroll down and click on the last page to put it in main window. 
    Now scroll the column so the home page is visible on the right.
    Click on the Camera and drag it onto the home page at the right. 
    Be careful not to accidentally insert it into another app, thereby creating a group.

  • Move a file from one lacation to another in FTP

    Hi Experts,
    i have scenario were i have to move a file from one location to another in a FTP the source and the Target  structure are same can we go  with only configuration(ID) why because there is no mapping done but i have dbout when we create a sender agreement,receiver agreemant we need to mention the Message Interface is there any way to skip the IR(Design) part
    Do provide inputs
    Thanks,
    Sampath

    hi ,
      you can skip your IR part. follow this blog
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp
    Edited by: Robin on Jan 20, 2009 11:50 AM

  • How do I move a user from one computer to another?

    Our company has a volume license for CS4 and I am trying to move an employee from one MAC to another MAC.  When she logs into new MAC and tries to open InDesign or Creative Cloud they both crash.  The other programs are opening up fine.  The new MAC has a user that all CS4 programs work fine as well. 

    CS4 is from LONG before the Cloud... but recent messages that are about Cloud programs indicate that the Apple "migration tool" does not work... you need to do a new install & activation
    For your problems with new Cloud programs, try the link below
    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/

  • How do I move Contacts & Calendar from one User to another User on the same Macbook Pro?

    How do I move Contacts & Calendar from one User to another User on the same Macbook Pro? OSX 10.9.5

    is this second library in a different account on the computer?
    Look at Home Sharing.
    iTunes: How to share music and video - http://support.apple.com/kb/HT2688 - about Music Sharing and Home Sharing
    Home Sharing Support page - http://www.apple.com/support/homesharing/
    iTunes: Setting up Home Sharing on your computer - http://support.apple.com/kb/HT4620
    iTunes Home Sharing now works between users on same computer - https://discussions.apple.com/thread/3865597

  • HT4528 how do i move an icon from one screen to another on my Iphone 5?

    How do I mov an icon from one screen to another on my Iphone 5?

    Tap and hold an Icon until they begin to shake. Move the Icon towards the edge of the screen and hold for a couple seconds. The Icon will then "jump" to the next screen.

  • How do I move a contact from one group to another?

    On my device, or in iCloud on the web, how do I move a contact from one group to another.  This should be as easy as it is with calender items, but the only solution I've found is to change your default contact group, and email the contact to yourself.  Then tap the contact, and add it to your contact list.  You can then delete the original.  Is there an easier way???

    Hi rjwrjw11,
    Thanks for visiting Apple Support Communities.
    If you want a song to be listed under a different album in iTunes, you can edit the song information:
    Fixing Incorrect Song or Album Listings in iTunes
    http://support.apple.com/kb/TA24677
    Editing Track Information in iTunes
    To view and edit a song or video's info in iTunes:
    Click once on the track title to select it
    From the File menu, choose Get Info
    Click the Info tab
    Best,
    Jeremy

  • How can I move particular users from one client to another client

    Hi, I am trying to find a way to move few or many user from one client to another. Is there a transaction available or program to move them. e.g. there is a SCC1 available to move transport only from one client to another without going through TMS.
    Is there any trick available ?
    thnx in advance

    closing this one. thnx

  • In contacts app how can I move a contact from one group to another group?

    I find I cannot move a contact from one group to another group. If I delete a contact from one group I delete that contact from my total contact population. I did not have this problem in earlier IOS versions. Can anyone help me?

    Thanks SO much, Barney.  How embarrassing, I could have sworn that I tried that first.
    I will definitely get them all moved over before I delete that account and I've already gone in & changed my preferences.  Several years ago, my husband I decided to share one calendar and one contacts list, using his mobile me account and it's been great for us.  I'm particularly thrilled to no longer serve as a human rolodex and I guess that I paniced a bit when I thought there might be a problem with our system.  I'm still confused where that "On my mac" account came from on the first place.  Do you suppose that was an automatic thing that came with the Mountain Lion upgrade?
    thanks again!

  • Can  you move your notes from one iphone to another and how?

    Can you move your notes from one iphone to another and how?

    You can do this a couple ways.  If you are using MobileMe, notes is one of the options for synchronization and that would be automatic.  Another way is to backup your iphone to iTunes, this backs up essentially all the information on your phone (except for music) and if you restore the other iphone to the image of the original your notes will be transfered.

  • I want to move my library from one account to another, it is also on a different computer. How can I do this?

    I want to move my library from one account to another.  However, when I try to sync th old account it is not syncing to my iphone or exporting out.  How can I do this? Someone told me that it may be set to WiFi but it was not.  My libray is sitting there but I can get it out.  Mean while I have changed accounts and down loading to the iphone on my new account (and changing computers as well) How do I make this work so I can get my Library to sync to my iphone or export it from the old account. Is there anyway to move my library from one accont to another from the itunes side?
    Thx Rick

    Media is permanently tied to whatever account was used to purchase it.  There is currently no possible way to change the account it is tied to.
    Is there a reason why a new account was created?

  • How to move iMovie project from one computer to another

    I have been working on an iMovie 09 project on my desktop at home.
    Now I want to work on the same project on my computer at work.
    How can I move the project from one computer to another?   What I've already tried was to make a duplicate copy of the project and then use a thumb drive to move that to another computer.   It didn't work.
    Thanks for your help.

    Hello James Snedeker,
    After reviewing your post, it sounds like you want to move a file to another disk. I would recommend that you read this article, it may be able to help the issue.
    iMovie: How to Save Projects to Another Hard Disk
    To copy an iMovie project to another disk:
    1. Quit iMovie if it is open. 
    2. Locate the project folder in the Finder.
    3. Drag the project folder to the other disk.
    Note: You must move the complete project folder, intact, to the other disk in order to successfully copy the project. The project folder has the same name as the project listed in the iMovie window. This folder includes the iMovie project file, as well as a Media folder, which contains all of the clips associated with this project. If you don't copy all of these items, the project may no longer be readable in iMovie.
    Once you have copied the project, try opening it in iMovie to ensure that it copied to the other disk successfully.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

Maybe you are looking for

  • How to create reports servers with the same name in two nodes in Reports

    Greetings We are migrating Oracle Application Server 10g (9.0.4) to a better hardware infrastructure with high availability. We want to provide 2 new Oracle Application Server 10g (9.0.4) in High availability and we want to avoid modify the existing

  • Compilations are messed up in iTunes 11

    Since upgrading to iTunes 11 my compilation albums are messed up into individual artist per song. They were fine in v. 8,9 & 10. I've checked that the sort artist, sort album artist & album artist fields are blank & that "part of a compilation" is ti

  • Share 2nd REQUEST

    Hi, I have a problem with the share button in all the programs (Finder, Safari, etc.) when I touch it say NO SERVICE instead Airdrop, etc. Please help me to configure. Thanks in advanced!!

  • Adding Image in Reports 10g

    I have added one image in existing Report to customize it.While seeing the utput in Applications it does not display the image.The format for the image is .jpg.We are using Applications R12,Reports 10g.How to get it.

  • Java not found.

    just got new computer 3 weeks ago and it has vista home basic edition on it. i went to play a game online and was told i needed java. i downloaded jre1.6.0 and was able to play the game but all the video clips and music i was able to play at first wo