1.在服务器端执行命令开启监听
[oracle@oracle11g ~]$
lsnrctl start
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 31-JAN-2014 13:24:51
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/oracle/product/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /u01/oracle/product/network/admin/listener.ora
Log messages written to /u01/oracle/diag/tnslsnr/oracle11g/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle11g)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle11g)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 31-JAN-2014 13:24:53
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/oracle/product/network/admin/listener.ora
Listener Log File /u01/oracle/diag/tnslsnr/oracle11g/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle11g)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
2.修改监听文件
D:\app\Administrator\product\11.2.0\client_1\network\admin\tnsnames.ora文件加入
orcl =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.48.139)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
|
3.客户端测试:
C:\Users\Administrator>
sqlplus sys/wwwwww@orcl as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on 星期五 1月 31 13:25:59 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
连接到:
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> quit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断
开
连接rman:
C:\Users\Administrator>
rman target sys/wwwwww@orcl
恢复管理器: Release 11.2.0.1.0 - Production on 星期五 1月 31 13:26:24 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到目标数据库: ORCL (DBID=1365931874)
RMAN>
阅读(690) | 评论(0) | 转发(0) |