I want to net send a message to logged on users:
select distinct 'net send ' || substr(machine,instr(machine,'\')+1) || ' This is a test' ,machine from v$session
where terminal is not null
If my machine name is "ABC\MEERA" I expect the outpout to be "net send MEERA This is a test"
but I am getting "net send MEERA" only.
But if the machine name is "RAAJI" without "\" , I am getting the expected result "net send RAAJI This is a test"
How do I overcome this issue ?
select distinct 'net send ' || substr(machine,instr(machine,'\')+1) || ' This is a test' ,machine from v$session
where terminal is not null
If my machine name is "ABC\MEERA" I expect the outpout to be "net send MEERA This is a test"
but I am getting "net send MEERA" only.
But if the machine name is "RAAJI" without "\" , I am getting the expected result "net send RAAJI This is a test"
How do I overcome this issue ?