PL/SQL (MOSC)

MOSC Banner

Is is supported to use execute immediate for ddl with using clause?

in PL/SQL (MOSC) 2 commentsAnswered ✓

Oracle DB 19 EE
I have tried the following:
declare
l_context_name varchar2(10) := 'aaaabbbb';
l_sql varchar2(100);
Begin
l_sql := 'Create or Replace Context ' || ':i_c_name' || ' Using BUD_CACHED_PARAMETERS Accessed Globally';
execute immediate l_sql USING IN l_context_name;
END ;

I then get:
Error report -
ORA-01805: possible error in date/time operation
ORA-06512: at line 6
01805. 00000 - "possible error in date/time operation"
*Cause: The timezone files on client and server do not match.
Operation can potentially result in incorrect results based on
local timezone file.
*Action: Please ensure client and server timezone versions are same.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center