How to Know Oracle server id and port

Dear all
I try to run oracle report in jdeveloper
i make the java files that calling the report as from i found in the internet as follow
OracleReportBean reportBean =
new OracleReportBean(server id, port, null);
reportBean.setReportServerParam(OracleReportBean.RS_PARAM_DESTYPE,"cashe");// which will be one of the [cashe - file - mail - printer]
reportBean.setReportServerParam(OracleReportBean.RS_PARAM_DESFORMAT,"PDF"); // Which will be onr of the [HTML - HTML CSS - PDF - SPREADSHEET- RTF].
reportBean.setReportParameter("xxx", "ssss");
reportBean.setReportParameter("kkkk", "uu");
String url = reportBean.getReportServerURL();
reportBean.openUrlInNewWindow(url);
But i do not know what is the server id and port
and how to specify the report name in the code.
Please help me in this issue.
Best Regards;

I think that the serverid and the port is the ip of your report server and the port. (default 7779)
see this post http://sameh-nassar.blogspot.com/2010/07/call-oracle-reports-from-your-adf.html
so I can see, the name of the report is indicated via parameter
        //launch report
        testBean.setReportServerParam(OracleReportBean.RS_PARAM_REPORT, "name_report.rdf");
        testBean.setReportServerParam(OracleReportBean.RS_PARAM_ORIENTATION, OracleReportBean.ORIENTATION_PORTRAIT);
        testBean.setReportServerParam(OracleReportBean.RS_PARAM_DESFORMAT, OracleReportBean.DESFORMAT_PDF);

Similar Messages

  • SDK : how to get the server adress and port ?

    Almost everything is in the title, I'm look for code to get the server URL and port where the ME is running ;o)
    There should be some standard API I guess.
    Thanks
    Regards

    Hi,
    In the code that I write I usually have access to the HTTP Request Object.
    String serverName = request.getServerName();
    String serverPort = request.getServerPort();
    Then I just do a compare on the returned value to see if I am on our Test or Production server.
    if(request.getServerName().indexOf("prodservername") >= 0)
      // PRODUCTION CODE HERE
    else
      // TEST CODE HERE
    Hope this helps,
    Mike

  • How to know sql server version and edition information

    Hello,
    We can see the version information in help menu item in the SSMS.
    How can i find the edition that was installed in my system?
    Thanks in advance.
    Thanks and Regards, Readers please vote for my posts if the questions i asked are helpful.

    Run below query to know the SQL version and edition
    SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY('productlevel'), SERVERPROPERTY('edition')
    Refer below for more details
    http://msdn.microsoft.com/en-us/library/ms174396.aspx
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

  • How to get Server Name and port. Urgent.....

    Hi,
    Please let me know how can i get the server name and port without using request object.
    I am getting it :- request.getServerName();
    But, pl. let me know how can I get it without using this request object.
    Waiting for reply..

    I don't know of any way to trivially access that, but why do you need to do this? If you need access to that information in a method that can't see your HttpServletRequest, then perhaps your architecture has a flaw, and you'll be better off in the long run restructuring it.

  • How to get server hostname and port from web form

    Hi All,
    I need to find out server hostname and port number
    from 9i form.
    That is if the form was called via:
    http://myserver.com:1234/f90servlet?form=test,
    i would like to call some
    GET_XXX_PROPERTY(SERVER_HOSTNAME) that would return
    myserver.com
    and
    GET_XXX_PROPERTY(SERVER_PORT) that would return
    1234
    or alternatively
    GET_XXX_PROPERTY(SERVER_URL) that would return
    complete URL, so that i can parse it myself.
    Does anything like this exist? If not,would be
    possible to get that information from any Java
    function via java importer?
    BR,
    Robert
    BR,
    Robert

    Robert,
    I'd add the code as a Java Bean in Forms and get this information from the Forms request URL.
    Add the following bean to a Canvas and make it a size of 1x1 pixel so taht it appears hidden
    import java.applet.Applet;
    import java.net.URL;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class FrmRequestInfo extends VBean
    public static final ID pGetPort = ID.registerProperty("GET_PORT");
    public static final ID pGetHost = ID.registerProperty("GET_HOST");
    public static final ID pGetProtocol = ID.registerProperty("GET_PROTOCOL");
    private String _host;
    private String _port;
    private String _protocol;
    private URL FormsURL;
    Applet m_applet;
    /*Forms settings*/
    IHandler m_handler;
    public FrmRequestInfo()
    public final void init (IHandler handler)
    super.init(handler);
    m_handler = handler;
    // get the forms applet handler
    m_applet = m_handler.getApplet();
    // initialize cookie domain to the same domain that runs Forms
    // Services
    FormsURL = m_applet.getDocumentBase();
    _host = FormsURL.getHost();
    _port = new Integer(FormsURL.getPort()).toString();
    _protocol = FormsURL.getProtocol();
    public Object getProperty(ID p0)
    if (p0 == pGetHost)
    return _host;
    else if (p0 == pGetPort)
    return _port;
    else if (p0 == pGetProtocol)
    return _protocol;
    else
    return super.getProperty(p0);
    To get the port number you call
    VarcharVariable_Port := get_custom_property('beanblock.beanname',1,'GET_PORT');
    for the hostname
    VarcharVariable_Host:= get_custom_property('beanblock.beanname',1,'GET_HOST');
    Frank
    Ps.: just wrote the bean on the fly, without testing - but I am positive that it works as similar functionality works for me in other beans.

  • How to get server name and port of OSB server in a proxy service ?

    I need to get the server name and port of the OSB server inside a proxy service. How can I get this?

    You may use java callout for this purpose -
    How to get ServerName and ApplicationName in OSB (ALSB) ?
    Regards,
    Anuj

  • How to read the J2EE server hostname and port programmatically

    Is there any API to read the J2EE server host and port programmatically? I am looking for the hostname where the components are deployed so that I can append the wsdl path to the server and create an URL.

    Hi Larry,
    there is a standard J2EE Servlet API  for your case.
    In a servlet or jsp file you can get the host and prot from the request object.
    For example in a JSP file :
    request.getScheme();
      request.getServerName()
        request.getServerPort()
    You can check the whole API here :
    http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletRequest.html#getServerName()
    Bets Regards
    Bojidar

  • How to get report Server Name and Environment ID in Report

    How to print report Server Name and Environment ID in Report 10G.(Through in package or others)
    I'm also using Oracle Application Server 10G.

    Hi,
    Server and envid are the parameters passed along with Reports URL call.
    These variables value can be traped in Report by defining SERVER , ENVID named user parameters.
    Once trapped, can be printed on Report.
    Just ensure that these users parameters are not exposed to Parameter page, otherwise user may end up changing it.
    Thanks

  • Retriving server IP and port from webservice context

    Hello
    In a JSP page its possible to do this:
    request.getServerName()
    request.getServerPort()
    In order to retrieve the server IP and port.
    How is this done in a webservice context?
    Oliver Billing
    DIF

    No. The way to get that information is to go to the database administrator and ask.

  • Application server name and port number

    Hi
    Is it possible to get the application server name(ip) and port number at runtime. Becuase i want to open an html file which is in the application server, when a button is pressed by using web.show_document ();
    Can anyone guide me please.
    Thanks in advance
    geethu

    application server name and port number

  • Determining Message Server Host and Port information

    Hi,
    I am working on the NWDS creating a Java WD application and I was told which Netweaver system I should work on but I was not told the Message Server Host  information neither the Port information. I ran transaction SM51 (right click->details)in the Netweaver system but the information it is not working. Even though I can telnet this server port if I go to the J2EE Engine window within the NWDS I do not see the green light. I just see "N/A". I also tried to deploy my application but I keep getting this message: "Cannot determine sdm host (is empty). Please configure your engine/sdm correctly".
    Please advice,
    Diego.

    Hi Diego,
    in order to see Message Server Host information and Port information go to SAP J2EE Engine start page: e.g. http://system-name:57100/index.html (use administrator pws).
    Then click on System Information, here on the top you can read the Message Server Host and Port.
    Hope this help you.
    Bye,
    Vito

  • How to check Integration Server Client and ABAP stack Client?

    How to check Integration Server Client and ABAP stack Client? How to check,,pls tell in detailed steps???
    Points would be awarded.
    Arnab

    hi,
    Must be the server has different clients,one declared as application server ie abap stack client and the other declared as Integration server ie XI. U might be trying to open idx5 in application server client, in which idx5  exists but you cant open the screen even, that can be achieved through we02.
    000 is the default client when  XI server is installed .We can create separate clients on the system through sccl tcode.
    As told we can find the client  on sap logon screen.
    Logon to sxmb_adm and check whether the client is declared as an application system(r/3) or Integration server(xi).Try idx5 in xi not r/3
    Edited by: NagaDurga Nannapaneni on Aug 28, 2008 11:36 AM

  • How do I remove server os and install normal os?  The computer has never been used as a server.  I only purchased the server version because of two internal hard drives.

    How do I remove server os and install normal os?  The computer has never been used as a server.  I only purchased the server version because of two internal hard drives.

    If you want to just disable the Server aspect, this should work for both Lion and Mountain Lion...
    http://support.apple.com/kb/HT4827
    If you want to completely start over, backup your /Users and /Applications directories and re-install the client OS.

  • How to istall oracle forms service and oracle reports service and testing

    How to istall oracle forms service and oracle reports service ?
    and we can make test?

    How to istall oracle forms service and oracle reports service ?http://download.oracle.com/docs/cd/B19375_07/doc/frs/docs.htm
    and we can make test?Once installed, there is a test program both for Forms and Reports... or you mean something else ? if so, please clarify.

  • How to know oracle client or oracle server installed in m/c ?

    Hi all,
    Could any one tell me how to know whether oracle 10.1 s/w installed in my machine is client version or server . Is there any easy method..??
    Thanks in advance.

    Hi,
    Check the database / dbs folder exist in the $ORACLE_HOME if yes then SERVER else CLIENT.
    PS: Above is not a standard method, i am telling based on DIRECTORY.
    Regards,
    Taj

Maybe you are looking for

  • Need suggestion for the following Design

    Hi All, I have the following requirement to be implemented. | | | < Start Day << Start Week ---- End Week >> End Day > | |____________________________________________________________________| The above has to be on top of a table.... (i.e a table act

  • IMac, graphics card and Final Cut Studio

    I have an iMac, Intel Core Duo 1.83G, 1 GB 667MHz RAM. I finally made the plunge and bought and tried installing FCStudio 2 but it wants a different graphics card. Can my CPU support FCP and if so, what graphics card is recommended and what sort of R

  • Just updated to iTunes 11.1.3 and now music won't sync

    I have an iPhone 5 and I recently bought several CD's and wanted to sync them to my phone. When I connected my iPhone to my Mac, iTunes said there was an update, so I went ahead and updated the software and then attempted to sync my phone. It says it

  • Is it possible to use OpenSolaris for Sun VDI 3.1 core servers?

    The documentation states that Sun VDI 3.1 core servers must be Solaris 10 (u7 or u8). While it is not supported to use OpenSolaris (2009.06 dev_129/130 or SXCE snv_129) for the core servers, is this expected to work at all in practice (i.e. in a sing

  • Installing Leopard 10.5.1 update hanging

    I have downloaded the update, but when Leopard restarts to install the update it just hangs at the software update window. it says "installing 1 item" but hangs in the progress bar while "configuring installation" i have to end up doing a hard reset