NHibernate calling Oracle stored procedure with schema prefix, how? -
i have nhibernate calling stored procedure in oracle working currently. however, how specify schema prefix in {call} syntax in tag?
i tried
<sql-query name="my_sproc"> <return class="my_sproc_class" /> {call schema2.my_sproc (:p1)} </sql-query>
but nhibernate run-time came 'schema2' not defined while 'schema2' defined schema on oracle db.
thanks.
could privileges ? procedure may exist in schema may not have privileges execute it, or may have privileges through role isn't enabled.
could parameters. if procedure expects 2 parameters (or function) trying call 1 can "doesn't exist" error when means "there isn't 1 can call 1 parameter".
final option if have package in schema same name other schema. can happen generic 'utils'. if ask oracle execute utils.proc , have utils package, in package , throw error if doesn't find it, if there utils schema procedure proc.
edited add
in case, i'm leaning towards parameters issue example here seems use ? parameter placeholder.
Comments
Post a Comment