Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to get data from OracleDatabase to SQL Server automaticly

How to get data from OracleDatabase to SQL Server automaticly

Scheduled Pinned Locked Moved Database
databasetutorialsql-serveroraclesysadmin
11 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H hmanhha

    Hi all. I Have a SQL server 2008 DB.I also have some Oracle Database.Now I Want to get data from Oracle DB to SQL server DB. I also read some post about link server but I still not success connecting to Oracle DB. For example some information about oracle DB that I can connect by using SQL developer IP:10.149.35.132 Username:abc pass:bcd. Instance:bms

    CHill60C Offline
    CHill60C Offline
    CHill60
    wrote on last edited by
    #2

    Instead of posting your connection information try letting us know how you tried to connect and what went wrong

    H 1 Reply Last reply
    0
    • CHill60C CHill60

      Instead of posting your connection information try letting us know how you tried to connect and what went wrong

      H Offline
      H Offline
      hmanhha
      wrote on last edited by
      #3

      Thanks for your reply. I Have try some action to add linked server to Oracle DB but I failed.If anybody have done please help me. Chat with me and i will give you Teamviewer ID to see. Thanks.

      H 1 Reply Last reply
      0
      • H hmanhha

        Thanks for your reply. I Have try some action to add linked server to Oracle DB but I failed.If anybody have done please help me. Chat with me and i will give you Teamviewer ID to see. Thanks.

        H Offline
        H Offline
        hmanhha
        wrote on last edited by
        #4

        THe error here The linked server has been created but failed a connection test. Do you want to keep the linked server? ------------------------------ ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) ------------------------------ SQL Server Network Interfaces: Connection string is not valid [87]. OLE DB provider "SQLNCLI10" for linked server "BIM" returned message "Login timeout expired". OLE DB provider "SQLNCLI10" for linked server "BIM" returned message "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.". (Microsoft SQL Server, Error: 87) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1617&EvtSrc=MSSQLServer&EvtID=87&LinkId=20476

        CHill60C 1 Reply Last reply
        0
        • H hmanhha

          THe error here The linked server has been created but failed a connection test. Do you want to keep the linked server? ------------------------------ ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) ------------------------------ SQL Server Network Interfaces: Connection string is not valid [87]. OLE DB provider "SQLNCLI10" for linked server "BIM" returned message "Login timeout expired". OLE DB provider "SQLNCLI10" for linked server "BIM" returned message "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.". (Microsoft SQL Server, Error: 87) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1617&EvtSrc=MSSQLServer&EvtID=87&LinkId=20476

          CHill60C Offline
          CHill60C Offline
          CHill60
          wrote on last edited by
          #5

          You've provided the wrong credentials to connect

          H 1 Reply Last reply
          0
          • CHill60C CHill60

            You've provided the wrong credentials to connect

            H Offline
            H Offline
            hmanhha
            wrote on last edited by
            #6

            I can connect to Oracle now.The first Oracle DB is OK, but now I want to connect to two or more oracle at the same time. The second ORalce is fail.

            CHill60C 1 Reply Last reply
            0
            • H hmanhha

              I can connect to Oracle now.The first Oracle DB is OK, but now I want to connect to two or more oracle at the same time. The second ORalce is fail.

              CHill60C Offline
              CHill60C Offline
              CHill60
              wrote on last edited by
              #7

              As I implied earlier, we can't help if we don't know what you are doing. If the 2nd linked server connection failed with the same error, then you are supplying the wrong credentials. Have a read of this and see if it helps How to setup linked servers for SQL Server and Oracle 64 bit client[^]

              H 2 Replies Last reply
              0
              • CHill60C CHill60

                As I implied earlier, we can't help if we don't know what you are doing. If the 2nd linked server connection failed with the same error, then you are supplying the wrong credentials. Have a read of this and see if it helps How to setup linked servers for SQL Server and Oracle 64 bit client[^]

                H Offline
                H Offline
                hmanhha
                wrote on last edited by
                #8

                I Can connect to one OracleDB now.Tomorrow I Will try the link you post and connect to the second Oracle DB and report here.Thanks for your help.

                1 Reply Last reply
                0
                • CHill60C CHill60

                  As I implied earlier, we can't help if we don't know what you are doing. If the 2nd linked server connection failed with the same error, then you are supplying the wrong credentials. Have a read of this and see if it helps How to setup linked servers for SQL Server and Oracle 64 bit client[^]

                  H Offline
                  H Offline
                  hmanhha
                  wrote on last edited by
                  #9

                  The tnsnames.ora is here PMCalculate = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.138)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = NMS) ) ) BIM = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.12)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = nms) ) ) BIM is OK, PMCalculate is fail Do I need to restart something each time I add a DB to tnsnames.ora

                  CHill60C 1 Reply Last reply
                  0
                  • H hmanhha

                    The tnsnames.ora is here PMCalculate = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.138)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = NMS) ) ) BIM = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.12)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = nms) ) ) BIM is OK, PMCalculate is fail Do I need to restart something each time I add a DB to tnsnames.ora

                    CHill60C Offline
                    CHill60C Offline
                    CHill60
                    wrote on last edited by
                    #10

                    I didn't think you had to do a restart each time, but it might be worth trying. But first, if you take BIM out of the .ORA does PMCalculate still fail? I notice SERVICE_NAME is in capitals for PMCalculate but lower-case for BIM ... is there a case-sensitivity issue here? Are you sure that the Oracle Server on Host 192.168.2.138 is listening on the default port (1521)? (Reference in case you need to check ... Managing Oracle Database Port Numbers[^]) Beyond that I'm running out of ideas, sorry.

                    H 1 Reply Last reply
                    0
                    • CHill60C CHill60

                      I didn't think you had to do a restart each time, but it might be worth trying. But first, if you take BIM out of the .ORA does PMCalculate still fail? I notice SERVICE_NAME is in capitals for PMCalculate but lower-case for BIM ... is there a case-sensitivity issue here? Are you sure that the Oracle Server on Host 192.168.2.138 is listening on the default port (1521)? (Reference in case you need to check ... Managing Oracle Database Port Numbers[^]) Beyond that I'm running out of ideas, sorry.

                      H Offline
                      H Offline
                      hmanhha
                      wrote on last edited by
                      #11

                      Thanks you. The other is not Service Name, SID. Everything is ok now.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups