On Fri, Dec 12, 2008 at 10:24:15AM +0100, Jan Pazdziora wrote: > On Thu, Dec 11, 2008 at 09:45:47PM -0500, Jesus M. Rodriguez wrote: > > Michael, > > > > Excellent, thanks for doing this. > > > > http://git.fedorahosted.org/git/?p=spacewalk.git;a=commitdiff;h=7c1c8cd0faa52a34db383e7477567bd20971806c > > I'm a bit confused: > > # rpm -ql oracle-instantclient-sqlplus-10.2.0.4-1 > /usr/bin/sqlplus > /usr/lib/oracle/10.2.0.4/client/bin/sqlplus > /usr/lib/oracle/10.2.0.4/client/lib/glogin.sql > /usr/lib/oracle/10.2.0.4/client/lib/libsqlplus.so > /usr/lib/oracle/10.2.0.4/client/lib/libsqlplusic.so > # ls -lad /usr/bin/sqlplus > lrwxrwxrwx 1 root root 43 Dec 12 10:18 /usr/bin/sqlplus -> > /usr/lib/oracle/10.2.0.4/client/bin/sqlplus > > The oracle-instantclient-sqlplus package seems to do that symlink just > fine. If you do it in oracle-lib-compat and do not have the > oracle-instantclient-sqlplus installed, you'll get dangling symlink. > And if you have oracle-instantclient-sqlplus installed, you already > have the symlink. > > Can someone enlighten me?
Interesting. On my 64bit box with oracle-instantclient-sqlplus, I have the following: # rpm -ql oracle-instantclient-sqlplus-10.2.0.4-1 /usr/bin/sqlplus64 /usr/lib/oracle/10.2.0.4/client64/bin/sqlplus /usr/lib/oracle/10.2.0.4/client64/lib/glogin.sql /usr/lib/oracle/10.2.0.4/client64/lib/libsqlplus.so /usr/lib/oracle/10.2.0.4/client64/lib/libsqlplusic.so doing a which I get the one from xe: # which sqlplus /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus # rpm -q --whatprovides /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus oracle-xe-univ-10.2.0.1-1.0 On my 32-bit box I don't have oracle-instantclient-sqlplus at all. It looks like I'm using the sqlplus that comes with Oracle XE. So maybe the right solution is to require oracle-instantclient-sqlplus and do the symlink for /usr/bin/sqlplus ONLY for the 64-bit version i.e. ln -s /usr/bin/sqlplus64 /usr/bin/sqlplus Thanks Jan for keeping an eye on this, I missed it. -- jesus m. rodriguez | [email protected] sr. software engineer | irc: zeus rhn satellite & spacewalk | 919.754.4413 (w) rhce # 805008586930012 | 919.623.0080 (c) +-------------------------------------------+ | "Those who cannot learn from history | | are doomed to repeat it." | | -- George Santayana | +-------------------------------------------+ _______________________________________________ Spacewalk-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-devel
