<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Unable to 'select' from SQL view (.hdbview) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/unable-to-select-from-sql-view-hdbview/qaa-p/670307#M175529</link>
    <description>&lt;P&gt;Did you alter the default_access_role in this container by any chance?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Sep 2018 12:25:45 GMT</pubDate>
    <dc:creator>thomas_jung</dc:creator>
    <dc:date>2018-09-07T12:25:45Z</dc:date>
    <item>
      <title>Unable to 'select' from SQL view (.hdbview)</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-select-from-sql-view-hdbview/qaq-p/670304</link>
      <description>&lt;P&gt;Hi Colleagues, &lt;/P&gt;
  &lt;P&gt;I have 2 XSA containers, say cont1 and cont2.&lt;/P&gt;
  &lt;P&gt;cont1 has synonyms on top of classical (netweaver) database tables, and then table functions on those synonyms.&lt;/P&gt;
  &lt;P&gt;For cont2, a role has been assigned, which gives it privileges to 'select' and 'execute' from cont1. This role is granted WITHOUT GRANT OPTION.&lt;/P&gt;
  &lt;P&gt;Now, in cont2, I have created synonyms (on top of the earlier table functions), and SQL views on top of the synonyms. The runtime objects are generated.&lt;/P&gt;
  &lt;P&gt;Now, if I do a 'select * from synonym_cont2', it works and shows me the result.&lt;/P&gt;
  &lt;P&gt;But if I do a 'select * from sqlview_cont2', it says &lt;/P&gt;
  &lt;P&gt;insufficient privilege: Not authorized&lt;/P&gt;
  &lt;P&gt;What is the problem here? Should the role be granted WITH GRANT OPTION? If so, why? If the object owner of cont2 already has access to whole cont1, WITH GRANT OPTION should only be required to let there be privileges for another container on top of cont2.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 11:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-select-from-sql-view-hdbview/qaq-p/670304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-06T11:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to 'select' from SQL view (.hdbview)</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-select-from-sql-view-hdbview/qaa-p/670305#M175527</link>
      <description>&lt;P&gt;What's in your HDBGRANTS file? You can have separate grants for object_owner and application_user. This could explain why the synonyms create (object_owner) but you can't select from them (application_user). &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://github.com/SAP/com.sap.openSAP.hana5.example/blob/hana2_sps03/core_db/cfg/central.hdbgrants" target="test_blank"&gt;https://github.com/SAP/com.sap.openSAP.hana5.example/blob/hana2_sps03/core_db/cfg/central.hdbgrants&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 13:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-select-from-sql-view-hdbview/qaa-p/670305#M175527</guid>
      <dc:creator>thomas_jung</dc:creator>
      <dc:date>2018-09-06T13:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to 'select' from SQL view (.hdbview)</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-select-from-sql-view-hdbview/qaa-p/670306#M175528</link>
      <description>&lt;P&gt;I am able to create as well as select from the synonyms. Problem is with SQL views.&lt;/P&gt;
  &lt;P&gt;I am able to create SQL Views. But not able to select from them. &lt;/P&gt;
  &lt;P&gt;If the application user is able to select from synonyms, that implies the application user should be able to select from SQL views as well right?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 05:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-select-from-sql-view-hdbview/qaa-p/670306#M175528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-07T05:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to 'select' from SQL view (.hdbview)</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-select-from-sql-view-hdbview/qaa-p/670307#M175529</link>
      <description>&lt;P&gt;Did you alter the default_access_role in this container by any chance?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 12:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-select-from-sql-view-hdbview/qaa-p/670307#M175529</guid>
      <dc:creator>thomas_jung</dc:creator>
      <dc:date>2018-09-07T12:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to 'select' from SQL view (.hdbview)</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-select-from-sql-view-hdbview/qaa-p/670308#M175530</link>
      <description>&lt;P&gt;No. No role was altered.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 06:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-select-from-sql-view-hdbview/qaa-p/670308#M175530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-11T06:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to 'select' from SQL view (.hdbview)</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-select-from-sql-view-hdbview/qaa-p/670309#M175531</link>
      <description>&lt;P&gt;Since views are definer mode objects, i.e., the #OO of the container, and not the DB user, reads from them, you always need WITH GRANT OPTION in this kind of scenarios, to select from SQL views (so that the #OO grants to the DB user, i.e. you).&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 06:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-select-from-sql-view-hdbview/qaa-p/670309#M175531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-10T06:17:45Z</dc:date>
    </item>
  </channel>
</rss>

