VB.NET: Unable to connect to an Oracle database server from client app












0














I have 2 laptops (A and B) on the same local networks (Wi-Fi).



I have installed Oracle database 12c r2 on laptop A.



In laptop A I have created a VB.NET application with Visual Studio 2017 that can connect to the Oracle database.



The app works fine on laptop A. It connects to the database and this is my app form, and the connection string I use (192.168.20.98 is my laptop A IP Address):



App working screen, from laptop A



oracle_connection = New OracleConnection(
"Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=" & protocol.Text &
")(HOST=" & host.Text & ")(PORT=" & port.Text &
")))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=" & db_name.Text &
")));User Id=" & user_id.Text & ";Password=" & pswd.Text)


I've also edited my listener.ora and tnsnames.ora located in C:appmustafaproduct12.2.0dbhome_1networkadmin
as the following:



listener.ora:



# listener.ora Network Configuration File: 
C:appmustafaproduct12.2.0dbhome_1networkadminlistener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:appmustafaproduct12.2.0dbhome_1)
(PROGRAM = extproc)
(ENVS =
"EXTPROC_DLLS=ONLY:C:appmustafaproduct12.2.0dbhome_1binoraclr12.dll")
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.98)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)


tnsnames.ora:



# tnsnames.ora Network Configuration File: 
C:appmustafaproduct12.2.0dbhome_1networkadmintnsnames.ora
# Generated by Oracle configuration tools.

DB1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.98)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = db1)
)
)

LISTENER_DB1 =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.98)(PORT = 1521))


ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)


I've edited my Oracle home folder permission to give authenticated users the full access.



So when I move my app to the laptop B and run it to connect to the database on laptop A I got this error:




System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.




Error screen from laptop B



I can't find any solution. Does it require the Oracle database 12c r2 to be installed on my laptop B too?










share|improve this question
























  • No, it isnt the entire oracle client software that is required. It needs just enough of oracle client interface to be able to connect to your server. Do as the stacktrace asks you to - i.e. install oracle client interface.
    – shahkalpesh
    Nov 11 at 17:53










  • @shahkalpesh I'm just feel little Confused , i have to just install oracle client interface on the B laptop right ? could you please give me the exact download link ? there are many download links in oracle website and very similar thinks to download
    – mustafa987
    Nov 11 at 18:27










  • Having two computers connected to the same wifi doesn't mean you have a local network. Try to ping laptop A from laptop B using ping 192.168.20.98 command and tell us what was the result.
    – Pedro Gaspar
    Nov 11 at 19:05










  • hello @PedroGaspar I ping from B to A and get 0% packets loss
    – mustafa987
    Nov 11 at 19:18










  • So you probably have do to do what @shahkalpesh suggested and install just OracleClient on laptop B. Problem is that System.Data.OracleClient is obsolete for some time now, so it's better for you to use ODP.NET from Oracle itself. Take a look at this 3 steps migration article.
    – Pedro Gaspar
    Nov 11 at 19:27


















0














I have 2 laptops (A and B) on the same local networks (Wi-Fi).



I have installed Oracle database 12c r2 on laptop A.



In laptop A I have created a VB.NET application with Visual Studio 2017 that can connect to the Oracle database.



The app works fine on laptop A. It connects to the database and this is my app form, and the connection string I use (192.168.20.98 is my laptop A IP Address):



App working screen, from laptop A



oracle_connection = New OracleConnection(
"Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=" & protocol.Text &
")(HOST=" & host.Text & ")(PORT=" & port.Text &
")))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=" & db_name.Text &
")));User Id=" & user_id.Text & ";Password=" & pswd.Text)


I've also edited my listener.ora and tnsnames.ora located in C:appmustafaproduct12.2.0dbhome_1networkadmin
as the following:



listener.ora:



# listener.ora Network Configuration File: 
C:appmustafaproduct12.2.0dbhome_1networkadminlistener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:appmustafaproduct12.2.0dbhome_1)
(PROGRAM = extproc)
(ENVS =
"EXTPROC_DLLS=ONLY:C:appmustafaproduct12.2.0dbhome_1binoraclr12.dll")
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.98)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)


tnsnames.ora:



# tnsnames.ora Network Configuration File: 
C:appmustafaproduct12.2.0dbhome_1networkadmintnsnames.ora
# Generated by Oracle configuration tools.

DB1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.98)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = db1)
)
)

LISTENER_DB1 =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.98)(PORT = 1521))


ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)


I've edited my Oracle home folder permission to give authenticated users the full access.



So when I move my app to the laptop B and run it to connect to the database on laptop A I got this error:




System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.




Error screen from laptop B



I can't find any solution. Does it require the Oracle database 12c r2 to be installed on my laptop B too?










share|improve this question
























  • No, it isnt the entire oracle client software that is required. It needs just enough of oracle client interface to be able to connect to your server. Do as the stacktrace asks you to - i.e. install oracle client interface.
    – shahkalpesh
    Nov 11 at 17:53










  • @shahkalpesh I'm just feel little Confused , i have to just install oracle client interface on the B laptop right ? could you please give me the exact download link ? there are many download links in oracle website and very similar thinks to download
    – mustafa987
    Nov 11 at 18:27










  • Having two computers connected to the same wifi doesn't mean you have a local network. Try to ping laptop A from laptop B using ping 192.168.20.98 command and tell us what was the result.
    – Pedro Gaspar
    Nov 11 at 19:05










  • hello @PedroGaspar I ping from B to A and get 0% packets loss
    – mustafa987
    Nov 11 at 19:18










  • So you probably have do to do what @shahkalpesh suggested and install just OracleClient on laptop B. Problem is that System.Data.OracleClient is obsolete for some time now, so it's better for you to use ODP.NET from Oracle itself. Take a look at this 3 steps migration article.
    – Pedro Gaspar
    Nov 11 at 19:27
















0












0








0







I have 2 laptops (A and B) on the same local networks (Wi-Fi).



I have installed Oracle database 12c r2 on laptop A.



In laptop A I have created a VB.NET application with Visual Studio 2017 that can connect to the Oracle database.



The app works fine on laptop A. It connects to the database and this is my app form, and the connection string I use (192.168.20.98 is my laptop A IP Address):



App working screen, from laptop A



oracle_connection = New OracleConnection(
"Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=" & protocol.Text &
")(HOST=" & host.Text & ")(PORT=" & port.Text &
")))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=" & db_name.Text &
")));User Id=" & user_id.Text & ";Password=" & pswd.Text)


I've also edited my listener.ora and tnsnames.ora located in C:appmustafaproduct12.2.0dbhome_1networkadmin
as the following:



listener.ora:



# listener.ora Network Configuration File: 
C:appmustafaproduct12.2.0dbhome_1networkadminlistener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:appmustafaproduct12.2.0dbhome_1)
(PROGRAM = extproc)
(ENVS =
"EXTPROC_DLLS=ONLY:C:appmustafaproduct12.2.0dbhome_1binoraclr12.dll")
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.98)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)


tnsnames.ora:



# tnsnames.ora Network Configuration File: 
C:appmustafaproduct12.2.0dbhome_1networkadmintnsnames.ora
# Generated by Oracle configuration tools.

DB1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.98)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = db1)
)
)

LISTENER_DB1 =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.98)(PORT = 1521))


ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)


I've edited my Oracle home folder permission to give authenticated users the full access.



So when I move my app to the laptop B and run it to connect to the database on laptop A I got this error:




System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.




Error screen from laptop B



I can't find any solution. Does it require the Oracle database 12c r2 to be installed on my laptop B too?










share|improve this question















I have 2 laptops (A and B) on the same local networks (Wi-Fi).



I have installed Oracle database 12c r2 on laptop A.



In laptop A I have created a VB.NET application with Visual Studio 2017 that can connect to the Oracle database.



The app works fine on laptop A. It connects to the database and this is my app form, and the connection string I use (192.168.20.98 is my laptop A IP Address):



App working screen, from laptop A



oracle_connection = New OracleConnection(
"Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=" & protocol.Text &
")(HOST=" & host.Text & ")(PORT=" & port.Text &
")))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=" & db_name.Text &
")));User Id=" & user_id.Text & ";Password=" & pswd.Text)


I've also edited my listener.ora and tnsnames.ora located in C:appmustafaproduct12.2.0dbhome_1networkadmin
as the following:



listener.ora:



# listener.ora Network Configuration File: 
C:appmustafaproduct12.2.0dbhome_1networkadminlistener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:appmustafaproduct12.2.0dbhome_1)
(PROGRAM = extproc)
(ENVS =
"EXTPROC_DLLS=ONLY:C:appmustafaproduct12.2.0dbhome_1binoraclr12.dll")
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.98)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)


tnsnames.ora:



# tnsnames.ora Network Configuration File: 
C:appmustafaproduct12.2.0dbhome_1networkadmintnsnames.ora
# Generated by Oracle configuration tools.

DB1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.98)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = db1)
)
)

LISTENER_DB1 =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.98)(PORT = 1521))


ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)


I've edited my Oracle home folder permission to give authenticated users the full access.



So when I move my app to the laptop B and run it to connect to the database on laptop A I got this error:




System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.




Error screen from laptop B



I can't find any solution. Does it require the Oracle database 12c r2 to be installed on my laptop B too?







vb.net oracleclient system.data.oracleclient






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 at 17:50









Pedro Gaspar

503318




503318










asked Nov 11 at 17:41









mustafa987

228




228












  • No, it isnt the entire oracle client software that is required. It needs just enough of oracle client interface to be able to connect to your server. Do as the stacktrace asks you to - i.e. install oracle client interface.
    – shahkalpesh
    Nov 11 at 17:53










  • @shahkalpesh I'm just feel little Confused , i have to just install oracle client interface on the B laptop right ? could you please give me the exact download link ? there are many download links in oracle website and very similar thinks to download
    – mustafa987
    Nov 11 at 18:27










  • Having two computers connected to the same wifi doesn't mean you have a local network. Try to ping laptop A from laptop B using ping 192.168.20.98 command and tell us what was the result.
    – Pedro Gaspar
    Nov 11 at 19:05










  • hello @PedroGaspar I ping from B to A and get 0% packets loss
    – mustafa987
    Nov 11 at 19:18










  • So you probably have do to do what @shahkalpesh suggested and install just OracleClient on laptop B. Problem is that System.Data.OracleClient is obsolete for some time now, so it's better for you to use ODP.NET from Oracle itself. Take a look at this 3 steps migration article.
    – Pedro Gaspar
    Nov 11 at 19:27




















  • No, it isnt the entire oracle client software that is required. It needs just enough of oracle client interface to be able to connect to your server. Do as the stacktrace asks you to - i.e. install oracle client interface.
    – shahkalpesh
    Nov 11 at 17:53










  • @shahkalpesh I'm just feel little Confused , i have to just install oracle client interface on the B laptop right ? could you please give me the exact download link ? there are many download links in oracle website and very similar thinks to download
    – mustafa987
    Nov 11 at 18:27










  • Having two computers connected to the same wifi doesn't mean you have a local network. Try to ping laptop A from laptop B using ping 192.168.20.98 command and tell us what was the result.
    – Pedro Gaspar
    Nov 11 at 19:05










  • hello @PedroGaspar I ping from B to A and get 0% packets loss
    – mustafa987
    Nov 11 at 19:18










  • So you probably have do to do what @shahkalpesh suggested and install just OracleClient on laptop B. Problem is that System.Data.OracleClient is obsolete for some time now, so it's better for you to use ODP.NET from Oracle itself. Take a look at this 3 steps migration article.
    – Pedro Gaspar
    Nov 11 at 19:27


















No, it isnt the entire oracle client software that is required. It needs just enough of oracle client interface to be able to connect to your server. Do as the stacktrace asks you to - i.e. install oracle client interface.
– shahkalpesh
Nov 11 at 17:53




No, it isnt the entire oracle client software that is required. It needs just enough of oracle client interface to be able to connect to your server. Do as the stacktrace asks you to - i.e. install oracle client interface.
– shahkalpesh
Nov 11 at 17:53












@shahkalpesh I'm just feel little Confused , i have to just install oracle client interface on the B laptop right ? could you please give me the exact download link ? there are many download links in oracle website and very similar thinks to download
– mustafa987
Nov 11 at 18:27




@shahkalpesh I'm just feel little Confused , i have to just install oracle client interface on the B laptop right ? could you please give me the exact download link ? there are many download links in oracle website and very similar thinks to download
– mustafa987
Nov 11 at 18:27












Having two computers connected to the same wifi doesn't mean you have a local network. Try to ping laptop A from laptop B using ping 192.168.20.98 command and tell us what was the result.
– Pedro Gaspar
Nov 11 at 19:05




Having two computers connected to the same wifi doesn't mean you have a local network. Try to ping laptop A from laptop B using ping 192.168.20.98 command and tell us what was the result.
– Pedro Gaspar
Nov 11 at 19:05












hello @PedroGaspar I ping from B to A and get 0% packets loss
– mustafa987
Nov 11 at 19:18




hello @PedroGaspar I ping from B to A and get 0% packets loss
– mustafa987
Nov 11 at 19:18












So you probably have do to do what @shahkalpesh suggested and install just OracleClient on laptop B. Problem is that System.Data.OracleClient is obsolete for some time now, so it's better for you to use ODP.NET from Oracle itself. Take a look at this 3 steps migration article.
– Pedro Gaspar
Nov 11 at 19:27






So you probably have do to do what @shahkalpesh suggested and install just OracleClient on laptop B. Problem is that System.Data.OracleClient is obsolete for some time now, so it's better for you to use ODP.NET from Oracle itself. Take a look at this 3 steps migration article.
– Pedro Gaspar
Nov 11 at 19:27














1 Answer
1






active

oldest

votes


















1














The System.Data.OracleClient namespace is the .NET Framework Data Provider for Oracle, but still it needs the Oracle Client software installed on the target machine:




Oracle and ADO.NET | Microsoft Docs



The .NET Framework Data Provider for Oracle provides access to an Oracle database using the Oracle Call Interface (OCI) as provided by Oracle Client software.




And:




.NET Framework Data Providers | Microsoft Docs



For Oracle data sources. The .NET Framework Data Provider for Oracle supports Oracle client software version 8.1.7 and later, and uses the System.Data.OracleClient namespace.




But, as stated on the docs also:




Note



The types in System.Data.OracleClient are deprecated. The types remain supported in the current version of.NET Framework but will be removed in a future release. Microsoft recommends that you use a third-party Oracle provider.




So, it's better to use the Oracle Data Provider for .NET (ODP.NET), instead of the deprecated System.Data.OracleClient. Here there's a 3 steps migration article to help in the proccess.



Anyway, both the Microsoft or Oracle data providers will still require the Oracle Client software installed on the target machine. The Oracle Client software is named Oracle Instant Client and can be found here.



If you already have the Oracle Instant Client installed on the target machine, you could try one of these (that I think the question's author already did):




  • System.Data.OracleClient requires Oracle client software version 8.1.7 or greater - Fadi Abdulwahab's Blog

  • vb.net - System.Data.OracleClient requires Oracle client software version 8.1.7 - Stack Overflow






share|improve this answer



















  • 1




    hi @PedroGaspar, sorry for late replying because being busy watching tons of programming tutorials however I've changed to ODP.NET and can say it's very nice, however, thank you very much for this great information you provided for me
    – mustafa987
    Dec 10 at 9:42











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53251447%2fvb-net-unable-to-connect-to-an-oracle-database-server-from-client-app%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














The System.Data.OracleClient namespace is the .NET Framework Data Provider for Oracle, but still it needs the Oracle Client software installed on the target machine:




Oracle and ADO.NET | Microsoft Docs



The .NET Framework Data Provider for Oracle provides access to an Oracle database using the Oracle Call Interface (OCI) as provided by Oracle Client software.




And:




.NET Framework Data Providers | Microsoft Docs



For Oracle data sources. The .NET Framework Data Provider for Oracle supports Oracle client software version 8.1.7 and later, and uses the System.Data.OracleClient namespace.




But, as stated on the docs also:




Note



The types in System.Data.OracleClient are deprecated. The types remain supported in the current version of.NET Framework but will be removed in a future release. Microsoft recommends that you use a third-party Oracle provider.




So, it's better to use the Oracle Data Provider for .NET (ODP.NET), instead of the deprecated System.Data.OracleClient. Here there's a 3 steps migration article to help in the proccess.



Anyway, both the Microsoft or Oracle data providers will still require the Oracle Client software installed on the target machine. The Oracle Client software is named Oracle Instant Client and can be found here.



If you already have the Oracle Instant Client installed on the target machine, you could try one of these (that I think the question's author already did):




  • System.Data.OracleClient requires Oracle client software version 8.1.7 or greater - Fadi Abdulwahab's Blog

  • vb.net - System.Data.OracleClient requires Oracle client software version 8.1.7 - Stack Overflow






share|improve this answer



















  • 1




    hi @PedroGaspar, sorry for late replying because being busy watching tons of programming tutorials however I've changed to ODP.NET and can say it's very nice, however, thank you very much for this great information you provided for me
    – mustafa987
    Dec 10 at 9:42
















1














The System.Data.OracleClient namespace is the .NET Framework Data Provider for Oracle, but still it needs the Oracle Client software installed on the target machine:




Oracle and ADO.NET | Microsoft Docs



The .NET Framework Data Provider for Oracle provides access to an Oracle database using the Oracle Call Interface (OCI) as provided by Oracle Client software.




And:




.NET Framework Data Providers | Microsoft Docs



For Oracle data sources. The .NET Framework Data Provider for Oracle supports Oracle client software version 8.1.7 and later, and uses the System.Data.OracleClient namespace.




But, as stated on the docs also:




Note



The types in System.Data.OracleClient are deprecated. The types remain supported in the current version of.NET Framework but will be removed in a future release. Microsoft recommends that you use a third-party Oracle provider.




So, it's better to use the Oracle Data Provider for .NET (ODP.NET), instead of the deprecated System.Data.OracleClient. Here there's a 3 steps migration article to help in the proccess.



Anyway, both the Microsoft or Oracle data providers will still require the Oracle Client software installed on the target machine. The Oracle Client software is named Oracle Instant Client and can be found here.



If you already have the Oracle Instant Client installed on the target machine, you could try one of these (that I think the question's author already did):




  • System.Data.OracleClient requires Oracle client software version 8.1.7 or greater - Fadi Abdulwahab's Blog

  • vb.net - System.Data.OracleClient requires Oracle client software version 8.1.7 - Stack Overflow






share|improve this answer



















  • 1




    hi @PedroGaspar, sorry for late replying because being busy watching tons of programming tutorials however I've changed to ODP.NET and can say it's very nice, however, thank you very much for this great information you provided for me
    – mustafa987
    Dec 10 at 9:42














1












1








1






The System.Data.OracleClient namespace is the .NET Framework Data Provider for Oracle, but still it needs the Oracle Client software installed on the target machine:




Oracle and ADO.NET | Microsoft Docs



The .NET Framework Data Provider for Oracle provides access to an Oracle database using the Oracle Call Interface (OCI) as provided by Oracle Client software.




And:




.NET Framework Data Providers | Microsoft Docs



For Oracle data sources. The .NET Framework Data Provider for Oracle supports Oracle client software version 8.1.7 and later, and uses the System.Data.OracleClient namespace.




But, as stated on the docs also:




Note



The types in System.Data.OracleClient are deprecated. The types remain supported in the current version of.NET Framework but will be removed in a future release. Microsoft recommends that you use a third-party Oracle provider.




So, it's better to use the Oracle Data Provider for .NET (ODP.NET), instead of the deprecated System.Data.OracleClient. Here there's a 3 steps migration article to help in the proccess.



Anyway, both the Microsoft or Oracle data providers will still require the Oracle Client software installed on the target machine. The Oracle Client software is named Oracle Instant Client and can be found here.



If you already have the Oracle Instant Client installed on the target machine, you could try one of these (that I think the question's author already did):




  • System.Data.OracleClient requires Oracle client software version 8.1.7 or greater - Fadi Abdulwahab's Blog

  • vb.net - System.Data.OracleClient requires Oracle client software version 8.1.7 - Stack Overflow






share|improve this answer














The System.Data.OracleClient namespace is the .NET Framework Data Provider for Oracle, but still it needs the Oracle Client software installed on the target machine:




Oracle and ADO.NET | Microsoft Docs



The .NET Framework Data Provider for Oracle provides access to an Oracle database using the Oracle Call Interface (OCI) as provided by Oracle Client software.




And:




.NET Framework Data Providers | Microsoft Docs



For Oracle data sources. The .NET Framework Data Provider for Oracle supports Oracle client software version 8.1.7 and later, and uses the System.Data.OracleClient namespace.




But, as stated on the docs also:




Note



The types in System.Data.OracleClient are deprecated. The types remain supported in the current version of.NET Framework but will be removed in a future release. Microsoft recommends that you use a third-party Oracle provider.




So, it's better to use the Oracle Data Provider for .NET (ODP.NET), instead of the deprecated System.Data.OracleClient. Here there's a 3 steps migration article to help in the proccess.



Anyway, both the Microsoft or Oracle data providers will still require the Oracle Client software installed on the target machine. The Oracle Client software is named Oracle Instant Client and can be found here.



If you already have the Oracle Instant Client installed on the target machine, you could try one of these (that I think the question's author already did):




  • System.Data.OracleClient requires Oracle client software version 8.1.7 or greater - Fadi Abdulwahab's Blog

  • vb.net - System.Data.OracleClient requires Oracle client software version 8.1.7 - Stack Overflow







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 12 at 16:11

























answered Nov 12 at 15:43









Pedro Gaspar

503318




503318








  • 1




    hi @PedroGaspar, sorry for late replying because being busy watching tons of programming tutorials however I've changed to ODP.NET and can say it's very nice, however, thank you very much for this great information you provided for me
    – mustafa987
    Dec 10 at 9:42














  • 1




    hi @PedroGaspar, sorry for late replying because being busy watching tons of programming tutorials however I've changed to ODP.NET and can say it's very nice, however, thank you very much for this great information you provided for me
    – mustafa987
    Dec 10 at 9:42








1




1




hi @PedroGaspar, sorry for late replying because being busy watching tons of programming tutorials however I've changed to ODP.NET and can say it's very nice, however, thank you very much for this great information you provided for me
– mustafa987
Dec 10 at 9:42




hi @PedroGaspar, sorry for late replying because being busy watching tons of programming tutorials however I've changed to ODP.NET and can say it's very nice, however, thank you very much for this great information you provided for me
– mustafa987
Dec 10 at 9:42


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53251447%2fvb-net-unable-to-connect-to-an-oracle-database-server-from-client-app%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Full-time equivalent

さくらももこ

13 indicted, 8 arrested in Calif. drug cartel investigation