Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1065943
  • 博文数量: 239
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 3618
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-12 13:17
文章分类

全部博文(239)

文章存档

2021年(1)

2016年(1)

2015年(30)

2014年(91)

2013年(116)

分类: LINUX

2014-01-31 13:35:57

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> 


阅读(2496) | 评论(0) | 转发(1) |
0

上一篇:oracle闪回学习六

下一篇:portal密码策略

给主人留下些什么吧!~~