Wednesday, 25 August 2021

MULTITENANT service register in 19c

 MULTITENANT:


BEGIN

  DBMS_SERVICE.create_service(

    service_name => 'my_new_service',

    network_name => 'my_new_service'

  );

END;

/



COLUMN name FORMAT A30

COLUMN network_name FORMAT A30


SELECT name,

       network_name

FROM   dba_services

ORDER BY 1;


SELECT name,

       network_name

FROM   v$active_services

ORDER BY 1;




BEGIN

    DBMS_SERVICE.START_SERVICE (SERVICE_NAME   => 'herospdb.localdomain');

END;

/


BEGIN

  DBMS_SERVICE.modify_service(

    service_name => 'my_new_service',

    goal         => DBMS_SERVICE.goal_throughput

  );

END;

/



sqlplus ram/ram@demo:1521/herospdb.localdomain

No comments:

Post a Comment

Featured post

duplicate db from standy to other server

 Duplicate Testuat   $ export ORACLE_SID=Testuat3 $ sqlplus '/as sysdba' Testuat3 SQL> alter system set cluster_database=FALSE sc...