Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8198747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:01:00+00:00 2026-06-07T06:01:00+00:00

I am using the Oracle SQL developer to do some work: extract data to

  • 0

I am using the Oracle SQL developer to do some work: extract data to CSV files and then analyze the data in R. I want to automate this, using R to do the querys and the analysis.
I have used R to connect to other databases: SQL server, MySQL, Postgres, but I am finding a lot of complexities to connect it to Oracle.

So, I want to connect to an Oracle 11g database from R in windows. I tried RODBC, but first I have to setting the ODBC following this instructions:

How do I connect to an Oracle Database in R?

The DBA give to me the following: UserId, Password, Host, Port and SID

In the “Oracle ODBC Driver Configuration” window I write the following:

Data Source Name: SID
Description: Oracle ODBC
TNS Service Name: host:port/SID
UserID: UserId

But I receive this error:

    Unable to connect
    SQLState = S1000
    [Oracle]{ODBC][Ora]ORA-12514: TSN:listener does not currently know of service   
    requested in connect descriptor

So, my question is: How I can connect to Oracle from R? Is there another way? What I am doing wrong?

Thanks in advance…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T06:01:01+00:00Added an answer on June 7, 2026 at 6:01 am

    I connect to Oracle using RODBC quite often at work. Using Windows, I setup an ODBC connection to the DB prior to connecting from within R. This allows you to check your connection first.

    After you are all set, I then connect with a command like this:

    ch <- odbcConnect("SAVED_ODBC_NAME_HERE", "USER", "PWD")
    

    This creates a channel to the Oracle Database.

    Hope that helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to import some data (using oracle sql developer) from a .csv file
In Oracle SQL Developer, one can list the data in a table using the
I've been creating stored procedures using Oracle SQL developer. For some reason, one of
I'm using Oracle SQL Developer to query an Oracle DB (not sure which version
I am using Oracle SQL Developer, but I am having an issue seeing results
I'm using Oracle SQL Developer. I'd like to key in dates with hours and
I'm quite new to PL/SQL, and am using Oracle SQL Developer to write a
I'm using oracle 11g sql developer I have a varchar2 column with dates as
I am using Oracle SQL Developer in a linux environment to connect to an
I am using Oracle SQL Developer and trying to export a table to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.