<?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 Restore an ArcSDE database backup to a database with a different name? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/restore-an-arcsde-database-backup-to-a-database/m-p/458002#M26166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcSDE 10.1 and PostgreSQL 9.1/PostGIS 2.0. I have backups of a production database that I'd like to use for a development database. The name of the development database appends "_dev" to the database name to avoid confusion. However, when I restore the production backup to the development database, I receive the following error on connection:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;2013-03-05 08:07:28 PST ERROR:&amp;nbsp; cross-database references are not implemented: "cvag.sde.sde_object_ids" at character 21
2013-03-05 08:07:28 PST QUERY:&amp;nbsp; SELECT base_id FROM cvag.sde.sde_object_ids WHERE id_type = i_id_type FOR UPDATE
2013-03-05 08:07:28 PST CONTEXT:&amp;nbsp; PL/pgSQL function "sde_get_primary_oid" line 15 at FOR over SELECT rows
2013-03-05 08:07:28 PST STATEMENT:&amp;nbsp; SELECT cvag_dev.sde.SDE_get_primary_oid ($1,$2) &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which leads me to believe that one or more functions in the sde schema is defined with database names as a reference and restoring to a database with a different name doesn't work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried creating the enterprise geodatabase first and then restoring a backup of the production database that excludes the 'sde' schema. The connection works, but now my 800+ feature classes are not registered with the geodatabase. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any best practices published for working with production and development databases that might help me here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:23:22 GMT</pubDate>
    <dc:creator>deleted-user-1T_bOHag6M8d</dc:creator>
    <dc:date>2021-12-11T20:23:22Z</dc:date>
    <item>
      <title>Restore an ArcSDE database backup to a database with a different name?</title>
      <link>https://community.esri.com/t5/data-management-questions/restore-an-arcsde-database-backup-to-a-database/m-p/458002#M26166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcSDE 10.1 and PostgreSQL 9.1/PostGIS 2.0. I have backups of a production database that I'd like to use for a development database. The name of the development database appends "_dev" to the database name to avoid confusion. However, when I restore the production backup to the development database, I receive the following error on connection:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;2013-03-05 08:07:28 PST ERROR:&amp;nbsp; cross-database references are not implemented: "cvag.sde.sde_object_ids" at character 21
2013-03-05 08:07:28 PST QUERY:&amp;nbsp; SELECT base_id FROM cvag.sde.sde_object_ids WHERE id_type = i_id_type FOR UPDATE
2013-03-05 08:07:28 PST CONTEXT:&amp;nbsp; PL/pgSQL function "sde_get_primary_oid" line 15 at FOR over SELECT rows
2013-03-05 08:07:28 PST STATEMENT:&amp;nbsp; SELECT cvag_dev.sde.SDE_get_primary_oid ($1,$2) &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which leads me to believe that one or more functions in the sde schema is defined with database names as a reference and restoring to a database with a different name doesn't work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried creating the enterprise geodatabase first and then restoring a backup of the production database that excludes the 'sde' schema. The connection works, but now my 800+ feature classes are not registered with the geodatabase. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any best practices published for working with production and development databases that might help me here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/restore-an-arcsde-database-backup-to-a-database/m-p/458002#M26166</guid>
      <dc:creator>deleted-user-1T_bOHag6M8d</dc:creator>
      <dc:date>2021-12-11T20:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Restore an ArcSDE database backup to a database with a different name?</title>
      <link>https://community.esri.com/t5/data-management-questions/restore-an-arcsde-database-backup-to-a-database/m-p/458003#M26167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As you've already mentioned, the database name is indeed referenced in a PostgreSQL geodatabase repository. You will need to restore the database with the same name. This issue also applies to a SQL Server geodatabase is described here : &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/36549"&gt;FAQ:&amp;nbsp; Can I restore an ArcSDE geodatabase with a different database name in SQL Server? &lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 22:30:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/restore-an-arcsde-database-backup-to-a-database/m-p/458003#M26167</guid>
      <dc:creator>MandarPurohit</dc:creator>
      <dc:date>2013-03-08T22:30:44Z</dc:date>
    </item>
  </channel>
</rss>

