vim /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl) #数据实例名 show parameter name
(ORACLE_HOME = /u01/app/oracle/product/12.1.0/dbhome_1) # echo $ORACLE_HOME
(SID_NAME = orcl) # show parameter name
)
)
lsnrctl stop
lsnrctl start
lsnrctl status