Toad World® Forums

Cannot Initialize OCI. Error -1


#1

My present setup is Windows Vista Business, Toad Version 9.7.2.5

My Windows Vista system had Oracle 8.1.7 client and Oracle Developer 6i installed. Once the server database was upgraded to Oracle 10g R2, new version of Toad 9.7.2.5 was installed and was able to connect using Oracle 8.1.7 client network.

As the client and server version was different so installed the latest Oracle client version 10.2.0.1.0 and configured Toad to connect the server Oracle 10g database. Till this point the connection with Toad was smooth and working.

In order to develop the application, latest Oracle Developer suite version 10.1.0.4.0 was installed and was able to develop application.

Later when I tried connecting server Oracle 10g Database through Toad the above error surfaced. I searched on the net and made necessary changes in the PATH variable, with Oracle client version 10.2.0 path set before the Oracle developer 10.1.0 path, but the problem did not solve.

Ironically Toad is still able to connect through the Oracle 8.1.7 client network information, though it gives warning that the client and server version are different.

Toad is not able to use the latest Oracle 10g client either of Oracle client or Oracle Developer suite network information and is giving OCI error.

Request the Toad experts to provide a work around to resolve the problem.


#2

Morning

Norman Dunbar
Contract Senior Oracle DBA
Capgemini Database Team (EA)
Internal : 7 28 2051
External : 0113 231 2051

My present setup is Windows Vista Business,
64 bit by any chance?

Ironically Toad is still able to connect through the Oracle 8.1.7
client network
information, though it gives warning that the client and server version
are different.
That’s because the 8i client is 32 bit. I suspect that your 10g client
is 64 bit and that’s where the problem lies.

Toad is created using Delphi and, at present, there is no 64 bit
development version - ie, one that produces applications in 64 bit mode.
Because of this Toad is still a 32 bit application and as such, cannot
connect to a 64 bit library.

The 10g Oracle client on your desktop will most likely be 64 bit - so
Toad cannot connect.

Until Delphi comes with the ability to create 64 bit applications, Toad
will require a 32 bit Oracle client.

HTH

Cheers,
Norm. [TeamT]

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else. We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes. If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk


#3

This sounds like a problem I had with Windows 7 64 bits. In which directory is
Toad installed? c:\Program Files(x86)? Then that is the problem. For a strange
reason the oracle client has problems with the parenthesis. There are two
solutions. Install a client which has not this bug. Install Toad into a
directory without parenthesis (don’t try Program Files, because Windows will
intercept it and change it to the one with (x86)).

I create a directory ProgramFiles32 and install it to that one.

Groetjes,
Wim

On Thu, Aug 26, 2010 at 12:27, Dunbar, Norman (Capgemini)

wrote:

Morning

Norman Dunbar
Contract Senior Oracle DBA
Capgemini Database Team (EA)
Internal : 7 28 2051
External : 0113 231 2051

>> My present setup is Windows Vista Business,

64 bit by any chance?

Ironically Toad is still able to connect through the Oracle 8.1.7
client network
information, though it gives warning that the client and server version
are different.

That's because the 8i client is 32 bit. I suspect that your 10g client
is 64 bit and that's where the problem lies.

Toad is created using Delphi and, at present, there is no 64 bit
development version - ie, one that produces applications in 64 bit mode.
Because of this Toad is still a 32 bit application and as such, cannot
connect to a 64 bit library.

The 10g Oracle client on your desktop will most likely be 64 bit - so
Toad cannot connect.

Until Delphi comes with the ability to create 64 bit applications, Toad
will require a 32 bit Oracle client.

HTH

Cheers,
Norm. [TeamT]

Information in this message may be confidential and may be legally
privileged. If you have received this message by mistake, please notify the
sender immediately, delete it and do not copy it to anyone else. We have
checked this email and its attachments for viruses. But you should still
check any attachment before opening it. We may have to make this message and
any reply to it public if asked to under the Freedom of Information Act,
Data Protection Act or for litigation. Email messages and attachments sent
to or from any Environment Agency address may also be accessed by someone
other than the sender or recipient, for business purposes. If we have sent
you information and you wish to use it please read our terms and conditions
which you can get by calling us on 08708 506 506. Find out more about the
Environment Agency at www.environment-agency.gov.uk

Information in this message may be confidential and may be legally
privileged. If you have received this message by mistake, please notify the
sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should
still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to
under the Freedom of Information Act, Data Protection Act or for litigation.
Email messages and attachments sent to or from any Environment Agency
address may also be accessed by someone other than the sender or recipient,
for business purposes.

If we have sent you information and you wish to use it please read our terms
and conditions which you can get by calling us on 08708 506 506. Find out
more about the Environment Agency at www.environment-agency.gov.uk

#4

Hello Norman,

Thank you for your quick response.

Windows Vista Business is a 32-bit operating system.

Oracle 10g client is a 32 bit software. Also please note that Toad had successfully connected through Oracle 10g client. The problem started once an additional Oracle 10g software (Developer suite) was installed. So the problem of 64-bit does not seem to apply in this case.


#5

Morning,

Hello Norman, Thank you for your quick response. Windows
Vista Business is a 32-bit operating system. Oracle 10g
client is a 32 bit software. Also please note that Toad had
successfully connected through Oracle 10g client. The
problem started once an additional Oracle 10g software
(Developer suite) was installed. So the problem of 64-bit
does not seem to apply in this case.
Ok, thanks. IN that case, I’d suspect that perhaps your PATH has been
changed when the Developer Suite was installed - have you checked where
your 10g client appears on PATH, if at all?

Also, in Toad, Session->New Connection.

In the dialog, right hand side, you will see “Installed Clients” - click
the ‘…’ button to the right of the drop down list.

The dialogue that appears will tell you things about all your Oracle
Homes. If the 10g one is red, then there will be a list of what Toad
think is wrong with it. Select the home name, and then click the
‘advice’ button. Toad will tell you exactly why this home is not valid.

Also, with Windows 7, as Wim pointed out, you may need to be careful
about the location you have installed the client into.

Cheers,
Norm. [TeamT]

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk


#6

Thanks for your reply.

Today when tried login from Toad through OraClient10g home, it was successful.

Thank you for your time.