dbTalk Databases Forums  

How to Get User Environment in Sqlplus?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss How to Get User Environment in Sqlplus? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tiglath
 
Posts: n/a

Default How to Get User Environment in Sqlplus? - 10-01-2003 , 05:30 PM







I run Oracle 8.1.7.2 on in AIX 4..3.3.

When I run sqlplus and use ! or host to spawn a shell and execute an AIX
command my environment and aliases don't seem to be present.

How can incorporate the user environment to AIX commands run from sqlplus?

Thanks.



Reply With Quote
  #2  
Old   
Daniel Morgan
 
Posts: n/a

Default Re: How to Get User Environment in Sqlplus? - 10-01-2003 , 06:35 PM






Tiglath wrote:

Quote:
I run Oracle 8.1.7.2 on in AIX 4..3.3.

When I run sqlplus and use ! or host to spawn a shell and execute an AIX
command my environment and aliases don't seem to be present.

How can incorporate the user environment to AIX commands run from sqlplus?

Thanks.



Mine are (AIX 5L). cd. $ORACLE_HOME works just fine.

--
Daniel Morgan
http://www.outreach.washington.edu/e...ad/oad_crs.asp
http://www.outreach.washington.edu/e...oa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)



Reply With Quote
  #3  
Old   
Eric Parker
 
Posts: n/a

Default Re: How to Get User Environment in Sqlplus? - 10-02-2003 , 04:28 AM




"Tiglath" <tiglath (AT) tiglath (DOT) net> wrote

Quote:
I run Oracle 8.1.7.2 on in AIX 4..3.3.

When I run sqlplus and use ! or host to spawn a shell and execute an AIX
command my environment and aliases don't seem to be present.

How can incorporate the user environment to AIX commands run from sqlplus?

Thanks.


Tiglath

Are they there if you spawn a shell directly, independent of sqlplus ?

eric

--
Remove the dross to contact me directly




Reply With Quote
  #4  
Old   
Daniel Morgan
 
Posts: n/a

Default Re: How to Get User Environment in Sqlplus? - 10-02-2003 , 11:11 AM



Tiglath wrote:

Quote:
"Eric Parker" <eric.parkerthedross (AT) virgin (DOT) net> wrote in message
news:ScSeb.4895$QH3.2409 (AT) newsfep4-winn (DOT) server.ntli.net...


"Tiglath" <tiglath (AT) tiglath (DOT) net> wrote in message
news:blf9ho$q0e$1 (AT) bob (DOT) news.rcn.net...


I run Oracle 8.1.7.2 on in AIX 4..3.3.

When I run sqlplus and use ! or host to spawn a shell and execute an AIX
command my environment and aliases don't seem to be present.

How can incorporate the user environment to AIX commands run from


sqlplus?


Thanks.




Tiglath

Are they there if you spawn a shell directly, independent of sqlplus ?




Thank you for your reply.

Yes, all the aliases in .kshrc are present when I spawn a new ksh outside
sqlplus, but missing within sqlplus.



Why would you expect it to be otherwise?

--
Daniel Morgan
http://www.outreach.washington.edu/e...ad/oad_crs.asp
http://www.outreach.washington.edu/e...oa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)




Reply With Quote
  #5  
Old   
Tiglath
 
Posts: n/a

Default Re: How to Get User Environment in Sqlplus? - 10-02-2003 , 02:10 PM




"Eric Parker" <eric.parkerthedross (AT) virgin (DOT) net> wrote

Quote:
"Tiglath" <tiglath (AT) tiglath (DOT) net> wrote in message
news:blf9ho$q0e$1 (AT) bob (DOT) news.rcn.net...

I run Oracle 8.1.7.2 on in AIX 4..3.3.

When I run sqlplus and use ! or host to spawn a shell and execute an AIX
command my environment and aliases don't seem to be present.

How can incorporate the user environment to AIX commands run from
sqlplus?

Thanks.



Tiglath

Are they there if you spawn a shell directly, independent of sqlplus ?

Thank you for your reply.

Yes, all the aliases in .kshrc are present when I spawn a new ksh outside
sqlplus, but missing within sqlplus.









Reply With Quote
  #6  
Old   
Tiglath
 
Posts: n/a

Default Re: How to Get User Environment in Sqlplus? - 10-09-2003 , 01:00 PM




"Daniel Morgan" <damorgan@x.washington.edu> wrote

Tiglath wrote:

"Eric Parker" <eric.parkerthedross (AT) virgin (DOT) net> wrote

"Tiglath" <tiglath (AT) tiglath (DOT) net> wrote

I run Oracle 8.1.7.2 on in AIX 4..3.3.

When I run sqlplus and use ! or host to spawn a shell and execute an AIX
command my environment and aliases don't seem to be present.

How can incorporate the user environment to AIX commands run from
sqlplus?
Thanks.


Tiglath

Are they there if you spawn a shell directly, independent of sqlplus ?


Thank you for your reply.

Yes, all the aliases in .kshrc are present when I spawn a new ksh outside
sqlplus, but missing within sqlplus.

Quote:
Why would you expect it to be otherwise?

1. Because the user having the problem reports that such was the standard behaviour until somehow it stop working.

2. Because it is the intelligent thing to do. If you exec the ksh it certainly doesn't bring the environment, but the exec system call has plenty of provisions for doing so.

Why would you expect that it is sensible to disconnect from the environment when you use the shell from within sqlplus?








--
Daniel Morgan
http://www.outreach.washington.edu/e...ad/oad_crs.asp
http://www.outreach.washington.edu/e...oa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.