[Email protected] dbs]$ pwd
/home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs
[email protected] dbs]$ LL
Total 24
-RW-RW----. 1 Oracle oinstall 1544 Mar 13:46 Hc_orcl.dat
-rw-r--r--. 1 Oracle Oinstall 2851 may Init.ora
-rw-r-----. 1 Oracle Oinstall 658 Feb 05:17 Initorcl.ora
-rw-r-----. 1 Oracle Oinstall 05:17 LKORCL
-rw-r-----. 1 Oracle Oinstall 1536 Feb 05:17 ORAPWORCL
-rw-r-----. 1 Oracle oinstall 3584 Mar 14:19 Spfileorcl.ora
[Email protected] dbs]$ RM-RF *
Total 0
[Email protected] dbs]$ orapwd FILE=/HOME/ORACLE/APP/ORACLE/PRODUCT/11.2.0/DBHOME_1/DBS/ORAPWORCL password=oracle
Sql> create Pfile from memory;
File created.
[email protected] dbs]$ LL
-RW-RW----. 1 Oracle oinstall 1544 Mar 16:55 Hc_orcl.dat
-rw-r--r--. 1 Oracle oinstall 5562 Mar 16:44 Initorcl.ora
-rw-r-----. 1 Oracle Oinstall 16:55 LKORCL
-rw-r-----. 1 Oracle Oinstall 1536 Mar 16:38 ORAPWORCL
sql> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
Sql> startup;
ORACLE instance started.
Total System Global area 835104768 bytes
Fixed Size 2217952 bytes
Variable Size 520095776 bytes
Database buffers 310378496 bytes
Redo buffers 2412544 bytes
Database mounted.
Database opened.
Mistakenly delete the parameter file, password file under $oracle_home/dbs, how to quickly rebuild