Remote SSH connection to Linux to configure Oracle sqlplus Environment Variables

Source: Internet
Author: User
Tags ssh secure shell

Run the sqlplus command in SSH Secure Shell. If the SQL plus command cannot be found, the Oracle environment variable is not configured. The configuration method is as follows: Find the. bash_profile file (Note: This configuration environment variable method is only valid for the current user, available cd ~ Command to enter the root directory)Set oracle environment variables: PATH = $ PATH: $ HOME/bin: $ ORACLE_BASE: $ ORACLE_HOMEexport PATHexport ORACLE_BASE =/app/oracleExport ORACLE_HOME = $ ORACLE_BASE/product/10.2/db_1Export PATH = $ ORACLE_HOME/bin: $ PATH save and exit. Run source. bash_profile
Run again:Sqlplus user/password @ SERVICE_NAME will connect to the specified database. If you want to log on to the dba, enter the password after sys as sysdba.You can.

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.