Found connection problem when run VBA to direct connect Oracle Database

pwebjunior

New Member
Joined
Mar 13, 2019
Messages
1
Hi,

Currently, I write VBA script to connect Oracle Database by using ODBC.
But I found connection problem until I do steps to success inquiry to get data as followings:

1. Open excel file > Tab "Developer" > Visual Basic > Run button to get data


Found error message
Run-time error '-2147467259 (80004005)':
[Microsoft][ODBC Driver for Oracle]Error while trying to retrieve text for error ORA-01019


2. Then, change connection string from connection using ODBC to OLEDB (Comment ODBC connection string) > run button to get data again.


Found error message
Run-time error '-2147418113 (8000ffff)'
Catastrophic failure


3. Save and close excel file


4. Open excel file again. Then, try to run button to get data as OLEDB (Latest Saved File from no.3)


Found error message
Run-time error '-2147467259 (80004005)'
ORA-01017: invalid username/password; logon denied.


5. Finally, I change connection string from OLEDB to ODBC again. Then, run button to get data.
Excel can normally connect and get data as I expected.


Could you please advise me to solve this problem?


Current Software:
- Windows 10 Enterprise 64 bit
- MS Office 2013 Professional Plus 32 bit
- Microsoft ODBC for Oracle "MSORCL32.DLL" 10.00.17134.01


Thank you and Regards,

Pathikorn
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top