C
coltrane
Can someone help me with a very simple task
I am trying to execute a stored procedure in an Oracle database using
Ado.Net. The following is a code snippet
conn = New OracleConnection(mOracleConnectionString)
cmd = New OracleCommand
cmd.Connection = conn
conn.Open()
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "TW_USER_TEST3"
cmd.ExecuteReader(CommandBehavior.Default)
The stored proc does not have any input or output parameters. I created
it for testing purposes. I had a stored proc that did have input and
output but I was getting errors so I thought to create the simplest
store proc. The proc doesn't even do anything.
I am getting the following error:
An unhandled exception of type
'System.Data.OracleClient.OracleException' occurred in
system.data.oracleclient.dll
Additional information: ORA-06550: line 1, column 7:
PLS-00201: identifier 'BRAVO_CL21.TW_USER_TEST3' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
The following is the stored proc:
CREATE OR REPLACE procedure tw_users_test3 as
begin
null;
end;
/
I would appreciate any help
thank you
John
I am trying to execute a stored procedure in an Oracle database using
Ado.Net. The following is a code snippet
conn = New OracleConnection(mOracleConnectionString)
cmd = New OracleCommand
cmd.Connection = conn
conn.Open()
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "TW_USER_TEST3"
cmd.ExecuteReader(CommandBehavior.Default)
The stored proc does not have any input or output parameters. I created
it for testing purposes. I had a stored proc that did have input and
output but I was getting errors so I thought to create the simplest
store proc. The proc doesn't even do anything.
I am getting the following error:
An unhandled exception of type
'System.Data.OracleClient.OracleException' occurred in
system.data.oracleclient.dll
Additional information: ORA-06550: line 1, column 7:
PLS-00201: identifier 'BRAVO_CL21.TW_USER_TEST3' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
The following is the stored proc:
CREATE OR REPLACE procedure tw_users_test3 as
begin
null;
end;
/
I would appreciate any help
thank you
John