Try code like:
library(DBI) library(ROracle) drv <- Oracle() con <- dbConnect(drv, 'cj', 'welcome', 'localhost:1521/orclpdb1') dbGetQuery(con,"select count(*) from dual")
The connect string components are related to the
{host}:1521/?service_name
values you used with SQLAlchemy. Use a TNS alias or Easy Connect String, the same as other C based Oracle drivers, e.g. https://cx-oracle.readthedocs.io/en/latest/user_guide/connection_handling.html#connection-stringsThe current ROracle code is at https://www.oracle.com/database/technologies/roracle-downloads.html There are some packaging glitches with uploading to CRAN and the CRAN maintainers haven’t been responsive about resolving them.
ROracle still needs Oracle Client libraries such as from Oracle Instant Client.
CLICK HERE to find out more related problems solutions.