Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to Oracle using a Service name #168

Open
raikhan opened this issue Feb 24, 2025 · 0 comments
Open

Connecting to Oracle using a Service name #168

raikhan opened this issue Feb 24, 2025 · 0 comments

Comments

@raikhan
Copy link

raikhan commented Feb 24, 2025

Hi,

I have to connect to an OracleDB using the Service name, not SID. The URL I am trying to connect with looks like this:

oracle://user:password@oracle_hostname:port/ServiceName

The error I am getting is a panic similar to the one mentioned in #107 (I suspect the cause is the same - unsupported provider):


panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xf244cf6]

goroutine 20 [running]:
github.com/jorgerojas26/lazysql/components.(*ConnectionSelection).Connect(0xc0000122f0, {{0xc000714ec7, 0x9}, {0xc000727a00, 0x3a}, {0xc000714ed0, 0x6}, {0x0, 0x0}, {0x0, ...}, ...})
github.com/jorgerojas26/lazysql/components/connection_selection.go:199 +0x1576
created by github.com/jorgerojas26/lazysql/components.NewConnectionSelection.func1 in goroutine 1
github.com/jorgerojas26/lazysql/components/connection_selection.go:87 +0x3b9

Is connecting to Oracle with the Service name supported and if so, what would be the correct structure of the URL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant