Oracle - Move datafiles to a new filesystem

Hi,
We have an ERP system running on HP-UX with Oracle database.
To stick with SAP recommendation, the filesystems holding the datafiles should have a blocksize of 8192K. We have 5 filesystem of 2 TB for the datafiles of the production system, and 3 have a blocksize of 1024k instead of 8192k.
The safest strategy would be to:
- Stop SAP and DB
- Copy the datafiles of these 3 filesystems to 3 new filesystem with a blocksize of 8192K
- Adapt the mount points
- Restart the DB and SAP
The problem with this strategy is that it is very time consuming, and will need a long downtime to complete it.
We have another strategy in mind:
- Putting the database in backup mode
- Copying all the datafiles (for the 5 filesystems) to new filesystems
- Putting the database back in normal mode
- Stopping SAP and the DB
- Changing the mounting points to the new filesystems
- Starting up the database and recover it (applying all the logs)
- Starting SAP
This should help us reducing the downtime.
Can you advise if it is a valid strategy ? Do you have any other idea on how we could proceed ?
Thanks in advance for your help :-)
Antoine

Hi Antoine,
well from a technical point of view this is valid, but to be honest it is slow as well and it includes many manual error-prone activities. Nowadays there is no reason for not using RMAN
The fastest and safest method (in my opinion) would be the following:
Create the 3 new file systems
Perform full image copy backup of corresponding data files to that file system
Perform incremental backups (with block change tracking) and apply them to the corresponding image file copies (Rolling Forward Image Copy Backups)
Perform the last incremental backup (with block change tracking) and apply it right before shutdown of SAP
Shutdown SAP
Use RMAN to switch to data file copy (in new file system)
Use RMAN to recover data files, which should take only a few seconds to minutes depending on the load between step 4 and 5.
Start SAP
Regards
Stefan

Similar Messages

  • Oracle database reorganization (moving datafiles to new filesystems)

    Hi All,
    We are planning to perform a database reorganization (moving datafiles to new filesystems) in our Production environment using SAPDBA.
    We had noticed in our recent performance reports that few datafiles in some of the SAPDATAxx filesystems are having higher I/O contention and are putting heavy load on those filesystems resulting in poor performance. So, we had identified the datafiles and planning to move them to new SAPDATA filesystems (uniformly distribute the datafiles to stabilize the I/O). Below are the version information.
    SAP: 3.0F
    Oracle: 9.2.0.8
    OS: HP-UX 11.23
    SAPDBA: 6.20
    I'm going through SAP notes and Oracle documentation on this.Can you please share your experiences if similar activity was carried out by any of you and the documents relating to this.
    Your inputs on this is very much appreciated.
    Thanks,
    Vasu

    If your goal is just to make use of new storage, it is fairly straightforward and quick to move the datafiles as others mentioned. However, moving the datafile will NOT reorganize tables/tablespaces.
    You can optionally reorg tables/tablespaces in addition to the move of datafiles. This generally saves space and helps performance. If you decide to reorg, I would suggest you move the datafiles to faster storage then reorg (since reorg itself is highly IO intensive).
    Some points to consider:
    - perform the reorg when business use is least
    - perform online reorg where possible
    - online reorg creates temporary snaps, typically in the users default tablespace, make sure it has sufficient space
    - start with small tables/tablespaces first to get throughput estimate and also estimate of reduction in size
    - estimate the size of target tablespace (how small it is going to be compared to source) and build the target tablespace smaller to avoid wasting space
    - watch the space usage of the target tablespace when the reorg is running
    - if you are reorging individual tables, make sure the indexes are rebuilt
    Hope this helps.
    Regards,
    Shan

  • Putting Oracle Datafiles on an encrypted filesystem

    Hi,
    Has anyone had any luck in keeping datafiles on an encrypted filesystem?
    We have a possible requirement to host a copy of a database that is provided by a third party in a location that isn't manned 24/7. Some people have raised concerns and said that the data must be encrypted - I personally think it's a bit of a waste of time but I'd like to know if it is at least technically feasible.
    We are running Oracle 10.1.2, at the moment on Windows server 2003, but at some point we will move it onto AIX (It currently gets loaded by import/export, but we are going to start using data guard)
    There isn't a lot we can do with the application as it's third party, if we were on 11g we might be able to use the transparent tablespace encryption stuff, if we forked out for it but the application hasn't been tested at all on v11.
    Any ideas?
    Cheers
    Carl

    I'm not sure if this would help,
    http://www.oracle.com/technology/oramag/oracle/05-jan/o15security.html
    http://www.oracle.com/technology/oramag/oracle/05-sep/o55security.html
    sbs

  • I would like to move datafiles to another Oracle Machine

    Dear All:
    I have two Oracle Server based on Windows XP professional.
    I would like to move datafiles to another Oracle Machine. That is, I want to move datafiles from A server to B server.
    Do you know how I can transport these datafiles and how can B server recognize table, metadata, values from datafiles?
    Please help me.
    Sincerely,

    To rodenyli:
    Version is Oracle 10gR2 (first server and second server are same).
    I already create the DB on the second server but SID is different.
    I don't understand what you are saying.
    "Is the instance name the same?"
    I didn't create any tablespace and datafile on the second server.
    For example, the datafile name of the first server is ABCD.DBF. and I want to transport the second server. but the second server doesn't have any tablespace and datafile.
    Please let me know in this case.
    Thank you,

  • Moving datafiles to a new location: change not flushed

    Hi all,
    I am using Oracle 10g release 10.2.0.1.0 patched 10.2.0.3.0
    I need to move all datafiles of the DB from a current location to a new one. Here are the steps I follow (I use SPFILE):
    1-Shutdown the DB
    2-Move all .DBF .LOG .CTL files to the new location
    3-startup mount
    4-alter database rename file 'old location' to 'new location' ; ... for all .DBF and .LOG files
    5-alter system set control_file=<list of CTL files in new location>
    6-alter system set core_dump_dest=<new empty location for cdump>
    7-alter system set user_dump_dest=<new empty location for udump>
    8-alter system set background_dump_dest=<new empty location for bdump>
    9-alter database open
    From this point, if I use select * from v$logfile or select name from v$datafile or show parameter, I see that the DB is using all files in the new location. That's correct.
    My problem is: if now, I issue a shutdown followed by a startup, the DB will then show the old location for files as if my updates (steps 1 to 9) were not flushed/commited.
    Is there a kind of commit to have my changes taken into account ? How may I resolve my problem ?
    Thanks for any help.

    This does not work:
    1-Shutdown the DB
    2-startup mount
    3-alter database rename file 'old location' to 'new location' ; ... for all .DBF and .LOG files
    4-alter system set control_file=<list of CTL files in new location>
    5-alter system set core_dump_dest=<new empty location for cdump>
    6-alter system set user_dump_dest=<new empty location for udump>
    7-alter system set background_dump_dest=<new empty location for bdump>
    (So changes are now in the old location)
    8-shutdown
    8-copy all .DBF .LOG .CTL files to the new location
    9-startup
    ... because when the alter database statement is issued, oracle does not find the file in 'new location'. So the correct sequence with the spfile is:
    1-Shutdown the DB
    2-copy all .DBF .LOG to the new location. Do not copy the .CTL files at this step.
    3-startup mount
    3-alter database rename file 'old location' to 'new location' ; ... for all .DBF and .LOG files
    (Oracle finds them in the new location)
    4-alter system set control_file=<list of CTL files in new location> scope=spfile
    5-alter system set core_dump_dest=<new empty location for cdump> scope=spfile
    6-alter system set user_dump_dest=<new empty location for udump> scope=spfile
    7-alter system set background_dump_dest=<new empty location for bdump> scope=spfile
    (CTL are still in old location but contain information about the new location)
    8-shutdown
    9-copy all .CTL files to the new location
    10-startup
    Many thanks to you all for your help.

  • HOW TO MOVE DATAFILES FROM ONE  DISK RAID TO ANOTHER:PLZ HELP ME  :=)

    Hi all,
    For Tunning reasons : perform The I/O from the Instance to datafiles (database). I decide to move some Index datafiles from One DISK RAID to another.
    I'm on Linux Redhat Server and Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    My database 's On PRODUCTION and there 're many web applications updating some databases tables and for sure using Index tablespace. I preapared yet my procedure to move datafiles but I'm posting this to be sure that I will not have BAD EFFECTS on my Oracle database.
    So I plan without SHUTDOWN MY DATABASE to these steps :
    /*Step1 : */
    ALTER TABLESPACE INDX OFFLINE ;
    /*Step 2 : move datafiles to new disk raid*/
    mv /u01/oraindx/DB01/indx01_05.dbf /u01/oraindx2/DB01/indx01_05.dbf
    mv /u01/oraindx/DB01/indx01_06.dbf /u01/oraindx2/DB01/indx01_06.dbf
    mv /u01/oraindx/DB01/indx01_07.dbf /u01/oraindx2/DB01/indx01_07.dbf
    /*Step 3 : */
    ALTER TABLESPACE INDX RENAME DATAFILE '/u01/oraindx/DB01/indx01_05.dbf' TO '/u01/oraindx2/DB01/indx01_05.dbf';
    ALTER TABLESPACE INDX RENAME DATAFILE '/u01/oraindx/DB01/indx01_06.dbf' TO '/u01/oraindx2/DB01/indx01_06.dbf';
    ALTER TABLESPACE INDX RENAME DATAFILE '/u01/oraindx/DB01/indx01_07.dbf' TO '/u01/oraindx2/DB01/indx01_07.dbf';
    /*Step 4 : */
    ALTER TABLESPACE INDX ONLINE ;
    Please verify my procedure and tell me the precautions that I should take care :=)
    regards,

    Werner,
    If this is an active databases (indexes are used),
    you cannot set offline the index tablespace.you can offline it.
    DAB user:
    SQL>create tablespace inds datafile '/oracle/newdb/mydb/inds01.dbf' size 10m;
    Tablespace created.
    Scott user:
    SQL>create table t2 (col1 date, id number) tablespace users;
    Table created.
    SQL>create index t2_ind on t2(id) tablespace inds;
    Index created.
    SQL>insert into t2 values (sysdate,1);
    1 row created.
    SQL>insert into t2 values (sysdate,2);
    1 row created.
    SQL>insert into t2 values (sysdate,10);
    1 row created.
    DBA user:
    SQL>select segment_name,segment_type,tablespace_name
      2  from dba_segments
      3  where owner='SCOTT' and segment_name like 'T2%';
    SEGMENT_NAME                   SEGMENT_TYPE       TABLESPACE_NAME
    T2                             TABLE              USERS
    T2_IND                         INDEX              INDS
    SQL>alter tablespace inds offline;
    Tablespace altered.
    SQL>!mv /oracle/newdb/mydb/inds01.dbf /oracle/newdb/mydb/inds0001.dbf
    SQL>alter tablespace inds rename datafile '/oracle/newdb/mydb/inds01.dbf' to
      2  '/oracle/newdb/mydb/inds0001.dbf';
    Tablespace altered.
    SQL>alter tablespace inds online;
    Tablespace altered.
    scott user:
    SQL>insert into t2 values (sysdate,20);
    1 row created.
    SQL>
    SQL>select * from t2;
    COL1              ID
    22-NOV-07          1
    22-NOV-07          2
    22-NOV-07         10
    22-NOV-07         20
    SQL>commit;
    Commit complete.

  • How to move  FLASH_RECOVERY_ARE file to new drive?

    Thanks for taking my questions!
    Does anyone know how to move the e:\oracle\flash_recovery_area\* files to a new drive?
    Thanks,
    Kathie
    THIS FAILED:
    I created a new pfile.
    Edited pfile changing old drive letter to new drive letter.
    shutdown immediate
    moved the E:oracle\flash_recovery_area\* to S:\oracle\flash_recovery_area\*
    startup nomount;
    create spfile from pfile;
    shutdown immediate;
    startup
    Now I get ORA=38760 - This database instance failed to turn on flashback database;

    Kathie,
    Try this by mounting the database first
    1) First Turn off Flashback:
    SQL> alter database flashback off;
    Monitor alert log for messages regadring flashback:
    Then s turn the flashback on again.
    SQL> alter database flashback on;
    SQL> Alter database open;Regards

  • Move database to the new server

    Hello,
    I have 10.2.0.1 Standard Edition database (7GB, not in archivelog mode) on Windows2003 server, and need to move it to the new server (same environment). I thought to use OEM Clone option, but it appears cloning to the other host is working only in Grid - and I have DB Control.
    I know about manual cloning/recreation, but now looking into export and import option. So I think to install Oracle database on the new server, then import some relevant tablespaces exported from the old database. I will use datapump utility in OEM, under system username.
    Is that a good approach ? What rules should be applied to avoid problems in that case ? Sorry if it's very basic question, never moved database before.
    Marina

    Options for porting the database from one server to another after installing Oracle on the new server incldue
    Export/Import using expdp/impdp
    Rman duplicate to compatiable hardware
    Rman file conversion to non-compatiable hardware
    On advantage of expdp/impdp is this option supports reconfiguring the database tablespace/file/object storage layout as part of the migration. Also the adoption of new features like ASSM.
    A disadvantage is that using expdp/impdp will probably be slower and involve more DBA work than using file copies via rman. There are approaches to reduce the clock time necessary to support export/import and the work is often beneficial for long-term database management efforts.
    There have been threads on this topic before and failry recently. You might want to hunt one or two of them down.
    HTH -- Mark D Powell --

  • Resize datafile or add new datafile which is good?

    Hi all
    we have 80 GB database size and only two tablespace have space around 60 Gb
    these two tablespace have one database each around 30 gb so
    My question is it good to resize current datafile or
    It it good to add new datafile ?

    Your question is which is "best"; add datafile or resize right? If yes, then I think below links will answer you :
    http://www.freelists.org/post/oracle-l/Datafile-size-Is-bigger-better,9
    datafile and size
    Bigfile or smallfile tablespace?
    Just go through these link. I am sure answer in it.
    Regards
    Girish Sharma

  • Move datafile on Primary not replicted on Standby Database

    I'm using an automated script to move datafiles between partitions on my standby database, this ensures that only recent data is on the faster fibre channel disks, and older data is on SATA disks.
    The commands it uses:
    1. alter tablepspace offline;
    2. unix command to mv data file from one partition to another.
    3. alter tablepspace <tbname> rename datafile ' old datafile path' to 'new datafile path';
    4. alter tablepspace online;
    This works fine on the primary database, but the standby is not moving the datafiles.
    Any help as to why this is happening would be much appreciated.
    Thanks.

    And why would it be replicated? If there already is the same file on the standby, redo entries can be applied to it. Renaming of data files is
    not an operation that would be visible in redo logs, it is visible only in the control file(s). Standy databases apply redo logs from the primary
    database, period. That is all they do. If the change is not visible in the redo logs, it isn't applied to standby. If a file is created, dropped or
    changed in size, that is communicated to the standby which reacts appropriately if the STANDBY_FILE_MANAGEMENT parameter is set to AUTO on the standby side. Redo entry contains the following information:
    <ol><li>     SCN for the change.</li>
    <li>     The file number to which the change was made</li>
    <li>The block number of the changed block.</li>
    <li>     The offset and the size of the changed information.</li>
    <li>     The changed information itself.</li>
    </ol>
    When the standby receives the archived log file and parses that information, it applies the information to the corresponding file on
    the standby side, regardless of the file name. If the file 123 exists and contains the block 9876543210, redo entry will be applied
    and all will be well. There is absolutely no way by which the standby database would be able to discern the new file name. There is
    absolutely no need for that. To change the file name on the standby side, do the following on the standby side:
    <ol><li>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;</li>
    <li>ALTER DATABASE DATAFILE 123 OFFLINE;</li>
    <li>ALTER DATABASE RENAME FILE 123 TO '/my/db/path/new_file.dbf';</li>
    <li>ALTER DATABASE DATAFILE 123 ONLINE;</li>
    <li>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;</li>
    </ol>

  • Move apps tier to new server

    Hi all,
    here we have 2 node setup
    node 1 : apps + db (cm + db)
    node 2 : apps (web + forms)
    requirement is we want to move node 2 to new server bcoz os team wants to do some maintainance on node 2.
    is this possible to move only node 2 (web + forms) to new server through rapid clone n sync with existing cm and db node or we have to move entire setup to new servers
    links n MOS doc ids highly appreciated
    versions:
    apps : 11.5.9
    db: 9.2.0.8
    os : RHEL 4
    Thanks,
    Haafiz

    Yes it is possible and all you need to do is the following (you don't need to move node1):
    - Install OS on the new server + OS pre-req software and packages
    - Run preclone on node 2
    - Shutdown the application on node 2 and copy the files to the new node
    - Run postclone on the new node
    - Clean FND_NODES and run AutoConfig
    Oracle Applications Installation Update Notes, Release 11i (11.5.10.2) (Doc ID 316806.1)
    Cloning Oracle Applications Release 11i with Rapid Clone (Doc ID 230672.1)
    How to get a clean Autoconfig Environment ? (Doc ID 391406.1)
    Thanks,
    Hussein

  • I cannot to move datafiles on windows

    Hi all,
    I'm using Oracle 10.2.0.3 on Windows 2000 Professional.
    I need to move datafiles to other disk to save space.
    So I take the tablespace to offline. But when I try to
    move a datafile, I got the windows message: File in use.
    Why I got this if the tablespace is offline?
    The database is in archivelog mode and it is open.
    Thank you very much!!!!

    Very strange.
    I take the tablespace to offline, I copy the datafile to other location, I perform the alter database rename file,
    I take the tablespace to online, but the old datafile on old disk cannot be removed because the windows returns that the file is in use. I did understand.
    The dictionary of oracle is OK, the location of datafile is OK in dictionary, but....
    Thanks again!!!

  • My itunes is on an old computer.  So old that I can't update it and so Haven't used it in two years.  How can I move it to my new laptop and make sure this doesn't happen again?  Very frustrated that I've spend $$ but can't get my music.

    My itunes is on an old computer.  So old that I can't update it and so Haven't used it in two years.  How can I move it to my new laptop and make sure this doesn't happen again?  Very frustrated that I've spend $$ but can't get my music.
    I want so set up itunes on my laptop and make sure that I get all of my old music and any music shared from my sons' itunes accounts.  Do I have to set up itunes on my new laptop first and then use the same logins?  Really concerned about losing any music, etc.

    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    Note if you have failed to move contacts and calendar items across you should create one dummy entry of each in your new profile and iTunes should  merge the existing data from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable.
    Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then see Recover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
    tt2

  • I in have a product registered an old account, how do i move it to a new account and close the old one?

    I in have a product registered an old account, how do i move it to a new account and close the old one?

    COntact support by web chat.
    Mylenium

  • I just bought a new IMac. I have photoshop elements installed on my old IMac and would like to move it to the new one. How can i do this?

    I just bought a new IMac. I have photoshop elements installed on my old IMac and would like to move it to the new one. How can i do this?

    Unfortunately, adobe doesn't have photoshop elements 6 available for download, as far as i know, so your best bet is to either get an usb dvd drive or use an computer with a dvd drive and copy the contents of the pse 6 dvd to somethiing like
    a flash drive and then copy the contents from that drive to your new computer.
    Do you still have your older mac and it has a dvd drive?
    You can share files between the two using airdrop or an ethernet cable.
    http://support.apple.com/en-is/HT203106
    http://support.apple.com/kb/PH18722
    http://support.apple.com/kb/PH14409

Maybe you are looking for