Sqlplus Error 57 Initializing Sql-plus Error Loading Message Shared Library ^new^ -
Both must match (both 64-bit or both 32-bit). If sqlplus is 64-bit and the library is 32-bit (or missing entirely for that arch), you will get Error 57.
After setting, re-run sqlplus /nolog . If the error disappears, add the export to your .bash_profile , .profile , or .cshrc .
# For bash export ORACLE_HOME=/u01/app/oracle/product/12.2.0/dbhome_1 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib export TNS_ADMIN=$ORACLE_HOME/network/admin Both must match (both 64-bit or both 32-bit)
: Make sure that LD_LIBRARY_PATH includes $ORACLE_HOME/lib .
This article provides a comprehensive guide to understanding, diagnosing, and solving this issue on both Windows and Linux/Unix systems. What Causes "Error 57 Initializing SQL*Plus"? If the error disappears, add the export to your
If you suspect corruption of the binaries and you are on a supported UNIX platform with the correct compilers installed, you can relink Oracle executables.
This is the culprit 90% of the time. You need to ensure three specific variables are set correctly: What Causes "Error 57 Initializing SQL*Plus"
On Linux, the issue is often related to library paths or file permissions. 1. Set ORACLE_HOME and LD_LIBRARY_PATH

