Application Building Guide


Building Solaris Applications

  • SPARCompiler C
  • DB2 CLI Applications
  • Building and Running Embedded SQL Applications
  • DB2 CLI Applications with DB2 APIs
  • DB2 CLI Stored Procedures
  • DB2 API and Embedded SQL Applications
  • Building and Running Embedded SQL Applications
  • Embedded SQL Stored Procedures
  • User-Defined Functions (UDFs)
  • Multi-threaded Applications
  • SPARCompiler C++
  • DB2 API and Embedded SQL Applications
  • Building and Running Embedded SQL Applications
  • Embedded SQL Stored Procedures
  • User-Defined Functions (UDFs)
  • Multi-threaded Applications
  • Micro Focus COBOL
  • Using the Compiler
  • DB2 API and Embedded SQL Applications
  • Building and Running Embedded SQL Applications
  • Embedded SQL Stored Procedures
  • Exiting the Stored Procedure
  • This chapter provides detailed information for building applications in the Solaris operating environment. In the script files, commands that begin with db2 are Command Line Processor (CLP) commands. Refer to the Command Reference if you need more information about CLP commands.

    For the latest DB2 application development updates for the Solaris operating environment, visit the Web page at:

      
    
    http://www.ibm.com/software/data/db2/udb/ad
     
    

    Notes:

    1. The -mt multi-threaded option is used in the link steps of the DB2 build files and makefiles due to the way threads are implemented in the Solaris operating environment. This comes with a slight performance cost. If optimum performance is a consideration, you could try to link your applications without this option, and with the non-threaded libdb2.so library. However, if the -mt switch is not used, the application may see an error such as the following when the application is run:
         libc internal error: _rmutex_unlock: rmutex not held
      
      Or, the application may hang and not give any error message.

    2. To build 64-bit applications with the build files documented in this chapter, uncomment the indicated command.


    [ Top of Page | Previous Page | Next Page ]