Catt Solutions

Search
Skip to content

Daily Archives: October 10, 2009

11g, Oracle, Oracle 10g, oracle 9i

Oracle Use of the oracle utility orapwd:

October 10, 2009 Larry Catt Leave a comment

In the administration of an Oracle database there are times when we will have to create a new password file due to corruption, lack of space for administrators, or new database creation. Oracle provides the utility ORAPWD to accomplish such a task. This article will cover the use of the utility ORAPWD to create a new password file and implementation for remote connection to the oracle database. This procedure will work on any OS.

1. Logon to your Oracle database server as the Oracle software owner.

2. Navigate to the following directory $ORACLE_HOME/dbs and list the file orapw* to check if a password file already exists for this instance.

mylinux :> cd $ORACLE_HOME/dbs
mylinux :> ls -lrt
total 272
-rw-r–r– 1 oracle dba 3979 Jan 27 18:54 initorcl.ora
-rw-r—– 1 oracle dba 5120 Mar 13 13:49 spfileorcl.ora
mylinux :>

3. No password file is listed, so we can proceed to step 4. In this example our SID is ORCL if we located a file of the orapworcl, we would have to rename it with the following command:

mv orapworcl orapworcl_bak

4. Now we are ready to execute the ORAPWD utility to create our oracle password file. The ORAPWD utility has the following three options:

file – name of the password file, default format is orapw{SID} located in directory $ORACLE_HOME/dbs

password – Password for the SYS user.

entries – Number of distinct DBA users who can be placed in the file.

IE orapwd file=$ORACLE_HOME/dbs/orapworcl password=password1 entries=5

5. Execute the ORAPWD command.

mylinux :>orapwd file=./orapworacle password=password1 entries=5
mylinux :>

6. Execute the ls command to see the new password file.

mylinux :> ls orapw*
orapworcl
mylinux :>

7. Enter SQLPLUS with SYSDBA privileges.

mylinux :> sqlplus ‘/ as SYSDBA’

SQL*Plus: Release 10.2.0.4.0 – Production on Sat Oct 10 10:18:48 2009

Copyright (c) 1982, 2007, Oracle. All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>

8. Ensure that the init parameter REMOTE_LOGIN_PASSWORDFILE is set to EXCLUSIVE through the use of the show command.

SQL> show parameter REMOTE_LOGIN_PASSWORDFILE

NAME TYPE VALUE
———————————— ———– ———-
REMOTE_LOGIN_PASSWORDFILE string EXCLUSIVE
SQL>

9. If the parameter was something other then EXCLUSIVE, use the alter system command to change it to exclusive and restart the database.

Now you can access the database remotely as the user SYS by giving the password used in the ORAPWD utility.

Larry J. Catt, OCP 9i, 10g
oracle@allcompute.com
www.allcompute.com

changefileOracleorapworapwdpasswordrecreateremoteREMOTE_LOGIN_PASSWORDFILEsysdba

Recent Posts

  • AWS Route 53 TTL
  • AWS Route 53 Creating your first record
  • AWS EBS Volume Type
  • AWS Route 53 Registering a domain
  • AWS Route 53

Categories

  • 11g (98)
  • 12c (161)
  • ADDM (6)
  • Administration (40)
  • ADR (2)
  • alert / logs (5)
  • archiving (1)
  • ASH (3)
  • ASM (7)
  • audit (19)
  • AWS (59)
  • backup/recovery (18)
  • bash (2)
  • CDB (30)
  • Cloud Control (5)
  • data pump (8)
  • dbca (8)
  • EM (7)
  • EM Express (5)
  • error (16)
  • flashback (8)
  • FMW (1)
  • hp-ux (47)
  • ILM (2)
  • installer (35)
  • itanium (33)
  • linux (75)
  • listener (6)
  • Multitenant (25)
  • network (20)
  • OPatch (14)
  • ORA- (1)
  • Oracle (182)
  • Oracle 10g (122)
  • oracle 9i (97)
  • PDB (25)
  • Performance (24)
  • perl (3)
  • privileges (7)
  • RAC (37)
  • redaction (2)
  • replay (1)
  • RMAN (19)
  • RMAN (12)
  • script (14)
  • security (5)
  • SQL (32)
  • SQLLoader (2)
  • sqlplus (13)
  • storage (7)
  • tablespaces (6)
  • testing (3)
  • tnsnames (3)
  • troubleshooting (1)
  • uncategorized (376)
  • unix (53)
  • Users (10)
  • utility (3)
  • VM (3)
  • watches (9)
  • windows (18)
  • windows 7 (13)

Oracle tips and tricks.

October 2009
S M T W T F S
 123
45678910
11121314151617
18192021222324
25262728293031
« Sep   Nov »

Archive

  • September 2025 (5)
  • August 2025 (12)
  • July 2025 (8)
  • June 2025 (8)
  • May 2025 (4)
  • April 2025 (5)
  • March 2025 (3)
  • February 2025 (3)
  • January 2025 (2)
  • December 2024 (2)
  • November 2024 (2)
  • October 2024 (2)
  • September 2024 (2)
  • August 2024 (2)
  • July 2024 (1)
  • June 2024 (2)
  • May 2024 (2)
  • October 2022 (1)
  • August 2021 (2)
  • July 2019 (1)
  • December 2018 (1)
  • April 2018 (1)
  • February 2018 (1)
  • July 2017 (7)
  • June 2017 (5)
  • May 2017 (5)
  • April 2017 (8)
  • March 2017 (7)
  • February 2017 (6)
  • January 2017 (6)
  • December 2016 (6)
  • November 2016 (7)
  • October 2016 (5)
  • September 2016 (7)
  • August 2016 (7)
  • July 2016 (7)
  • June 2016 (8)
  • May 2016 (4)
  • April 2016 (7)
  • March 2016 (7)
  • February 2016 (7)
  • January 2016 (7)
  • December 2015 (7)
  • November 2015 (7)
  • October 2015 (5)
  • September 2015 (7)
  • August 2015 (7)
  • July 2015 (3)
  • June 2015 (2)
  • May 2015 (1)
  • April 2015 (2)
  • March 2015 (2)
  • February 2015 (2)
  • January 2015 (1)
  • December 2014 (4)
  • November 2014 (2)
  • October 2014 (1)
  • August 2014 (1)
  • June 2014 (1)
  • May 2014 (1)
  • April 2014 (1)
  • January 2014 (1)
  • October 2013 (3)
  • September 2013 (2)
  • August 2013 (2)
  • July 2013 (1)
  • June 2013 (1)
  • April 2013 (1)
  • February 2013 (1)
  • December 2012 (1)
  • September 2012 (1)
  • June 2012 (1)
  • May 2012 (1)
  • February 2012 (1)
  • November 2011 (1)
  • September 2011 (1)
  • July 2011 (1)
  • May 2011 (1)
  • April 2011 (8)
  • March 2011 (2)
  • February 2011 (4)
  • January 2011 (4)
  • December 2010 (4)
  • November 2010 (4)
  • October 2010 (2)
  • September 2010 (2)
  • August 2010 (3)
  • July 2010 (2)
  • June 2010 (5)
  • May 2010 (10)
  • April 2010 (13)
  • March 2010 (10)
  • February 2010 (8)
  • January 2010 (6)
  • December 2009 (7)
  • November 2009 (4)
  • October 2009 (6)
  • September 2009 (5)
  • August 2009 (20)
  • July 2009 (4)
  • May 2009 (4)
  • April 2009 (1)
  • March 2009 (1)
  • February 2009 (1)
  • January 2009 (6)
  • September 2008 (6)
  • July 2008 (1)
  • June 2008 (1)
  • May 2008 (1)
  • April 2008 (1)
Proudly powered by WordPress