Este conteúdo não está disponível no idioma selecionado.

Chapter 25. Setting Oracle Environments


Since the Oracle Universal Installer (OUI) "runInstaller" is run from the oracle account, some environment variables must be configured for this account before OUI is started.
Execute the following commands for the Bash which is the default shell on Red Hat Enterprise Linux, to verify your shell run: echo $SHELL):
su - oracle
export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=orcl
Copy to Clipboard Toggle word wrap

Note

If ORACLE_BASE is used, then Oracle recommends that you do not set the ORACLE_HOME environment variable but that you choose the default path suggested by the OUI. You can set and use ORACLE_HOME after you finished running OUI.
The environment variables ORACLE_HOME and TNS_ADMIN should not be set. If you set these environment variables, you can unset them by running the following commands:
unset ORACLE_HOME
unset TNS_ADMIN
Copy to Clipboard Toggle word wrap
To have these environment variables set automatically each time you log on as oracle, you can add these environment variables to the ~oracle/.bash_profile file which is the user start up file for the Bash on Red Hat Enterprise Linux. To do this you could simply copy and paste the following commands to make these settings permanent for your oracle accounts Bash shell:
su - oracle
cat >> ~oracle/.bash_profile << EOF
export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=orcl
EOF
Copy to Clipboard Toggle word wrap
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat