Comments (2)
connection string format supported:
conn, err := sql.Open("oracle", "oracle://user:pass@server/service_name")
see description in code page
from go-ora.
The connection string seems correct.
When server or port is incorrect, I get a neat error:
dial tcp: lookup myserver: no such host
dial tcp 10.30.194.77:1571: connectex: No connection could be made because the target machine actively refused it.
When the server and port are correct, I get a panic. The packetData is 12 bytes long, and the panic is issued when retrieving message after the 12th byte.
func newRefusePacketFromData(packetData []byte) *RefusePacket {
if len(packetData) < 12 { // 12
return nil
}
dataLen := binary.BigEndian.Uint16(packetData[10:]) // 356
return &RefusePacket{
packet: Packet{
dataOffset: 12,
length: binary.BigEndian.Uint16(packetData),
packetType: PacketType(packetData[4]),
flag: 0,
},
SystemReason: packetData[9], // 0
UserReason: packetData[8], // 34
message: string(packetData[12 : 12+dataLen]), // crash here!
}
}
from go-ora.
Related Issues (20)
- How to determine reason from disconnect from trace.log HOT 6
- Is there any schedule that supports Oracle ASM? HOT 2
- Invalid Input Number error HOT 1
- Support driver.Valuer interface in new version HOT 1
- "LOB FETCH: POST" ORA-01013: user requested cancel of current operation HOT 11
- Blocking / Timeout when returning >238 chars HOT 2
- unsupported Scan, storing driver.Value type go_ora.TimeStamp into type *string HOT 1
- Problem with Cascaded Types HOT 2
- TIMEOUT parameters HOT 1
- regarding alter session commands and set define off HOT 2
- Oracle DATE mapped to a UTC time (v2.7.9) HOT 1
- How to change Oracle session parameter value like NLS_TIMESTAMP_FORMAT HOT 2
- Use bulkinsert for clob type data, if the length is greater than 32767, an error will be reported: ORA-03146: invalid buffer length for TTC field HOT 1
- TTC error: received code 28 during response reading after "alter session set container=pdb1" HOT 29
- Querying fields of type NUMBER(20,0) causes ORA-03120 HOT 5
- TIMESTAMP WITH TIME ZONE not equal in 12C and 19C HOT 3
- Issue with Converting Booleans to varchar2(1) Oracle with Valuer Interface using go-ora/v2 v2.7.11 HOT 2
- Oracle Date and Timestamps scan to wrong time.Time zone or wrong time with right zone, respectively. HOT 2
- number type but got string HOT 3
- stmt.AddParam is not exported anymore HOT 2
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 go-ora.