IT猫扑网:您身边最放心的安全下载站! 最新更新| 软件分类| 专题汇总| 手机版

您当前所在位置:IT猫扑网 > 数据库 > Oracle > oracle禁用操作系统认证方式登陆

oracle禁用操作系统认证方式登陆

时间:2015-06-28 00:00 来源:IT猫扑网|http://www.itmop.com/ 作者:网管联盟 我要评论(0)

  oracle禁用操作系统认证方式登陆:

  WINDWOS 平台:

  到oracle的安装目录下 cd %ORACLE_Home%/admin目录下,找到一个sqlnet.ora的文件(若没有,可以手工创建)

  编辑以下内容:

  # This file is actually generated by netca. But if customers choose to

  # install &Software Only&, this file wont exist and without the native

  # authentication, they will not be able to connect to the database on NT.

  #SQLNET.AUTHENTICATION_SERVICES = (NTS)

  ----

  注: 若有此文件,默认的是 SQLNET.AUTHENTICATION_SERVICES = (NTS), 此时,只要在其前面增加一个#,

  注释掉此行,就可以了

  范例:

  C:>sqlplus /nolog

  SQL*Plus: Release 10.2.0.3.0 - Production on 星期四 5月 6 10:30:43 2010

  Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.

  SQL> conn / as  sydsba

  SP2-0306: 选项无效。

  用法: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]

  其中 <logon>  ::= <username>[/<password>][@<connect_identifier>] | /

  SQL> conn sys/password as sysdba

  已连接。

  SQL>

  LINUX平台:

  到cd $ORACLE_HOME/admin目录下:

  查看是否有sqlnet.ora文件,若没有手工创建,

  [oracle@rh4-db2 admin]$ more sqlnet.ora

  # sqlnet.ora Network Configuration File: /ora10g/product/10.2.0/admin/sqlnet.ora

  # Generated by Oracle configuration tools.

  NAMES.DIRECTORY_PATH= (TNSNAMES)

  sqlnet.authentication_services=(none)

  以上黑体字部分为默认的sqlnet.ora内容,增加红色内容;

  增加好后,测试结果如下:

  [oracle@rh4-db2 admin]$ sqlplus /nolog

  SQL*Plus: Release 10.2.0.1.0 - Production on Wed May 5 10:17:51 2010

  Copyright (c) 1982, 2005, Oracle.  All rights reserved.

  SQL> conn / as sysdba

  ERROR:

  ORA-01031: insufficient privileges

  SQL> conn sys/password as sysdba

  Connected.

  SQL>

  -----------

  SQLNET.AUTHENTICATION_SERVICES

  SQLNET.AUTHENTICATION_SERVICES = (method [,method...])

  method := {NONE | ALL | BEQ | NDS | NTS | KERBEROS5 | SECURID | CYBERSAFE | IDENTIX | DCEGSSAPI | RADIUS}

  The SQLNET.AUTHENTICATION_SERVICES parameter enables Net8 support for various services used to authenticate users when they log in to a database. Note that this parameter just enables the various methods; it does not select the method to be used for a given connection. The default value for this parameter is NONE.

  Parameters

  NONE - No special authentication is performed. Users log in using their usernames and passwords.

  ALL - Enable all the authentication methods.

  BEQ - Enable the BEQ authentication method.

  CYBERSAFE - Allows users to be authenticated using CyberSafe.

  DCEGSSAPI - Allows users to be authenticated using DCE GSSAPI.

  IDENTIX - Allows users to be authenticated using Identix.

  KERBEROS5 - Allows users to be authenticated using Kerberos.

  NDS - Allows users to be authenticated using Netware Directory Services.

  NTS - Allows users to be authenticated using Windows Native security.

  RADIUS - Allows users to be authenticated using RADIUS.

  SECURID - Allows users to be authenticated using SecureID.

  TCPS - Allows users to be authenticated using SSL.

关键词标签:oracle,操作系统

相关阅读 误删Oracle数据库实例的控制文件 为UNIX服务器设置Oracle全文检索 Oracle数据库如何查找删除重复的SQL语句 Oracle导入导出数据库的语法 oracle数据库安装预环境一键处理脚本 oracle常用DBA命令

文章评论
发表评论

热门文章 误删Oracle数据库实例的控制文件 误删Oracle数据库实例的控制文件 利用Oracle分区表来减少磁盘I/O冲突 利用Oracle分区表来减少磁盘I/O冲突 Oracle数据库优化之数据库磁盘I/O Oracle数据库优化之数据库磁盘I/O 讲解Oracle复制技术的分布式系统同步应用 讲解Oracle复制技术的分布式系统同步应用 刷新Oracle缓存 刷新Oracle缓存 oracle 8080与TOMCAT默认端口冲突 oracle 8080与TOMCAT默认端口冲突

相关下载

人气排行 oracle中使用SQL语句修改字段类型-oracle修改SQL语句案例 Oracle中使用alter table来增加,删除,修改列的语法 ORACLE SQL 判断字符串是否为数字的语句 ORACLE和SQL语法区别归纳(1) oracle grant 授权语句 ORACLE修改IP地址后如何能够使用 如何加速Oracle大批量数据处理 Oracle删除表的几种方法 Oracle 10g创建表空间和用户并指定权限 Oracle连接数太多报错-ORA-12516错误 Oracle字符串截取 连接Oracle数据库的Hibernate配置文件