Replies: 4 comments 1 reply
-
Could someone help please? I have the same question |
Beta Was this translation helpful? Give feedback.
-
you can use unix socket in case of linux machine or windows authentication in case of windows |
Beta Was this translation helpful? Give feedback.
-
for os authentication windows is supported not linux urlOptions := map[string]string {
"SID": "YOUR SID",
"UNIX SOCKET": "your socket file", // for example /usr/tmp/.oracle/sEXTPROC1
}
// no service name because you are using SID otherwise use service name
conn, err := sql.Open("127.0.0.1", 1521, "", user, password, urlOptions); |
Beta Was this translation helpful? Give feedback.
-
Thank you again and thanks for this great package. The socket would not work either in my case because the main purposes are to not have to provide a password and/or to connect when I do not have a listener running. The socket still needs it. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Is it possible to connect to a local instance, which maybe does not have a listener running, similar to the below?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions