get the computer name (without the domain name)?
- From: Roger Xu <wellmetus@xxxxxxxxx>
- To: oracle-l@xxxxxxxxxxxxx
- Date: Thu, 20 May 2010 10:03:24 -0500
Hi expert,
How can I only get the computer name (without the domain name)?
SQL> select machine from v$session where sid=41;
MACHINE
--------------------
Domain1\BB011499
SQL>
In UNIX, I would do this but I need it to be done inside SQL
# echo 'Domain1\BB011499' | awk -F\\ '{print $NF}'
BB011499
Thanks,
Roger Xu
- Follow-Ups:
- Re: get the computer name (without the domain name)?
- From: Igor Neyman
- RE: get the computer name (without the domain name)?
- From: Taylor, Chris David
- RE: get the computer name (without the domain name)?
- From: Sweetser, Joe
- Re: get the computer name (without the domain name)?
- From: Aaron Leonard
- Re: get the computer name (without the domain name)?
Other related posts:
- » get the computer name (without the domain name)? - Roger Xu
- » Re: get the computer name (without the domain name)? - Igor Neyman
- » RE: get the computer name (without the domain name)? - Taylor, Chris David
- » Re: get the computer name (without the domain name)? - Igor Neyman
- » RE: get the computer name (without the domain name)? - Sweetser, Joe
- » RE: get the computer name (without the domain name)? - Sweetser, Joe
- » Re: get the computer name (without the domain name)? - Roger Xu
- » Re: get the computer name (without the domain name)? - Aaron Leonard