How to run report from other database

hi,
i have an application running on oracle 10g forms (many forms & reports),i want to run a report from other database using a form,it should be run on this application & same report server. so if it is possible so tell me how can i do this ?
thxs

If you have another Oracle database you can use the following command to create a link to it from the one you are currently logged into
CREATE PUBLIC DATABASE LINK my_db_link
CONNECT TO other_oracledb_usernane IDENTIFIED BY other_oracledb_password
USING 'remote_oracledb_name';
When you issue this command the 'remote_oracledb_name' must exist in your TNSNAMES.ORA file so that the remote database can be 'found'
If this is still not enough info I would suggest that you talk to someone on your DBA team to help set up the link.
Mark

Similar Messages

  • How to run report from form using run_object_report

    I AM USNING FORMS9I/REPORTS 9I , HOW TO RUN REPORT FROM FROM USING RUN_REPORT_OBJECT AND HOW
    TO PASS PARAMETER AS WE DID IN RUN_REPORTS PLEASE HELP ME

    here an example !
    I hope this example you can use it
    PROCEDURE pr_reporte IS
    BEGIN
    DECLARE
         repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status Varchar2(20);
    d1 DATE;
    d2 DATE;
    BEGIN
         d1 := :GLOBAL.DIA_INI;
         d2 := :GLOBAL.DIA_FIN;
         repid := find_report_object('rep_lab02');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'p_fec_uno='||to_char((add_months(last_day(d1),-1) +1),'DD/MM/YYYY')||' '||
         'p_fec_dos='||to_char(d2,'DD/MM/YYYY'));
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := report_object_status(v_rep);
         WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
              rep_status := report_object_status(v_rep);
         END LOOP;
         IF rep_status = 'FINISHED' then
              WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
         ELSE
              ventana('E','error reporte no encontrado','S');
         END IF;
    END;
    END;
    The 'rep_lab02' is the name of the report that you give in the node reports
    p_fec_uno and p_fec_dos they are the parameters in the report
    repserver is the name of server created with rwserver
    Greetings

  • How to run report from forms

    hi all,
    i have tried to run report from forms using below codig(got from online help)
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         rep_status varchar2(20);
         v_host varchar2(100):= 'localhost';
    v_port varchar2(10);
    v_parameter_string varchar2(4000);
    v_username varchar2(50);
    v_password varchar2(50);
    v_database varchar2(50);
    BEGIN
         repid := find_report_object('REPORT27');
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         if rep_status = 'FINISHED' then
              message('Report Completed');
              copy_report_object_output(v_rep,'E:/Rep/local1.pdf');
    --     host('MOZILLA E:/Rep/local.pdf');
    -- WEB.SHOW_DOCUMENT('http://192.168.0.160:1521/reports/rwservlet/getjobid'||
    -- substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
              else
         message('Error when running report.');
              end if;
              -- Get the full domain name of the server from the formsweb.cfg
    tool_env.getvar('SERVER_URL',v_host);
    -- Get the username/password and database from the .env file
    tool_env.getvar('APPLICATION_USERNAME',v_username);
    tool_env.getvar('APPLICATION_PASSWORD',v_password);
    tool_env.getvar('APPLICATION_DATABASE',v_database);
    -- If it is localhost then we are running on windows and need to use the windows port, otherwise we
    -- are on AIX and need to use the AIX port
    IF v_host = 'localhost' THEN
         v_port := '8889';
    ELSE
         v_port := '8889';
    END IF;
    -- Now build the parameter string for running the report      
    v_parameter_string := 'server=repserver';
    v_parameter_string := v_parameter_string||'&report= E:\AGE_NoELIGIBLEReport.rdf';
    v_parameter_string := v_parameter_string||'&userid='||v_username||'/'||v_password||'@'||v_database;
    v_parameter_string := v_parameter_string||'&execution_mode=batch';
    v_parameter_string := v_parameter_string||'&comm_mode=synchronous';
    v_parameter_string := v_parameter_string||'&destype=cache';
    v_parameter_string := v_parameter_string||'&desformat=pdf';
    -- Now run the report
    web.show_document('http://'||v_host||':'||v_port||'/reports/rwservlet?'||v_parameter_string,'_blank');
    END;
    REP-110: Unable to open file ' AGE_NoELIGIBLEReport.rdf'.
    REP-1070: Error while opening or saving a document.
    REP-0110: Unable to open file ' AGE_NoELIGIBLEReport.rdf'.
    but i hav report in e:\ then why its getting?

    Hi,
    I suggest you not to use the "E:\" directory letter, but the REPORTS_PATH instead.
    <p>
    from the Online Help
    </p>
    <p>
    On Windows, edit environment variables through the Registry Editor (Start > Run > Regedit).
    </p>
    <p>
    On UNIX, edit environment variables by revising and running the shell script that defines the initial default values (reports.sh). If you do this, be sure to keep a backup of the original, unaltered reports.sh file.
    </p>
    <p>
    Regards
    JeanYves
    </p>

  • How to run reports from discoverer viewer by http

    Hello everybody,
    We've migrated our j2ee application to htmldb and we've migrated Discoverer reports from 4i to 5. So, I'd like to know how to invoke reports from htmldb.
    With the previous version we used this way:
    http://hostname/discoverer4i/viewer?wbk=ZZZZZZZZZ&us=uuuuuuuuu&eul=XXXXX&qp_competence_id=-1&qp_competence_type=All&qp_Manager=NNNN&qp_resource_manager=-N&db=custprd.us.oracle.com&password=******
    Best Regards,
    Seba.

    Hi Seba
    You basically run Viewer as normal and then copy the URL from the Address bar at the top of the browser. This can then be used to run the report.
    I hope this helps
    Best wishes
    Michael Armstrong-Smith
    URL: http://learndiscoverer.com
    Blog: http://learndiscoverer.blogspot.com

  • I've interview tomorrow , still do not know how to run report from forms

    hi all ,
    i asked before about running report from forms 10g rel2 , but vainly , because i could not configure the reports server ,
    and no one told me .
    now i've an interview tomorrow , and sure it will be included in the task which i have to do .
    i am in a bad need for your step by step help
    thanks in advance

    Excuse me for being lazy and not searching your previous threads containing questions about configuring your reports server. As I don't know their content I don't know the links posted, the advices given and what you did, and as this is a new thread I'll go ahead and ask what you tried, where you failed and what exactly did not work out for you.
    i am in a bad need for your step by step help Fine, here is an easy one:
    Step 1: go to http://tahiti.oracle.com
    Step 2: click on "Oracle Application Server, 10g Release 2 (10.1.2)"
    Step 3: click in the searchbox, type "Configuring Reports Server"
    Step 4: click "search"
    Step 5: You will be redirected to some links, the very fist of them is this:http://docs.oracle.com/cd/B14099_19/bi.1012/b14048/pbr_conf.htm
    This is as step-by-step as it gets, if you want detailed help ask detailed questions.
    cheers

  • How to run report from forms 6i

    i want to run report from forms 6i.
    can anyone help me in this regard.
    asif iqbal
    karachi.

    hi
    try something like this.
    parameter_list_id := CREATE_PARAMETER_LIST('temp_data');
            mywhere:='where 1=1';
            if :RESULT_VALUE is not null then
                  mywhere:=mywhere || ' and diagnosis like ''%'||:RESULT_VALUE||'%''';
            end if;
            if :HISTORY is not null then
                  mywhere:=mywhere || ' and histodesc like ''%'||:HISTORY||'%''';
            end if;
            if :RCOMMENTS is not null then
                  mywhere:=mywhere || ' and scomments like ''%'||:RCOMMENTS||'%''';
            end if;
            if :PATHOLOGIST is not null then
                  mywhere:=mywhere || ' and PATHOLOGISTS like ''%'||:PATHOLOGIST||'%''';
            end if;
                mywhere:=TRANSLATE(mywhere,' ','~');
                ADD_PARAMETER(parameter_list_id,'MYWHERE',TEXT_PARAMETER,mywhere);
          RUN_PRODUCT(REPORTS,'C:\SearchResult.RDF',SYNCHRONOUS,RUNTIME,FILESYSTEM,parameter_list_id,NULL);
          ADD_PARAMETER(parameter_list_id,'PARAMFORM',TEXT_PARAMETER,'NO');
          DESTROY_PARAMETER_LIST(parameter_list_id);and also u can try the following code please modify it with u r requirements.
    declare
    v_plist_id paramlist;
    pl_name varchar2(50) := 'rep_params';
    begin
    v_plist_id := get_parameter_list(pl_name);
    check_param_list (pl_name); --Check availability of paramlist and
    destroy is present
    --When the parameter list already exists it needs to be distroyed first
    if not id_null(v_plist_id) then
    destroy_parameter_list(v_plist_id);
    end if;
    v_plist_id := create_parameter_list(pl_name);
    add_parameter(v_plist_id, 'P_1', text_parameter, :block_name.item);
    -- input parameter
    add_parameter(v_plist_id, 'PARAMFORM', text_parameter, 'NO'); --
    suppress the display of the Reports p-form
    add_parameter(v_plist_id, 'DESTYPE', text_parameter,
    :control.dest_type); -- set file destination type
    add_parameter(v_plist_id, 'DESNAME', text_parameter,
    :control.dest_name); -- set file destination name
    add_parameter(v_plist_id, 'DESFORMAT', text_parameter,
    :control.dest_format); -- set file destination format
    -- call reports
    run_product(reports, 'reports_file', asynchronous, runtime,
    filesystem, v_plist_id, null);
    end;sarah

  • How to run report from multiple user same time

    Hi,
    We are using oracle database 11g R2
    Oracle Forms & reports : 11.1.2
    O.S : Windows & Professional
    We have install oracle database, Oracle forms & reports in server. Near about 25 users are accessing that database, forms & reports from server through browser.
    I have one problem, when users runs a report there report goes in queue and runs one by one in FIFO manner.
    If one user has a report that take long time other users has to wait for that time.
    Can it is possible to run reports in multitasking manner, i.e multiple report can be run simultaneously.
    http://servername:7001/reports/rwservlet/showjobs?
    Using above url am able to see jobs in queue.
    Thanks in advance.

    Hi Denie,
    I am new to it and don't know how to add engines to server.conf , can you please tell me how to add engine to it.
    I search server.conf file but i did't found it.
    Please help..
    Thanks in advance.

  • How to run report from form in DS9I

    Hi,
    Can anybody guide me how to run the webreport from the form by passing some parameter from form to report
    by using Oracle developer 9i
    thanks

    Try
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    You'll find there all what you need

  • How to run report from java code

    I am a begginner in Oracle Reports. We have no AS installed, so we run reports either from Reports Builder or by calling rwrun. I would like to know how to embed report calling into java code , let's say into simple swing application. Some example code would be welcomed. Thanks.

    Hello,
    You can find examples in :
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_webservice.htm
    Oracle® Application Server Reports Services Publishing Reports to the Web
    10g Release 2 (10.1.2)
    B14048-02
    14 Using the Oracle Reports Web Service
    Regards

  • How to run report from context menu using XML Extensions?

    I have found an example how to run SQL command from context menu:
    <items>
    <folder type="TABLE">
    <name>UserDefined ContextMenus</name>
    <item TYPE="TABLE" reloadparent="true">
    <title>Create SYNONYM</title>
    <prompt type="check">
    <label>PUBLIC</label>
    <value>PUBLIC</value>
    </prompt>
    <prompt>
    <label>NEW SYNONYM NAME</label>
    </prompt>
    <sql>
    <![CDATA[CREATE #0# SYNONYM  #1# for "#OBJECT_OWNER#"."#OBJECT_NAME#"]]>
    </sql>
    <help>
    This action create a SYNONYM (optionally public) for the selected table.</help>
    <confirmation>
    <title>Confirmation</title>
    <prompt>SYNONYM "#1#" for "#OBJECT_NAME#" has been created.</prompt>
    </confirmation>
    </item>
    </folder>
    </items>
    </prompt>
    But instead of executing SQL command I need to show result page of report based on SELECT statement.

    Hi dz_r-
    Not sure exactly what you mean by "result page of report", but extensive documentation on the xml schema defining context menu actions is available at the schema location.
    &lt;items xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://xmlns.oracle.com/sqldeveloper/3_1/dialogs"
      xmlns="http://xmlns.oracle.com/sqldeveloper/3_1/dialogs">
        &lt;!-- your declarations here -->
    &lt;/items>
    Brian Jeffries
    SQL Developer Team

  • How to run report from form 10g

    Dear All,
    I have code of forms 6i that i used to run report. but when i run this code through forms 10g this gives message that use RUN_REPORT_OBJECT instead.
    please convert my code to 10g .
    ==============================================
    pl_id:=Get_Parameter_List('tmpdata');
         IF NOT Id_Null(pl_id) THEN
              Destroy_Parameter_List(pl_id);
         END IF;
         pl_id:=Create_Parameter_List('tmpdata');
         Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
         Add_Parameter(pl_id, 'P_FROM', TEXT_PARAMETER,:FROM);
         Add_Parameter(pl_id, 'P_TO', TEXT_PARAMETER, :TO);
    Run_Product(REPORTS,'ANNEX_B_CONSTRUCTION_QUALITY',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id);
    =======================================================
    Many thanks

    Some sample code. Create REPORT1 under Report node of the form.
    DECLARE
      PL_ID                 ParamList;          
      v_rep_id          REPORT_OBJECT;               
      v_rep            VARCHAR2(200);               
      v_rep_file        VARCHAR2(100); --Added to change create a unique file each time report created.
      v_tmp_path                         varchar2(250);
    BEGIN
    v_rep_id := FIND_REPORT_OBJECT('REPORT1');
    v_rep_file:=USER||'_'||to_char(SYSDATE,'DDMMYYYY_HH24MISS');
    pl_id:=Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List(pl_id);
    END IF;
    pl_id:=Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    Add_Parameter(pl_id, 'P_FROM', TEXT_PARAMETER,:FROM);
    Add_Parameter(pl_id, 'P_TO', TEXT_PARAMETER, :TO);
    --Run_Product(REPORTS,'ANNEX_B_CONSTRUCTION_QUALITY',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id);
    SET_REPORT_OBJECT_PROPERTY(v_rep_id,REPORT_FILENAME, 'tested_part_report'||'.rdf');
    SET_REPORT_OBJECT_PROPERTY(v_rep_id,REPORT_DESTYPE,FILE);
    SET_REPORT_OBJECT_PROPERTY(v_rep_id,REPORT_DESFORMAT,'pdf');
    SET_REPORT_OBJECT_PROPERTY(v_rep_id,REPORT_DESNAME,v_tmp_path||v_rep_file||'_Tested_Part_Report.pdf');
    v_rep := RUN_REPORT_OBJECT(v_rep_id,PL_ID); 
    --You should have a virtual path set as /output/ in Application server
    --Show the pdf output create in the folder mapped to output
    Web.Show_Document('/output/'||v_rep_file||'_Tested_Part_Report.pdf','_blank');     
    END;You need to put the files in the path (As set in the registry of application server) . Needed application server knowledge to deploy the reports.
    Edited by: Lokanath Giri on २२ दिसंबर, २०११ ११:०३ पूर्वाह्न
    Edited by: Lokanath Giri on २२ दिसंबर, २०११ ११:५९ पूर्वाह्न

  • Urgent: how to run report from forms runtime

    hi
    can anybody tell me how to call reports in forms through menu
    i just forgot how to call...
    exact menu item code!!
    rgds,

    Dear
    if u are using client server then use this code
    Run_Product(REPORTS, 'd:\emp.rep', ASYNCHRONOUS, RUNTIME,
    FILESYSTEM, 'x', NULL);
    if u r wsing web then use this code
    Web.Show_Document('/reports/rwservlet?server=myrepserv&report=test.rdf&userid=scott/tiger@mydb&desformat=pdf&destype=c
    ache&paramform=yes', '_blank');
    M Rizwan

  • How to query data from other Database

    Dear Community;
    Please help me, I want to connect with another Database in apex query. I have been created TNS and also query run proper in Toad, but when I give schema name with table it does not run and give error.
    So how I can use this query in Apex.
    Regards
    Shahab Ahmed Khan

    We do this by creating a database link from DB1 (Apex database) to DB2 (main database) then writing queries like this in Apex:
    select foo, bar from atable@db2

  • How to run client from other machine in ejb

    Please help me this problem .
    When i run on local . Every thing is ok .
    But when i run from different machine , it not work .
    Although , i hava changed jnp://localhost:1099 to jnp:/xxx.xxx.xxx:1099 , xxx... this is my ipaddress .
    I am using : net bean 6.9 , j2ee 1.4 , jboss application server 4.2.3GA
    Thanks all

    Thanks jverd and gimbal2 helped me .
    I hava just write the small programme "Hello word "
    This is my code .
    I create EJB module : invokes : hello.java , helloRemote.java , helloRemoteHome.java .
    hello.java*
    package demo;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    +public class hello implements SessionBean {+
    private SessionContext context;
    +public void setSessionContext(SessionContext aContext) {+
    context = aContext;
    +}+
    +public void ejbActivate() {+
    +}+
    +public void ejbPassivate() {+
    +}+
    +public void ejbRemove() {+
    +}+
    +public void ejbCreate() {+
    +}+
    +public String getMessage() {+
    return "hello word";
    +}+
    +}+
    helloRemote.java*
    package demo;
    import java.rmi.RemoteException;
    import javax.ejb.EJBObject;
    +public interface helloRemote extends EJBObject {+
    String getMessage() throws RemoteException;
    +}+
    helloRemoteHome.java*
    package demo;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    import javax.ejb.EJBHome;
    +public interface helloRemoteHome extends EJBHome {+
    demo.helloRemote create()  throws CreateException, RemoteException;
    +}+
    ejb-jar.xml*
    +<?xml version="1.0" encoding="UTF-8"?>+
    +<ejb-jar version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">+
    +<display-name>helloword</display-name>+
    +<enterprise-beans>+
    +<session>+
    +<display-name>helloSB</display-name>+
    +<ejb-name>hello</ejb-name>+
    +<home>demo.helloRemoteHome</home>+
    +<remote>demo.helloRemote</remote>+
    +<ejb-class>demo.hello</ejb-class>+
    +<session-type>Stateless</session-type>+
    +<transaction-type>Container</transaction-type>+
    +</session>+
    +</enterprise-beans>+
    +<assembly-descriptor>+
    +<container-transaction>+
    +<method>+
    +<ejb-name>hello</ejb-name>+
    +<method-name>*</method-name>+
    +</method>+
    +<trans-attribute>Required</trans-attribute>+
    +</container-transaction>+
    +</assembly-descriptor>+
    +</ejb-jar>+
    And now , from diffrent machine . I created the web application . I have added "hello.jar" into web application .
    After , i create one servlet to call getMessage method .
    This is the code :
    test.java*
    package demo;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    +public class test extends HttpServlet {+
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    +throws ServletException, IOException {+
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    +try {+
    System.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
    System.setProperty(Context.PROVIDER_URL,"localhost:1099");//i hava changed localhost to my ipaddress . xxx.xxx.xxx:1099
    InitialContext cxt=new InitialContext();
    Object obj=cxt.lookup("hello");
    helloRemoteHome home=(helloRemoteHome)obj;
    helloRemote helloObj=home.create();
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet test</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("Servlet test at " helloObj.getMessage());+
    out.println("</body>");
    out.println("</html>");
    +}+
    catch(Exception ex)
    +{+
    +}+
    +finally  {+
    out.close();
    +}+
    +}+
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    +throws ServletException, IOException {+
    processRequest(request, response);
    +}+
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    +throws ServletException, IOException {+
    processRequest(request, response);
    +}+
    +public String getServletInfo() {+
    return "Short description";
    +}// </editor-fold>+
    +}+
    The result when i run on local : hello word
    But when i run the client from different machine , the result is : nothing appear .

  • How to run report from a cronjob in UNIX server?

    I am trying to create a huge report in pdf format in UNIX server,
    please tell me the command and syntax.
    tnx

    Hi,
    Reports job command line methods (and syntax) are explained here (Publishing Reports Manual):
    http://download.oracle.com/docs/html/B10314_01/pbr_run.htm#1008687
    And all the different arguments that you can specify in the command are explained here:
    http://download.oracle.com/docs/html/B10314_01/pbr_cla.htm#666889
    Navneet.

Maybe you are looking for

  • Is my ipod broken or just in need of a battery replacement?

    My ipod is only 6 months old, i use it for about 1hr a day 4-5 days a week. I used to only have to charge it every 3-4 wks, i now find myself having to recharge at least once a week and sometimes it seems like it freezes with just the apple symbol on

  • EPMA dimension alias

    Hello, I am working on EPM 11.1.2.3, and notice that I encountered an issue with EPMA Planning application. When I create the dimension (for example, Product dimension), in the system property, there is a dimension alias field. However, when I put an

  • Default Sound Balance and Screen Brightness?

    Recently my iBook G4 has been booting up with the screen brightness all the way down and the speaker balance all the way to the left. Did these settings somehow get set as the defaults? How do I change it back to normal so that I dont have to keep ch

  • Field Selection for Maintenance Planing

    Hi Dear,            I have done some field selection somewhere in SAP System.Now when I am creating Maintenance Item,Maintenance Plan,now I am getting Function Location field as Required. I don't remember where is the field selection for making the f

  • Default Settings for Items - default company code

    Upon entry into Power Shop, how can I look up what the default Company Code is for the user?  Is there a BADI/FM combination that can be used?