denrepo

Init parameterNetwork & services

SERVICE_NAMES

Changes immediately

What it controls

Service names the instance registers.

Know this before you change it

Deprecated in newer releases. Create services with srvctl or DBMS_SERVICE, which also handle role-based and RAC placement.

Check and change it

service_names.sql
1-- Current value on every instance2SELECT inst_id, name, value, isdefault, ismodified3FROM gv$parameter4WHERE name = 'service_names';5 6-- Value stored in the spfile7SELECT sid, value FROM v$spparameter WHERE name = 'service_names' AND isspecified = 'TRUE';8 9-- Dynamic: takes effect now and is kept after a restart10ALTER SYSTEM SET service_names = 'sales' SCOPE = BOTH SID = '*';11 12-- Remove it from the spfile to go back to the default at the next restart13ALTER SYSTEM RESET service_names SCOPE = SPFILE SID = '*';

Related scripts

Open in the parameter referenceOracle's reference

More in Network & services