Ask the Expert

How to create a password file in Oracle 9i?

How to create a password file in Oracle 9i? What is the exact command and do we need to make any changes in the parameter file? If yes then what?

    Requires Free Membership to View

First, you need to run the orapwd utility to create the password file. I can create the password file with the following:

orapwd file=orapworcl password=sys_pass entries=20

It is important that the password file's name be of the form "orapw"+ORACLE_SID. In my case, the ORACLE_SID is "orcl." The password parameter needs to be given the SYS password. The entries parameter defines the maximum number of users that will need this password file. These users are only those that need to be granted the SYSDBA or SYSOPER privileges, not every user in the database. So the total number of users should be relatively small.

Once the password file is created, you need to instruct Oracle to use this password file. If your Oracle 9i database is using a SPFILE for its parameters, run the following in SQL*Plus:

ALTER SYSTEM SET remote_login_passwordfile=EXCLUSIVE 

If your database is using the old PFILE, add the parameter to the PFILE with any text editor. Once this parameter is set, bounce your database and it will be using a password file.

This was first published in July 2007

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: