Consult, the newly installed Oracle, cannot access problem, installation reference "http://www.jianshu.com/p/36a78274a00e", See the blogger also encountered the same problem, but I don't know whether have been solved;
Environment: centos7 + oracle 12 c
Command operation shows as follows:
[oracle @ mes ~] $LSNRCTL status
LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 04 - JAN - 2017 04:28:41
Copyright (c) 1991, 2014, Oracle. All rights reserved.
Connecting to (the DESCRIPTION=(ADDRESS=(PROTOCOL=TCP) (HOST=mes.dfec.com) (1521) PORT=)) The STATUS of the LISTENER -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Alias LISTENER Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production The Start Date 04 - JAN - 2017 04:28:28 Uptime 0 days 0 hr. 13 SEC 0 min.The Trace Level off Security ON: the Local OS Authentication SNMP OFF The Listener Parameter File/oracle/app/oracle/product/12.1.2/db_1/network/admin/Listener. Ora The Listener Log File/oracle/app/oracle/diag/TNSLSNR/mes/Listener/alert Log. XML Listening Endpoints Summary... (the DESCRIPTION=(ADDRESS=(PROTOCOL=TCP) (HOST=mes.dfec.com) (1521) PORT=)) (the DESCRIPTION=(ADDRESS=(PROTOCOL=ipc) (KEY=EXTPROC1521))) The listener supports no services The command completed successfully
[oracle @ mes ~] $up sqlplus/as sysdba
SQL * Plus: Release 12.1.0.2.0 Production on Wed Jan 4 04:28:57 2017
Copyright (c) 1982, 2014, Oracle. All rights reserved.
ERROR: ORA - 12547: TNS: lost contact
Enter the user name: - ERROR: ORA - 12547: TNS: lost contact
Enter the user name: - ERROR: ORA - 12547: TNS: lost contact
SP2-0157: unable to CONNECT to the ORACLE after 3 attempts, exiting SQL * Plus [oracle @ mes ~] $
CodePudding user response:
Look at the folder $ORACLE_HOME/bin/oracle file permissions to see if there is problem
If the wrong permissions Chmod 6751 $ORACLE_HOME/bin/oracle