Eine Standard-ODBC-Verbindung überträgt diese Sitzungsparameter nicht automatisch ohne explizite Konfiguration.
Die Lösung: Der Parameter dbconinit
Der Schlüssel liegt in der Verwendung der Option dbconinit (Database Connection Initialization). Diese Option ermöglicht es, einen SQL-Befehl anzugeben, der unmittelbar nach dem Herstellen der Verbindung, aber vor jedem Lese- oder Schreibzugriff auf Daten ausgeführt wird.
Dies ist der ideale Ort, um den Impala-Befehl SET request_pool zu platzieren.
Implementierung
Hier ist die vollständige Syntax zur Deklaration Ihrer Bibliothek. In diesem Beispiel verbinden wir uns mit einer DSN-Quelle namens MYIMPALA und setzen den Pool auf einen bestimmten Wert.
The codes and examples provided on WeAreCAS.eu are for educational purposes. It is imperative not to blindly copy-paste them into your production environments. The best approach is to understand the logic before applying it. We strongly recommend testing these scripts in a test environment (Sandbox/Dev). WeAreCAS accepts no responsibility for any impact or data loss on your systems.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.