# Environment Variable

**URL:** <https://community.unix.com/t/environment-variable/151341>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [February 3, 2005, 5:43pm UTC](https://community.unix.com/t/environment-variable/151341 "2005-02-03T17:43:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thumsup9](https://community.unix.com/letter_avatar/thumsup9/32/6_449c533f586939b6e5f246632a46421f.png) [@thumsup9](https://community.unix.com/u/thumsup9)\
**Post date:** [February 3, 2005, 5:43pm UTC](https://community.unix.com/t/environment-variable/151341/1 "2005-02-03T17:43:43Z")

</div>

$ . oraenv (when i type this at the prompt)  
ORACLE\_SID = [AHP2DD] ? ( I get this)

I understand that . oraenv is a startup script and it has the ENV variable ORACLE\_SID.

But pls let me know what more it explains and also how to change the env variable here.

---

<div class="post-metadata">

**Author:** ![encrypted](https://community.unix.com/user_avatar/community.unix.com/encrypted/32/114_2.png) [@encrypted](https://community.unix.com/u/encrypted)\
**Post date:** [February 3, 2005, 6:26pm UTC](https://community.unix.com/t/environment-variable/151341/2 "2005-02-03T18:26:49Z")

</div>

For changing the environment variables you need to change the  
script that sets them i.e. in your .oraenv  
like :  
If running under Boune shell  
export ORACLE\_SID=\<your value of ORACLE\_SID\>  
If running under csh/tcsh  
setenv ORACLE\_SID \<your value of ORACLE\_SID\>

A good idea would be to set these variables in your initialisation files.

---

<div class="post-metadata">

**Author:** ![thumsup9](https://community.unix.com/letter_avatar/thumsup9/32/6_449c533f586939b6e5f246632a46421f.png) [@thumsup9](https://community.unix.com/u/thumsup9)\
**Post date:** [February 3, 2005, 6:45pm UTC](https://community.unix.com/t/environment-variable/151341/3 "2005-02-03T18:45:08Z")

</div>

Got it ,thx
