We're getting the following errors during a call t the n_texis() API. It seems like I've seen this before, but can't remember what the circumstances were. File permisions look OK.
ERROR: Monitor process failed to create license segment
ERROR: SQLPrepare() failed with -1 In the function: prepntexis
Is your program running as the same user as the monitor? Did you check if the license segment already exists and if it's owned by the right user? monitor.log might also have some useful information.