How to copy the ASM files on host filesystem.

Hello All,
There is a question come up in my mind that can we perform the copy/delete/move of ASM files to the host filesystem while the ASM instance is down.
For instance... To copy the file ASM file through AMCMD utility when the ASM instance is running.
ASMCMD> cp spfilenode.ora /u01
copying +DATA/NODE/spfilenode.ora -> /u01/spfilenode.ora
Now my question is, Can I copy/delete/move that file on OS filesystems when the ASM instance is down.
regards,
rohit

Hi,
1- Copy from ASM to FileSystem using cp command.
2- Copy from ASM to FileSystem using DBMS_FILE_TRANSFER.
1) In the first method, when I copy one file, I took more than 1 minute, so the following script would take me more than 1 days (I guess so).
#!/bin/ksh
# This script copies files from FRA on ASM to local disk
ORACLE_SID=+ASM2
ASMLS=/vasgatedb/app/vsgbkp/asm_ls.txt ##{ASM files list}
BKP=+data/vsgdb/vsgbkp/`date +%Y_%m_%d` ##{source location of files}
LOCALBACKUPDIR=/vasgatedb/app/vsgbkp  ##{destination filesystem}
LOG=/vasgatedb/app/vsgbkp/asm_log.txt ##{log file}
# Get the list of files
$ORACLE_HOME/bin/asmcmd > $ASMLS <<EOF
ls $BKP
exit
EOF
# Clean the list by removing "ASMCMD>"
sed -i 's/ASMCMD> //g' $ASMLS
##cat $ASMLS
echo `date` > $LOG
# Copy files one by one
for FILENAME in `cat $ASMLS`
do
if [[ ! -f $LOCALBACKUPDIR/${FILENAME} ]]
then
$ORACLE_HOME/bin/asmcmd >> $LOG <<EOF
cp $BKP/$FILENAME $LOCALBACKUPDIR
EOF
fi
done
echo `date` >> $LOG
2) The second method, DBMS_FILE_TRANSFER took me less than 1 second to copy one file completely.
sys@VSGDB> set timing on
sys@VSGDB> exec dbms_file_transfer.COPY_FILE('asm_dir','level_0_vsgdb_9998_813844797.bkp','fs_dir','level_0_vsgdb_9998_813844797.bkp');
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.38

Similar Messages

  • How to copy the backup files from TAPE to Local disc

    Hi Gurs,
    i want to make as replica trrough  PRD offline backup , on new server, while database installing i will take the option systemcopy /backup/restore , so for that how installation master can recognise the tape from tape device, so that now i wanted to copy the backup files from Tape to local disk so that it was already mounted ,i can show the path of backup files.
    the OS is Susi 9
    Oracle 9i
    ECC 5.0
    please any one can help me
    cheers

    What do you use to backup the files to disk? cpio? dd?
    Markus

  • How to copy the help file of LiveCycle.

    Hello All ,
    I am using LiveCycle ES - 2 . When ever I want to see the help file I have to open the LiveCycle and then click on the help . But problem is I just only want to view the help content , so if I close the LiveCycle then the help file also closes. I want to know is it possible to copy the whole help content into a separate file or folder so that I can see it without opening the LiveCycle.
    Thanks.

    Hi,
    You can access the help file here: http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm
    Previous versions allowed downloading the help file in PDF, but I can't seem to see that option here.
    Niall

  • K1- How to copy the *.pdf file to K1 , and what dir to copy to ???

    I did not install SD card into my K1 .
    When I connected K1 to my PC (window XP) I saw the directories:
    - Alarms.
    - capture.
    I had some book in *.pdf file format. I like to copy those pdf file to K1 so I can read under Adobe reader. What DIRECTORY I should copy to ?????
    Best Regards.

    You can put the PDF files anywhere you want, as long as you remember where you put them. Just as you'd do on a desktop operating system, like Windows or OS X, open a file manager app on your K1, and use the file manager app to navigate to your PDF file. Tap on the PDF file and Android will ask you which program (like Adobe Reader) you want to use to open it. For file managers, I like this one: https://market.android.com/details?id=com.rhmsoft.fm.hd It's ad-supported though, so there'll be a little advertisement in the corner. Or use the file manager app that is preinstalled on the K1.

  • How to copy the confuguration files in admin to user in terminal.

    Hi, i need to copy configuration files from Admin to user, I am not sure how to do.
    Please help me out on this.
    Thanks,
    Muniraju H

    Specifically, which configuration files and what are you trying to accomplish? What is the lcoation/path? Do you mean /Library/Preferences/SystemConfiguration? By "copy" do you mean make a copy or change the Ownership to your user, while leaving them where they are? (I have no idea why you would want to do this, since it may create Permissions problems for these files.)
    If you only want to copy them, while at the same time making your user the owner, you only need to Option-click on them using the Finder and drag them to your Desktop or somewhere in your user. This will automatically copy them to that new location with your user as owner. You don't need Terminal for this.

  • I backup my iphone on my pc and copy backup file into drive D then i setup new OS on my pc. after that i copy the backup file into itunes backup folder but itunes can't find the backup file to restore my iphone. how can i restore my iphone?

    i backup my iphone on my pc and copy backup file into drive D then i setup new OS on my pc. after that i copy the backup file into itunes backup folder but itunes can't find the backup file to restore my iphone. how can i restore my iphone?

    Don't you just love changes in interfaces?
    I found the answer to my question.
    When you attach a device (iPhone, iPad) to your Mac, in iTunes 12 in appears as a tiny icon in the second "row" of the iTunes display. Click the icon and the familiar iTunes display for the device appears. From there, on the Summary screen, you can see the dates of the backups of the device (iCloud and backup to the computer). You can also use the button to backup to the computer.

  • HT2548 how do i copy the domain file from OS 10.4 to a lion OS computer?  I made a copy of the domain file and copied it to my new computer, but it doesn't open in iweb when I double-click on it.

    How do I import an iweb domain file from an ibook (OS 10.4) to an imac (OS 10.73)?
    I copied the domain file from my ibook to my imac, but when I double-click on the file, it doesn't open in iweb. 

    In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.  Then place the domain file in your Users/Home/Library/Application Support/iWeb folder.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • I converted aif files to mp3 files in I tunes so I could put them on a flash drive.  Now when I transfer an album to the flash drive I get both the aif files and the mp3 files in the flash drive.  How do I get the iTunes to only copy the smaller file?

    I converted aif files to mp3 files in iTunes so I could put them on a flash drive.  Now when I transfer an album to the flash drive I get both the aif files and the mp3 files on the flash drive.  How do I get the iTunes to only copy the smaller file?

    My suggestion to use the smart playlist was more along the lines of making one list with rules to show everything in your library as long as it was kind "mpeg" (= mp3).
    Smart playlists cannot be edited manually, only by changing the rules.  You can use them as the basis for another smart playlist though.
    There is added overhead to using smart playlists, so don't go overboard.

  • How can i copy the music files from itunes in mp3 format to my PC

    How can i copy the music files from itunes in mp3 format to my PC

    Dr. P,
    Song files are just files.  You can copy them the way you copy any other files, like photos or documents.
    If any of the files are not already in MP3 format, and you wish to create MP3 versions, then you can convert them using iTunes, by following this guide:  http://support.apple.com/kb/HT1550

  • How to copy the photo with file name at window 7 and search specific one in iphone 4s?

    How to copy the photo with file name at window 7 and search specific one in iphone 4s?

    Clendenen02 wrote:
    2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste 
    and do this for all 700 files
    This Bash script will do it.
    Edit "PicDir" and "MovDir" to the location of your Folders
    (Note: The comment is written to the m4v file using xattr, so the Spotlight comment field appears blank in Finder, but the comment metadata is still indexed by Spotlight (If you add a Spotlight comment from Finder, it is stored both as an extended attribute and in a .DS_Store file)
    #!/bin/bash
    PicDir=$HOME/Desktop/Pictures
    MovDir=$HOME/Desktop/Movies
    for f in $PicDir/*
    do
         if [ ! -d "$f" -a "${f##*.}" == "jpeg" ]; then
              comment=$(mdls -raw -name kMDItemFinderComment "$f")
              if [[ $comment != "(null)" ]]; then
                   picname=${f##*/}
                   movname=${picname%.*}.m4v
                   if [ -e "$MovDir"/$movname ]; then
                         xattr -w com.apple.metadata:kMDItemFinderComment "\"$comment\"" "$MovDir"/$movname
                   fi
              fi
         fi
    done

  • How to copy an executable file(s) to multiple windows 64 bit OS Windows 2008 and above and execute the app thru cmd

    This is how i phased by goals:
    1)Login as admin on remote computers from a txt file.
    2) Copy the exe files to Windows folder
    3) Using cmd execute the commands
    4)Get the output tabulated into a txt file
    Can someone help me with this

    Being new to PS, i think i am mixing up PS and PSexec.
    I launch PS window and run a few commands PSexec commands.
    Command to copy MegaCli64.exe file and execute it but i need to actually create a folder in windows and copy two files there.
    ===============================================================================================================================
    PsExec.exe -d -c \\REMOTE COMPUTER  -u administrator -p PASSWORD c:\Windows\MegaCli64.exe 
    ----copies file in remote computer in windows folder
    Here i am also not sure how to feed the txt file with the IP or hostnames of those 100 systems.
    Command to launch cmd and execute MegaCli commands:-
    =====================================================
    psexec \\REMOTE COMPUTER -u administrator -p PASSWORD cmd
    -----this launches the commandline for the remote computer then it should run command MegaCli -PDList -aALL
    Extracting filtered output to a txt file:-
    =========================================
    for each hostname or IP, i only need its various
    Slot Number:  and their Firmware state:
    So this would look like
    hostname  slot   firmware state
    hostname   slot  firmware state
    etc..

  • I have photoshop installed on this PC.  Itw as installed by my school and now I want to transfer it to my new MAC.  I have the serial number so how do I do this?  Cand I just copy the program file across?

    It was installed by my school and now I want to transfer it to my new MAC.  I have the serial number so how do I do this?  Cand I just copy the program file across?

    if that's ps cs6, Order product | Platform, language swap

  • How to achieve the maximum file transfer rate from PXI to local host?

    I will have to copy a huge amount of data (as big as 50 GB) from a PXI-8106 unit on site to a laptop. Currently it would take several hours. It is critical to max out the data transfer rate.
    The standard method we've been using is just drag and drop using Windows Explorer via FTP. I tried to use FTP VIs with Filezilla Server as well but the transfer rate is only like 1.5 MB/s. Is this normal? Once I saw it was 3.0 MB/s but for some reason, that isn't happening now.
    For another option, I tried to transfer data to a USB flash drive but it's even slower. As far as I know, USB 2.0 transfer rate is supposed to be around 60 MB/s but why would it be slower than 1.5 MB/s? What could be the speed limiting factor in my file transfer setup?
    Any tips on improving file transfer rate would be appreciated!

    Sustained 40 MB/s? That is my dream speed! The maximum speed I've ever seen here was about 25 MB/s, which is still very good, and that happened only after copying back and forth, which I explained above. Let me go through what I did with screencaps first.
    These are the test tdms files to transfer in the PXI: an original file witten in the PXI and its copy file. I copied the original file from PXI to laptop and renamed it (added '_copy') and then copied it back to PXI.
    FTP module is transferring the original file to the Filezilla server on laptop. Note the low speed.
    FTP module is transferring the copy file to the Filezilla server on laptop. Note the higher speed.
    This is the FTP sub VI I'm using. It transfers files in sub-folders (one level lower), too. The data connection is set to 'passive' on the FTP Put Multiple Files VI but it doesn't seem to make any difference. I attach the sub VI.
    You tried the file transfer with a 500 MB text file. Would there be any difference if the file type was tdms? Would the RAM size matter? It is 2GB here.
    And the LED is orange, which means Gigabit.
    Another question: Is there any way to programmatically stop file transfer in progress? Currently, I just have to restart the PXI.
    Thank you!
    Attachments:
    FTP.vi ‏40 KB

  • How to copy the java concurren program in oracle application

    Hi All
    I am working in oracle Apps R12.
    In AP (Account Analysis Report) is registered as java concurrent Program.
    Now i need to customize this concurrent program and add two new column and two parameter in that.
    Could any one pls provide me the steps that how to copy the Java concurrent,and make a new customized program.
    Whether copying a java concurrent program is same as cp registered as oracle report.
    Thanks & Regards
    Srikkanth

    Hi Sir,
    Thanks for your reply.
    I have find the xml file form data definition and in that they have written Sql query and they have called a Package.
    And the i have also taken the class file from the path as mentioned.
    Now i need to customize this report by adding two parameter and i need to add two new column to display in the rtf.
    Can you pls tell me the steps to copy or how to customize this report.
    Regards
    Srikkanth

  • How to copy a pdf file from a windows PC to an iPad?

    how to copy a pdf file from a windows PC to an iPad?

    You can use iTunes to sync the file to the iPad using File Sharing.
    About File Sharing
    http://support.apple.com/kb/ht4094

Maybe you are looking for

  • Open XML and using xslt with JavaScript

    Hello, I want the user to be able to choose an XML-file. This XML-file should not be placed in InDesign, there is not even a document needed for my script. All I need is a variable, containing the file. However, the XML-file should be transformed wit

  • Message Header - OBPM 11g

    Hi All, We want to pass SOAP header to a service call (Service Task), however not able to assign (Data associations) any variable to header. Can we use Message Header property? I could nt find any documentation on this. We tried to use this, however

  • Missing Sent Messages in Mail 2.1.3

    In Mail 2.1.3 on OS 10.4.11 the sent messages just disappeared on my POP accounts. The emlx files are not in the Library/Mail/account/Sent Messages mbox. Is there a way to find them or are they gone premanently? I have tried rebuilding the mailboxes,

  • Distinguishing user selections from programmatic selections in JList

    I have two jlists., and registered a subclass of ListSelectionListener on each list. When the user selects a record in the first list part of of the code I have written sets a selection on the second list which is correct, but then this triggers the

  • Missing menus in BIOS

    Hi all, I recently took delivery of a Yoga 2 13", and once I figured out how to get into the BIOS I took a look around and made some notes. Initially the menus were: Debug, Information, Configuration, Main, Advanced, Security, Power, Boot. At some po