Saltar al contenido

Error de Ranuras de Conexión con Agentes Privados de Windows de 64 Bits

Asunto

Se sabe que este error ocurre con Agentes Privados de Windows de 64 bits instalados antes del lanzamiento de Harmony 10.14:

Failed to connect to back-end database "TranDb"
FATAL: remaining connection slots are reserved for non-replication superuser
connections
(0) SQL Error! SQLSTATE = 53300 Native err = 210 msg = FATAL: remaining connection slots are reserved for non-replication superuser connections
(1) SQL Error! SQLSTATE = IM006 Native err = 0 msg = [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
Details:
Unable to connect to database using connection string:
UID=jitterbit;PWD=<REMOVED>;SERVER=127.0.0.1;DRIVER={ ODBC de PostgreSQL
Controlador (UNICODE) };DATABASE=TranDb;Port=6543;!

Resolución

Para resolver este problema, aumente el max_connections y checkpoint_timeout configuraciones en el postgresql.conf archivo en el Agente Privado de Windows de 64 bits siguiendo estos pasos:

  1. Haz una copia de seguridad de tu postgresql.conf archivo y guárdelo en otra ubicación. Este archivo se puede encontrar en el C:\Program Files\PostgreSQL\9.x\data directorio.

  2. Abra el postgresql.conf archivo en un editor de texto.

  3. Encuentra el max_connections configuración.

    # - Connection Settings -
    
    listen_addresses = '*'      # what IP address(es) to listen on;
                        # comma-separated list of addresses;
                        # defaults to 'localhost'; use '*' for all
                        # (change requires restart)
    port = 6543             # (change requires restart)
    max_connections = 100           # (change requires restart)
    #superuser_reserved_connections = 3 # (change requires restart)
    #unix_socket_directories = ''   # comma-separated list of directories
    
  4. Cambie esta configuración a max_connections = 400.

  5. Encuentra el checkpoint_timeout configuración.

    # - Checkpoints -
    
    #checkpoint_timeout = 5min      # range 30s-1d
    #max_wal_size = 1GB
    #min_wal_size = 80MB
    
  6. Cambie esta configuración a checkpoint_timeout = 1h y elimine el marcador de comentario (#) el comienzo de la línea.

  7. Guarde sus cambios y reinicie el agente.