How to find the DB server IP or Name from session?

I login into an Oracle DB (10g). I want to find out the sever IP the DB is in? Or server name? How to get it?

Channa wrote:
I login into an Oracle DB (10g). I want to find out the sever IP the DB is in? Or server name? How to get it?==> For ip address
connect to your database and fire this sql and filter accordingly your need
SQL> select sid, machine,UTL_INADDR.get_host_address (substr(machine,instr(machine,'\')+1)) ip
from v$session;
==> For database name
SQL>select name from v$database;
Hope you find that you need :)
--neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to find the SQL Server Instances running across the given activer directory domain?

    How to find the SQL Server Instances running across the given activer directory domain?
    I have though of OSQL -L , Microsoft Assessment and Planning ( MAP ) tool and SQLPing3 (SQLSecurity) might help me.
    I would appreciate if there any other way of finding the SQL Servers / Instances running across the given active directory domain.
    Sivaprasad S
    http://sivasql.blogspot.com
    Please click the Mark as Answer button if a post solves your problem!

    Dear ,
    Very simple u find all instances through the customized sp which is get all details about inventory. Like i put the sp bellow. This is without any tool. 
    USE [master]
    GO
    /****** Object:  StoredProcedure [dbo].[DBStatus]    Script Date: 08-01-2015 19:46:11 By Damodar Patle Sr. DBA Mumbai India ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[DBStatus] 
    AS
    SELECT 
    SERVERPROPERTY('servername') AS ServerName,
    ConnectionProperty('local_net_address') AS 'local_net_address',
    ConnectionProperty('local_tcp_port') AS 'local_tcp_port',
    CONVERT(VARCHAR(25), @@VERSION) as  VERSIONSQL,
    SERVERPROPERTY('ErrorLogFileName') AS ErrorLogFilePath,
    database_id,
    CONVERT(VARCHAR(25), DB.name) AS DBName,
    CONVERT(VARCHAR(10), DATABASEPROPERTYEX(name, 'status')) AS [Status],
    CONVERT(VARCHAR(10), DATABASEPROPERTYEX(name, 'Recovery')) AS [Recovery_Model],
    create_date as DBCreate_Date, --physical_device_name,
     (SELECT COUNT(1) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS DataFiles,
     (SELECT SUM((size*8)/1024) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS [Data MB],
     (SELECT COUNT(1) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS LogFiles,
     (SELECT SUM((size*8)/1024) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS [Log MB],
     (SELECT physical_name FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS MDF_File_Location,
     (SELECT physical_name FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS  LDF_File_Location,
       user_access_desc
       FROM sys.databases DB
       ORDER BY dbName, [Log MB] DESC, NAME

  • How to find the arguments of a static method from the class file

    Hi,all !
    How to find the arguments of a static method from the class file? for example, when we meet a bytecode "invokestatic", how can I know the arguments of this static method?

    Hi,all !
    How to find the arguments of a static method from the
    class file? for example, when we meet a bytecode
    "invokestatic", how can I know the arguments of this
    static method?You mean
    1. The values?
    2. Argument names?
    3. Argument signatures.
    I would suppose for the last that the easiest way would be to parse the signature string.
    The first is not possible - not from the class file.
    The second is only in the debug information stored in the optional part of the class file. And figuring out the format for that is going to be a problem.

  • How To Find The Right Server........

    Hi Friend�s I am Again Here
    I Have A Question. I have Tool That�s Work is To Check The Duplicate CDR from Three day�s dump and Then Load this CDR�s in Database. I runt his tool on 2.4 GHz System with 1GB ram and I got the result
    74 CDR�s /see Processing.
    This time I Have A problem that I need server to run this tool and I am not getting that how I calculate the right server so that I can get the result upto 500 CDR�s/see
    How Much CPU I need and How Much Ram I Needed. As per My Knowledge this can run fine on 2*2.4 GHz dual core CPU with 8GB ram.
    Is it Fine,,,,,,,,,,,,,,,,,,,
    Can anyone Help to Find Right System for this tool.

    Your post is hard/annoying to read. In English only the start of a sentence is capitalized. There is no need to capitalize every word within a sentence, unless required otherwise, like the pronoun "I" or the person/product names, e.g. "John Doe" and "Java".
    Apart from that, your question has nothing to do with Java at all. Look for a CDR software forum or so.

  • How to find the right primary key for DSO from Business Content

    According to best practice design, it is reccomended to make a  DSO where all fields from Business COntent Datasources are transferred.
    But, how to find the right primary indeks ?
    Any good suggestions ?
    For many of the Business Content dataflows there are not DSOs present, so ther e is no tip to get from the dokumentations as gfar as I have found.
    best Regards
    Ingrid

    Hi Ingrid,
    Your question will be perfect in case if you are going for a Custom cube.
    You will not have any problem when you create a Datasource in R/3 level even if it is been built on a single table or on view.
    Only point that you want to know how to design my Key fields in ODS.
    This will be purely depends at what level that you want to bring the data.
    Egg:-
    If you run the data source in RSA3 and check for Each GL if you have 10 liine items and you want all the 10 line items to be transfered to BW.
    In this case you need to check what is the unique combination of fields that is making this lineitems to exists as 10.then include all those fields into Your ODS Key Fields.
    This way you can have 10 records for that perticular GL in both sides, by which u will make sure that the data is been completely transfered.
    If in case if you clude your own Key fields then you will get the correct Total in report for each GL but you can't see all those 10 line items.
    For any case you need to figureout how many records that you want to take into BW based on that check the fields that makes it unique and then add them to ODS Keyfields that will solve your requirement.
    I think this will clear your doubt.
    Best Regards,
    VNK.

  • How to find the xi server wheather it is present or not

    hi all,
    i have  one doubt regarding xi server,how to find out wheather the xi server is there or not in our sap server.
    thanks & regards,
    subba reddy

    Hi
    What u mean by SAP Server (Hope u r saying SAP ECC R/3)
    XI / PI is a Seperate Server installation which doesnot come with ecc
    ECC >=  6.2 only has Integration Serve inbuilt which allows it to communicate with XI in Proxy langauge.
    Still u want to check if u r x System is having XI r not then
    Transaction SXMB_IFR ---> IE opens --> Press IR Design , if it opens IR u r in XI
    Srini

  • How to find the date when object is moved from quality to production server

    Hi Experts,
    I am working with BADI ZMM_PUR_REQ_PROC_001-Method Check and BADI ZME_PROCESS_PO_CUST-Method Check.
    I need to add a check that a particular logic should be implemented only after this object is moved to the production server.
    How can i check the date when an object (in my case this BADI) is moved to the production server?
    <Removed by moderator>
    Thanks in advance.
    Edited by: Vinod Kumar on Aug 1, 2011 10:55 AM

    Hi Sakshi,
    So your reqt is that the documents created after your Transport implementation date should pass the check and others (old ones) should ignore.
    I will recommend, if at all possible, to make all the old documents compatible to your check by doing a separate initial loading /one time activity to avoid this kind of hardcoding.
    IF not at all possible to do so, then I think you should better hardcode your Transport req number and fetch date (AS4DATE) from E070 table and only if any entry exists, use that date as your required date. I believe this will be the date of transport imported in the target system.
    You can avoid hardcoding Transport number by picking latest transport with respect to your object (BADI) using E071 table, but that will go wrong once you send any future changes in this BADI to Prod, so better to hardcode the transport.
    BR,
    Diwakar

  • How to find the smtp server on a linux box?

    Hello,
    I am trying to set up Notification Methods in OEM and I need to know the SMTP server and port. Which command can I use on Linux to find this information? Thank you in advance.

    Netstat is not necessarily the right tool for this task.
    Sorry, but "netstat -a | grep 25" will not be useful. For example:
    netstat -a | grep 25
    unix  2      [ ]         DGRAM                    128925
    unix  3      [ ]         STREAM     CONNECTED     11825 Better grep for "smtp". For example:
    netstat -a | grep smtp
    tcp        0      0 vm015.example.com:smtp      *:*                         LISTEN
    lsof is a better tool, but requires "root" or superuser privileges. For instance:
    lsof -i :smtp
    COMMAND   PID USER   FD   TYPE DEVICE SIZE NODE NAME
    sendmail 3098 root    4u  IPv4  13077       TCP vm015.example.com:smtp (LISTEN)Keep in mind however that processing and routing email in is usually a more complex task and involves either to know firewall and mail gateway configurations, or ask your mail administrator. The local mail server may not be permitted to relay email to the company wide smtp gateway depending on routing policies.

  • How to find the list of users loggin through HTTP session

    Hi All,
    we are using SRM 5.5 system with ITS. I am able to find the list of concurrent users from ABAP level using report "CCUEVAL" but how do I know the list of concurrent users logged in from HTTP session?.
    could you please let us know the SAP note number or any report?
    Thanks in advance,
    Mohan Karri

    Hi Uday,
    thank you very much for your prompt response.
    I need a report because by end of every month I would need the average peak http users list for the reporting month.
    or tell me how to find " how many users logged in through HTTP session in a day?"
    Thanks
    Mohan

  • How to find the list of users  used  transcation from last 2 days plz urgen

    hi friendd
                   i am in need of  knowing the list of users used transcation in last 2 days
    can any one help me . how to find out the list of  users and used trancation in detail or step by step
    thanks in advance .i know that i can see in st03 but i dont find any user list or trancations .
    apart from that so we have any other transcation to see the user in sap abap box
    regards
    raja

    This info has been posted before but here you go (this is an alternative way to Bernhards):
    ST03N, make sure you are in Expert Mode (not Service Engineer)
    Expand Workload
    Expand Total
    Double Click on the day you want to analyse
    You can see transaction details under Transaction Profile -> Standard
    You can see what tx a user has started under User & Settlement Statistics -> User Profile
    If you are not seeing any data then speak to your Basis administrator about what they are doing with the log files.

  • How to find the ITS and WAS host name

    HI all,
       I created one system in the portal .system admn->sysconfig->systems.
    Now under the property catagories I selected ITS.
    Now I have to enter ITS host name and port .How to get this host name and port from R/3.Can any body tell me the path from which transaction it will be available.
    Similarly for WAS also.
    Thanks in advance..!
    Regards,
    Krishna.

    HI,
    WAS Details
    1. Goto se37 type : RSBB_URL_PREFIX_GET , execute ->
    I_Handler class : CL_RSR_WWW_HTTP ->clear the I_message server entry -> execute -> WAS Details
    ITS DEtails
    1. goto se37 typr : RSBB_URL_PREFIX_GET , execute ->
    I_Handler class : CL_HTTP_EXT_ITS ->clear the I_message
    server entry -> execute -> ITS Details
    EX: its path you will get a value like this
    /sap/bc/gui/sap/its/....
    use the values before its and like /sap/bc/gui/sap and ignore the rest

  • How to find the Internal Document Structure Number STLNR from the DIR Key

    Hello:
    Our requirement: When a user moves the Header DIR of a Document BOM to Released Status, we need to check if all the BOM Items in this Document BOM have also been released (in Status Released). If not, we need to give the user an error message informing them which component DIRs need to be released before the system will allow them to release the Header DIR. We can do this by entering the DIR Key of the Header DIR and find out the Internal Document Structure Number (Document BOM Number = STLNR for BOM Category Document Structure STLTY = D) from the available input of the DIR Key DOKARDOKNRDOKTL+DOKVR. Then we need to use the value of STLNR in Table STPO to find the Document BOM Items and check the status of each BOM Item DIR.
    If Table STKO had DIR Key as an input we would have our solution, but alas it does not. Can anyone point us in the right direction by suggesting how to get to STLNR from the DIR Key? Your help would be much appreciated!
    Niraj Pant

    Hi Niraj,
    the STLNR should be contained in structure rc29k. You can also use the DMS BAPI DOCUMENT_GETDETAIL2 with parameter GetStructure or DOCUMENT_GETSTRUCTURE. With these BAPIs you should be able to determine the document structure to an existing document info record. For further information on the mentioned BAPIs please see SAP note <a href="https://service.sap.com/sap/support/notes/766277">766277</a>  which contains a complete documentation on all existing DMS BAPIs.
    Best regards,
    Christoph
    P.S.: Please reward points if this information was usefull.

  • How to find the mails triggered by which user from SOST or other transac.

    Hi Experts,
    How to find out mails triggered from SAP system by which user from SOST or some other means of mail triggering from SAP.
    Regards,
    IFF

    Hi Buddy,
    Make the question clear. You can check in SCOT transaction.
    Cheers,
    Sanil

  • How to find the email address by display name

    as title,
    i can get the display name from the to, cc, bc edit box,
    then i need to get the email address,
    current i use object API to query: GWAccount->GWAddressBook->GWAddressBookEntrie->get_EmailAddress,get_DisplayName
    but i find it is really slow when there are many contacts, example 10000.
    so is there any other effective method to get the email address?

    First off, you are not really doing:
    GWAccount->GWAddressBook->GWAddressBookEntrie->
    get_EmailAddress,get_DisplayName()
    are you?
    If you enter the full line, it will read in all
    of the entries each time it is called.
    You should break each part into an object:
    gwAccount
    gwBook
    gwEntries
    I'm not sure what you are doing.
    Are you trying to compose an email?
    If so, why are you not using Recipients.Resolve()?
    Are you trying to get the recipients from an email?
    Preston
    >>> On Friday, April 16, 2010 at 1:26 AM,
    hillp<[email protected]>
    wrote:
    > as title,
    > i can get the display name from the to, cc, bc edit box,
    > then i need to get the email address,
    > current i use object API to query:
    >
    GWAccount‑>GWAddressBook‑>GWAddressBookEntrie >get_EmailAddress,get_Di
    splayName
    > but i find it is really slow when there are many contacts, example
    > 10000.
    >
    > so is there any other effective method to get the email address?

  • How to find the mapping between External Object Name and Business Obj.

    Hello Gurus
      Anyone who can help me? I would like to know is there any way to know Business Object is behind object associated to Context Node, it seems that for some cases is easy but for instance for object BuilHeader is not the case, at least for me.  View BP_ADDR/StandardAddress, which belongs to UI Component BP_ADDR, has context node HEADER which is associated to BuilHeader. In case to enhance that object (to add new attributes), using EEWB, I need to know what is the business object behind that external name. Somehow I cannot find the mapping between external name BuilHeader and Business Object. 
      Kind regards
    Aleksandar

    Hi Aleks,
    If you want to enhance Business Partner, the object you are looking at should be "BUPA" in EEWB. To my knowledge, there is no place where this kind of mapping is maintained.
    Note 484597 describes where to find the Cookbook  which describes the enhanceable objects and the enhancement process.
    In case your requirement is to add table attributes, you can also  take a look at the wiki link:
    http://wiki.sdn.sap.com/wiki/display/CRM/EEWB-AddingTableattribute
    Regards,
    Nisha

Maybe you are looking for