|
实验4:
- ecovery Manager complete.
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.3.0 Production on Fri Nov 13 21:54:42 2015
- Copyright (c) 1982, 2011, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> create table ttestbotang_4 (a number) tablespace tbsocp05_test
- 2 ;
- create table ttestbotang_4 (a number) tablespace tbsocp05_test
- *
- ERROR at line 1:
- ORA-01542: tablespace 'TBSOCP05_TEST' is offline, cannot allocate space in it
- SQL> alter tablespace TBSOCP05_TEST online;
- alter tablespace TBSOCP05_TEST online
- *
- ERROR at line 1:
- ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
- ORA-01110: data file 6: '+DATA/orcl/datafile/tbsocp05_test.267.895701167'
- SQL> alter database create datafile '+DATA/orcl/datafile/tbsocp05_test.267.895701167';
- Database altered.
- SQL> recover datafile 6;
- ORA-00283: recovery session canceled due to errors
- ORA-01110: data file 6: '+DATA/orcl/datafile/tbsocp05_test.267.895701167'
- ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
- ORA-01110: data file 6: '+DATA/orcl/datafile/tbsocp05_test.267.895701167'
- SQL> alter database create datafile '+DATA/orcl/datafile/tbsocp05_test.267.895701167' as new;
- Database altered.
- SQL> recover datafile 6;
- ORA-00279: change 2091251 generated at 11/13/2015 21:52:47 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2015_11_13/thread_1_seq_135.295.895701171
- ORA-00280: change 2091251 for thread 1 is in sequence #135
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 2091530 generated at 11/13/2015 21:52:49 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2015_11_13/thread_1_seq_136.294.895701171
- ORA-00280: change 2091530 for thread 1 is in sequence #136
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- auto
- ORA-00279: change 2091547 generated at 11/13/2015 21:52:50 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2015_11_13/thread_1_seq_137.293.895701171
- ORA-00280: change 2091547 for thread 1 is in sequence #137
- ORA-00279: change 2091576 generated at 11/13/2015 21:52:51 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2015_11_13/thread_1_seq_138.292.895701171
- ORA-00280: change 2091576 for thread 1 is in sequence #138
- Log applied.
- Media recovery complete.
- SQL> select tablespace_name , status from dba_tablespaces;
- TABLESPACE_NAME STATUS
- ------------------------------ ---------
- SYSTEM ONLINE
- SYSAUX ONLINE
- UNDOTBS1 ONLINE
- TEMP ONLINE
- USERS ONLINE
- EXAMPLE ONLINE
- TBSOCP05_TEST OFFLINE
- 7 rows selected.
- SQL> alter tablespace TBSOCP05_TEST online;
- Tablespace altered.
- SQL>
复制代码
|
|