Error when I create a new stored procedure with TOraStoredProc
Posted: Mon 10 Feb 2014 10:49
Hello,
I have a program developed in Delphi 6 with odac Version 6.90.0.54
I can create a new stored procedure by running this code:
StorelandOraStoredProc.SQL.Text: = 'CREATE OR REPLACE PROCEDURE proc_test IS BEGIN NULL; END;';
// Not mandatory StoredProcName
StorelandOraStoredProc.ExecSQL;
It works.
We are migrating the program with Delphi XE4 with odac Version 9.0.1
The same code does not work.
1 - I get the message must be defined StoredProcName.
2 - When I set StoredProcName I have an ORA-04043 error: object does not exist proc_test
Here is the code with Delphi XE4:
OraStoredProc.SQL.Text: = 'CREATE OR REPLACE PROCEDURE proc_test IS BEGIN NULL; END;';
// If StoredProcName, I get the error message: StoredProcName must be defined.
OraStoredProc.StoredProcName: = 'proc_test';
OraStoredProc.ExecSQL;
My question: How to create a new stored procedure with ODAC v9.0.1?
What is the correct method?
Thank you.
I have a program developed in Delphi 6 with odac Version 6.90.0.54
I can create a new stored procedure by running this code:
StorelandOraStoredProc.SQL.Text: = 'CREATE OR REPLACE PROCEDURE proc_test IS BEGIN NULL; END;';
// Not mandatory StoredProcName
StorelandOraStoredProc.ExecSQL;
It works.
We are migrating the program with Delphi XE4 with odac Version 9.0.1
The same code does not work.
1 - I get the message must be defined StoredProcName.
2 - When I set StoredProcName I have an ORA-04043 error: object does not exist proc_test
Here is the code with Delphi XE4:
OraStoredProc.SQL.Text: = 'CREATE OR REPLACE PROCEDURE proc_test IS BEGIN NULL; END;';
// If StoredProcName, I get the error message: StoredProcName must be defined.
OraStoredProc.StoredProcName: = 'proc_test';
OraStoredProc.ExecSQL;
My question: How to create a new stored procedure with ODAC v9.0.1?
What is the correct method?
Thank you.