$ ps -aef | grep oracle$ORACLE_SID
oracle 19601 19331 0 11:13 pts/1 00:00:00 grep oracleora11g
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Thu Sep 25 11:13:32 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> !ps -aef | grep oracle$ORACLE_SID
oracle 19603 19602 0 11:13 ? 00:00:00 oracleora11g (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle 19606 19604 0 11:13 pts/1 00:00:00 grep oracleora11g
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$ ps -aef | grep oracle$ORACLE_SID
oracle 19614 19331 0 11:17 pts/1 00:00:00 grep oracleora11g
-- earth : TNS(Transparent Network Substrate) 서비스 이름 / tnsnames.ora
$ sqlplus scott/tiger@earth
SQL*Plus: Release 11.2.0.3.0 Production on Thu Sep 25 11:58:16 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
-- TNS 접속 문자열, 호스트 이름, 포트, 서비스 이름등 정의
$ cat $ORACLE_HOME/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File: /sw/oracle/app/oracle/product/11.2.0/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
EARTH =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = pdbmon1x)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = EARTH)
)
)
- 강좌 URL : http://www.gurubee.net/lecture/3994
- 구루비 강좌는 개인의 학습용으로만 사용 할 수 있으며, 다른 웹 페이지에 게재할 경우에는 출처를 꼭 밝혀 주시면 고맙겠습니다.~^^
- 구루비 강좌는 서비스 제공을 위한 목적이나, 학원 홍보, 수익을 얻기 위한 용도로 사용 할 수 없습니다.