Increasing the hard limit

StepsSetting up the sample program to increase the hard limit

  1. Use an ASCII editor to create file_name.c (where file_name is the name you give the file). Type the text shown in the sample in “Sample program”.

  2. Compile the file:

    cc file_name.c -o program_name
    

    where file_name is the name of the source file you created, and program_name is the name you want to give the program.

  3. Change the program’s permissions and ownership so that it will execute as “root”:

    chmod 755 program_name 
    chown root program_name
    

    where program_name is the name of the compiled program.

  4. The “root” user can run the program to start Adaptive Server with increased user connections by typing this at the operating system prompt:

    program_name dataserver -d master_device_name
    

    where program_name is the name of the compiled program, and master_device_name is the full path of Adaptive Server’s master device. Instead of typing the command at the operating system prompt, you can add program_name before the data server command line in the Adaptive Server runserver file.