- 最后登录
- 2016-9-10
- 在线时间
- 6 小时
- 威望
- 0
- 金钱
- 171
- 注册时间
- 2013-5-25
- 阅读权限
- 10
- 帖子
- 7
- 精华
- 0
- 积分
- 0
- UID
- 1108
|
3#
发表于 2013-10-16 14:32:41
本帖最后由 xiangsir 于 2013-10-16 14:33 编辑
sqlplus sys/passwd@tns_db as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Wed Oct 16 06:25:38 2013
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, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
OLAP, Data Mining and Real Application Testing options
tnsping db_name
TNS Ping Utility for Linux: Version 11.2.0.3.0 - Production on 16-OCT-2013 06:26:05
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/db1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = db_name.hostname)))
OK (0 msec)
ps -ef | grep pmon
oracle 606 1 0 Jul31 ? 00:01:50 asm_pmon_+ASM1
oracle 17324 1 0 03:23 ? 00:00:00 ora_pmon_db_name1
cd /u01/app/oracle/product/11.2.0/db1/dbs
ls -lrt orapw*
-rw-r----- 1 oracle oinstall 2048 Oct 16 05:20 orapwdb_name1
lsnrctl status
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 16-OCT-2013 06:30:46
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 16-OCT-2013 04:00:20
Uptime 0 days 2 hr. 30 min. 26 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/grid/11.2.0.3/network/admin/listener.ora
Listener Log File /u01/app/grid/11.2.0.3/log/diag/tnslsnr/slcae039-p/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=x.x.x.x)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=x.x.x.x)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "db_name" has 1 instance(s).
Instance "db_name1", status READY, has 1 handler(s) for this service...
|
|