<?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: Create database user in Oracle 18c XE via ArcGIS Pro in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/create-database-user-in-oracle-18c-xe-via-arcgis/m-p/1280794#M44528</link>
    <description>&lt;P&gt;ArcGIS Pro use for "&lt;STRONG&gt;Instance&lt;/STRONG&gt;" the Oracle easy connect syntax "&lt;STRONG&gt;192.168.1.3:1521/XEPDB1&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;You can test this via Oracle SQL Plus first, if able to connect with SQL Plus then ArcGIS Pro will be able as well.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/databases/connect-oracle.htm" target="_blank" rel="noopener"&gt;Connect to Oracle from ArcGIS—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2023 15:31:15 GMT</pubDate>
    <dc:creator>MarceloMarques</dc:creator>
    <dc:date>2023-04-20T15:31:15Z</dc:date>
    <item>
      <title>Create database user in Oracle 18c XE via ArcGIS Pro</title>
      <link>https://community.esri.com/t5/data-management-questions/create-database-user-in-oracle-18c-xe-via-arcgis/m-p/1280584#M44524</link>
      <description>&lt;P&gt;I have the following installed on my home computer:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Oracle 18c Express Edition (it's not a geodatabase since I don't have an ArcGIS Server/Enterprise license). Purpose: personal/learning.&lt;/LI&gt;&lt;LI&gt;ArcGIS Pro 3.1.1 Personal Use&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In ArcGIS Pro, I can connect to the Oracle database's SYS user using a database connection in Catalog:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1681948230226.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68541i228CF57EEA4978C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1681948230226.png" alt="Bud_0-1681948230226.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1681948597786.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68542i115EA0FB44932523/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_1-1681948597786.png" alt="Bud_1-1681948597786.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, I want to create a database user called TEST_USER so that I can create Oracle tables/FCs using ArcGIS Pro/Catalog (I'll import the data from a mobile or file GDB for testing purposes).&lt;/P&gt;&lt;P&gt;I tried using the Create Database User geoprocessing tool, but I get an error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1681948836473.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68543iDF325956F927FC7C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_2-1681948836473.png" alt="Bud_2-1681948836473.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;Failed to create the new user in the database. [Success] ERROR: Failed to create new Oracle user TEST_USER (-51).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Error: Underlying DBMS error (-51).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Extended error code: (65096)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ORA-65096: invalid common user or role name&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Error creating database user.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Failed to execute (CreateDatabaseUser).&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can I create a database user in an Oracle XE database using ArcGIS Pro?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I found a blurb from&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7880"&gt;@MarceloMarques&lt;/a&gt;&amp;nbsp;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;99.9% of the time the error&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ORA-65096: invalid common user or role name&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;means you are logged into the CDB when you should be logged into a PDB. For example, if you used the default 19c installation settings, you should login to ORCLPDB (the PDB) instead of ORCL (the CDB).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/geodatabase-questions/qery-about-oracle-and-sde/m-p/1197738/highlight/true#M7804" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/geodatabase-questions/qery-about-oracle-and-sde/m-p/1197738/highlight/true#M7804&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But I'm not sure how to log into the PDB via my ArcGIS Pro database connection, if that's the problem.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 15:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-database-user-in-oracle-18c-xe-via-arcgis/m-p/1280584#M44524</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-20T15:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create database user in Oracle 18c XE via ArcGIS Pro</title>
      <link>https://community.esri.com/t5/data-management-questions/create-database-user-in-oracle-18c-xe-via-arcgis/m-p/1280586#M44525</link>
      <description>&lt;P&gt;If you have a CDB and you are connected to the cdb$root container then you can only create common users in the cdb$root.&lt;/P&gt;&lt;P&gt;You need to use a PDB, then you will be able to create normal users, and the ArcGIS Pro "Create Data User" shall work.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/21/dbseg/managing-security-for-oracle-database-users.html#GUID-BBBD9904-F2F3-442B-9AFC-8ACDD9A588D8" target="_blank" rel="noopener"&gt;Managing Security for Oracle Database Users&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 00:33:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-database-user-in-oracle-18c-xe-via-arcgis/m-p/1280586#M44525</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-04-20T00:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create database user in Oracle 18c XE via ArcGIS Pro</title>
      <link>https://community.esri.com/t5/data-management-questions/create-database-user-in-oracle-18c-xe-via-arcgis/m-p/1280601#M44526</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Regarding:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;You need to use a PDB, then you will be able to create normal users, and the ArcGIS Pro "Create Data User" shall work.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;How can I connect to a PDB in a ArcGIS Pro database connection? (such as XEPDB1, the default PDB)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I was able to connect to the&amp;nbsp;XEPDB1 PDB in SQL Developer and create a new user:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1681958314584.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68546i4E06B7AF74B7FBF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1681958314584.png" alt="Bud_0-1681958314584.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I don't know how to connect to&amp;nbsp;&lt;SPAN&gt;XEPDB1 in ArcGIS Pro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is my existing SYS connection, which works as expected. I used Instance=XE (XE is my database name/SID).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_3-1681958530225.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68549iD6AF4C5BB0E38E24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_3-1681958530225.png" alt="Bud_3-1681958530225.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But as we mentioned, that connects to the CDB, not the PDB.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I tried creating a similar connection, but this time using Instance=XEPDB1. But that didn't work. &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Failed to connect tot he specified DBMS instance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A database connection exception has occurred. Underlying DBMS error[ORA-12152:could not resolve the connect identifier specified No extended error.].&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I suspect I got that error because&amp;nbsp;XEPDB1 is a Service Name, not a SID. But I'm just guessing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1681958463928.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68548i5C4808C8986B5631/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_2-1681958463928.png" alt="Bud_2-1681958463928.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I connect to the&amp;nbsp;&lt;SPAN&gt;XEPDB1 PDB in a ArcGIS Pro database connection?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Related:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-enterprise-questions/can-t-connect-to-oracle-pluggable-database-18c/td-p/284152" target="_self"&gt;Can't connect to oracle pluggable database (18c)&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-enterprise-ideas/create-database-connection-using-a-service-name/idi-p/1280613" target="_self"&gt;&lt;SPAN&gt;Idea -&amp;nbsp;Create database connection using a Service Name instead of an SID (Oracle)&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 20 Apr 2023 09:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-database-user-in-oracle-18c-xe-via-arcgis/m-p/1280601#M44526</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-20T09:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create database user in Oracle 18c XE via ArcGIS Pro</title>
      <link>https://community.esri.com/t5/data-management-questions/create-database-user-in-oracle-18c-xe-via-arcgis/m-p/1280794#M44528</link>
      <description>&lt;P&gt;ArcGIS Pro use for "&lt;STRONG&gt;Instance&lt;/STRONG&gt;" the Oracle easy connect syntax "&lt;STRONG&gt;192.168.1.3:1521/XEPDB1&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;You can test this via Oracle SQL Plus first, if able to connect with SQL Plus then ArcGIS Pro will be able as well.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/databases/connect-oracle.htm" target="_blank" rel="noopener"&gt;Connect to Oracle from ArcGIS—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 15:31:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-database-user-in-oracle-18c-xe-via-arcgis/m-p/1280794#M44528</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-04-20T15:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create database user in Oracle 18c XE via ArcGIS Pro</title>
      <link>https://community.esri.com/t5/data-management-questions/create-database-user-in-oracle-18c-xe-via-arcgis/m-p/1280795#M44529</link>
      <description>&lt;P&gt;I figured it out (before I saw MarceloMarques' &lt;STRONG&gt;easy connect syntax&lt;/STRONG&gt; solution above).&lt;/P&gt;&lt;P&gt;My TNS wasn't set up correctly. I added a TNS entry for&amp;nbsp;XEPDB1. (Previously, it only had an entry for XE.)&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt; XEPDB1&lt;/STRONG&gt; =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.3)(PORT = 1521))
    (CONNECT_DATA =
      (SERVICE_NAME = &lt;STRONG&gt;XEPDB1&lt;/STRONG&gt;)
    )
  )&lt;/PRE&gt;&lt;P&gt;Now, I'm able to connect to&amp;nbsp;XEPDB1 in an ArcGIS Pro database connection (reminder: restart ArcGIS Pro after editing tnsnames.ora):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_3-1682004458126.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68593iB58226DF54427018/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_3-1682004458126.png" alt="Bud_3-1682004458126.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Likewise, I'm now able to create a new user using the Create Database User geoprocessing tool, because I'm connected to the XEPDB1 PDB:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_4-1682004565329.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68594i1F0A5BCF2FB722E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_4-1682004565329.png" alt="Bud_4-1682004565329.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I can connect to the new user:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1682008590723.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68611i6380786205E6B68C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_1-1682008590723.png" alt="Bud_1-1682008590723.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And create &amp;amp; view tables/FCs via Catalog:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1682008579085.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68610i3B416CBAB89AD683/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1682008579085.png" alt="Bud_0-1682008579085.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Complete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notes:&lt;/P&gt;&lt;P&gt;1. If I understand correctly: I didn't need that TNS entry when connecting to&amp;nbsp;XEPDB1 via SQL Developer because SQL&amp;nbsp; Developer using a different connection mechanism -- JDBC, not the database client (ArcGIS Pro uses the database client).&lt;/P&gt;&lt;P&gt;2. Side note: In SQL Developer, I think I can connect to either the SID (XE) or the Service Name (also XE).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1682004324163.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68591i1E86323A25816FED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_1-1682004324163.png" alt="Bud_1-1682004324163.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1682004350900.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68592iE233C8C46A0B0476/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_2-1682004350900.png" alt="Bud_2-1682004350900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. Useful websites:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://blog.toadworld.com/getting-started-with-oracle-18c-express-edition" target="_blank" rel="noopener"&gt;https://blog.toadworld.com/getting-started-with-oracle-18c-express-edition&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://www.databasestar.com/oracle-pdb/" target="_blank" rel="noopener"&gt;https://www.databasestar.com/oracle-pdb/&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 21 Apr 2023 04:53:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-database-user-in-oracle-18c-xe-via-arcgis/m-p/1280795#M44529</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-21T04:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create database user in Oracle 18c XE via ArcGIS Pro</title>
      <link>https://community.esri.com/t5/data-management-questions/create-database-user-in-oracle-18c-xe-via-arcgis/m-p/1280805#M44530</link>
      <description>&lt;P&gt;Thanks, just saw this message now.&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;&lt;STRONG&gt;192.168.1.3:1521/XEPDB1&lt;/STRONG&gt;&amp;nbsp;as you suggested, and it worked in an ArcGIS Pro database connection:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1682005074048.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68596iED0BB8C9B97F71AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1682005074048.png" alt="Bud_0-1682005074048.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Although I made that connection &lt;STRONG&gt;after&lt;/STRONG&gt;&amp;nbsp;adding XEPDB1 to TNS.&lt;/P&gt;&lt;P&gt;So I'm not sure if&amp;nbsp;XEPDB1 in TNS is needed or not for the &lt;SPAN&gt;easy connect syntax&lt;/SPAN&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 15:39:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-database-user-in-oracle-18c-xe-via-arcgis/m-p/1280805#M44530</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-20T15:39:48Z</dc:date>
    </item>
  </channel>
</rss>

