oracle sysdba级用户的认证方式
经过系统化的实训,让这部分人群能够迅速掌握Oracle最新的核心技术,并能胜任企业大型数据库管理、维护、开发工作。下面是小编整理的关于oracle sysdba级用户的认证方式,欢迎大家参考!
Oracle对于普通账户和超级管理员(指sysdba和sysoper)的认证机制不一样,前者是通过数据字典,后者主要是通过操作系统验证和密码文件验证。因此一般提到操作系统认证或密码文件认证,针对的都是超级管理员的认证。
操作系统认证
对于操作系统认证,其实蛮简单的,只需要将该用户添加到dba(针对sysdba权限)或oper(针对sysoper权限)组中,就可以使用 "sqlplus / as sysdba"方式登陆
在Linux环境下,可通过以下命令添加属组:usermod -g dba test -->>test是用户名
能否使用操作系统身份认证,取决于$ORACLE_HOME/network/admin/中ENTICATION_SERVICES的取值。
ENTICATION_SERVICES = none | all | ntf(windows)
none : 表示关闭操作系统认证,只能密码认证。
all : 操作系统认证和密码认证均可。
nts : 用于windows平台。
当 ENTICATION_SERVICES = none时,会报以下错误:
[oracle@node1 admin]$ sqlplus / as sysdba
SQL*Plus: Release Production on Fri Jan 9 23:14:18 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
若用密码登陆则没有问题
[oracle@node1 admin]$ sqlplus sys/oracle as sysdba
SQL*Plus: Release Production on Fri Jan 9 23:17:31 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release - Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL>
密码文件认证
这种方式在实际环境中较为普遍,利用的是orapwd工具创建密码文件。
在密码文件认证中,有一个参数十分重要:remote_login_passwordfile,该参数有三个值,默认为exclusive
none----不使用密码文件认证
exclusive---需要密码文件认证 自己独占使用
shared ---需要密码文件认证 不同实例dba用户可以共享密码文件
密码文件的默认位置为:$ORACLE_HOME/dbs
密码文件的查找顺序:orapw
所以在创建密码文件时filename只能为orapw
外部认证(External Authentication)
若对用户采用外部认证,则只有用户的账号由Oracle管理,密码和用户登录的认证则通过外部服务来管理。外部认证常见的有操作系统认证和网络认证。
外部认证之操作系统身份验证
此技术使用与操作系统用户同样的名称创建Oracle用户,但前面加上了os_authent_prefix参数指定的.字符串,默认为ops$,下面我们来看看官档对该参数的说明:
OS_AUTHENT_PREFIX specifies a prefix that Oracle uses to authenticate users attempting to connect to the server. Oracle concatenates the value of this parameter to the beginning of the user's operating system account name. When a connection request is attempted, Oracle compares the prefixed username with Oracle usernames in the database.
相關文章
-
Adobe认证Illustrator CS2考试大纲
Adobe Illustrator CS2是出版、多媒体和在线图像的工业标准矢量插画软件。无论是生产印刷出版线稿的设计者和专业插画家、生产多媒体图像的艺术家、还是互联网页或在线内容的制作者。下面小编准备了关于Illustrator C -
Adobe认证Illustrator CS3考试大纲
Adobe Illustrator CS3是业界标准矢量图形软件,是一套前所未有的全新设计工具,还能提供最能展现创造力所需的增强效能。 下面小编准备了关于Illustrator CS3考试大纲,提供给大家参考! 试题说明考题数量:共60 道,考试通 -
Adobe认证Macromedia Flash8考试大纲
Adobe创意大学帮助学生和从业人员快速完成职业和专业能力塑造,迅速提高岗位技能和职业水平,强化个人的市场竞争力,高质、高效地步入工作岗位。下面YJBYS小编为大家整理了关于Macromedia Flash8考试大纲,希望对你有所帮助 -
七年级Lesson10英语家庭作业:Clothesforacoldday
Ⅰ.根据句意及汉语提示,填入恰当的单词。wouldliketo________(点)someorangejuice.st16thisa________(特殊的)dayformyparents.3.—Whatsizewouldyoulike?—A________(大的)bowl,please.4.—Areyougoingtoherbirth -
To be really happy and really safe优秀英语作文
To be really happy and really safe, one ought to have at least two or three hobbies, and they must all be real. It is no use starting late in life to say: “I will take an interest in this or -
adobe illustrator cs5认证考试试题
Adobe 始终追求定义数码信息交流的新模式,这种精神源自其创始人兼董事会联合主席 Chuck Geschke 和 John Waock,Adobe 技术平台在所有需要稳定可靠信息交流的客户领域(无论是普通用户、创意人士,还是企业)中已广为应用。 -
英语阅读:Are You Tricked by These Optical Illusions
Hey there, welcome to Life Noggin.Which one of these orange circles do you think is bigger? Well, neither is, they’re actually the same size.Now, stare at the dot inside this circle. Keep starin -
Lesson4Whatdidyoudoafterschool五年级英语教学设计
课题:Lessn 4 What did u d after schl? 第一课时知识目标:语境话题:日常生活(谈论过去发生的事)框架句型:Did u ______ ?时态:一般过去时词汇:d ne’s hewr, befre, after, dinner, wash.语音:动词过去时的发音语法:通过本课学 -
七年级上册英语第五单元知识点:Do you have a soccerball
短语句型:总结了国中英语教学,国中英语单词,国中英语作文,国中英语辅导中务必掌握的`英语考点。1,Let’splaysoccer.=LetusplaysoccerLetmehelpyou.letsbdosth让某人做某事(sb代表人,如果是代词用宾格,do代表动词原形)2, -
雅思阅读模拟试题:Sun's fickle heart may leave us cold
雅思阅读模拟试题实战训练题:How a Frenchman is reviving McDonald's in EuropeA. When Denis Hennequin took over as the European boss of McDonald's in January 2004, the world's biggest rest