<?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: Tablespace info for DB2 on HP in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491835#M653246</link>
    <description>so there is not command to check this ?</description>
    <pubDate>Fri, 04 Sep 2009 09:29:29 GMT</pubDate>
    <dc:creator>Bedare Nikhil</dc:creator>
    <dc:date>2009-09-04T09:29:29Z</dc:date>
    <item>
      <title>Tablespace info for DB2 on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491832#M653243</link>
      <description>Hi all,&lt;BR /&gt;I have a HP machine with a db2 database installed.There are few tablespaces on this databases.HOw to check whether the tablespace has been created on raw volume or not ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Nikhil</description>
      <pubDate>Fri, 04 Sep 2009 07:06:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491832#M653243</guid>
      <dc:creator>Bedare Nikhil</dc:creator>
      <dc:date>2009-09-04T07:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Tablespace info for DB2 on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491833#M653244</link>
      <description>issue the followings:&lt;BR /&gt;&lt;BR /&gt;db2 connect to your_DataBase&lt;BR /&gt;db2 list tablespaces show</description>
      <pubDate>Fri, 04 Sep 2009 08:18:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491833#M653244</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-09-04T08:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Tablespace info for DB2 on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491834#M653245</link>
      <description>I'm not very familiar with db2, but in most database engines it works like this:&lt;BR /&gt;&lt;BR /&gt;You should be able to get a path name (or a list of them) from the database engine, identifying where that tablespace is stored. Ask a DataBase Admin to help if necessary.&lt;BR /&gt;&lt;BR /&gt;If the pathname(s) refer to /dev/rdsk device(s), they are obviously on raw volume(s).&lt;BR /&gt;&lt;BR /&gt;If the pathnames refer to something else, you'll need to find out whether they are regular files or something else (symbolic links to /dev/vg*/rlvol* devices, or maybe even manually-created copies of /dev/vg*/rlvol* device nodes). The easiest way to do this is to list the pathnames with a command like "ll &lt;PATHNAME&gt;".&lt;BR /&gt;&lt;BR /&gt;If they are regular files (the first letter of the "ll" output line shows a "-" sign), the tablespace is not on a raw volume.&lt;BR /&gt;&lt;BR /&gt;If they are device nodes (the first letter of the "ll" output line shows a "c" or "b"), then the tablespace is on a raw volume.&lt;BR /&gt;&lt;BR /&gt;If they are symbolic links (the first letter of the "ll" output line shows a "l"), find the target of the symbolic link at the end of the "ll" output line and examine it the same way.&lt;BR /&gt;&lt;BR /&gt;Sometimes symbolic links or custom device nodes are used with raw volumes to make the administration easier. If raw volumes are used at your site, you should talk with the database admins to familiarize yourself with their preferred way of setting them up.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/PATHNAME&gt;</description>
      <pubDate>Fri, 04 Sep 2009 08:33:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491834#M653245</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-09-04T08:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tablespace info for DB2 on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491835#M653246</link>
      <description>so there is not command to check this ?</description>
      <pubDate>Fri, 04 Sep 2009 09:29:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491835#M653246</guid>
      <dc:creator>Bedare Nikhil</dc:creator>
      <dc:date>2009-09-04T09:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Tablespace info for DB2 on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491836#M653247</link>
      <description>There are lots of command around DB2 .&lt;BR /&gt;Did you try these commands ?? (There was a typo previous one.)&lt;BR /&gt;&lt;BR /&gt;# db2 connect to &lt;DB&gt;&lt;BR /&gt;# db2 list tablespaces show detail &lt;BR /&gt;&lt;BR /&gt;            Tablespaces for Current Database&lt;BR /&gt;&lt;BR /&gt; Tablespace ID                        = 0&lt;BR /&gt; Name                                 = SYSCATSPACE&lt;BR /&gt; Type                                 = System managed space&lt;BR /&gt; Contents                             = Any data&lt;BR /&gt; State                                = 0x0000&lt;BR /&gt;   Detailed explanation:&lt;BR /&gt;     Normal&lt;BR /&gt; Total pages                          = 6393&lt;BR /&gt; Useable pages                        = 6393&lt;BR /&gt; Used pages                           = 6393&lt;BR /&gt; Free pages                           = Not applicable&lt;BR /&gt; High water mark (pages)              = Not applicable&lt;BR /&gt; Page size (bytes)                    = 4096&lt;BR /&gt; Extent size (pages)                  = 32&lt;BR /&gt; Prefetch size (pages)                = 32&lt;BR /&gt; Number of containers                 = 1&lt;BR /&gt;&lt;BR /&gt; Tablespace ID                        = 1&lt;BR /&gt; Name                                 = TEMPSPACE1&lt;BR /&gt;&lt;/DB&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:55:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491836#M653247</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-09-04T09:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tablespace info for DB2 on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491837#M653248</link>
      <description>From the above output,how do we know that the tablespace is created on a raw device ?</description>
      <pubDate>Fri, 04 Sep 2009 14:20:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491837#M653248</guid>
      <dc:creator>Bedare Nikhil</dc:creator>
      <dc:date>2009-09-04T14:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Tablespace info for DB2 on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491838#M653249</link>
      <description>I believe if you can see tablespace id(s) and names, it means they are created. You can see below at the end of list:&lt;BR /&gt;Contains &lt;NUMBER of="" tablespace=""&gt; tablespace(s):&lt;BR /&gt;&lt;BR /&gt;You can then obtain the information for table space via the &lt;BR /&gt;# db2pd -tablespaces&lt;BR /&gt;&lt;BR /&gt;Also When it comes to collecting information for a DB2 problem, the most important DB2 utility you need to run is db2support. The db2support utility is designed to automatically collect all DB2 and system diagnostic information available.&lt;BR /&gt;# db2support&lt;BR /&gt;&lt;BR /&gt;And check my notes on db2 tablespace summaries below:&lt;BR /&gt;&lt;BR /&gt;A tablespace is a place to&lt;BR /&gt;store tables.Tablespaces reside in database partition groups. Tablespace definitions and&lt;BR /&gt;attributes are recorded in the database system catalog. &lt;BR /&gt;&lt;BR /&gt;For storing DB2 temporary tablespaces generally use directory /db2temp.&lt;BR /&gt;&lt;BR /&gt;And /tablespaces holds all user tablespaces. For example to create multiple tablespace :&lt;BR /&gt;&lt;BR /&gt;# connect to DB;&lt;BR /&gt;# create tablespace sample_mpl in IBMDEFAULTGROUP pagesize 4k&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For Example;&lt;BR /&gt;To inspect table space USERSPACE1 in the sample database, issue &lt;BR /&gt;# db2dart sample /TSI 2 &lt;BR /&gt;&lt;BR /&gt;-where 2 is the table space ID for table space USERSPACE1. &lt;BR /&gt;&lt;BR /&gt;&lt;/NUMBER&gt;</description>
      <pubDate>Sat, 05 Sep 2009 11:54:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491838#M653249</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-09-05T11:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Tablespace info for DB2 on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491839#M653250</link>
      <description>Nikhil, &lt;BR /&gt;you will find corrections/details for my previous post:&lt;BR /&gt;&lt;BR /&gt;to find your DB Name, issue ;&lt;BR /&gt;# ls -l&lt;BR /&gt;note that database name as:&lt;BR /&gt;xxx.rpt&lt;BR /&gt;&lt;BR /&gt;# db2pd -db xxx -tablespaces&lt;BR /&gt;&lt;BR /&gt;# db2support . -d xxx -c&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Sep 2009 05:51:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tablespace-info-for-db2-on-hp/m-p/4491839#M653250</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-09-07T05:51:46Z</dc:date>
    </item>
  </channel>
</rss>

