Sample program. Sybase DC35823-01-1500-04


Add to my manuals
150 Pages

advertisement

Sample program. Sybase DC35823-01-1500-04 | Manualzz

CHAPTER 3 Configuring the Operating System

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 preceding the dataserver command line in the

Adaptive Server RUN_server_name file.

Sample program

Note

This is an sample script; modify it as necessary.

The following example shows the source code that you can use to increase the hard limit:

#include <sys/time.h>

#include <sys/resource.h>

#include <sys/types.h>

/*

** define MAX_CONNECTIONS to a number less than

** 10000. The number defined will then become the maximum

** number of connections allowed by an Adaptive Server.

*/

#define MAX_CONNECTIONS 9999

extern int errno;

main(argc,argv)

char **argv;

{ struct rlimit rlp; rlp.rlim_cur = MAX_CONNECTIONS; rlp.rlim_max = MAX_CONNECTIONS;

/* set the number of open file desriptors to if (setrlimit (RLIMIT_NOFILE,&rlp) == -1)

{

perror("setrlimit");

exit(1);

}

/* reset the user id to disable superuser

Configuration Guide

37

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Key Features

  • Advanced data management capabilities
  • Robust application support
  • Scalable architecture
  • High availability and disaster recovery
  • Comprehensive security features
  • Easy to use and manage

Related manuals

Frequently Answers and Questions

What are the benefits of using the Sybase DC35823-01-1500-04?
The Sybase DC35823-01-1500-04 offers a number of benefits, including improved data management, increased application performance, and reduced costs.
What types of applications can I run on the Sybase DC35823-01-1500-04?
The Sybase DC35823-01-1500-04 can run a wide variety of applications, including enterprise resource planning (ERP), customer relationship management (CRM), and business intelligence (BI).
How can I get started with the Sybase DC35823-01-1500-04?
To get started with the Sybase DC35823-01-1500-04, you will need to purchase the device and install the software. You can also contact Sybase for support.

advertisement

Table of contents