LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-17-2007, 12:44 PM   #1
Slipstream2006
Member
 
Registered: Apr 2006
Posts: 64

Rep: Reputation: 15
Oracle 10g Client on SuSE Linux 10.1


Hi, I'm hoping that someone can give me some general advice about installing applications......and maybe some specific advice about Oracle Client too :-) I've been trying to install it for about 3-months now, but no luck yet. No one on Oracle's forum seems to know how to install Oracle Client it on Linux.

Question 1
The instructions indicate the I need to set ORACLE_HOME by doing this.....
ORACLE_HOME=/opt/oracle/app/oracle
export ORACLE_HOME

And then I can start the console by doing this.....
$ORACLE_HOME/bin/oemapp console

My question is: Won't I need to export the variable each time I re-start my computer? Shouldn't this be in bash_profile instead?
 
Old 01-17-2007, 01:37 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
You add this to the .bashrc, .bash_profile or .profile for the Oracle user you created. I wouldn't make it global in /etc/bashrc or /etc/profile unless I expected every user (including root) to need this setup.

The fact they tell you to issue the commands doesn't prohibit you from putting them in the above files. They're just telling you which variables to set rather than trying to teach you how to set them permanently which would be out of scope for their documentation because it is a basic Linux task.

Example for Oracle (DB server) from my RHEL AS 3 system:

Code:
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
Code:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.1.0/db_1
ORA_CRS_HOME=$ORACLE_BASE/product/10.1.0/crs_1
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:$ORACLE_HOME/jdk/jre/lib/i386:$ORACLE_HOME/jdk/jre/lib/i386/server:$ORACLE_HOME/rdbms/lib
PATH=$PATH:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin
export ORACLE_BASE ORACLE_HOME ORA_CRS_HOME LD_LIBRARY_PATH PATH
export ORACLE_SID=MBLP1
#export ORACLE_SID=mblp1

. .vp
 
Old 01-22-2007, 05:02 AM   #3
Slipstream2006
Member
 
Registered: Apr 2006
Posts: 64

Original Poster
Rep: Reputation: 15
jlightner,

thanks for answering my post. Makes perfect sense. Unfortunately, I can't report on success or failure of my attempt because I'm still getting a really sucky error when I try to install.

Can anyone tell me if it's even possible to install Oracle Client 10g on SuSE 10.1 x86_64 ? If so, does anyone have a definitive list of libraries that I need?

Here are the only instructions I could find. It cryptically mentions "base X libraries." I have no idea what those are.
http://nextre.it/oracledocs/oracle10gR2onSUSE.html



Oh yes, and here's that ubiquitous error that no one seems to be able to fix:

*********************************************************
Output generated from configuration assistant "Oracle Net Configuration Assistant":
UnsatisfiedLinkError exception loading native library: njni10
Exception in thread "main" java.lang.UnsatisfiedLinkError: jniGetOracleHome
at oracle.net.common.NetGetEnv.jniGetOracleHome(Native Method)
at oracle.net.common.NetGetEnv.getOracleHome(Unknown Source)
at oracle.net.common.NetProperties.<init>(Unknown Source)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Mutual of Enumclaw Decreases Costs w/ Oracle 10g, SUSE Linux LXer Syndicated Linux News 0 05-29-2006 11:33 AM
oracle 10g on SUSE 9.3 caulfiek SUSE / openSUSE 4 10-13-2005 09:10 AM
Oracle 10g Client Connection Issue coolamit78 Linux - Networking 2 09-07-2004 08:05 AM
no listener error when trying to connect to oracle 10g on linux from windows client kheldar Linux - Networking 1 07-25-2004 04:00 AM
Which executables are most useful in Oracle 10g Client? deanbrown3d Linux - Newbie 1 07-01-2004 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration