Replies: 4 comments
-
It seems that in order to allow
Since |
Beta Was this translation helpful? Give feedback.
-
I don't think that's a requirement for all Oracle stuff; the registry script doesn't need the slashes except after the FWIW, the only options Sqitch passes to 'SET ECHO OFF NEWP 0 SPA 0 PAGES 0 FEED OFF HEAD OFF TRIMS ON TAB OFF VERIFY OFF',
'WHENEVER OSERROR EXIT 9;',
'WHENEVER SQLERROR EXIT 4;', And then, for the registry variable: return $schema ? ("DEFINE registry=$schema") : (
# Select the current schema into ®istry.
# https://www.orafaq.com/node/515
'COLUMN sname for a30 new_value registry',
q{SELECT SYS_CONTEXT('USERENV', 'SESSION_SCHEMA') AS sname FROM DUAL;},
); Maybe one of those changes the behavior or |
Beta Was this translation helpful? Give feedback.
-
@theory , thanks for the excellent documentation. I would bet that the problem is about a I tested this script:
that produces the following output thru
so all the statements are executed immediatly except the last one, that waits for instructions. If now I put a
(don't mind about compilation errors at the moment, I'm confusing PL/PgSQL with PLSQL right now...). Let's change the script as follows:
which results in:
So, according to the above, it seems to me that:
But again, I'm not an Oracle expert here, just writing down what I got in the hope it can become more clear. I also confirm that https://github.com/sqitchers/sqitch/blob/develop/lib/App/Sqitch/Engine/oracle.sql#L104 here there is the need to execute the command with
where the script is:
Last but not least, what is probably the root cause of my problems (i.e., why did
EDIT: the above is not true. If I set a |
Beta Was this translation helpful? Give feedback.
-
Very nice summary, thank you!
I knew there must've been a reason it was there!
Phew!
Oh that's an interesting possibility. If there is some option to SQL*Plus to get it to ignore such files, similar to |
Beta Was this translation helpful? Give feedback.
-
I have to admit I'm not an expert in Oracle (I like PostgreSQL the much, but that's another story).
Anyway, I need to change a single procedure into a package, so what I did is:
alter package foo recompile body;
When I deployed the changes,
sqitch
gives me an okay status.However, inspecting the body content from SQL Developer reveals the procedure body is still the old one.
Am I missing something here? What is the correct way to deploy such a change?
Beta Was this translation helpful? Give feedback.
All reactions