??ORACLE?????????????
???????????? ???????[ 2013/7/30 10:29:52 ] ????????
??????ORACLE???????????????ORACLE?????????????
????--ORACLE????????????????????????????????????????????ɡ?
????--??????????仯?????????????????I/O???????????
????--???????????????????????
????--??????LUNIX?????????????????????????????????????
?????.????????????
????-- ??????ALTER DATABASE??ALTER TABLESPACE???????????????????
????1. ALTER DATABASE??????
????-- ????????????????κα?????????????
STEP 1. ???????
$ sqlplus /nolog
SQL> CONNECT INTERNAL;
SQL> SHUTDOWN;
SQL> EXIT;
STEP 2.?ò?????????????????????
-- ????????? 'test.ora' ??/ora/oracle/data1???????/ora/oracle/data2???£?
$ mv /ora/oracle/data1/test.ora /ora/oracle/data2
STEP 3. Mount???????ALTER DATABASE?????????????????
$ sqlplus /nolog
SQL> CONNECT INTERNAL;
SQL> STARTUP MOUNT;
SQL> ALTER DATABASE RENAME FILE '/ora/oracle/data1/test.ora' TO '/ora/oracle/data2/test.ora';
STEP 4. ???????.
SQL> ALTER DATABASE OPEN;
SQL>SELECT NAME??STATUS FROM V$DATAFILE??
????2. ALTER TABLESPACE??????
????-- ??????????????????????????SYSTEM??????????????ACTIVE????λ?????ε????
STEP1. ???????????????????OFFLINE??
$ sqlplus /nolog
SQL> CONNECT INTERNAL;
SQL> ALTER TABLESPACE test OFFLINE;
SQL> EXIT;
STEP2. ?ò?????????????????????
????????? 'test.ora' ??/ora/oracle/
data1???????/ora/oracle/data2???£?
$ mv /ora/oracle/data1/test.ora /ora/oracle/data2
STEP3. ??ALTER TABLESPACE????????????????
$ sqlplus /nolog
SQL> CONNECT INTERNAL;
SQL> ALTER TABLESPACE test RENAME DATAFILE '/ora/oracle/data1/test.ora' TO '/ora/oracle/data2/test.ora';
STEP4. ???????????????????ONLINE??
SQL> ALTER TABLESPACE test ONLINE;
SQL> SELECT NAME??STATUS FROM V$DATAFILE??
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11