Use and maintenance of this article Oracle database password file from: Author: (2001-07-26 08:00:00)
Summary: Oracle relational database systems have been widely used in its superior performance, and the security of the database is important for database management. This article is that on the basis of summarizing the security management of Oracle database, the author has a detailed introduction to the creation, use and maintenance of the Oracle database system password file for your reference. Keywords: Oracle Database Password File In Oracle Database System, users can have two authentication methods if they are to log in to the Oracle database with privileged user identity (INTERNAL / SYSDBA / SYSOPER): The password file for the Oracle database performs authentication. Therefore, manage the password file, log in to the Oracle database system from the remote or local machine for the control authorization user, and perform database management work, which is important. The password file of the Oracle database stores the username / password of the superuser INTERNAL / SYS and other privileged users, which is typically stored in the Oracle_Home\Database directory. First, the creation of the password file: When you create a database instance using Oracle Instance Manager, a corresponding password file is automatically created in the oracle_home \Database directory, the file name is PWDSID.ORA, where the SID represents the corresponding Oracle Database System Identifier. This password file is the basis for performing the initial database management. After that, the administrator can also use the tool ORAPWD.EXE manually to create a password file as needed, the command format is as follows: C: \> ORAPWD file =
In the case of the remote_login_passwordfile parameter, the order of the Oracle system search password file is: Find the ORA_SID_PWFILE parameter value in the system registration library (it is a full path name of the password file); if not, look for an ORA_PWFILE parameter value; If you still have not found, use the default value oracle_home \Database \pwdsid.ora; where the SID represents the appropriate Oracle database system identifier. Third, add the user: Delete the user: When the initialization parameter remote_login_passwordfile is set to Exclusive, the system allows other users other than INTERNAL / SS to log in to the Oracle database system from the remote or local machine, execute database management work These usernames must exist in the password file, the system can identify them. Since the password file automatically created automatically when you create a database instance, or use the tool ORAPWD.EXE manually created password file, all of the INTERNAL / SYS user information; for this, in practice, you may need to add to the password file Or delete other user accounts. Since users who are only granted SYSOPER / SYSDBA system exist in the password file, when a user grants or reclaims the Sysoper / SysDBA system permission, their account will also be added to the password file or from the password file. Delete. Thus, an additional or deleted user is added to the password file, which is actually granting or recovering the SYSOPER / SYSDBA system authority for a user. To perform this authorization, you need to use SysDBA Permissions (or Internal Account) to enter the database, and the setting of the initialization parameter remote_login_passwordfile must be Exclusive. The specific steps are as follows: Create a corresponding password file; set the initialization parameter remote_login_passwordfile = Exclusive; log in with sysdba: Connect Sys / INTERNAL_USER_PASSSWORD AS SYSDBA; Start the database instance and open the database; create the corresponding user account, authorize it (including sysoper and sysdba) : Grant permission: Grant sysdba to user_name; Reclaimed: Revoke Sysdba from user_name; Now these users can log in to the database system as an administrator; four Log in to the Oracle database instance with SYSOPER / SYSDBA Permissions, Note Initialization Parameters Remote_login_passwordfile should be set to Exclusive or Shared.