Skip to content

could not open dataset ORA-01013: user requested cancel of current operation #474

Answered by aoticombr
aoticombr asked this question in Q&A
Discussion options

You must be logged in to vote

sorted out...

/*
CONNECTION TIMEOUT = RESPONSIBLE FOR THE QUERY OPEN TIME
IF THIS TIME PASSES HE WILL SEND A COMMAND TO TAKE DOWN
*/
var (
minutos int64
minutos_str string
)
minutos = int64(time.Minute * 60) //60 minutos
minutos_str = strconv.FormatInt(minutos, 10) //convertendo para string
url := fmt.Sprintf("oracle://%s:%s@%s:%d/%s/?CONNECTION TIMEOUT=%s",
d.User, d.Pass, d.Host, d.Port, d.Sid, minutos_str)
return url

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aoticombr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant