Re: error ORA-1031 using loadjava

From: Sergey M <msu_at_pronto.msk.ru>
Date: Mon, 29 Oct 2001 10:51:13 +0300
Message-ID: <9rj1pq$2bg6$1_at_serv2.vsi.ru>


[Quoted] "Marco de Haan" <haandm_at_yahoo.com> сообщил/сообщила в новостях следующее: news:1004179307.226375_at_newsreader1.wirehub.nl...
> Hi,
> I made a Java-program which connects to MSAccess and copies the tables to
> Oracle. It works fine on my machine but when I load the class-file to
Oracle
> using 'loadjava' and try to run it I get a nullpointerexception...I think
> it's because the JdbcOdbcDriver.class is not in the database so the
> connection to MSAccess does not get established.
>
> I think I have to load the rt.jar (containing the driver) to the database
> but when I try that, I get this error-message for every claas-file in the
> jar:
> "Error while creating class java/awt/image/...classfilename...
> ORA-01031: insufficient privileges"
>
> I use loadjava like this
> "loadjava -u user/pwd -oracleresolver rt.jar"
> (tried it as scott, sys, system and even internal but always the same
error)
>
> Can you please help me:
> - Is my theory on the OdbcJdbcDriver.class correct?
> - How can I prevent the error?
>

You don't need to load rt.jar, because rt.jar was loaded already.

Sergey M. Received on Mon Oct 29 2001 - 08:51:13 CET

Original text of this message