CHADI E. answered 12/22/23
PhD in Systems Engineering with 8+ years expereince in Oracle SQL
1-First qestion:
You may run into Compatibility issues Features and functionalities introduced in 21c might not be available in 18c Oracle offers archived downloads of older versions. search for "Oracle Database 18c"
2- Second question:
ORA-12154 is connection problem. here are ways to troubleshoot:
a- Check TNSNAMES.ORA:Locate this file (usually in Oracle's network/admin directory).
b- Verify the service name you're using exists and matches the database you want to connect to.
Ensure entries have correct host names, port numbers, and SIDs.
c- Open a command prompt and run lsnrctl status to check if the Oracle listener is running If not, start it
with lsnrctl start.
d- Use ping to test network connectivity and confirm your computer can communicate with the database
server. If ping fails, it is firewall issue.
e- Ensure the TNS_ADMIN environment variable points to the directory containing tnsnames.ora.
f- Double-check you're using the correct username and password for the database.
Hope this helps