Solved

Oracle11g: new install: sqlplus: 'error while loading shared libraries...' any ideas?

Posted on 2011-03-09
8
874 Views
Last Modified: 2012-05-11
Hello Experts,

I just installed Oracle11g R2. Now, trying to connect via sqlplus to start instance of db. but I get error below, any ideas what the problem may be?

[oracle@oracle bin]$ ./sqlplus "/ as sysdba"
./sqlplus: error while loading shared libraries: /oracle/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied

thanks for all of your help...

regards,
0
Comment
Question by:epifanio67
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 4

Expert Comment

by:Alex Matzinger
ID: 35089025
this may be a SELinux error if you are on Linux...try disabling it and see if that works.  If you aren't on linux...what operating system are you using?
0
 

Author Comment

by:epifanio67
ID: 35089448
thank you expert,

I just disable it; but still getting same results...
these are all variables set:
ORACLE_SID=orcl
ORACLE_BASE=/home/oracle/app/oracle
ORACLE_HOME=/oracle
TMPDIR=/oracle/tmp
TMP=/oracle/tmp
LD_LIBRARY_PATH=/oracle/bin:$PATH

any other ideas?

thanks so much....

regards,
0
 
LVL 4

Expert Comment

by:Alex Matzinger
ID: 35089481
Try running this command:(again if you already did it)

setenforce 0

Open in new window


and then typing
tnsping orcl

Open in new window


and post your results back here
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:epifanio67
ID: 35089622
thank you experts,

same error:
./tnsping: error while loading shared libraries: /oracle/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied

odd... there was no issues with the install and/or creation of db
0
 
LVL 4

Expert Comment

by:Alex Matzinger
ID: 35089654
Ok, you need to log in as root and run this command

getenforce 

Open in new window


and post the results back here
0
 

Author Comment

by:epifanio67
ID: 35089688
thank you expert,

[root@oracle bin]# /usr/sbin/getenforce
Enforcing

don't understand... I update /etc/selinux/conf

0
 
LVL 4

Accepted Solution

by:
Alex Matzinger earned 500 total points
ID: 35089708
ok, stay logged in as root(or re log in as root) and re run these two commands.
setenforce 0

getenforce
 

Open in new window


if getenforce reports Permissive or disabled at that time, then try logging into SQL plus again.  If gentforce still reports enforcing then post back here with your exact version of linux.
0
 

Author Closing Comment

by:epifanio67
ID: 35089787
thank you experts so much...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with Oracle IF statment 5 49
how to tune the query 17 82
Need help installing oracle client,it is not installing. 3 54
Automate an Oracle update in Excel 7 69
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question