欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

Oracle修改數(shù)據(jù)文件名/移動(dòng)數(shù)據(jù)文件

生產(chǎn)上有時(shí)會(huì)用到數(shù)據(jù)文件的遷移,下邊示例幾種數(shù)據(jù)文件的遷移方法。

陽(yáng)泉網(wǎng)站制作公司哪家好,找創(chuàng)新互聯(lián)建站!從網(wǎng)頁(yè)設(shè)計(jì)、網(wǎng)站建設(shè)、微信開(kāi)發(fā)、APP開(kāi)發(fā)、響應(yīng)式網(wǎng)站等網(wǎng)站項(xiàng)目制作,到程序開(kāi)發(fā),運(yùn)營(yíng)維護(hù)。創(chuàng)新互聯(lián)建站于2013年創(chuàng)立到現(xiàn)在10年的時(shí)間,我們擁有了豐富的建站經(jīng)驗(yàn)和運(yùn)維經(jīng)驗(yàn),來(lái)保證我們的工作的順利進(jìn)行。專注于網(wǎng)站建設(shè)就選創(chuàng)新互聯(lián)建站

數(shù)據(jù)庫(kù)版本

sys@ORCL>select * from v$version;
select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE11.2.0.4.0Production
TNS for Linux: Version 11.2.0.4.0 - Production
NLSRTL Version 11.2.0.4.0 - Production
sys@ORCL>select name from v$datafile;
select name from v$datafile;
NAME
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/u02/app/oracle/oradata/orcl/system01.dbf
/u02/app/oracle/oradata/orcl/sysaux01.dbf
/u02/app/oracle/oradata/orcl/undotbs01.dbf
/u02/app/oracle/oradata/orcl/users01.dbf
/u02/app/oracle/oradata/orcl/DEV_svctbl.dbf
/u02/app/oracle/oradata/orcl/DEV_ias_opss.dbf
/u02/app/oracle/oradata/orcl/DEV_iau.dbf
/u02/app/oracle/oradata/orcl/DEV_veridata_user.dbf
/u02/app/oracle/oradata/orcl/DEV3_mds.dbf
/u02/app/oracle/oradata/orcl/DEV3_wlsservices.dbf
/u02/app/oracle/oradata/orcl/DEV3_iau.dbf
/u02/app/oracle/oradata/orcl/DEV3_ias_opss.dbf
/u02/app/oracle/oradata/orcl/DEV3_oggmon.dbf
/u02/app/oracle/oradata/orcl/DEV2_ias_opss.dbf
/u02/app/oracle/oradata/orcl/DEV3_UMS.dbf
/u02/app/oracle/oradata/orcl/DEV3_svctbl.dbf
/u02/app/oracle/oradata/orcl/DEV2_oggmon.dbf
/home/oracle/tt.bdf
/home/oracle/undo02.dbf
19 rows selected.

一、關(guān)閉數(shù)據(jù)庫(kù)修改

   1、使用mv方式(適用于文件系統(tǒng))

sys@ORCL>shutdown immediate;
shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
sys@ORCL>! mv /home/oracle/tt.bdf /home/oracle/tt_mv.dbf
! mv /home/oracle/tt.bdf /home/oracle/tt_mv.dbf
l /home/oracle/tt_! ls -l /home/oracle/tt_mv.dbf
-rw-r----- 1 oracle oinstall 1073750016 Oct 29 08:31 /home/oracle/tt_mv.dbf
sys@ORCL>startup mount;
startup mount;
ORACLE instance started.
Total System Global Area  784998400 bytes
Fixed Size    2257352 bytes
Variable Size  478154296 bytes
Database Buffers  297795584 bytes
Redo Buffers    6791168 bytes
Database mounted.
sys@ORCL>alter database rename file '/home/oracle/tt.bdf' to '/home/oracle/tt_mv.dbf';
alter database rename file '/home/oracle/tt.bdf' to '/home/oracle/tt_mv.dbf';
Database altered.
sys@ORCL>select name from v$datafile;
select name from v$datafile;
NAME
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/u02/app/oracle/oradata/orcl/system01.dbf
/u02/app/oracle/oradata/orcl/sysaux01.dbf
/u02/app/oracle/oradata/orcl/undotbs01.dbf
/u02/app/oracle/oradata/orcl/users01.dbf
/u02/app/oracle/oradata/orcl/DEV_svctbl.dbf
/u02/app/oracle/oradata/orcl/DEV_ias_opss.dbf
/u02/app/oracle/oradata/orcl/DEV_iau.dbf
/u02/app/oracle/oradata/orcl/DEV_veridata_user.dbf
/u02/app/oracle/oradata/orcl/DEV3_mds.dbf
/u02/app/oracle/oradata/orcl/DEV3_wlsservices.dbf
/u02/app/oracle/oradata/orcl/DEV3_iau.dbf
/u02/app/oracle/oradata/orcl/DEV3_ias_opss.dbf
/u02/app/oracle/oradata/orcl/DEV3_oggmon.dbf
/u02/app/oracle/oradata/orcl/DEV2_ias_opss.dbf
/u02/app/oracle/oradata/orcl/DEV3_UMS.dbf
/u02/app/oracle/oradata/orcl/DEV3_svctbl.dbf
/u02/app/oracle/oradata/orcl/DEV2_oggmon.dbf
/home/oracle/tt_mv.dbf
/home/oracle/undo02.dbf
19 rows selected.
sys@ORCL>alter database open;
alter database open;
Database altered.

    2、RMAN備份方式(適用于文件系統(tǒng)、祼設(shè)備、ASM)

     

sys@ORCL>shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
sys@ORCL>exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@rhel6 ~]$ rman target /
Recovery Manager: Release 11.2.0.4.0 - Production on Sat Oct 29 21:13:36 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
connected to target database (not started)
RMAN> startup mount;
Oracle instance started
database mounted
Total System Global Area     784998400 bytes
Fixed Size                     2257352 bytes
Variable Size                478154296 bytes
Database Buffers             297795584 bytes
Redo Buffers                   6791168 bytes
RMAN> backup as copy datafile '/u02/app/oracle/oradata/orcl/users01.dbf' format '/dev/raw/raw1';
Starting backup at 29-OCT-16
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=133 device type=DISK
channel ORA_DISK_1: starting datafile copy
input datafile file number=00004 name=/u02/app/oracle/oradata/orcl/users01.dbf
output file name=/dev/raw/raw1 tag=TAG20161029T211402 RECID=2 STAMP=926543658
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
Finished backup at 29-OCT-16
RMAN> switch datafile '/u02/app/oracle/oradata/orcl/users01.dbf' to copy;
datafile 4 switched to datafile copy "/dev/raw/raw1"
RMAN> alter database open;
database opened
RMAN> exit
Recovery Manager complete.
[oracle@rhel6 ~]$ ss
SQL*Plus: Release 11.2.0.4.0 Production on Sat Oct 29 21:15:03 2016
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
sys@ORCL>select name from v$datafile;
NAME
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/u02/app/oracle/oradata/orcl/system01.dbf
/u02/app/oracle/oradata/orcl/sysaux01.dbf
/u02/app/oracle/oradata/orcl/undotbs01.dbf
/dev/raw/raw1
/u02/app/oracle/oradata/orcl/DEV_svctbl.dbf
/u02/app/oracle/oradata/orcl/DEV_ias_opss.dbf
/u02/app/oracle/oradata/orcl/DEV_iau.dbf
/u02/app/oracle/oradata/orcl/DEV_veridata_user.dbf
/u02/app/oracle/oradata/orcl/DEV3_mds.dbf
/u02/app/oracle/oradata/orcl/DEV3_wlsservices.dbf
/u02/app/oracle/oradata/orcl/DEV3_iau.dbf
/u02/app/oracle/oradata/orcl/DEV3_ias_opss.dbf
/u02/app/oracle/oradata/orcl/DEV3_oggmon.dbf
/u02/app/oracle/oradata/orcl/DEV2_ias_opss.dbf
/u02/app/oracle/oradata/orcl/DEV3_UMS.dbf
/u02/app/oracle/oradata/orcl/DEV3_svctbl.dbf
/u02/app/oracle/oradata/orcl/DEV2_oggmon.dbf
/home/oracle/tt_mv3.dbf
/home/oracle/undo02.dbf
19 rows selected.

二、在線修改

1、表空間OFFLINE方式

sys@ORCL>col file_name for a70
sys@ORCL>select file_name,tablespace_name,status,online_status from dba_data_files;
select file_name,tablespace_name,status,online_status from dba_data_files;
FILE_NAME       TABLESPACE_NAME      STATUSONLINE_
---------------------------------------------------------------------- ------------------------------ --------- -------
/u02/app/oracle/oradata/orcl/users01.dbf       USERS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/undotbs01.dbf       UNDOTBS1       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/sysaux01.dbf       SYSAUX      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/system01.dbf       SYSTEM      AVAILABLE SYSTEM
/u02/app/oracle/oradata/orcl/DEV_svctbl.dbf       DEV_STB      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_ias_opss.dbf       DEV_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_iau.dbf       DEV_IAU      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_veridata_user.dbf       DEV_VERIDATA_USER      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_mds.dbf       DEV3_MDS       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_wlsservices.dbf       DEV3_WLS       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_iau.dbf       DEV3_IAU       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_ias_opss.dbf       DEV3_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_oggmon.dbf       DEV3_OGGMON      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV2_ias_opss.dbf       DEV2_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_UMS.dbf       DEV3_IAS_UMS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_svctbl.dbf       DEV3_STB       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV2_oggmon.dbf       DEV2_OGGMON      AVAILABLE ONLINE
/home/oracle/tt_mv.dbf       TT      AVAILABLE ONLINE
/home/oracle/undo02.dbf        UNDOTBS1       AVAILABLE ONLINE
19 rows selected.
sys@ORCL>alter tablespace tt offline;
alter tablespace tt offline;
Tablespace altered.
sys@ORCL>select file_name,tablespace_name,status,online_status from dba_data_files;
select file_name,tablespace_name,status,online_status from dba_data_files;
FILE_NAME       TABLESPACE_NAME      STATUSONLINE_
---------------------------------------------------------------------- ------------------------------ --------- -------
/u02/app/oracle/oradata/orcl/users01.dbf       USERS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/undotbs01.dbf       UNDOTBS1       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/sysaux01.dbf       SYSAUX      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/system01.dbf       SYSTEM      AVAILABLE SYSTEM
/u02/app/oracle/oradata/orcl/DEV_svctbl.dbf       DEV_STB      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_ias_opss.dbf       DEV_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_iau.dbf       DEV_IAU      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_veridata_user.dbf       DEV_VERIDATA_USER      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_mds.dbf       DEV3_MDS       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_wlsservices.dbf       DEV3_WLS       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_iau.dbf       DEV3_IAU       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_ias_opss.dbf       DEV3_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_oggmon.dbf       DEV3_OGGMON      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV2_ias_opss.dbf       DEV2_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_UMS.dbf       DEV3_IAS_UMS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_svctbl.dbf       DEV3_STB       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV2_oggmon.dbf       DEV2_OGGMON      AVAILABLE ONLINE
/home/oracle/tt_mv.dbf       TT      AVAILABLE OFFLINE
/home/oracle/undo02.dbf        UNDOTBS1       AVAILABLE ONLINE
19 rows selected.
sys@ORCL>! mv /home/oracle/tt_mv.dbf /home/oracle/tt_mv2.dbf
! mv /home/oracle/tt_mv.dbf /home/oracle/tt_mv2.dbf
sys@ORCL>! ls -l /home/oracle/tt_mv2.dbf
! ls -l /home/oracle/tt_mv2.dbf
-rw-r----- 1 oracle oinstall 1073750016 Oct 29 08:39 /home/oracle/tt_mv2.dbf
sys@ORCL>alter database rename file '/home/oracle/tt_mv.db';
alter database rename file '/home/oracle/tt_mv.dbf' to '/home/oracle/tt_mv2.dbf';
Database altered.
sys@ORCL>select file_name,tablespace_name,status,online_status from dba_data_files;
select file_name,tablespace_name,status,online_status from dba_data_files;
FILE_NAME       TABLESPACE_NAME      STATUSONLINE_
---------------------------------------------------------------------- ------------------------------ --------- -------
/u02/app/oracle/oradata/orcl/users01.dbf       USERS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/undotbs01.dbf       UNDOTBS1       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/sysaux01.dbf       SYSAUX      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/system01.dbf       SYSTEM      AVAILABLE SYSTEM
/u02/app/oracle/oradata/orcl/DEV_svctbl.dbf       DEV_STB      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_ias_opss.dbf       DEV_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_iau.dbf       DEV_IAU      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_veridata_user.dbf       DEV_VERIDATA_USER      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_mds.dbf       DEV3_MDS       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_wlsservices.dbf       DEV3_WLS       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_iau.dbf       DEV3_IAU       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_ias_opss.dbf       DEV3_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_oggmon.dbf       DEV3_OGGMON      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV2_ias_opss.dbf       DEV2_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_UMS.dbf       DEV3_IAS_UMS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_svctbl.dbf       DEV3_STB       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV2_oggmon.dbf       DEV2_OGGMON      AVAILABLE ONLINE
/home/oracle/tt_mv2.dbf        TT      AVAILABLE OFFLINE
/home/oracle/undo02.dbf        UNDOTBS1       AVAILABLE ONLINE
19 rows selected.
sys@ORCL>alter tablespace tt online;
alter tablespace tt online;
Tablespace altered.
sys@ORCL>select file_name,tablespace_name,status,online_status from dba_data_files;
select file_name,tablespace_name,status,online_status from dba_data_files;
FILE_NAME       TABLESPACE_NAME      STATUSONLINE_
---------------------------------------------------------------------- ------------------------------ --------- -------
/u02/app/oracle/oradata/orcl/users01.dbf       USERS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/undotbs01.dbf       UNDOTBS1       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/sysaux01.dbf       SYSAUX      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/system01.dbf       SYSTEM      AVAILABLE SYSTEM
/u02/app/oracle/oradata/orcl/DEV_svctbl.dbf       DEV_STB      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_ias_opss.dbf       DEV_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_iau.dbf       DEV_IAU      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_veridata_user.dbf       DEV_VERIDATA_USER      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_mds.dbf       DEV3_MDS       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_wlsservices.dbf       DEV3_WLS       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_iau.dbf       DEV3_IAU       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_ias_opss.dbf       DEV3_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_oggmon.dbf       DEV3_OGGMON      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV2_ias_opss.dbf       DEV2_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_UMS.dbf       DEV3_IAS_UMS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_svctbl.dbf       DEV3_STB       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV2_oggmon.dbf       DEV2_OGGMON      AVAILABLE ONLINE
/home/oracle/tt_mv2.dbf        TT      AVAILABLE ONLINE
/home/oracle/undo02.dbf        UNDOTBS1       AVAILABLE ONLINE
19 rows selected.

2、數(shù)據(jù)文件OFFLINE方式(需要開(kāi)戶歸檔模式)

sys@ORCL>archive log list
archive log list
Database log mode       Archive Mode
Automatic archival       Enabled
Archive destination       /u02/app/oracle/product/11.2.4/db1/dbs/arch
Oldest online log sequence     3
Next log sequence to archive   5
Current log sequence       5
sys@ORCL>alter database datafile '/home/oracle/tt_mv2.dbf' offline;
alter database datafile '/home/oracle/tt_mv2.dbf' offline;
Database altered.
sys@ORCL>! mv /home/oracle/tt_mv2
! mv /home/oracle/tt_mv2.dbf /home/oracle/tt_mv3.dbf
sys@ORCL>! ls -l /home/oracle/tt_mv3.dbf
! ls -l /home/oracle/tt_mv3.dbf
-rw-r----- 1 oracle oinstall 1073750016 Oct 29 08:41 /home/oracle/tt_mv3.dbf
sys@ORCL>alter database rename file '/home/oracle/tt_mv2.dbf'to';
alter database rename file '/home/oracle/tt_mv2.dbf' to '/home/oracle/tt_mv3.dbf';
Database altered.
sys@ORCL>select file_name,tablespace_name,status,online_status from dba_data_files;
select file_name,tablespace_name,status,online_status from dba_data_files;
FILE_NAME       TABLESPACE_NAME      STATUSONLINE_
---------------------------------------------------------------------- ------------------------------ --------- -------
/u02/app/oracle/oradata/orcl/users01.dbf       USERS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/undotbs01.dbf       UNDOTBS1       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/sysaux01.dbf       SYSAUX      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/system01.dbf       SYSTEM      AVAILABLE SYSTEM
/u02/app/oracle/oradata/orcl/DEV_svctbl.dbf       DEV_STB      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_ias_opss.dbf       DEV_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_iau.dbf       DEV_IAU      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_veridata_user.dbf       DEV_VERIDATA_USER      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_mds.dbf       DEV3_MDS       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_wlsservices.dbf       DEV3_WLS       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_iau.dbf       DEV3_IAU       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_ias_opss.dbf       DEV3_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_oggmon.dbf       DEV3_OGGMON      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV2_ias_opss.dbf       DEV2_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_UMS.dbf       DEV3_IAS_UMS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_svctbl.dbf       DEV3_STB       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV2_oggmon.dbf       DEV2_OGGMON      AVAILABLE ONLINE
/home/oracle/tt_mv3.dbf        TT      AVAILABLE RECOVER
/home/oracle/undo02.dbf        UNDOTBS1       AVAILABLE ONLINE
19 rows selected.
sys@ORCL>alter database datafile '/home/oracle/tt_mv3.dbf' online;
alter database datafile '/home/oracle/tt_mv3.dbf' online;
alter database datafile '/home/oracle/tt_mv3.dbf' online
*
ERROR at line 1:
ORA-01113: file 18 needs media recovery
ORA-01110: data file 18: '/home/oracle/tt_mv3.dbf'
sys@ORCL>recover datafile '/home/oracle/tt_mv3.dbf';
recover datafile '/home/oracle/tt_mv3.dbf';
Media recovery complete.
sys@ORCL>alter database datafile '/home/oracle/tt_mv3.dbf' online;
alter database datafile '/home/oracle/tt_mv3.dbf' online;
Database altered.
sys@ORCL>select file_name,tablespace_name,status,online_status from dba_data_files;
select file_name,tablespace_name,status,online_status from dba_data_files;
FILE_NAME       TABLESPACE_NAME      STATUSONLINE_
---------------------------------------------------------------------- ------------------------------ --------- -------
/u02/app/oracle/oradata/orcl/users01.dbf       USERS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/undotbs01.dbf       UNDOTBS1       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/sysaux01.dbf       SYSAUX      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/system01.dbf       SYSTEM      AVAILABLE SYSTEM
/u02/app/oracle/oradata/orcl/DEV_svctbl.dbf       DEV_STB      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_ias_opss.dbf       DEV_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_iau.dbf       DEV_IAU      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV_veridata_user.dbf       DEV_VERIDATA_USER      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_mds.dbf       DEV3_MDS       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_wlsservices.dbf       DEV3_WLS       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_iau.dbf       DEV3_IAU       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_ias_opss.dbf       DEV3_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_oggmon.dbf       DEV3_OGGMON      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV2_ias_opss.dbf       DEV2_IAS_OPSS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_UMS.dbf       DEV3_IAS_UMS      AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV3_svctbl.dbf       DEV3_STB       AVAILABLE ONLINE
/u02/app/oracle/oradata/orcl/DEV2_oggmon.dbf       DEV2_OGGMON      AVAILABLE ONLINE
/home/oracle/tt_mv3.dbf        TT      AVAILABLE ONLINE
/home/oracle/undo02.dbf        UNDOTBS1       AVAILABLE ONLINE
19 rows selected.

標(biāo)題名稱:Oracle修改數(shù)據(jù)文件名/移動(dòng)數(shù)據(jù)文件
文章URL:http://aaarwkj.com/article2/pdigoc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供標(biāo)簽優(yōu)化、做網(wǎng)站、網(wǎng)站制作、小程序開(kāi)發(fā)商城網(wǎng)站、App設(shè)計(jì)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

小程序開(kāi)發(fā)
欧美日韩精品免费在线观看| 精品午夜免费福利视频| 国产精品传媒免费在线观看| 日韩高清在线亚洲专区不卡| 美女床上激情啪啪网页| 国产黄色自拍av网站| 亚洲s码在线一区二区| 欧美性大片一区二区三区| 日本丰满熟女毛茸茸的黑逼| 欧美日韩综合人妻丝袜偷拍| 亚洲女人天堂av在线| 日韩一区二区免费看视频| 色婷婷亚洲婷婷亚洲最大| 精品亚洲一区二区三区四区| av高清不卡一区二区免费在线| 国产精品三级一区二区三区| av毛片在线观看地址| 日本加勒比不卡在线视频| 亚洲国产区男人的天堂| 国内不卡一区二区三区| 99热免费精品在线观看| 日本不卡在线观看欧美精品| 国产老熟女不带套91| 日日添夜夜躁欧美一区二区| 福利午夜福利在线观看| 丰满少妇一级淫片在线播放| 黄色亚洲大片免费在线观看| 91九色午夜在线观看| 亚洲ve中文字幕久久一区二区 | 国产麻豆剧传媒国产av| 亚洲国产精品一区一区| 国产91日韩欧美在线观看 | 熟女亚洲一区精品久久| 亚洲av色男人天堂网| 亚洲欧美一区二区三区三| 日本少妇人妻一区二区| av一区二区日韩电影| 91精品在线观看第一页| 日本一区二区三区播放| 全黄性性激高免费放视频| 色哟哟在线观看精品一区|