<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-6481483192141562388.post7618006806543921097..comments</id><updated>2011-12-07T20:31:25.520+01:00</updated><category term='Personal stuff'/><category term='MySQL'/><category term='Sparkline'/><category term='AaW - DBMON'/><category term='Logbuch - Die Plugin App'/><category term='APEX examples'/><category term='Data mapping'/><category term='AJAX'/><category term='jQuery Mobile'/><category term='TREE'/><category term='RMAN'/><category term='DOAG'/><category term='OracleXE'/><category term='Dynamic Actions'/><category term='DE'/><category term='ORA-'/><category term='Interactive Report'/><category term='APEX Kurs'/><category term='APEX issues'/><category term='Linux'/><category term='SQL Developer'/><category term='DBMS_SCHEDULER'/><category term='UILayout'/><category term='Tools'/><category term='Tooltip'/><category term='IE issues'/><category term='APEX Plugin'/><category term='OHS'/><category term='EXTJS'/><category term='Browser issues'/><category term='Logbuch'/><category term='Development tools'/><title type='text'>Comments on APEX-AT-WORK by Tobias Arnhold: Advanced ways using the Authorization Schemes insi...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.apex-at-work.com/feeds/7618006806543921097/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6481483192141562388/7618006806543921097/comments/default'/><link rel='alternate' type='text/html' href='http://www.apex-at-work.com/2011/12/advanced-ways-using-authorization.html'/><author><name>Tobias Arnhold</name><uri>http://www.blogger.com/profile/02728304398859617729</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='29' src='http://2.bp.blogspot.com/_A7ko33pi4F4/TOb4e9WOzjI/AAAAAAAAATI/gG99ZKZZcNE/S220/TobiasArnhold2.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6481483192141562388.post-3025528331385849936</id><published>2011-12-07T20:31:25.520+01:00</published><updated>2011-12-07T20:31:25.520+01:00</updated><title type='text'>Hi Christian,

thanks for the interesting informat...</title><content type='html'>Hi Christian,&lt;br /&gt;&lt;br /&gt;thanks for the interesting information.&lt;br /&gt;&lt;br /&gt;Tobias</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6481483192141562388/7618006806543921097/comments/default/3025528331385849936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6481483192141562388/7618006806543921097/comments/default/3025528331385849936'/><link rel='alternate' type='text/html' href='http://www.apex-at-work.com/2011/12/advanced-ways-using-authorization.html?showComment=1323286285520#c3025528331385849936' title=''/><author><name>Tobias Arnhold</name><uri>http://www.blogger.com/profile/02728304398859617729</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='29' src='http://2.bp.blogspot.com/_A7ko33pi4F4/TOb4e9WOzjI/AAAAAAAAATI/gG99ZKZZcNE/S220/TobiasArnhold2.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.apex-at-work.com/2011/12/advanced-ways-using-authorization.html' ref='tag:blogger.com,1999:blog-6481483192141562388.post-7618006806543921097' source='http://www.blogger.com/feeds/6481483192141562388/posts/default/7618006806543921097' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1042240403'/></entry><entry><id>tag:blogger.com,1999:blog-6481483192141562388.post-3055310344236079694</id><published>2011-12-06T11:26:08.961+01:00</published><updated>2011-12-06T11:26:08.961+01:00</updated><title type='text'>Hi Tobias!

One thing that might not be obvious wh...</title><content type='html'>Hi Tobias!&lt;br /&gt;&lt;br /&gt;One thing that might not be obvious when using our authorization checking function in SQL or PL/SQL is that caching still takes place. The authorization will only be evaluated at most once (&amp;quot;Once per page view&amp;quot;) or not at all, if it&amp;#39;s result is already stored in session state.&lt;br /&gt;&lt;br /&gt;If you are using the function in SQL, a non-optimal execution plan might still cause many context switches to PL/SQL. In that case, you could use scalar subqueries, e.g.&lt;br /&gt;&lt;br /&gt;select&lt;br /&gt;  &amp;#39;VALID_USER&amp;#39; as return_val&lt;br /&gt;from my_table&lt;br /&gt;where col1 = &amp;#39;NEW&amp;#39;&lt;br /&gt;and ( (select my_check_auth(&amp;#39;AUTH_VALID_USER&amp;#39;) from dual)=1&lt;br /&gt;     or (select my_check_auth(&amp;#39;AUTH_NEW_USER&amp;#39;) from dual)=1 );&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Christian</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6481483192141562388/7618006806543921097/comments/default/3055310344236079694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6481483192141562388/7618006806543921097/comments/default/3055310344236079694'/><link rel='alternate' type='text/html' href='http://www.apex-at-work.com/2011/12/advanced-ways-using-authorization.html?showComment=1323167168961#c3055310344236079694' title=''/><author><name>chrisonoracle</name><uri>http://chrisonoracle.wordpress.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.apex-at-work.com/2011/12/advanced-ways-using-authorization.html' ref='tag:blogger.com,1999:blog-6481483192141562388.post-7618006806543921097' source='http://www.blogger.com/feeds/6481483192141562388/posts/default/7618006806543921097' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1970955302'/></entry></feed>
