if you need to write dotlrn-* *-portlet packages for postgres or oracle check out this little program:
https://openacs.org/storage/view/.lrn//dotlrn-integration.zip
It will generate you the packages after you have been asked some information.
More details and a little how to: https://openacs.org/forums/message-view?message_id=299982