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

Connect "/ as sysdba" In Linux #560

Open
PaulWalkerUK opened this issue May 28, 2024 · 1 comment
Open

Connect "/ as sysdba" In Linux #560

PaulWalkerUK opened this issue May 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@PaulWalkerUK
Copy link

In Linux, I can logon to a local database with SQL*Plus using sqlplus / as sydba. I'm trying to do similar with this package.

I can make it work by specifying the username and password:

hostname := "myhostname"
port := 1521
service := ""
username := "sys"
password := "correct_password"

urlOptions := map[string]string{
	"SID":           "MYSID",
	"dba privilege": "sysdba",
}

connectionString := go_ora.BuildUrl(hostname, port, service, username, password, urlOptions)

I've tried various combinations of no password/any password, setting "AUTH TYPE": "OS" etc but haven't managed to find anything that works without specifying the sys password.

Is there a way I can connect as SYS using this package similar to sqlplus / as sysdba ?

@sijms
Copy link
Owner

sijms commented Jul 8, 2024

still os authentication doesn't work with linux (only windows)

@sijms sijms added the enhancement New feature or request label Jul 14, 2024
@sijms sijms changed the title Connect "/ as sysdba" Connect "/ as sysdba" In Linux Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants