How to Find the Hostname / IP Address of Reports Server From Forms

Hi
We have following query to find out on which machine form server is running,
but how to find hostname/ip address of reports server (if there are more than one reports server running and on different machines).
SELECT SYS_CONTEXT('USERENV','HOST'), SYS_CONTEXT, SYS_CONTEXT('USERENV','IP_ADDRESS')
from dual.
can anybody answer?
rocky rocks.

Our oas name is the same as the box name, and the report server naming convention is rep_(oas name) so that makes it easy to find out.
I have a pll attached to my form that contains the following function, which works for PC or UNIX based app server:
-- get_oas_name - Returns OAS name. 
-- caveat:  Can't be run from pre-form, when-new-form-instance or when-new-block-instance of first
--          block on the form due to webutil limitation.
FUNCTION get_oas_name RETURN varchar2 IS
  fp text_io.file_type;
  oas_name varchar2(30);
  op_sys varchar2(30) := get_application_property(OPERATING_SYSTEM);
BEGIN
  if op_sys = 'WIN32COMMON' then                    
    oas_name := webutil_clientinfo.get_host_name;
  elsif op_sys = 'SunOS' or op_sys = 'UNIX' then
    host('/bin/uname -n > /tmp/oas_name');
    fp := text_io.fopen('/tmp/oas_name','r');
    text_io.get_line(fp, oas_name);
    text_io.fclose(fp);
  end if;
  return oas_name;
END;Then in when_timer_expired (first place you can use webutil functionality) call it accordingly. I also use it to set platform dependant variables so the form will run
when I'm working on my PC or deployed on UNIX:
declare
  :control.op_sys  := get_application_property(OPERATING_SYSTEM);
begin
      :control.oas_name := get_oas_name;
      :control.report_server := 'rep_'|| :control.oas_name;
      if :control.op_sys = 'WIN32COMMON' then        -- For running locally during development.                     
        :control.close_page := 'http://127.0.0.1:8889/forms90/common/window_close.htm';
        :control.rpt_temp := 'c:\temp\';
      elsif :control.op_sys = 'SunOS' or :control.op_sys = 'UNIX' then
        :control.close_page := 'http://'||:control.oas_name||'.yournamehere.com:7779/forms90/common/window_close.htm';
        :control.rpt_temp := '/appl/oas/yournamehere/reports/cache/';
      end if;
end;Good luck,
Gary

Similar Messages

  • I Forgot My Rescue Email , But I Don't Know How To Find The Rescue Email Address! Please Help!

    I Forgot My Rescue Email , But I Don't Know How To Find The Rescue Email Address! Please Help!

    See the "more like this" section on the right side of this page

  • How to find the E-Mail address for my HP 6700? Printer shows E-Print connected.

    I got help on the board about getting a new printer code and the Home Printer page shows that it is on, but now I don't know how to find the E-Mail address for my computer -
    This question was solved.
    View Solution.

    Hi,
    From the printer Front panel, navigate to Setup. Locate and enter Web Services. Aprove any of the steps to enable the service... allow the device several minutes to complete the registration, a page will print automatically with the printer code and the directions to select the email address from hpeprint.com.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to remove the old email address that was hacked from my iCloud account when iCloud won't let me?

    How to remove the old email address that was hacked from my iCloud account when iCloud won't let me?
    Pretty much the the email that I used (but didn't verify) to create my iCloud account was hacked and now I can't remove it from my iCloud account due to the iCloud password also being changed by the same person and the fact I had "Find my iPhone" app on my phone also??? I had to change my iTunes email as well but that was far easier so yeah :S.
    Please help. I live in NZ, out in the country, so reception is rare and so is getting into the nearest town that has an Apple Store.
    Thanks

    If you truly change your existing Apple ID's email address to a new email address, follow these instructions: iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    If you created a whole new Apple Account because you couldn't access the old one after being hacked, you will need to contact the Apple Account Security Team. Apple ID: Contacting Apple for help with Apple ID account security

  • How to Find the number of Databases in a server.

    HI,
    Please tell me how to find the number of Databases are in a server . when the DB is not up.
    ps -ef | grep ora_
    This i know whether our DB is up or not. But i want to know how many databases are in a server .If the database is down .
    Cheers,
    Gobi.

    Hi,
    [oracle@oralinux admin]$ lsnrctl status
    LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 01-DEC-2006 16:25:41
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    TNS-01169: The listener has not recognized the password
    [oracle@oralinux admin]$
    Plz give me the solution.
    Cheers ,
    Gobi.

  • How to find the number of users  connected to database from OS level(Linux)

    Hi All,
    Could anyone know , how to find the number of users connected to database without connecting with sql*plus
    is there any command to find it?
    example we have 10 databases in one server, how to find the number of users connected to particular database without connecting to database(v$session)?
    oracle version:- 10g,11g
    Operating System:- OEL4/OEL5/AIX/Solaris
    any help will be appreciated.
    Thanks in advance.
    Thank you.
    Regards,
    Rajesh.

    Excellent.
    Tested, works as long as you set the ORACLE_SID first ( to change databases )
    ps -ef | grep $ORACLE_SID | grep "LOCAL=NO" | awk '{print $2}' | wc -l
    Thanks!
    select OSUSER
        from V$SESSION
    where AUDSID = SYS_CONTEXT('userenv','sessionid')
        and rownum=1;Best Regards
    mseberg

  • How to identify the physical IP address of AIX server on RAC Oracle 10g

    Hi All,
    Could you please help someone to identify the physical IP address of IBM AIX on RAC db. I have access to the database and I don't know whether the hostname mentioned in the tnsnames.ora file is virtual or physical ip adress . Is there any command to identify the physical IP address of AIX server. My objective is to gain acccess to those servers. I am a bit confused by looking at the virtual IP, private IP and Public IP addresses in the documentation and I am relatively new to this area. Also note that I am a junior developer who is trying to learn some new stuff.
    Please throw some lights on this.

    I am assuming you have access to the servers indicated in the tnsnames.ora file. After logging into those servers, take a look at /etc/hosts files, which lists the IP addresses and its associated host names. See if that helps. Another option is if you don't have access to the servers, "nslookup <ip_address_from_tns.ora>" should list the server name associated with the given IP Address. If your SAs have followed the general naming conventions - you should see -vip at the end.
    HTH
    thanks
    Chandra

  • How to find the Data source name on linux server

    Hello All,
    Good Morning...
    I created a rpd in my local machine and deployed on the server through Fusion middle ware.
    and copied the catalog file there in the server.
    While working on my local machine I have two odbc connections... one is for development and other is for production.
    at the time of deployment to the server I changed the development instance to production instance throught the connection pool.
    I am encountering the following error while working on the analyis....
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 16001] ODBC error state: IM002 code: 0 message: [DataDirect][ODBC lib] Data source name not found and no default driver specified. (HY000)
    I think this is because of the mismatch of the datasource name in server and my local machine...could you please tell me how to find the datasource names on the server?
    Thanks!

    Hi Dpka-
    I created two ODBC connections in my system.
    one for development and another for Production.
    while deploying the rpd to the server I changed the development login credentials with production login.
    The problem here is I just want to know whether Iam giving the same datasource name which was presented on the server or not.
    I don't have access to the server now.
    Is there any way to find out the datasource names which were presented on the server with the help of admin console?
    Thanks!

  • How to find the list of cost centers reporting to a particular employee

    Hi Experts,
    I have to create one report in Java Web Dynpro. In the report, I have to display all cost centers reporting to a paricular employee. For example suppose Vice President of company has pernr 6481. From pa20, we quickly find out that his cost center is say 1209000. Now the Vice President has several reporting cost centers. For example one cost center will be for Marketing Deptt, other may be of HR deptt.
    Please let me know how I can find out that what all cost centers are reporting to pernr 6481(Vice Preseident)
    Regards,
    Gary

    Hi Pradeep,
    Thanks for email. In my project name has been maintained in CSKS-VERAK. However this name does not matches exactly with the name of pa20 (HR). It looks like SAP has not provided data integrity between HR name and CSKS-VERAK. It seems that while creating cost center, the user enters name in his own way. For example "Al-Fahad Malki" can be written in "Malki Fahad-Al" or "Malki Fahad" or "Al-Malki Fahad". The name of user in pa20 may be "Al-Fahad M". So it is not possible for us to use solution provided by you.
    Hi Pradeep, SDN Users,
    I have used following logic for getting cost centers for given pernr.
    1)     Take pernr as input. Exexute RFC HRWPC_RFC_OADP_GET_NAVOBJECTS. While executing RFC pass following values:
    a.     OBJSEL - MSS_TMV_EE_ORG1
    b.     Begda u2013 Today date
    c.     Ends u2013 Today date
    d.     User u2013 pernr
    e.     Cachemaxage -  -1
    2)     Then program should read the value of OBJID from HRWPC_RFC_OADP_GET_NAVOBJECTS output.
    3)     After this program should read value from HRP1001 for following condition
    PLVAR = 01
    OBJID = OBJID of step 2
    RELAT = u2018011u2019  and
    RSIGN = u2018Au2019 and
    (check todayu2019s date is >= begda and <= endda ) and
    SCLAS = u2018Ku2019 u2026  and
    SOBJID  = first 10 charactersu2026
    The cost center will be first 10 characters of SOBJID.
    4)     Return the Cost Center as derived in step 3. The cost center name and cost center name both should be returned as the output.
    5)     Sort the Cost Centers in ascending order of Cost Center name, if needed.
    Regards,
    Gary

  • How to find the Administrator Name of OS X Server, and login to it from the Server app from another Mac?

    OS X Mountain Lion 10.8.5 and Server 2.2.2 on both Mac Mini Server and Macbook Pro.  They are on the same WiFi network.
    I want to use the MBP to manage the Server on Mac Mini Server and use the MacMiniServer to provide Caching Service for my MBP, iPad and iPhone.
    The problem:
    From the MBP Server app, it asks me the Host Name, Administrator Name and Administrator Password.  I cannot get it right.  Where can I find it from the Mac Mini Server?
    What elese shoudl I do / learn?

    Run Server.app on the host itself.
    Click on the line on the left for the server itself (probably top or second down)
    Click on the 'settings' tab.
    Make sure you have 'Enable screen sharing and remote management' ticked.
    If it's already ticked ...
    Find the address you're using for the 'Host' field and try
    ping [thataddress]
    as a command in the Terminal on the client computer.  Do you get numbers up, or errors ?
    Use control-c to quit from the 'ping' command.

  • How to find the parts list for an existing server.

    I need to know what kind of integrated controller is in my DL 385 G7 server.
    The website is unable to tell me anything - or at least I've only invested 45 minutes in trying to find the actual data.
    I have the Serial number, the Product number, the Product Name, and even the Server Warranty and HP Care Pack Warranty Number, yet I can't find a simple parts list of the purchased configuration!
    Let's see an Expert show me the way to find out if this integrated controller supports RAID10, and how many disks, when installing VMware ESXi (the free version.)  I am going to assume at some point I will have to pick up some drivers as well.

    Hi noosh,
    I see the product in question is an enterprise product which may have better exposure in a community more experienced with it's use.
     You may have a better response at the forums for business support, if you'd like to give them a try:
     http://h30499.www3.hp.com/t5/Business-Support-Forums/ct-p/business-support
    Thank you,
    -AntoniusL
    HP Support Forums Moderator

  • How to find the J2EE Engine in SAP BI server

    Hi all,
    Can anyone explain how to search J2EE Engine installed in SAP BI Server, Where to check to conform that J2EE is installed..
    Thnaks in advance

    Hi Harish,
    Please have a look at the [help file|http://help.sap.com/saphelp_nw70/helpdata/en/43/e35b3315bb2d57e10000000a422035/content.htm] for info on BI Java.
    Regards,
    Raghu

  • How to Pass the Internal table of a report to Smart Form

    Hi Experts,
    I have one report in which from selection screen i am getting the values from the users, and upon that values i am filling data in to the internal table.
    Now i want to pass that internal table data to the smart form
    and print that data in the smart form.
    So could you pls give me some pseudo code or any steps to achieve it.
    Thanks & Regards,
    DS

    Hi DS,
    First of all you need to create a SF and then need to call the FM generated by the FM in your report.
    In the SF in the form interface>tables tab>mention the name of the table and its type structure.
    Pls note that a new structure has to be created as the same type of your internal table which holds the data.
    And the import and export parameters as just the same as in a FM.
    Now after you create and activate your SF a FM will be generated (wen u execute your SF you will be taken to this SE37 screen with the name of FM so no probs..)
    You can call this FM in your report. Hope this helps.
    Ex:
    say itab has your final data, and you also want to export a variable var1 to the SF.
    after your normal report operations end, call the FM and pass on these data.
    say your FM name is FM1.
    call function FM1
    exporting
    var1 = var1
    tables
    itab1 = itab1.
    pls note that in the SF also i gave the same names, it is not mandatory to give the same names.
    and as you want to print a table in the smartforms, you need to create a table in the smart forms and then display the data which is quite simple.
    Hope this helps...
    if you need any further explanations, pls revert...
    Regards,
    Narendra.
    Reward points if helpful!!!

  • Unable to connect to the report server from FORM in 10g

    Just I start to create Forms and Reports .
    Final step I try to put Button in Form Report to call Report but this job I have not do it before just I try it by my seftstudy to do.
    However, i get message error i will show you to see which mistake i have done.
    this picture error message:
    http://img136.imageshack.us/img136/5830/errr11ex.gif
    this picture paht of Report after import it in Form builder:
    http://img146.imageshack.us/img146/4381/tree9eb.gif
    this picture show the setting of properties in Report:
    http://img501.imageshack.us/img501/3999/agent4nz.gif
    this is my code :
    declare
    report_id report_object;
    report_message varchar2(1000);
    p_id paramlist;
    v_rep VARCHAR2(100);
    begin
    report_id:=find_report_object('agent');
    v_rep := RUN_REPORT_OBJECT(report_id);
    report_message := run_report_object(report_id , p_id);
    web.show_document('http://orcl:8889/reports/rwservlet/getjobid'|| substr(report_message, length('svr')+2)||'?server=svr');
    end;
    Can any one try to tell me what the mistake in my code and how to solve it?
    My best regards;
    Message was edited by:
    ExplOrer

    Hello !
    You can try to use only the web.show_document call
    WEB.SHOW_DOCUMENT('/reports/rwservlet?report=agent.rdf&destype=cache&desformat=htmlcss&server=srv&userid=you have to enter your username/passwort@database net name here,'_blank');
    Have you defined the path for the stored reports ?
    Try to locate the registy key REPORTS_PATH in the registry and add the root C:\project\reports . to the key
    Katharina

  • How  to Find the Web client in SAP MDM server

    HI
    MDME4J_Ver5.5.15.00 ,MDMD COM This Two fileare there  in Server, used for Installing Webclient...
        Can Any body give more information on this, I am very new to this ...
    Thanks In Advance..
    Regards
    Guruva

    Hi Guruva,
    As explained in previous posts, there is no readymade web client available in MDM 5.5.
    If you use MDME4J_Ver5.5.15.00, then you should build your own application using the MDME4J.jar file. This jar file consists of library classes and methods which can be used for connecting, retrieving and updating records etc to/from MDM repository. It is a java programmer's responsibility to use this jar file and build a custom web Client.
    If you use MDM COM, it is a VB programmer's job to explore this COM API and build a custom web Client.
    You can use any of the above APIs to build your web client based on your skillset.
    Hope this information is useful !
    Regards,
    Rajani Kumar

Maybe you are looking for