Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!sdd.hp.com!spool.mu.edu!cs.umn.edu!uc!shamash!hare!jcs From: jcs@hare.cdc.com (Jon Stonecash) Newsgroups: comp.databases Subject: Re: Accessing $VARs from ORACLE*FORMS Message-ID: <33065@shamash.cdc.com> Date: 9 May 91 22:09:51 GMT References: <1251@cnw01.storesys.coles.oz.au> Sender: usenet@shamash.cdc.com Reply-To: jcs@hare.udev.cdc.com (Jon Stonecash) Organization: Control Data Production Data Management Technology Center Lines: 39 In article <1251@cnw01.storesys.coles.oz.au> nigel@cnw01.storesys.coles.oz.au (Nigel Harwood) writes: > >Is there any way to access UNIX environmental variables from within >an Oracle FORM ? > >Our Oracle consultant says the only way is via a user exit but this seems >like a great deal of effort for something I would have expected to be >part of standard FORMS. > >Anybody know any other ways ? > The simplest way that comes to mind is to use a here document in a shell script to call SQLPLUS to insert the desired environment values into a table in the data base. The table might look like: create table environment ( env_name char(30) not null, env_value char(100)); The SQLPLUS shell script might contain something like: sqlplus user/password <