While creating shell script some time we face error
ORA-04044: procedure, function, package, or type is not allowed here
NOTE:
this is because we are using tables containing '$' SYMBOL and when ever we use tables like v$session,v$log,v$logfile etc shell script take '$' SYMBOL as shell variables and then while reading script it gives error
ORA-04044: procedure, function, package, or type is not allowed here
SOLUTION:-
for overcome this error always use escape '\' SYMBOL before '$' SYMBOL in table name
like we are use
select * from v$session;
select * from v$log;
in shell script we have to use
select * from v\$session;
select * from v\$log;
and this will solve our error and sucessfully run our shell script.
No hay comentarios:
Publicar un comentario