Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem mit Umgebungsvariablen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
michael_
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2007
Posts: 76

PostPosted: Tue Jun 12, 2007 1:03 pm    Post subject: Problem mit Umgebungsvariablen Reply with quote

Hallo Leute,

bin in der Gentoo-Welt noch recht neu und kann richtige doofe fehler leider nicht ausschließen, bitte daher um nachsicht ;-)

bei der Installation von Oracle tauchte der fehler auf, das die ORACLE_HOME - Variable nicht nicht gesetzt ist
wobei ich denke das mein problem unabhänig von oracle ist.


also, oracle benötigt diverse umgebungsvariablen, hab dann , wie im howto diese angelegt :

/etc/env.d/99oracle :

ORACLE_BASE=/opt/oracle
ORACLE_HOME=${ORACLE_BASE}/product/10gR2

..usw. (sind noch einige mehr, aber hier nicht relevant )

mach ich nun auf der konsole ls ${ORACLE_BASE} , zeigt er mir den Inhalt von /opt/oracle , soweit so gut.
allerdings bei ls ${ORACLE_HOME} :

ls: cannot access $ORACLE_BASE/product/10gR2 : No such file or directory

warum löst er hier ORACLE_BASE nicht auf ?

bin seit fast 4 h am suchen, leider nix gefunden.

Ich hoffe ihr könnt mir helfen.
Vielen Dank schonmal.

Mfg Michael
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Tue Jun 12, 2007 2:17 pm    Post subject: Reply with quote

Er löst es richtig auf:

ORACLE_HOME=${ORACLE_BASE}/product/10gR2
ORACLE_HOME=/opt/oracle/product/10gR2

/opt/oracle/product/10gR2 gibt es aber anscheinend nicht.
Also leg es mal mit "mkdir" an.

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
michael_
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2007
Posts: 76

PostPosted: Tue Jun 12, 2007 2:24 pm    Post subject: Reply with quote

hab oracle ja schon installiert,
und zwar in das vz /opt/orcale/product/10gR2
hab darüber auch schon gearbeitet

hatte die verzeichnisse auch schon zig mal überprüft,
aber trotzdem will er nicht.

wenn ich anstatt ORACLE_HOME=${ORACLE_BASE}/product/10gR2

ORACLE_HOME=/opt/oracle/product/10gR2 , also ausschreibe gehts wunderbar.

finde die andere lösung halt eleganter,
und würds auch gern elegant lösen, deswegen der post
Back to top
View user's profile Send private message
Fauli
l33t
l33t


Joined: 24 Apr 2004
Posts: 760
Location: Moers, Germany

PostPosted: Tue Jun 12, 2007 8:06 pm    Post subject: Re: Problem mit Umgebungsvariablen Reply with quote

michael_ wrote:
/etc/env.d/99oracle :

ORACLE_BASE=/opt/oracle
ORACLE_HOME=${ORACLE_BASE}/product/10gR2

Die Dateien in /etc/env.d werden von env-update dazu benutzt, die Dateien /etc/{csh,profile}.env zu erstellen. Die Zeilen werden dabei aber nicht von der Shell ausgeführt. Deshalb wird ORACLE_BASE in der zweiten Zeile nicht ersetzt.
_________________
Do your part to beautify the web! Turn off link underlining!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum