<?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>Question Re: Get Java Schema/User from a script in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/get-java-schema-user-from-a-script/qaa-p/9356147#M3326836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all repliers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maria Joseph, your answer seems to be the most helpfull for my purpose. I will stick with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jochen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Apr 2013 07:18:12 GMT</pubDate>
    <dc:creator>jochen_willeke</dc:creator>
    <dc:date>2013-04-02T07:18:12Z</dc:date>
    <item>
      <title>Get Java Schema/User from a script</title>
      <link>https://community.sap.com/t5/technology-q-a/get-java-schema-user-from-a-script/qaq-p/9356143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey SAP-Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to the whole SAP Netweaver thing and currently I am working on a script and need to find out (automatically) which User/Schema is used by a given Netweaver AS Java System. I know about the naming rules (SAPSR3DB and/or SAP&amp;lt;SID&amp;gt;DB) but just in case someone has messed around with that (e.g. due to systemcopies) I want to check. My idea is, to check for some core-tables which MUST belong to the used Schema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;select OWNER,OBJECT_NAME from dba_objects where OBJECT_NAME = '&amp;lt;table name&amp;gt;';&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, do you think this is a good idea, and second which table may I use? I am thankfull for any thoughts on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jochen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 17:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-java-schema-user-from-a-script/qaq-p/9356143</guid>
      <dc:creator>jochen_willeke</dc:creator>
      <dc:date>2013-03-28T17:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get Java Schema/User from a script</title>
      <link>https://community.sap.com/t5/technology-q-a/get-java-schema-user-from-a-script/qaa-p/9356144#M3326833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jochen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL command mentioned by you looks good.&lt;/P&gt;&lt;P&gt;Additionally you may check following scrips&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select username from dba_users; -&amp;gt; This will list down all the database users include schema user.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;OL class="dp-sql" start="1" style="font-style: inherit; font-family: inherit;"&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;SPAN class="keyword" style="font-style: inherit;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit;"&gt; OWNER,OBJECT_NAME &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-style: inherit;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit;"&gt; dba_objects &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-style: inherit;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit;"&gt; OBJECT_NAME = &lt;/SPAN&gt;&lt;SPAN class="string" style="font-style: inherit;"&gt;'&amp;lt;table name&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit;"&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;First of all, do you think this is a good idea, and second which table may I use? I am thankfull for any thoughts on this.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may go with table SVERS as starting points. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak Kori&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 17:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-java-schema-user-from-a-script/qaa-p/9356144#M3326833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-28T17:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get Java Schema/User from a script</title>
      <link>https://community.sap.com/t5/technology-q-a/get-java-schema-user-from-a-script/qaa-p/9356145#M3326834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;The database schema for the Java stack is also maintained in the Configtool secure store.&lt;/P&gt;&lt;P&gt;Also you may use these queries.&lt;/P&gt;&lt;P&gt;SELECT USERNAME FROM DBA_USERS;&lt;/P&gt;&lt;P&gt;This will provide you the list of users and there you can find the schema name for Java.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT OWNER, OBJECT_NAME FROM DBA_OBJECTS WHERE OWNER = 'SAPSR3DB';&lt;/P&gt;&lt;P&gt;This will show you the list of objects owned by the schema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SVERS table wont list any schema information and I doubt whether the table is available on a Java stack&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;BR /&gt;RB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 08:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-java-schema-user-from-a-script/qaa-p/9356145#M3326834</guid>
      <dc:creator>Reagan</dc:creator>
      <dc:date>2013-03-29T08:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get Java Schema/User from a script</title>
      <link>https://community.sap.com/t5/technology-q-a/get-java-schema-user-from-a-script/qaa-p/9356146#M3326835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think we can make it simple by just finding out what is the name of the schema that is mapped for the default temporary tablespace for Java DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLease find the attached screenshot...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this way to find out what is the schema for java in this way too I believe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vimal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 08:50:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-java-schema-user-from-a-script/qaa-p/9356146#M3326835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-29T08:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get Java Schema/User from a script</title>
      <link>https://community.sap.com/t5/technology-q-a/get-java-schema-user-from-a-script/qaa-p/9356147#M3326836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all repliers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maria Joseph, your answer seems to be the most helpfull for my purpose. I will stick with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jochen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 07:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-java-schema-user-from-a-script/qaa-p/9356147#M3326836</guid>
      <dc:creator>jochen_willeke</dc:creator>
      <dc:date>2013-04-02T07:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get Java Schema/User from a script</title>
      <link>https://community.sap.com/t5/technology-q-a/get-java-schema-user-from-a-script/qaa-p/9356148#M3326837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jochen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Kindly close the thread if your query is answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vimal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 07:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/get-java-schema-user-from-a-script/qaa-p/9356148#M3326837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-02T07:20:54Z</dc:date>
    </item>
  </channel>
</rss>

