How to permanently Set/change the Limits in Solaris 10 system wide

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
0
down vote

favorite












I received email from oracle to change the limit on solaris 10 server to make oracle application work,



unfortunately i have no experience in Solaris, so need assistance



Values will be like below



A00110 This rule verifies that the ulimit settings are adequate Oracle Database 11g R2. The recommended values are not less than: 
ulimit(TIME) = unlimited
ulimit(FILE) = unlimited
ulimit(DATA) = 1048576
Soft ulimit(NOFILES) = 1024
Hard ulimit(NOFILES) = 65536
ulimit(VMEMORY) = 4194304
and not more than
Soft ulimit(STACK) = 10240
Hard ulimit(STACK) = 32768
VmemoryNotDefined
StackHardUnlimited Review the ulimit settings:
Set the hard ulimit(STACK) to a maximum of 32768
ulimit(VMEMORY) is not defined






share|improve this question















This question has an open bounty worth +50
reputation from OmiPenguin ending ending at 2018-08-09 08:27:38Z">tomorrow.


Looking for an answer drawing from credible and/or official sources.















  • serverfault.com/questions/21417/…
    – Mark Plotnick
    Jul 29 at 12:36










  • There are multiple limits ike (Time,File,Data,NoFiles,Vmemory,Stack) any idea where to get all this information in solaris , or can this be done using /etc/system file ?
    – OmiPenguin
    Jul 29 at 12:39










  • community.oracle.com/thread/2358615?start=0&tstart=0
    – slm♦
    Jul 29 at 12:43










  • ya already checked this one not much helpful
    – OmiPenguin
    Jul 29 at 12:46










  • I will look around. I thought Oracle 11 included a shell script you run as root during installation that edits all the config files.
    – Mark Plotnick
    Jul 29 at 12:53
















up vote
0
down vote

favorite












I received email from oracle to change the limit on solaris 10 server to make oracle application work,



unfortunately i have no experience in Solaris, so need assistance



Values will be like below



A00110 This rule verifies that the ulimit settings are adequate Oracle Database 11g R2. The recommended values are not less than: 
ulimit(TIME) = unlimited
ulimit(FILE) = unlimited
ulimit(DATA) = 1048576
Soft ulimit(NOFILES) = 1024
Hard ulimit(NOFILES) = 65536
ulimit(VMEMORY) = 4194304
and not more than
Soft ulimit(STACK) = 10240
Hard ulimit(STACK) = 32768
VmemoryNotDefined
StackHardUnlimited Review the ulimit settings:
Set the hard ulimit(STACK) to a maximum of 32768
ulimit(VMEMORY) is not defined






share|improve this question















This question has an open bounty worth +50
reputation from OmiPenguin ending ending at 2018-08-09 08:27:38Z">tomorrow.


Looking for an answer drawing from credible and/or official sources.















  • serverfault.com/questions/21417/…
    – Mark Plotnick
    Jul 29 at 12:36










  • There are multiple limits ike (Time,File,Data,NoFiles,Vmemory,Stack) any idea where to get all this information in solaris , or can this be done using /etc/system file ?
    – OmiPenguin
    Jul 29 at 12:39










  • community.oracle.com/thread/2358615?start=0&tstart=0
    – slm♦
    Jul 29 at 12:43










  • ya already checked this one not much helpful
    – OmiPenguin
    Jul 29 at 12:46










  • I will look around. I thought Oracle 11 included a shell script you run as root during installation that edits all the config files.
    – Mark Plotnick
    Jul 29 at 12:53












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I received email from oracle to change the limit on solaris 10 server to make oracle application work,



unfortunately i have no experience in Solaris, so need assistance



Values will be like below



A00110 This rule verifies that the ulimit settings are adequate Oracle Database 11g R2. The recommended values are not less than: 
ulimit(TIME) = unlimited
ulimit(FILE) = unlimited
ulimit(DATA) = 1048576
Soft ulimit(NOFILES) = 1024
Hard ulimit(NOFILES) = 65536
ulimit(VMEMORY) = 4194304
and not more than
Soft ulimit(STACK) = 10240
Hard ulimit(STACK) = 32768
VmemoryNotDefined
StackHardUnlimited Review the ulimit settings:
Set the hard ulimit(STACK) to a maximum of 32768
ulimit(VMEMORY) is not defined






share|improve this question













I received email from oracle to change the limit on solaris 10 server to make oracle application work,



unfortunately i have no experience in Solaris, so need assistance



Values will be like below



A00110 This rule verifies that the ulimit settings are adequate Oracle Database 11g R2. The recommended values are not less than: 
ulimit(TIME) = unlimited
ulimit(FILE) = unlimited
ulimit(DATA) = 1048576
Soft ulimit(NOFILES) = 1024
Hard ulimit(NOFILES) = 65536
ulimit(VMEMORY) = 4194304
and not more than
Soft ulimit(STACK) = 10240
Hard ulimit(STACK) = 32768
VmemoryNotDefined
StackHardUnlimited Review the ulimit settings:
Set the hard ulimit(STACK) to a maximum of 32768
ulimit(VMEMORY) is not defined








share|improve this question












share|improve this question




share|improve this question








edited Aug 2 at 8:18
























asked Jul 29 at 11:29









OmiPenguin

1,460235683




1,460235683






This question has an open bounty worth +50
reputation from OmiPenguin ending ending at 2018-08-09 08:27:38Z">tomorrow.


Looking for an answer drawing from credible and/or official sources.








This question has an open bounty worth +50
reputation from OmiPenguin ending ending at 2018-08-09 08:27:38Z">tomorrow.


Looking for an answer drawing from credible and/or official sources.













  • serverfault.com/questions/21417/…
    – Mark Plotnick
    Jul 29 at 12:36










  • There are multiple limits ike (Time,File,Data,NoFiles,Vmemory,Stack) any idea where to get all this information in solaris , or can this be done using /etc/system file ?
    – OmiPenguin
    Jul 29 at 12:39










  • community.oracle.com/thread/2358615?start=0&tstart=0
    – slm♦
    Jul 29 at 12:43










  • ya already checked this one not much helpful
    – OmiPenguin
    Jul 29 at 12:46










  • I will look around. I thought Oracle 11 included a shell script you run as root during installation that edits all the config files.
    – Mark Plotnick
    Jul 29 at 12:53
















  • serverfault.com/questions/21417/…
    – Mark Plotnick
    Jul 29 at 12:36










  • There are multiple limits ike (Time,File,Data,NoFiles,Vmemory,Stack) any idea where to get all this information in solaris , or can this be done using /etc/system file ?
    – OmiPenguin
    Jul 29 at 12:39










  • community.oracle.com/thread/2358615?start=0&tstart=0
    – slm♦
    Jul 29 at 12:43










  • ya already checked this one not much helpful
    – OmiPenguin
    Jul 29 at 12:46










  • I will look around. I thought Oracle 11 included a shell script you run as root during installation that edits all the config files.
    – Mark Plotnick
    Jul 29 at 12:53















serverfault.com/questions/21417/…
– Mark Plotnick
Jul 29 at 12:36




serverfault.com/questions/21417/…
– Mark Plotnick
Jul 29 at 12:36












There are multiple limits ike (Time,File,Data,NoFiles,Vmemory,Stack) any idea where to get all this information in solaris , or can this be done using /etc/system file ?
– OmiPenguin
Jul 29 at 12:39




There are multiple limits ike (Time,File,Data,NoFiles,Vmemory,Stack) any idea where to get all this information in solaris , or can this be done using /etc/system file ?
– OmiPenguin
Jul 29 at 12:39












community.oracle.com/thread/2358615?start=0&tstart=0
– slm♦
Jul 29 at 12:43




community.oracle.com/thread/2358615?start=0&tstart=0
– slm♦
Jul 29 at 12:43












ya already checked this one not much helpful
– OmiPenguin
Jul 29 at 12:46




ya already checked this one not much helpful
– OmiPenguin
Jul 29 at 12:46












I will look around. I thought Oracle 11 included a shell script you run as root during installation that edits all the config files.
– Mark Plotnick
Jul 29 at 12:53




I will look around. I thought Oracle 11 included a shell script you run as root during installation that edits all the config files.
– Mark Plotnick
Jul 29 at 12:53










1 Answer
1






active

oldest

votes

















up vote
1
down vote













Raising the global file descriptor limit is not recommended as this could make 32 bit programs fail unless they have knowledge about how to use file descriptors > 255, see: enable_extended_FILE_stdio(3C).



So it may be better to just call the oracle data base via a shell script that first does the needed ulimit calls to set up the limits and then call the database.



Let me show a typical Solaris limit set that could be retrieved with the Bourne Shell (as in my example). Note that using ksh93 is not helpful here as ksh93 includes information from other resources that are not settable. This is the default on Solaris:



LC_ALL=C ulimit -aSH
-t: time(seconds) unlimited:unlimited
-f: file(blocks) unlimited:unlimited
-d: data(kbytes) unlimited:unlimited
-s: stack(kbytes) 10240:unlimited
-c: coredump(blocks) unlimited:unlimited
-n: nofiles(descriptors) 256:65536
-v: memory(kbytes) unlimited:unlimited


As you see, all default values are higher than the required values except for the open file descriptors. I am not sure whether the stack hard limit should be reduced.



If you like to modify the values, write a shell script and enter this:



ulimit -nS 1024


This raises the soft file descriptor limit to 1024 and results in a new limit:



-n: nofiles(descriptors) 1024:65536


If you need to reduce the hard stack limit, also enter:



ulimit -sH 32768


This reduced the hard stack limit to 32 MB and results in:



-s: stack(kbytes) 10240:32768


After that, enter the command to start the oracle data base to the script and then run this script.






share|improve this answer



















  • 3




    Or set the limits for a dedicated oracle (or oracle app) user.
    – Jeff Schaller
    Jul 29 at 15:18










  • That's what i want but i have no idea how to do that on Solaris. Any reference to document will be helpful
    – OmiPenguin
    Aug 2 at 8:19










  • I enhanced the answer, is this sufficient?
    – schily
    Aug 2 at 9:54










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f459167%2fhow-to-permanently-set-change-the-limits-in-solaris-10-system-wide%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













Raising the global file descriptor limit is not recommended as this could make 32 bit programs fail unless they have knowledge about how to use file descriptors > 255, see: enable_extended_FILE_stdio(3C).



So it may be better to just call the oracle data base via a shell script that first does the needed ulimit calls to set up the limits and then call the database.



Let me show a typical Solaris limit set that could be retrieved with the Bourne Shell (as in my example). Note that using ksh93 is not helpful here as ksh93 includes information from other resources that are not settable. This is the default on Solaris:



LC_ALL=C ulimit -aSH
-t: time(seconds) unlimited:unlimited
-f: file(blocks) unlimited:unlimited
-d: data(kbytes) unlimited:unlimited
-s: stack(kbytes) 10240:unlimited
-c: coredump(blocks) unlimited:unlimited
-n: nofiles(descriptors) 256:65536
-v: memory(kbytes) unlimited:unlimited


As you see, all default values are higher than the required values except for the open file descriptors. I am not sure whether the stack hard limit should be reduced.



If you like to modify the values, write a shell script and enter this:



ulimit -nS 1024


This raises the soft file descriptor limit to 1024 and results in a new limit:



-n: nofiles(descriptors) 1024:65536


If you need to reduce the hard stack limit, also enter:



ulimit -sH 32768


This reduced the hard stack limit to 32 MB and results in:



-s: stack(kbytes) 10240:32768


After that, enter the command to start the oracle data base to the script and then run this script.






share|improve this answer



















  • 3




    Or set the limits for a dedicated oracle (or oracle app) user.
    – Jeff Schaller
    Jul 29 at 15:18










  • That's what i want but i have no idea how to do that on Solaris. Any reference to document will be helpful
    – OmiPenguin
    Aug 2 at 8:19










  • I enhanced the answer, is this sufficient?
    – schily
    Aug 2 at 9:54














up vote
1
down vote













Raising the global file descriptor limit is not recommended as this could make 32 bit programs fail unless they have knowledge about how to use file descriptors > 255, see: enable_extended_FILE_stdio(3C).



So it may be better to just call the oracle data base via a shell script that first does the needed ulimit calls to set up the limits and then call the database.



Let me show a typical Solaris limit set that could be retrieved with the Bourne Shell (as in my example). Note that using ksh93 is not helpful here as ksh93 includes information from other resources that are not settable. This is the default on Solaris:



LC_ALL=C ulimit -aSH
-t: time(seconds) unlimited:unlimited
-f: file(blocks) unlimited:unlimited
-d: data(kbytes) unlimited:unlimited
-s: stack(kbytes) 10240:unlimited
-c: coredump(blocks) unlimited:unlimited
-n: nofiles(descriptors) 256:65536
-v: memory(kbytes) unlimited:unlimited


As you see, all default values are higher than the required values except for the open file descriptors. I am not sure whether the stack hard limit should be reduced.



If you like to modify the values, write a shell script and enter this:



ulimit -nS 1024


This raises the soft file descriptor limit to 1024 and results in a new limit:



-n: nofiles(descriptors) 1024:65536


If you need to reduce the hard stack limit, also enter:



ulimit -sH 32768


This reduced the hard stack limit to 32 MB and results in:



-s: stack(kbytes) 10240:32768


After that, enter the command to start the oracle data base to the script and then run this script.






share|improve this answer



















  • 3




    Or set the limits for a dedicated oracle (or oracle app) user.
    – Jeff Schaller
    Jul 29 at 15:18










  • That's what i want but i have no idea how to do that on Solaris. Any reference to document will be helpful
    – OmiPenguin
    Aug 2 at 8:19










  • I enhanced the answer, is this sufficient?
    – schily
    Aug 2 at 9:54












up vote
1
down vote










up vote
1
down vote









Raising the global file descriptor limit is not recommended as this could make 32 bit programs fail unless they have knowledge about how to use file descriptors > 255, see: enable_extended_FILE_stdio(3C).



So it may be better to just call the oracle data base via a shell script that first does the needed ulimit calls to set up the limits and then call the database.



Let me show a typical Solaris limit set that could be retrieved with the Bourne Shell (as in my example). Note that using ksh93 is not helpful here as ksh93 includes information from other resources that are not settable. This is the default on Solaris:



LC_ALL=C ulimit -aSH
-t: time(seconds) unlimited:unlimited
-f: file(blocks) unlimited:unlimited
-d: data(kbytes) unlimited:unlimited
-s: stack(kbytes) 10240:unlimited
-c: coredump(blocks) unlimited:unlimited
-n: nofiles(descriptors) 256:65536
-v: memory(kbytes) unlimited:unlimited


As you see, all default values are higher than the required values except for the open file descriptors. I am not sure whether the stack hard limit should be reduced.



If you like to modify the values, write a shell script and enter this:



ulimit -nS 1024


This raises the soft file descriptor limit to 1024 and results in a new limit:



-n: nofiles(descriptors) 1024:65536


If you need to reduce the hard stack limit, also enter:



ulimit -sH 32768


This reduced the hard stack limit to 32 MB and results in:



-s: stack(kbytes) 10240:32768


After that, enter the command to start the oracle data base to the script and then run this script.






share|improve this answer















Raising the global file descriptor limit is not recommended as this could make 32 bit programs fail unless they have knowledge about how to use file descriptors > 255, see: enable_extended_FILE_stdio(3C).



So it may be better to just call the oracle data base via a shell script that first does the needed ulimit calls to set up the limits and then call the database.



Let me show a typical Solaris limit set that could be retrieved with the Bourne Shell (as in my example). Note that using ksh93 is not helpful here as ksh93 includes information from other resources that are not settable. This is the default on Solaris:



LC_ALL=C ulimit -aSH
-t: time(seconds) unlimited:unlimited
-f: file(blocks) unlimited:unlimited
-d: data(kbytes) unlimited:unlimited
-s: stack(kbytes) 10240:unlimited
-c: coredump(blocks) unlimited:unlimited
-n: nofiles(descriptors) 256:65536
-v: memory(kbytes) unlimited:unlimited


As you see, all default values are higher than the required values except for the open file descriptors. I am not sure whether the stack hard limit should be reduced.



If you like to modify the values, write a shell script and enter this:



ulimit -nS 1024


This raises the soft file descriptor limit to 1024 and results in a new limit:



-n: nofiles(descriptors) 1024:65536


If you need to reduce the hard stack limit, also enter:



ulimit -sH 32768


This reduced the hard stack limit to 32 MB and results in:



-s: stack(kbytes) 10240:32768


After that, enter the command to start the oracle data base to the script and then run this script.







share|improve this answer















share|improve this answer



share|improve this answer








edited Aug 2 at 9:54


























answered Jul 29 at 12:48









schily

8,39221435




8,39221435







  • 3




    Or set the limits for a dedicated oracle (or oracle app) user.
    – Jeff Schaller
    Jul 29 at 15:18










  • That's what i want but i have no idea how to do that on Solaris. Any reference to document will be helpful
    – OmiPenguin
    Aug 2 at 8:19










  • I enhanced the answer, is this sufficient?
    – schily
    Aug 2 at 9:54












  • 3




    Or set the limits for a dedicated oracle (or oracle app) user.
    – Jeff Schaller
    Jul 29 at 15:18










  • That's what i want but i have no idea how to do that on Solaris. Any reference to document will be helpful
    – OmiPenguin
    Aug 2 at 8:19










  • I enhanced the answer, is this sufficient?
    – schily
    Aug 2 at 9:54







3




3




Or set the limits for a dedicated oracle (or oracle app) user.
– Jeff Schaller
Jul 29 at 15:18




Or set the limits for a dedicated oracle (or oracle app) user.
– Jeff Schaller
Jul 29 at 15:18












That's what i want but i have no idea how to do that on Solaris. Any reference to document will be helpful
– OmiPenguin
Aug 2 at 8:19




That's what i want but i have no idea how to do that on Solaris. Any reference to document will be helpful
– OmiPenguin
Aug 2 at 8:19












I enhanced the answer, is this sufficient?
– schily
Aug 2 at 9:54




I enhanced the answer, is this sufficient?
– schily
Aug 2 at 9:54












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f459167%2fhow-to-permanently-set-change-the-limits-in-solaris-10-system-wide%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay