Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OBIEE 12.2.1.2 - Automating adapter libovdadapterconfig.sh

User_MUC6UOct 17 2019

Hi,

I need to run the following script libovdadapterconfig.sh to add adapters for the SQLAuthenticator provider without manual intervention but as far as i can see the script does not take the Weblogic/Admin password as a parameter.  Anyone able to run this script and pass the password as a parameter?

Thanks

Adrian

Comments

Bill Shannon-Oracle
Answer

It sounds like you're running your Java code "in" the database.  JavaMail depends on some configuration files to map MIME types to Java classes (e.g., "maultipart/mixed" to "javax.mail.internet.MimeMultipart").  These configuration files are loaded using the ClassLoader for the application.  If the ClassLoader doesn't function properly, these configuration files won't be found.

I vaguely remember hearing about such a problem in the Oracle database.  You should contact support to find out if this is a known problem and find out if a fix is available.

As a workaround, you can try adding the following to your application:

MailcapCommandMap mc = (MailcapCommandMap) CommandMap.getDefaultCommandMap();
mc
.addMailcap("text/html;; x-java-content-handler=com.sun.mail.handlers.text_html");
mc
.addMailcap("text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml");
mc
.addMailcap("text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain");
mc
.addMailcap("multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed");
mc
.addMailcap("message/rfc822;; x-java-content- handler=com.sun.mail.handlers.message_rfc822");

Marked as Answer by 2607680 · Sep 27 2020
2607680

Thanks. Once I plugged your code it works like a charm. Thanks.

1 - 2