I get the given below error, when I connect localhost
(docker - oracle-12.2.0.1) using Go. Same connection is working fine when I connect by table plus
. Please suggest me to resolve this issue.
Code
conn, err := sql.Open("oracle", "oracle://SYS:Oradoc_db1@localhost/ORCLPDB1.localdomain")
if err != nil {
fmt.Println("Can't open the driver", err)
return
}
Error1
ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
Code
conn, err := sql.Open("oracle", "oracle://SYSDBA:Oradoc_db1@localhost/ORCLPDB1.localdomain")
if err != nil {
fmt.Println("Can't open the driver", err)
return
}
Error2
ORA-01017: invalid username/password; logon denied