<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">

<channel>

  <atom:link href="https://community.pyramidanalytics.com/rss/category/databases" rel="self" type="application/rss+xml"/>
  <title>Pyramid Analytics User Community&#32;Databases</title>
  <link>https://community.pyramidanalytics.com/category/databases/</link>
  <description>Pyramid Internal Databases
(The Application Repository)</description>
  <language>en-us</language>
<ttl>240</ttl>
  <item>
          <title>How to move the Pyramid repository location</title>
          <link>https://community.pyramidanalytics.com/t/g9h0clx/how-to-move-the-pyramid-repository-location</link>
          <description><![CDATA[<p>The following explains how to move the Pyramid repository location to another server if needed.</p>
<p>You first need to stop the services to change your Pyramid repository location.<br> Then back up your Database and restore it to the destined server.</p>
<p>For each Pyramid server in your deployment edit the&nbsp;<strong>config.ini</strong> file. Update "Dbhost" to point to the new repository server (see picture).</p>
<p>By default it can be found here&nbsp;c:\Program Files\Pyramid\config.ini and on Linux&nbsp; /opt/Pyramid/config.ini</p>
<p style="text-align:left"><img alt="" class="fb-img" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/12270d61-e9b8-4118-95f9-8bec255c27e0/h/547.png" style="" width="297"></p>
<p>&nbsp;</p>
<p>If the username and password&nbsp; will stay the same, there is no need to do anything else. Otherwise, you will need to update the <strong>config.ini</strong> file&nbsp;with the new user and encrypted password(this applies if only one of them will change).<br> To accomplish&nbsp;it, follow this article:&nbsp;<a href="/t/p8h6cjg/how-to-update-the-pyramid-repository-credentials" rel="nofollow noopener noreferrer">How to update the Pyramid repository credentials</a>.</p>]]></description>
          <pubDate>Thu, 02 Feb 2023 20:21:42 +0000</pubDate>
          <guid>https://community.pyramidanalytics.com/t/g9h0clx/how-to-move-the-pyramid-repository-location</guid>
          <dc:creator>Liran Levi</dc:creator>
        </item>

      <item>
          <title>How to add a CData custom connector as a data source</title>
          <link>https://community.pyramidanalytics.com/t/60hs9tz/adding-a-jdcb-custom-connector-as-a-data-source</link>
          <description><![CDATA[<p>A step-by-step guide on how to add a&nbsp;<a href="https://www.cdata.com/" rel="nofollow noopener noreferrer" target="_blank">CData</a>&nbsp;custom connector as a data source.<br> &nbsp;</p>
<ol>
 <li>Download the Java JDBC driver for the data source you want to connect to.<br> (Click <a href="https://www.cdata.com/drivers/" rel="nofollow noopener noreferrer" target="_blank">here</a>&nbsp;for a complete list of the different data sources that CData supports) Run the installer to extract the JAR file.<br> <img alt="" src="https://pyramidanalytics.zendesk.com/attachments/token/mOakSjxoZDXuWDTx7d0yhI8BZ/?name=inlineImage.png" style="padding:0px"></li>
 <li>To&nbsp;see the list of connection properties you can use, open the CData jar using JAVA.<br> To do this:<br> Open a command prompt on the Pyramid server and point to the location of the extracted JAR file. 
  <div class="code-toolbar">
   <pre class="language-none"><code class="language-none">C:\Program&nbsp;Files\CData\CData&nbsp;JDBC&nbsp;Driver&nbsp;for&nbsp;Microsoft&nbsp;Dynamics&nbsp;CRM&nbsp;2022\lib</code></pre>
  </div> And where JAVA is installed 
  <div class="code-toolbar">
   <pre class="language-none"><code class="language-none">"C:\Program&nbsp;Files\Pyramid\java\bin\java.exe"&nbsp;-jar&nbsp;cdata.jdbc.dynamicscrm.jar</code></pre>
  </div></li>
 <li>Fill in the connection properties that you want to use.<br> E.g. <p style="text-align:left"><img alt="" src="https://pyramidanalytics.zendesk.com/attachments/token/hr2TLjsLOP8HvCkyTfOLnwcCh/?name=inlineImage.png" style="padding:0px"></p> Once all details have been filled in, click on the "Test connection" button to make sure it works.<br> Then click on "Copy to Clipboard" to copy the connection string.<br> &nbsp;</li>
 <li>Go to custom connectors in Pyramid (admin&gt;data&gt;custom connectors)<br> and&nbsp;add a new one and upload the downloaded driver.<br> &nbsp;</li>
 <li>Paste in the connection string from the CData you just copied <p style="text-align:left"><img alt="" class="fb-img" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/29103714-3777-491a-9e9f-e83d504eab21/h/547.png" style="" width="1098"></p> CData RTK is a license key.<br> You'll need to contact <a href="https://www.cdata.com/" rel="nofollow noopener noreferrer" target="_blank">CData</a> and ask them for a trial license.<br> &nbsp;</li>
 <li>Change all parameters to a relevant name wrapped in curly brackets {} as shown below:<br> <img alt="" src="https://pyramidanalytics.zendesk.com/attachments/token/slS5fIqeqdmq7T5LEM6D19tZt/?name=inlineImage.png" style="padding:0px"><br> <br>The best practice is to use these name conventions as your parameters:<br> database, user, password, port, ip<br> This is not mandatory but preferred.<br> &nbsp;</li>
 <li>Click on apply and add the custom connector.<br> &nbsp;</li>
 <li>In Add Data Source, add the new data source like&nbsp;any other by filling out all the relevant connection details.<br> (admin&gt;data source) <p style="text-align:left"><img alt="" class="fb-img" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/506621d8-c99c-4048-81d4-497d90a0ad9e/h/547.png" style="" width="1110"></p></li>
</ol>
<p>For more information about setting up the connectors, please see our <a href="https://help.pyramidanalytics.com/Content/Root/AdminClient/data%20sources/Custom%20Connectors.htm?Highlight=custom%20connectors" rel="nofollow noopener noreferrer" target="_blank">Help</a>.</p>
<p>For more information about the CData drivers and their documentation you can refer to this <a href="https://www.cdata.com/drivers/" rel="nofollow noopener noreferrer" target="_blank">link</a>, choose the driver you need, and then click docs as shown below:</p>
<p style="text-align:left"><img alt="" class="fb-img" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/2868c9ee-ead7-45f8-8ac4-3ae50e16bafa/h/547.png" style="" width="649"></p>]]></description>
          <pubDate>Mon, 26 Dec 2022 12:20:52 +0000</pubDate>
          <guid>https://community.pyramidanalytics.com/t/60hs9tz/adding-a-jdcb-custom-connector-as-a-data-source</guid>
          <dc:creator>Omer Ansher</dc:creator>
        </item>

      <item>
          <title>Data Connector Changes in 2020.24</title>
          <link>https://community.pyramidanalytics.com/t/y4hd6d4/data-connector-changes-in-2020-24</link>
          <description><![CDATA[<p> As of <a href="/t/y4hdy4q/pyramid-2020-24-released" rel="nofollow noopener noreferrer">version 2020.24</a>,&nbsp; certain data connectors have been removed from the <em>standard </em>installation&nbsp;for various reasons (licensing/paywall). Going forward, these connectors can still be used, but must be added manually to the application.&nbsp; </p> 
<p> The affected connectors are: </p> 
<ul> 
 <li>Apache Drill</li> 
 <li>Apache Hive</li> 
 <li>MongoDb BI&nbsp;</li> 
 <li>Netezza</li> 
 <li>Neo4J BI&nbsp;</li> 
</ul> 
<p> During the upgrade, there will be no error or any indication of connectors being removed, but during normal operation, users querying these data sources or processing any related models&nbsp;will get a connection error, unless they re-add the connectors. (See example images below) </p> 
<p> Customers who use&nbsp;these connectors (or plan to use them) will need to download them and add them as custom connectors. Pyramid's connector marketplace offers quick access to the downloads.&nbsp; </p> 
<h3><u>Help resources</u></h3> 
<ul> 
 <li><a href="https://help.pyramidanalytics.com/Content/Root/AdminClient/data%20sources/sources/Data%20Source%20Listing.htm" rel="nofollow noopener noreferrer" target="_blank">Data Source Setups</a></li> 
 <li><a href="https://help.pyramidanalytics.com/Content/Root/AdminClient/data%20sources/Servers.htm" rel="nofollow noopener noreferrer" target="_blank">Data Sources and&nbsp;Custom Data Connectors</a></li> 
 <li><a href="https://help.pyramidanalytics.com/Content/Root/MainClient/apps/Model/Model%20Pro/Data%20Flow/Data%20Sources/Data%20Sources.htm" rel="nofollow noopener noreferrer" target="_blank">Data Sources and Targets Reference</a></li> 
 <li><a href="https://help.pyramidanalytics.com/Content/Root/AdminClient/data%20sources/Custom%20Connectors.htm" rel="nofollow noopener noreferrer" target="_blank">Custom Connectors</a></li> 
</ul> 
<h4>Examples of errors from missing connectors</h4> 
<p> <img src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/2ccaa294-b50a-45e5-baa9-438f165bebbb/547.jpg">&nbsp;<img src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/330c3576-4589-41c4-8381-ec618935d153/547.jpg">&nbsp;<img src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/39d39735-fe86-4cc5-87d2-5e26402758e3/547.jpg">&nbsp;<img src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/8b3cfe6d-3eda-40b9-be6f-317f7717e176/547.jpg">&nbsp; </p>]]></description>
          <pubDate>Mon, 09 May 2022 17:07:11 +0000</pubDate>
          <guid>https://community.pyramidanalytics.com/t/y4hd6d4/data-connector-changes-in-2020-24</guid>
          <dc:creator>Yakov Shaul</dc:creator>
        </item>

      <item>
          <title>How to backup and restore a PostgreSQL database via DBeaver</title>
          <link>https://community.pyramidanalytics.com/t/h7hk07w/how-to-backup-and-restore-a-postgresql-database-via-dbeaver</link>
          <description><![CDATA[<p>This article discusses how to back up and restore your&nbsp;PostgreSQL database via DBeaver.&nbsp;</p>
<p>There is another way to do it via the windows command line, as described in this article:&nbsp;<a href="/t/1852k1/how-to-backup-and-restore-a-postgresql-database" rel="nofollow noopener noreferrer">How to Backup and Restore a PostgreSQL database</a>.</p>
<p><strong>Backup:</strong><br> First, go to your DBeaver application, and then-</p>
<p><img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/118220f6-4718-41f6-82c5-0012f011243f/h/547.png" style=""><img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/2741aee6-f3ad-480e-81c3-29662dbdda5f/h/547.png" style=""><img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/5e2b6a97-614d-4f40-ba2b-704ab1bc6722/h/547.png" style=""></p>
<p><strong>Restore:</strong><br> First, create a new DB so you can restore to it the backup DB<br> <br><img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/31b0766c-8816-4a80-b21a-c746bd81821d/547.png" style=""></p>
<p><img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/0d7be8bb-8f56-4cab-ad34-83c110e5f5d3/547.png" style=""></p>
<p>And then-</p>
<p><img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/40669ca5-2b3e-43b5-8ab9-f23a5293d3f6/547.png" style="">&nbsp;<img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/ed803e8a-2537-4c26-9815-2a4dad465517/547.png" style="">&nbsp;</p>
<p><img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/4a30469a-a32f-44d1-95db-74c517ff7248/547.png" style="">&nbsp;<img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/b70ce758-0ba8-4a3f-8ebf-1b8057259b3c/547.png" style="">&nbsp;&nbsp;</p>]]></description>
          <pubDate>Tue, 20 Jul 2021 12:56:00 +0000</pubDate>
          <guid>https://community.pyramidanalytics.com/t/h7hk07w/how-to-backup-and-restore-a-postgresql-database-via-dbeaver</guid>
          <dc:creator>Omer Ansher</dc:creator>
        </item>

      <item>
          <title>How to connect SalesForce as a data source in Pyramid</title>
          <link>https://community.pyramidanalytics.com/t/35hl880/how-to-connect-salesforce-as-a-data-source-in-pyramid</link>
          <description><![CDATA[<p> In order to add SalesForce as a data source in Pyramid, you will need to set up an app in SF and use the Consumer Key and the Secret Key of the app. </p> 
<p> Please follow these steps in order to create the app: </p> 
<ol> 
 <li>Open on the settings-&gt;Setup:<br> <img src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/74b0c112-6925-4b35-ae62-510fa98c6c03/547.png">&nbsp;</li> 
 <li>On the left menu, click on the Apps-&gt;App Manager:<br> <img src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/de901d6e-5912-44b6-8db4-be9e4727c586/547.png">&nbsp;</li> 
 <li>Create a New Connected App:<br> <img src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/d2dcac66-8e7f-465e-8025-295a8452a306/547.png">&nbsp;</li> 
 <li>Fill in the application details, enable the OAuth Settings, and enable for Device Flow. In the OAuth Scopes select the “Full access(full)” scope:<br> <img src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/232ba6e9-157f-4652-bf4e-f95b664b99e0/547.png"><br> &nbsp;</li> 
 <li>&nbsp;Once the application has been created, in the view app panel, you will be able to see your Consumer Key and Consumer Secret:<br> <img src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/ff6d0816-a0c3-462e-82e2-401f288ec11b/547.png"></li> 
 <li>Go to the Pyramid Admin Console-&gt;Data-&gt;Data Sources, and add a new SF data source:<br> &nbsp;<img src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/50ff5346-e2d5-41d5-9bd0-40d16f7ed123/547.png">T</li> 
 <li>To generate the security token, right-click on your user icon on the top right corner, then go to settings. On the left menu - reset security token:<br> <img src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/c1655f7e-4808-4cca-a171-b96ffdfa76a3/547.png">&nbsp;</li> 
</ol>]]></description>
          <pubDate>Sun, 21 Mar 2021 09:36:46 +0000</pubDate>
          <guid>https://community.pyramidanalytics.com/t/35hl880/how-to-connect-salesforce-as-a-data-source-in-pyramid</guid>
          <dc:creator>Omri Zach</dc:creator>
        </item>

      <item>
          <title>Creating a test environment from a production repository</title>
          <link>https://community.pyramidanalytics.com/t/35h808r/creating-a-test-environment-from-a-production-repository</link>
          <description><![CDATA[<p>The following article will cover <strong>PostgresSQL,&nbsp;</strong><strong>SQL, </strong>And <strong>Oracle&nbsp;</strong>databases.</p>
<h2>Postgres</h2>
<p>When using Postgres as the Pyramid repository, to create a copy of an existing environment, you first need to install Pyramid using the same version of the environment you are copying from, then replace the newly created repository with the backup taken from the existing environment.</p>
<p>The first step is to confirm the Pyramid version on&nbsp;the production environment.<br> You can get to it&nbsp;by&nbsp;clicking&nbsp;on your&nbsp;initials on the tab at the top right-hand side of the&nbsp;screen, as&nbsp;shown below.&nbsp;</p>
<p><img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/fba4a49c-1bac-480a-bac3-4e4887b889b1/547.jpg" style=""></p>
<p>Here, we can see it's Pyramid version 2020.11.030.<br> In this case, we will run the installer version 2020.11.030 in our test environment.</p>
<p>When running the installer, we will choose a new internal repository or new remote repository &gt; PostgresSQL:</p>
<p><img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/47dd028c-233e-41f7-94ef-32736da40098/547.jpg" style=""></p>
<p>After completing the installation, go back to the production environment and back up the repository.</p>
<p>To create the backup, run the following command in your production server:</p>
<pre class="language-shell"><code class="language-shell">"C:\Program&nbsp;Files\Pyramid\postgres\pgsql\bin\pg_dump.exe"&nbsp;-U&nbsp;pyramid&nbsp;-h&nbsp;localhost&nbsp;-p&nbsp;12130&nbsp;-F&nbsp;t&nbsp;-f C:\backup\pyramidDbBackup.tar&nbsp;pyramidg2</code></pre>
<p>The default password for the DB is: <strong>pyramid</strong></p>
<p>From version 2020.15 and above, the password for the internal PostgreSQL instance will be the name of the DB with ! after the word “pyramid”<br> <strong>example</strong>:&nbsp;DB name:pyramid123 password: pyramid!123<br> <br>The way to change the Postgres password via CMD is with the following commands, which need to run on the server running the Pyramid Postgres service.</p>
<div class="code-toolbar">
 <pre class="language-shell"><code class="language-shell">1.&nbsp;cd&nbsp;C:\Program&nbsp;Files\Pyramid\postgres\pgsql\bin
2.&nbsp;set&nbsp;PGPASSWORD=CurrentPassowrd
3.&nbsp;psql&nbsp;-h&nbsp;localhost&nbsp;-d&nbsp;DB&nbsp;name&nbsp;-U&nbsp;pyramid&nbsp;-p&nbsp;12130&nbsp;-c&nbsp;"ALTER&nbsp;USER&nbsp;pyramid&nbsp;WITH&nbsp;PASSWORD&nbsp;'NewPassword';"</code></pre>
</div>
<p>To get your DB name, go to your pyramid folder and open the config.ini&nbsp;file.<br> There, under data, you will see the database, and this is the name of your DB.<br> <strong>NOTE</strong>:&nbsp;The path to your pyramid folder in Windows is C:\Program Files\Pyramid<br> and in Linux, it's - /opt/pyramid.<br> <br>If you are using a version <strong>lower than</strong>&nbsp;<strong>2020.20</strong> and want to update the password in the config, you need to use the tool and follow the instructions from this link:<br> <a href="/t/p8h6cjg/how-to-update-the-credentials-used-to-connect-to-the-pyramid-repository-database" rel="nofollow noopener noreferrer">How to update the Pyramid repository credentials</a>.<br> <br>To change the password in Pyramid&nbsp;version&nbsp;<strong>2020.20 or higher</strong>, a maintenance tool named "run" can be used. It's located at C:\Program Files\Pyramid\core\maintenance<br> <br>Now copy the file to your Test environment and run the following command in the CMD to restore the database:</p>
<pre class="language-shell"><code class="language-shell">"C:\Program&nbsp;Files\Pyramid\postgres\pgsql\bin\pg_restore.exe"&nbsp;--clean&nbsp;-h&nbsp;localhost&nbsp;-p&nbsp;12130&nbsp;-U&nbsp;pyramid&nbsp;-d&nbsp;pyramidg2&nbsp;C:\backup\pyramidDbBackup.tar</code></pre>
<p>The following article describes&nbsp;<a href="/t/h7hk07w/how-to-backup-and-restore-a-postgresql-database-via-dbeaver" rel="nofollow noopener noreferrer">How to back up and restore a PostgreSQL database via DBeaver</a>.<br> <br>After restoring has been completed, you'll need to truncate the server table by running the file you can download&nbsp;<a href="/media/download/36lwam/truncate%20tables.zip" rel="nofollow noopener noreferrer">here</a>&nbsp;or by connecting to the database via a 3rd party app.</p>
<p>After truncating the tables, restart all Pyramid services, wait a few minutes, and try to log in.</p>
<p><strong>NOTE</strong>: you will need to change the data sources so they won't point to production data sources.</p>
<p><strong>If you are using IMDB, you must copy the IMDATA folder from the production server.<br> The IMDATA folder is located in C:\Program Files\Pyramid\repository\imdata</strong></p>
<p>Ensure everything is working fine and all the reports can be opened without errors.</p>
<p>Now, if you restored the backup to a new instance, the following command should be run on cmd :</p>
<pre class="language-shell"><code class="language-shell">1.&nbsp;cd&nbsp;C:\Program&nbsp;Files\Pyramid\postgres\pgsql\bin
2. psql -h localhost -d DB name -U pyramid -p 12130 -c "CREATE EXTENSION IF NOT EXISTS ""uuid-ossp"";"</code></pre>
<p>Or you can use a 3rd party app, like Dbeaver, to run it directly on the database:</p>
<div class="code-toolbar">
 <pre class="language-shell"><code class="language-shell">CREATE&nbsp;EXTENSION&nbsp;IF&nbsp;NOT&nbsp;EXISTS&nbsp;"uuid-ossp"</code></pre>
</div>
<p style="text-align:start">The above is needed because the Pyramid installer uses this extension when running scripts to update the Pyramid database.<br> <strong>Note</strong>:&nbsp;The above command should NOT be run on a local Pyramid Postgres instance.</p>
<p style="text-align:start">&nbsp;</p>
<hr>
<h2>MS SQL Server and Oracle</h2>
<p>When using these DB's as a repository for Pyramid, the process is first to create a backup and then restore it in the destination, then install using the copy of the repository.</p>
<p>You will need the same Pyramid or higher Pyramid versions for SQL and Oracle databases.<br> For example, if you have Pyramid 2020.05.30, you can run installer build 2020.11.030.</p>
<p>The first step is to&nbsp;create a repository backup from the production environment and restore it on your SQL or Oracle&nbsp;test environment.</p>
<p>After you have restored the repository into your SQL or Oracle test environment, you can run the Pyramid installer and choose "Reuse Pre-existing Repository" &gt; Microsoft <strong>SQL </strong>Server Or <strong>Oracle</strong>.</p>
<p><img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/1efb36bc-1b0a-4623-a5a0-2acefd288a0a/547.jpg" style=""></p>
<p>Point Pyramid to your SQL database:</p>
<p><img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/9aaaab7e-a2a5-4a1a-b197-63d2dc37c076/547.jpg" style=""></p>
<p>Or Point Pyramid to your Oracle database:</p>
<p><img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/0b81cad1-085a-462c-9296-adc45584685f/547.jpg" style=""></p>
<p>And finish the installation.</p>
<p>Log in to your test environment and make sure you can open the reports.</p>
<p><strong>Make sure to stop all the models and stop all publications.</strong></p>
<p>Once the test environment is working, you need to deactivate its license (admin console -&gt; licensing -&gt; deactivate instance), get the machine key(after reloading the page -&gt; new deployment -&gt; generate machine key), and send it to your account manager to get a test pyramid license.</p>
<p>Each pyramid environment must have its license and not use the same one as another environment.</p>]]></description>
          <pubDate>Tue, 29 Sep 2020 07:36:22 +0000</pubDate>
          <guid>https://community.pyramidanalytics.com/t/35h808r/creating-a-test-environment-from-a-production-repository</guid>
          <dc:creator>Liran Jorno</dc:creator>
        </item>

      <item>
          <title>Retrieving XMLA to analyze cube structure</title>
          <link>https://community.pyramidanalytics.com/t/m2sygk/retrieving-xmla-to-analyze-cube-structure</link>
          <description><![CDATA[<p> Below are instructions on how to get&nbsp;the cube structure (dimensions, hierarchies, measures…) </p> 
<p> It can help the Pyramid development team debug&nbsp;cases where the query fails to get the cube metadata.<br> &nbsp; </p> 
<p> <strong>Steps:</strong> </p> 
<p> In Microsoft SQL Server Management Studio, connect to&nbsp;the analysis server&nbsp;for the relevant cube/model. </p> 
<p> Run the below two&nbsp;XMLA queries,&nbsp; </p> 
<p> Send the two queries results to the Pyramid support team for further analysis.<br> (Below is an example image)<br> <br>This is the first query to run: </p> 
<blockquote> 
 <p> &lt;Discover xmlns="urn:schemas-microsoft-com:xml-analysis"&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RequestType&gt;DISCOVER_XML_METADATA&lt;/RequestType&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Restrictions&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RestrictionList&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ObjectExpansion&gt;ExpandObject&lt;/ObjectExpansion&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/RestrictionList&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Restrictions&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Properties&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PropertyList&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CONTENT&gt;Data&lt;/CONTENT&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/PropertyList&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Properties&gt; </p> 
 <p> &lt;/Discover&gt; </p> 
</blockquote> 
<p> Copy the first result in a notepad, to send it to us.<br> Now, In the result, please look for this segment:<br> &nbsp; </p> 
<blockquote> 
 <p> &lt;Database&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Name&gt;Pyramid Demo 2013&lt;/Name&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ID&gt;Pyramid Demo 2013&lt;/ID&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CreatedTimestamp&gt;2010-12-26T07:04:30&lt;/CreatedTimestamp&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LastSchemaUpdate&gt;2013-12-03T07:46:23.46&lt;/LastSchemaUpdate&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LastProcessed&gt;2015-09-01T11:12:36.416667&lt;/LastProcessed&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;State&gt;Processed&lt;/State&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LastUpdate&gt;2019-03-31T15:34:31.616667&lt;/LastUpdate&gt; </p> 
 <p> &lt;/Database&gt; </p> 
</blockquote> 
<p> <br> The <strong><em>&lt;Name&gt;</em></strong> tag contains the name of the model you're trying to open.<br> The <strong><em>&lt;ID&gt;</em></strong> tag holds a value you'll need for the next query.<br> Take the value and use it in the <strong><em>&lt;DatabaseID&gt;</em></strong> tag of this next query and run it.<br> &nbsp; </p> 
<blockquote> 
 <p> &lt;Discover xmlns="urn:schemas-microsoft-com:xml-analysis"&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RequestType&gt;DISCOVER_XML_METADATA&lt;/RequestType&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Restrictions&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RestrictionList&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DatabaseID&gt;Pyramid Demo 2013&lt;/DatabaseID&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/RestrictionList&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Restrictions&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Properties&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PropertyList&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CONTENT&gt;Data&lt;/CONTENT&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/PropertyList&gt; </p> 
 <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Properties&gt; </p> 
 <p> &lt;/Discover&gt; </p> 
</blockquote> 
<p> <br> Copy the second result in the notepad as well and send both results back to the Pyramid support team. </p> 
<p>&nbsp;</p> 
<p> <img src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/bc1e686b-cc54-419f-a675-fdded151a002/547.jpg" width="632">&nbsp; </p>]]></description>
          <pubDate>Mon, 27 Jul 2020 16:14:49 +0000</pubDate>
          <guid>https://community.pyramidanalytics.com/t/m2sygk/retrieving-xmla-to-analyze-cube-structure</guid>
          <dc:creator>Yakov Shaul</dc:creator>
        </item>

      <item>
          <title>Error using an OLAP connection: &#x22;The &#x27;MSOLAP&#x27; provider is not registered on the local machine...&#x22;</title>
          <link>https://community.pyramidanalytics.com/t/m2c2jj/error-using-an-olap-connection-the-msolap-provider-is-not-registered-on-the-local-machine</link>
          <description><![CDATA[<p> This error can occur when trying to run a query while the underlying data source is MS OLAP. </p> 
<p> The error indicates that the msolap130.dll file is not registered in the Pyramid environment. </p> 
<p> To correct this, open the command prompt as an administrator on each of the Pyramid Windows Connector servers and run the below command: </p> 
<pre class="prettyprint">regsvr32 "C:\Program Files\Microsoft Analysis Services\AS OLEDB\130\msolap130.dll"</pre> 
<p> or&nbsp; </p> 
<pre class="prettyprint">regsvr32 "C:\Program Files\Microsoft Analysis Services\AS OLEDB\140\msolap.dll"</pre> 
<p> *You should use the newest one out of the two above. </p> 
<p> *This folder path is created&nbsp;by the Pyramid installer, however, the path might be slightly different on your server so before running the command, confirm that the dll file exists and correct the path in the command if needed.&nbsp; </p> 
<p> In case this does not resolve the issue, please contact <a href="https://support.pyramidanalytics.com/" rel="nofollow noopener noreferrer" target="_blank">Pyramid support</a> </p>]]></description>
          <pubDate>Wed, 11 Sep 2019 08:00:00 +0000</pubDate>
          <guid>https://community.pyramidanalytics.com/t/m2c2jj/error-using-an-olap-connection-the-msolap-provider-is-not-registered-on-the-local-machine</guid>
          <dc:creator>Itamar Birenzweig</dc:creator>
        </item>

      <item>
          <title>Routine Content Backup Recommendations</title>
          <link>https://community.pyramidanalytics.com/t/6377lh/routine-content-backup-recommendations</link>
          <description><![CDATA[<p> The following are items we Recommend backing up periodically.<br> (Preferably Daily but it's up to you) </p> 
<ol> 
 <li>The <strong>database repository</strong>.<br> If you don't know where it is, browse to <em>HTTP://&lt;Your Pyramid Site&gt;/diagnostic</em> 
  <ul> 
   <li>If it's an SQL database, then use SQL Management studio to back it up.</li> 
   <li>If you are using the local Postgres option for your repository,<br> see this article <a href="/t/1852k1/how-to-backup-and-restore-a-postgresql-database" rel="nofollow noopener noreferrer">here</a>&nbsp;on how to back it up.</li> 
   <li>If you are using Oracle, then set up a backup job to do this.</li> 
  </ul> </li> 
 <li>The general folder(used to store <strong>publications </strong>and <strong>printed content</strong>),<br> Found by default here:&nbsp;<em>C:\Program Files\Pyramid\repository\general <strong>*</strong></em><br> If you have more than one Pyramid server in your deployment, then back it up on all Pyramid servers.<br> &nbsp;</li> 
 <li>The upload folder (used for ETL's, the Yellow app) that are based on <strong>Excel</strong> <strong>spreadsheets</strong>.<br> Found by default here:&nbsp;<em>C:\Program Files\Pyramid\repository\upload</em> <strong>*</strong><br> If you have more than one Pyramid server in your deployment, then back it up on all Pyramid servers.<br> &nbsp;</li> 
 <li>If you’re using <strong>IMDB</strong>(In Memory database), then you should back up the created databases.<br> They can be found on the server running IMDB,<br> in the folder located here: <em>C:\Program Files\Pyramid\repository\imdata</em></li> 
</ol> 
<p> <strong>* </strong>If any of the folder locations have been changed from within the config.ini file (C:\Program Files\Pyramid/config.ini), then these are the locations that should be backed up. </p>]]></description>
          <pubDate>Wed, 10 Apr 2019 06:26:35 +0000</pubDate>
          <guid>https://community.pyramidanalytics.com/t/6377lh/routine-content-backup-recommendations</guid>
          <dc:creator>Daniel</dc:creator>
        </item>

      <item>
          <title>How to hide Microsoft SQL databases that a user does not have access to</title>
          <link>https://community.pyramidanalytics.com/t/63byya/how-to-hide-microsoft-sql-databases-that-a-user-does-not-have-access-to</link>
          <description><![CDATA[<p>By default even if a user does not have access to an Microsoft SQL database they can still view it when logging into SQL Management studio.&nbsp;Therefore the same behavior will be seen in Pyramid when connecting to a SQL data source&nbsp;. If you want the users to only see the database that they have access to, then you can add edit the MS SQL role called "Public". Set the property "View any database" to "Deny". Now when a user logs in, they will only see the databases that they have access to.</p>
<p>1) Login to SQL Management studio and connect to your SQL instance.</p>
<p>Expand Security&gt;Server Roles&gt; and double click on the "Public" role</p>
<p><img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/d37b25f5-c78a-40f9-8583-018772a12712/547.jpg" style="" width="337"></p>
<p>2) Expand Servers and select your SQL instance. Then tick the box Deny for "View any database"<img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/867762a4-af97-48d2-af9b-8c2a1e298836/547.jpg" style="" width="632">Please note that there are other ways of doing this, or by just setting a deny view permission on specific databases. Lots more information on this topic can be found on the internet.&nbsp;</p>]]></description>
          <pubDate>Tue, 16 Oct 2018 07:18:03 +0000</pubDate>
          <guid>https://community.pyramidanalytics.com/t/63byya/how-to-hide-microsoft-sql-databases-that-a-user-does-not-have-access-to</guid>
          <dc:creator>Daniel</dc:creator>
        </item>

      <item>
          <title>How to backup and restore a PostgreSQL database</title>
          <link>https://community.pyramidanalytics.com/t/1852k1/how-to-backup-and-restore-a-postgresql-database</link>
          <description><![CDATA[<p>Before upgrading Pyramid, it is strongly advised&nbsp;to take a backup before hand.&nbsp; &nbsp; If using the built in PostgreSQL for the Pyramid repository database&nbsp;&nbsp;below is how to backup and restore the database if needed via the windows command line.</p>
<h2>Backup</h2>
<p>To backup the database, the following command should be run from an elevated command prompt on the server where Pyramid has been installed.&nbsp;<br> When opening command prompt, choose "run as administrator"</p>
<p>**In many cases the pyramid DB name will not be pyramidg2. To check what it is, look at the config.ini file that can be found in the Pyramid install directory. If the Pyramid database is not called pyramidg2, then see <a href="https://help.pyramidanalytics.com/Content/Root/Guides/installation/Main/Multi-Server%20Deployments.htm?Highlight=pyramid%20password" rel="nofollow noopener noreferrer" target="_blank">this</a>&nbsp;article for what the password will be**<br> <img alt="" src="https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/d0ae456a-6ea3-4775-afce-14bb686a4080/h/547.png" style=""></p>
<p><span class="pen4">{installdir}\postgres\pgsql\bin\pg_dump.exe -U {uid} -h {host_server} -p {port} -F t &nbsp;-f &nbsp;"{windows_folder_desktopdirectory}\pyramidDbBackup.tar" &nbsp;{dbname}</span></p>
<p><strong>uid </strong>is&nbsp; “pyramid”<br> <strong>port </strong>"12130"<br> <strong>dbname </strong>is&nbsp; “pyramidg2”<br> <strong>password&nbsp; </strong>“pyramid”</p>
<h3>Example Backup</h3>
<p>Assume&nbsp;that the Pyramid server is called "MyBIServer" and Pyramid was installed on the C&nbsp;drive for Windows.</p>
<h4>On Windows</h4>
<pre class="language-none"><code class="language-none">"C:\Program Files\Pyramid\postgres\pgsql\bin\pg_dump.exe" -U pyramid&nbsp; -h localhost&nbsp;-p 12130 -F t&nbsp; -f&nbsp; "C:\backup\pyramidDbBackup.tar"&nbsp;pyramidg2</code></pre>
<h4>On Linux</h4>
<pre class="language-none"><code class="language-none">/opt/Pyramid/postgres/pgsql/bin/pg_dump -U pyramid -h&nbsp;localhost&nbsp;-p 12130 -F t -f /home/master/pyramidDBBackup.tar pyramidg2</code></pre>
<p>If you need to revert back to a previous version of Pyramid, first uninstall* the upgrade version and re-install the previous version. Then delete the database created and restore the backed up one.</p>
<p>To delete the database&nbsp;(stop all Pyramid services first):</p>
<p><span class="pen4">{installdir}\postgres\pgsql\bin\psql psql -h {host_server} -d postgres -U {uid} -p {port} -c "drop database<strong> </strong>{dbname}<strong> </strong>--force;"</span></p>
<h3>Example Database Delete</h3>
<p>Assume the Pyramid server is called "MyBIServer" and Pyramid was installed on the C&nbsp;drive.</p>
<h4>On Windows</h4>
<pre class="language-none"><code class="language-none">"C:\Program Files\Pyramid\postgres\pgsql\bin\psql" -h localhost -d postgres -U pyramid -p 12130 -c "drop database pyramidg2 --force;"</code></pre>
<h4>On Linux</h4>
<pre class="language-none"><code class="language-none">/opt/Pyramid/postgres/pgsql/bin/psql -h&nbsp;localhost&nbsp;-d postgres -U pyramid -p 12130 -c "drop database pyramidg2 --force;"</code></pre>
<p>Before the database is restored, the database must first be created. To do this use the following example command where the server that Pyramid is installed on is called "MyBIServer"</p>
<pre class="language-none"><code class="language-none">"C:\Program Files\Pyramid\postgres\pgsql\bin\psql" -h localhost -d postgres -U pyramid -p 12130 -c "create database pyramidg2;"</code></pre>
<h2>Restore</h2>
<p><span class="pen4">{installdir}\postgres\pgsql\bin\pg_restore.exe&nbsp;-h {host_server} -p {port} -U {uid} -d&nbsp;{dbname}&nbsp; "{windows_folder_desktopdirectory}\pyramidDbBackup.tar"&nbsp;&nbsp;</span></p>
<p><u>Example command to restore the database</u> where the Pyramid server is called "MyBIServer", Pyramid was installed on the C&nbsp;drive and the back is called "pyramidDbBackup.tar"</p>
<h4>On Windows</h4>
<pre class="language-none"><code class="language-none">"C:\Program Files\Pyramid\postgres\pgsql\bin\pg_restore.exe"&nbsp;-h localhost&nbsp;-p 12130 -U pyramid -d pyramidg2 C:\backup\pyramidDbBackup.tar</code></pre>
<h4>On Linux</h4>
<pre class="language-none"><code class="language-none">/opt/Pyramid/postgres/pgsql/bin/pg_restore -h&nbsp;localhost&nbsp;-p 12130 -U pyramid -d pyramidg2 /home/master/pyramidDBBackup.tar</code></pre>
<p>*When uninstalling&nbsp;a single install of Pyramid, make sure to backup the IMDB databases, whose default location is&nbsp;here: "C:\Program Files\Pyramid\repository\imdata"&nbsp;&nbsp;</p>
<p>You may also want to backup the publication folder whose default location is here:</p>
<p>"C:\Program Files\Pyramid\repository\general"</p>
<h2>Alternative Approach with UI</h2>
<p>For those wanting to backup and restore the DB using Dbeaver, the article below describe how to do that: <a rev="auto" href="/t/h7hk07w" rel="nofollow noopener noreferrer">https://community.pyramidanalytics.com/moderate/t/h7hk07w</a></p>]]></description>
          <pubDate>Thu, 28 Jun 2018 14:41:45 +0000</pubDate>
          <guid>https://community.pyramidanalytics.com/t/1852k1/how-to-backup-and-restore-a-postgresql-database</guid>
          <dc:creator>Daniel</dc:creator>
        </item>

      <item>
          <title>Troubleshoot a failure when trying to creating a large IMDB model</title>
          <link>https://community.pyramidanalytics.com/t/q55qps/troubleshoot-a-failure-when-trying-to-creating-a-large-imdb-model</link>
          <description><![CDATA[<p> When creating a new model to an "IMDB" data source, and the model looks like it is created, but it cannot be queried in Discover (the Green app) (An error&nbsp;is&nbsp;shown). </p> 
<p> Check to see if&nbsp;the size of the model. if you were expecting a large file size and the file size is very small,&nbsp;it is usually an indication that the build has failed. </p> 
<blockquote> 
 <p> The file default location:<br> C:\Program Files\Pyramid 2018\repository\imdata&nbsp; &nbsp; &nbsp;&lt;Your Database Name.irdb&gt; </p> 
</blockquote> 
<p> To resolve, you'll need to upgrade your Pyramid version to the latest and&nbsp;try to create the model again. </p> 
<p> If you still encounter issues, please open a support case via our <a href="https://support.pyramidanalytics.com/" rel="nofollow noopener noreferrer" target="_blank">support system</a>. </p>]]></description>
          <pubDate>Mon, 04 Jun 2018 12:31:30 +0000</pubDate>
          <guid>https://community.pyramidanalytics.com/t/q55qps/troubleshoot-a-failure-when-trying-to-creating-a-large-imdb-model</guid>
          <dc:creator>Daniel</dc:creator>
        </item>

      </channel>
</rss>
