Non-Oralce user environment variable configuration

Source: Internet
Author: User

Non-Oralce user environment variable configuration

In the project, you need to configure environment variables for web users of the same server to execute sqlldr of Oracle, and record the implementation steps and problems:

(1) copy the settings of the. profile file in the oracle directory for the database environment variables to the. profile file of the web user;

Command Execution Error

$ Sqlldr
Sh: sqlldr: not found.

View, it is found that the web user does not have the execution permission for the oracle_home directory, and cannot enter the bin directory

(2) Use chmod 755 $ oracle_home to change Directory Permissions

Command Execution Error

$ Sqlldr
/Usr/lib/hpux64/dld. so: Unable to find library 'libntsh. so.10.1 '.
Killed

Check and find that you do not have access to $ oracle_home/lib

(3) Use chmod 755 $ oracle_home/lib to change Directory Permissions

Command Execution Error

$ Sqlldr
Message 2100 not found; No message file for product = RDBMS, facility = ULMessage 2100 not found; No message file for product = RDBMS, facility = UL $

After some verification, it is found that the corresponding permissions must be granted to the $ oracle_home/rdbms/mesg directory.

Finally, the command sqlldr can be correctly executed.

Summary: When you need to configure sqlldr for non-oracle users, you not only need to configure environment variables, but also need to grant the access permission of related directories to the user.

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.