excel - Unable to execute macro from a laptop that does not have Oracle -
i trying connect oracle db excel macro. macro runs fine when running on laptop has oracle components installed. when run on laptop has no oracle components installed throws error stating could not connect database. check username , password. oracle client , networking components not found. these components part of oracle 7.3.3 or later client software installation.
i trying connect oracle using following parameters:-
dim dbconnect adodb.connection dim strusername string dim strpassword string dim strdatabase string set dbconnect = new adodb.connection dbconnect.open ( _ "user id=" & strusername & "; password=" & strpassword & "; data source=" & strdatabase & "; provider=msdaora") majority of our users not have oracle installed.
you can't access oracle database without corresponding components.
ado programming interface access various data providers, depends on lower level components.
provider=msdaora parameter specifies "microsoft ole db provider oracle" , uses ole db layer represent data access components object-oriented api.
in turn, ole db object model represents underlying data access level. in case of oracle database level represented oracle client components, need install if want connect oracle.
also note, ms ole db provider oracle have number of limitations, outdated , not supported , uses very old oci7 call interface.
to simplify deployment can use oracle data access components (odac) xcopy deployment. weights less 80mb , can deployed without running of universal installer application. noted in readme.txt file can installed in 3 steps:
download odac (xcopy version) zip file directory staging odac products.
unzip odac (xcopy version) zip file expand contents.
execute install.bat install , configure odac products.
this component substitutes microsoft ole db provider , contains latest oracle client implementation can accessed excel vba applications (look connect string formats here).
Comments
Post a Comment