I have a problem that does not allow me to advance in my work, I hope you can help me.
I'm doing a Web API that connects to a database in Oracle, it's a simple CRUD, I've done the Stored Procedures and everything, I've tried them from Oracle and they work perfectly.
The problem is that after having inserted a registry with the Web API after it no longer works hehe, when I go debugging step by step it hangs in command.ExecuteNonQuery()
and since then it does not happen, it is very strange and stresses me a lot because I have no idea what it is, I do not have the code because I can not get it from my work computer but I have an example that I use, to make the connection I use Oracle.DataAccess
.
OracleConnection connection = new OracleConnection(connString);
OracleCommand command = new OracleCommand("sp_ejemploarray", connection);
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add(new OracleParameter { ParameterName = "cadena",
Direction = ParameterDirection.Input, OracleDbType = OracleDbType.Varchar2, Value = arrayString });
command.Parameters.Add(new OracleParameter { ParameterName = "ok", OracleDbType = OracleDbType.Int32, Direction = ParameterDirection.Output });
connection.Open();
command.ExecuteNonQuery(); //Aquí se queda colgado :(
And the Stored is a simple insert into table(values) values(params);
.
Do you know if there is a compatibility problem or something? He does not show me any message or something. An important point : the database is made in Oracle, the Web API with C # and to call it I use a page with an AJAX that calls the API and sends the post parameters, they arrive well, I have three layers and the first two pass well until I reach the data layer that is when the api hangs. Thanks in advance, regards!