DBI Package issue in Server .R file

unable to find an inherited method for function ‘dbGetQuery’ for signature ‘"OraConnection", "shiny.render.function

getting above error when I am trying to execute below statement in server.R

Output$tbl<- renderTable({con2 <- dbConnect(drv, username = XXX
password = XXXX, dbname = db1)
dbGetQuery(con2, "Select * from EMP")})