Hi all,
I am attempting to use the TOracleSession and TOracleScript components to develop an upgrade program for my applications. Many upgrades involve DB structure changes so I set the script lines, execute, check the output to make sure it is successful and then continue to the next DDL statement. I don't do it all in one go because there are some statements that do not mean that the entire upgrade should stop ( like creation of an index ). I have been attempting to use the Savepoint and RollbackToSavepoint to perform this task, but constantly receive ORA-01086 errors. What I have read in the forums so far lead me to believe that the savepoint is dropped as soon as the first commit happens, so therefore I am to assume that the successful execution of a script also performs a commit ? Is this the case ? Is there any way for me to achieve what I am trying ? I have all AutoCommit options at False.
I am attempting to use the TOracleSession and TOracleScript components to develop an upgrade program for my applications. Many upgrades involve DB structure changes so I set the script lines, execute, check the output to make sure it is successful and then continue to the next DDL statement. I don't do it all in one go because there are some statements that do not mean that the entire upgrade should stop ( like creation of an index ). I have been attempting to use the Savepoint and RollbackToSavepoint to perform this task, but constantly receive ORA-01086 errors. What I have read in the forums so far lead me to believe that the savepoint is dropped as soon as the first commit happens, so therefore I am to assume that the successful execution of a script also performs a commit ? Is this the case ? Is there any way for me to achieve what I am trying ? I have all AutoCommit options at False.