Configuring Red Hat Enterprise Linux AS release 4 to run Oracle 11g sqlldr

I have Oracle 11g installed on linux. I want to use sqlldr on the linux box.

However right now Linux does not recognize sqlldr utility, i will have to configure linux box to accomodate the Oracle installation.

How do i do that?

Here is where ORACLE_HOME and other parameters:
ORACLE_HOME=/local/apps/oracle/product/11G/
SQLLDR=$ORACLE_HOME/bin/sqlldr
gram77Asked:
Who is Participating?
 
woolmilkporcCommented:
Which user are you logged in as?
During Oracle installation you should have been instructed to create a particular userid to become the database adminstrator userid.
The home dir of this user should contain all you need, including something like "oraenv" or "dbenv" or even .profile, .kshrc or .cshrc ...
Please check!
If no luck, add manually to your .profile
export ORACLE_HOME=/local/apps/oracle/product/11G
export $ORACLE_SID=[your_sid]
export ORA_NLS=/local/apps/oracle/product/11G/nls/data
export PATH=$PATH:$ORACLE_HOME/bin  
and see how far you will get with this. Replace [your_sid] with your Oracle SID.
0
 
woolmilkporcCommented:
Hi,
did you add $ORACLE_HOME/bin to your PATH?
Issue "echo $PATH" to check.
If it's not there, issue
export PATH=$PATH:$ORACLE_HOME/bin
and add this statement to your .profile.
wmp
0
 
gram77Author Commented:
Even ORACLE_HOME is not recognized.

echo $ORACLE_HOME shows nothing..

Do i need to do something here too?
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
gram77Author Commented:
woolmilkporc:
It worked. Now I am able to use sqlldr.

Do i have to issue these exports always, or will this setting persist between sessions?

I need to make this setting permanent, what can i do?

0
 
woolmilkporcCommented:
As I told you - add the lines I mentioned above to the .profile initialization file in the home directory of the user you're logged in as when running e.g. sqlldr.

Don't forget to log out and log in again, to have your changes take effect.

wmp
0
 
gram77Author Commented:
I do not have my home directory set up. i.e /home/gram77.
0
 
woolmilkporcCommented:
What do you mean with "not ... set up"? Which is gram77's home as configured in /etc/passwd?
If the directory doesn't exist, create it (as root) and give its ownership to gram77 (chown...)
If there is no .profile, either create a new file named .profile containing just the above lines, or copy the skeleton from /etc/skel and add these lines to it. Don't forget to set ownership (gram77) and execute permission.
wmp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.