Oracle 12c 제어 파일 및 ORA - 01078 처리 방향 추가

4083 단어 #고장 복구Oacle
01. 데이터베이스 시작
[BEGIN] 2020/6/4 13:43:31
[oracle@localhost ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 12.2.0.1.0 Production on Thu Jun 4 13:44:07 2020

Copyright (c) 1982, 2016, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup 
ORACLE instance started.

Total System Global Area 1660944384 bytes
Fixed Size                  8793448 bytes
Variable Size            1056965272 bytes
Database Buffers          587202560 bytes
Redo Buffers                7983104 bytes
Database mounted.
Database opened.

02. 데이터베이스 및 제어 파일 상태 보기
SQL> select name,cdb,open_mode from v$database;

NAME      CDB OPEN_MODE
--------- --- --------------------
orcl   YES READ WRITE

SQL> show parameter control

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
control_file_record_keep_time        integer     7
control_files                        string      /u01/app/oracle/oradata/itp
                                                 uxdb/control01.ctl, /oracle/ap
                                                 p/oracle/oradata/orcl/contr
                                                 ol02.ctl
control_management_pack_access       string      DIAGNOSTIC+TUNING

03. 제어 파일 추가
a.         ,         spfile   
alter system set control_files='/u01/app/oracle/oradata/itp','','' scope=spfile;

System altered.

b.        ,    
ERROR at line 1:
ORA-01078: failure in processing system parameters
LRM-00117: syntax error at ',' at the start of input

SQL> alter system set control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/oradata/orcl/control02.ctl' scope=spfile;
alter system set control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/oradata/orcl/control02.ctl' scope=spfile
*
ERROR at line 1:
ORA-01078: failure in processing system parameters
LRM-00117: syntax error at ',' at the start of input

c.    ,   1      
SQL> alter system set control_files='/u01/app/oracle/oradata/orcl/control01.ctl' scope=spfile;
alter system set control_files='/u01/app/oracle/oradata/orcl/control01.ctl' scope=spfile
*
ERROR at line 1:
ORA-01078: failure in processing system parameters
LRM-00117: syntax error at ',' at the start of input

d. spfile  pfile,  pfile,      
SQL> create pfile='/oracle/pfile.ora' from spfile;

File created.

SQL> shutdown abort
ORACLE instance shut down.

e.  pfile      
*.control_files='/u01/app/oracle/oradata/itpuxdb/control01.ctl', '/oracle/app/oracle/oradata/orcl/control02.ctl', '/u01/app/oracle/oradata/orcl/control03.ctl'

f. pfile  spfile    
SQL> create spfile from pfile='/oracle/pfile.ora';

File created.

g.        
SQL> host cp /u01/app/oracle/oradata/orcl/control01.ctl /u01/app/oracle/oradata/orcl/control03.ctl



04. open 데이터베이스, 제어 파일 상태 보기
SQL> startup 
ORACLE instance started.

Total System Global Area 1660944384 bytes
Fixed Size                  8793448 bytes
Variable Size            1056965272 bytes
Database Buffers          587202560 bytes
Redo Buffers                7983104 bytes
Database mounted.
Database opened.

SQL> show parameter control

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
control_file_record_keep_time        integer     7
control_files                        string      /u01/app/oracle/oradata/itp
                                                 uxdb/control01.ctl, /oracle/ap
                                                 p/oracle/oradata/orcl/contr
                                                 ol02.ctl, /u01/app/oracle/o
                                                 radata/orcl/control03.ctl
control_management_pack_access       string      DIAGNOSTIC+TUNING

[END] 2020/6/4 14:01:30

좋은 웹페이지 즐겨찾기