Oracle environment variable commands and oracle environment variables

Source: Internet
Author: User

Oracle environment variable commands and oracle environment variables

Oracle environment variable commands

Enter the command: ll-all

Run vi. bash_profile.

#. Bash_profile

# Get thealiases and functions

If [-f ~ /. Bashrc]; then

.~ /. Bashrc

Fi

# Userspecific environment and startup programs

PATH = $ PATH: $ HOME/bin

ExportPATH

ExportORACLE_SID = orcl

ExportORACLE_HOME =/usr/lib/oracle/11.2/client64

ExportTMP =/tmp

ExportTMPDIR = $ TMP

ExportPATH = $ PATH: $ ORACLE_HOME/bin

ExportLANG = "en_US"

ExportTNS_ADMIN = $ ORACLE_HOME/network/admin; # Set tnsnames. ora connection

Complete variable parameters:

ORACLE_BASE =/u01/app/oracle; export ORACLE_BASE

ORACLE_HOME = $ ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME

ORACLE_SID = ORCL; export ORACLE_SID

ORACLE_TERM = xterm; export ORACLE_TERM

TNS_ADMIN = $ ORACLE_HOME/network/admin; export TNS_ADMIN

PATH = $ ORACLE_HOME/bin: $ PATH; export PATH

NLS_LANG = AMERICAN_AMERICA.ZHS16GBK; export NLS_LANG

# ExportNLS_LANG = AMERICAN_AMERICA.AL32UTF8

LC_CTYPE = zh_CN.GBK; export LC_CTYPE

LC_ALL = zh_CN.UTF8; export LC_ALL

LANG = zh_CN.GBK; export LANG

LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib; export LD_LIBRARY_PATH

CLASSPATH = $ ORACLE_HOME/jdk/jre: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib;

Export CLASSPATH

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.