<?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: Adding Datafiles Automatically in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071595#M904963</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;I would turn on the AUTOEXTEND feature and make optimal use of space by using A locally managed tablespace with uniform extents. &lt;BR /&gt;&lt;BR /&gt;You can set it up by object size -- setting up extent sizes for "small" "med" and "large".  You would want all segments to be placed in a tablespace such that they would never have more then say 1,000 extents.&lt;BR /&gt;&lt;BR /&gt;So, maybe for you if you have some really small tables:&lt;BR /&gt;&lt;BR /&gt;64KB extent size  -- good for 64k to ~6MB, could goto ~60MB&lt;BR /&gt;512KB extent size -- good for 512k to ~50MB, could goto ~500MB&lt;BR /&gt;1MB extent size   -- good for 1m to ~100MB, could goto ~1MB&lt;BR /&gt;5MB extent size   -- good for 5m to ~500MB, could goto ~5MB&lt;BR /&gt;&lt;BR /&gt;The added benefits that you will also get are:&lt;BR /&gt;- Locally managed tablespaces are much faster at allocating and de-allocating extents - many order of magnitudes faster.&lt;BR /&gt;&lt;BR /&gt;- locally managed tablespaces decrease contention on the data dictionary.&lt;BR /&gt;&lt;BR /&gt;E.g. For normal tablespaces&lt;BR /&gt;CREATE TABLESPACE LMT_SMALL&lt;BR /&gt;DATAFILE 'D:\ORACLE\ORADATA\MYDB\LMT_SMALL01.DBF' SIZE 92160 K &lt;BR /&gt;AUTOEXTEND ON NEXT 512 K &lt;BR /&gt;LOGGING&lt;BR /&gt;ONLINE&lt;BR /&gt;PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64 K&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For temporary tablespace:&lt;BR /&gt;CREATE TEMPORARY TABLESPACE TEMP_LMT&lt;BR /&gt;TEMPFILE 'D:\ORACLE\ORADATA\MYDB\TEMPLMT01.DBF' SIZE 51200 K &lt;BR /&gt;AUTOEXTEND ON NEXT 640 K MAXSIZE 102400 K&lt;BR /&gt;EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64 K;&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj&lt;BR /&gt;</description>
    <pubDate>Tue, 16 Sep 2003 03:53:28 GMT</pubDate>
    <dc:creator>Yogeeraj_1</dc:creator>
    <dc:date>2003-09-16T03:53:28Z</dc:date>
    <item>
      <title>Adding Datafiles Automatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071591#M904959</link>
      <description>I am using Oracle 8.1.7 on Windows 2000. Can I add datafiles automatically when all the existing datafiles get used. Do I have to set any parameter for this. If yes, please give the procedure.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Sunny&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2003 18:39:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071591#M904959</guid>
      <dc:creator>Sunny_15</dc:creator>
      <dc:date>2003-09-15T18:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Datafiles Automatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071592#M904960</link>
      <description>Hi Sunny,&lt;BR /&gt;&lt;BR /&gt;When the existing datafile (tablespace) gets to 90% full and if it is likely to increase in data then you have to plan to increase the tablespace by either resizing or adding a datafile to the tablespace.&lt;BR /&gt;&lt;BR /&gt;You choose to resize (increase) an existing tablespace or add another datafile depending on the current datafile size.  &lt;BR /&gt;&lt;BR /&gt;The command to increase (resize) an existing datafile is&lt;BR /&gt;&lt;BR /&gt;Alter database datafile 'name in full path' resize ??M;&lt;BR /&gt;&lt;BR /&gt;The command to add a datafile to an existing tablespace is&lt;BR /&gt;&lt;BR /&gt;Alter tablespace &lt;NAME&gt; add datafile 'name in full path' size ??M;&lt;BR /&gt;&lt;BR /&gt;I hope this is what you were looking for.&lt;BR /&gt;&lt;BR /&gt;IA&lt;BR /&gt;&lt;BR /&gt;&lt;/NAME&gt;</description>
      <pubDate>Mon, 15 Sep 2003 23:28:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071592#M904960</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2003-09-15T23:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Datafiles Automatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071593#M904961</link>
      <description>Hi,&lt;BR /&gt; You can enable the auto extend option of your datafile. So whenever the data reaches the end of the file it automatically extends it.&lt;BR /&gt;The syntax is :&lt;BR /&gt;ALTER DATABASE DATAFILE 'D:\orant\database\Sys1ORCL.ora' AUTOEXTEND ON;&lt;BR /&gt;You can have a look at : &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76956/dfiles.htm#484" target="_blank"&gt;http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76956/dfiles.htm#484&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Tue, 16 Sep 2003 00:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071593#M904961</guid>
      <dc:creator>V.Tamilvanan</dc:creator>
      <dc:date>2003-09-16T00:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Datafiles Automatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071594#M904962</link>
      <description>alter database datafile '/&lt;PATH&gt;/users.dbf' autoextend on;&lt;/PATH&gt;</description>
      <pubDate>Tue, 16 Sep 2003 02:44:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071594#M904962</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-09-16T02:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Datafiles Automatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071595#M904963</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;I would turn on the AUTOEXTEND feature and make optimal use of space by using A locally managed tablespace with uniform extents. &lt;BR /&gt;&lt;BR /&gt;You can set it up by object size -- setting up extent sizes for "small" "med" and "large".  You would want all segments to be placed in a tablespace such that they would never have more then say 1,000 extents.&lt;BR /&gt;&lt;BR /&gt;So, maybe for you if you have some really small tables:&lt;BR /&gt;&lt;BR /&gt;64KB extent size  -- good for 64k to ~6MB, could goto ~60MB&lt;BR /&gt;512KB extent size -- good for 512k to ~50MB, could goto ~500MB&lt;BR /&gt;1MB extent size   -- good for 1m to ~100MB, could goto ~1MB&lt;BR /&gt;5MB extent size   -- good for 5m to ~500MB, could goto ~5MB&lt;BR /&gt;&lt;BR /&gt;The added benefits that you will also get are:&lt;BR /&gt;- Locally managed tablespaces are much faster at allocating and de-allocating extents - many order of magnitudes faster.&lt;BR /&gt;&lt;BR /&gt;- locally managed tablespaces decrease contention on the data dictionary.&lt;BR /&gt;&lt;BR /&gt;E.g. For normal tablespaces&lt;BR /&gt;CREATE TABLESPACE LMT_SMALL&lt;BR /&gt;DATAFILE 'D:\ORACLE\ORADATA\MYDB\LMT_SMALL01.DBF' SIZE 92160 K &lt;BR /&gt;AUTOEXTEND ON NEXT 512 K &lt;BR /&gt;LOGGING&lt;BR /&gt;ONLINE&lt;BR /&gt;PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64 K&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For temporary tablespace:&lt;BR /&gt;CREATE TEMPORARY TABLESPACE TEMP_LMT&lt;BR /&gt;TEMPFILE 'D:\ORACLE\ORADATA\MYDB\TEMPLMT01.DBF' SIZE 51200 K &lt;BR /&gt;AUTOEXTEND ON NEXT 640 K MAXSIZE 102400 K&lt;BR /&gt;EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64 K;&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Sep 2003 03:53:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071595#M904963</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-09-16T03:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Datafiles Automatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071596#M904964</link>
      <description>Hi Indira, Tamil, Yogeeraj&lt;BR /&gt;&lt;BR /&gt;Thanks for your suggestions. But I was looking for a way wherein the datafiles can be automatically added once the existing datafiles are used up. I want to restrict the size of the datafiles so cannot make them unlimited. So the autoextend usage is limited.&lt;BR /&gt;&lt;BR /&gt;For eg. If there are 10 datafiles and the 11th datafile should get automatically added (may be thru a script or setting a parameter) once the tablespace size reaches its max.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Sunny</description>
      <pubDate>Tue, 16 Sep 2003 13:36:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071596#M904964</guid>
      <dc:creator>Sunny_15</dc:creator>
      <dc:date>2003-09-16T13:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Datafiles Automatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071597#M904965</link>
      <description>Hi Sunny,&lt;BR /&gt;&lt;BR /&gt;as you have noticed by now, there is no automatism by the database to handle this for you. You will have to take it into your own hands(crontab). Roughly you will have to do the following steps.&lt;BR /&gt;&lt;BR /&gt;1. find out, how much is left&lt;BR /&gt;select sum(bytes) from dba_free_space where tablespace_name='BLABLA';&lt;BR /&gt;&lt;BR /&gt;2. find out, now many datafiles you already have.&lt;BR /&gt;select count(*) from dba_data_files where tablespace_name='BLABLA';&lt;BR /&gt;&lt;BR /&gt;3. add one to number, construct new datafile name&lt;BR /&gt;&lt;BR /&gt;4. add datafile using whatever size you want.&lt;BR /&gt;alter tablespace blabla add datafile 'newdatafilename' size 10m;&lt;BR /&gt;&lt;BR /&gt;is that sufficient for you to get the job done?&lt;BR /&gt;&lt;BR /&gt;Michael</description>
      <pubDate>Tue, 16 Sep 2003 17:41:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071597#M904965</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2003-09-16T17:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Datafiles Automatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071598#M904966</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;Thanks for the answer. I too thought that there is no automatic way of doing it. Just wanted to make it sure.&lt;BR /&gt;&lt;BR /&gt;Thanks again !!!&lt;BR /&gt;&lt;BR /&gt;Sunny</description>
      <pubDate>Tue, 16 Sep 2003 17:50:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-datafiles-automatically/m-p/3071598#M904966</guid>
      <dc:creator>Sunny_15</dc:creator>
      <dc:date>2003-09-16T17:50:10Z</dc:date>
    </item>
  </channel>
</rss>

