Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

OCIEnvCreate() returned -1

Posted on 2006-11-02
4
Medium Priority
?
467 Views
Last Modified: 2010-05-18
I am trying to connect a 9.2 Oracle client to a 10g server but am receiving OCIEnvCreate() returned -1.  I am using a utility that uses this information to connect to the database.  The utility creates tables using the connection info.  The utility justs sits there spinning it's wheels, but should be instanteanous.  I checked the error log and found this info.  I think this error may have something to do with permissions or not linking properly to the correct libraries.  I am stuck...any ideas??
0
Comment
Question by:mrmecho
[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
  • 2
  • 2
4 Comments
 
LVL 18

Expert Comment

by:rbrooker
ID: 17862572
Hi,

here you go :) you are right, its a permissions issue.

http://meandering-blog.com/archive/2004/07/02/287.aspx

good luck :)
0
 

Author Comment

by:mrmecho
ID: 17862951
Thanks for the update...forgot to mention I'm on a linux box.  I assume it's still a permissions issue there as well??
I have /opt/oracle/product/9.2/ for $ORACLE_HOME.  There's a bin/ directory under this path.  Do I need to chmod these permissions or chown??

Thanks,
Mark
0
 
LVL 18

Accepted Solution

by:
rbrooker earned 2000 total points
ID: 17863177
Hi,

chmod.

the user that runs the utility needs read access to the bin directory.  you could also add the user into the dba group maybe..
0
 

Author Comment

by:mrmecho
ID: 17868622
Thanks,
    Your answer led to the solution!  My parent directory /opt in /opt/oracle/product/9.2/bin didn't have execute permissions to run the client.  The bin directory had all the right permissions and ownership.  Thanks so much!

Regards,
Mark
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.

721 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