<?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: Database crashed due to open files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781060#M263246</link>
    <description>Hi (again) Sally:&lt;BR /&gt;&lt;BR /&gt;Jeff makes a good point.  I used the word "user" to refer to a *process* -- a poor, non-rigorous choice of words.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 02 May 2006 12:45:04 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2006-05-02T12:45:04Z</dc:date>
    <item>
      <title>Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781055#M263241</link>
      <description>We have a server (hpux 11i) with multiple databases running.  Our production database shut down due to the SMON process terminating with an error.  The following is on the Oracle site in relation to the error:&lt;BR /&gt;&lt;BR /&gt;This can be caused because the system has either exceeded the number of open files at the user level or system wide.&lt;BR /&gt;&lt;BR /&gt;Sar -v shows the files open no where near the limit...but that would just be "system wide".  How can I find out if we hit the limit at the user level?  I imagine with lsof, but how can I tell what my user level maxfiles is?&lt;BR /&gt;Any other ideas as it may not be open files at all...that is just what Oracle is saying.&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Tue, 02 May 2006 12:04:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781055#M263241</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2006-05-02T12:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781056#M263242</link>
      <description>Hi Sally:&lt;BR /&gt;&lt;BR /&gt;You need to consider the soft and hard limits for open files otherwise known as 'maxfiles' and 'maxfiles_lim' along with the globl limitation imposed by 'nfile'.&lt;BR /&gt;&lt;BR /&gt;# kmtune -l &lt;BR /&gt;&lt;BR /&gt;...will report your current kernel settings.&lt;BR /&gt;&lt;BR /&gt;You can use 'glance' and select a process and toggle "F" for a Files view to see the files associated with a process, too.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 02 May 2006 12:21:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781056#M263242</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-05-02T12:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781057#M263243</link>
      <description>Is it maxfiles and maxfiles_lim that give the user level file limits?</description>
      <pubDate>Tue, 02 May 2006 12:22:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781057#M263243</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2006-05-02T12:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781058#M263244</link>
      <description>There's no per-user open file limit as far as I know. The system-wide limit is controlled by nfile and the per-process limit is controlled by maxfiles and maxfiles_lim. So you need to watch the open files for the smon process to see if it's reaching the per-process limit.</description>
      <pubDate>Tue, 02 May 2006 12:25:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781058#M263244</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-05-02T12:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781059#M263245</link>
      <description>Hi Sally:&lt;BR /&gt;&lt;BR /&gt;'maxfiles_lim' is the maximum level to which a non-root user can increase their 'maxfiles' value.  Thus, 'maxfiles_lim' is called a "hard" limit and 'maxfiles' is called the "soft" limit.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 02 May 2006 12:27:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781059#M263245</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-05-02T12:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781060#M263246</link>
      <description>Hi (again) Sally:&lt;BR /&gt;&lt;BR /&gt;Jeff makes a good point.  I used the word "user" to refer to a *process* -- a poor, non-rigorous choice of words.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 May 2006 12:45:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781060#M263246</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-05-02T12:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781061#M263247</link>
      <description>So our maxfiles and maxfiles_lim are both at 2048, therefore, oracle (for example)can have no more than 2048 processes running at a time?&lt;BR /&gt;&lt;BR /&gt;Thanks for all the responses!</description>
      <pubDate>Tue, 02 May 2006 13:08:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781061#M263247</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2006-05-02T13:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781062#M263248</link>
      <description>No.&lt;BR /&gt;&lt;BR /&gt;maxfiles and maxfiles_lim control the number of FILES each process can have open.&lt;BR /&gt;&lt;BR /&gt;There is a different kernel variable which controls the number of processes each user can.  That is maxuprc.</description>
      <pubDate>Tue, 02 May 2006 13:16:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781062#M263248</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-05-02T13:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781063#M263249</link>
      <description>Hi Sally:&lt;BR /&gt;&lt;BR /&gt;Per your last post, *not Oracle*, but rather per *process*, no more than 2,048 open files at a time.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 02 May 2006 13:19:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781063#M263249</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-05-02T13:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781064#M263250</link>
      <description>The key to knowing which limit you are bumping into is to eexamine the errno value set by the open() system call. This value should be logged in your Oracle alert logs and will be a small integer value.&lt;BR /&gt;&lt;BR /&gt;If the system-wide limit is reached, errno is set to ENFILE (23); if the per-process limit is reached, errno is set to EMFILE (24).&lt;BR /&gt;&lt;BR /&gt;Man 2 open for details. Learning to know what errno values systems calls can set will go a long way towards understanding many UNIX problems. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 May 2006 14:51:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781064#M263250</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-05-02T14:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781065#M263251</link>
      <description>I'm thinking you hit the "nfile" limit.&lt;BR /&gt;&lt;BR /&gt;This is the TOTAL number of files open for the database for all users for all processes.  The problem is that each user session will go off and open files for reading, and this will happen PER USER connection.  So, if you've got really big processes that traverse data on 20 tablespaces, each with an average of 10 data files, and 5 index data files. that's 20x10+20x5=300 connections for that ONE user.  Have 500 users?  You could reach 150 thousand open files at once during peak periods, and this will definitely begin to stop Oracle processes when you exceed it.  I've been totally amazed by how fast this resource can be consumed, and I've had to adjust up quite heavily on the nfile resource.&lt;BR /&gt;&lt;BR /&gt;Increase the number of nfile resources you've got (try another 10 or 15% for starters) and you should fix your problem.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 May 2006 16:51:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781065#M263251</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2006-05-02T16:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781066#M263252</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;Thanks for the response, but if nfile was exceeded, wouldn't that show up in the "sar -v" data?  I checked it out for the whole day and it wasn't even close to hitting the max.&lt;BR /&gt;&lt;BR /&gt;Sally</description>
      <pubDate>Wed, 03 May 2006 06:25:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781066#M263252</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2006-05-03T06:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781067#M263253</link>
      <description>Hello Sally,&lt;BR /&gt;&lt;BR /&gt;Can you show me what the actual error message was?&lt;BR /&gt;When you say many databases, do you mean many Oracle instances or many Oracle schemas within an Oracle instance (how many smon processes run at one time)?&lt;BR /&gt;This almost looks like the Oracle db_files parameter  value (in the init.ora file) was exceeded.</description>
      <pubDate>Wed, 03 May 2006 07:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781067#M263253</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2006-05-03T07:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781068#M263254</link>
      <description>Here is the error we got, and then the DB shutdown...&lt;BR /&gt;&lt;BR /&gt;ORA-00474: SMON process terminated with error</description>
      <pubDate>Wed, 03 May 2006 08:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781068#M263254</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2006-05-03T08:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781069#M263255</link>
      <description>Here is more of the error:&lt;BR /&gt;&lt;BR /&gt;Errors in file /u1/oracle/admin/h21q/bdump/pmon_27192_h21q.trc:&lt;BR /&gt;ORA-00474: SMON process terminated with error&lt;BR /&gt;Tue May  2 10:00:15 2006&lt;BR /&gt;PMON: terminating instance due to error 474&lt;BR /&gt;Instance terminated by PMON, pid = 27192&lt;BR /&gt;&lt;BR /&gt;Instance name: db&lt;BR /&gt;Redo thread mounted by this instance: 1&lt;BR /&gt;Oracle process number: 2&lt;BR /&gt;Unix process pid: 27192, image:  (PMON)&lt;BR /&gt; &lt;BR /&gt;*** 2006-05-02 10:00:15.392&lt;BR /&gt;*** SESSION ID:(1.1) 2006-05-02 10:00:14.452&lt;BR /&gt;error 474 detected in background process&lt;BR /&gt;ORA-00474: SMON process terminated with error</description>
      <pubDate>Wed, 03 May 2006 08:32:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781069#M263255</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2006-05-03T08:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781070#M263256</link>
      <description>Yes, you're right your sar output shows you nfile.  And IF you had it running the whole while, then that is not the problem.  Excuse the posting.&lt;BR /&gt;&lt;BR /&gt;In my reading of multiple errors experienced by ORA-474, it seem that indicates ONLY that SMON shut you down, not why SMON shut you down.&lt;BR /&gt;&lt;BR /&gt;I'm wondering what's in the trace file mentioned in your last post, can you post it?</description>
      <pubDate>Wed, 03 May 2006 09:31:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781070#M263256</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2006-05-03T09:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781071#M263257</link>
      <description>Hi John,&lt;BR /&gt;What I posted above is what was in that trc file....can't find anything else.&lt;BR /&gt;Here is the output of "sar -q" around the time the db crashed:&lt;BR /&gt;&lt;BR /&gt;00:00:03 runq-sz %runocc swpq-sz %swpocc&lt;BR /&gt;08:42:00     5.0      99   101.0     100&lt;BR /&gt;08:44:00     3.4      93   105.8     100&lt;BR /&gt;08:46:01     4.2      97   118.5     100&lt;BR /&gt;08:48:00     4.4      96   132.2     100&lt;BR /&gt;08:50:00     3.9      95   126.8     100&lt;BR /&gt;08:52:01     3.9      95   139.1     100&lt;BR /&gt;08:54:00     4.6      99   151.8     100&lt;BR /&gt;08:56:01     4.9      98   155.0     100&lt;BR /&gt;08:58:00     4.9      99   149.9     100&lt;BR /&gt;09:00:01     4.4      95   149.3     100&lt;BR /&gt;09:02:01     5.0      95   145.1     100&lt;BR /&gt;09:04:02     3.1      87   147.1     100&lt;BR /&gt;09:06:01     2.6      82   155.0     100&lt;BR /&gt;09:08:02     2.1      65   162.4     100&lt;BR /&gt;09:10:01     2.6      78   156.8     100&lt;BR /&gt;09:12:02     3.1      82   166.2     100&lt;BR /&gt;09:14:02     4.5      96   159.0     100&lt;BR /&gt;09:16:01     5.3      97   160.9     100&lt;BR /&gt;09:18:01     5.5      99   152.3     100&lt;BR /&gt;09:20:01     4.5      98   150.6     100&lt;BR /&gt;09:22:02     5.3      99   156.4     100&lt;BR /&gt;09:24:01     5.1      99   155.3     100&lt;BR /&gt;09:26:01     5.0      98   157.8     100&lt;BR /&gt;09:28:01     4.8      99   147.7     100&lt;BR /&gt;09:30:02     5.0      98   138.5     100&lt;BR /&gt;09:32:01     4.7      98   120.2     100&lt;BR /&gt;09:34:01     4.6      99   129.8     100&lt;BR /&gt;09:36:01     5.1      98   131.5     100&lt;BR /&gt;09:38:01     3.6      88   123.4     100&lt;BR /&gt;09:40:02     2.5      77   123.0     100&lt;BR /&gt;09:42:01     5.3      99   123.7     100&lt;BR /&gt;09:44:01     6.1     100   125.8     100&lt;BR /&gt;&lt;BR /&gt;I am thinking the issue was more due to a lack of resources and the SMON died and therefore, the db then shutdown.  An lsof also showed over 4000 processes for that particular instance.  &lt;BR /&gt;</description>
      <pubDate>Wed, 03 May 2006 12:37:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781071#M263257</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2006-05-03T12:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Database crashed due to open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781072#M263258</link>
      <description>Well, I've got nothing here.  That error is just saying that SMON shut you down, but nothing from before.  You're going to have to call Oracle and open a support call on this one.  &lt;BR /&gt;&lt;BR /&gt;This is analagous to the idiot light on your car dashboard going off and telling you that "your engine just burned up from excessive heat."&lt;BR /&gt;&lt;BR /&gt;:-)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 May 2006 09:21:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-crashed-due-to-open-files/m-p/3781072#M263258</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2006-05-05T09:21:20Z</dc:date>
    </item>
  </channel>
</rss>

