Oracle Pro*C/OCI install handlers for SIGSEGV/SIGABRT and friends - why, and how to disable?

前端 未结 2 2035
夕颜
夕颜 2020-12-03 17:32

When using Pro*C (a embedded SQL preprocessor from Oracle for C-Code) or OCI I noticed that the connect/init routine installs some signal handlers.

That means before

相关标签:
2条回答
  • 2020-12-03 18:28

    I would patch the Oracle .so file to replace the sigaction string with nosigactn and make a no-op function in your program called nosigactn with the same signature as sigaction.

    0 讨论(0)
  • 2020-12-03 18:31

    Signal handling and diagnostic framework considerations: the OCI diagnostic framework installs signal handlers that may impact any signal handling that you use in your application. You can disable OCI signal handling by setting

    DIAG_SIGHANDLER_ENABLED=FALSE
    

    in the sqlnet.ora file. Refer to "Fault Diagnosability in OCI" in Oracle Call Interface Programmer's Guide for information.

    Please try to configure this environment variable in sqlnet.ora file

    0 讨论(0)
提交回复
热议问题