I have a need to change the session's NLS_CALENDAR
parameter using a PL/SQL procedure (Note: it is a constraint in the application I am working that I must use a procedure).
I am trying to do this:
-- this procedure is a part of pl/sql package Test_Pkg
PROCEDURE Set_Nls_Calendar(calendar_ IN VARCHAR2)
IS
BEGIN
EXECUTE IMMEDIATE
'ALTER SESSION
SET NLS_CALENDAR = :cal'
USING IN calendar_;
END Set_Nls_Calendar;
Then in the client side, I am trying to invoke the procedure:
Test_Pkg.Set_Nls_Calendar('Thai Buddha');
But this get's me ORA-02248: invalid option for ALTER SESSION
.