Oracle 本地验证和密码文件
[oracle@localhost dbs]$ strings orapworcl ORACLE Remote Password file INTERNAL 6A75B1BBE50E66AB 4DE42795E66117AE
SYS@orcl 11-SEP-14>show parameter remote_login_passwordfileNAME TYPE VALUE ------------------------------------ ----------- ------------------------------ remote_login_passwordfile string EXCLUSIVE
找到$ORACLE_HOME/network/admin目录下的sqlnet.ora,在文件末尾加上:
SQLNET.AUTHENTICATION_SERVICES=NONE #Purpose: Use parameter SDP.PF_INET_SDP to specify the protocol family or # address family constant for the SDP protocol on your system. # #Supported since: 11.0 # SQLNET.AUTHENTICATION_SERVICES=none
[oracle@localhost ~]$ sqlplus "/as sysdba" SQL*Plus: Release 11.2.0.1.0 Production on Fri Sep 12 22:45:56 2014Copyright (c) 1982, 2009, Oracle. All rights reserved.ERROR: ORA-01031: insufficient privileges
[oracle@localhost ~]$ sqlplus "sys/sys as sysdba"SQL*Plus: Release 11.2.0.1.0 Production on Fri Sep 12 22:47:08 2014Copyright (c) 1982, 2009, Oracle. All rights reserved.Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
进入sqlnet.ora把SQLNET.AUTHENTICATION_SERVICES=none改成“=all”,存盘退出。
[oracle@localhost ~]$ sqlplus "/as sysdba"SQL*Plus: Release 11.2.0.1.0 Production on Fri Sep 12 22:49:51 2014Copyright (c) 1982, 2009, Oracle. All rights reserved.Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
另外,我们可以使用orapwd这个工具来生成密码文件。
[oracle@localhost ~]$ orapwd Usage: orapwd file= entries= force= ignorecase= nosysdba=wherefile - name of password file (required),password - password for SYS will be prompted if not specified at command line,entries - maximum number of distinct DBA (optional),force - whether to overwrite existing file (optional),ignorecase - passwords are case-insensitive (optional),nosysdba - whether to shut out the SYSDBA logon (optional Database Vault only).There must be no spaces around the equal-to (=) character.
SQL> conn sys/sys@win as sysdba ERROR: ORA-01031: insufficient privileges
[oracle@localhost dbs]$ orapwd file=$ORACLE_HOME/dbs/orapworcl password=sys entries=5 [oracle@localhost dbs]$ ls hc_DBUA0.dat initorcl lkORCL peshm_DUMMY_0 spfileorcl.ora hc_orcl.dat initorcl.ora orapworcl peshm_orcl_0 init.ora lkDUMMY peshm_DBUA0_0 snapcf_orcl.f
SQL> conn sys/sys@win as sysdba connected.
看看这个密码文件的内容:
[oracle@localhost dbs]$ strings orapworcl ORACLE Remote Password file INTERNAL 6A75B1BBE50E66AB 4DE42795E66117AE
SYS@orcl 11-SEP-14>create user sunny identified by sunny;User created. SYS@orcl 11-SEP-14>grant sysdba to sunny;Grant succeeded.
再去看看orapworcl的内容,发现多了sunny这个用户的信息:
[oracle@localhost dbs]$ strings orapworclORACLE Remote Password file INTERNAL 6A75B1BBE50E66AB 4DE42795E66117AE SUNNY 53801465943A91BE
SYS@orcl 11-SEP-14>select * from v$pwfile_users;USERNAME SYSDB SYSOP SYSAS ------------------------------ ----- ----- ----- SYS TRUE TRUE FALSE SUNNY TRUE FALSE FALSE
转载于:https://www.cnblogs.com/priestess-zhao/p/8183447.html
Oracle 本地验证和密码文件相关推荐
- 查看本地oracle密码是多少钱,Oracle 本地验证和密码文件
fileINTERNAL 6A75B1BBE50E66AB 4DE42795E66117AE 在数据库没有启动之前,数据库的内建用户是无法通过数据库本身来验证身份的,通过密码文件, oracle就可以 ...
- oracle本地验证,Oracle 本地验证和密码文件
实验: oracle服务器位于Linux操作系统,客户端位于windows操作系统. 首先,查看remote_login_passwordfile参数值: SYS@orcl 11-SEP-14> ...
- 查看本地oracle密码,Oracle 本地验证和密码文件
实验: oracle服务器位于Linux操作系统,客户端位于windows操作系统. 首先,查看remote_login_passwordfile参数值: SYS@orcl 11-SEP-14> ...
- Oracle中的两种验证方式:操作系统验证和密码文件验证,通过操作系统验证的方式解决客户端登录不了数据的问题
Oracle验证两种方式,操作系统验证,密码文件验证 启动密码文件验证 如果数据库登录方式是操作系统验证sys登录不需要用户名和密码就可以登录 C:\Documents and Settings\ww ...
- linux mysql 密码文件怎么打开文件,Oracle数据库密码文件创建与使用
Oracle关系数据库系统以其卓越的性能获得了广泛的应用,而保证数据库安全性是数据库管理工作的重要内容.本文在总结Oracle数据库安全管理工作的基础上,对Oracle数据库系统密码文件的创建.使用和 ...
- Oracle 20c 新特性:强制大小写敏感密码文件 Force Password File Case Sensitive
墨墨导读:从Oracle Database 20c开始,数据库强制实施大小写敏感的口令文件,以实现更高的安全性.区分大小写的密码文件提供更高的安全性.Oracle建议使用区分大小写的密码文件. 从Or ...
- oracle 密码文件在哪里看,Oracle数据库密码文件的使用
Oracle数据库密码文件的使用 日期:2010年5月21日 作者: 在Oracle数据库系统中,用户假设要以特权用户身份(INTERNAL/SYSDBA/SYSOPER)登录Oracle 数据库能够 ...
- oracle10g密码不对,谈谈Oracle 10g 密码文件
谈谈Oracle 10g 密码文件 Oracle 10g实例搜索密码文件时默认是搜索$ORACLE_HOME/dbs目录下面的orapw$ORACLE_SID文件,当orapw$ORACLE_SID文 ...
- linux系统报错01031,从ORA-01031报错看密码文件故障
3.问题分析二 从思路上,应该是没有问题.而且在无故障环境下,我们通过实验是可以验证结论的.首先一种思路是判断是不是密码文件被正确的使用. SQL> conn / as sysdba Conne ...
最新文章
- 想去苹果做AI?看看你够不够格
- python基础学习[python编程从入门到实践读书笔记(连载五)]:数据可视化项目第16章
- an tu tu html5 test,Design an Accuracy Test System for Resolver-To-Digital Converter Based on PXI
- 教你win10怎么设置环境变量
- Windows应急响应操作手册
- 弹出新窗体 winform 1615018696
- png 微软ppt 透明度_花了8+小时,做了4页禅宗PPT定制!
- Hadoop Hive概念学习系列之hive里的扩展接口(CLI、Beeline、JDBC)(十六)
- Android架构纵横谈之——软件自愈能力(转载)
- Python一行流:列举所有k-mer组合(最简单写法)
- Telemetry 技术概述
- 2,理论_滑杆_棘轮_间歇运行机构
- 数据分析案例1.0——药品销售分析
- 关于 SAP ABAP 报表的多语言显示问题试读版
- python 脚本分析dns日志计算前几位的请求数域名
- .NET 对象序列化学习笔记(—)
- 戴森向小狗下刀,吸尘器市场中外乱战开启?
- Web前端,CSS中的浮动、清除浮动
- Axure 7.0 正式版 + 汉化包 安装
- 原生JS 面试题 (基础)(概率大)