<?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>topic Command in script to set schema oracle in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Command-in-script-to-set-schema-oracle/m-p/1155747#M909671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;Hi expert!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;I have a case that i have if i want to access and do a query to a ORACLE DATABASE I have to asociate the schema to every sql select&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;for example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;I have to put before the table the schema or user as i show here:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;SQL S&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; line-height: 1.5em;"&gt;elect * from SCHEMA.TABLE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;is there any way to do this alter in qlikview script and avoid put the schema or user before each table in the sql select?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;ALTER SESSION SET CURRENT_SCHEMA = BTWEB;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;thanks a lot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;Fernando K.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>fkeuroglian</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Command in script to set schema oracle</title>
      <link>https://community.qlik.com/t5/QlikView/Command-in-script-to-set-schema-oracle/m-p/1155747#M909671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;Hi expert!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;I have a case that i have if i want to access and do a query to a ORACLE DATABASE I have to asociate the schema to every sql select&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;for example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;I have to put before the table the schema or user as i show here:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;SQL S&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; line-height: 1.5em;"&gt;elect * from SCHEMA.TABLE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;is there any way to do this alter in qlikview script and avoid put the schema or user before each table in the sql select?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;ALTER SESSION SET CURRENT_SCHEMA = BTWEB;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;thanks a lot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES" style="color: #1f497d;"&gt;Fernando K.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Command-in-script-to-set-schema-oracle/m-p/1155747#M909671</guid>
      <dc:creator>fkeuroglian</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Command in script to set schema oracle</title>
      <link>https://community.qlik.com/t5/QlikView/Command-in-script-to-set-schema-oracle/m-p/1155748#M909672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try to pass your Oracle instruction using reserved word &lt;SPAN style="color: green;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14654256109656336 jive_text_macro" jivemacro_uid="_14654256109656336"&gt;
&lt;P&gt;&lt;SPAN style="color: green;"&gt;SQL&lt;/SPAN&gt; ALTER SESSION SET CURRENT_SCHEMA = BTWEB;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually I can send all DML instruction using &lt;SPAN style="color: green;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt; prefix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14654259872405663" jivemacro_uid="_14654259872405663"&gt;
&lt;P&gt;&lt;SPAN style="color: green;"&gt;SQL&lt;/SPAN&gt; UPDATE TABLE....;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: green;"&gt;SQL&lt;/SPAN&gt; DELETE FROM TABLE...;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested &lt;STRONG&gt;SQL&lt;/STRONG&gt; ALTERSESSION on our Oracle instances and it work correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ely&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 22:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Command-in-script-to-set-schema-oracle/m-p/1155748#M909672</guid>
      <dc:creator>elyM</dc:creator>
      <dc:date>2016-06-08T22:52:48Z</dc:date>
    </item>
  </channel>
</rss>

