码迷,mamicode.com
首页 > 其他好文 > 详细

有一些关于,orapwd命令entries参数的探究

时间:2015-04-15 16:15:50      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:

早上看Oracle官方文档《Administrator‘s Guide》时,在密码文件章节,关于orapwd命令entries参数的说明如下:

This argument specifies the number of entries that you require the password file to accept. This number corresponds to the number of distinct users allowed to connect to the database as SYSDBA or SYSOPER. The actual number of allowable entries can be higher than the number of users, because theORAPWD utility continues to assign password entries until an operating system block is filled. For example, if your operating system block size is 512 bytes, it holds four password entries. The number of password entries allocated is always a multiple of four.

大意是,entries参数并不是指多少个用户可被赋予sysdba或sysoper权限。实际数量可能高于entries参数指定的值,这与操作系统的block size有关。

按它的说法,操作系统的block size为512字节,entries指定为1的话,我可以给4个用户赋予sysdba或sysoper权限。

好奇,忍不住研究了一下。

一、查看操作系统的block size,本机为RHEL 6.3

[root@node2 ~]# tune2fs -l /dev/sdb |grep ‘Block size‘
Block size: 4096
block size为4096字节,为512的8倍,按照上面的逻辑,可以给最多32个用户赋予sysdba或sysoper权限。

二、创建密码文件

[oracle@node2 dbs]$ orapwd file=orapworcl password=oracle entries=1 force=y
三、构造用户进行测试

如果能给最多32个用户赋予sysdba或sysoper权限的话,那么创建32个用户并赋予sysdba权限不会有问题,赋予第33个用户sysdba权限的时候会报错,实验一下。

首先创建32个用户并赋予sysdba权限,脚本如下:


http://www.lwinfo.com/uzt/list1/205906.html
http://www.lwinfo.com/uzt/list1/205885.html
http://www.lwinfo.com/uzt/list1/205884.html
http://www.lwinfo.com/uzt/list1/205883.html
http://www.lwinfo.com/uzt/list1/205882.html
http://www.lwinfo.com/uzt/list1/205881.html
http://www.lwinfo.com/uzt/list1/205866.html
http://www.lwinfo.com/uzt/list1/205865.html
http://www.lwinfo.com/uzt/list1/205864.html
http://www.lwinfo.com/uzt/list1/205863.html
http://www.lwinfo.com/uzt/list1/205862.html
http://www.lwinfo.com/uzt/list1/205861.html
http://www.lwinfo.com/uzt/list1/205860.html
http://www.lwinfo.com/uzt/list1/205859.html
http://www.lwinfo.com/uzt/list1/205858.html
http://www.lwinfo.com/uzt/list1/205857.html
http://www.lwinfo.com/uzt/list1/205856.html
http://www.lwinfo.com/uzt/list1/205855.html
http://www.lwinfo.com/uzt/list1/205854.html
http://www.lwinfo.com/uzt/list1/205853.html
http://health.people.com.cn/xywy/wfyxb/yyxw/8562006547.html
http://health.people.com.cn/xywy/wfyxb/yyxw/8561967042.html
http://health.people.com.cn/xywy/wfyxb/yyxw/8561930710.html
http://health.people.com.cn/xywy/wfyxb/yyxw/8561914263.html
http://health.people.com.cn/xywy/wfyxb/kfal/8561898042.html
http://health.people.com.cn/xywy/wfyxb/kfal/8561869417.html
http://health.people.com.cn/xywy/wfyxb/kfal/8561841403.html
http://health.people.com.cn/xywy/wfyxb/kfal/8561817352.html
http://health.people.com.cn/xywy/wfyxb/kfal/8561794377.html
http://health.people.com.cn/xywy/wfyxb/kfal/8561779891.html
http://health.people.com.cn/xywy/wfyxb/zl/8561757517.html
http://health.people.com.cn/xywy/wfyxb/zl/8561740914.html
http://health.people.com.cn/xywy/wfyxb/zl/8561728435.html
http://health.people.com.cn/xywy/wfyxb/zl/8561706193.html
http://health.people.com.cn/xywy/wfyxb/zl/8561684857.html
http://health.people.com.cn/xywy/wfyxb/zl/8561660863.html
http://health.people.com.cn/xywy/wfyxb/zl/8561639517.html
http://health.people.com.cn/xywy/wfyxb/zl/8561607761.html
http://health.people.com.cn/xywy/wfyxb/wfyxb/8561583714.html
http://health.people.com.cn/xywy/wfyxb/wfyxb/8561567893.html
http://health.people.com.cn/xywy/wfyxb/wfyxb/8561544153.html
http://health.people.com.cn/xywy/wfyxb/wfyxb/8561523863.html
http://health.people.com.cn/xywy/wfyxb/wfyxb/8561505838.html
http://health.people.com.cn/xywy/wfyxb/wfyxb/8561481493.html
http://health.people.com.cn/xywy/wfyxb/wfyxb/8561460758.html
http://health.people.com.cn/xywy/wfyxb/wfyxb/8561443463.html
http://health.people.com.cn/xywy/wfyxb/wfyxb/8561423833.html
http://health.people.com.cn/xywy/wfyxb/wfyxb/8561411613.html
http://health.people.com.cn/xywy/wfyxb/npxpf/8561391949.html
http://health.people.com.cn/xywy/wfyxb/npxpf/8561369342.html
http://health.people.com.cn/xywy/wfyxb/npxpf/8561346927.html
http://health.people.com.cn/xywy/wfyxb/npxpf/8561289357.html
http://health.people.com.cn/xywy/wfyxb/npxpf/8561272787.html
http://health.people.com.cn/xywy/wfyxb/npxpf/8561257265.html
http://health.people.com.cn/xywy/wfyxb/npxpf/8561245842.html
http://health.people.com.cn/xywy/wfyxb/npxpf/8561221865.html
http://health.people.com.cn/xywy/wfyxb/npxpf/8561205293.html
http://health.people.com.cn/xywy/wfyxb/npxpf/8561181358.html
http://health.people.com.cn/xywy/wfyxb/npxpf/8561159863.html
http://health.people.com.cn/xywy/wfyxb/npxpf/8561139861.html
http://health.people.com.cn/xywy/wfyxb/npxpf/8561126797.html
http://health.people.com.cn/xywy/wfyxb/tp/8561112665.html
http://health.people.com.cn/xywy/wfyxb/tp/8561098072.html
http://health.people.com.cn/xywy/wfyxb/tp/8561079747.html
http://health.people.com.cn/xywy/wfyxb/tp/8561060377.html
http://health.people.com.cn/xywy/wfyxb/tp/8561046198.html
http://health.people.com.cn/xywy/wfyxb/tp/8561031057.html
http://health.people.com.cn/xywy/wfyxb/tp/8561017072.html
http://health.people.com.cn/xywy/wfyxb/tp/8561002274.html
http://health.people.com.cn/xywy/wfyxb/tp/8560988617.html
http://health.people.com.cn/xywy/wfyxb/tp/8560942812.html
http://health.people.com.cn/xywy/wfyxb/tp/8560917028.html
http://health.people.com.cn/xywy/wfyxb/tp/8560886986.html
http://health.people.com.cn/xywy/wfyxb/tp/8560861805.html
http://user.qzone.qq.com/2978656537
http://t.qq.com/changchuny9936

有一些关于,orapwd命令entries参数的探究

标签:

原文地址:http://www.cnblogs.com/xggb/p/4428539.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!