Issue with DB Adapter involving multiple tables

Hi,
Am facing an issue with DB Adapter with multiple tables. Here are the details.
I have 4 tables. Header, Details,Products and Devices. The relationship is defined as follows:
Header has 1:M relationship with Details.
Details has 1:M relationship with Products.
Products has 1:M relationship with Devices.
I want to select the details from all the tables for a particular header_id and detail_id. Defined 2 parameters and query is created with parameters.
SELECT DISTINCT t0.FILE_NAME, t0.UNIQUE_SEQUENCE_NUMBER, t0.HEADER_COUNT, t0.TOTAL_DEVICE_COUNT, t0.FILE_DATE, t0.FILE_SEQ_NUMBER, t0.DEVICE_COUNT, t0.PHONE_TYPE, t0.PHONE_OWNERSHIP, t0.TRANSACTION_TYPE, t0.PURCHASE_ORDER_NUMBER, t0.CUSTOMER_ID, t0.CUSTOMER_DEST_SUFFIX, t0.LOCATION_DESTINATION, t0.MASTER_FACTORY_ORDER, t0.MASTER_FACTORY_ORDER_LINE_NUM, t0.ENT_ORDER_NUMBER, t0.DELIVERY_IDENTIFICATION_NUM, t0.UEDF_REVISION_NUM, t0.STATUS, t0.INBOUND_BPEL_INSTANCE_ID, t0.ERROR_DESCRIPTION, t0.INBOUND_FILE_VERSION, t0.CREATED_BY, t0.CREATION_DATE, t0.UPDATED_BY, t0.UPDATE_DATE FROM EDF_HEADER_STG_INT t0, EDF_DETAILS_STG_INT t1 WHERE (((t0.FILE_NAME = #file_name) AND (t1.EDF_SERIAL_TYPE = #prod_type)) AND (t1.UNIQUE_SEQUENCE_NUMBER = t0.UNIQUE_SEQUENCE_NUMBER))
I expect the DB Adapter to retrieve the records for the parameters passed. i.e only those records from details table which matches with the parameter I passes in (t1.EDF_SERIAL_TYPE = #prod_type) . But I see that the DB Adapter retrieves all records from the details table for a particular unique_sequence_number(unique_sequence_number is primary key for headers table and foreign key for details table). Could you pls tell me how can I retrieve only selected records from the details table?
Regards,
Meenu

Yes. When I run this query in DB, I get one record . While defining DB Adapter, I have imported 4 tables and also defined the relationship between the tables. In my case, column unique sequence number is primary key of headers table and foreign key of details table.The above select query is generated by the DB Adapter for the parameters I have passed in.
My data is as follows:
Headers table:
file_name uniq_seq_num
file_1.xml 220
Details table
product_id unique seq num edf_prod_type
111 220 A
112 220 B
113 220
Now, I call DB Adapter with parameters 'file_1.xml' (file_name)and 'A'(prod_type). I expect the DB adapter to retrieve only one record with product_id 111 in the detailscollection. But I see that the adapter retrieves all records from the details table without considering the value of prod_type.
Edited by: user13276819 on Mar 19, 2012 6:32 AM

Similar Messages

  • Can we use single DB Adapter for multiple tables

    Hi,
    I have 3 tables. ONE is the Master table and other 2 tables having Primary and foreign key relationships with the Master Table.
    Data is enter in the Tables 2 & 3 (based on Master Table Primary key)
    I have to use a DB Adapter in BPEL Process which will be in Transaction (what type of Transaction is Best in such a Scenario).
    - How do i implement it in BPEL.
    - Can i use a Single DB Adapter for Multiple Tables ? (*Views* should not be created for tables 1, 2 & 3),
    as we want to avoid using multiple DB Adapters, as in future Tables may increase or decrease...
    - while in Transaction if Table 2 fails in Inserting / Updating, it should roll back on error and also if Table 3 fails in Inserting / Updating, it should roll back table 2 and Table 3.
    - how access to concurrent users is maintained / managed in such a scenarios.
    But everything should be done using Single DB Adapter without creating a separate view.
    Is this Possible in BPEL..
    If not, How do we design, Implementation such a BPEL Process in Transaction with a best in Performance (both BPEL Process & DB Resources)
    thanks in advance
    thanks & regards,
    anvv sharma

    Hi,
    Thanks for your quick response.
    I have few quires.
    If we use PL/SQL, how do we implement transaction and Exception Handling appropriately based on the Error / Exception in BPEL.
    If the Table 2 or Table 3 gives out Error / Exception, i have to handle it separately and intimate accordingly.
    Suppose, if Table 2 got Error / Exception - Error Handling would be 'Roll back due to error in Table2'
    Thanks & regads,

  • Issue with Apps adapter for Create_Cust_Account API

    Hi ,
    I need to invoke this package from apps adapter in BPEL(10.1.3.5).
    Create Customer: HZ_CUST_ACCOUNT_V2PUB. create_cust_account. This is a Over loaded procedure. Look for the Procedure with these Parameters.
    PROCEDURE create_cust_account (
    p_init_msg_list IN VARCHAR2:= FND_API.G_FALSE,
    p_cust_account_rec IN CUST_ACCOUNT_REC_TYPE,
    p_organization_rec IN HZ_PARTY_V2PUB.ORGANIZATION_REC_TY
    PE,
    p_customer_profile_rec IN HZ_CUSTOMER_PROFILE_V2PUB.CUSTOMER
    PROFILEREC_TYPE,
    p_create_profile_amt IN VARCHAR2:= FND_API.G_TRUE,
    x_cust_account_id OUT NUMBER,
    x_account_number OUT VARCHAR2,
    x_party_id OUT NUMBER,
    x_party_number OUT VARCHAR2,
    x_profile_id OUT NUMBER,
    x_return_status OUT VARCHAR2,
    x_msg_count OUT NUMBER,
    x_msg_data OUT VARCHAR2
    But I’m getting the following error,
    An error occurred while running Jpublisher.missing method
    · I’ve tried with Database adapter. But in the runtime I’m not able to pass oracle apps initialization parameter in spite of using transaction and idempotent property in partnerlink.
    · Then I’ve tried to invoke fnd_global.apps_initialize first then call the package from database adapter, but it fails again, apparently its not able to execute both DBadapter in same database session although they are in same BPEL transaction.
    When I’m passing the initialization parameters in adapter created wrapper procedure then its working fine and customer got created.
    Please let me know where I’m going wrong or issue with apps adapter.
    It’s urgent …
    Thanks in Advance,
    Shreekanta

    Thanks for the reply.
    I'm able to execute the BPEL flows using DB adapter in same session and customer got created.
    But I'm wondering why I cant invoke the API using Apps adapter though its standard one.
    wsdl file is not getting generated as the adapter wizard not get completed.
    Do u have any idea why its giving ' error occurred while running Jpublisher.missing method' error?should I conclude that apps adapter does not support overloaded procedure.

  • Printing Issues with HP D145 and multiple users from G5

    Hi - I've a HP D145 All-In-One connected via USB to a G5 (as described below). The machine has multiple accounts on for different members of my family. The printer is directly connected to the G5 via USB connection but is shared with other Macs. Printing has become increasingly difficult, and we now have the following problems:
    1. Printing will only work from the administrators account.
    2. Printing periodically (daily, generally after a few hours of use) stops from the administrators account
    Solutions tried:
    a. Check set up for the non-administrators accounts....Looks OK for printing
    b. When printing stops - I've tried repairing the permissions with the Disk Utility. This no longer works.
    c. Run Printer Setup Repair (with option to repair all user accounts) - Works for the administrators account providing the computer and printer are restarted, otherwise no effect.
    d. Reinstalling the software - No effect
    It’s beginning to look like I need to replace this printer with one that works.
    You can help me in two ways - how to solve the printer problems, or alternatively suggest a colour All-in-One printer that can work with multiple accounts and does not have the problems mentioned above.
    Many thanks in advance,
    Regards,
    Melvyn

    Below I've copied the fix HP proposed and some additional information that they have sent me.
    1. The proposed fix that we could not make work:
    Hello Melvyn,
    Thank you for contacting HP Total Care.
    Simply reinstalling the software will not be enough to solve the
    problem. Try these steps to resolve the issue at hand:
    From the Administrator account:
    Double-click on the Macintosh Hard Disk.
    Open Applications.
    Click and drag Hewlett Packard Folder to the trash.
    Close all windows.
    Double-click on the Macintosh Hard Disk.
    Open the Applications folder.
    Open the Utilities folder.
    Double-click on Process Viewer/Activity Monitor
    If Activity Monitor does not appear:
    Choose Monitor in the toolbar across the top.
    Check Show Activity Monitor.
    Ensure the Activity Monitor shows "All Processes", instead of "My
    Processes".
    Single-click and quit each of the applications starting with HP, using
    the Stop Sign that says "Quit Process" beneath it.
    Close Activity Monitor.
    Double-click Macintosh Hard Disk.
    Open the Library folder.
    Open the Preferences folder.
    Click and drag either HP AIO Preferences or Hewlett Packard Preferences
    to the trash.
    Remove the HP Registry file.
    Go back to the Library folder.
    Open the Printers folder.
    Remove the HP folder
    Double click Macintosh Hard Disk.
    Open the Users folder.
    Choose the User logged into.
    Open the Library folder.
    Open the Preferences folder.
    Click and drag either HP AIO Preferences or Hewlett Packard Preferences
    to the trash.
    Click and drag files beginning with com.hp to the trash.
    Click and drag files beginning with HP to the trash.
    Double-click the Macintosh Hard Disk.
    Open the Applications folder.
    Open the Utilities folder.
    Double-click Printer Setup Utility.
    Delete any HP All-In-One printers listed (click the printer name to
    highlight it, then click the Delete button on the printer list)
    Repeat process for all HP All-In-One Printers.
    Remove HP Director/Image Zone from dock by dragging to the trash.
    Restart the Macintosh.
    Empty the Trash.
    From each user account:
    Double click Macintosh Hard Disk.
    Open the Users folder.
    Choose the User logged into.
    Open the Library folder.
    Open the Preferences folder.
    Click and drag either HP AIO Preferences or Hewlett Packard Preferences
    to the trash.
    Click and drag files beginning with com.hp to the trash.
    Click and drag files beginning with HP to the trash.
    Double-click the Macintosh Hard Disk.
    Open the Applications folder.
    Open the Utilities folder.
    Double-click Printer Setup Utility.
    Delete any HP All-In-One printers listed (click the printer name to
    highlight it, then click the Delete button on the printer list)
    Repeat process for all HP All-In-One Printers.
    Remove HP Director/Image Zone from dock by dragging to the trash.
    Restart the Macintosh.
    Empty the Trash.
    From the Administrator account:
    Download and install the latest software for this product. You can
    obtain this software from the following link:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?lc=en&cc=us⟨=en&os=219& product=64992&dlc=en&softwareitem=oj-35225-1
    From each user account:
    Double-click the Macintosh Hard Disk.
    Open the Applications folder.
    Open the Utilities folder.
    Double-click Printer Setup Utility.
    Click Add, ensure you are in the Default Browser.
    Select the HP All-In-One Printer.
    Click Add at the bottom-right corner of the screen.
    Set this printer as the default.
    You should now be able to print from all accounts.
    Sincerely,
    2. The reasons why it may not have worked:
    We need to be sure that you are fully logging out of one account and
    then back into the next. The fast user switching feature of the Mac OS
    can create problems with our printer drivers. For this reason, fast user
    switching is not supported by HP.
    The other issue we may be running into would be the Mac OS itself. Over
    the past few months the Mac OS has gone through several updates. When
    the 10.4.4 version was released it created some issues with our existing
    software. An updated version of our software has been developed which
    works well with 10.4.4 and higher, but it is not available for this
    printer.
    It may be that as each new OS update is installed on your computers that
    the issue becomes worse. If you are running the Mac OS 10.4.3 or lower
    then the version 7.3.1 of our software should work fine. If it is 10.4.4
    or higher there will be some issues as the new OS versions do not seem
    to like the older drivers.
    I would have to recommend retrying the full uninstall the Derek had
    outlined. This time however, just install the downloaded 7.3.1 software
    from our web site for the D145. Once it has been installed we need to
    test it fully without adding the scanjet software. I am hoping that
    without both version of our software installed it may work better.
    This should resolve the issue. If you need further assistance, please
    reply to this message and we will be happy to assist you further.
    3. The repsonse to questions on switching and OS X 10.4.4
    You are correct, since you are running the 10.4.4 I cannot guarantee
    that the older software version will allow full functionality. It should
    allow for printing and as long as you avoid the fast user switching,
    when trying to print, it should keep working well.
    I understand the convenience of fast user switching but you will have to
    log completely out of one user, and then log properly into the next
    before you can expect the printer to function.
    I would still recommend trying the steps I had outlined as it really is
    the only thing you can do that may work.
    G5, 2 GHz dual processor, 2Gb RAM, 500GB Hard disk   Mac OS X (10.4.3)   Clarification of the issues from HP

  • Issue with the partialTrigger on ADF Table

    Jdeveloper Version 11.1.2.3.0
    I have replicated issue with partialTrigger on the table component. Sample application can be downloaded from here . It needs HR schema to run.
    In below sample pageFragment, I can try refreshing adf table in two ways
    1. Set addEmployee button's id in partialTrigger of ADFTable component.
    2. Set addEmployee button's id in partialTrigger of PanelBox component.
    Note the difference - 1st one doesn't work where as 2nd works fine. Do we have any additional constraints when refreshing ADF table using
    partialTrigger ?
    I replicated the usecase in below example :
    PageFragment Structure -
    PanelBox                         
    |                              
    |__ ADF Table                         
    |                              
    |__toolbar facet                    
    |                              
    |__ addEmployee button                
    PageFragment Code
    <af:panelBox text="PanelBox2" id="pb1">
    <f:facet name="toolbar">
    <af:commandButton actionListener="#{bindings.addEmployee.execute}" text="addEmployee2"
    disabled="#{!bindings.addEmployee.enabled}" id="cb1" partialSubmit="true"/>
    </f:facet>
    <af:table value="#{bindings.EmployeesView1.collectionModel}" var="row" rows="#{bindings.EmployeesView1.rangeSize}"
    emptyText="#{bindings.EmployeesView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.EmployeesView1.rangeSize}" rowBandingInterval="0"
    selectedRowKeys="#{bindings.EmployeesView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.EmployeesView1.collectionModel.makeCurrent}" rowSelection="single" id="t1"
    displayRow="selected" partialTriggers="::cb1" styleClass="AFStretchWidth">
    <af:column sortProperty="#{bindings.EmployeesView1.hints.EmployeeId.name}" sortable="false"
    headerText="#{bindings.EmployeesView1.hints.EmployeeId.label}" id="c1">
    <af:inputText value="#{row.bindings.EmployeeId.inputValue}"
    label="#{bindings.EmployeesView1.hints.EmployeeId.label}"
    required="#{bindings.EmployeesView1.hints.EmployeeId.mandatory}"
    columns="#{bindings.EmployeesView1.hints.EmployeeId.displayWidth}"
    maximumLength="#{bindings.EmployeesView1.hints.EmployeeId.precision}"
    shortDesc="#{bindings.EmployeesView1.hints.EmployeeId.tooltip}" id="it1">
    <f:validator binding="#{row.bindings.EmployeeId.validator}"/>
    <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.EmployeeId.format}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmployeesView1.hints.FirstName.name}" sortable="false"
    headerText="#{bindings.EmployeesView1.hints.FirstName.label}" id="c2">
    <af:inputText value="#{row.bindings.FirstName.inputValue}"
    label="#{bindings.EmployeesView1.hints.FirstName.label}"
    required="#{bindings.EmployeesView1.hints.FirstName.mandatory}"
    columns="#{bindings.EmployeesView1.hints.FirstName.displayWidth}"
    maximumLength="#{bindings.EmployeesView1.hints.FirstName.precision}"
    shortDesc="#{bindings.EmployeesView1.hints.FirstName.tooltip}" id="it2">
    <f:validator binding="#{row.bindings.FirstName.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmployeesView1.hints.LastName.name}" sortable="false"
    headerText="#{bindings.EmployeesView1.hints.LastName.label}" id="c3">
    <af:inputText value="#{row.bindings.LastName.inputValue}"
    label="#{bindings.EmployeesView1.hints.LastName.label}"
    required="#{bindings.EmployeesView1.hints.LastName.mandatory}"
    columns="#{bindings.EmployeesView1.hints.LastName.displayWidth}"
    maximumLength="#{bindings.EmployeesView1.hints.LastName.precision}"
    shortDesc="#{bindings.EmployeesView1.hints.LastName.tooltip}" id="it3">
    <f:validator binding="#{row.bindings.LastName.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmployeesView1.hints.DepartmentId.name}" sortable="false"
    headerText="#{bindings.EmployeesView1.hints.DepartmentId.label}" id="c11">
    <af:selectOneChoice value="#{row.bindings.DepartmentId.inputValue}" label="#{row.bindings.DepartmentId.label}"
    required="#{bindings.EmployeesView1.hints.DepartmentId.mandatory}"
    shortDesc="#{bindings.EmployeesView1.hints.DepartmentId.tooltip}" id="soc1">
    <f:selectItems value="#{row.bindings.DepartmentId.items}" id="si1"/>
    </af:selectOneChoice>
    </af:column>
    </af:table>
    </af:panelBox>
    Thanks,
    Rajdeep

    Hi Frank,
    Indeed it worked. But I have two queries now :
    1. We are adding employee record using a method called through method action Binding. So shouldn't the bindings be aware of the same .. i mean sychonization of binding layer should happen when method action binding is used ?
    2. Why it works when i apply partialTrigger on panelBox ? Why "employeesViewImpl" code is not required when I apply partialTrigger on panelBox ? Is it a concept that iterator is reexecuted when you refresh parent component ?
    Thanks,
    Rajdeep

  • Issues with pagination when using Adobe table with Web dynpro for ABAP

    Hi All,
    I am facing strange issue with table text.
    I have three cols in table, one is of type Char255 and other two cols are of type string.
    The text in the col 1 is displayed perfectly but in other two cols of type string whenever we have pagination the text in table is getting truncated and in next page new row starts.
    Could you please tell me the settings that will enable flowing of text in the row of table to next page.
    Thanks,
    Arti.

    Check the properties of the text field you use for those columns (if you want to control it on this level) or check the same attribute for the row subform (one level up control): "allow page break within content".
    Regards Otto
    p.s.: we all have deadlines... and manage to pay something back. Think about it.

  • Satellite P300-1AN - Touchpad issue with AC adapter

    I've a Satellite P300-1AN notebook and since the beginning (two weeks)
    I have a touchpad issue: it is not immediately responsive and the pointer trembles when touching the pad. Very often it freezes for just one or two seconds.
    This is VERY annoying. A USB mouse works perfectly.
    I tried reinstalling ALPS drivers, tried Synaptics ones, tried just Windows Vista drivers: no way.
    Now I have found the reason: this issue is present only when the notebook is powered by AC adapter.
    With battery the touchpad is perfect.
    I contacted Toshiba Service and thay said that they won't change the AC adapter if I don't try before a complete system restore!
    Isn't it simpler just try with a new adapter and only then, if the problem persists, try more drastic procedures?
    Has anyone had this same issue?

    > I contacted Toshiba Service and thay said that they won't change the AC adapter if I don't try before a complete system restore! Isn't it simpler just try with a new adapter and only then, if the problem persists, try more drastic procedures?
    The point is that your notebook should be always checked using the Toshiba factory configuration.
    Why? Because the ASP wants to be sure that this issue is not related to a software problem (compatibility issue with 3rd party applications). The software issues are not covered by warranty.
    Furthermore the ASP will always recover the notebook before checking any hardware parts for a malfunction. Therefore you should always backup your data from the HDD before you will send the notebook for checking.
    I would recommend to reinstall the OS using the Toshiba recover disk and then check if the issue would appears.
    If yes then you can contact the ASP again and could provide all details which are necessary for an technician.
    Bye

  • Issue with column Total in a table

    Hi All,
    I am facing a strange issue with the column total value in an advanced table. I have enabled Total for a number column in the table, and added a total item in the footer section.
    This is working fine for the small numbers (10 digits) . But for the bigger numbers , once the sum is calculated the sum data is getting populated in one of the fields. This is for numbers with 30 digits.
    Pls suggest a solution for this.
    Thanks!
    Srikanth

    Unbelievable :)
    Numbers with more than 30 digits ?!!!?
    What kind of application is that? ;)
    --Prasanna                                                                                                                                                                                                                       

  • Issue with minidisplay adapter and wifi

    I'm not sure if anyone else is having this issue, but my gf is having an issue when she connects her 13" macbook pro to her monitor via the minidisplay dvi adapter. When she connects it her wifi disconnects and has no internet access at all, but when she disconnects it the internet comes right back on. She's using a generic adapter but what would that have to with the wifi? She uses a linksys G router and is using 10.6.1

    This thread caught my attention - because since switching last week from a late '06 Macbook to the Macbook Pro 13", my Wifi performance at home has gotten slow and unreliable.
    I'm using the Apple MiniDP-DVI adapter, connected to a 24" Dell monitor, which has worked great for a few years on my white Macbook. My base station is a Linksys WRTSL54GS, located about 20 feet away from my desk.
    So, I tried some speed tests with and without the DVI. Performance with the adapter connected is terrible, disconnected it's perfect. Further testing shows that positioning matters.
    When the adapter is turned back 90 degrees, leading the monitor cable towards the back of my desk, Wifi performance is bad. When I turn the adapter so it sticks straight out the left side of the Macbook Pro, performance is normal.
    This is a little weird, but an acceptable workaround for me.

  • Issue With Apps Adapter JDev 11.1.1.3

    Hi ,
    We are facing some issue with Oracle Apps Adapter with Jdev 11.1.1.3. The wrappers for PLSql APIs were not properly generated.
    If anyone having such issue/solution pls share the same.
    Thanks In Adv
    Venkata Madhu

    Hi Anuj,
    I sent email to ur official id with the issue details. 1 query i have here, Can i generate wrapper using 10g Adapter and consume in OSB 11.1.1.3?.
    Also some funny issues we are facing with API's. If the API create/modified, immediately we couldn't able to generte the wrapper if generate also, the response is not in xsd defined format.
    But if we re-generate the wrapper after sometime, it work with no issues. Don't why.
    Regards
    Venkata Madhu

  • Issues with FTP adapter

    Hello,
    I m facing issues using the FTP adapter. I am using 10.1.3.1 standalone installed in my desktop.
    1) The FTP adapter doesnt poll continuously for the files. It dies off as soon the folder is empty. If there are incoming files after sometime, the BPEL process fails to pick them. I created an empty BPEL process that has a recieve activity from an FTP adapter as partner link
    2) The files are fetched and deleted but are never archived, despite setting the archive files. Can we not archive those files in another folder of same FTP server ?
    3) Sometimes, the files are deleted, but there is no activity or process shown in the BPEL console.
    Can you please help me with these issues
    Thanks
    Harinath Gandhi

    Are you able to upgrade to 10.1.3.3. A lot of issues with adapters are solved in this release.
    Marc
    http://orasoa.blogspot.com

  • Having issues with patches that require multiple reboots in a task sequence?

    Are you guys having issues doing a build and capture or deployment, while including the recent patches ?
    It looks like another patch is requiring multiple reboots which breaks the task sequence...
    Long story short... the last time I created a .Wim file was in June (with ZTIWindowsUpdate) - it included all the patches as of June 2014. This image has been deployed since then with no problem. All the other monthly patches (07/08/09/10/11/12/01) can be
    installed successfully through the deployment task sequence with no problem.
    Then last week, I decided to create a new .Wim file to include all the patches as of January 2015. In my build and capture step, it exits because one of the updates requires multiple reboot. I checked on the following website and it has not been updated
    since October 22nd : http://support.microsoft.com/kb/2894518
    Do any of you experiences issues with a WSUS that requires multiple reboot recently ?
    Thanks!

    As mentioned, the MDT offline updates task will do it. Add it to your build and capture and it will do the work for you using the updates in an update package that you've previously created. Alternatively, use a stand-alone instance of MDT to create your
    image (using a build and capture TS of course) -- this can then use a stand-alone instance of WSUS to install the updates into your image which you then import into ConfigMgr.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Perf tuning issue with a query involving between clause

    Hi all,
    I am getting issues with performance when I try to execute this query. Given below the query and it is going for a full table scan. I think the problem is with the between clause. But I dont know how to resolve this issue
    SELECT psm.member_id
    FROM pre_stg_member psm
    WHERE psm.map_tran_agn BETWEEN :start_transaction_agn and :end_transaction_agn
    and psm.partition_key = :p_partition_key;
    Having composite index on map_tran_agn and partition_key.
    Please help me in this regard.
    Thanks,
    Swami

    Please consider the following when you post a question.
    1. New features keep coming in every oracle version so please provide Your Oracle DB Version to get the best possible answer.
    You can use the following query and do a copy past of the output.
    select * from v$version 2. This forum has a very good Search Feature. Please use that before posting your question. Because for most of the questions
    that are asked the answer is already there.
    3. We dont know your DB structure or How your Data is. So you need to let us know. The best way would be to give some sample data like this.
    I have the following table called sales
    with sales
    as
          select 1 sales_id, 1 prod_id, 1001 inv_num, 120 qty from dual
          union all
          select 2 sales_id, 1 prod_id, 1002 inv_num, 25 qty from dual
    select *
      from sales 4. Rather than telling what you want in words its more easier when you give your expected output.
    For example in the above sales table, I want to know the total quantity and number of invoice for each product.
    The output should look like this
    Prod_id   sum_qty   count_inv
    1         145       2 5. When ever you get an error message post the entire error message. With the Error Number, The message and the Line number.
    6. Next thing is a very important thing to remember. Please post only well formatted code. Unformatted code is very hard to read.
    Your code format gets lost when you post it in the Oracle Forum. So in order to preserve it you need to
    use the {noformat}{noformat} tags.
    The usage of the tag is like this.
    <place your code here>\
    7. If you are posting a *Performance Related Question*. Please read
       {thread:id=501834} and {thread:id=863295}.
       Following those guide will be very helpful.
    8. Please keep in mind that this is a public forum. Here No question is URGENT.
       So use of words like *URGENT* or *ASAP* (As Soon As Possible) are considered to be rude.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Classloader issue with resource adapter and webservice

    The following applications are planned to be deployed on the server.
    1.My-shared-lib.ear (J2EE shared library).
    2.My-Service-ear.ear (Service)
    3.My-Resource-Adapter.rar
    The My-shared-lib.ear contains a war which has 3rd Party jars.
    The My-Service-ear.ear contains the service classes and refers to the My-shared-lib.ear using a library relationship. In our case, it refers to spring, Hibernate and related jars.
    The My-Resource-Adapter.rar contains the Resources Adapters. In this case it contains the Spring jars.
    Points on Setup
    1.The configuration does not specify any jars in the classpath.
    2.There are no 3rd party jars in the ext folder.
    *2.Issue Description*
    Issue while starting the Service EAR.*
    The development setup has an application server that has My-shared-lib.ear and My-Service-ear.ear deployed. This works fine.
    The proposed deployment architecture mandates that these applications be deployed on a server where the My-Resource-Adapter.rar is already running. We can deploy & start My-shared-lib.ear . However, when we try to deploy and start My-Service-ear.ear, it fails to start with the error. The detailed exception is found in Appendix A.
    Error Message:
    java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence
    *3.Options tried*
    1.Place all the required jars in the .rar.
    We placed all the 3rd party jars required for the My-Service-ear.ear in the My-Resource-Adapter.rar file. When we deployed all the 3 applications, all applications including the My-Service-ear.ear were deployed and started as well.
    2.Place all the required jars in the Service ear.
    We placed all the 3rd party jars required for the My-Service-ear.ear in the My-Service-ear.ear file with the <prefer-web-inf-classes>true</prefer-web-inf-classes>. When we deployed all the 3 applications, all applications including the My-Service-ear.ear were deployed and started as well.
    3.Altering deployment order.
    The deployment order was altered with a higher preference being given to the My-Service-ear.ear. When we deployed all the 3 applications, the application My-Service-ear.ear was deployed but failed to start giving the same exception.
    *4.Analysis*
    1.The spring jar though available in the library ear is being loaded from the .rar application by the classloader.
    2.The above point means that the library reference being provided in the My-Service-ear.ear does not seem to have any impact.
    3.In the 3rd scenario we observed that when the spring is removed from the .rar, it gets loaded from the My-shared-lib.ear. However when it tries to load Hibernate related classes, it fails.
    *5.Summary*
    Our understanding is that all the applications run within their own Classloaders. If classes are not found within the applications, then they should be looking at the Application Server. But here we see that they are referring to the classes in ‘.rar’ file. Hence we are unable to understand this issue. The above problem has workarounds. However, these options are not allowed as per the requirement. The requirement is that the application should run independent of the’ .rar’. Is there a better approach? Are we missing any configuration?
    Edited by: user8575867 on Oct 13, 2010 11:41 PM

    This thread caught my attention - because since switching last week from a late '06 Macbook to the Macbook Pro 13", my Wifi performance at home has gotten slow and unreliable.
    I'm using the Apple MiniDP-DVI adapter, connected to a 24" Dell monitor, which has worked great for a few years on my white Macbook. My base station is a Linksys WRTSL54GS, located about 20 feet away from my desk.
    So, I tried some speed tests with and without the DVI. Performance with the adapter connected is terrible, disconnected it's perfect. Further testing shows that positioning matters.
    When the adapter is turned back 90 degrees, leading the monitor cable towards the back of my desk, Wifi performance is bad. When I turn the adapter so it sticks straight out the left side of the Macbook Pro, performance is normal.
    This is a little weird, but an acceptable workaround for me.

  • Issues with Receive Adapter receiving a file that has not completed uploading while send multiple files on the Send Adapter

    Hello,
    I am only a few weeks old into BizTalk so I am new to this application. 
    The pieces I have for my development environment consists of the following:
    FTP Server ---[SFTP Adapter]---> BizTalk 2013 ---[FILE Adapter]---> Internal Network Share Drive
    I currently configured a simple PassThru, One way Receive/Send in BizTalk where the Receive Port receives a file via SFTP 
    Adapter from our FTP server and the Send Port sends the file via the FILE Adapter to our Internal Network share drive. 
    The setup works great with small files.  However, when I receive a large file on the FTP server, the Send Port sends multiple instances of the file on the FTP server because the Receive Adapter sees that the file is there, but not yet
    fully uploaded.
    Can someone please guide me as to how I can determine when a file is fully uploaded to the FTP server before the Receive Adapter fires?
    Thanks,
    Mitch

    Yap BizTalk does not have control over locking the file during read/write Operation and its the third party which need to take care of this (by rename the file after upload ) .
    If the file size is too large I would suggest to bypass the message box as it has performance bottleneck during peak hours 
    Apart from being repetitive, this is not good advice.  There is no indication that the file is too large or will cause any "performance" issues.
    The concurrency problem can happen with a file of any size.

Maybe you are looking for