<?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 Finally got this working. in Unified Communications Infrastructure</title>
    <link>https://community.cisco.com/t5/unified-communications-infrastructure/cuc-sql-query-on-mutliple-db/m-p/3075768#M13522</link>
    <description>&lt;P&gt;Finally got this working. Here's the correct syntax:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;admin:run cuc dbquery unitydirdb select alias from unitydirdb:tbl_globaluser,unitymbxdb1:tbl_mailbox,unitydirdb:tbl_mailboxmap where mailboxobjectid=mailboxid and objectid=userobjectid and description != alias&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Nick&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2017 10:13:50 GMT</pubDate>
    <dc:creator>n.bratsikas</dc:creator>
    <dc:date>2017-02-06T10:13:50Z</dc:date>
    <item>
      <title>cuc sql query on mutliple db</title>
      <link>https://community.cisco.com/t5/unified-communications-infrastructure/cuc-sql-query-on-mutliple-db/m-p/3075765#M13519</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm trying to query on mutliple db in Unity, but looks like 'run cuc dbquery' does not allow it.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;admin:run cuc dbquery select map.description, u.alias from unitydirdb.tbl_mailboxmap map,unitymbxdb1.tbl_mailbox m,unitydirdb.tbl_globaluser u where m.mailboxobjectid=map.mailboxid and u.objectid=map.userobjectid and map.description != u.alias&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;The value of 'database_name' is not valid; see help or syntax for valid names&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;USAGE: run cuc dbquery database_name sql_statement [page]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Command failed&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Does anybody know how to achieve this?&lt;/P&gt;
&lt;P&gt;Nick&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 19:03:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/unified-communications-infrastructure/cuc-sql-query-on-mutliple-db/m-p/3075765#M13519</guid>
      <dc:creator>n.bratsikas</dc:creator>
      <dc:date>2019-03-19T19:03:44Z</dc:date>
    </item>
    <item>
      <title>Hi Nick, </title>
      <link>https://community.cisco.com/t5/unified-communications-infrastructure/cuc-sql-query-on-mutliple-db/m-p/3075766#M13520</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: georgia, palatino, serif;"&gt;Hi Nick,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: georgia, palatino, serif;"&gt;Please find the details below&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: georgia, palatino, serif;"&gt;database_name specifies the database that sql_statement operates on. Database names are case sensitive. Connection databases include:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: georgia, palatino, serif;"&gt;–unitydirdb—contains the directory and configuration data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: georgia, palatino, serif;"&gt;–unitydyndb—contains dynamic data used internally by Connection&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: georgia, palatino, serif;"&gt;–unitymbxdb1—contains the data about the current voice messages, including pointers to the audio files that are stored in the file system&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: georgia, palatino, serif;"&gt;–unityrptdb—contains audit log data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: georgia, palatino, serif;"&gt;You could have a try using these names&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: georgia, palatino, serif;"&gt;Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: georgia, palatino, serif;"&gt;Anoop&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 07:03:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/unified-communications-infrastructure/cuc-sql-query-on-mutliple-db/m-p/3075766#M13520</guid>
      <dc:creator>Anoop Krishnan</dc:creator>
      <dc:date>2017-01-31T07:03:27Z</dc:date>
    </item>
    <item>
      <title>Hi Anoop,</title>
      <link>https://community.cisco.com/t5/unified-communications-infrastructure/cuc-sql-query-on-mutliple-db/m-p/3075767#M13521</link>
      <description>&lt;P&gt;Hi Anoop,&lt;/P&gt;
&lt;P&gt;I'm well aware you need to provide a db name, but as my query joins tables from 2 databases, you can't just put one as database_name. Not working with 2&amp;nbsp; either.&lt;/P&gt;
&lt;P&gt;with one db defined:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;admin:run cuc dbquery unitydirdb select map.description, u.alias from unitydirdb.tbl_mailboxmap map,unitymbxdb1.tbl_mailbox m,unitydirdb.tbl_globaluser u where m.mailboxobjectid=map.mailboxid and u.objectid=map.userobjectid and map.description != u.alias&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The specified table (unitydirdb.tbl_mailboxmap) is not in the database.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;with 2 db defined:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;admin:run cuc dbquery unitydirdb,unitymbxdb1 select map.description, u.alias from unitydirdb.tbl_mailboxmap map,unitymbxdb1.tbl_mailbox m,unitydirdb.tbl_globaluser u where m.mailboxobjectid=map.mailboxid and u.objectid=map.userobjectid and map.description != u.alias&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The value of 'database_name' is not valid; see help or syntax for valid names&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;USAGE: run cuc dbquery database_name sql_statement [page]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Command failed&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 11:27:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/unified-communications-infrastructure/cuc-sql-query-on-mutliple-db/m-p/3075767#M13521</guid>
      <dc:creator>n.bratsikas</dc:creator>
      <dc:date>2017-01-31T11:27:02Z</dc:date>
    </item>
    <item>
      <title>Finally got this working.</title>
      <link>https://community.cisco.com/t5/unified-communications-infrastructure/cuc-sql-query-on-mutliple-db/m-p/3075768#M13522</link>
      <description>&lt;P&gt;Finally got this working. Here's the correct syntax:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;admin:run cuc dbquery unitydirdb select alias from unitydirdb:tbl_globaluser,unitymbxdb1:tbl_mailbox,unitydirdb:tbl_mailboxmap where mailboxobjectid=mailboxid and objectid=userobjectid and description != alias&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 10:13:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/unified-communications-infrastructure/cuc-sql-query-on-mutliple-db/m-p/3075768#M13522</guid>
      <dc:creator>n.bratsikas</dc:creator>
      <dc:date>2017-02-06T10:13:50Z</dc:date>
    </item>
  </channel>
</rss>

