- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
19#
发表于 2013-4-28 14:12:21
SQL> select name from v$tempfile;
NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/C12B1/datafile/o1_mf_temp2_8qrzlh06_.tmp
SQL> alter database backup controlfile to trace;
Database altered.
SQL> oradebug setmypid
Statement processed.
SQL> oradebug tracefile_name;
/u01/app/oracle/diag/rdbms/c12b1/C12B1/trace/C12B1_ora_20229.trc
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "C12B1" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 (
'/u01/app/oracle/oradata/C12B1/onlinelog/o1_mf_1_8q5cr736_.log',
'/u01/app/oracle/fast_recovery_area/C12B1/onlinelog/o1_mf_1_8q5cr76t_.log'
) SIZE 50M BLOCKSIZE 512,
GROUP 2 (
'/u01/app/oracle/oradata/C12B1/onlinelog/o1_mf_2_8q5crbob_.log',
'/u01/app/oracle/fast_recovery_area/C12B1/onlinelog/o1_mf_2_8q5crbqo_.log'
) SIZE 50M BLOCKSIZE 512,
GROUP 3 (
'/u01/app/oracle/oradata/C12B1/onlinelog/o1_mf_3_8q5crdyh_.log',
'/u01/app/oracle/fast_recovery_area/C12B1/onlinelog/o1_mf_3_8q5crf1j_.log'
) SIZE 50M BLOCKSIZE 512
-- STANDBY LOGFILE
DATAFILE
'/u01/app/oracle/oradata/C12B1/datafile/o1_mf_system_8q5colft_.dbf',
'/u01/app/oracle/oradata/C12B1/datafile/o1_mf_sysaux_8q5cmv1r_.dbf',
'/u01/app/oracle/oradata/C12B1/datafile/o1_mf_undotbs1_8q5cqprk_.dbf',
'/u01/app/oracle/oradata/C12B1/datafile/o1_mf_users_8q5cqmoq_.dbf'
CHARACTER SET WE8MSWIN1252
;
ORACLE instance started.
Total System Global Area 626327552 bytes
Fixed Size 2263520 bytes
Variable Size 281019936 bytes
Database Buffers 339738624 bytes
Redo Buffers 3305472 bytes
SQL> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Control file created.
SQL> SQL>
SQL>
SQL> select * from v$tempfile;
no rows selected
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 626327552 bytes
Fixed Size 2263520 bytes
Variable Size 281019936 bytes
Database Buffers 339738624 bytes
Redo Buffers 3305472 bytes
Database mounted.
SQL> alter database open read only;
Database altered.
SQL> alter tablespace temp add tempfile size 10M;
Tablespace altered.
SQL> /
Tablespace altered.
SQL> select name from v$tempfile;
NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/C12B1/datafile/o1_mf_temp_8qshf3do_.tmp
/u01/app/oracle/oradata/C12B1/datafile/o1_mf_temp_8qshf5rd_.tmp
尝试follow 上面的过程 但注意 备份控制文件 |
|