On Fri, Dec 12, 2008 at 11:07:30AM +0100, Michael Mraka wrote:
> 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
> 
> Yes, if we are talking about satellite's oracle-instantclient*rpm which is
> packed by us.
> 
> % oracle-instantclient-sqlplus installed, you'll get dangling symlink.
> % And if you have oracle-instantclient-sqlplus installed, you already
> % have the symlink.
> 
> But no, if we are talking about spacewalk where oracle-instanclient-*rpm
> comes from www.oracle.com. So in spacewalk we use oracle-lib-compat package
> to setup oracle's environment same way as it's in satellite.

That's odd. Because I'm seeing what Jan pointed out as well, 
oracle-instantclient-sqlplus that I have installed puts sqlplus in
/usr/bin (well sqlplus64). And it's the Oracle version:

# rpm -qi oracle-instantclient-sqlplus
Name        : oracle-instantclient-sqlplus  Relocations: (not relocatable)
Version     : 10.2.0.4                          Vendor: Oracle Corporation
Release     : 1                             Build Date: Wed 12 Mar 2008 02:38:47
AM EDT
Install Date: Mon 17 Nov 2008 01:27:29 PM EST      Build Host:
stbbq02.us.oracle.com
Group       : Applications/File             Source RPM:
oracle-instantclient-sqlplus-10.2.0.4-1.src.rpm
Size        : 2439559                          License: Oracle
Signature   : (none)
Packager    : Nobody <[email protected]>
URL         : http://www.oracle.com/
Summary     : SQL*Plus for Instant Client.
Description :
Instant Client allows you to run your applications without installing the
standard Oracle client or having and ORACLE_HOME.  OCI, OCCI, ODBC, and JDBC
applications work without modification, while using significantly less disk
space than before.  Even SQL*Plus can be used with Instant Client.  No
recompile, no hassle.

This package provides SQL*Plus for Instant Client.

# rpm -ql oracle-instantclient-sqlplus
/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

This is indeed odd behavior.

jesus
-- 
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

Reply via email to