From owner-freebsd-database@FreeBSD.ORG Wed Nov 5 05:09:17 2003 Return-Path: Delivered-To: freebsd-database@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 843F316A4D0 for ; Wed, 5 Nov 2003 05:09:17 -0800 (PST) Received: from partridge.numericable.net (partridge.numericable.net [80.236.0.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CC1E43FBD for ; Wed, 5 Nov 2003 05:09:15 -0800 (PST) (envelope-from vitalis@numericable.fr) Received: (qmail 19812 invoked from network); 5 Nov 2003 13:09:13 -0000 Received: from unknown (HELO [81.220.77.69]) ([81.220.77.69]) (envelope-sender ) by partridge.numericable.net (qmail-ldap-1.03) with SMTP for ; 5 Nov 2003 13:09:13 -0000 From: Vitalis To: database , questions Content-Type: text/plain Message-Id: <1068037754.628.14.camel@sankukai.ice-age.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Wed, 05 Nov 2003 14:09:14 +0100 Content-Transfer-Encoding: 7bit cc: brian@shadowcom.net Subject: "oracle" shell environment X-BeenThere: freebsd-database@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Database use and development under FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2003 13:09:17 -0000 Using http://www.shadowcom.net/freebsd-oracle9i/ how can we deal with the "oracle" shell environment? I mean, due to the linux compatibility mode, there is some Oracle stuff under /compat/linux/etc/, but scritpts and executables expect them to be in /etc. We can modify dbstart et al., but is there another solution? BTW can we (should we) change the default shell of the "oracle" user to something like /compat/linux/bin/*sh? Or can we (should we) launch a /compat/linux/bin/*sh at the end of the .profile or .login? If someone managed to build a good environment for the "oracle" account (default shell, profile) so that it can run all Oracle executables and tools without any problem, please post it! From owner-freebsd-database@FreeBSD.ORG Thu Nov 6 13:28:55 2003 Return-Path: Delivered-To: freebsd-database@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CED3416A4CE for ; Thu, 6 Nov 2003 13:28:55 -0800 (PST) Received: from oughtred.numericable.net (oughtred.numericable.net [80.236.0.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id C71E543FB1 for ; Thu, 6 Nov 2003 13:28:53 -0800 (PST) (envelope-from vitalis@numericable.fr) Received: (qmail 2195 invoked from network); 6 Nov 2003 21:28:52 -0000 Received: from unknown (HELO [81.220.77.69]) ([81.220.77.69]) (envelope-sender ) by oughtred.numericable.net (qmail-ldap-1.03) with SMTP for ; 6 Nov 2003 21:28:52 -0000 From: Vitalis To: questions , database In-Reply-To: <44r80lkycz.fsf@be-well.ilk.org> References: <1068037754.628.14.camel@sankukai.ice-age.org> <44r80lkycz.fsf@be-well.ilk.org> Content-Type: text/plain Message-Id: <1068154131.629.7.camel@sankukai.ice-age.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Thu, 06 Nov 2003 22:28:51 +0100 Content-Transfer-Encoding: 7bit cc: brian@shadowcom.net Subject: Re: "oracle" shell environment X-BeenThere: freebsd-database@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Database use and development under FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2003 21:28:55 -0000 On Thu, 2003-11-06 at 21:58, Lowell Gilbert wrote: > Vitalis writes: > > > Using http://www.shadowcom.net/freebsd-oracle9i/ how can we deal with > > the "oracle" shell environment? I mean, due to the linux compatibility > > mode, there is some Oracle stuff under /compat/linux/etc/, but scritpts > > and executables expect them to be in /etc. We can modify dbstart et al., > > but is there another solution? > > The linux "emulator" searches /compat/linux... before /..., so this > should work fine, as far as I can see. > > > BTW can we (should we) change the default shell of the "oracle" user to > > something like /compat/linux/bin/*sh? Or can we (should we) launch a > > /compat/linux/bin/*sh at the end of the .profile or .login? > > No, again, this should probably just work. > I've noticed the problem with Oracle scripts such as dbstart. It tries something like "cat /etc/oratab". Here's what I get from the oracle account (oratab is in /compat/linux/etc): oracle-bsd> ls /etc/oratab /etc/oratab oracle-bsd> cat /etc/oratab cat: /etc/oratab: No such file or directory oracle-bsd> which cat /bin/cat oracle-bsd> echo $SHELL /compat/linux/bin/bash