레드햇 엔터프라이즈 리눅스 5로 시작
[oracle@localhost ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 07-JUN-2018 17:11:29
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 07-JUN-2018 17:11:30
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@localhost ~]$ sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jun 7 17:12:14 2018
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter user-name: hr
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
Enter user-name:
[oracle@localhost ~]$
[oracle@localhost ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jun 7 17:14:09 2018
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 623546368 bytes
Fixed Size 1338308 bytes
Variable Size 390071356 bytes
Database Buffers 226492416 bytes
Redo Buffers 5644288 bytes
Database mounted.
Database opened.
SQL> conn hr/hr
Connected.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost ~]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://localhost.localdomain:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control .......... started.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_orcl/sysman/log
[oracle@localhost ~]$
※ 앞으로 수업 들어가기 전에 할 일.
- 리눅스 서버 부팅
- oracle/oracle 로그인
- 새 터미널 실행
- $ lsnrctl start → 리스너 프로세스 시작
- $ sqlplus / as sysdba
SQL> startup → DB 시작
SQL> exit - $ emctl start dbconsole → EM DB 홈페이지 시작
'스마트웹&콘텐츠 개발자 과정 > Oracle' 카테고리의 다른 글
Admin 수업 (0) | 2018.06.12 |
---|---|
Admin 수업 (0) | 2018.06.08 |
6/5 오후 (0) | 2018.06.05 |
SQL (6/4 오후) (0) | 2018.06.04 |
5/31 오후 (0) | 2018.05.31 |