Skip to Main Content

Oracle Database Discussions

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!

O/S-Error (OS 1062) How to solve it

971135Jan 20 2013 — edited Jan 20 2013
Hi,

For last few days I am facing following problem,

DIM0019: Create Service error
O/S-Error (OS 1062)

Scenario is,
I installed Oracle 11g 11.2.0.1.0 on Windows 7 Enterprise - 64 bit after the installation when I try to create the database I am facing the mentioned problem.

I removed the software installed it again still the same

I created the Oracle service using oradim after / before setting oracle_home and oracle_sid; still the same (service is created with manual startup type but when I try to start it I face the same problem) / oradim utility also gives the same error

I tried to create the database using DBCA on first try it doesn't create the service, on the second try it creates but it doesn't start it - I removed and created the service again with oradim but facing the same problem

I tried to start the service using Windows Services utility but facing the same problem

Configured listener and services manually and using Network Manager but still facing the same problem,

I feel only thing left is to do it on a separate machine but that might not be possible for me

Kindly help

Regards,
Asif

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
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 17 2013
Added on Jan 20 2013
3 comments
1,438 views