My Oracle database version is “Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64 bit Production”
the content of /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/tnsnames.ora is
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = slis.unifysoft.com)(PORT = 1521))
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = slis.unifysoft.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.unifysoft.com)
)
)
DSLI01 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = slis.unifysoft.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = dsli01.unifysoft.com)
)
)
~
~
~
~
~
~
the content of /etc/oratab is
#
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by either Database Configuration Assistant while creating
# a database or ASM Configuration Assistant while creating ASM instance.
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third field indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
orcl:/u01/app/oracle/product/12.2.0/dbhome_1:Y
then my database SID is “orcl” (as in /etc/oratab) or “DSLI01” or “ORCL” (as in tnsnames.ora)?