<?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: db2 commands in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/db2-commands/qaa-p/3894115#M1515933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Catalog node first on remote client&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[CATALOG TCP/IP NODE|http://publib.boulder.ibm.com/infocenter/db2luw/v9/topic/com.ibm.db2.udb.admin.doc/doc/r0001944.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[CATALOG DB|http://publib.boulder.ibm.com/infocenter/db2luw/v9/topic/com.ibm.db2.udb.admin.doc/doc/r0001936.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is using IBM DB2 Congiguration Assistant tool&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2008 19:48:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-03T19:48:01Z</dc:date>
    <item>
      <title>db2 commands</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-commands/qaq-p/3894109</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;I am new to db2 database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) How can we check the scheme owner of the db2 database .&lt;/P&gt;&lt;P&gt;2.) I wanted to reset the DDIC passsword from the database command prompt , can anybody give me the syntax of the command.&lt;/P&gt;&lt;P&gt;3.) How to connect to db2 database from command prompt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anthony D'souza on Jun 3, 2008 1:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 08:02:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-commands/qaq-p/3894109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T08:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: db2 commands</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-commands/qaa-p/3894110#M1515928</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;Refer thsi link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/db104275a2e72ce10000000a1550b0/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/db104275a2e72ce10000000a1550b0/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;usha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 11:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-commands/qaa-p/3894110#M1515928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T11:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: db2 commands</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-commands/qaa-p/3894111#M1515929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This link gives a doc which is not precisely what is wanted. &lt;/P&gt;&lt;P&gt;Would you please correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 14:59:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-commands/qaa-p/3894111#M1515929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T14:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: db2 commands</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-commands/qaa-p/3894112#M1515930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. After connecting to database, the following will give schema name and owner.&lt;/P&gt;&lt;P&gt;db2 "select schemaname,owner from syscat.schemata"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. DDIC password reset - Do not know. Let you know if I find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Connecting to db2 database depends on from where the connection is coming from like local or remote....so on....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As local &lt;/P&gt;&lt;P&gt;db2 connect to &lt;EM&gt;dbname&lt;/EM&gt; -- this will connect as db2&amp;lt;sid&amp;gt; user&lt;/P&gt;&lt;P&gt;to connect as different user like sap&amp;lt;sid&amp;gt;&lt;/P&gt;&lt;P&gt;db2 connect to &lt;EM&gt;dbname&lt;/EM&gt; user &lt;EM&gt;sap&amp;lt;sid&amp;gt;&lt;/EM&gt; -- it will prompt for sap&amp;lt;sid&amp;gt; user password&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As remotely i.e from db2 client (pre-requisite is that particular db need to catalogued at local client)&lt;/P&gt;&lt;P&gt;db2 connect to &lt;EM&gt;dbname&lt;/EM&gt; user &lt;EM&gt;sap&amp;lt;sid&amp;gt;&lt;/EM&gt; -- it will prompt for sap&amp;lt;sid&amp;gt; user password&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 17:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-commands/qaa-p/3894112#M1515930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T17:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: db2 commands</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-commands/qaa-p/3894113#M1515931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you give the syntax for catalogue the remote DB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 18:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-commands/qaa-p/3894113#M1515931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T18:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: db2 commands</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-commands/qaa-p/3894114#M1515932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to complement the answer of Anil Lella by providing other information related to your questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1.) How can we check the schema owner of the db2 database .&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DB2 UDB for Unix and Windows (let's call it up to now DB6) uses different authorizations and privileges. One of them is the DBADM authorization, which is granted by default to the creator of the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can execute the following query to get a list of users, who have the DBADM authorization:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT DISTINCT GRANTEE, GRANTEETYPE FROM SYSCAT.DBAUTH WHERE DBADMAUTH = 'Y'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides whenever you create a table in DB6, a default schema is associated with it; therefore, if you are connected with the user db2bn7 and you create a table, i.e.: mytable, then the table will be fully referenced by other users using the name db2bn7.mytable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, it might be possible you get more than one schema, that by running the query against syscat.schemata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2.) I wanted to reset the DDIC password from the database command prompt , can anybody give me the syntax of the command.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not pretty sure, whether it is possible to perform such a reset from the database command prompt. As far as I know the DDIC user is a user from you SAP system, there is no correlation of this user to an operating system user or something like that. Therefore I would suspect, there is no way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides, there is no such utility from DB6, which can interact with users created inside an SAP system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3.) How to connect to db2 database from command prompt.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer of Anil is right. It depends on the kind of client you are, either local or remote. Just to complement the answer, I would mention as additional step, that you first must catalog the host holding the database as a TCP/IP node in your remote client. After that, you can catalog the database at the remote machine stating that the database at that node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When connecting from a local client, you do not need to catalog any database, because as part of the database creation process it is cataloged automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As general information source about DB6, I would suggest you to read the IBM documentation. In the following websites you have access to each DB2 UDB version documentation (listed from DB2 9.5, 9 and 8): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp" target="test_blank"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp" target="test_blank"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp" target="test_blank"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For question 1.) you will get further information by reading the entry for the CREATE DATABASE command.&lt;/P&gt;&lt;P&gt;For question 2.) you will get further information by reading the entry for the CONNECT statement and/or the CATALOG DATABASE/CATALOG TCPIP NODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another interesting source of information is the preparation documentation for the DB2 Family Fundamentals Certification. You get access to this documentation in this site:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ibm.com/developerworks/offers/lp/db2cert/db2-cert730.html" target="test_blank"&gt;http://www.ibm.com/developerworks/offers/lp/db2cert/db2-cert730.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 2 and Part 3 have further information about your questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, Edgardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 18:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-commands/qaa-p/3894114#M1515932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T18:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: db2 commands</title>
      <link>https://community.sap.com/t5/technology-q-a/db2-commands/qaa-p/3894115#M1515933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Catalog node first on remote client&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[CATALOG TCP/IP NODE|http://publib.boulder.ibm.com/infocenter/db2luw/v9/topic/com.ibm.db2.udb.admin.doc/doc/r0001944.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[CATALOG DB|http://publib.boulder.ibm.com/infocenter/db2luw/v9/topic/com.ibm.db2.udb.admin.doc/doc/r0001936.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is using IBM DB2 Congiguration Assistant tool&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 19:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/db2-commands/qaa-p/3894115#M1515933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T19:48:01Z</dc:date>
    </item>
  </channel>
</rss>

