Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7172077
  • 博文数量: 3857
  • 博客积分: 6409
  • 博客等级: 准将
  • 技术积分: 15948
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-02 16:48
个人简介

迷彩 潜伏 隐蔽 伪装

文章分类

全部博文(3857)

文章存档

2017年(5)

2016年(63)

2015年(927)

2014年(677)

2013年(807)

2012年(1241)

2011年(67)

2010年(7)

2009年(36)

2008年(28)

分类: LINUX

2014-02-03 22:52:54

原文地址:oracle客户端配置 作者:hbhe0316

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) |
给主人留下些什么吧!~~