以安装Oracle的用户进入系统:
忘记密码:
1.在命令行下输入 sqlplus /nolog 进入SQL*PLUS
2.输入:conn / as sysdba
3.修改密码:alter user sys identified by "admin"
4.然后就可以使用sys用户密码admin登陆了
注意:密码的第一个字符不能是数字的
创建密码文件:
1.创建密码文件的命令
orapwd file=<> password=<> entries=最大数目
这里的file命名规则在unix/linux下 orapw,在windows下为 pwd.ora
具体资料看下面的描述(这是pub中一个网友的总结)
1. unix 环境:
查了Administrator’s Reference 10g Release 2 (10.2) for UNIX-Based Operating Systems.
1. Log in as the Oracle software owner.
2. Use the orapwd utility to create the password file as follows:
$ $ORACLE_HOME/bin/orapwd file=filename password=password entries=max_users
...
filename The name of the file in which password information is written
The name of the file must be orapwsid, and you must supply the full
path name. Its contents are encrypted. Typically, the password file is
created in the $ORACLE_HOME/dbs directory.
请注意黑体字, 所以unix环境中, password file 一定是要用 orapw, 没有例外.
2. windows 环境:
查了Platform. Guide 10g Release 2 (10.2) for Microsoft Windows (32-Bit) (没查64-bit)
To create and populate a password file:
(1). Create a password file with the Password Utility:
C:> orapwd FILE=PWDsid.ora PASSWORD=password ENTRIES=max_users
where
¦ FILE specifies the password filename.
¦ SID identifies the database instance.
¦ PASSWORD sets the password for account SYS.
¦ ENTRIES sets maximum number of entries in password file. This corresponds
to maximum number of distinct users allowed to connect to the database
simultaneously with either the SYSDBA or the SYSOPER DBA privilege.
(2). Set initialization parameter file parameter REMOTE_LOGIN_PASSWORDFILE to
exclusive, shared, or none.
In search of the password file, Oracle Database looks in the registry for the value of parameter
ORA_SID_PWFILE. If no value is specified, then it looks in the registry for the
value of parameter ORA_PWFILE, which points to a file containing usernames,
passwords, and privileges. If that is not set, then it uses the default:
ORACLE_BASEORACLE_HOMEDATABASEPWDsid.ORA.
The default value is shared.
请注意黑体字, windows 环境中, 很大的部分是基于 registry 中变量 ora_sid_pwfile 或者 ora_pwfile 的设置, 缺省的值, 正如paulyibinyi兄弟指出的, 是 pwd.ora (unix中是没有这个.ora后缀的).
二,在windows下对于connect /as sysdba及其它用户可以不用密码就能登录的问题
1.这是因为oracle采用了 OS认证的方式,具体的可以查看 sqlnet.ora具体同容如下
SQLNET.AUTHENTICATION_SERVICES= (NTS)
将其改成
SQLNET.AUTHENTICATION_SERVICES= (NONE)
这样就是oracle认证方式了
2.因为用的OS认证方式,可以在操作系统->控制面版->计算机管理->用户 将当前用户的属性组 ORA_DBA去掉,
这时如果没有用户名及密码则不可以。
如下:
SQL> connect /as sysdba
ERROR:
ORA-01031: insufficient privileges
SQL> connect sys/oracle as sysdba
已连接。
三,利用alter user identified by .....来修改密码
alter user sys identified by abc一下,就连数据库中的密码和密码文件中的密码一起改成abc了;
四,如果密码文件丢失了如何办?
利用 orapwd重新创建一个就可以了
分享到:
相关推荐
Oracle密码文件的创建、使用和维护Oracle密码文件的创建、使用和维护Oracle密码文件的创建、使用和维护Oracle密码文件的创建、使用和维护Oracle密码文件的创建、使用和维护
在Oracle数据库系统中,用户如果要以特权用户身份(INTERNAL/SYSDBA/SYSOPER)登录Oracle数据库可以有两种身份验证的方法:即使用与操作系统集成的身份验证或使用Oracle数据库的密码文件进行身份验证。因此,管理...
oracle密码文件的详细说明
Oracle数据库密码文件的使用和维护
操作系统验证是指使用操作系统的身份验证机制来验证用户的身份,而密码文件验证是指使用 Oracle 数据库系统的密码文件来验证用户的身份。 五、密码文件的重要性 密码文件在 Oracle 数据库系统中起着非常重要的作用...
这是Oracle 9i数据库安装时的默认的密码,新手可以参考下!
Oracle关系数据库系统以其卓越的性能获得了广泛的应用,而保证数据库的安全性是数据库管理工作的重要...本文是在总结Oracle数据库安全管理工作的基础上,对Oracle数据库系统密码文件的创建、使用和维护作了详细的介绍。
找回Oracle软件的密码的方法,方便、简单。
该文件为一个校验oracle数据库密码复杂度的脚本
Oracle密码重新设置,按照文档操作!
修改oracle用户密码永不过期 查看用户的proifle是哪个,一般是default: sql>SELECT username,PROFILE FROM dba_users; 2查看指定概要文件(如default)的密码有效期设置:
在使用Oracle过各中经常会遇到密码丢失的时候,本文介绍了用两种方法来解决这个问题。
这将生成一个新的密码文件,覆盖原来的密码文件。然后,我们可以使用新的密码登录到 Oracle 数据库。 五、使用 su 命令 我们也可以使用 su 命令切换到 oracle 用户,修改 sys 用户的密码。命令如下: ``` su - ...
这将创建一个新的密码文件,并将密码设置为 newpass。 四、注意事项 在修改 Oracle 数据库密码时,我们需要注意以下几点: * 在修改密码前,请先备份数据库,以免数据丢失。 * 在修改密码时,请确保您拥有足够的...
在推送 Oracle RMAN Plugin 之前,需要添加 protection group,并选择 individual computers,添加 Oracle 源机,输入 Oracle 源机的 Ip 地址及 OS 的 oracle 账户密码,选择 elevate account privileged ...
在使用 Oracle Instance Manager 创建一数据库实例的时侯,在 ORACLE_HOME \ DATABASE 目录下还自动创建了一个与之对应的密码文件,文件名为PWDSID.ORA ,其中 SID 代表相应的 Oracle 数据库系统标识符此密码文件是...
数据库密码过期后,用户sysdba用户无法登录访问系统,通过文档中的方法,可以修改密码,修改后可以继续访问Oracle数据库系统。
在 Oracle 数据库中,默认提供了一个密码策略的 sql 执行文件 utlpwdmg.sql,该文件位于 $ORACLE_HOME/rdbms/admin/utlpwdmg.sql 下。该文件包含了密码策略的默认设置,包括密码长度、复杂度检测、最大最小使用时间...
这个命令重新生成了数据库的密码文件,密码文件的位置在 ORACLE_HOME 目录下的\database 目录下。这个密码是修改 sys 用户的密码,除 sys 和 system 其他用户的密码不会改变。 忘记 Oracle SYS 用户密码并不是世界...