This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error: SQL code=12154 message=ORA-12154: TNS:could not resolve the connect identifier specified, while configuring sm 9.70 on RHEL

I'm configuring SM9.70 on RHEL 8.6 and Oracle 19 and the script failed with the below error in the smconfig.log 

Error: SQL code=12154 message=ORA-12154: TNS:could not resolve the connect identifier specified 

I've tried some steps to troubleshoot this but none helped. 

1. I've followed the suggestion in this post and edited the tnsnames.ora file 

and the listener.ora file

but that didn't help. 

Here is sm.ini:

2. I've tried to check the db user access with instructions in this post. But db user cannot run command tnsping and sqlplus

Can anyone advise on how to resolve this issue? TIA

  • Suggested Answer

    0  

    Hi Dave

    Linux needs to install Oracle client
    www.oracle.com/.../linux-x86-32-downloads.html


    #cp instantclient-basic-linux-19.10.0.0.0dbru.zip /opt/SM
    #cd /opt/SM
    #unzip instantclient-basic-linux-19.10.0.0.0dbru.zip
    #mv instantclient-basic-linux-19.10.0.0.0dbru client32
    #vi /opt/SM/client32/network/admin/tnsnames.ora
    orclmf =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl***)
    )
    )
    #vi ~/.bash_profile
    # User specific environment and startup programs
    PATH=$PATH:$HOME/.local/bin:$HOME/bin
    export PATH
    export ORACLE_HOME=/opt/SM/client32
    export PATH=$ORACLE_HOME:$PATH
    export ORACLE_SID=orcl***
    export TNS_ADMIN=$ORACLE_HOME/network/admin
    export LD_LIBRARY_PATH=$ORACLE_HOME:$LD_LIBRARY_PATH
    export NS_LANG='AMERICAN_AMERICA.AL32UTF8'
    # source ~/.bash_profile