move the primary database files to another location

Hi all

I move the files of my primary database to another location on the same server, but on a different drive (from f: to G :) with rename comand but file name will be the same, after you have moved the files what step I need to perfom on standby DB will have on my database pending?)

This doc is everything after you rename the primary file, I'm not rename all the files I need to just move file from one place to another without changing the file name.

I hope you know how to move files from one place to the other on the primary database. It's not just copying the files from one disk to another and then to go to the top of your database.

You rename your data files or copy it to another location, how the controlfile to know you have copied/renamed to a different location?

I guess you 1 to ask the question of how to move files to a different location in primary education and then move on standby.

Steps to follow:
1 Hope you brought your primary database.
2 copy the datafiels to one disk to another.
3. attach the primary database.
4 rename all data files that you moved to this control file would know the changes.
SQL > alter rename file 'G:\oracle\user01.dbf' to 'F:\oracle\user01.dbf ';
5. subsequently open the database.
Refer this to move data files from one place to another http://www.orafaq.com/wiki/Move_datafile_to_different_location, http://www.adp-gmbh.ch/ora/admin/move_datafiles.html

on autonomy in standby:
1 cancel the MRP
2. change the db_file_name_convert to point to «F:\»... »
3. Mount the backup database
4. start the MRP

Hope that these steps are clear.

Tags: Database

Similar Questions

  • Error after you move the temporary data file to another location

    Hello

    I do a few large trials and for this I created the tablespaces on my external hard drive. I moved the file from temporary data to my location on the hard disk by following the procedure below.
    SQL> startup mount
    ORACLE instance started.
    
    Total System Global Area  313860096 bytes
    Fixed Size                  1332892 bytes
    Variable Size             218106212 bytes
    Database Buffers           88080384 bytes
    Redo Buffers                6340608 bytes
    Database mounted.
    SQL> ALTER DATABASE RENAME FILE 'D:\app\Administrator\oradata\orcl\TEMP01.DBF' TO 'G:\KAM\TEMP01.DBF';
    
    Database altered.
    
    SQL> ALTER DATABASE OPEN;
    
    Database altered.
    2.3 times that I closed the db, even restarted the computer, but when I ask

    SQL > select * from dba_data_files;

    It does not show the file to its new location and temporary data.

    In any case, I ran my request but got the following error.

    ERROR at line 13:
    ORA-01115: IO error reading block from file 15 (block # 2507160)
    ORA-27070: async read/write failed
    OSD-04016: Error queuing an asynchronous I/O request.
    O/S-Error: (OS 23) Data error (cyclic redundancy check).
    ORA-01115: IO error reading block from file 15 (block # 2507160)
    ORA-27070: async read/write failed
    OSD-04016: Error queuing an asynchronous I/O request.
    O/S-Error: (OS 23) Data error (cyclic redundancy check).
    I'll appreciate any suggestions.

    Thanks and greetings

    Oracle 11g (11.1.0.6.0), winxp. No archive Log mode

    Shutdwon unnecessary your database. The operation could be built with an open instance.

    Gievn the steps below;

    CREATE a TEMPORARY TABLESPACE temp2 TEMPFILE ' / u01/oraindx/temp01.dbf' SIZE 5 M;

    ALTER DATABASE by DEFAULT TABLESPACE TEMPORARY temp2;

    DROP TABLESPACE temp including CONTENTS AND DATA files;

    Temp to CREATE a TABLESPACE TEMPORARY TEMPFILE ' / u01/oradata/DB01/temp01.dbf' SIZE 1024 M;

    ALTER DATABASE default TEMPORARY TABLESPACE temp;

    DROP TABLESPACE temp2 including CONTENT AND DATA files;

    Orawiss

  • I want to move the folder Program Files to another hard drive.

    I have Windows 7 installed on a small primary partition on one of the two hard drives, double boot with Windows XP.  My installation of Windows XP is on a smaller primary partition (like Windows 7) and Program Files folder on a separate drive logic in an extended partition, not on the system drive.  I want to make a folder Program Files of Windows 7 on the same logical drive, Program Files and move the Program Files from Windows 7 folder to that partition on the second hard drive.

    Just an update.  I finally managed to move 'Users' on a separate partition, so my installation of Windows 7 now has Windows on a partition, the files program on a logical drive in an extended partition, and users on a separate logic in this extended partition.

    On the Windows partition, there are junctions that point to the logical drive Program Files and the logical drive of users and editing the registry to set these default locations.  Windows updates proceed normally and successfully.  Program facilities smoothly and work as expected.  I'll post my procedures on my site, I hope that in the near future, after that I tested and confirmed their on my other Windows 7 machines.

    Be forewarned, however, that this separation will break the ability to repair/reinstall (upgrade on-site) Windows 7.  It will stop when he sees that Program Files not are not on the system partition.  However, in my particular case, I depend on third-party software disk for backup, Imaging for the loss of this functionality (repair/reinstall) has no real interest for me.  Restore a disk image is much faster.

    There are other methods posted on the net to separate these main divisions of Windows during the installation. My methods are intended to guide differently to an existing facility while retaining all the features.  And once again, as shown in this thread, Microsoft Support seems to discourage that kind of thing.

  • find the location of the program database file

    I'm having the same problem. I tried the approach of a file 'save data' and appearing in the file of users/app data.

    There are 2 problems with this: 1) application data file does not appear in the Explorer for me to access, even if I know it is exisits and 2) I'm trying to transfer a backup file, and the program is very specifically looking for a c:\programdata\... etc.

    Where can I find the program data file?

    Thank you

    Joan

    Hi Joan,

    Application data are not a real record, it is a crossroads which is only there for backward compatibility. A crossroads is a shortcut that redirects the programs and files to another location, and for the most part hidden.

    This particular junction points to the C:Users\username\AppData\Roaming folder.

    Also the steps suggested by Dave 9 from this link.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/how-do-i-find-the-AppData-file-location/bf8c7d84-55ba-45B0-A378-0ca1d4acb34f

  • How to copy the database using rman file from another location.

    You can clone data base using the files of rman backup from somewhere else (on the server to clone).

    I have two server db source and clone db server.
    I normally copy the files of RMAN backup to clone server (under the same folder structure, as it was on the source server).

    The purpose of the test, IE I don't have same partition and free space on the source server and the clone.

    I usually use under notes to the clone.
    http://trysellit.com/hosting/Ttrail/Fajr.php?doc=wtrail & ND = 0556200

    I would try to explain for example again.
    In source server, my rman backup are stored in / U01 and clone server, I copied the files of rman /u04. What step I should take to clone to work anywhere else?

    Using Oracle 10 g on Linux RedHat.

    sape007 wrote:
    Thanks Ken & PrafullaNath.

    BUT my question is: how to transport .dbf files in another place on the clone (I already do).

    Rather:
    The clone is on another server. How to restore by copying the RMAN files from another location on the clone. Please read description above in its entirety.

    Sorry for not being clear.

    Please see my video tutorial. In this tutorial that I take backup of the database, copy the backup to the different server and perform a recovery disaster

  • Data file not shipped from the primary database to the standby database

    Hello

    (1) create a new user
    (2) created a new table space and add datafile on the primary database
    (3) the value tablespace default user

    But so far, this new data file is not delivered on the standby database.

    Version of database - 10.2.0.3
    OS - Windows

    Setting of primary and Standby: -.

    SQL > show parameter standby_file_management;

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    standby_file_management string AUTO

    Both have the same file system, but the difference is case sensitive.

    Primary data file location - D:\testdata

    Location of file data at rest - D:\TESTDATA

    Help, please.

    MRP process is running on the standby database?

    If it is then try to pass, log on the primary database and share your result.

  • How to store the ASO dat file in different location

    Hi all

    I have a requirement where I need to store the .dat (ASO) file in one location other than the folder where are stored the artifcats of enforcement. In OSB, we can right-click the database properties, edit, and in the storage tab, we can choose where the data files and indexes must be stored. We have a similar option of ASO too? because the space we have for the application files are limited and we have a separate drive of SAN for the storage of the data and index files, and this is where the BSO .pag files are stored. Since our ASO cube is more I want to move the data to a location where the data of the BSO, I mean for the player designated for data. Any suggestion will be highly appreciated.

    Thank you.

    Yes, ASO has the notion of 'spaces '. There are four (by default, temp, log and metadata), but you probably just want to pass the tablespaces 'default' and 'temp' in your location of SAN. Temp will look really small (i.e. empty) until you run a restructuring or consolidation, then it will explode to the size of the default storage space so it is important not to miss.

    See the section "Managing storage for ASO bases" here http://docs.oracle.com/cd/E17236_01/epm.1112/esb_dbag/asysadmn.html, or the MaxL "alter tablespace" command http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/maxl_alttabl.html here.

    EDIT: Actually, looking at the documentation, I see that you can't move the metadata or journal storage. But you're probably only going to worry about 'default' and 'temp' anyway.

  • LOG_ARCHIVE_DEST_2 parameter error and cannot start the primary database

    Hello
    I was getting errors in my RMAN backup script. I took a glance on the database settings. Looks like I made a mistake when I was in the LOG_ARCHIVE_DEST_2 setting in the standby database. Instead of putting on the eve I put it in the name of the primary instance. I also noticed that the LOG_ARCHIVE_DEST_2 setting has been changed in the primary database where I put it first. I guess he's changed when I changed the sleep setting. I have two questions:

    (1) can the parameter LOG_ARCHIVE_DEST_2 be changes for the correct setting now that I set it wrong. The reason why I ask is because when I tried to change by using the following ALTER SYSTEM command I got an error saying something about conflicting attributes. I guess it's because the name of the primary instance has been upgraded with the DB_UNIQUE_NAME instead of the name of the standby instance. If I could change the LOG_ARCHIVE_DEST_2 setting to sleep first then maybe I can change the primary to the correct setting? Please provide markets.

    ALTER SYSTEM SET LOG_ARCHIVE_DEST_2 ='SERVICE = < DB PRIMARY > ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = < PRIMARY_INSTANCE > '

    (2) the second question is you can start a database using a spfile? (I use ASM and Data Guard) I ask because while I was connected to the primary database I executed the following command:

    ALTER SYSTEM SET LOG_ARCHIVE_DEST_2 = 'SERVICE = < PRIMARY_INSTANCE > ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = < PRIMARY_INSTANCE >' scope = spfile;

    I then stop the database and try to start but it won't start because it says to conflicting attributes. I don't create a pfile from spfile file before you shut down the database. (I'm bad). How can I change the setting for the primary database to start over. (The PFILE file is different in ASM. There are sub + DATA but has only a single line indicating where is the location of the SPFILE) I need to run the following RMAN RESTORE CONTROLFILE FROM backup AUTOMATIC;

    Please help as it is a production environment that was supposed to be delivered only yesterday.

    Any help will be greatly appreciated!

    Thanks in advance.

    J

    I always use it. So my answer is Yes.

    Please consider several of the responses of CKPT marking "useful".

    He works very hard in the forum and didn't work great!

    I call it "SuperStar."

    Best regards

    mseberg

  • Pending passage of the primary database to database

    Hi Experts,

    There is a database of oracle 10 g on a windows server and the database pending 1 * 0 g on another windows server *. The archivelogs in the primary database are generated on a network drive and they are applied on a regular basis of the primary database to the standby database, but now the primary database server broke down. If someone can tell me how to failover the database ensures the primary. I followed these steps but still Iam unable to move forward

    on the standby server:

    1 rman target sys/oracle@standby catalog rman/rman@catalog
    2 recover database;
    3 output
    4 sqlplus sys/oracle@standby as sysdba
    5 change the recovery of database managed standby database disconnect from the session;
    6 alter database recover managed standby database finish;
    7 change the database for validation at the grade crossing;

    All records of the primary database in the backup catalog are applied with success, until no 6 but not 7 would give me an error indicating that the required media recovery. Can someone help me?

    Thanks in advance...

    HI srp.

    As u mentioned above you are primary database server crashed.

    Now, you want to switch to mode ensures primary school.

    Use the following commands to go to primary school

    1 startup nomount
    2. change the mounting base pending;
    3. recover standby database managed disconnect from the session.
    4 recover managed standby database finish skip standby logfile;
    5 change the database for validation at the grade crossing;
    6. immediate cessation
    7. starting

    Otherwise, you need to activate the standby database using the command sequence

    SQL > recover managed database finish pending;
    SQL > alter database activate standby database;
    SQL > stop & start.

    Kind regards
    Praful K

  • Can we create database of watch on the same server as the primary database

    I have Oracle 10 g Rel2, Windows server 2003 operating system. Can I create backup of database on the same server on which we have our primary database?

    Yes, you can
    You must configure the settings DB_FILE_NAME_CONVERT file
    If the standby database is on the same system as the primary database or if the structure of the directory where data files are located on the standby site is different from the primary site, this parameter is required.
    Please refer to the documentation:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14237/initparams048.htm#REFRN10038

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com

  • MyFileName.mdf is not a primary database file.

    When accessing an .mdf file, I get this: MyFileName.mdf is not a primary database file. This means that the file is corrupted?

    Please help fix this file. I learned a few manual things to fix the SQL database, but I'm not aware of it.

    Please share it.
    Thank you.

    Philippe

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • logfile missing watch on the primary database

    In a 11.2.0.4 database, we have configured Data Guard, so they created pending log files, but it has been deleted in ASM + accidentally.

    Thus, research in the database primary, the newspaper observed log pending files, but is not in ASM +.

    In the alert log has not been recorded event.

    I can do the recreation of the eve logfiles?

    What role can have on the primary database?

    Our configuration:

    BECAUSE with 4 cases

    --

    logonline 5 groups for example

    each group of logonline with 2 members

    --

    6 standby of the group e.g.

    each group watches with 2 members

    Total 48 asm file missing

    Select *-Group #, Member

    v $ logfile where type = "STANDBY".

    order by group #.

    GROUP # STATUS TYPE MEMBER IS_RECOVERY_DEST_FILE

    No. 51 +DATA_EXA/prep/onlinelog/group_51.1613.804140169 EVE

    No. 51 +RECO_EXA/prep/onlinelog/group_51.2918.804140175 EVE

    No. 52 +DATA_EXA/prep/onlinelog/group_52.1614.804140479 EVE

    No. 52 +RECO_EXA/prep/onlinelog/group_52.4182.804140485 EVE

    ....

    .....

    74No. +DATA_EXA/prep/onlinelog/group_74.972.875418965 day BEFORE
    74No. +RECO_EXA/prep/onlinelog/group_74.14330.875418971 day BEFORE

    ASMCMD >

    ASMCMD > ls-l +DATA_EXA/prep/onlinelog/group_74.972.875418965

    ASMCMD-8002: entry 'group_74.972.875418965' does not exist in the directory ' + prep/DATA_EXA/onlinelog /'

    ASMCMD >

    ASMCMD >

    Redologs Eve will be active when the database is in the role of Eve, so you can drop the watch group redologfile missing for the thread and add it again.

    You have lost all the groups newspaper waiting for redo for all threads?

    On primary, you can drop all odds redolog groups because they will be unassigned State on the standby database make sure the group is unassigned status before falling

    Select Group #, THREAD #, STATUS from v$ standby_log;

  • RMAN-06820: WARNING: unable to archive the current log on the primary database

    I got the following exception when I try to backup the data files and the archivelogs on the physical by uisng RMAN standby database.

    RMAN-06820: WARNING: unable to archive the current log on the primary database

    Target ORACLE database error:

    ORA-17629: unable to connect to the remote database server

    ORA-17627: ORA-00942: table or view does not exist

    It's the backup script

    "

    connection target sys/oracle

    Configure controlfile autobackup on;

    Run {}

    nocfau together;

    allocate channel ch01 device type disc format ' / test/%U';

    allocate channel ch02 device type disc format ' / test/%U';

    backup database copy archivelog;

    backup copy current controlfile;

    }

    "

    And there is no error ora in the primary alert log.

    I was able to tnsping two server (primary/secondary) properly and could also primary of the remote login on standby db server and switch logfile. I read there is a very similar thread, but it has failed so I post again and hope I could get a few clues. Thank you.

    Hello again;

    Try to change this:

    connection target sys/oracle

    to something like this:

    RMAN target sys/password@PRIMARY auxiliary.

    Complete example:

    http://www.Visi.com/~mseberg/data_guard/duprman2.html

    Best regards

    mseberg

  • No index on the primary database. Need help with "COUNT OFF"; option

    11 GR 2 11.2.0.3 under linux

    Hi everyone,.

    It's an honor to be with you guys.

    I have a big question here and I am unable to decide on a permanent solution.

    We have a primary database that is configured to have a logical expectation.

    The logic of the day before was not built by me. But I'm now support...

    So as the title suggests, there is NO primary index / unique + not null on a large number of tables in the database of emergency primary/logic. But the application logic guarantees uniqueness values rather than null.

    Here is where the problem starts.

    Guys request DO NOT want us to create an index on the primary database.

    According to my understanding, because the database lack of clues, the apply SQL must do a full table scan whenever it changes / remove data. It is a very expensive process and consumes a lot of time. This takes hours together to apply a minute with a value of newspapers on the logic of the eve... A huge lag is created during the hours and is not acceptable.

    So as I told you earlier, the guys request do not want an index on the tables not supported.

    They use the database pending logic exclusively for information purposes and it's like production for them...


    Let me give an overview...

    According to the document on the creation of the logic of the day before for 11.2 as below

    http://docs.Oracle.com/CD/E11882_01/server.112/e41134/create_ls.htm#SBYDB4730

    Step 1 to find tables without identifying unique logic in the primary database.

    Query the DBA_LOGSTDBY_NOT_UNIQUE view to display a list of tables SQL may not apply be able to uniquely identify. For example:

    SQL> SELECT OWNER, TABLE_NAME FROM DBA_LOGSTDBY_NOT_UNIQUE
     2> WHERE (OWNER, TABLE_NAME) NOT IN 
    3> (SELECT DISTINCT OWNER, TABLE_NAME FROM DBA_LOGSTDBY_UNSUPPORTED) 
    4> AND BAD_COLUMN = 'Y'; 

    The above query has 1040 tables in a particular schema. All the these have no index is not null primary / unique.


    Now according to the step 2 as below, we have an option to add a disabled RELY primary key constraint.

    Step 2 Add a disabled RELY primary key constraint.

    If your application provides the rows in a table are unique, you can create a primary key disabled RELY constraint on the table. This avoids the overhead of maintaining a primary key on the primary database.

    Can someone explain what this RELY constraint is disabled and how to function and help please?


    I have a few questions about the constraint to RELY.

    (1) change current plans of optimizer on primary for the execution price?

    (2) can help to boost the performance of SQL apply without creating index on the logical standby database?

    (3) it will change current plans of optimizer logical pending for the SQLs running?

    What are the options that I need to increase the performance and table scan complete engine AVOID SQL apply on the logic of the day before?

    Thanks a ton for reading my post.


    Kind regards

    Abhishek

    In fact, I've implemented a key primary rely disabled on primary and unique index on the logic of the previous day.

    The logic of Eve runs lightning fast now

  • You can move the inserted text to a different location on the picture, if yes how?  How can I put the character and the Panel clause up in the photo shop when you type test?

    You can move the inserted text to a different location on the picture, if yes how?  How can I put the character and the Panel clause up in the photo shop when you type test?

    Yes.  I find it easier to type text, and then use the move tool (shortcut V) (looks like an arrow) to place it where you want.

    To bring up the character and paragraph panels go to WINDOW > CHARACTER or WINDOW > PARAGRAPH.

    I hope this helps.

Maybe you are looking for

  • Apple will suspend printing opening books?

    Hello I printed a book of opening a few days ago and found out that today ' today (March 31) is the last day to print the document to open. Is this right? If Yes, can anyone suggest me some walk to handle this situation? I love this program and I wou

  • Modem does not not after installing XP Pro

    I just installed XP PRO, including service pack 2, from scratch, on a Satellite Pro A10. I downloaded the latest drivers for modem from this site and install them. (several times). All anything will do, when querying the modem diagnostics tab all tha

  • I have a HP F 4280 printer who suddenly started to shake when you first put it later it begins to print what is causing that.

    I have a HP - F 4280 (copy 1) who started doing a click when turned on and just before starting to print, what causes it and what is the solution to fix it? copy printer 1) who all of a sudden started making a snap, it does when it is turned on and b

  • Stabilizing warp not translated into XML - is there a solution?

    Dear people,I want to export XML so that my color Checker can work on my project in DaVinci Resolve. When I export, although deformation of first stabilizing effect is not translated. Is there a solution to this problem? I tried to make stabilized to

  • Importing Presets into Lightroom CC

    I downloaded presets of Photoserge.com and need to import them into Lightroom CC. The presets are in files with extensions .lrtemplate. How can I import into Lightroom so that they appear in the options of presets in the develop Module?