Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The problem that linux has to use source every time after configuring oracle in ~ / .bash_profile

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Modify .bash _ profile in root mode or .bashrc in oracle

# cd ~

# vi .bashrc

Add the following environment configuration:

Export ORACLE_BASE=/opt/oracle/app

Export ORACLE_HOME=/opt/oracle/app/oracle/product/11.2.0/dbhome_1

Export PATH=/opt/oracle/app/oracle/product/11.2.0/dbhome_1/bin:$PATH

Export ORACLE_SID=orcl

Export PS1=' [\ u@\ h\ W]\ $'

Export ORACLE_PID=orcl

: wq

$source .bashrc

$reboot

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report