cdh
cd network/admin
vim tnsnames.ora
dedicatedorcl=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=mmm111.example.com)(PORT=1521))
(CONNECT_DATA=
(SERVICE_NAME=orcl.example.com)(server=dedicated)))
sqlplus system/oracle@dedicatedorcl
SELECT SID, SERIAL#, STATUS, SERVER
FROM V$SESSION
WHERE USERNAME = 'SYSTEM';
cdh
cd network/admin
vim tnsnames.ora
sharedorcl=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=mmm111.example.com)(PORT=1521))
(CONNECT_DATA=
(SERVICE_NAME=orcl.example.com)(server=shared)))
sqlplus system/oracle@sharedorcl
SELECT SID, SERIAL#, STATUS, SERVER
FROM V$SESSION
WHERE USERNAME = 'SYSTEM';