Not able to execute Query in BEx Netweaver 2004s

Hello Experts,
I'm trying to execute query on the web from BEx Netweaver 2004s.
But I get this message:
The page you are looking for might have been removed or had its name changed.
And the wired thing is I don't get host and port number in the address bar.
http:///irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=0CCA_C03_Q1000&VARIABLE_SCREEN=X&DUMMY=1
But when I execute query from BEx 3.x it works.
What settings should I check and make so that it works fine in the new version.
One of the parameter icm/server_port_0  has a timeout limit set to 150.
Thanks in advance.

Thanks All of you but no luck as of now.
While manually adding host and port into the address bar i got this message:
The initial exception that caused the request to fail, was: 
Connect from SAP gateway to RFC server failed
Connect_PM  TYPE=A ASHOST=soanetp2:8001 SYSNR=01 GWHOST=soanetp2.GWSERV=sapgw01 PCS=1
LOCATION    SAP-Gateway on host soanetp2 / sapgw01
ERROR       hostname 'soanetp2:8001' unknown
TIME        Fri Oct 10 15:52:43 2008
RELEASE     700
COMPONENT   NI (network interface)
VERSION     38
RC          -2
MODULE      nixxhsl.cpp
LINE        223
DETAIL      NiHsLGetNodeAddr: hostname cached as unknown
COUNTER     10
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect from SAP gateway to RFC server failed
Connect_PM  TYPE=A ASHOST=soanetp2:8001 SYSNR=01 GWHOST=soanetp2GWSERV=sapgw01 PCS=1
LOCATION    SAP-Gateway on host soanetp2 / sapgw01
ERROR       hostname 'soanetp2.us:8001' unknown
TIME        Fri Oct 10 15:52:43 2008
RELEASE     700
While following SAP note 947148 I found that we don't have any entry in table RSPOR_T_PORTAL
What entry it should have? The note says that there should be a prefix maintained for your portal.
Hope to solve this problem this weekend and let you all know what all steps i took.
Thanks in advance
Sonu

Similar Messages

  • Not able to save query

    Not able to save query.
    Error messagae:  An unexpected object variable or with block variable not set error occurred in WDBRLOG.
    1 ERROR(s) are logged.
    This happened when saving the query.

    hi Kunal,
    what this your bw front end version ?
    you may need to apply your bw front end support package,
    check sp level from BEx Analyzer, menu 'business explorer', somewhere 'help'->'about'
    "Execute in browser" button dimmed in WAD after upgrade to 3.5
    hope this helps.

  • We are not able to execute below procedure, plz help me ASAP.

    Dear All
    I am created one procedure with 4 parameter 1 is Ref Cusrsor rest of 3 are Varchar,But we are not able to execute below procedure, plz help me ASAP.
    CREATE OR REPLACE PROCEDURE GETCHART(RPT_CURSOR OUT RPT_PACKAGE.RPT_RESULTS,
    V_VITALCHARTING VARCHAR2,
    V_DOCIDPATIENTS VARCHAR2,
    v_fromdate varchar2,
    v_todate varchar2) AS
    D1 VARCHAR2(500);
    D2 VARCHAR2(500);
    G1 VARCHAR2(500);
    R1 VARCHAR2(500);
    R2 VARCHAR2(500);
    R3 VARCHAR2(500);
    R4 VARCHAR2(500);
    R5 VARCHAR2(500);
    H1 VARCHAR2(500);
    H2 VARCHAR2(500);
    V_COUNT NUMBER;
    RC VARCHAR2(100);
    RMI VARCHAR2(100);
    RMAX VARCHAR2(100);
    R12 VARCHAR2(500);
    REQ NUMBER;
    V_MAX number;
    v_idcount number;
    RSEQ NUMBER;
    RCH VARCHAR2(500);
    BEGIN
    INSERT INTO TEMPDATA
    SELECT ROWNUM G, TIME1
    FROM (SELECT distinct TO_CHAR(H.RECORDEDDNT, 'mm/dd/yy hh24:mi:ss') TIME1
    FROM VIEW_PATIENTCHART V,
    chartingtxheader H,
    chartingtxdetails D
    WHERE h.docid = d.docidchartingtxheader
    and v.VITALCHARTING_PK = h.docidvitalcharting
    and v.VITALPARAMETER_PK = d.docidvitalparameter
    and v.VITALCHARTING_PK = V_VITALCHARTING --General Vital Signs
    and H.DOCIDPATIENTS = V_DOCIDPATIENTS
    and TO_DATE(to_char(h.recordeddnt, 'DD/MM/YYYY'),
    'DD/MM/YYYY') BETWEEN
    TO_DATE(v_fromdate, 'DD/MM/YYYY') AND
    TO_DATE(V_TODATE, 'DD/MM/YYYY'));
    SELECT MAX(ID) INTO V_MAX FROM TEMPDATA;
    V_IDCOUNT := 0;
    WHILE V_IDCOUNT < V_MAX loop
    FOR J IN (SELECT id, ROWNUM G, vdate time1
    FROM (SELECT id, ROWNUM, VDATE
    FROM TEMPDATA
    WHERE ID BETWEEN V_IDCOUNT + 1 AND V_IDCOUNT + 8)) LOOP
    D1 := D1 || 'COL' || J.G || ',';
    D2 := D2 || '''' || J.TIME1 || '''' || ',';
    END LOOP;
    D1 := SUBSTR(D1, 1, LENGTH(D1) - 1);
    D2 := SUBSTR(D2, 1, LENGTH(D2) - 1);
    DBMS_OUTPUT.PUT_LINE(d1);
    SELECT SEQ_GETCHART.NEXTVAL INTO RSEQ FROM DUAL;
    G1 := 'INSERT INTO GETDATA2 (IDSLNO,idcount,' || D1 || ') VALUES(' || RSEQ || ',' ||
    V_IDCOUNT || ',' || D2 || ')';
    --EXECUTE IMMEDIATE G1;
    DBMS_OUTPUT.PUT_LINE(d1);
    DBMS_OUTPUT.PUT_LINE(SUBSTR(D2, 1, LENGTH(D2) - 1));
    DBMS_OUTPUT.PUT_LINE(G1);
    EXECUTE IMMEDIATE G1;
    FOR K IN (SELECT id, ROWNUM G, vdate time2
    FROM (SELECT id, ROWNUM, VDATE
    FROM TEMPDATA
    WHERE ID BETWEEN V_IDCOUNT + 1 AND V_IDCOUNT + 8)) LOOP
    FOR I IN (select s.*, rownum hslno
    from (SELECT v.CHARTNAME,
    v.PARAMETERNAME_CS,
    ' ' || v.PARAMETERNAME PARAMETERNAME,
    TO_CHAR(H.recordeddnt, 'mm/dd/yy hh24:mi:ss') TIME1,
    CASE
    WHEN IDSLNO_GN5029 IN (1040, 1041) THEN
    CASE
    WHEN TO_NUMBER(d.recordedvalue) <
    TO_NUMBER(D.MINVALUE) THEN
    decode(d.recordedvalue,
    null,
    d.recordedvalue,
    d.recordedvalue || ' ' || 'L')
    ELSE
    CASE
    WHEN TO_NUMBER(d.recordedvalue) >
    TO_NUMBER(D.MaxVALUE) THEN
    decode(d.recordedvalue,
    null,
    d.recordedvalue,
    d.recordedvalue || ' ' || 'H')
    ELSE
    decode(d.recordedvalue,
    null,
    d.recordedvalue,
    d.recordedvalue || ' ' || 'N')
    END END ELSE d.recordedvalue END IMAGECHAR,
    d.minvalue,
    d.maxvalue,
    D.UOMCODE
    FROM VIEW_PATIENTCHART V,
    chartingtxheader H,
    chartingtxdetails D
    WHERE h.docid = d.docidchartingtxheader
    and v.VITALCHARTING_PK = h.docidvitalcharting
    and v.VITALPARAMETER_PK = d.docidvitalparameter
    and v.VITALCHARTING_PK = V_VITALCHARTING --General Vital Signs
    and H.DOCIDPATIENTS = V_DOCIDPATIENTS
    ORDER BY V.DISPLAYORDER_CS, V.DISPLAYORDER
    -- v.PARAMETERNAME_CS,v.PARAMETERNAME
    ) s
    where s.time1 = k.time2) LOOP
    select count(1)
    into v_count
    from GETDATA2 d
    where d.PARAMETERNAME_CS = i.PARAMETERNAME_CS
    and PARAMETERNAME = i.PARAMETERNAME
    and idcount = v_idcount;
    IF V_COUNT = 0 THEN
    RCH := I.CHARTNAME;
    R1 := 'COL' || K.G;
    R2 := '''' || I.PARAMETERNAME_CS || '''' || ',';
    R3 := '''' || I.PARAMETERNAME || '''' || ',';
    R4 := '''' || I.IMAGECHAR || '''';
    RC := '''' || I.CHARTNAME || '''' || ',';
    RMI := '''' || I.minvalue || '''' || ',';
    RMAX := '''' || I.maxvalue || '''' || ',';
    R12 := '''' || I.UOMCODE || '''' || ',';
    SELECT SEQ_GETCHART.NEXTVAL INTO RSEQ FROM DUAL;
    H1 := 'INSERT INTO GETDATA2 (IDSLNO,UMCODE,idcount,CHARTNAME,minvalue,maxvalue,PARAMETERNAME_CS,PARAMETERNAME,' || R1 || ')' ||
    ' values(' || RSEQ || ',' || R12 || v_idcount || ',' || RC || RMI || RMAX || R2 || R3 || R4 || ')';
    EXECUTE IMMEDIATE H1;
    ELSE
    R5 := 'COL' || K.G;
    R4 := '''' || I.IMAGECHAR || '''';
    H2 := 'UPDATE GETDATA2 SET ' || R5 || '=' || R4 ||
    'WHERE PARAMETERNAME_CS=' || '''' || I.PARAMETERNAME_CS || '''' ||
    ' AND ' || 'PARAMETERNAME=' || '''' || I.PARAMETERNAME || '''';
    EXECUTE IMMEDIATE H2;
    END IF;
    END LOOP;
    end loop;
    UPDATE getdata2 s
    set s.parametername = s.parametername || ' -' || ' (' || minvalue ||
    ' -- ' || maxvalue || ') ' || UMCODE
    where s.parametername is not null
    and idcount = v_idcount
    and minvalue != 0
    and maxvalue != 0;
    UPDATE getdata2 s
    set s.parametername = s.parametername || ' -' || UMCODE
    where s.parametername is not null
    and idcount = v_idcount
    and minvalue = 0
    and maxvalue = 0;
    UPDATE GETDATA2 S
    SET S.PARAMETERNAME_CS = NULL
    WHERE ROWID NOT IN (SELECT MIN(ROWID)
    FROM GETDATA2
    WHERE idcount = v_idcount
    GROUP BY PARAMETERNAME_CS)
    and idcount = v_idcount;
    UPDATE GETDATA2 S
    SET CHARTNAME = NULL
    WHERE ROWID NOT IN (SELECT MIN(ROWID)
    FROM GETDATA2
    WHERE idcount = v_idcount
    GROUP BY CHARTNAME)
    and idcount = v_idcount;
    UPDATE getdata2 s
    set s.parametername = ' PARAMETER'
    where s.parametername is null
    AND S.PARAMETERNAME_CS IS NULL;
    v_idcount := v_idcount + 8;
    D1 := null;
    d2 := null;
    end loop;
    for i in (SELECT G.PARAMETERNAME_CS, G.IDSLNO
    FROM GETDATA2 G
    WHERE G.PARAMETERNAME_CS IS NOT NULL) LOOP
    INSERT INTO GETDATA2
    (IDSLNO, PARAMETERNAME)
    VALUES
    (I.IDSLNO - 1 + 0.5, I.PARAMETERNAME_CS);
    END LOOP;
    update GETDATA2 h set h.PARAMETERNAME_CS = null;
    update GETDATA2 h set h.chartname = rcH;
    INSERT INTO GETDATA1
    SELECT CHARTNAME,
    PARAMETERNAME_CS,
    PARAMETERNAME,
    COL1,
    COL2,
    COL3,
    COL4,
    COL5,
    COL6,
    COL7,
    COL8,
    COL9,
    COL10,
    MINVALUE,
    MAXVALUE,
    UMCODE
    FROM GETDATA2
    ORDER BY IDSLNO;
    OPEN RPT_CURSOR FOR
    SELECT * FROM GETDATA1;
    END;
    CREATE OR REPLACE PACKAGE "RPT_PACKAGE"
    as
    type RPT_RESULTS is REF CURSOR;
    type RPT_VARRAY is VARRAY(2000) of VARCHAR2(2000);
    END RPT_PACKAGE;
    Execute
    declare
    type my_newcursor IS REF CURSOR;
    begin
    GETCHART(my_newcursor,'General Vital Sign','1145561',sysdate-1,sysdate);
    end;

    Parwez wrote:
    Dear All
    I am created one procedure with 4 parameter 1 is Ref Cusrsor rest of 3 are Varchar,But we are not able to execute below procedure, plz help me ASAP.
    see a picture of my car.
    my car won't go.
    tell me how to make my car go.
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • Not able to execute scenario in RA 14.0

    Problem Summary
    Not able to execute scenario in RA 14.0 
    Problem Description
    [oracle@dev-rtlrmadb src]$ ./SIL_RetailLoadControlSeedData.ksh
    OracleDI: Starting scenario SIL_RETAILLOADCONTROLSEEDDATA 001 in context DEVELOPMENT_INSTALL ...
    2015-02-08 12:01:01.026 ERROR ODI-1217 Session SIL_RETAILLOADCONTROLSEEDDATA (20404) fails with return code 7000.
    2015-02-08 12:01:01.099 ERROR ODI-1134 Agent Internal encountered an error: ODI-1217: Session SIL_RETAILLOADCONTROLSEEDDATA (20404) fails with eturn code 7000. Caused by: ODI-1226: Step RA_Log_Error_File fails after 1 attempt(s).
    When checking in $MMHOME/error directory , the log is showing following error :- 
    Package Name-> SIL_RETAILLOADCONTROLSEEDDATA
    Step Name-> SIL_RetailInitial_C_ODI_PARAM_Load
    Error Details->
    ODI-1226: Step SIL_RetailInitial_C_ODI_PARAM_Load fails after 1 attempt(s).
    ODI-1240: Flow SIL_RetailInitial_C_ODI_PARAM_Load fails while performing a Loading operation. This flow loads target table C_ODI_PARAM.
    ODI-1228: Task SS_0 (Loading) fails on the target ORACLE connection ORACLE_BI_APPLICATIONS_RA_INSTALL.
    Caused By: java.sql.SQLSyntaxErrorException: ORA-01918: user 'radm01' does not exist
    DB user exists. I'm able to login via sqlplus.   Have checked in Physical schema and Logical schema also. All required Data Servers exeists in Topology -> physical / locical schema-> oracle. and tested the connection every thing is working properly.
    Error Codes
    ODI-1226  , ODI-1240 , ODI-1228 , ODI-1217 , ODI-1134 , ODI-1232
    Problem Category/Subcategory
    Retail Merchandising Analytics Issues
    Uploaded Files
    Template Question Responses
    1) ### Steps to Reproduce ###
    Go to $MMHOME/src .
    Execute the   ./SIL_RetailLoadControlSeedData.ksh  from prompt.    This gives the mentioned error.
    I'm currently configuring Oracle Merchandising Analytics 14.0  . Referring guide  " Oracle® Retail Analytics Installation Guide Release 14.0 E50594-05 ".
    I'm at step number 11 , 
    page no 58.

    Please help. Its urgent.

  • I am not able to execute the transport.send(message)

    I am not able to execute the transport.send(message) when trying for sending mail. I am getting error like this : -
    javax.mail.SendFailedException: Sending failed;  nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 10.175.80.50, port: 25;  nested exception is: java.net.ConnectException: Connection timed out: connect
    Please help me on this to resolve this issue asap. thanks

    Hi Vinod,
    public void SendMail( )
        //@@begin SendMail()
              // Specify the host name of the mail server
              String host ="----
              IWDMessageManager messageMgr = wdControllerAPI.getComponent().getMessageManager();
              // Initialize Session
              Properties props = System.getProperties();
              props.put("mail.smtp.host", host);
              props.put("mail.smtp.auth", "true");
              Authenticator auth = new Auth();
              Session session = Session.getInstance(props, auth);
              // Create new MimeMessage
              MimeMessage message = new MimeMessage(session);          
              try
                    // Set the From Address
                    String from = wdContext.currentContextElement().getCtx_From();
                   message.setFrom(new InternetAddress(from));
                   //  Set the To Address
                   String to = wdContext.currentContextElement().getCtx_To();     
                   Address ar[] = new Address[1];
                   ar[0] = new InternetAddress(to);
                   message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
                   // Set the Subject
                   message.setSubject(wdContext.currentContextElement().getCtx_Subject());
                   //  Set the Text               
                   message.setText(wdContext.currentContextElement().getCtx_Text());            
                   Transport tr = session.getTransport("smtp");
                   tr.connect("Put again here Host Name", Port Noumber, "userid", "password");               
                   tr.sendMessage(message, ar);
              }catch (AuthenticationFailedException e){
                   messageMgr.reportException(e.toString(),false);
              }catch (AddressException e)     {
                   messageMgr.reportException(e.toString(),false);
              } catch (MessagingException e) {
                   messageMgr.reportException(e.toString(),false);
              }catch (Exception e){
                   messageMgr.reportException(e.toString(),false);
        //@@end
    And also create the class Auth() like
    public class Auth extends Authenticator {
         public PasswordAuthentication getPasswordAuthentication()
              String username = "userID";
              String password = "Passwod";     
              return new PasswordAuthentication(username,password);     
    Please check it i think i will work. Also please use constant value for the to, from, subject and text.

  • Could not able to execute FTP commands in windows server machines 2012/ windows server 2008.

    Could not able to execute FTP commands in windows server machines 2012/ windows server 2008.
    From windows server 2012 and windows server 2008, Opened port 20,21,22 in firewall bidirectionally. After Establishing connection by passing credentials  230 log in  successful.
    ftp commands executing getting as " 425 Use Port or PASV first" , "500 Illegal PORT command".
    But I could able to do windows client machines like windows 7 and windows 8 with same environment
    Note : Firewall ports are opened.  have tested by making firewall down to avoid filters. 
    Pandiyan Muthuraman

    Hi Pandiyan Muthuraman,
    Did you mean even you disable or open the related port the FTP issue still exist? I found this errors most time occur when we use the ISA firewall and the FTP configured passive
    mode, if you have ISA firewall please refer the following KB to fix this issue.
    How to enable passive CERN FTP connections through ISA Server 2000, 2004, or 2006
    http://support.microsoft.com/kb/300641
    The have a specific form for the IIS question, if you have the further IIS related question you can ask in IIS forum.
    IIS support forum
    http://forums.iis.net/
    Thanks for your understanding and support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Crystal reports 2013 , SAP MDX Driver not able to connect with BW BEX Query

    Hi All,
    We just installed Crystal 2013, and want to create crystal report on SAP BW CUBE/BEX Query through SAP MDX Driver.
    1.When start connecting through SAP MDX Query option from new connection , SAP Systems which are in SAPLOGON are not appearing in initial screen. where as from OLAP Connection we are able to connect to SAP BEX Query.
    2.Even from SAP Tool kit we are not able to connect to BEX query, we are getting ERROR MESSAGE.
    and we are using SAP BI BO PLATFORM 4.1 sp01 .
    Please suggest me , if I am missing any configuration settings.
    Regards,
    Joseph

    Hi Joseph,
    Before you start building the report, make sure the right transports have been loaded on the SAP System. The right Transport files are the ones found inside the installation zip you download from SAP's server. They're under the "Collaterals\Add-Ons\SAP\Transports" folder.
    For more info on Transports, authorizations etc, please have your BASIS admin go through this wiki:
    Crystal Reports 2008 and BW - Installation and Configuration - Business Intelligence (BusinessObjects) - SCN Wiki
    To resolve your first issue, please follow the steps from this thread:
    Problems with SAPLogon.ini for SAP GUI and Crystal 2011
    P.S: Crystal Reports for Enterprise 4.1 does a better job at handling BEx queries that the CR 2013 designer. It directly connects to BEx queries via the BICS connectivity driver and doesn't need the Transports to be there on the SAP System. You might want to give this flavour of CR a try too.
    -Abhilash

  • Error while executing query in BEX

    Hi All,
    I am experiencing an issue while executing query on FIAR_C03.
    "Abort No Values could be determined for variable 0P_FVAEX
    Error specify a value for 0P_FVAEX
    Abort system error in program SAPLRRKO and form APPEND_KHANDLE_1-01-
    I had searched SDN forums and found the similar error which is inculded in the below link:
    Bex Variable
    However, the solution specified is only for a particular 3 queries. Also the solution is that the 3 queries(Which are having errors) are replaced by another 3 queries.
    Can anybody help us in this regard.
    Regards
    YJ

    hi JY,
    try 858477 steps for other 'infected' webtemplates ?
    try implement correction in 660514 ?
    (also search other notes with keyword 0P_FVAEX
    e.g 585202)
    hope this helps.

  • Not able to change query definition

    I am working with BI 7.0.
    In 3.5 I can change the query definition from the display results (Excel) of the query run, but from BI 7.0 I am not able to make changes to the query definition from the query displayed results. Is there an easy and quick way to do this? I would have to go to the Tools->Create new query and change the query from there.

    Hi,
    When you run the query in BI Analyser, you have a 'Tools' button in the BEx Analysis Toolbox; when you click on it, you will get an 'Edit Query' option which will directly open your query definition. You can modify your query now and run it again from there back in excel.
    Please note that for getting this option, your query must be running and the cursor must be placed on some cell of the query.

  • Not able to view query output due to Proxy Encountered Error.

    <b>Dear Forum Members,</b>
    Please help me solve this issue :
    1. While opening Bex Explorer,
    2. Got connected to BIW DEV Server
    3. Clicked on a Query
    4. I get " Proxy Encountered Error".
    Our Networking team tried to access the link outside the proxy settings and they are not able to open the URL outside the proxy.
    They tried assigning the BW Dev Server IP address to the host ip address in c:\windows\system32\drivers\etc\host
    but still we are facing the same problem...
    Your valuable suggestions are welcome....
    Thanking you in advance....
    <b>Regards,
    Vijayalakshmi.</b>

    Welcome to SDN.
    In your borwser (IE?) go to tools->internet options->connections->lan settings->advanced and specify your bwhost.domain.com:port in the box for "Do not use proxy server for addresses begins with)
    Regards
    Raja

  • Not able to execute startEclipse.bat file in Eclipse (Oracle utilities SDK)

    In Eclipse installation, i am not able to run "startEclipse.bat" file in this path "C:\SPLSDK\SDK\shortcuts" which comes under Oracle Utilities Software Development Kit 4.0.0.
    once i start installing startEclipse.bat, i get a error message "windows cannot find /eclipse.exe, make sure you typed correctly and try again"
    and how do i find the eclipse.exe on the installables? also in error message it shows backslash "/"eclipse.exe while executing "startEclipse.bat" file.
    jdk and hibernate paths are located in "c:\spl". Is that fine?
    And When I click “eclipse” in this path “C:\SPLSDK\SDK4.0.0.4\eclipse\eclipse-jee-galileo-SR2-win32\eclipse”, I get error "java runtime or jdk should be available in order to run eclipse. and no JVM was found after searching for the folder "C:\SPLSDK\SDK\4.0.0.4\_jvm\bin\javaw.exe" ". I have installed Jdk in “C:\spl\jdk1.6.0_18”. And to install Eclipse, should I change the path of installing jdk to support Eclipse installation?
    what could be the reason?
    Please give me suggession that how to install eclipse?
    Regards
    Vijaya

    Please help. Its urgent.

  • Not able to process query in workspace.

    Hi guys,
    I am new to Hyperion, I created a sample report and published it in the workspace.
    I also published an OCE and used it while publishing the report. I am able to open the report, but I am not able to process the query in workspace?
    Can you guys please help me?
    Regards

    No I am not using the web client, I am just using the thin client iHTML alone.
    I am not able to find the right log file for it, to see where things going wrong

  • Not able to optimize query

    Hello,
    I am working on one query but not able to optimize on that query after working for 2-3 days.
    Can anyone please help?
    SELECT x7_0.keypowermarketentity,
    x1_0.plantmonthlyasofyear,
    x1_0.plantmonthlyasofmonth,
    x0_0.plantownerperiodasof,
    x0_0.unitcapacitysummernet,
    x0_0.unitcapacitywinternet,
    x3_0.mappingoverlap,
    x2_0.keyunitoperatingext,
    x2_0.powerplantunitserviceyear,
    x2_0.powerplantunitservicemonth,
    x2_0.powerplantunitretireyear,
    x2_0.powerplantunitretiremonth,
    x4_0.unitcapacityasof,
    x5_0.unitcapacityasof,
    x4_0.unitcapacitysummernet,
    x4_0.unitcapacitywinternet,
    x1_0.futuresyear,
    x1_0.keyfuelcontracttype,
    x1_0.fuelcontractcoal,
    x1_0.fuelcontractcoalprice,
    x1_0.coalburnedheat,
    x1_0.fuelcontractgas,
    x1_0.fuelcontractgasprice,
    x1_0.gasburnedheat,
    x1_0.fuelcontractoil,
    x1_0.fuelcontractoilprice,
    x1_0.oilburnedheat,
    x9_0.keycoalproducingregionparent,
    x2_0.keypowerplantunit
    FROM Adw.dbo.powerplantannual x0_0
    INNER JOIN energy.dbo.electricfuelcontract x1_0
    ON ( x0_0.annualization = 12
    AND ( x1_0.plantmonthlyasofmonth = (
    Month(x0_0.plantownerperiodasof) )
    AND ( x1_0.plantmonthlyasofyear = (
    Year(x0_0.plantownerperiodasof) )
    AND x0_0.keypowerplant =
    x1_0.keypowerplant ) ) )
    INNER JOIN Adw.dbo.powerplantunit x2_0
    ON x1_0.keypowerplant = x2_0.keypowerplant
    INNER JOIN Adw.dbo.unitnercsubregion x3_0
    ON x2_0.keypowerplantunit = x3_0.keypowerplantunit
    INNER JOIN Adw.dbo.unitcapacitystatus x4_0
    ON x2_0.keypowerplantunit = x4_0.keypowerplantunit
    LEFT JOIN Adw.dbo.unitcapacitystatus x5_0
    ON ( x5_0.keyunitcapacitychangestatus = 1
    AND x4_0.keyunitcapacitystatus =
    x5_0.keyunitcapacitystatusprior )
    AND x5_0.updoperation < 2
    INNER JOIN lookup.dbo.nercsubregion x6_0
    ON x3_0.keynercsubregion = x6_0.keynercsubregion
    INNER JOIN calcs.dbo.powermarketentity x7_0
    ON x6_0.keynercregion = x7_0.keynercregion
    LEFT JOIN Adw.dbo.mine x8_0
    ON x1_0.keymine = x8_0.keymine
    AND x8_0.updoperation < 2
    LEFT JOIN lookup.dbo.coalproducingregion x9_0
    ON x9_0.keycoalproducingregion = (
    Isnull(x8_0.keycoalproducingregionprimary, 1) )
    AND x9_0.updoperation < 2
    WHERE ( x2_0.keyunitoperatingext IN ( 1, 3, 4, 9 )
    AND ( ( x3_0.mappingended IS NULL
    OR x3_0.mappingended > x0_0.plantownerperiodasof )
    AND ( x3_0.mappingbegun <= x0_0.plantownerperiodasof
    AND ( x7_0.keypowermarketentity = 0
    AND ( x1_0.plantmonthlyasofyear = 2010
    AND ( x4_0.keyunitcapacitychangestatus = 1
    AND ( x3_0.keynercsubregion NOT IN (
    114, 115, 117, 112,
    111, 116, 110, 109,
    118, 83, 91 )
    AND x7_0.keynercregion IS NOT NULL
    AND x0_0.updoperation < 2
    AND x1_0.updoperation < 2
    AND x1_0.appstatus = 2
    AND x2_0.updoperation < 2
    AND x3_0.updoperation < 2
    AND x4_0.updoperation < 2
    AND x6_0.updoperation < 2
    AND x7_0.updoperation < 2
    ORDER BY x0_0.keypowerplant,
    x1_0.plantmonthlyasofyear,
    x1_0.plantmonthlyasofmonth,
    x1_0.keyfuelcontracttype,
    x9_0.keycoalproducingregionparent
    SQL Server parse and compile time: 
       CPU time = 0 ms, elapsed time = 0 ms.
     SQL Server Execution Times:
       CPU time = 0 ms,  elapsed time = 0 ms.
    SQL Server parse and compile time: 
       CPU time = 1716 ms, elapsed time = 1746 ms.
    (180795 row(s) affected)
    Table 'CoalProducingRegion'. Scan count 1, logical reads 2, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'Mine'. Scan count 5, logical reads 295, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'PowerMarketEntity'. Scan count 0, logical reads 2, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'UnitNERCSubRegion'. Scan count 2, logical reads 39, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'NERCSubRegion'. Scan count 1, logical reads 2, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'PowerPlantUnit'. Scan count 5, logical reads 454, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'ElectricFuelContract'. Scan count 4755, logical reads 20758, physical reads 0, read-ahead reads 11, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'Workfile'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'UnitCapacityStatus'. Scan count 10, logical reads 2156, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'PowerPlantAnnual'. Scan count 180795, logical reads 639534, physical reads 0, read-ahead reads 12, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
    (1 row(s) affected)
     SQL Server Execution Times:
       CPU time = 40376 ms,  elapsed time = 80588 ms.
    SQL Server parse and compile time: 
       CPU time = 0 ms, elapsed time = 0 ms.
     SQL Server Execution Times:
       CPU time = 0 ms,  elapsed time = 0 ms.

    There is some lousy nested loops in one of the joined tables slowing the process down (ElectricFuelContract). Is parallelism enabled? If not, enable it. It should change the physical algorythm to hash match.
    Someone is going to ask you for the DDL statements to create all the data structures required to run your query, which you'll respond in an hour or so. This will improve the chances of having someone rewrite your query considerably.
    A few hours later, just before this thread has an answer marked, some ancient legend is going to come around and give you a few advices on naming conventions he'll probably just copy-paste from one of his books. Do what you will with it.
    Just because there are clouds in the sky it doesn't mean it isn't blue. But someone will come and argue that in addition to clouds, birds, airplanes, pollution, sunsets, daltonism and nuclear bombs, all adding different colours to the sky, this
    is an undocumented behavior and should not be relied upon.

  • Not able to execute for loop in korn shell

    #!/usr/bin/ksh
    #: notify_po.ksh
    # Description: Script sends out the email notification to PO mail box
    # History:
    . /homes/applidcc/.appsprofile
    . /homes/applidcc/set_forms.env
    . /homes/applidcc/external.env po_recv
    EMAIL=EMAIL_ADDRESS1=[email protected] EMAIL_ADDRESS2=[email protected]
    $ print $EMAIL
    for emails in $EMAIL;do
    echo $EMAIL
    done
    exit 0
    Above script echo value EMAIL_ADDRESS1=[email protected]
    it is not looping means not able to get second value.

    # EMAIL="EMAIL_ADDRESS1=[email protected] EMAIL_ADDRESS2=[email protected]"
    # for emails in $EMAIL;do
    echo $emails
    doneEMAIL_ADDRESS1=[email protected]
    EMAIL_ADDRESS2=[email protected]
    #Message was edited by:
    Paul M.
    Next time you may want to post a similar issue on Linux forum. Thanks.

  • PLS-00201: Not able to execute Oracle Package through Java app

    Hi,
    My struts application is trying to execute an oracle procedure (in a package) and is getting following error.
    I have granted execute priveledge to the user using "Grant execute on <package name> to <user>"
    Also, I am able to execute the procedure through this user in sqlplus.
    I am using Oracle thin driver for JDBC.
    Please guide.
    +06:36:17,500 ERROR [STDERR] java.sql.SQLException: ORA-06550: line 1, column 7:+
    PLS-00201: identifier 'uhbvn_public.GENSYSLOGIN' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2047)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2709)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:589)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:656)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.execute(WrappedPreparedStatement.java:209)+
    +06:36:17,500 ERROR [STDERR] at wenrgise.ejb.common.utility.DBUtilitiesBean.callProc(DBUtilitiesBean.java:390)+
    +06:36:17,500 ERROR [STDERR] at wenrgise.sysadmin.ejb.business.SysLoginBO.getSysLoginUserInfo(SysLoginBO.java:57)+
    +06:36:17,500 ERROR [STDERR] at wenrgise.sysadmin.ejb.facade.SysLoginFacadeBean.getLoginInfo(SysLoginFacadeBean.java:37)+
    +06:36:17,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
    +06:36:17,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)+
    +06:36:17,500 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)+
    +06:36:17,500 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:592)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:960)+
    +06:36:17,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
    +06:36:17,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)+
    +06:36:17,500 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)+
    +06:36:17,500 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:592)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)+
    +06:36:17,500 ERROR [STDER+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

    What part of
    identifier 'uhbvn_public.GENSYSLOGIN' must be declareddon't you understand?

Maybe you are looking for