Resolve “Couldn’t connect to the database Oracle DEVDB DBUSER – ORA-12557: TNS:protocol adapter not loadable (DBD ERROR: OCIServerAttach)”
When running perl script connecting to Oracle database, I was getting the following error: Couldn’t connect to the database Oracle DEVDB DBUSER – ORA-12557: TNS:protocol adapter not loadable (DBD ERROR: OCIServerAttach)

smallwei 4:07 pm on October 18, 2009
There are three things you can check:
1. Make sure perl DBD is installed.
2. Make sure ENV Path is configured correctly. If you have Oracle Application Server (OAS) installed, there is an oci.dll file that came with it. Same thing with Oracle Client. Make sure you pick the correct one. (I use the one from Oracle Client)
3. Try reinstall DBD after setting the path correctly.