Solved

OCIEnvCreate() returned -1

Posted on 2006-11-02
4
453 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 500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Suggested Courses

630 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