總結(jié):最初的db_name是orcl,重建控制文件,想把db_name修改為orclK,如果重建控制文件使用REUSE,會提示ORA-01503: CREATE CONTROLFILE failed ORA-01161: database name ORCL in file header does not match given name of ORCLK ORA-01110: data file 1: '/u01/app/oracle/oradata/orcl/system01.dbf'
最初數(shù)據(jù)庫的名字是orcl sqlplus / as sysdba SQL> show parameter db_name NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_name string orcl
SQL> alter database backup controlfile to trace as '/home/oracle/control';
.oraenv orclK sqlplus / as sysdba SQL> @/home/oracle/control ORACLE instance started. Total System Global Area 1272213504 bytes Fixed Size 1344680 bytes Variable Size 352324440 bytes Database Buffers 905969664 bytes Redo Buffers 12574720 bytes CREATE CONTROLFILE REUSE DATABASE "ORCLK" RESETLOGS NOARCHIVELOG * ERROR at line 1: ORA-01503: CREATE CONTROLFILE failed ORA-01161: database name ORCL in file header does not match given name of ORCLK ORA-01110: data file 1: '/u01/app/oracle/oradata/orcl/system01.dbf'