Oracle table Spatial Data File transfer method ____oracle

Source: Internet
Author: User


Bywhhuang question:

Oracle installed to the root directory, the root directory is not enough space, add a hard drive mount to the home, the table space to transfer data files to the home directory.

Hard disk Format

The newly added hard drive needs to be formatted. The method is as follows:

To view the partition format:

[Root@centos iavp]# df-th

FileSystem Type Size Used avail use% mounted on

/dev/vda2 ext4 53G 33G 18G 65%/

Tmpfs tmpfs 4.2G 0 4.2G 0%/dev/shm

/DEV/VDA1 ext4 204M 27M 167M 14%/boot

/dev/vdd ext4 53G 33G 18G 65%/

/dev/vdd ext4 212G 16G 185G 8%/home

format:

#mfks-T EXT4/DEV/VDD

Mount:

# Mount/dev/vdd/home

Note: If a busy error is raised, execute the following command:

#fuser-km/home Transfer Method

Log on to the server using the root account

1, the new mount of the home directory to assign permissions

#chmod-R 777/home

Use the Oracle account to log on to the server below

2, the table space offline processing

Alter tablespace ms50testlogs offline;

3. Transfer table space file

CP/OPT/ORACLE/ORADATA/IAVP/MS50TESTLOGS_DATA.DBF ms50testlogs_data.dbf

3, use the Oracle account login server, use command sqlplus/as SYSDBA login Oracle database, execute transfer SQL

Altertablespace Ms50testlogs

Renamedatafile

'/OPT/ORACLE/ORADATA/IAVP/MS50TESTLOGS_DATA.DBF '

To

'/HOME/ORACLE/MS50TESTLOGS_DATA.DBF ';

4. Execute Recover command

Alterdatabaserecoverdatafile '/home/oracle/ms50testlogs_data.dbf ';

5, the table space online processing

Alter tablespace Ms50testlogs Online;

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.