ORA-01034:, ORA-01078: And LRM-00109: Solution

Source: Internet
Author: User

ORA-01034:, ORA-01078: And LRM-00109: Solution
Environment: Linux 5.4 Oracle 11.2.0.3 when connecting Oracle on Linux error: SQL> show parameter sgaORA-01034: ORACLE not availableProcess ID: 0 Session ID: 0 Serial number: 0 SQL> startupORA-01078: failure in processing system parametersLRM-00109: cocould not open parameter file '/u01/app/oracle/product/11.2.0/db_1/dbs/initorcal. ora 'above '.. /initorcal. ora's error indicates that the name (SID) of the database instance recognized by the current Oracle database is orcal. It may be that the SID setting during Oracle installation is inconsistent with the SID set in the environment variable.. Solution: 1. query the current data instance name (SID) [oracle @ oradb ~] $ Echo $ ORACLE_SIDorcal 2. view the SID configuration of the Environment Variable [oracle @ oradb ~] $ Cat. bash_profile #. bash_profile # Get the aliases and functionsif [-f ~ /. Bashrc]; then .~ /. Bashrcfi # User specific environment and startup programs PATH = $ PATH: $ HOME/bin export PATHexport ORACLE_SID = orcl it is found that the Instance name orcal recognized by the system is inconsistent with the environment variable set to orcl, in this case, we need to modify the Instance name SID 3. modify the oracle ORACLE_SID environment variable. For example, change orcal to orcl [oracle @ oradb ~]. $ Vi/home/oracle/. bash_profileexport ORACLE_SID = orcl 4. Modify the/etc/oratab file and change the sid Name from orcal to orcl [oracle @ oradb ~] $ Vi/etc/orataborcl:/u01/app/oracle/product/11.2.0/db_1: N 5. Go to the $ ORACLE_HOME/dbs directory, for example, in my/u01/app/oracle/product/11.2.0/db_1/dbs, change all file names containing the original sid to the corresponding [oracle @ oradb ~] $ Cd/u01/app/oracle/product/11.2.0/db_1/dbs [oracle @ oradb dbs] $ lshc_orcal.dat init. ora lkORCAL orapworcal spfileorcal. ora [oracle @ oradb dbs] $ mv hc_orcal.dat ← [oracle @ oradb dbs] $ mv lkORCAL lkORCL [oracle @ oradb dbs] $ mv orapworcal orapworcl [oracle @ oradb dbs] $ mv spfileorcal. ora spfileorcl. ora 6. start the database [oracle @ oradb dbs] $ sqlplus/as sysdba SQL> startupORACLE instance started. database started successfully !!

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.