<?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 Re: How to load all tables in a database in oracle? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/899026#M312743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another one is SQLTABLES, this is from Qlikview help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The &lt;SPAN class="Bold"&gt;sqltables&lt;/SPAN&gt; statement returns a set of fields describing the tables of an &lt;A class="MCXref_0"&gt;ODBC&lt;/A&gt; data source, to which a &lt;SPAN class="Bold"&gt;connect&lt;/SPAN&gt; has been made. These fields can be combined with the fields generated by the &lt;A class="MCXref_0"&gt;SQLColumns&lt;/A&gt; and &lt;A class="MCXref_0"&gt;SQLTypes&lt;/A&gt; commands in order to give a good overview of a given database. The five standard fields are:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TABLE_QUALIFIER&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TABLE_OWNER&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TABLE_NAME&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TABLE_TYPE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;REMARKS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For a detailed description of these fields, see an ODBC reference handbook. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The syntax is:&lt;/EM&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;sqltables&lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P class="example"&gt;&lt;EM&gt;Example:&lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;connect to 'MS Access 7.0 Database; DBQ=C:\Course3\DataSrc\QWT.mbd';&lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;sqltables;&lt;/EM&gt;&lt;/P&gt;&lt;P class="note"&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;Note!&lt;/SPAN&gt; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Some ODBC drivers may not support this command.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Some ODBC drivers may produce additional fields. &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2015 17:01:19 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-04-24T17:01:19Z</dc:date>
    <item>
      <title>How to load all tables in a database in oracle?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/899021#M312738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="font-size: 12.8000001907349px; line-height: 1.5em;"&gt;Hello, I wonder if there is a possibility to load all tables by owner, showing the names of fields in tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 23:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/899021#M312738</guid>
      <dc:creator />
      <dc:date>2015-04-23T23:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to load all tables in a database in oracle?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/899022#M312739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is for sql server&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3863"&gt;Load all tables in database dynamically&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for oracle replace the "table of table" table with all_tables or dba_tables and filter by owner&lt;/P&gt;&lt;P&gt;if you want to make the select statement wth the fields of every table, use all_tab_columns or dba_...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 23:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/899022#M312739</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-23T23:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to load all tables in a database in oracle?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/899023#M312740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a question, what is the "table of table" table? Sorry i'm new in Qlikview world.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 15:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/899023#M312740</guid>
      <dc:creator />
      <dc:date>2015-04-24T15:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to load all tables in a database in oracle?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/899024#M312741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i'm not wrong,that's oracle syntax to fetch all table names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 16:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/899024#M312741</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-04-24T16:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to load all tables in a database in oracle?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/899025#M312742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the link I posted there is a table &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"INFORMATION_SCHEMA".COLUMNS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;with a fields containing the name of the tables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The link is for sql server. In an Oracle database you have to replace INFORMATION_SCHEMA with all_tables because in Oracle table all_tables you can find all the tables you can view in the Oracle database &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;the script is, I have just tried now on Oracle&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;EM&gt;ODBC CONNECT32 TO [xxxxx;DBQ=xxx] (XUserId is xxxxx, XPassword is xxxx);&lt;/EM&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;EM&gt;OracleTableList:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;select TABLE_NAME, OWNER from &lt;STRONG&gt;all_tables&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where owner='DWHCONT';&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // change the owner/schema&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vTableCount = NoOfRows('OracleTableList');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For i = 0 To $(vTableCount) -1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vMyTableName = Peek('OWNER', $(i), 'OracleTableList') &amp;amp; '.' &amp;amp; Peek('TABLE_NAME', $(i), 'OracleTableList');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vMyTableNameQVD = Replace(Peek('TABLE_NAME', $(i), 'OracleTableList'), ' ', '_');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vMyTableNameQVD):&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL SELECT * FROM $(vMyTableName) ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STORE $(vMyTableNameQVD) INTO $(ExtractQVD)$(vMyTableNameQVD).QVD;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP Table $(vMyTableNameQVD);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Next i;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 16:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/899025#M312742</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-24T16:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to load all tables in a database in oracle?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/899026#M312743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another one is SQLTABLES, this is from Qlikview help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The &lt;SPAN class="Bold"&gt;sqltables&lt;/SPAN&gt; statement returns a set of fields describing the tables of an &lt;A class="MCXref_0"&gt;ODBC&lt;/A&gt; data source, to which a &lt;SPAN class="Bold"&gt;connect&lt;/SPAN&gt; has been made. These fields can be combined with the fields generated by the &lt;A class="MCXref_0"&gt;SQLColumns&lt;/A&gt; and &lt;A class="MCXref_0"&gt;SQLTypes&lt;/A&gt; commands in order to give a good overview of a given database. The five standard fields are:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TABLE_QUALIFIER&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TABLE_OWNER&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TABLE_NAME&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TABLE_TYPE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;REMARKS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For a detailed description of these fields, see an ODBC reference handbook. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The syntax is:&lt;/EM&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;sqltables&lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P class="example"&gt;&lt;EM&gt;Example:&lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;connect to 'MS Access 7.0 Database; DBQ=C:\Course3\DataSrc\QWT.mbd';&lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;sqltables;&lt;/EM&gt;&lt;/P&gt;&lt;P class="note"&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;Note!&lt;/SPAN&gt; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Some ODBC drivers may not support this command.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Some ODBC drivers may produce additional fields. &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 17:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/899026#M312743</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-24T17:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to load all tables in a database in oracle?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/1733555#M452463</link>
      <description>&lt;P&gt;It might be a better way to use user_tables instead of all_tables Oracle system view.&lt;BR /&gt;Then the procedure looks like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Let owner='DWHCONT';
SQL
select TABLE_NAME from user_tables;
Let vTableCount = NoOfRows('OracleTableList');
For i = 0 To $(vTableCount) -1
     LET vMyTableName = '$(owner)' &amp;amp; '.' &amp;amp; Peek('TABLE_NAME', $(i), 'OracleTableList');
     LET vMyTableNameQVD = Replace(Peek('TABLE_NAME', $(i), 'OracleTableList'), ' ', '_');
...&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 18:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-all-tables-in-a-database-in-oracle/m-p/1733555#M452463</guid>
      <dc:creator>Dmitry-Vereschagin</dc:creator>
      <dc:date>2020-08-05T18:30:02Z</dc:date>
    </item>
  </channel>
</rss>

