oracle中force强制删除,Oracle 20c 新特性:强制大小写敏感密码文件 Force Password File Case Sensitive...

Oracle Database 20c引入强制大小写密码文件,提高安全性。从20c开始,旧密码文件需更新以支持区分大小写的验证,避免使用ignorecase参数。管理员需迁移或修改密码以适应新标准,同时建议使用新格式的密码文件以增强账户管理.
摘要由CSDN通过智能技术生成

原标题:Oracle 20c 新特性:强制大小写敏感密码文件 Force Password File Case Sensitive

墨墨导读:从Oracle Database 20c开始,数据库强制实施大小写敏感的口令文件,以实现更高的安全性。区分大小写的密码文件提供更高的安全性。Oracle建议使用区分大小写的密码文件。

从Oracle Database 20c开始,数据库 强制实施大小写敏感的口令文件,以实现更高的安全性。区分大小写的密码文件提供更高的安全性,Oracle建议使用区分大小写的密码文件。

53802e62c0b0293e640dcd2fc72bc90e.png

但是,从早期Oracle数据库版本升级的密码文件可以保留其原始大小写不敏感状态。通过将密码文件从一种格式迁移到另一种格式,可以强制密码文件区分大小写。

为了强制实现这一改进,Oracle 删除了用于启用或禁用密码文件区分大小写的参数。新密码文件中的所有密码均区分大小写。

在 20c 之前版本 orapwd 中包含一个参数 ignorecase 可以用于指定是否忽略大小写:

[oracle@enmotech ~]$ orapwd

Usage: orapwd file= entries= force= ignorecase= nosysdba=

where

file - 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.

ignorecase 这个选项在 20c 中被去除了:

[oracle@enmotech ~]$ orapwd

Usage 1: orapwd file= force={y|n} asm={y|n}

dbuniquename= format={12|12.2}

delete={y|n} input_file=

'sys={y | password | external()

| global()}'

'sysbackup={y | password | external()

| global()}'

'sysdg={y | password | external()

| global()}'

'syskm={y | password | external()

| global()}'

Usage 2: orapwd describe file=

where

file - name of password file (required),

password

- password for SYS will be prompted

if not specified at command line.

Ignored, if input_file is specified,

force - whether to overwrite existing file, also clears

CRS resource if it already has password file

registered (optional),

asm - indicates that the ASM instance password file is to

be stored in Automatic Storage Management (ASM)

disk group (optional),

dbuniquename

- unique database name used to identify database

password files residing in ASM diskgroup

or Exascale Vault.

Ignored when asm option is specified (optional),

format - use format=12 for new 12c features like SYSBACKUP, SYSDG

and SYSKM support, longer identifiers, SHA2 Verifiers etc.

use format=12.2 for 12.2 features like enforcing user

profile (password limits and password complexity) and

account status for administrative users.

If not specified, format=12.2 is default (optional),

delete - drops a password file. Must specify 'asm',

'dbuniquename' or 'file'. If 'file' is specified,

the file must be located on an ASM diskgroup

or Exascale Vault,

input_file

- name of input password file, from where old user

entries will be migrated (optional),

sys - specifies if SYS user is password, externally or

globally authenticated.

For external SYS, also specifies external name.

For global SYS, also specifies directory DN.

SYS={y | password} specifies if SYS user password needs

to be changed when used with input_file,

sysbackup

- creates SYSBACKUP entry (optional).

Specifies if SYSBACKUP user is password, externally or

globally authenticated.

For external SYSBACKUP, also specifies external name.

For global SYSBACKUP, also specifies directory DN.

Ignored, if input_file is specified,

sysdg - creates SYSDG entry (optional).

Specifies if SYSDG user is password, externally or

globally authenticated.

For external SYSDG, also specifies external name.

For global SYSDG, also specifies directory DN.

Ignored, if input_file is specified,

syskm - creates SYSKM entry (optional).

Specifies if SYSKM user is password, externally or

globally authenticated.

For external SYSKM, also specifies external name.

For global SYSKM, also specifies directory DN.

Ignored, if input_file is specified,

describe

- describes the properties of specified password file

(required).

There must be no spaces around the equal-to (=) character.

先前版本中,10G 的密码文件帐户都只能执行不区分大小写的管理身份验证。

密码文件在数据库外部,即使数据库处于CLOSED状态,也允许Oracle数据库验证管理连接(使用AS Administrative_privilege_name子句,例如AS SYSKM)。

尝试进行管理连接时,Oracle数据库将在密码文件中搜索该用户,以验证其密码并确保已为该用户授予所请求的管理特权。即使数据库处于CLOSED状态,Oracle数据库也可以使用密码文件来验证管理连接。

Oracle 建议使用以下语法,通过将密码文件从一种格式迁移到另一种格式,并更改仅具有10G验证程序的任何帐户的密码,来强制这些旧密码文件区分大小写:

orapwd FILE=new_pwd_file_name INPUT_FILE=old_pwd_file_name [FORMAT=12.2]

FORMAT和FORCE选项不是强制性的,可以省略。如果省略FORMAT,则默认为12.2。如果FILE和INPUT_FILE选项设置为相同的文件,则需要FORCE选项。

orapwd FILE='/u01/oracle/dbs/old_pwd_file_name' INPUT_FILE='/u01/oracle/dbs/new_pwd_file_name' FORMAT=12.2 FORCE=y

Enter password for SYS: password

假设密码文件中的用户帐户具有更新的验证程序(11G和12C),此命令将创建一个区分大小写的密码文件,称为new_pwd_file_name,它将以区分大小写的方式对管理连接进行身份验证。如果密码文件中的任何用户帐户使用较旧的10G验证程序,则必须更改该帐户的密码以启用对该帐户的管理连接的区分大小写的身份验证。

如果您从以前的版本中导入了用户帐户,并且这些帐户是使用SYSDBA或SYSOPER管理权限创建的,则这些帐户将包含在密码文件中,这些帐户的密码不区分大小写。这些用户下次更改密码时,密码将区分大小写。为了提高安全性,请这些用户更改其密码。可以使用ALTER USER PASSWORD EXPIRE语句来使用户密码失效。之后,要求用户再次登录,以便提示用户更改其密码。

墨天轮原文链接:https://www.modb.co/db/24740(复制到浏览器中打开或者点击“阅读原文”)返回搜狐,查看更多

责任编辑:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值