Database updates
After the web server verification, updates referring to the database must be carried out. See the procedure below:
danger
- The procedures below must only be executed in 3rd-digit updates. For 4th-digit update, skip this step and restart the SoftExpert Suite service.
- The verification procedures in this section are only necessary for updating
environments in version
2.0.7
or earlier. For later versions, skip to the Adding/updating databases step.
Verification for Oracle​
danger
Oracle Client 12 is installed along with the system. If Oracle 19 is used on the database server, we suggest updating Oracle Client to version 19. To do this, follow the procedure described in the "Oracle Instant Client update" section.
- Reload the bash configuration:
$ source ~/.bash_profile
$ source /etc/bashrc
- Test the connection:
$ sqlplus <user>/<password>@<tnsname>
Troubleshooting:
Problem | Possible solution |
---|---|
ORA-12541: TNS: no listener. | Check whether the Oracle environment variables were created correctly. |
ORA-12154: TNS: could not resolve the connect identifier specified. | Check whether the TNS_ADMIN environment variable was created correctly, and whether the tnsnames.ora configuration file is configured correctly. |
ORA-12560: TNS:protocol adapter error. | Reset the permissions of the tnsnames.ora file. Check whether the Oracle environment variables were created correctly. |
- The content of the
NLS_LANG
environment variable must be checked. To do this, run the following commands in SQLPlus to get theNLS
parameters that must compose the variable.
VALUE1
:
SELECT VALUE FROM NLS_SESSION_PARAMETERS WHERE PARAMETER = 'NLS_LANGUAGE';
VALUE2
:
SELECT VALUE FROM NLS_SESSION_PARAMETERS WHERE PARAMETER = 'NLS_TERRITORY';
VALUE3
:
SELECT VALUE FROM NLS_DATABASE_PARAMETERS WHERE PARAMETER = 'NLS_CHARACTERSET';
- Close SQLPlus:
quit
- Now check whether the
NLS_LANG
environment variable is configured in the following files:
bashrc
:
# vi /etc/bashrc
setenv.sh
:
# vi /usr/local/se/apps/tomcat/bin/setenv.sh
setenv.sh
:- In this file, the variable must be together with other exports:
# vi /etc/init.d/sesuite
- Check whether the content of the variable in these files is configured in accordance with the results obtained through the three commands run in SQLPlus:
export NLS_LANG=<VALUE1>_<VALUE2>.<VALUE3>
- Reload the
bash
configuration:
$ source ~/.bash_profile
$ source /etc/bashrc