45IT.COM- 电脑学习从此开始!
DIY硬件教程攒机经验装机配置
设计Photoshop网页设计特效
系统注册表DOS系统命令其它
存储主板显卡外设键鼠内存
维修显卡CPU内存打印机
WinXPVistaWin7unix/linux
CPU光驱电源/散热显示器其它
修技主板硬盘键鼠显示器光驱
办公ExcelWordPowerPointWPS
编程数据库CSS脚本PHP
网络局域网QQ服务器
软件网络系统图像安全
页面导航: 首页 > 设计学院 > 网络编程 > 数据库 >

oracle中限制某个IP访问数据库(2)

电脑软硬件应用网 45IT.COM 时间:2012-06-08 10:46 作者:佚名

    LISTENER 的 STATUS
 
    ------------------------
 
    别名                      LISTENER
 
    版本                      TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
 
    ction
 
    启动日期                  11-1月 -2012 10:24:45
 
    正常运行时间              0 天 0 小时 0 分 5 秒
 
    跟踪级别                  off
 
    安全性                    ON: Local OS Authentication
 
    SNMP                      OFF
 
    监听程序参数文件          C:\u01\oracle\product\10.2.0\db_1\network\admin\listen
 
    er.ora
 
    监听程序日志文件          C:\u01\oracle\product\10.2.0\db_1\network\log\listener
 
    .log
 
    监听端点概要…
 
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.223.18.116)(PORT=1521)))
 
    服务摘要
 
    服务 "auxdb" 包含 1 个例程。
 
    例程 "auxdb", 状态 UNKNOWN, 包含此服务的 1 个处理程序…
 
    命令执行成功
 
    C:\u01\oracle\product\10.2.0\db_1\NETWORK\ADMIN>sqlplus / as sysdba
 
    SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 1月 11 10:24:49 2012
 
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
 
    连接到:
 
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
 
    With the Partitioning, OLAP and Data Mining options
 
    SQL> alter system register;

系统已更改。
 
    SQL> exit
 
    从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
 
    With the Partitioning, OLAP and Data Mining options 断开
 
    C:\u01\oracle\product\10.2.0\db_1\NETWORK\ADMIN>
 
    再次在10.192.39.72连接数据库就会报ORA-12537错误。
 
    10.192.39.72 > sqlplus yansp/yansp@10.223.18.116/yansp
 
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Jan 11 10:34:59 2012
 
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
 
    ERROR:
 
    ORA-12537: TNS:connection closed
 
    Enter user-name:
 
    ERROR:
 
    ORA-01017: invalid username/password; logon denied
 
    Enter user-name:
 
    ERROR:
 
    ORA-01017: invalid username/password; logon denied
 
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
 
    10.192.39.72 > oerr ora 12537
 
    12537, 00000, "TNS:connection closed"
 
    // *Cause: "End of file" condition has been reached; partner has disconnected.
 
    // *Action: None needed; this is an information message.
 
    10.192.39.72 >
 
    而此时10.192.39.76还是可以登录数据库的:
 
    [oracle@sxffdb2 ~]$ export PS1="10.192.39.76 > "
 
    10.192.39.76 > sqlplus yansp/yansp@10.223.18.116/yansp

顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
无法在这个位置找到: baidushare.htm
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码:点击我更换图片
推荐知识