0xe0000340 - The Database script returned an error.
This issue is caused due to changes in the path for the TNSNAMES.ORA file in Oracle 21c
To resolve this issue, the TNSNAMES.ORA path needs to be defined explicitly in the environment variables on the Oracle Server.
Set the following environment variables in the Oracle user profile. Below are the default paths for a Oracle21c setup.
ORACLE_HOME=C:\app\sysde\product\21c\dbhomeXE\
TNS_ADMIN=C:\app\sysde\product\21c\dbhomeXE\network\admin
0xe0000340 - The Database script returned an error."