Salesforce

How to pass a character string to a PROUTIL INCREASETO command?

« Go Back

Information

 
TitleHow to pass a character string to a PROUTIL INCREASETO command?
URL NameHow-to-pass-a-character-string-to-a-proutil-increaseto-command
Article Number000200049
EnvironmentProduct: OpenEdge
Version: 10.x, 11.x, 12.x
OS: All supported platforms
Other: Database Administration
Question/Problem Description
How to run proutil -C increaseto unattended?
How to pass a parameter to the proutil -C increaseto command in scripts?
How to pass a character string to provide a response for a PROUTIL INCREASETO command?

When using need use proutil increaseto, sometimes display this question which requires a response:
"The database connections above have not attached to recently added shared memory segments. Do you wish to recheck? (y/n)" . 

 
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
Use an input file for proutil -C increaseto command.
  • The file should have multiple lines with "y" in each line.
  • The number of lines controls how many time proutil will accept "Y" for "Do you which to recheck?" question
  • It is recommended to include the last input to terminate the instruction with "N". Ideally, the list of connections needs to be read from the output to generate the input files for PROMON/PROSHUT to then terminate these connections,
    and then run the increaseto again.

Windows/DOS example:
FOR /L %%G IN (1,1,10) DO echo y >> in.txt
echo n >> in.txt
proutil <dbname> -C increaseto -B 300000 < in.txt

Bash example:
for i in {1..10};
do echo y; done > in.txt
echo n >> in.txt
proutil <dbname> -C increaseto -B 300000 < in.txt

An enhancement request has been submitted as an Idea on the Progress Community. Weigh-in with your suggestions and promote the Idea to assist with prioritisation during review by selecting this link:
provide 'refresh t' for proutil increaseto
https://openedge.ideas.aha.io/ideas/OPENEDGE-I-883
Workaround
Notes
Keyword Phrase
Last Modified Date1/12/2022 5:45 PM

Powered by