copy a data file to a raw device

Hi all:

I need to move a file of data SYSTEM of a filesystemto a raw device.

I stop the database, copy the file

closing database

dd if=/oradata/datafile.dbf of = / dev/raw01 bs = 4096 skip = 1 seek = 0

MV /oradata/datafile.dbf /oradata/bkfile/datafile.dbf

ln s/dev/raw01 /oradata/datafile.dbf

startup database

ORA-01122: database audit control failed file 101
ORA-01110: data file 101: ' / oradata/datafile.dbf '
ORA-01251: unknown file header Version from the record 101

startup of the database, but could not open
data due to the error: ORA-01251: unknown file header Version from the record 101

Can we see what else could be wrong with my dd command or any solution

Thank you

mutung wrote:

Of Dear John Watson

How can I do better?

Thanks for your response

You can use dd without skip = 1 argument.

Tags: Database

Similar Questions

  • Copy a data file to a local diskgroup remotely a diskgroup

    Hi all

    RDBMS...: 11.2.0.4 (64-bit)

    Then...: CentOS 6.4 (64-bit)

    I do a few tests here with transportable tablespaces, and I got stuck in how to copy data directly from a local DG to DG distance in another server. I'm trying to do to make the time as low as possible (I could copy the data file of my DG of a system of local files and after that via asmcmd cp, copy this data file, through cp, for the remote server, but it might take a while with giant data files).

    The question is: is it possible to copy a data file to a local DG to a distance DG (another server) directly?

    Thanks for the attention.

    Hello

    Yes

    You can copy the DG to DG by using ftp.

    http://emrebaransel.blogspot.com.tr/2010/04/transferring-Oracle-files-between.html

    Concerning

  • XTTS - problem by copying the data file in ASM

    I test the migration of database from AIX to Linux using the cross-platform transportable tablespaces.
    DB version: source: 10.2.0.4
    Destination: 10.2.0.5
    OS version: source: AIX6.1 - AIX - Based Systems (64-bit)
    Destination: RedHat Linux - Linux x 86 64-bit

    I have run the commands before copying the file data to destination below.
    EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK('TBLSP1,TBLSP2', TRUE);
    
    SELECT * FROM TRANSPORT_SET_VIOLATIONS;
    
    no rows selected
    
    alter system archive log current;
    
    alter tablespace TBLSP1 read only;
    
    alter tablespace TBLSP2 read only;
    
    expdp DUMPFILE=xtts_exp.dmp DIRECTORY=DUMP_DIR logfile=xtts_exp.log TRANSPORT_TABLESPACES=TBLSP1,TBLSP2
    
    CONVERT TABLESPACE TBLSP1,TBLSP2 
    TO PLATFORM 'Linux x86 64-bit'
    FORMAT '/dataimport/%U';
    /DataImport is a shared file system mounted on Linux server and am able to see the file of data out there. But receive the error below to try to copy the data file on the linux server. Could someone let me know if I missed something / how to fix this error.
    $rman target /
    
    RMAN> copy datafile '/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_05m8miia' to '+DATA';
    Starting backup at 05-APR-11
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 04/05/2011 10:19:44
    RMAN-20201: datafile not found in the recovery catalog
    RMAN-06010: error while looking up datafile: /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_05m8miia

    To be honest, I don't really see what you have done in the op, so I can't really comment on. I see you have an export of the TTS, but that's all.

    If you have followed all the list I mentioned (you did write the TTS reading?), then you can try to save the file with RMAN, but I suspect that it does not work. Do you get the error even if you move the shared location (/ donneesimporter) to a local directory on the target area? Maybe he doesn't like the fact that it's a NFS mount (or whatever the proportion is).

    Or maybe it's because you going to 10.2.0.4 10.2.0.5. I have always had the same group of patches and updated once I had plugged the tablespaces on the target database.

  • IAM using windwos vista I try to copy a data file to my wile pc usb port copy the cry of power dwon ofter that I do not find the fine in usb and my pc so how do I get this file back

    IAM using windwos vista that I try to copy a data usb port on my pc wile file copy the cry of power dwon ofter that I can't find the fine in usb and my pc so how do I get that file back please answer me

    Hello

    This program allows you to search for and attempt to recover the file to your C: drive and / or your USB Flash drive.

    http://www.Piriform.com/Recuva

    See you soon.

  • Is it possible to recover a database with the copy of data files (cp), while the database has been opened?

    Hello

    We know we need to do a backup of an oracle database by using the appropriate tool, in most cases the rman. But we have in our society, a person who helps us with the backup of all the databases oracle we have. Thus, in addition to the rman backups, we do a copy (cp) with the open database of all files in oracle database, (without start backup) including of course spfile, controlfile, etc.. My question is: can recover us my database using this copied data files? or are we just wasting disk space on our backup environment?

    Kind regards
    Melo.

    We're doing a copy (cp) with the open database of all files in oracle database, (without start backup) including of course spfile, controlfile, etc..

    As EdStevens said, it's essentially a backup without value. When you copy files from a backup ' hot', there may be inconsistencies in the blocks of the file as transactions actively edit these blocks while the copy is made. Mechanism of Oracle backups hot managed by users is to put the database or tablespace in backup mode, copy the files, and then the end backup mode. Without this mechanism, the chances of being able to restore from this backup are very, very thin.

    My question is: can recover us my database using this copied data files?

    My question is... have you tested recovery? If the recovery has been piloted, then called the answer to this question. Please read the end of this blog post for more information:

    Blog of Peasland before necessary recovery database backups"

    See you soon,.
    Brian

  • Problem copying the data file

    Hello

    I'm relatively new to essbase. I'm trying to see if taking the back to the top of the map files, data file and security, can restore us the essbase application.

    I copied the outline of a cube ASO 'A' in another word to say 'B '.

    I'm doing the same thing for the data file. But the problem is that I'm not able to see all the data in 'B' when I got the data. I do not know if what I'm doing is just. Could someone please suggest?

    Thank you

    Bob

    Hello

    Once you copy the contour on different App folder stop and start Essbase and see if you are able to see the dimensions in this app (you must have the otl file and keep the files renamed as database name), open the outline and save.

    Export the data from the first application and import these data files on the second request snack if you want to go with manual steps.

    Am not very sure I have no idea of ASO and it's just my guess.

    Thank you

    Amith

  • Can the sys admins save raw devices?

    Platform: Solaris 5.10
    DB versions: 11g

    As raw devices are not from the OS to the format sys admins can save raw devices? If they cannot, then, this means that we completely rely on backups RMAN to our DBs CARS. Right?

    resistanceIsFruitful wrote:
    Platform: Solaris 5.10
    DB versions: 11g

    As raw devices are not from the OS to the format sys admins can save raw devices?

    Yes. They can use the command dd (disk image) backup - where If (input file) is the raw device and of (output file) is a tape drive or a backup device.

    If they cannot, then, this means that we completely rely on backups RMAN to our DBs CARS. Right?

    This should be the preference. Backup of a raw device using dd does not guarantee a database or the cluster that can be restored - as other processes are / can be write data, while dd is playing it to the backup. It doesn't have the same management and control functions and the flexibility of rman.

    Do not use rman would be a mistake to IMO.

  • Engraving of the data files on a CD, how?

    I tried to copy a data file outlook (contacts) on a CD as a backup copy, formatted disk and nothing else happened?

    Now, I get a notification that I have files waiting to be burned to the disc, when I click on the ball of the window that opens displays files and drive but, does not give me the option to burn to disc?

    When I open the CD in outlook, it is empty?

    Did you export you a pst file Outlook contacts > save it to a folder > then go to the folder, click on the pst file > click on burn > insert CD etc etc?

    How to export Outlook Contacts to a pst file:
    http://www.ehow.com/how_6774652_copy-Microsoft-Outlook-contacts-CD.html

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Tungsten T3 - need to DAT file access with address - please help

    I have an old Palm Tungsten T3. The desktop computer with the address information synchronized died and the T3 has lost power (so no more addresses).

    I have a. Backup DAT files with all my addresses. Can someone tell how can I have access to these.

    Palm Desktop 4.1.4e reinstalling did not help because it does not allow me to import. DAT files.

    Can I import this file into any other application or open in Excel etc.?

    Any advice would be much appreciated.

    Thanks in advance.

    You must physically copy the .dat file in the directory of the user on the existing address.dat file.  Find the one with your short hotsync name (i.e. - C:/Program Files/Palm (or PalmOne) / name of your Hotsync/address) and copy the .dat file.

    Make sure that you copy the file and keep another a safe in the case where something goes wrong.  The existing empty address.dat file will be only about 2 k in size.

    Good luck!

    WyreNut

  • Tried to copy a data disk to another disk using Power2Go received message Power2Go has stopped working any suggestions?

    Tried to copy a data file to another drive using Power2Go disc.  Received message that Power2Go has stopped working any suggestions.  I tried to uninsall the CyberLink program and reinstall from Recovery manager.  I have a HP with Windows 7 Home Edition computer.

    Hello

    1. were you able to burn the disc before using this software?

    2. you remember to make changes to the computer before this problem?

    3. are you able to burn the disc using Windows Media Player?

    Look for error messages in the event viewer for detailed error information.

    Open event viewer

    http://Windows.Microsoft.com/en-us/Windows7/open-Event-Viewer

    What are the information contained in the logs of the event (Event Viewer)?

    http://Windows.Microsoft.com/en-us/Windows7/what-information-appears-in-event-logs-Event-Viewer

    Follow these methods.

    Method 1: Check to see if you can burn the disc using Windows Explorer

    Burn a CD or DVD in Windows Explorer

    http://Windows.Microsoft.com/en-us/Windows7/burn-a-CD-or-DVD-in-Windows-Explorer

     

     

    Method 2: You can perform a clean boot that allows to check if other services third party is causing a problem.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Please note: after troubleshooting, make sure you start the computer to a normal startup mode.

  • ORA-01157: cannot identify/lock data file [HELP! PLEASE!]

    I'm under Oracle 11 GR 2. When I tried from Oracle sqlplus, I got the following errors:
    ORA-01110: data file 8: '/dev/raw/raw8'
    ORA-01157: cannot identify/lock data file 8 - see DBWR trace file
    I used "the judgment" to stop the Oracle. I'm sure that there are 2 sessions to approve the changes to the database while I closed the Oracle. Is there anyone know how to fix this?

    Many thanks for any help!

    Hmm...

    change 315220074 September at 12/10/2011 14:34:12 necessary

    but your newspapers online redo is 2011-10-12 16:31:54 from only.
    So, there are some transactions in the stream of roll forward relative to this data file between 14:34:12 and 16:31:54.

    Hemant K Collette

  • Transfer data file on a different drive due to full disk

    I use ORA 10 G in WIndows Server 2003. I got the full disc. the disc contains a tablespace MTB with 30 data files. I intend to transfer some (say 10 files) to the other player. Please tell us how can I do this without loss of data.

    Hello..

    Please tell us how can I do this without loss of data.

    You must either take the tablespace offline or need to close the database.

    (a.) Tablespace offline;

    1 alter tablespace offline;

    2 copy data files to another location

    3 alter tablespace rename datafile ' location/name' to 'nouvel_emplacement/name'; - for all data files

    4. alter tablespace online;

    (b) arret stop of the database, copy the data file at different location, mount the database, and then

    ALTER database rename ' location/file name' to 'nouvel_emplacement/name ";

    [http://www.jlcomp.demon.co.uk/faq/rename_datafile.html]

    Anand

  • When I try to copy a file to an external device using Windows Explorer I get the following error message: "cannot copy. The directory or file cannot be created. »

    original title: could not copy files

    When I try to copy a file to an external device using Windows Explorer I get the following error message: "cannot copy.  The directory or file cannot be created. "I understand that I may have the physical limit of USB keys for the root directory.  How can I fix it?

    Hi GloriaZF,

    What is the size of your external hard drive and what is the available free space? Open my computer-> right click on the external hard drive-> properties. You will not be able to copy more data if the disk is full, or who have less space compared to the size of the file you are trying to copy.

    You need to remove the order data to make the space more. Deleted data from the device USB will be permanently deleted and will not be stored in your Inbox, so take care while eliminating unnecessary data.

    I hope this helps.

  • I have some important files on my desktop and the fear that one of my employees has copied that data on its USB...?

    I have some important files on my desktop and the fear that one of my employees has copied that data on its USB, is it possible to check if there was such a transfer, such as a history of copy, or something?

    In my view, the above question sums up all, I'm not that computer savvy, so please give detail instructions, and if there is way to secure these files are copied or sent by electronic mail, please let me know, if I can avoid these problems in the future. Thank you.

    You may not know a posteriori if this transfer took place. To prevent it in the future, lock your device by pressing the Windows key + L before you leave your office and keep your secret password.

  • RMAN issues - no backup or copy of the data file found

    Oracle 11 g 2

    Linux RHEL 6.5

    I inherited a database backup and restore question since the DBA is OoO.

    Here is the script used for the backup:

    Configure default device the disk type;
    Configure controlfile autobackup on;
    Configure controlfile autobackup peripheral type disc format in ' / u01/app/oracle/bkp/controlfile/%F.ctl';
    Configure retention policy to recovery of 30-day window;
    View all;
    Run {}
    stop immediately;
    bootable media;
    allocate channel dup1 device type disk;
    allocate channel dup2 device type disk;
    SQL "create pfile =" /u01/app/oracle/bkp/pfile/initpfile.ora "of spfile;
    backup format ' / u01/app/oracle/bkp/cold_db/cold_bkp_%U' database;
    output channel dup1;
    output channel dup2;
    ALTER database open;
    }

    When I try the following restore script:

    run
    {
    Start pfile='/u01/app/oracle/bkp/pfile/initpfile.ora' nomount;
    Restore controlfile to ' / u01/app/oracle/bkp/controlfile/c-123131414-20140509-00.ctl';
    change the editing of the database;
    restore the database;
    ALTER database open resetlogs;
    }

    I get error RMAN-06023: no backup or copy of the data file found

    I'm trying to restore a database backup from 5 days ago and I use this backup control file.

    I'll close this discussion and continue to involve the Oracle.  Thank you all for your help.

Maybe you are looking for