For more information about the DirectConnect Session Manager implementation, see “Session Manager overview” and “Data access using the Session Manager”.System administrators and database administrators responsible for administering this database should read this chapter before installing and configuring the DBMS if it will be used for transaction processing. In particular, refer to the sections identified below. Application developers building applications with VisiTransact should review the information in Programming restrictions.
Use the init.ora parameters, described in the following table, to help configure your database for use with the DirectConnect Session Manager for Oracle OCI.
See the Oracle9i Server Administrator's Guide for more information on setting this parameter.With the DirectConnect Session Manager for Oracle OCI, each transaction consumes a database session. Make sure that init.ora parameters, sessions and processes, are set high enough to accommodate the transactions as well as other application sessions.Each connection opened by the DirectConnect Session Manager will require a session until the transaction completes. Therefore, the sessions parameter should be set to a number higher than the maximum number of concurrent DirectConnect transactions that you expect will access the database.See the Oracle documentation for information on how to set init.ora parameters.The PATH environment variable needs to include the path to the Oracle client directory where the database client libraries are installed, as well as the path to the Session Manager libraries.
1
2 Include the file, ora9i_sessmgr.h, in the application source to define the object ITSOracle9i_handles.
3 Cast the return value of Connection::getNativeConnectionHandle() to the type ITSOracle9i_handles * (a pointer to an object of type ITSOracle9i_handles).
4 Use accessor methods provided by the class ITSOracle9i_handles to obtain the various handles needed. These methods are:Do not attempt to deallocate the objects obtained through the ITSOracle9i_handles object; these object instances are managed by the Session Manager.
OCIStmtExecute
in OCI_COMMIT_ON_SUCCESS mode The VisiTransact message log and the VISSessionManager::Error exceptions also contain Oracle error messages which could help you troubleshoot connections and transaction errors including the following:
Check the tnsnames.ora file for matching service names entry.Check that you have set your File Descriptor limit (ulimit), on Solaris, high enough to assure that you can open connections.