Common Methods for moving oracle files

Source: Internet
Author: User

Common Methods for moving oracle files-moving tablespace files 1. querying the table space file name SQL> select d. name from v $ datafile d join v $ tablespace t using (ts #) where name = 'xport'; 2. Disable Database SQL> shutdown immediate; 3. Transfer Data File SQL>! Mv/u04/oradata/xport. dbf/u06/oradata; 4. Start Database SQL> startup mount; 5. Change the path reference name in the control file, point to the new path SQL> alter database rename file '/u04/oradata/xport. dbf 'to'/u06/oradata/xport. dbf'; 6. open database SQL> alter database open; 7. Create an updated control file backup copy SQL> alter database backup controlfile to trace; -- Mobile Online log 1. query online log SQL> select group #, member from v $ logfile order by group #, member; 2. Disable Database SQL> shutdown immediate; 3. move text SQL>! Mv/u01/app/oracle/oradata/redo0 [1-3]. log/u04/data SQL> startup mount 4, rename SQL> alter database rename file '/u01/app/oracle/oradata/redo01.log' to '/u04/data/redo01.log '; SQL> alter database rename file '/u01/app/oracle/oradata/redo02.log' to '/u04/data/redo02.log '; SQL> alter database rename file '/u01/app/oracle/oradata/redo03.log' to '/u04/data/redo03.log'; 5. open database SQL> alter databse open; -- SQL> select name, value from v $ spparameter where name = 'control _ files '; SQL> show parameter control_files; SQL> alter system set control_files = '/u02/oradata/control01.ctl', '/u03/oradata/control02.ctl', '/u04/oradata/control03.ctl' scope = spfile; SQL> shutdown immediate; SQL>! Mv/u01/app/oracle/oradata/control01.ctl/u02/oradata; SQL>! Mv/u01/app/oracle/oradata/control02.ctl/u03/oradata; SQL>! Mv/u01/app/oracle/oradata/control03.ctl/u04/oradata; SQL> startup; SQL> select name, value from v $ spparameter where name = 'control _ files '; from the perspective of other books, it seems that currently the mobile dbf file has run without any problems, and others have not been tested.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.