Comments (10)
@klauern ok, it seems that a lack of VC++ won't be a problem lol. Can you please check that:
- Your Oracle client is 64 bit
- C:\instantclient_12_1 is in your PATH
I managed to reproduce the exact same error (exit status 3221225595) by putting only the 32 bit version in my PATH and trying to run with 64 bit Go. When I removed it from PATH I got error 3221225781 instead.
from ora.
Hi Nick,
Can you try resetting your env variables using forward slashes? I think Go is used to unix format only. For example, for your installation:
CGO_CFLAGS=-IC:/instantclient_12_1/sdk/include/
CGO_LDFLAGS=C:/instantclient_12_1/oci.dll
If that doesn't work I would try the TDM GCC compiler if you aren't already.
Let me know how it goes.
Thank you,
Rana
from ora.
@klauern do you have msvcr100.dll (64 bit) somewhere in your PATH? If not, try installing this: http://www.microsoft.com/en-us/download/details.aspx?id=14632
from ora.
Maybe this is 'cause we now (since 954d56e) automatically call ora.Register, and if the DLL is not loadable, then it panics.
The cause is the missing/misconfigured DLL, but the symptom (error on import) is 'cause the automatic import calls OpenEnv right on import.
from ora.
@rana I changed it to forward slashes (/), but the same result came back
@ricsmania I tried downloading that, but I got an error
from ora.
As for what I do have installed, here's the list of Visual C++ things:
from ora.
Ah, that did it. I didn't have c:\instantclient_12_1
in my path, and--because it was pushed to my machine from IT-upon-high--I had a much older (and probably 32-bit) c:\ORACLE\ora102
in my path as well.
from ora.
The fix for me was just ensuring that the C:\instantclient_12_1
preceded other things in my path and the import worked. I still have some issues with my code, but I don't get the error anymore.
from ora.
I don't see anything in the installation instructions about putting that in my path, so that could be why things didn't work. I simply downloaded and unzipped the instant client on my computer and set those two CGO_
flags.
from ora.
Glad to hear it worked @klauern. Maybe it's not in the installation instructions because this is not required to build the application, only to run it. But a reminder there would definitely help.
from ora.
Related Issues (20)
- How to get the result of a function HOT 5
- Package 'oci8' has no Name: field HOT 4
- LastInsertId is returning 0, when using database/sql package with oracle driver
- exemple
- Getting error in the.Next() method HOT 5
- sql db.Exec fail to insert "" to blob,runtime error: index out of range HOT 2
- Dependencies HOT 3
- When run the program get That can not find bind point of OCIBindByPos2 in the dynamic link library HOT 8
- My code makes de select and prints <nil> for each row HOT 5
- Build in Bitbucket Pipelines HOT 2
- Stmt.exeC Env.ociError ORA-03135: connection lost contact\nProcess ID: 61366\nSession ID: 2867 Serial number: 6006 HOT 3
- Error during go get HOT 6
- Cannot build with instaclient 11.1 HOT 3
- Data Cartridge Development support HOT 3
- Support AQ HOT 1
- time.Time shows <nil> even if the value is present in the DB HOT 7
- remove lock on break HOT 1
- I am geting BLOB fields with extra content HOT 1
- v4.1.15 Data chaos bug HOT 1
- MAC OS ARM64
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ora.