I just had the problem that I defined a Type and tested it in TOAD and all was OK. But running under SQL*PLUS it threw an error.
Example:
CREATE OR REPLACE TYPE MyType AS OBJECT (
Item1 NUMBER,
Item2 NUMBER
);
For some reason I have to add a slash here
CREATE OR REPLACE TYPE MyType AS OBJECT (
Item1 NUMBER,
Item2 NUMBER
);
/
To me it looks similar to a Create Table statement, which doesn't require a slash. I find it rather confusing. I know how it works, but can anyone explain why this design decision was made?