|
|
| Re: why my sessions are not disconnected after service rellocation [message #576270 is a reply to message #576269] |
Sat, 02 February 2013 03:43   |
 |
piotrtal
Messages: 152 Registered: June 2011 Location: Poland/Czestochowa
|
Senior Member |

|
|
update:
sorry, my first session log was wrong. this is proper session log:
[oracle@rac1 ~]$ srvctl status service -d piodb
Service piodbserv2 is running on instance(s) piodb1, piodb2
[oracle@rac1 ~]$ srvctl stop service -d piodb -s piodbserv2 -i piodb1
[oracle@rac1 ~]$ srvctl status service -d piodb
Service piodbserv2 is running on instance(s) piodb2
[oracle@rac1 ~]$ srvctl relocate service -d piodb -s piodbserv2 -i piodb2 -t piodb1 -f
[oracle@rac1 ~]$ srvctl status service -d piodb
Service piodbserv2 is running on instance(s) piodb1
after stopping instance2 session is automatically reconnected to node1 and instance1, but i don't want shut down all instance. i just only want relocate service.
[Updated on: Sat, 02 February 2013 03:49] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
| Re: why my sessions are not disconnected after service rellocation [message #576277 is a reply to message #576275] |
Sat, 02 February 2013 04:46   |
 |
piotrtal
Messages: 152 Registered: June 2011 Location: Poland/Czestochowa
|
Senior Member |

|
|
yep
my session again from the scratches:
check service presence:
[oracle@rac1 ~]$ srvctl status service -d piodb
Service piodbserv2 is running on instance(s) piodb2
connect to service:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL> select instance_number from v$instance;
INSTANCE_NUMBER
---------------
2
SQL> select service_name from v$session where sid=sys_context('userenv','sid');
SERVICE_NAME
----------------------------------------------------------------
piodbserv2
trying force rellocation of piodbserv2 from node2 to node1
[oracle@rac1 ~]$ srvctl relocate service -d piodb -s piodbserv2 -i piodb2 -t piodb1 -f
[oracle@rac1 ~]$ srvctl status service -d piodb
Service piodbserv2 is running on instance(s) piodb1
checking session by which i was connected to node2.piodbserv2 again
SQL> select instance_number from v$instance;
INSTANCE_NUMBER
---------------
2
and from now... (to prove that i am conneted to the proper instance i am trying to do failover, by shutting down instance from node2)
[oracle@rac1 ~]$ srvctl stop instance -d piodb -i piodb2
[oracle@rac1 ~]$ srvctl status instance -d piodb -i piodb1,piodb2
Instance piodb1 is running on node rac1
Instance piodb2 is not running on node rac2
and what says my session?
SQL> select instance_number from v$instance;
INSTANCE_NUMBER
---------------
1
... it failovered, but this behavior is obvious.
the thing which i don't understand is why after i did forcible disconnection users by relocating services from n2 to n1 my session still persisted?
[Updated on: Sat, 02 February 2013 04:48] Report message to a moderator
|
|
|
|
|
|