I used ms SQL all the time. Recently, due to project requirements, I had to install oracle. Compared with ms SQL, Oracle is too difficult to use. Of course, it only refers to the new user experience, O (partition _ partition) o ....
The next step is to connect to the oralce database in. net, but the following error occurs during the connection. I have not been able to solve the problem after looking for a long time. Could you ask me?
The error is as follows:
System. Data. oracleclient requires Oracle client software version 8.1.7 or greater
I am very simple. An error occurred while executing the conn. open () statement, Code The details are as follows: // String strconn = "Data Source = orcl; persist Security info = true; user id = system; Password = password ;";
String Strconn = " Data Source = 192.168.1.102; persist Security info = true; user id = system; Password = password; " ;
Oracleconnection Conn = New Oracleconnection (strconn );
Oraclecommand cmd = New Oraclecommand ( " Select * from Stu " , Conn );
Conn. open ();
The execution environment is as follows:
1. I installed the Oracle virtual machine in the VM. The above code is executed on another machine, and the network of the two machines is smooth.
2. The latest Microsoft. NET Oracle client is installed in the execution environment.
After an error occurs, make the following attempts:
1. Execute the above Code directly in the vmvm where the Oracle database is installed. The code can run without any exceptions.
2. Many people on the Internet say that the ORACLE_HOME folder permission in the NTFS format is incorrect. Therefore, the full control permission of the Oracle installation directory is assigned to users such as authenticated users and ASPnet.
Can someone help me answer this question?