C:\Users\Administrator>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Mon Oct 23 22:11:18 2017
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
SQL> create pfile from spfile; // pfile backup
File created.
SQL> shutdown immediate // DB shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
C:\Users\Administrator>lsnrctl stop
* DB 기동
C:\Users\Administrator>set oracle_sid=dwhr // oracle sid 환경변수 등록
C:\Users\Administrator>sqlplus / as sysdba // 접속
SQL*Plus: Release 11.2.0.4.0 Production on Mon Oct 23 23:00:05 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup nomount // pfile, controlfile, DB 구성파일의 정상확인 여부를 위해 한단계씩 올림
ORACLE instance started.
Total System Global Area 643026944 bytes
Fixed Size 2283984 bytes
Variable Size 188745264 bytes
Database Buffers 448790528 bytes
Redo Buffers 3207168 bytes
SQL> startup mount
Database altered.
SQL> alter database open;
Database altered.
SQL> select instance_name, status from v$instance;
INSTANCE_NAME STATUS
---------------- ------------
dwhr OPEN
SQL> show parameter audit // 변경된 엔진 경로로 adump가 생성됨을 확인
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
audit_file_dest string E:\ORACLE\ADMIN\DWHR\ADUMP
audit_sys_operations boolean FALSE
audit_trail string DB
SQL> select name from v$datafile; // 기존 DB 구성 파일들은 C:\있음을 확인
NAME
--------------------------------------------------------------------------------
C:\ORADATA\DWHR\SYSTEM01.DBF
C:\ORADATA\DWHR\SYSAUX01.DBF
C:\ORADATA\DWHR\UNDOTBS01.DBF
C:\ORADATA\DWHR\USERS01.DBF
* SPFILE 생성
C:\Users\Administrator>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Mon Oct 23 23:15:21 2017
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
SQL> create spfile from pfile;
File created.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 643026944 bytes
Fixed Size 2283984 bytes
Variable Size 188745264 bytes
Database Buffers 448790528 bytes
Redo Buffers 3207168 bytes
Database mounted.
Database opened.
* Listener 확인
C:\Users\Administrator>lsnrctl start
LSNRCTL for 64-bit Windows: Version 11.2.0.4.0 - Production on 23-OCT-2017 23:10:50
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 64-bit Windows: Version 11.2.0.4.0 - Production
System parameter file is E:\oracle\product\11g\network\admin\listener.ora
Log messages written to E:\oracle\product\11g\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-N8GGNMGHOH0)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=WIN-N8GGNMGHOH0)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.4.0 - Production
Start Date 23-OCT-2017 23:10:54
Uptime 0 days 0 hr. 0 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File E:\oracle\product\11g\network\admin\listener.ora
Listener Log File E:\oracle\product\11g\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-N8GGNMGHOH0)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\Users\Administrator>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Mon Oct 23 23:11:10 2017
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
SQL> alter system register;
System altered.
SQL> 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
C:\Users\Administrator>lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.4.0 - Production on 23-OCT-2017 23:11:18
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=WIN-N8GGNMGHOH0)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.4.0 - Production
Start Date 23-OCT-2017 23:10:54
Uptime 0 days 0 hr. 0 min. 26 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File E:\oracle\product\11g\network\admin\listener.ora
Listener Log File E:\oracle\product\11g\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-N8GGNMGHOH0)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "dwhr" has 1 instance(s).
Instance "dwhr", status READY, has 1 handler(s) for this service...
The command completed successfully
제 블로그의 내용이 도움이 되셨나요?
여러분의 공감과 댓글이 아잇티에게 큰 힘이됩니다 :)
▼▼▼▼▼▼▼▼▼▼▼