I am connecting to Oracle database server using R. While i try to fetch the data, I am getting error as
Error in .oci.fetch(res, as.integer(n)) :
ORA-01805: possible error in date/time operation
I dont have oracle skill set, however i connect to the database only for fetching the data.
If you need any other information, I am ready to provide.
Also if you think that i posted this question in an in appropriate tag, kindly point me the right tag. Thank you in advance.
** EDIT ** Posting some more information:
This is the code and table details(masked) that i use to connect oracle from R
drv <- dbDriver("Oracle")
host <- "xyzdbqa"
port <- nnnnn
sid <- "abc1"
connect.string <- paste(
"(DESCRIPTION=",
"(ADDRESS=(PROTOCOL=tcp)(HOST=", host, ")(PORT=", port, "))",
"(CONNECT_DATA=(SID=", sid, ")))", sep = "")
con <- dbConnect(drv, username = "xyz",password = "xyz1",dbname=connect.string)
query.string <- paste ( "SELECT * FROM data_base_Table WHERE VALUE_DATE='10-dec-2015'",
sep = "")
print('Connection Established')
rs_testdata <- dbSendQuery(con,query.string)
print('Query Sent')
test_data <- fetch(rs_testdata)