Schedule a task to execute the shell that contains the Oracle command connection error: Sp2-0667:message file SP1 . MSB not found____oracle

Source: Internet
Author: User
Tags sqlplus
Normally sqlplus executed well, when I put the shell script containing the Sqlplus command into the scheduled task, the error: Error 6 initializing sql*plus sp2-0667:message file Sp1<lang >.MSB not found sp2-0750:you could need to set Oracle_home to your ORACLE software directory error Reason: The script inside the crontab, usually read the default Environment variables, path contains no paths to the Oracle database. Workaround: Precede the shell script with the source/home/oracle/.bash_profile premise that/home/oracle/.bash_profile has configured Oracle_home and path. such as: Export Oracle_home=/u01/app/oracle/product/11.2.0/dbhome_1 export path= $PATH: $ORACLE _home/bin
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.