Help: Too many files open



I have a problem of getting the error "too many files open" and would like
to trace my application. However, I have found nothing about how to display
the current number of open files. Does anyone know what code is used to get
the current number of open files?

Also, is there a way to determine the number of open database connections?


.