Re: oracle 10g release 2 on windows, forget password

  • From: Juan Carlos Reyes Pacheco <juancarlosreyesp@xxxxxxxxx>
  • To: baojiejie@xxxxxxxxx
  • Date: Thu, 26 Feb 2009 18:14:43 -0400

You can recreate the service and the sys password will change :)

echo delete password file p.e.
C:\ORACLE\product\10.2.0\db_1\database\PWDEDVG.ORA

PAUSE
@ECHO OFF
IF '%1'=='' ECHO NO HA ENVIADO NINGUN PARAMETRO
IF '%1'=='' PAUSE
IF '%1'=='' EXIT
NET STOP oraCLESERVICE%1
NET STOP oraCLESERVICE%1
oradim -DELETE -SID %1
oradim.exe -new -sid %1 -intpwd %170516996 -startmode auto -PFILE
E:\ora%1\init\init%1.ora -maxusers 5
oradim.exe -edit -sid %1 -startmode auto -srvcstart system -PFILE
E:\ora%1\init\init%1.ora
NET STOP  ORACLESERVICE%1
NET START ORACLESERVICE%1
orapwd.exe file=PWD%1.ora password=%170516996 entries=5 force=y

----------------------------------------
http://www.oracleboliviaspecialists.com/

Oracle Certified Profesional 9i 10g
Oracle Certified Professional Developer 6i

10 years of experience from Oracle 7 to Oracle10g and developer 6i

Other related posts: