1

I am not sure if this question has surfaced before but i am not able to write data to a different other than mine using dbwriteTable() even if i have write access to others schema.

Below are the things i have tried

dbWriteTable(conn=,name= "SCHEMA.TABLE",df,overwrite=T,append=T,row.names=F)
dbWriteTable(conn=,name= "schema.table",df,overwrite=T,append=T,row.names=F)
dbWriteTable(conn=,name= c("SCHEMA","TABLE"),df,overwrite=T,append=T,row.names=F)

Let me know if i am doing something wrong

1 Answers1

0

In ROracle dbWritetable there is param schema

dbWriteTable(conn, name, value, row.names = FALSE, overwrite = FALSE,
             append = FALSE, ora.number = TRUE, schema = NULL, date = FALSE, ...)

schema A case-sensitive character string specifying a schema name (or a vector of character strings for dbListTables).

You need to specify it

Batanichek
  • 7,761
  • 31
  • 49