Mistakenly delete the parameter file, password file under $oracle_home/dbs, how to quickly rebuild

Source: Internet
Author: User

[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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.