DBMS SERVICE package for managed service in single instance oracle

DBMS_SERVICE package for managed service in oracle

In Oracle, you can also create service on database through package.

For creation of Service:

exec dbms_service.create_service ( service_name => 'SERVICE1' , network_name => 'SERVICE1');

Check the service status:

select  service_id , name, network_name,creation_Date from dba_services;

Start the service:

exec dbms_service.start_Service('SERVICE1');

Stop the service:

exec dbms_service.stop_service('SERVICE1');

Delete the service:
Service must be stopped before deletion command.

exec dbms_service.delete_service('SERVICE1');

Disconnect the session from service:

exec dbms_service.disconnect_session('SERVICE1');

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s