Change datafile locations

How to change datafile locations through RMAN.
D:\user.dbf
I want to move it to E drive. So first i copy the datafile to E drive then how i updated controlfile for new datafile location. Please guide me.
Thanks

change datafile locations You can do it when the Database is open...for this the tablespace must be in read only.
For this first you need to move the tablespace to read only - as the database is open...
ALTER TABLESPACE current_tablespace read only;
copy the datafiles to the new location.
Take the current_tablespace offline
ALTER TABLESPACE current_tablespace offline;
SQL> ALTER DATABASE RENAME FILE
2 'd:/user.dbf'
3 TO
4 'e:/user.dbf';
SQL> ALTER TABLESPACE current_tablespace online;
and then make it online
SQL>alter tablespace current_tablespace read write;
If you want to check the status - i mean
how i updated controlfile for new datafile locationsql>alter database backup controlfile to trace;
This syntax produce a readable copy of the contents of your controlfile which will be in user_dump_dest.
And dont forget to remove the datafiles from the old location using OS commands...

Similar Messages

  • Datafile location migration

    Due to lack of space that may happen in next few months I have to move oradata(datafiles) to different disc subsystem(partition). Is there manual on how to do it properly?
    Thanks to all replies!!
    Edited by: gracic on Nov 10, 2008 3:30 PM

    For UNDO tablespace you can create a new undo tablespace with datafiles on new location and drop the old one but since you have to restart database to change system datafile location, you can do it with system tablespace,
    basic steps are:
    Connect as SYS DBA with CONNECT / AS SYSDBA.
    Shutdown the database instance SHUTDOWN immiediate.
    Rename or/and move the datafiles at OS level.
    Start Oracle database with STARTUP MOUNT.
    ALTER DATABASE RENAME FILE ‘<original datafile name>’ TO ‘<new datafile name>’;
    Open Oracle database instance ALTER DATABASE OPEN.

  • Changing the location of archive log from flash recovery area PLZ HELP!!!

    Hi All,
    My archive log is being stored in flash memory area which got full and the production server went down.
    alert log file details.....
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 43432960 bytes disk space from 2147483648 limit
    *** 2010-04-25 14:22:49.777 62692 kcrr.c
    ARCH: Error 19809 Creating archive log file to
    '/oracle/product/10.2.0/flash_rec
    overy_area/EDWREP/archivelog/2010_04_25/o1_mf_1_232_%u_.arc'
    *** 2010-04-25 14:22:49.777 60970 kcrr.c
    kcrrfail: dest:10 err:19809 force:0 blast:1I removed the files and started the database,
    Can someone kindly tell me as to how to avoid this problem in future by keeping archive log destination in flash recovery area.
    I want to change the location of archive log files, can someone please guide me as to hiow to do that
    I changed the size of flash recovery area for the time being, but i am afraid it will be full again!!
    SQL> select * from v$flash_recovery_area_usage;
    FILE_TYPE    PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
    CONTROLFILE                   0                         0               0
    ONLINELOG                     0                         0               0
    ARCHIVELOG                99.44                         0              57
    BACKUPPIECE                   0                         0               0
    IMAGECOPY                     0                         0               0
    FLASHBACKLOG                  0                         0               0
    6 rows selected.
    SQL> alter system set DB_RECOVERY_FILE_DEST_SIZE = 4G ;
    System altered.
    SQL> select * from v$flash_recovery_area_usage;
    FILE_TYPE    PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
    CONTROLFILE                   0                         0               0
    ONLINELOG                     0                         0               0
    ARCHIVELOG                49.72                         0              57
    BACKUPPIECE                   0                         0               0
    IMAGECOPY                     0                         0               0
    FLASHBACKLOG                  0                         0               0
    6 rows selected.regards,
    Edited by: user10243788 on Apr 25, 2010 6:12 AM

    user10243788 wrote:
    Hi All,
    My archive log is being stored in flash memory area which got full and the production server went down.
    alert log file details.....
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 43432960 bytes disk space from 2147483648 limit
    *** 2010-04-25 14:22:49.777 62692 kcrr.c
    ARCH: Error 19809 Creating archive log file to
    '/oracle/product/10.2.0/flash_rec
    overy_area/EDWREP/archivelog/2010_04_25/o1_mf_1_232_%u_.arc'
    *** 2010-04-25 14:22:49.777 60970 kcrr.c
    kcrrfail: dest:10 err:19809 force:0 blast:1I removed the files and started the database,
    Can someone kindly tell me as to how to avoid this problem in future by keeping archive log destination in flash recovery area.
    I want to change the location of archive log files, can someone please guide me as to hiow to do that
    I changed the size of flash recovery area for the time being, but i am afraid it will be full again!!
    SQL> select * from v$flash_recovery_area_usage;
    FILE_TYPE    PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
    CONTROLFILE                   0                         0               0
    ONLINELOG                     0                         0               0
    ARCHIVELOG                99.44                         0              57
    BACKUPPIECE                   0                         0               0
    IMAGECOPY                     0                         0               0
    FLASHBACKLOG                  0                         0               0
    6 rows selected.
    SQL> alter system set DB_RECOVERY_FILE_DEST_SIZE = 4G ;
    System altered.
    SQL> select * from v$flash_recovery_area_usage;
    FILE_TYPE    PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
    CONTROLFILE                   0                         0               0
    ONLINELOG                     0                         0               0
    ARCHIVELOG                49.72                         0              57
    BACKUPPIECE                   0                         0               0
    IMAGECOPY                     0                         0               0
    FLASHBACKLOG                  0                         0               0
    6 rows selected.regards,
    Edited by: user10243788 on Apr 25, 2010 6:12 AMPointing the archive log dest (and/or the FRA) to a new location, or enlarging them, will do no good if you are not performing regular housekeeping on the archivelogs. You will just keep knocking down the same problem over and over.
    If you simply delete the archivelogs at the OS level, the database will never know about it and it will continue to think the destination is full, based on records kept in the control file.
    For regular housekeeping, you need to be doing something similar to this in rman:
    run {
      backup archivelog all not backed up 1 times tag='bkup_vlnxora1_arch';
      delete noprompt archivelog all backed up 1 times to device type disk;
    run {
    delete noprompt obsolete;
    crosscheck archivelog all;
    delete noprompt expired archivelog all;

  • I was gifted a app store 50$ gift card but it wont let me use it because I'm in the UK store. I can't change my location because of the credit card associated with the account and my phone number please help

    I can't change my location because of the credit card associated with the account and my phone number please help

    Gift cards are country specific.
    They can only be used inside the borders of the country of issue.

  • How to change default location of password file ?

    Hi all,
    Can i change the location of my password file from default to any other user defined location ?
    If yes then how ?
    Thanx in advance.
    Deep

    Dad you moved here?
    Can i change the location of my password file ?

  • VL10B - change Storage location for delivery

    Hi all,
    I have a requirement wherin, for the deliveries created for purchase orders, the storage location needs to be defaulted from the production order. The configuration of picking has only one stloc for my plant, but we have the same amterial stored at 2 storage locations. In the config we cannot maintain both stlocs for 1 plant. So I need to see if I can do an exit wherin I can read my production order and pick the storage location from there and post it on the delivery. Cn anyone help?

    hi Roy,
    solved this by finding a BADI under Shipping of deliveries which has a SAVE_DOCU_PREPARE interface taht can be triggered toi change storage location/
    Thanks for ur help.
    Problem solved.

  • HT5467 How to change the location service set up when the icon is not inactive?

    I can not setting up the location services and change individual location service for each application since the icon are all in the dead icon and I cannot change anything. Is there anyway to make those icons in active?

    Here is what I was referring to - when in Control Center, I have the database locations. (sources, targets, OWF etc). Under a database location I selected the connector/location name under Connectors. When I select Deploy Action to Drop the connector/location name will remain. However, if you were to check in the database or the Repository Browser (Locations Report) you will see that the db link is gone. At this point you can safely modify the Locations info in the Connection Explorer (in Design Center). On the other hand, if you want the location to be deleted all together then now you can delete it in the Connection Explorer panel. If you did the prior drop step then at this point all db link info should be gone from the database.

  • HT1364 I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanen

    I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanent?  I have an older machine with Windows XP.

    I don't believe mounting the hard drive should be necessary, unless you have several external drives and want your computer to recognise them as folders, rather than drives. I've never had to mount a hard drive, ever. If you don't know how to do it, then it shouldn't be necessary now.
    Try this:
    Prepare iTunes so that it can see the external drive.
    Make a note of which drive-letter the external drive has been allocated. (Look in Windows Exploer)
    Look at the file location for a song. Make sure it plays (and therefore that iTunes has found it). Highlight it and select File/Get Info/Summary>Where: and make a note of the drive letter for that song.
    Close and shut down the computer.
    The next time you turn the computer on again, connect the external drive
    Before you start iTunes - check the external drive in Windows Explorer. Is it ready, does it have the same drive-letter that it had last time? Can you go into the drive and see the files on it?
    Once you can, start iTunes. (If the drive lettter has changed, you need to work out why before going any further.)
    If iTunes fails to find your external drive, you need to check where iTunes is looking for your Library.
    Select the same song you checked before (presumably iTunes can no longer find it). Follow the procedure for locating it. You should be able to see where iTunes thinks the file is. It's the drive that counts. Which drive letter is iTunes looking at? Is it the same one that it was previously (which should also be the same one that the drive has now).
    What happens, which step do you have problems with?
    Message was edited by: the fiend

  • How do I stop GoLive from changing the location of my CSScriptLib.js file?

    How do I stop GoLive from changing the location of my CSScriptLib.js file?
    I am making rollovers and want my CSScriptLib.js to be in the same folder as my HTML files.
    Every time I edit the rollovers GoLIve recreates the path of the CSScriptLib.js to file:///Users/xxx/Library/Preferences/Adobe/GoLive/Settings8/JScripts/GlobalScripts/CSScr iptLib.js so it won't work when uploaded. I always need to edit my HTML before uploading. All I want it to say is src="CSScriptLib.js" as the default.

    The site file is a database that keeps track of all your assets (and much more), including the scriptLib file. As soon as the page is saved (when you use the site file and it's open) the link will be change to the correct path that will work on the server.
    If you're not using the site file you might as well use a text editor, since most of GL functionality is gone.

  • How do I change the location of the coldfusion-out.log and coldfusion-error.log files in CF10

    When I change the log location in ColdFusion Administrator it changes the location of most but not all the log files.  I have a requirement from my customer to place all log files on a separate partition on the server.  For ColdFusion 9 I was able to modify the registry settings to change StandardOut and StandardErr for the ColdFusion Jrun service.  This does not appear to the case for ColdFusion 10 which now uses Tomcat 7.
    I tried modifying log4j.properties file and was able to relocate the hibernatesql.log, axis2.log, and esapiconfig.log but not the coldfusion-out.log.
    I am running ColdFusion 10 Enterprise Edition on a 64-bit Windows 2008 Server.

    The location of the rest of the ColdFusion logs can be changed in the ColdFusion Administrator.  Go to the Debugging and Logging section, Logging Settings.  There is a form at the top of the page where you can change the log storage location.
    -Carl V.

  • How do i stop my itunes from changing the location of my itunes media.  i have it saved on a external HD and it keeps changing back to my local drive with out being told

    how do i stop my itunes from changing the location of my itunes media.  i have it saved on a external HD and it keeps changing back to my local drive with out being told

    No, an external drive will not always be mounted. If the drive goes to sleep, it can unmount, or it may unmount for other reasons. As Chris said, confim that the drive is mounted and active before launching iTunes.
    Regards.

  • Changing the location to which iphoto & albums are stored/saved

    how do I change the location to which iphoto stores photos and albums including all events rather than my computers hard drive without loosing any information?
    thanks

    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • How to change file location path at run time in OWB 10g

    Hello all,
    We want to load several files with the same name but from different folders into a single table.
    The information about the paths is stored in an oracle table.
    Is there any best practice to achieve this?
    Our approach is to loop on the number of sources and execute the mapping after changing the location path. We found how to make the loop, and have the apropriate OMB command to update the location path, but we are still looking for a way to call this OMB plus command in a process flow or a mapping. Any idea?
    We also succeeded in loading the file from an unregistered location, which is necessary to be able to update the path, but I'm not sure this is really the best approach. Any advise?
    Thanks in advance for your help!
    best regards
    Cedric.

    Hi,
    I can provide you with an idea on this, dont know if it will work or not.
    Suppose, you need to load 5 files in different folder locations into a single table. Call the mapping 5 times in a process flow. If you log in to the database, and go the table all_directories in your target schema, you will find an entry for the actual path of the file you are trying to laod. I think if this path is updated before each run of the mapping, you can load all files into the target table. Only thing you have to do is call a procedure which will update this record in all_directories table with the different locations each time you want and then plug in this procedure before each call to the mapping in a process flow and see if it works or not?
    Regards
    -AP

  • Is it possible to change the location of the Oracle logo

    I need to change the location of the Oracle logo in home page from left to right side. We tried to edit in common .css and failed. Please help.

    The logo is in it's own table cell - so css will not work (can't change the order of table columns using css). You could possibly replace the logo image on the server with a single white pixel (create a custom skin if you want), then add a new background image to the table (class is HeaderTopBar) aligned right and no repeat using CSS. You would need to pad out that right side somehow to make it align (the last cell has class HeaderPageStatus and contains the status image).
    Regards,
    Robert

  • Hi, I have moved to India from france and I am trying to update my payment options to the Indian visa card but it seems that no matter what I do I cant do it. I dont want to create a new ID..Plz Help!!!Just want to change my location and my payment detail

    Hi, I have moved to India from france and I am trying to update my payment options to the Indian visa card but it seems that no matter what I do I cant do it. I dont want to create a new ID..Plz Help!!!Just want to change my location and my payment details!! thanks in advance!!

    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 iOS devices and haven't moved your contacts and calendar items across then 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 seeRecover 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

Maybe you are looking for

  • Ipod does not Sync anymore

    Hi, y ipod touch has stopped Syncing to my G5 tower. Further after I updgraded the iOS on the ipod, NOW it will not Sync on the G5 cuz it's i'm using 10.5.8 and itunes 10.5.2.  Since my last attempt to Sync to the G5, the iPod has erased al the apps,

  • Regarding abap reporting

    hi all i had written one code to display outstanding credit notes(payments) from our customers.when i chk display this proram in dev server it runs perfectly but on production it shows recieved payments a otstanding nd outstanding as recieved. why th

  • Calling selection screen from another selecton screen.

    Hi guys, I want to call default selection screen of one program from default selection screen of another program. Is that possible . would appreciate some helpful answers. Thanks, Venkat.

  • Week 34 MacBook Pro, whine still there?

    I just got my replacement Week 34 MacBook Pro (week 32 one was physically damaged on arrival). I've been noticing a slight buzzing noise when the AC adapter is plugged in and it goes away when I open Photo Booth. However it is nowhere as loud as I re

  • RD Gateway 2012 service hang

    Hello, I have some problems with a RD Gateway farm, the service become unresponsive with high cpu usage (>53%). And it stays like that, even if there are no users connected. If I kill the tsgateway (in fact svchost.exe), and re-start the service it u