Connection to oracle 11g

  • Hi All,

    When I trying to connect the oracle 11g from SSIS package

    It shows error like below

    ORA-12154:TNS:Could not reslove service name

    How to fix this problem

    Thanks

  • Do you have oracle clients on your machine to connect to oracle database like SQL PLUS or any other?

  • Thanks for your replay

    I have oracle client on my machine

  • sqlserver8650 (2/1/2012)


    Thanks for your replay

    I have oracle client on my machine

    And did you configure the TNS names.

    There should be a TNSNAMES.ORA file somewhere in your Oracle folder that contains all the connection info for the service names.

    Example:

    myTNSName = (DESCRIPTION=

    (ADDRESS=(PROTOCOL=tcp)(HOST=myServerName)(PORT=1526))

    (CONNECT_DATA=(SID=myTNSName))

    )

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • sqlserver8650 (2/1/2012)


    Thanks for your replay

    I have oracle client on my machine

    Out of curiosity, were you able to connect to that oracle database using those SQL Client tools such as SQL PLUS.

    I wonder what else you are missing... because, I use microsoft OLEDB provider for oracle and I provide only Server name, user name, password. Thats it. Every thing works.

  • AluburaJ (2/2/2012)


    sqlserver8650 (2/1/2012)


    Thanks for your replay

    I have oracle client on my machine

    Out of curiosity, were you able to connect to that oracle database using those SQL Client tools such as SQL PLUS.

    I wonder what else you are missing... because, I use microsoft OLEDB provider for oracle and I provide only Server name, user name, password. Thats it. Every thing works.

    But you probably installed and configured the Oracle client, right?

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Yes.

  • Koen Verbeeck (2/2/2012)


    AluburaJ (2/2/2012)


    sqlserver8650 (2/1/2012)


    Thanks for your replay

    I have oracle client on my machine

    Out of curiosity, were you able to connect to that oracle database using those SQL Client tools such as SQL PLUS.

    I wonder what else you are missing... because, I use microsoft OLEDB provider for oracle and I provide only Server name, user name, password. Thats it. Every thing works.

    But you probably installed and configured the Oracle client, right?

    YES.

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply