Calc procedure help require

hi all,
i m using oracle 9i and oracle developer suite 6i for building reports
i have written a procedure that will do the calculation
PROCEDURE calc IS
TALLOW NUMBER;
TTAKEN NUMBER;
TPROFIT NUMBER;
TLOSS NUMBER;
BEGIN
     SELECT TIMEALLOWED,TIMETAKEN INTO TALLOW,TTAKEN FROM PRTEMPINCENT;
     TPROFIT:=ROUND((GREATEST((ROUND(TALLOW,2) - ROUND(TTAKEN,2)),0)/ROUND(TTAKEN,2)) * 100,2);
     TLOSS:=ROUND((ABS(LEAST((ROUND(TALLOW,2) - ROUND(TTAKEN,2)),0))/ROUND(TTAKEN,2)) * 100,2);
     INSERT INTO PRTEMPINCPL(CARDCODE,JOBCARDNO,SHOP,TIMEALLOWEDHRS,TIMETAKENHRS,
                          TIMESAVED,TIMELOST,PROFIT,LOSS,REMARKS)
                          SELECT '5',JOBCARDNO,SHOP,TIMEALLOWED,TIMETAKEN,TIMESAVED,TIMELOST,TPROFIT,TLOSS
       DECODE(SIGN(TIMEALLOWED - TIMETAKEN),1,'ABN.PRFT',-1,'LOSS')
FROM PRTEMPINCENT
WHERE ((PAYPERIOD= :P_1
AND  (TIMETAKEN )>( TIMEALLOWED ))
OR((TIMEALLOWED )>(TIMETAKEN )AND(((TIMEALLOWED )  -  
(TIMETAKEN )  )
/(TIMETAKEN)*100)>50));
END;this code fetch the timeallowed and timetaken from the prtempincent table, does the calculation and then i want to insert them to another table and show them in report
i call this procedure in after paramenter function of report
but i gives me error ora-1422 extract fetch more then require number of rows
wht modification should i do in the following procedure that i fetch record on by one and then insert in the other table
Regards
Abhi

HI Manu,
thanks for your reply
well i just modified my procedure to my need
PROCEDURE calc IS
TALLOWHRS NUMBER;
TTAKENHRS NUMBER;
TTAKENMINS NUMBER;
TALLOWMINS NUMBER;
TCLOCKHRS NUMBER;
TCLOCKMINS NUMBER;
TALLOW NUMBER;
TTAKEN NUMBER;
TSAVED NUMBER;
TLOST NUMBER;
BTTAKEN NUMBER;
CURSOR Cur_Cursor IS SELECT C.TIMEALLOWEDHRS,C.TIMEALLOWEDMINS,C.TIMETAKENHRS,C.TIMETAKENMINS,A.TIMECLOCKEDHRS,A.TIMECLOCKEDMINS,B.TIMETAKEN
FROM PRTRINCH C,PRTRINCG A,PRTRINCE B;
BEGIN
     OPEN Cur_Cursor;
      FETCH Cur_Cursor INTO TALLOWHRS,TALLOWMINS,TTAKENHRS,TTAKENMINS,TCLOCKHRS,TCLOCKMINS,BTTAKEN;
      CLOSE Cur_Cursor;
TALLOW:=TO_NUMBER ( FLOOR ((((TALLOWHRS*60+TALLOWMINS)/(TTAKENHRS*60+TTAKENMINS))*
(TCLOCKHRS*60+TCLOCKMINS)) / 60)) || ':'|| TO_NUMBER ( MOD ((((TALLOWHRS*60+TALLOWMINS)/(TALLOWHRS*60+TALLOWMINS))*
(TCLOCKHRS*60+TCLOCKMINS)), 60), 'FM00');     
TTAKEN:=TO_CHAR( FLOOR (BTTAKEN / 60)) || ':'|| TO_CHAR ( MOD (BTTAKEN, 60), 'FM00');
TSAVED:=      greatest(TO_NUMBER ( FLOOR (((((TALLOWHRS*60+TALLOWMINS)/(TTAKENHRS*60+TTAKENMINS))*(TCLOCKHRS*60+TCLOCKMINS))-
   (TCLOCKHRS*60+TCLOCKMINS))/ 60)) || ':'||
   TO_NUMBER ( MOD (((((TALLOWHRS*60+TALLOWMINS)/(TTAKENHRS*60+TTAKENMINS))*(TCLOCKHRS*60+TCLOCKMINS))-
   (TCLOCKHRS*60+TCLOCKMINS)), 60), 'FM00'),0);
TLOST:=  greatest(TO_NUMBER ( FLOOR (((TCLOCKHRS*60+TCLOCKMINS)-(((TALLOWHRS*60+TALLOWMINS)/(TTAKENHRS*60+TTAKENMINS))*
(TCLOCKHRS*60+TCLOCKMINS)))  / 60)) || ':'
                        || TO_NUMBER ( MOD (((TCLOCKHRS*60+TCLOCKMINS)-(((TALLOWHRS*60+TALLOWMINS)/(TTAKENHRS*60+TTAKENMINS))*
(TCLOCKHRS*60+TCLOCKMINS))) , 60), 'FM00'),0);
INSERT INTO PRTEMPINCENT(JOBCARDNO,CARDCODE,SHOP,TICKETNO,TIMEALLOWED,TIMETAKEN,TIMESAVED,TIMEWORKED,ALLOCATION,TIMELOST,PAYPERIOD)
                (select distinct b.jobcardno,'5',b.SHOP,a.TICKETNO,TALLOW,TTAKEN,TSAVED,0,C.WORKORDERNO,TLOST,:P_1
                                         from prtrincg a,prtrince b,prtrinch c
                            where b.payperiod = :P_1
                              and b.jobcardno = a.jobcardno(+)
                              and b.shop = a.shop(+)
                             --and b.ticketno = a.ticketno(+)
                              and c.jobcardno = b.jobcardno(+)
                              and c.shop = b.shop(+)
                              and a.empno=b.empno
                              and b.filename = 'PRTRINCG');
END;kindly see it and tell me is it ok?? when i m running my report its giving me ora-6502 error pl/sql numeric or value error
can u say me wht i m doing wrong??
Regards
Abhi

Similar Messages

  • Storing the values from a procedure - help required

    Hi All,
    I am having a package which consists of two procedures.
    Both the procedures need to calculate 6 averages of some of my fields based on unique number.
    (These two procedures process different unique numbers).
    Now, as same code is implemented in the two procedures for calculation,
    I want to move the logic into another procedure/function, with IN parameter as the unique number.
    Now how can I get these 6 values from the procedure.
    If I use OUT parameters, how can I get the values inside the procedure.
    Please suggest me a solution.
    Thanks in advance.
    Regards
    Raghunadh

    Example of pipelined function...
    SQL> CREATE OR REPLACE TYPE myrec AS OBJECT
      2  ( col1   VARCHAR2(10),
      3    col2   VARCHAR2(10)
      4  )
      5  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE TYPE myrectable AS TABLE OF myrec
      2  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE FUNCTION pipedata(p_str IN VARCHAR2) RETURN myrectable PIPELINED IS
      2    v_str VARCHAR2(4000) := REPLACE(REPLACE(p_str, '('),')');
      3    v_obj myrec := myrec(NULL,NULL);
      4  BEGIN
      5    LOOP
      6      EXIT WHEN v_str IS NULL;
      7      v_obj.col1 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
      8      v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
      9      IF INSTR(v_str,',')>0 THEN
    10        v_obj.col2 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
    11        v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
    12      ELSE
    13        v_obj.col2 := v_str;
    14        v_str := NULL;
    15      END IF;
    16      PIPE ROW (v_obj);
    17    END LOOP;
    18    RETURN;
    19  END;
    20  /
    Function created.
    SQL>
    SQL> create table mytab (col1 varchar2(10), col2 varchar2(10));
    Table created.
    SQL>
    SQL> insert into mytab (col1, col2) select col1, col2 from table(pipedata('(1,2),(2,3),(4,5)'));
    3 rows created.
    SQL>
    SQL> select * from mytab;
    COL1       COL2
    1          2
    2          3
    4          5Although I'm not sure you necessarily need to do it this way. Could you show us the code you are using and more details of what you are trying to do?

  • JDBC Stored procedure help required

    Hi All,
    Please let me know simple blogs how to use JDBC Stored procedure or any other method  in receiver jdbc adapter to insert or select in 2 tables
    Please  let me know simple blogs how to use JDBC Stored procedure or any other method  in sender jdbc adapter to select from 2 tables
    Thanks

    Hi,
    I am also looking for JDBC Stored procedure or any other method in sender jdbc adapter to select data from 2 tables
    Thanks

  • Simple Pricing Procedure Help Required

    I am using following for sales order pricing.
    Conditions Types:
    PR00 for base price
    HA00 for % Discount
    HB00 for Fixed Discount (Value discount)
    MWST for Sales Tax
    Formulas:
    HA00 is calculated (minus) from PR00
    HB00 is calucated (minus) from PR00
    MWST is calculated from total discounted amount (PR00 - HA00 - HB00)
    Pricing Procedure
    Step ........Ctype........desc................from.....to........reqt........bastype........acckey
    10........pr00
    20........ha00....................................10
    30........hb00....................................20
    35................discounted Amount.......20.......30
    40........MWST.................................35..................10..............16..............MWS
    Issues
    1) in sales order, the condition type hb00 has amount 15, but it shows 0 under condition value column
    2) how can i calculated the total Customer A/R Value i.e. discounted amount + MWST

    HB00 is fixed discount and in your pricing procedure you have assigned step no 20 agaist HB00 that means you are offering  fixed discount HB00 to HA00 for % Discount (because step no is HA00) and that is wrong
    A discount is offered on another discount
    Change HB00 from as step 10 from the original 20 (because step is PR00 which is base price and that deserves discount)
    It should look like this
    Pricing Procedure
    Step ........Ctype........desc................from.....to........reqt........bastype........acckey
    10........pr00
    20........ha00....................................10
    30........hb00....................................10........
    35................discounted Amount.......20.......30
    40........MWST.................................35..................10..............16..............MWS
    Make the changes and post back
    Regards
    Raja

  • Guided procedures-help required

    Hi,
    I have deployed some updated content in guided procedures. (Deleted the entire ORGINAL content even from the deleted items folder).The problem is other processes have disappeared strangely(folder names are missing the content inside the folder is present) .
    Although i did not make any changes in those folders, the folder names are not appearing strangely.
    Does the problem lie with deployment of content through SDM(i deployed all .sda files in one go) or any other issue.
    Do i need to roll back the changes?
    Please suggest.
    Regards,
    Subodh

    Hi David,
    Assuming that they are actually blocks in a process (I do not see other possibility of actually handling two different processes instead of two blocks in a process, but I will confirm with the person who brought the issues to my notice), is it possible to specify exit condition for one block that also depends on the exit condition of second block? That means even if the exit condition of one block is met, can it wait for the second block's exit condition?
    In BPM we have Fork step where I can specify parallel branches and design the process such that it runs through certain number of branches. Is anything available like this in GP? Can you please provide any documentation which explains the parallel block handling in GP?  As I mentioned in my other response, I am familiar with BPM, but never used GP.
    Thank you very much.

  • Pricing Error (help required)

    Is there any routine which includes the tax value in R100 as well ,currently  the problem is that the 100% Discount condition is only including the net price
    And in the pricing procedure i m using two prices one price of tax calculation and the other is consumer price first i calculate the tax from base price then i deduct the tax from the consumer price this calculation is working fine through standard routines.
    Only problem is that when i enter NRAB and R100 at end it only includes Net Value which is calculated through Formual using condition type NTPS
    Kindly Help Required ASAP

    Hi ABAPAR,
    I m not getting the exact picture of what U desired, from your pricing procedure.
    As you r using multiple free goods condition type...anyway.
    If you wanted to make the calculated tax "amount + "as a basis for the calculation of particular condition type.you can use the functionality of subtotal.
    That mean go and assign one subtotal no. to subtotal column in your pricing procedur to all condition type to which you wanted to make as a basis for furthur calculation.(this settings allow the total of all values in one subtotal).
    And finally U can assign this subtotal no.to the "alt.cal.B.value "of pricing procedure for the calculation of particular condition type.
    If you r using any std condion type that come up with certain routine like NRAB or somthing...possibly that will not allow u to do this settings. so in this case clear your free goods requirement or use any new condition type. i.e . Z creation.
    consult your SD consultant.
    karnesh

  • Youtube not opening in Safari browser. However it works with google browser. There is a red arrow coming, with https in you tube, and the page just does not open. help required.

    youtube not opening in Safari browser. However it works with google browser. There is a red arrow coming, with https in you tube, and the page just does not open. help required.
    It seems I have done some mistake when you tube was open, and i stopped one site to delete!
    From then on it is not working.
    Any solutions?
    GV Joshi

    Hi gajanan vasant!
    I have a couple of articles for you that should help you troubleshoot your issue with Safari. First, you may want to try a reset on Safari by following the procedure listed in this article:
    Safari 5.1 (OS X Lion): Reset Safari
    http://support.apple.com/kb/PH5043
    If you are still having issues after resetting Safari, you may want to check out this article about third-party add-ons in Safari:
    Safari: Unsupported third-party add-ons may cause Safari to unexpectedly quit or have performance issues
    http://support.apple.com/kb/TS3230
    Thanks for using the Apple Support Communities!
    Regards,
    Braden

  • XSLT mapping Help Required.

    XSLT mapping Help Required.
    Hi Experts,
    I am New to XSLT Mapping. I am practising the below Example:
    InputXML File:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="Persons111.xsl"?>
    <ns0:MT_XSLT_Source xmlns:ns0="http://XYZ.com/gen">
    <Person>
    <FirstName>Anshul</FirstName>
    <LastName>Chowdhary</LastName>
    <Gender>Male</Gender>
    <Address>
    <Street>2nd Main</Street>
    <Houseno>83/b</Houseno>
    <City>Mysore</City>
    </Address> </Person>
    </ns0:MT_XSLT_Source>
    XSL StyleSheet File:
    <?xml version='1.0' encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://XYZ.com/Gen"
    Xmlns:ns1=”http://XYZ.com/Test”>
    <xsl:template match="/">
    <ns1:MT_XSLT_Target>
    <Title> <xsl:value-of select="ns0:MT_XSLT_Source/Person/Gender"/> </Title>
    <Name> <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/FirstName,' '), ns0:MT_XSLT_Source/Person/LastName)"/>
    </Name>
    <Street> <xsl:value-of select="concat(concat(ns0:Mt_XSLT_Source/Person/Address/Houseno,' '),
    ns0:Mt_XSLT_Source/Person/Address/Street)"/> </Street>
    <City> <xsl:value-of select="ns0:Mt_XSLT_Source/Person/Address/City"/> </City>
    </ns1:MT_XSLT_Target>
    </xsl:template>
    </xsl:stylesheet>
    The Desired Output shuold be:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_XSLT_Target xmlns:ns1="http://XYZ.com/Test">
    <Title>Male</Title>
    <Name>Anshul Chowdhary</Name>
    <Street>83/b 2nd Main</Street>
    <City>Mysore</City>
    </ns1:MT_XSLT_Target>
    I have refered the xsl in xml and i am getting the below Oupt in a Single line like this:
    Anshul Chowdhary Male 2nd Main 83/b Mysore
    I am Unable to display in Target XML Fomrat as shown above. Please check and do the needful.
    Regards,
    GIRIDHAR

    Hi,
    I have used below for testing.
    Input xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="Persons111.xsl"?>
    <ns0:MT_XSLT_Source xmlns:ns0="http://XYZ.com/gen">
    <Person>
    <FirstName>Anshul</FirstName>
    <LastName>Chowdhary</LastName>
    <Gender>Male</Gender>
    <Address>
    <Street>2nd Main</Street>
    <Houseno>83/b</Houseno>
    <City>Mysore</City>
    </Address> </Person>
    </ns0:MT_XSLT_Source>
    xsl code:
    <?xml version='1.0' encoding="UTF-8"?> 
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://XYZ.com/gen" 
        xmlns:ns1="http://XYZ.com/Test"> 
        <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> 
        <xsl:template match="/"> 
            <ns1:MT_XSLT_Target> 
                <Title> <xsl:value-of select="ns0:MT_XSLT_Source/Person/Gender"/> </Title> 
                <Name> <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/FirstName,' '), ns0:MT_XSLT_Source/Person/LastName)"/> 
                </Name> 
                <Street> <xsl:value-of select="concat(concat(/ns0:MT_XSLT_Source/Person/Address/Houseno,' '), 
                    /ns0:MT_XSLT_Source/Person/Address/Street)"/> </Street> 
                <City> <xsl:value-of select="/ns0:MT_XSLT_Source/Person/Address/City"/> </City> 
            </ns1:MT_XSLT_Target> 
        </xsl:template> 
    </xsl:stylesheet>
    For testing in PI ,change the extension from .txt to .xsl and zip it and upload into PI as an imported archive .
    Regards
    Venkat

  • Urgent help required: Query regarding LC Variables

    Hi All
    Sometime earlier I was working on a performance issue raised by a customer. It was shell script that was taking almost 8-9 hrs to complete. During my research I came across a fact that there were some variables which were not set, the LC variables were impacting the sort funnel operations because of which the script was taking a long time to execute.
    I asked them to export the following commands, after which the program went on smoothly and finished in a couple of mins:
    export LC_COLLATE=en_US.ISO8859-1
    export LC_MESSAGES=C
    export LC_MONETARY=en_US.ISO8859-1
    export LC_MONETARY=en_US.ISO8859-1
    export HZ=100
    export LC_CTYPE=en_US.ISO8859-1
    export LANG=en_US.UTF-8
    Later I did recover that setting the LC_COLLATE to C, is not helping and the program was again taking a lot of time. Few questions that I want to ask are:
    1. Can someone please tell me, what each of these variable mean and how these values make a difference.
    2. When I exported LC_COLLATE=en_US.ISO8859-1, it worked fine, but when i tried with the defalut value LC_COLLATE=C, then why the program didnt work.
    As this issue is still going on, hence I would request All to provide their valuable inputs and let me know as much as possible.
    Appreciate your help in this regard.
    Thanks
    Amit
    Hi All
    A new development in this regard. The customer has send us a screen shot in which they were trying to export the locale variable using the commands which I have pasted above. I can see in the screen shot that while exporting LC_COLLATE and LC_TYPE, they get a message that ""ksh: export: couldn't set locale correctly"".
    Request everyone to please give their inputs as it's a bit urgent.
    Thanks for all the help in advance.
    Thanks
    Amit
    Some help required please...
    Edited by: amitsinhaengg on Jul 22, 2009 2:03 AM
    Edited by: amitsinhaengg on Jul 22, 2009 2:06 AM

    LC_CTYPE
    Controls the behavior of character handling functions.
    LC_TIME
    Specifies date and time formats, including month names, days of the week, and common full and abbreviated representations.
    LC_MONETARY
    Specifies monetary formats, including the currency symbol for the locale, thousands separator, sign position, the number of fractional digits, and so forth.
    LC_NUMERIC
    Specifies the decimal delimiter (or radix character), the thousands separator, and the grouping.
    LC_COLLATE
    Specifies a collation order and regular expression definition for the locale.
    LC_MESSAGES
    Specifies the language in which the localized messages are written, and affirmative and negative responses of the locale (yes and no strings and expressions).
    You can use command
    # locale -k LC_CTYPE
    to see more detail about each type.

  • Help required - Sales order item is partially delivered but the item grayed

    I have a sales order 123 having say item10 with qty 1, item20 with qty 10 , item 30 qty 12
    Item 1 confirmed qty 1 and delivered qty is 1
    Item 2 confirmed qty 10 and delivered qty 10
    Item 3 confirmed qty 1 and delivered qty is 1
    Now the item3 still has open requirements of 11 to be delivered. But the item is GRAYED OUT already.
    even if I do ATP the qty is not confirming for the remaining 11 pieces.
    Why is that? How to make that item out from GRAY.
    How to confirm the remaining 11 qty for that item.
    Help required as early as possible.
    Appreciate ur help guys
    Radha

    hi Radha, how are you ?
         ---the partial deliveries in master data must have not been mentioned.
         ---the deliveries should be upto target quantity.
         ---check order type, item category and schedule line category.
         ---check unrestricted stock availability.
    thank you
    regards
    Khera.

  • Search Help with in a serach help required in SRM 4.0

    Hi,                                                     
    Requirement: Search help required for Product Category field in the Search help for Product(BBPH_PRODUCT) in SRM portal.
    This search help is used in Create shopping Cart transaction. The hyper link on Internal Goods/Services leads to the search help BBPH_PRODUCT. 
    My analysis:           
    The field Product Category (CATEGORY_ID) has search help(COM_CAT_HIER) attached to its data element. When I single test the search help BBPH_PRODUCT in SAP GUI,I can see the search help for field product category in the selection dialogue box. However the same does not appear on the corresponding screen in HTML.
    Please let me know whether I need to do some thing to make the search help appear on the HTML screen?
    With Regards,         
    Prakash Kamath

    Hi Prakash,
    I have the same problem but with another field. Unloading point. Could you please tell me how did you solve this problem with displaying F4 help on html/ SRM portal?
    Thank you very much.
    Best regards,
    Danijela ZIvanovic

  • Help required with Photoshop Elements 4.0 this has been installed on my new Toshiba laptop with windows 8.1 for some 18 months and operating well. Now it will not open, message pops up saying "attempt to access invalid address" then "application not respo

    Help required with Photoshop Elements 4.0 this has been installed on my new Toshiba laptop with windows 8.1 for some 18 months and operating well. Now it will not open, message pops up saying “attempt to access invalid address” then “application not responding” Suggestions how to access would be much appreciated. Tks. Stuart

    What is the size of your hard disk?  PSE 4 is a very old program and I suspect it is not able to access the entire hard disk on your machine.  Just a thought here.

  • Help require with installing Adobe Acrobat onto my Macbook Pro Retina.

    Help require with installing Adobe Acrobat onto my Macbook Pro Retina.
    I have successfully installed all of my creative cloud apps with the exception being acrobat.
    I cannot print from Indesign to PDF.
    I have unistalled, reinstalled and still no Adobe Acrobat.
    I now have to go back to Windows 8 and create the PDF's there.
    Any one know how to get around this issue?
    Thanks in advance
    Kelvin

    OSX has effectively killed the ability to print to pdf, (print to pdf eliminates most of the "Rich features" of current pdf).
    Export from InDesign, always, excpet for the 1% of the time where you know why print to pdf would produce a better result.

  • Help required in Weblogic 6 - Creation & Configuration of Web Application

    Forum Home > Enterprise JavaBeans[tm]
    Topic: Help required in Weblogic 6 - Creation & Configuration of Web Application
    Duke Dollars
    2 Duke Dollars assigned to this topic. Reward the best responses to your question
    using the icons below, or transfer additional Duke Dollars to this topic.
    Welcome moinshariff!
    Watching this topic.
    Previous Topic Next Topic
    This topic has 1 reply on 1 page (Most recent message: Jan 23, 2002 1:05 AM)
    Author: moinshariff Jan 22, 2002 4:55 AM
    Hi,
    I am using Weblogic 6. I have created a new Web
    Application called Web (I have not used the DefaultWebApp_myserver).
    And I have the following settings:
    Name : Web
    URI : Web
    and Path : C:\Web
    and placed my JSP files under c:\Web\
    I am able to access the first page, but after that I am not able to access the
    second page.
    I get "Error 404--Not Found" on the browser. Basically the class file is not getting
    created under /Web-inf/_tmp_war_myserver_myserver_Web/jsp_servlet/ folder .
    I tried a work around for this. I copied all my files under one more folder called
    web and placed this under C:\Web
    The it works. Now I have 2 copied off all the files, 1 copy under c:\web and another
    copy under c:\web\web\.
    If I have the files under DefaultWebApp_myserver and have the setting as
    Name: DefaultWebApp_myserver
    URI: DefaultWebApp_myserver
    Path: .\config\mydomain\applications
    everything works fine.
    Can any one please let me know if there is any configuration which has to be done
    so that I do not duplicate the code in 2 directories
    Thanks in advance.
    Regards,
    Moin

    Forum Home > Enterprise JavaBeans[tm]
    Topic: Help required in Weblogic 6 - Creation & Configuration of Web Application
    Duke Dollars
    2 Duke Dollars assigned to this topic. Reward the best responses to your question
    using the icons below, or transfer additional Duke Dollars to this topic.
    Welcome moinshariff!
    Watching this topic.
    Previous Topic Next Topic
    This topic has 1 reply on 1 page (Most recent message: Jan 23, 2002 1:05 AM)
    Author: moinshariff Jan 22, 2002 4:55 AM
    Hi,
    I am using Weblogic 6. I have created a new Web
    Application called Web (I have not used the DefaultWebApp_myserver).
    And I have the following settings:
    Name : Web
    URI : Web
    and Path : C:\Web
    and placed my JSP files under c:\Web\
    I am able to access the first page, but after that I am not able to access the
    second page.
    I get "Error 404--Not Found" on the browser. Basically the class file is not getting
    created under /Web-inf/_tmp_war_myserver_myserver_Web/jsp_servlet/ folder .
    I tried a work around for this. I copied all my files under one more folder called
    web and placed this under C:\Web
    The it works. Now I have 2 copied off all the files, 1 copy under c:\web and another
    copy under c:\web\web\.
    If I have the files under DefaultWebApp_myserver and have the setting as
    Name: DefaultWebApp_myserver
    URI: DefaultWebApp_myserver
    Path: .\config\mydomain\applications
    everything works fine.
    Can any one please let me know if there is any configuration which has to be done
    so that I do not duplicate the code in 2 directories
    Thanks in advance.
    Regards,
    Moin

  • Help required network configuration - Gateway route settings get erased on reboot.

    Oracle Linux 7
    Linux myhostname 3.8.13-35.3.1.el7uek.x86_64 #2 SMP Wed Jun 25 15:27:43 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux
    #cat /etc/sysconfig/network-scripts/ifcfg-eno16780032
    TYPE="Ethernet"
    BOOTPROTO="none"
    DEFROUTE="yes"
    IPV4_FAILURE_FATAL="no"
    IPV6INIT="yes"
    IPV6_AUTOCONF="yes"
    IPV6_DEFROUTE="yes"
    IPV6_FAILURE_FATAL="no"
    NAME="eno16780032"
    UUID="2d1107e3-8bd9-49b1-b726-701c56dc368b"
    ONBOOT="yes"
    IPADDR0="34.36.140.86"
    PREFIX0="22"
    GATEWAY0="34.36.143.254"
    DNS1="34.36.132.1"
    DNS2="34.34.132.1"
    DOMAIN="corp.halliburton.com"
    HWADDR="00:50:56:AC:3F:F9"
    IPV6_PEERDNS="yes"
    IPV6_PEERROUTES="yes"
    NM_CONTROLLED="no"
    #route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         34.36.143.254   0.0.0.0         UG    0      0        0 eno16780032
    34.36.140.0     0.0.0.0         255.255.252.0   U     0      0        0 eno16780032
    169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eno16780032
    When I reboot the machine, the first line in route table gets erased, I then run:
    #route add default gw 34.36.143.254
    After which network works fine.
    Help required. I don't want to use NetworkManager.

    The following might be useful:
    https://access.redhat.com/solutions/783533
    "When transitioning from NetworkManager to using the network initscript, the default gateway parameter in the interface's ifcfg file will be depicted as 'GATEWAY0'. In order for the ifcfg file to be compatible with the network initscript, this parameter must be renamed to 'GATEWAY'. This limitation will be addressed in an upcoming release of RHEL7."
    NetworkManager is now the default mechanism for RHEL 7. Personally I don't quite understand this, because as far as I can gather it is a program for systems to automatically detect and connect to known networks. I think such functionality can be useful when switching between wireless and wired networks, but for a server platform, I wonder.

Maybe you are looking for

  • Jco Call a Function Module in BackGround

    Hello All. Some one can send me a simple exemplo how to call a ABAP Function Module in BackGround. Can i set this in Java side? ..or only set the BackGround Work Process in SAP side? In my java application call the Abap Function Module like this: cli

  • "Find Finder Items" and external volumes

    I have a particular file (an Entourage mail database) that I want to automate backup to a USB thumb drive. Once a day I already use the Backup utility to automatically copy it (currently about 350 MB) to the external thumb drive. No problem. Now I wa

  • Search engine changed

    All of my search engines in the toolbar of Mozilla have changed to UK sites!! In "Manage Search Engines", I clicked the "Restore Defaults" button, but all I get is search engines for the UK. I clicked the "Get more search engines"button, but nothing

  • Update from IOS 4.2.1 to 4.3.5

    How do i update an iPhone 4 with IOS 4.2.1 to 4.3.5?  Every time i connect it to iTunes (Windows 7 laptop), 2-3mins before finishing to 2 hour download, the screen will freeze and a window will pop out saying "cannot download software, timed out".  I

  • Bad export to JPG

    I am having a problem exporting my RAW files to JPG format in LightRoom 2.4. The colors are off, seem to be red shifted and darker, as if exposure seems to be about 2 stops under, and detail is lost. I'm running WIndows Vista Ultimate Service Pack 1.