Skip to content

Commit

Permalink
fix ora-12514
Browse files Browse the repository at this point in the history
  • Loading branch information
sijms committed Dec 3, 2020
1 parent e4336b6 commit c7abe0e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions network/connect_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,18 @@ func (op *ConnectionOption) ConnectionData() string {
FulCid := "(CID=(PROGRAM=" + op.ClientData.ProgramPath + ")(HOST=" + op.ClientData.HostName + ")(USER=" + op.ClientData.UserName + "))"
address := "(ADDRESS=(PROTOCOL=" + op.Protocol + ")(HOST=" + op.Host + ")(PORT=" + strconv.Itoa(op.Port) + "))"
result := "(CONNECT_DATA="
if op.ServiceName != "" {
result += "(SERVICE_NAME=" + op.ServiceName + ")"
if op.SID != "" {
result += "(SID=" + op.SID + ")"
} else {
if op.SID != "" {
result += "(SID=" + op.SID + ")"
}
result += "(SERVICE_NAME=" + op.ServiceName + ")"
}
//if op.ServiceName != "" {
//
//} else {
// if op.SID != "" {
//
// }
//}
if op.InstanceName != "" {
result += "(INSTANCE_NAME=" + op.InstanceName + ")"
}
Expand Down

0 comments on commit c7abe0e

Please sign in to comment.