Problem in Retriving records

i m callin a session bean from a jSp page,actually the constructor of sesssion bea,this calls the ejb create of entity bean
Data is going in database,but only once i restart browser all data is available ,why not just by clicking the link of view.
The constructor calls set method in it,in JSP page,i call the get method that returns a linked list,that was set in set method,that i type cast to a collection to retrieve records , employee records ,in this case,am i calling set at wrong place,should i call it in ejbcreate,should the linkedlist be static..?
here's my code in which i placed set in ejbcreate ,still not working........
package pkgpooja;
import javax.ejb.*;
import weblogic.ejb.*;
import javax.naming.*;
import javax.rmi.*;
import javax.ejb.*;
import java.io.*;
import java.util.*;
* @ejbgen:session
* ejb-name = "EmpSession"
* @ejbgen:jndi-name
* remote = "ejb.EmpSessionRemoteHome"
* @ejbgen:file-generation remote-class = "true" remote-class-name = "EmpSessionRemote" remote-home = "true" remote-home-name = "EmpSessionHome" local-class = "false" local-class-name = "EmpSessionLocal" local-home = "false" local-home-name = "EmpSessionLocalHome"
public class EmpSession
extends GenericSessionBean
implements SessionBean
public static LinkedList l=new LinkedList();
public EmpSession(String a,String b,String c,String d)
try
Properties p =new Properties();
p.setProperty(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://localhost:7001");
InitialContext ctx=new InitialContext(p);
Pooja_emplHome hom = (Pooja_emplHome)ctx.lookup(
"ejb.Pooja_emplBeanHome");
Pooja_emplHome home= (Pooja_emplHome)PortableRemoteObject.narrow(hom,Pooja_emplHome.class);
Pooja_empl pe =home.create(a ,b,c,d);
catch(Exception e)
* @ejbgen:remote-method
public void ejbCreate() {
setL(l);
public EmpSession()
try
Properties p =new Properties();
p.setProperty(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://localhost:7001");
InitialContext ctx=new InitialContext(p);
Pooja_emplHome hom = (Pooja_emplHome)ctx.lookup(
"ejb.Pooja_emplBeanHome");
Pooja_emplHome home = (Pooja_emplHome)PortableRemoteObject.narrow(hom ,Pooja_emplHome.class);
Collection cc=home.finder1();
Iterator it = cc.iterator();
int i=0;
while(it.hasNext())
Object o = it.next();
Pooja_empl bb =(Pooja_empl)o ;
l.add(bb.getId()+" "+bb.getName()+" "+bb.getAge()+" "+bb.getDept() );
i++;
setL(l);
System.out.print(l);
catch(Exception e)
public void setL(LinkedList l)
this.l=l;
public LinkedList getL()
return l;
* @ejbgen:remote-method
* @ejbgen:remote-method
*/

i m callin a session bean from a jSp page,actually the constructor of sesssion bea,this calls the ejb create of entity bean
Data is going in database,but only once i restart browser all data is available ,why not just by clicking the link of view.
The constructor calls set method in it,in JSP page,i call the get method that returns a linked list,that was set in set method,that i type cast to a collection to retrieve records , employee records ,in this case,am i calling set at wrong place,should i call it in ejbcreate,should the linkedlist be static..?
here's my code in which i placed set in ejbcreate ,still not working........
package pkgpooja;
import javax.ejb.*;
import weblogic.ejb.*;
import javax.naming.*;
import javax.rmi.*;
import javax.ejb.*;
import java.io.*;
import java.util.*;
* @ejbgen:session
* ejb-name = "EmpSession"
* @ejbgen:jndi-name
* remote = "ejb.EmpSessionRemoteHome"
* @ejbgen:file-generation remote-class = "true" remote-class-name = "EmpSessionRemote" remote-home = "true" remote-home-name = "EmpSessionHome" local-class = "false" local-class-name = "EmpSessionLocal" local-home = "false" local-home-name = "EmpSessionLocalHome"
public class EmpSession
extends GenericSessionBean
implements SessionBean
public static LinkedList l=new LinkedList();
public EmpSession(String a,String b,String c,String d)
try
Properties p =new Properties();
p.setProperty(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://localhost:7001");
InitialContext ctx=new InitialContext(p);
Pooja_emplHome hom = (Pooja_emplHome)ctx.lookup(
"ejb.Pooja_emplBeanHome");
Pooja_emplHome home= (Pooja_emplHome)PortableRemoteObject.narrow(hom,Pooja_emplHome.class);
Pooja_empl pe =home.create(a ,b,c,d);
catch(Exception e)
* @ejbgen:remote-method
public void ejbCreate() {
setL(l);
public EmpSession()
try
Properties p =new Properties();
p.setProperty(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://localhost:7001");
InitialContext ctx=new InitialContext(p);
Pooja_emplHome hom = (Pooja_emplHome)ctx.lookup(
"ejb.Pooja_emplBeanHome");
Pooja_emplHome home = (Pooja_emplHome)PortableRemoteObject.narrow(hom ,Pooja_emplHome.class);
Collection cc=home.finder1();
Iterator it = cc.iterator();
int i=0;
while(it.hasNext())
Object o = it.next();
Pooja_empl bb =(Pooja_empl)o ;
l.add(bb.getId()+" "+bb.getName()+" "+bb.getAge()+" "+bb.getDept() );
i++;
setL(l);
System.out.print(l);
catch(Exception e)
public void setL(LinkedList l)
this.l=l;
public LinkedList getL()
return l;
* @ejbgen:remote-method
* @ejbgen:remote-method
*/

Similar Messages

  • Problem in BDC Recording

    Hi I am having a problem in BDC Recording. My requirement is that when I input data in transaction fb02 to block the invoices, It shows a list of invoices. Now i need to double click that item(line) in which PK = 06 at runtime during bdc recording. During BDC recording it takes the line number on which we have clicked which is constant but i want it dynamic that if item 1 is having PK=6, that line should be double clicked and if item 3 is having PK=6, the third item should be double clicked to open another screen. Kindly help me... Thanks in advance.

    Hi Ravi,
    While writing your code that is in your code you know which line number is having the PK = 06, then you can use the same line number and add the code for double click after that.
    Regards,
    Atish

  • TS1559 I bought my iphone 4s in usa apple store but when i write my serial number to support center i see warning like that. What is the problem ? Our records indicate that this product has been replaced. Please provide the serial number for your replacem

    I bought my iphone 4s in usa apple store
    ihave trouble with my iphone wifi that is gray and cannot connect any wifi network.
    i want to support for this issue.
    but when i write my serial number to support center i see warning like that. What is the problem ?
    Our records indicate that this product has been replaced. Please provide the serial number for your replacement product to find the support and warranty coverage information. For more information, please contact us.

    Nobody here would know.  Contact Apple and ask them

  • Problem in retriving workitem id from uwl in abap webdynpro

    Hello,
    Curently, I've a problem similar with this post : Problem in retriving workitem id from uwl in abap webdynpro
    But unfortunatelly there is no answer :/
    I've followed this tutorial : http://wiki.sdn.sap.com/wiki/display/WDABAP/IntegratingWebDynproABAPapplicationswithUWLforworkflowin+Portal
    And I have a problem in my WD Abap. The WI_ID field is empty (initial).
    Here is my XML :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'
      >
    <UWLConfiguration version="1.0">
         <ItemTypes>
              <ItemType name="uwl.task.webflow.TS90000087.ED1CLNT100" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
                <ItemTypeCriteria systemId="ED1CLNT100" externalType="TS90000087" connector="WebFlowConnector"/>
                <Actions>
                   <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
                     <Properties>
                        <Property name="WebDynproApplication" value="zps_pnpi"/>
                        <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                        <Property name="DynamicParameter" value="WI_ID1=${item.externalId}"/>
                        <Property name="openInNewWindow" value="yes"/>
                        <Property name="WebDynproNamespace" value="sap"/>
                        <Property name="System" value="ED1CLNT100"/>
                        <Property name="display_order_priority" value="5"/>
                     </Properties>
                     <Descriptions default=""/>
                   </Action>
                </Actions>
              </ItemType>
         </ItemTypes>
    </UWLConfiguration>
    Here are the parameter defined in my application :
    WI_ID     000000000000     SWW_WIID
    WI_ID1     ${item.externalId}     STRING
    And, i've made the test with both the WI_ID and the WI_ID1 in the XML but everytime, no value at all.
    Could you please help me ? It's been three days I'm looking for a solution to get my Workitem ID in my Webdynpro ...

    In fact, it's quite strange, I added the menu and toolbar display and I can see that my url contains the data ...
    http://<begin_of_the_url>DynamicParameter=System%3DED1CLNT100%26wi_id%3D000000629442%26WI_ID%3D000000629442%26WI_ID1%3D000000629442<end_of_the_url>
    So ... how is it possible ?
    And the next question, how can I get the full url so I can parse it myself ?

  • Performance problem with selecting records from BSEG and KONV

    Hi,
    I am having performance problem while  selecting records from BSEG and KONV table. As these two tables have large amount of data , they are taking lot of time . Can anyone help me in improving the performance . Thanks in advance .
    Regards,
    Prashant

    Hi,
    Some steps to improve performance
    SOME STEPS USED TO IMPROVE UR PERFORMANCE:
    1. Avoid using SELECT...ENDSELECT... construct and use SELECT ... INTO TABLE.
    2. Use WHERE clause in your SELECT statement to restrict the volume of data retrieved.
    3. Design your Query to Use as much index fields as possible from left to right in your WHERE statement
    4. Use FOR ALL ENTRIES in your SELECT statement to retrieve the matching records at one shot.
    5. Avoid using nested SELECT statement SELECT within LOOPs.
    6. Avoid using INTO CORRESPONDING FIELDS OF TABLE. Instead use INTO TABLE.
    7. Avoid using SELECT * and Select only the required fields from the table.
    8. Avoid nested loops when working with large internal tables.
    9. Use assign instead of into in LOOPs for table types with large work areas
    10. When in doubt call transaction SE30 and use the examples and check your code
    11. Whenever using READ TABLE use BINARY SEARCH addition to speed up the search. Be sure to sort the internal table before binary search. This is a general thumb rule but typically if you are sure that the data in internal table is less than 200 entries you need not do SORT and use BINARY SEARCH since this is an overhead in performance.
    12. Use "CHECK" instead of IF/ENDIF whenever possible.
    13. Use "CASE" instead of IF/ENDIF whenever possible.
    14. Use "MOVE" with individual variable/field moves instead of "MOVE-
    CORRESPONDING" creates more coding but is more effcient.

  • Problem in displaying records in multi record block

    Hi all,
    I have a problem in displaying records in a multi record block in a form.
    I have 1 control block and 1 data block(multi-record block).
    Control block has one item CUSTOMER-ID. Data block has many other items related to customer.
    when a value is entered in customer-id text item, all the relavant details should be displayed in the data block.
    but, the records are overlapping in the same line in the data block, actually they have to be displayed one record per one line.
    The code is,
    IF :CUST_BLOCK.CUST_ID IS NOT NULL THEN
    GO_BLOCK('XBSI_CONTRACT_PRICE_FACTORS');
    FOR C1 IN C
    LOOP
    :XBSI_CONTRACT_PRICE_FACTORS.CUST_ID:=c1.site_use_id;
    :XBSI_CONTRACT_PRICE_FACTORS.CAT_ID:=c1.ipc_category_id;
    :XBSI_CONTRACT_PRICE_FACTORS.MFG_ID:=c1.mfg_category_id;
    :XBSI_CONTRACT_PRICE_FACTORS.INVENTORY_ITEM_ID:=c1.inventory_item_id;
    :XBSI_CONTRACT_PRICE_FACTORS.PRICE_BASIS:=c1.price_basis;
    :XBSI_CONTRACT_PRICE_FACTORS.PRICE_FACTOR:=c1.price_factor;
    END LOOP;
    Please help me out..
    Thanks in advance!
    Suman

    Hi Suman
    IF :CUST_BLOCK.CUST_ID IS NOT NULL THEN
    GO_BLOCK('XBSI_CONTRACT_PRICE_FACTORS');
    first_record;
    FOR C1 IN C
    LOOP
    :XBSI_CONTRACT_PRICE_FACTORS.CUST_ID:=c1.site_use_id;
    :XBSI_CONTRACT_PRICE_FACTORS.CAT_ID:=c1.ipc_category_id;
    :XBSI_CONTRACT_PRICE_FACTORS.MFG_ID:=c1.mfg_category_id;
    :XBSI_CONTRACT_PRICE_FACTORS.INVENTORY_ITEM_ID:=c1.inventory_item_id;
    :XBSI_CONTRACT_PRICE_FACTORS.PRICE_BASIS:=c1.price_basis;
    :XBSI_CONTRACT_PRICE_FACTORS.PRICE_FACTOR:=c1.price_factor;
    next_record;
    END LOOP;
    Try this. you are trying to show all the records in same line. so its overlapping.
    Thankyou
    [email protected]

  • Problem in retriving the realpath from the servlet

    Hai All,
    I am facing problem in retriving the realpath from the servlet.
    I am using the following code in order to retrieve the path.
    String prefix = getServletContext().getRealPath("/WEB-INF/classes");
    The value returned from above code is null.
    I am using Weblogic 8.1 server, and deploying my servlet as WAR file inside
    the weblogic server.
    Is this the problem with the weblogic server or with the code. Is there any way to over come this.
    I need the path as i am implementing Log4j for the servlet and i have to pass the
    configuration file in one of the function "PropertyConfigurator.configure(file);"
    where the file should include complete path.
    My configuration file is in WEB-INF/Classes directory.
    Any help is appreciated.
    Thanks in advance
    Pooja.

    String realPath = request.getRealPath(request.getContextPath());
    That should return the path up to where you have your servlet context.

  • Problems with ECATT recording using SAPGUI Record

    Hello,
    I got a problem with my recording. All the prerequisites are  done. The problem is,  that when the recording is done i don't see the recording in SECATT testcase. Normally when you do a recording you see at the bottom right of the gui a red/white icon active. When i do a recording now, this red/white icon isn't  active.
    For my it's a very strange error. I hope somebody can give me a hint where i can look,
    Thanks in advance.
    Kind regards,
    Maarten.

    Maarten,
    First when you start the recording using SAPGUI, you will get the pop-up whether to record this new session. You need to select Yes before continuing your recording.
    Secondly check the scripting values in the target system whether it is enabled or disabled using the RZ11 transaction. Mostly SAP Basis team have authorization to change these values for us.
    Here is the parameter we need to check in RZ11 - sapgui/user_scripting. It should be TRUE.
    Let me know if this helps.

  • Retrive Records based on the content in a Clob Feild

    Retrive Records based on the content in a Clob Feild
    I have a Table NoteFile which contains a Clob Feild NoteFileContent
    and is refrenced by PK DocID
    i need to Match DocID with other Tables Document and folderdocument
    My Query is as Below
    SELECT Doc.Pap_Doc_ID, Doc.Pap_Doc_Name , NF.NoteFileContent
    From NoteFile NF , Document Doc, folderdocument FD
    Where Doc.Pap_Doc_ID = FD.FoldDoc_ID and FD.FoldDoc_ParentID <> 3 and
    NF.DocID = DOC.Pap_Doc_ID And NF.NoteFileContent Like '%a%'
    The above query throws
    ORA-00600: internal error code, arguments: [504], [0x7ADEBE00], [2], [1],
    [cache buffers chains], [723], [0], [0x7ADEBE00]

    Hi,
    We can resize it.Always give the height and weight in
    percentage format. and turn off the horizontal n vertical scroll
    policy in u r main application.
    Hopes it helps you...

  • Problem in retriving string

    Hi all,
    i'm finding problem in retriving string
    i'm getting only first line as output
    the coding is
    import java.io.*;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    class newprg2
    public static void main(String args[]) throws IOException
    InputStream in = new FileInputStream("e:/rag.txt");
    //OutputStream out = newFileOutputStream("e:/rag1.txt");
    int c,pos,pos1;
    String s=new String();
    StringBuffer sb = new StringBuffer();
    while((c=in.read())!=-1)
    sb.insert(0,(char)c);
    sb = sb.reverse();
    s = sb.toString();
    pos = s.indexOf("verify scan_test",0);
    s=s.substring(pos+1);
    while(pos>=0)
    pos=s.indexOf("_cpdp_=",pos);
    pos=s.indexOf("=",pos);
    pos1=s.indexOf(';', pos);
    s=s.substring(pos+1,pos1);
    System.out.println(s);
    }here's the input file
    verify scan_test  {
      Abb {* verify:0  Value:0  lifecycle:0 *}
      W tset_tp;
      S {  _cpdp_=YYYY10YYYYYYYYYYYYYYYYYYY;
      Abb {* Begin loop test *}
      S {  _cpdp_=YYYY10YYYYYYYYYYYYYYYYYYY;
      S {  _cpdp_=YYYY110YY1YYYYYYYYYYYYYYY;
      S {  _cpdp_=YYYY110YY1YYYYYYYYYYYYYYY;
      S {  _cpdp_=YYYY111YY1YYYYYYYYYYYYYYY;
      }now i'm getting output as
    YYYY10YYYYYYYYYYYYYYYYYYY
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
            at java.lang.String.substring(Unknown Source)
            at newprg2.main(newprg2.java:42)but i want output as
    YYYY10YYYYYYYYYYYYYYYYYYY
    YYYY10YYYYYYYYYYYYYYYYYYY
    YYYY110YY1YYYYYYYYYYYYYYY
    YYYY110YY1YYYYYYYYYYYYYYY
    YYYY111YY1YYYYYYYYYYYYYYY

    Manivel wrote:
    raghavan,
    Alter the code inside the while loop like below, you will get as what you expected.
    while (pos >= 0) {
    s = s.substring(pos + 1);
    pos = s.indexOf("_cpdp_=", pos);
    pos = s.indexOf("=", pos);
    pos1 = s.indexOf(';', pos);
    String ss = s.substring(pos + 1, pos1);
    System.out.println(ss);
    }-ManiI'm sorry, but, if you are simply going to spew out the answer to someones homework, you could at least explain what was wrong (before the code). They don't care in the least, but having read it, they may retain at least some spark of the meaning that the lesson was intended to teach. Like this it's just cut and paste, and who gives a damn. They learn a lot that way, NOT!

  • Problem in selecting records

    Hi, everyone.
    I have a problem in selecting records.  In this case, I want to select records from database
    LFA1,and the components of this table are LIFNR,ERDAT,LOEVM ,and so on.The type of LIFNR is char(10).There is a internal table:tab_cdhdr , the elements of tab_cdhdr are: objectid,udate and change_ind.The type of objectid is char(50).
    And the select-rule is that: LIFNR = objectid. So I write like this:
    select   lifnr
                 erdat
                 loevm
    form     lfa1
    into       tab_lfa1
    for all entries in tab_cdhdr
    where   lfa1 = tab_cdhdr-objectid+0(10).
    But there is a warning: When using FOR ALL ENTRIES IN the specifyed length for "OBJECTID" is ignored in this condition.
    Can you help me to solve this problem?
    Thanks.

    Hi Feng..
    If you dont want to change the Internal table TAB_CDHDR, Then declare another internal table (TEMPTAB_CDHDR.) with the same structure but Objectid with only 10 chars.
    IF TAB_CDHDR[] IS NOT INITIAL.
    LOOP AT TAB_CDHDR.
    MOVE-CORRESPONDING TAB_CDHDR TO TEMPTAB_CDHDR.
    APPEND TEMPTAB_CDHDR.
    ENDLOOP.
    select lifnr
    erdat
    loevm
    form lfa1
    into tab_lfa1
    for all entries in tab_cdhdr
    where lfa1 = TEMPtab_cdhdr-objectid.
    ENDIF.
    Sure ... this will work for u.....
    REWARD IF HELPFUL.

  • Problems importing HD recording from Sony HD-HCR3

    Apologies but I am new to this!
    I just bought the Sony HCR3 - when I try to import (via Firewire) HD movies, the picture is very jumpy, single clips are getting broken up and the audio is distorted (voice sounds an octave lower) even though the playback on the camcorder is fine. I don't have any problems when I record and import in DV format.
    I have upgraded to iMovie 6, but have yet to upgrade from 10.3.9 (which means that some features of iMovie HD don't work). Is this the reason for my problem?
    Thanks in advance for any advice.
    iMac G5   Mac OS X (10.3.9)  

    Well, I have a similiar problem with the Sony HDR-HC1E.
    The imported movie ist too slow, so it sounds an octave lower. This problem occures on my powerbook g4 and on my powermac g5. There are no problems with imovie 5.
    Nobody could tell me why this problem occures....
    You should go bac to imovie 5. iDVD 6 has also some problems.
    Sincerely....

  • I have an ipod touch 4th genereation and have problems when i record you can barley hear the voices and sounds recording i don't know what the problem is?

    i have an ipod touch 4th genereation and have problems when i record you can barley hear the voices and sounds recording i don't know what the problem is?

    sounds like ur ipod's mic is blocked with something check the back on the ipod near the back camera

  • Problem with cycle recording

    Greetings, folks. I've run into what I think is an odd problem in cycle recording in an audio track. What I wanted to do was to automatically record multiple takes of a guitar solo. Consulting the manual and both the LP7 and Advanced LP7 guides and set up what I thought was the proper configuration for doing that: under File > Song settings > Recording, I checked the "Auto mute" and "Auto Create Tracks in Cycle Record" checkboxes, I defined a cycle region, I defined a shorter autodrop zone within that cycle region, armed the track, then hit record. I thought that Logic would then create a new track with each cycle pass while I was playing, and that those tracks would play through the audio object of the track that had been armed for recording.
    What happened instead was that, after a single pass, recording would switch off (though it would continue to cycle in playback), so that in order to record multiple passes I needed to stop, reset the track to the beginning of the cycle region, and then hit record again. The audio regions I recorded on successive takes also don't display on individual tracks. I'd like to be able to see them all in the arrange window and be able to play them through the original track's audio object for editing purposes, but I can't figure out how to do that either (without creating multiple tracks and then manually dragging each take from the audio window).
    So I guess I have two questions: first, what did I do wrong in attempting to cycle record, and then how can I view all of the individually recorded takes in the arrange window?
    Thanks,
    Trent

    Jord, when I called it a "phenomenon" I did not mean to describe it as a bug or fault - you're right, it is a desireable feature of cycle recording.
    As far as your question goes: Suppose you are recording track-by-track a song with two parts, an acoustic guitar and vocals, and the acoustic guitar part has an intricate eight-bar solo that needs to be redone. The advantage of using cycle recording and autodrop here is that you could define a cycle region giving you a two-bar intro (say) to the part you need to rerecord and a couple of bars of outro, making it easier to accomplish a musical phrasing. For example, say you're a vocalist trying to record a one-octave scale, and your pitch is off on the "fa-so." With cycle recording and autodrop, you could sing along with the "do-re-mi" and settle your pitch before rerecording the notes you flubbed, whereas (as I understand it) if you're just rerecording the "fa-so" in cycle mode, you won't get the "do-re-mi" as an intro after the first pass and would then just hope that you're nailing the notes you need to rerecord cold.
    You can combine cycle recording with autodrop in Midi - why not in audio? It's a desireable feature in both.

  • Sql retrives record but fails when used in a view

    Hi,
    I have a unique problem. I am able to retrive a record based on a certain criteria using a SQL.
    When the same sql is used in a create view statement the records do not show up.
    I did a count on records using the sql and get 54,521 where
    a count on the number of records from a view created using the same sql gives a lower number 40,967
    Here is the script
    /* Formatted on 2009/10/07 16:22 (Formatter Plus v4.8.8) */
    CREATE OR REPLACE FORCE VIEW ssvsec2_js (term_code_key,
    crn_key,
    seq_number_key,
    active_section_ind,
    active_course_ind,
    course_coreq_ind,
    course_prereq_ind,
    section_coreq_ind,
    section_prereq_ind,
    course_eff_term_code,
    coll_code,
    dept_code,
    levl_code1,
    levl_code2,
    levl_code3,
    levl_code4,
    divs_code,
    subj_code,
    crse_number,
    ceu_ind,
    csta_code,
    credit_hours,
    credit_hours_low,
    credit_hours_high,
    credit_hours_ind,
    billing_hours,
    billing_hours_low,
    billing_hours_high,
    billing_hours_ind,
    ssts_code,
    camp_code,
    gmod_code,
    title,
    sapr_code,
    census_enrollment1,
    census_enrollment_date1,
    census_enrollment2,
    census_enrollment_date2,
    projected_enrollment,
    maximum_enrollment,
    actual_enrollment,
    seats_available,
    ptrm_code,
    ptrm_start_date,
    ptrm_end_date,
    link_identifier,
    begin_time1,
    end_time1,
    bldg_code1,
    room_code1,
    schd_code_meet1,
    monday_ind1,
    tuesday_ind1,
    wednesday_ind1,
    thursday_ind1,
    friday_ind1,
    saturday_ind1,
    sunday_ind1,
    begin_time2,
    end_time2,
    bldg_code2,
    room_code2,
    schd_code_meet2,
    monday_ind2,
    tuesday_ind2,
    wednesday_ind2,
    thursday_ind2,
    friday_ind2,
    saturday_ind2,
    sunday_ind2,
    begin_time3,
    end_time3,
    bldg_code3,
    room_code3,
    schd_code_meet3,
    monday_ind3,
    tuesday_ind3,
    wednesday_ind3,
    thursday_ind3,
    friday_ind3,
    saturday_ind3,
    sunday_ind3,
    begin_time4,
    end_time4,
    bldg_code4,
    room_code4,
    schd_code_meet4,
    monday_ind4,
    tuesday_ind4,
    wednesday_ind4,
    thursday_ind4,
    friday_ind4,
    saturday_ind4,
    sunday_ind4,
    begin_time5,
    end_time5,
    bldg_code5,
    room_code5,
    schd_code_meet5,
    monday_ind5,
    tuesday_ind5,
    wednesday_ind5,
    thursday_ind5,
    friday_ind5,
    saturday_ind5,
    sunday_ind5,
    begin_time6,
    end_time6,
    bldg_code6,
    room_code6,
    schd_code_meet6,
    monday_ind6,
    tuesday_ind6,
    wednesday_ind6,
    thursday_ind6,
    friday_ind6,
    saturday_ind6,
    sunday_ind6,
    begin_time7,
    end_time7,
    bldg_code7,
    room_code7,
    schd_code_meet7,
    monday_ind7,
    tuesday_ind7,
    wednesday_ind7,
    thursday_ind7,
    friday_ind7,
    saturday_ind7,
    sunday_ind7,
    begin_time8,
    end_time8,
    bldg_code8,
    room_code8,
    schd_code_meet8,
    monday_ind8,
    tuesday_ind8,
    wednesday_ind8,
    thursday_ind8,
    friday_ind8,
    saturday_ind8,
    sunday_ind8,
    begin_time9,
    end_time9,
    bldg_code9,
    room_code9,
    schd_code_meet9,
    monday_ind9,
    tuesday_ind9,
    wednesday_ind9,
    thursday_ind9,
    friday_ind9,
    saturday_ind9,
    sunday_ind9,
    begin_time10,
    end_time10,
    bldg_code10,
    room_code10,
    schd_code_meet10,
    monday_ind10,
    tuesday_ind10,
    wednesday_ind10,
    thursday_ind10,
    friday_ind10,
    saturday_ind10,
    sunday_ind10,
    attr_code1,
    attr_code2,
    additional_attributes_ind,
    primary_instructor_id,
    primary_instructor_last_name,
    primary_instructor_first_name,
    primary_instructor_middle_init,
    instructor_id2,
    instructor_last_name2,
    instructor_first_name2,
    instructor_middle_init2,
    instructor_id3,
    instructor_last_name3,
    instructor_first_name3,
    instructor_middle_init3,
    additional_instructors_ind,
    coll_code_override,
    divs_code_override,
    dept_code_override,
    schd_code1,
    schd_workload1,
    schd_max_enrl1,
    schd_adj_workload1,
    schd_code2,
    schd_workload2,
    schd_max_enrl2,
    schd_adj_workload2,
    schd_code3,
    schd_workload3,
    schd_max_enrl3,
    schd_adj_workload3,
    schd_code4,
    schd_workload4,
    schd_max_enrl4,
    schd_adj_workload4
    AS
    SELECT ssbsect_term_code, ssbsect_crn, ssbsect_seq_numb,
    SUBSTR (f_active_section_ind (ssbsect_ssts_code), 1, 1),
    SUBSTR (f_active_course_ind (a.scbcrse_csta_code), 1, 1),
    SUBSTR (f_check_for_course_coreqs (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code
    1,
    1
    SUBSTR (f_check_for_course_prereqs (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    1,
    1
    SUBSTR (f_check_for_section_coreqs (ssbsect_term_code, ssbsect_crn),
    1,
    1
    SUBSTR (f_check_for_section_prereqs (ssbsect_term_code,
    ssbsect_crn,
    1,
    1
    a.scbcrse_eff_term, a.scbcrse_coll_code, a.scbcrse_dept_code,
    SUBSTR (f_get_course_levels (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    1
    1,
    2
    SUBSTR (f_get_course_levels (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    2
    1,
    2
    SUBSTR (f_get_course_levels (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    3
    1,
    2
    SUBSTR (f_get_course_levels (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    4
    1,
    2
    a.scbcrse_divs_code, ssbsect_subj_code, ssbsect_crse_numb,
    a.scbcrse_ceu_ind, a.scbcrse_csta_code,
    NVL (ssbsect_credit_hrs, a.scbcrse_credit_hr_low),
    a.scbcrse_credit_hr_low, a.scbcrse_credit_hr_high,
    a.scbcrse_credit_hr_ind,
    NVL (ssbsect_bill_hrs, a.scbcrse_bill_hr_low),
    a.scbcrse_bill_hr_low, a.scbcrse_bill_hr_high,
    a.scbcrse_bill_hr_ind, ssbsect_ssts_code, ssbsect_camp_code,
    NVL (ssbsect_gmod_code,
    SUBSTR (f_default_gmod (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code
    1,
    1
    NVL (ssbsect_crse_title, a.scbcrse_title), ssbsect_sapr_code,
    ssbsect_census_enrl, ssbsect_census_enrl_date,
    ssbsect_census_2_enrl, ssbsect_census_2_date, ssbsect_proj_enrl,
    ssbsect_max_enrl, ssbsect_enrl, ssbsect_seats_avail,
    ssbsect_ptrm_code, ssbsect_ptrm_start_date, ssbsect_ptrm_end_date,
    ssbsect_link_ident, k.ssrmeet_begin_time, k.ssrmeet_end_time,
    k.ssrmeet_bldg_code, k.ssrmeet_room_code, k.ssrmeet_schd_code,
    k.ssrmeet_mon_day, k.ssrmeet_tue_day, k.ssrmeet_wed_day,
    k.ssrmeet_thu_day, k.ssrmeet_fri_day, k.ssrmeet_sat_day,
    k.ssrmeet_sun_day, l.ssrmeet_begin_time, l.ssrmeet_end_time,
    l.ssrmeet_bldg_code, l.ssrmeet_room_code, l.ssrmeet_schd_code,
    l.ssrmeet_mon_day, l.ssrmeet_tue_day, l.ssrmeet_wed_day,
    l.ssrmeet_thu_day, l.ssrmeet_fri_day, l.ssrmeet_sat_day,
    l.ssrmeet_sun_day, m.ssrmeet_begin_time, m.ssrmeet_end_time,
    m.ssrmeet_bldg_code, m.ssrmeet_room_code, m.ssrmeet_schd_code,
    m.ssrmeet_mon_day, m.ssrmeet_tue_day, m.ssrmeet_wed_day,
    m.ssrmeet_thu_day, m.ssrmeet_fri_day, m.ssrmeet_sat_day,
    m.ssrmeet_sun_day, n.ssrmeet_begin_time, n.ssrmeet_end_time,
    n.ssrmeet_bldg_code, n.ssrmeet_room_code, n.ssrmeet_schd_code,
    n.ssrmeet_mon_day, n.ssrmeet_tue_day, n.ssrmeet_wed_day,
    n.ssrmeet_thu_day, n.ssrmeet_fri_day, n.ssrmeet_sat_day,
    n.ssrmeet_sun_day, o.ssrmeet_begin_time, o.ssrmeet_end_time,
    o.ssrmeet_bldg_code, o.ssrmeet_room_code, o.ssrmeet_schd_code,
    o.ssrmeet_mon_day, o.ssrmeet_tue_day, o.ssrmeet_wed_day,
    o.ssrmeet_thu_day, o.ssrmeet_fri_day, o.ssrmeet_sat_day,
    o.ssrmeet_sun_day, p.ssrmeet_begin_time, p.ssrmeet_end_time,
    p.ssrmeet_bldg_code, p.ssrmeet_room_code, p.ssrmeet_schd_code,
    p.ssrmeet_mon_day, p.ssrmeet_tue_day, p.ssrmeet_wed_day,
    p.ssrmeet_thu_day, p.ssrmeet_fri_day, p.ssrmeet_sat_day,
    p.ssrmeet_sun_day, q.ssrmeet_begin_time, q.ssrmeet_end_time,
    q.ssrmeet_bldg_code, q.ssrmeet_room_code, q.ssrmeet_schd_code,
    q.ssrmeet_mon_day, q.ssrmeet_tue_day, q.ssrmeet_wed_day,
    q.ssrmeet_thu_day, q.ssrmeet_fri_day, q.ssrmeet_sat_day,
    q.ssrmeet_sun_day, r.ssrmeet_begin_time, r.ssrmeet_end_time,
    r.ssrmeet_bldg_code, r.ssrmeet_room_code, r.ssrmeet_schd_code,
    r.ssrmeet_mon_day, r.ssrmeet_tue_day, r.ssrmeet_wed_day,
    r.ssrmeet_thu_day, r.ssrmeet_fri_day, r.ssrmeet_sat_day,
    r.ssrmeet_sun_day, s.ssrmeet_begin_time, s.ssrmeet_end_time,
    s.ssrmeet_bldg_code, s.ssrmeet_room_code, s.ssrmeet_schd_code,
    s.ssrmeet_mon_day, s.ssrmeet_tue_day, s.ssrmeet_wed_day,
    s.ssrmeet_thu_day, s.ssrmeet_fri_day, s.ssrmeet_sat_day,
    s.ssrmeet_sun_day, t.ssrmeet_begin_time, t.ssrmeet_end_time,
    t.ssrmeet_bldg_code, t.ssrmeet_room_code, t.ssrmeet_schd_code,
    t.ssrmeet_mon_day, t.ssrmeet_tue_day, t.ssrmeet_wed_day,
    t.ssrmeet_thu_day, t.ssrmeet_fri_day, t.ssrmeet_sat_day,
    t.ssrmeet_sun_day, e1.ssrattr_attr_code, e2.ssrattr_attr_code,
    SUBSTR (f_more_attributes (scbcrse_subj_code,
    scbcrse_crse_numb,
    scbcrse_eff_term
    1,
    1
    x.spriden_id, NVL (x.spriden_last_name, 'STAFF'),
    x.spriden_first_name, SUBSTR (x.spriden_mi, 1, 1), y.spriden_id,
    y.spriden_last_name, y.spriden_first_name,
    SUBSTR (y.spriden_mi, 1, 1), z.spriden_id, z.spriden_last_name,
    z.spriden_first_name, SUBSTR (z.spriden_mi, 1, 1),
    DECODE (u.spriden_pidm, NULL, 'N', 'Y'), ssbovrr_coll_code,
    ssbovrr_divs_code, ssbovrr_dept_code, f1.scrschd_schd_code,
    f1.scrschd_workload, f1.scrschd_max_enrl, f1.scrschd_adj_workload,
    f2.scrschd_schd_code, f2.scrschd_workload, f2.scrschd_max_enrl,
    f2.scrschd_adj_workload, f3.scrschd_schd_code, f3.scrschd_workload,
    f3.scrschd_max_enrl, f3.scrschd_adj_workload, f4.scrschd_schd_code,
    f4.scrschd_workload, f4.scrschd_max_enrl, f4.scrschd_adj_workload
    FROM scbcrse a,
    ssbovrr,
    spriden x,
    spriden y,
    ssrmeet k,
    ssrmeet l,
    ssrmeet m,
    ssrmeet n,
    ssrmeet o,
    ssrmeet p,
    ssrmeet q,
    ssrmeet r,
    ssrmeet s,
    ssrmeet t,
    scrschd f1,
    scrschd f2,
    scrschd f3,
    scrschd f4,
    ssrattr e1,
    ssrattr e2,
    spriden z,
    spriden u,
    ssbsect
    WHERE x.ROWID(+) =
    f_get_instr_spriden_rowid (ssbsect_crn,
    ssbsect_term_code,
    'Y',
    AND y.ROWID(+) =
    f_get_instr_spriden_rowid (ssbsect_crn, ssbsect_term_code, '', 1)
    AND z.ROWID(+) =
    f_get_instr_spriden_rowid (ssbsect_crn, ssbsect_term_code, '', 2)
    AND u.ROWID(+) =
    f_get_instr_spriden_rowid (ssbsect_crn, ssbsect_term_code, '', 3)
    AND ssbovrr_term_code(+) = ssbsect_term_code
    AND ssbovrr_crn(+) = ssbsect_crn
    AND a.scbcrse_subj_code = ssbsect_subj_code
    AND a.scbcrse_crse_numb = ssbsect_crse_numb
    AND a.scbcrse_eff_term =
    (SELECT MAX (b.scbcrse_eff_term)
    FROM scbcrse b
    WHERE b.scbcrse_subj_code = ssbsect_subj_code
    AND b.scbcrse_crse_numb = ssbsect_crse_numb
    AND b.scbcrse_eff_term <= ssbsect_term_code)
    AND k.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    1
    AND l.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    2
    AND m.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    3
    AND n.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    4
    AND o.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    5
    AND p.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    6
    AND q.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    7
    AND r.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    8
    AND s.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    9
    AND t.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    10
    AND f1.ROWID(+) =
    f_get_scrschd_rowid (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    1
    AND f2.ROWID(+) =
    f_get_scrschd_rowid (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    2
    AND f3.ROWID(+) =
    f_get_scrschd_rowid (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    3
    AND f4.ROWID(+) =
    f_get_scrschd_rowid (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    4
    AND e1.ssrattr_term_code(+) = ssbsect_term_code
    AND e1.ssrattr_crn(+) = ssbsect_crn
    AND e1.ssrattr_attr_code(+) = 'SWS'
    AND e2.ssrattr_term_code(+) = ssbsect_term_code
    AND e2.ssrattr_crn(+) = ssbsect_crn
    AND e2.ssrattr_attr_code(+) LIKE 'TM%';
    Thanks ,
    Irene

    Welcome to the forums !
    If this issue is not related to a database upgrade, pl post the question in the "SQL and PL/SQL" or "Database - General" forums for a better/faster response.
    http://forums.oracle.com/forums/category.jspa?categoryID=18
    HTH
    Srini

Maybe you are looking for

  • Can't get 'clamshell' mode to work with Dell 2408

    I have been trying to get my Dell 2408 working in clamshell mode without any success. I have a USB keyboard, USB mouse, power adapter and monitor via DVI plugged in. I switch the display type to mirror, close the lid, wait for it to sleep, then wake

  • ODI behavior is not consistent in case of LKM loading.

    Hi All, I am facing a strange problem in ODI version 11.1.1 Actually, we have couple of interfaces and one master package. We are generating scenario for master package. We are exporting that scenario and keep it at specific location so that our appl

  • App logos in "waiting" status

    Certain  apps logos on my home screen say "waiting" and i can't get them to work or delete?

  • Strange error when updating database (JBO-26041)

    Hello, Im using Oracle 10g as a server and Oracle ADF frameworks (bc4j) in database handling. I have the following problem: I added a new field to database table. I added that new field to my entity object. Then I added that new value from my entity

  • Alternative for fetching order number and batch

    Hi All, I am currently using CAUFV table to fetch order numbers based on material number and plant. After that i am filtering these order numbers and fetching the batch  from AFPO table using the item number and the order numbers obtained from CAUFV