Sp2-0750:you need to set Oracle_home to your ORACLE software directory

Source: Internet
Author: User
Tags sqlplus

Log in to a server today with Roote users logged in, switch to the Oracle user, perform Sqlplus sys/as sysdba into the database prompted the following error:

Sp2-0750:you need to set Oracle_home to your ORACLE software directory


View files under the/home/oracle directory. Bash_profile, it is a hidden file.

$ cat. Bash_profile #. bash_profile# Get the aliases and Functionsif [-f ~/.BASHRC]; Then. ~/.bashrcfi# User specific environment and startup Programspath= $PATH: $HOME/binexport pathexport oracle_base=/u01/app/ Oracle Export oracle_home=/u01/app/oracle/product/11.1.0/db_1 Export oracle_sid=orclexport path= $ORACLE _home/bin:$ PATH export ld_library_path= $ORACLE _home/liblang=zh_cn. UTF-8; Export langnls_lang= ' simplified Chinese_china. Al32utf8 '; Export Nls_lang

[Email protected] ~]$ CD $ORACLE _home

-BASH:CD:/u01/app/oracle/product/11.1.0/db_1: No file or directory


The home directory where the Oracle installation definition is found is the root user's u01 directory in the/u01/app/oracle/product/11.1.0/db_1 directory, and the following command is executed when the root user is cut back:[[email  protected] ~]# cd  $ORACLE _home[[email protected] dbhome_1]# pwd/u01/app/oracle/ Product/11.2.0/dbhome_1[[email protected] dbhome_1]# sqlplus / as sysdba or [[ Email protected] dbhome_1]# cd bin[[email protected] dbhome_1]# pwd/u01/app /oracle/product/11.2.0/dbhome_1/bin[[email protected] bin]# ./sqlplus / as  sysdbasql*plus: release 11.2.0.4.0 production on thu oct 12 17:20:48  2017Copyright  (c)  1982, 2013, oracle.  all rights reserved. enter password: connected to:oracle database 11g enterprise edition  Release 11.2.0.4.0 - 64bit productionwith the partitioning, olap, data  mining and real&nbsP Application testing optionssql>

Problem Solving!


This article is from "Operation and maintenance record Mei Ling" blog, please be sure to keep this source http://meiling.blog.51cto.com/6220221/1971801

Sp2-0750:you need to set Oracle_home to your ORACLE software directory

Related Article

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.