Re: [Spacewalk-devel] symlink of sqlplus

2008-12-12 Thread Jan Pazdziora
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?

-- 
Jan Pazdziora
Satellite Engineering, Red Hat

___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel


Re: [Spacewalk-devel] symlink of sqlplus

2008-12-12 Thread Michael Mraka
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.


--
Michael Mráka
Satellite Engineering, Red Hat

___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel


Re: [Spacewalk-devel] symlink of sqlplus

2008-12-12 Thread Jan Pazdziora
On Fri, Dec 12, 2008 at 11:07:30AM +0100, Michael Mraka wrote:
 % 
 % 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.

Hmmm, this one seems to have been built by Oracle yet it has the
/usr/bin/sqlplus thing in it:

# rpm -qi oracle-instantclient-sqlplus-10.2.0.4-1
Name: oracle-instantclient-sqlplus  Relocations: (not relocatable)
Version : 10.2.0.4  Vendor: Oracle Corporation
Release : 1 Build Date: Sun 17 Feb 2008 
09:59:52 AM CET
Install Date: Fri 12 Dec 2008 10:18:32 AM CET  Build Host: 
stamc08.us.oracle.com
Group   : Applications/File Source RPM: 
oracle-instantclient-sqlplus-10.2.0.4-1.src.rpm
Size: 2509293  License: Oracle
Signature   : (none)
Packager: Nobody nob...@oracle.com
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-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
# 

-- 
Jan Pazdziora
Satellite Engineering, Red Hat

___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel