Urgent: Performance problem with where clause using IN and an OR condition

Select statement is:
select fl.feed_line_id
from ap_expense_feed_lines_all fl
where ((:1 is not null and
fl.feed_line_id in (select distinct r2.object_id
from xxdl_pcard_wf_routing_lists r2,
     per_people_f hr2
where upper(hr2.full_name) like upper(:1||'%')
          and hr2.person_id = r2.person_id
and r2.fyi_list is null
          and r2.sequence_number <> 0))
or
(:1 is null))
If I modify the statement to remove the "or (:1 is null))" part at the bottom of the where clause, it returns in .16 seconds. If I modify the statement to only contain the "(:1 is null))" part of the where clause, it returns in .02 seconds. With the whole statement above, it returns in 477 seconds. Anyone have any suggestions?
Explain plan for the whole statement is:
(1) SELECT STATEMENT CHOOSE
Est. Rows: 10,960 Cost: 212
FILTER
(2) TABLE ACCESS FULL AP.AP_EXPENSE_FEED_LINES_ALL [Analyzed]
(2) Blocks: 8,610 Est. Rows: 10,960 of 209,260 Cost: 212
Tablespace: APD
(6) TABLE ACCESS BY INDEX ROWID HR.PER_ALL_PEOPLE_F [Analyzed]
(6) Blocks: 4,580 Est. Rows: 1 of 85,500 Cost: 2
Tablespace: HRD
(5) NESTED LOOPS
Est. Rows: 1 Cost: 4
(3) TABLE ACCESS FULL XXDL.XXDL_PCARD_WF_ROUTING_LISTS [Analyzed]
(3) Blocks: 19 Est. Rows: 1 of 1,303 Cost: 2
Tablespace: XXDLD
(4) UNIQUE INDEX RANGE SCAN HR.PER_PEOPLE_F_PK [Analyzed]
Est. Rows: 1 Cost: 1
Thanks in advance,
Peter

Thanks for the reply, but I have already checked what you are suggesting and I am pretty sure those are not causing the problem. The hr2.full_name column has an upper index and the (4) line of the explain plan shows that index being used. In addition, that part of the query executes on its own quickly.
Because the sql is not displayed in an indented format on this page it is a little hard to understand the structure so I am going to restate what is happening.
My sql is:
select a_column
from a_table
where ((:1 is not null) and a_column in (sub-select statement)
or
(:1 is null))
The :1 bind variable is set to a varchar2 entered on the screen of an application.
If I execute either part of the sql without the OR condition, performance is good.
If the :1 bind variable is null with the whole sql statement (so all rows or a_table are returned), performance is still good.
If the :1 bind variable is a not-null value with the whole sql statement, performance stinks.
As an example:
where (('wa' is not null) and a_column in (sub-select statement)) -- fast
where (('wa' is null)) -- fast
where (('' is not null) and a_column in (sub-select statement) -- fast
or
('' is null))
where (('wa' is not null) and a_column in (sub-select statement) -- slow
or
('wa' is null))

Similar Messages

  • 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.

  • Merge with where clause after matched and unmatched

    Hai,
    Can anybody give me one example of merge statement with
    where clause after matched condition and after the unmatched condition.
    MERGE INTO V1 VV1
    USING (SELECT     A.CNO XXCNO, A.SUNITS XXSU, A.DDATE XXDD, XX.SUM_UNITS SUMMED
    FROM V1 A,
    (SELECT                
    SUM(SUNITS) SUM_UNITS FROM V1 B                                   
    GROUP BY CNO) c
    WHERE
    A.DDATE=0 AND A.SUNITS <>0 AND
    A.ROWID=(SELECT MAX(ROWID) FROM V1 )) XX
    ON (1=1)
    WHEN MATCHED THEN UPDATE SET
    VV1.SUNITS=XX.SUMMED
    WHERE XX.XXDD=0
    WHEN NOT MATCHED THEN INSERT
    (VV1.CNO, VV1.SUNITS, VV1.SUNITS)
    VALUES (XX.XXCNO, XX.XXSU, XX.XXDD)
    WHERE XX.XXDD<>0
    i am getting the error
    WHERE XX.XXDD=0
    ERROR at line 13:
    ORA-00905: missing keyword
    Thanks,
    Pal

    One of the example is there:
    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/statements_9016.htm#sthref7014
    What Oracle version do you use ?
    Besides the condition (1=1) is non-deterministic,
    I would expect there an exception like "unable to get a stable set of rows".
    Rgds.

  • Performance Problems with MS IE 6.0 and EP 7.0 (2004s)

    Hello,
    we have a problem with ie 6.0 webbrowser and EP 7.0 (2004s). When we open for example the theme editor in the ep-system-administration site we must wait with MS ie 6.0 webbrowser ~ 18s for the site opening. With firefox 2.0 we can open the theme editor with ~ 1s.
    Have/Had anybody the same problem? - Or is this a knowing problem with ie 6.0.
    We used for the network analyse the tool: httpwatch 3.2. We can see, that the ie 6.0 must wait into the all-time of 18sec. 13sec for opening the site: emptyhover.html.
    - Thanks in advance for a tip !
    Best Regards,
    Ralf

    Hello Ameya and hello Shao,
    we use the version SP12 NW 2004s. We have the this problems with a base application of portal: theme editor.
    We can see in the httpWatch 3.2 analysis tool, that the ie 6.0 load a much of cache files from the client webbrowser. Could it be this problem? - I red in this forum problems with the webbrowser-parameter: "Empty Temporary Internet Files folder when browser is closed"
    Thank you for your helping.
    Best Regards,
    Ralf

  • Performance problems with SAP GUI 7.10 and BEx 3.5 Patch 400?

    Hi everybody,
    we installed SAP GUI 7.10 and BEx 3.5 Patch 400 and detected hugh performance problems with this version in comparison to the SAP GUI 6.40 and BEx 3.5 or BEx 7.0 Patch 800.
    Does anybody detect the same problems?
    Best regards,
    Ulli

    Most important question when you are talking about performance-issues:
    which OC are you working on and which excel version?
    ciao
    Joke

  • Problems with WHERE CLAUSE in selects executed by BAPIs

    Dear Experts,
    I'm trying to make a SAP Java Connector. My problem is that, when they are called by Java, BAPI functions don't run in the same manner as in SAP testing mode .
    I tested two BAPI functions called through my connector and I saw with the debbuger that BAPI functions don't execute the select and loop at with a WHERE clause when they are called by Java, therefore they throw errors. But in the SAP testing mode functions work just fine.
    I'm  new to SAP and I don't know why this happens. Would you like to explain to me how to fix this problem?
    Thank you very much.
    Kind regards,
    Maricica

    979380 wrote:
    Yeah,i m sorry.I m a forum newbie.All right,we ve been given an oracle account for the purpose of this project,an we have connect to the oracle database either via linux terminal with sqlplus,or via oracle client and plsql.So i have to create some tables,then fill these tables with tuples(we ve been given fixed .sql files to do that),and we re suggested to do that from the linux terminal.I did that successfully.Then we have to run some queries either in terminal or plsql.I chose plsql.I connect,i can see the tables that i have created but when i run(in both sql and terminal window) for example the query "select * from table_1",i take 0 rows as a result.I tested to run the query from terminal(with sqlplus) to see if the tables are really empty,but i recieve the results as i should.
    I am sorry for my chaotic writing but i cant even explain the problem to myself better and i m not a native.
    (im using oracle version 11.2.0.1, this is the first time i m using oracle databases and i m a rookie in databases in general)
    Edited by: 979380 on 1 Ιαν 2013 10:33 πμ
    [oracle@localhost ~]$ sqlplus user1/user1
    SQL*Plus: Release 11.2.0.2.0 Production on Tue Jan 1 11:19:29 2013
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create table table_1 (id number);
    Table created.
    SQL> select * from table_1;
    no rows selected
    SQL> insert into table_1 values(1);
    1 row created.
    SQL> select * from table_1;
            ID
             1
    SQL> in order to SELECT any rows from any table, first you must INSERT data into the table!
    is COPY & PASTE broken for you?

  • Performance Problem with File Adapter using FTP Conection

    Hi All,
    I have a pool of 19 interfaces that send data from R/3 using RFC Adpater, and these interfaces generate 30 TXT files in a target Server. I'm using File Adapters as Receiver Comunication Channel. It's generating a serious perfomance problem. In File Adpater I'm using FTP Conection with Permanently Conection, Somebody knows if PERMANENTLY CONECTION is the cause of performances problem ?
    These interfaces will run once a day with total of 600 messages.
    We still using a Test Server with few messages.

    Hi Regis,
        We also faced teh same porblem. Whats happening is that when the FTP session is initiated by the file adapter, then its getting done from teh XI server. Hence the memory of the server is also eaten up. Why dont you give a try by using 'per file transfer'.
        If this folder to which you are connecting is within your XI server network then you can mount(or map) that drive to the XI server and use it with a NFS protocol of the file adapter and thereby increasing the performance.
    Cheers
    JK

  • Derive found flag in SQL with where clause using TABLE(CAST function

    Dear All,
    Stored procedure listEmployees
    ==========================
    CREATE OR REPLACE TYPE STRING_ARRAY AS VARRAY(8000) OF VARCHAR2(15);
    empIdList STRING_ARRAY
    countriesList STRING_ARRAY
    SELECT EMP_ID, EMP_COUNTRY, EMP_NAME, FOUND_FLAG_
    FROM EMPLOYEE WHERE
    EMP_ID IN
    (SELECT * FROM TABLE(CAST(empIdList AS STRING_ARRAY))
    AND EMP_COUNTRY IN
    (SELECT * FROM TABLE(CAST(countriesList AS STRING_ARRAY))
    =================
    I have a stored procedure which lists the employees using above simple query.
    Here I am using table CAST function to find the list of employees in one go
    instead of looping through each and every employee
    Everything fine until requirements forced me to get the FOUND_FLAG as well.
    Now I wanted derive the FOUND_FLAG by using rownum, rowid, decode functions
    but I was not successful
    Can you please suggest if there is any intelligent way to say weather the
    row is found for given parameters in the where clause?
    If not I may have to loop through each set of empIdList, countriesList
    and find the values individually just to set a flag. In this approach I can’t use
    the TABLE CAST function which is efficient I suppose.
    Note that query STRING_ARRAY is an VARRAY. It is very big in size and this procedure
    suppose to handle large sets of data.
    Thanks In advance
    Regards
    Charan
    Edited by: kmcharan on 03-Dec-2009 09:55
    Edited by: kmcharan on 03-Dec-2009 09:55

    If your query returns results, you have found them... so your "FOUND" flag might be a constant,...

  • [URGENT] Performance problem with BC4J and partioned data

    Hi all,
    I have a big performance probelm with BC4J and partitioned data. As as partitioned table shouldn't have a primary key like a sequence (or something else) my partitioned table doesn't have any primary key.
    When I debug my BC4J application I can see a message showing me "ignoring row with no primary key" from EntityCache. It takes a long time to retrieve my data even if I use the partition keys. A quick & dirty forms application was multiple times faster!
    Is this a bug in BC4J, or is BC4J not suitable for partitioned data? Can anyone give me a hint what to do, do make the BC4J application fast even with partitioned data? In a non-partitioned environment the application works quite well. So it seams that it must be an "error" somewhere in this part.
    Thanks,
    Axel

    Here's a SQL statement that creates the table.
    CREATE TABLE SEARCH
    (SEAR_PARTKEY_DAY              NUMBER(4)        NOT NULL
    ,SEAR_PARTKEY_EMP            VARCHAR2(2)      NOT NULL
    ,SEAR_ID                     NUMBER(20)       NOT NULL
    ,SEAR_ENTRY_DATE             TIMESTAMP        NOT NULL
    ,SEAR_LAST_MODIFIED            TIMESTAMP             NOT NULL
    ,SEAR_STATUS                 VARCHAR2(100)    DEFAULT '0'
    ,SEAR_ITC_DATE               TIMESTAMP        NOT NULL
    ,SEAR_MESSAGE_CLASS          VARCHAR2(15)     NOT NULL
    ,SEAR_CHIPHERING_TYPE        VARCHAR2(256)   
    ,SEAR_GMAT                   VARCHAR2(1)      DEFAULT 'U'
    ,SEAR_NATIONALITY            VARCHAR2(3)      DEFAULT 'XXX'
    ,SEAR_MESSAGE_ID             VARCHAR2(32)     NOT NULL
    ,SEAR_COMMENT                VARCHAR2(256)    NOT NULL
    ,SEAR_NUMBER_OF              NUMBER(3)        NOT NULL
    ,SEAR_INTERCEPTION_SYSTEM    VARCHAR2(40)    
    ,SEAR_COMM_PRIOD_H           NUMBER(5)        DEFAULT -1
    ,SEAR_PRIOD_R                  NUMBER(5)        DEFAULT -1
    ,SEAR_INMARSAT_CES           VARCHAR2(40)    
    ,SEAR_BEAM                   VARCHAR2(10)    
    ,SEAR_DIALED_NUMBER          VARCHAR2(70)    
    ,SEAR_TRANSMIT_NUMBER        VARCHAR2(70)    
    ,SEAR_CALLED_NUMBER          VARCHAR2(40)    
    ,SEAR_CALLER_NUMBER          VARCHAR2(40)    
    ,SEAR_MATERIAL_TYPE          VARCHAR2(3)      NOT NULL
    ,SEAR_SOURCE                 VARCHAR2(10)    
    ,SEAR_MAPPING                VARCHAR2(100)    DEFAULT '__REST'
    ,SEAR_DETAIL_MAPPING         VARCHAR2(100)
    ,SEAR_PRIORITY               NUMBER(3)        DEFAULT 255
    ,SEAR_LANGUAGE               VARCHAR2(5)      DEFAULT 'XXX'
    ,SEAR_TRANSMISSION_TYPE      VARCHAR2(40)    
    ,SEAR_INMARSAT_STD           VARCHAR2(1)     
    ,SEAR_FILE_NAME              VARCHAR2(100)    NOT NULL
    PARTITION BY RANGE (SEAR_PARTKEY_DAY, SEAR_PARTKEY_EMP)
      PARTITION SEARCH_MAX VALUES LESS THAN (MAXVALUE, MAXVALUE) MIRA4_SEARCH_EVEN
    );of course SEAR_ID is filled by a sequence but the field is not the primary key as it would decrease the performance of partitioned data.
    We moved to native JDBC with our application and the performance is like we never expected to be!

  • Please Help! Problem with 'whistle' when using Audition and Premeire Pro 1.5 with Audigy

    I hope someone can help with this problem. The start of these messages is at the bottom. Any suggestions would be most welcome...Bill Allen
    Hi David (00)... Thanks for your reply. I just wanted to let you know
    that I am going to post all of this correspondence on as many Creative
    forums that I can find in hopes of finding someone that help with this
    problem.
    I will advise you of the results
    Thanks again...Bill Allen
    ----- Original Message -----
    From: "Creative Americas Customer Support"
    To: "Bill Allen"
    Sent: Saturday, February , 2006 :39 AM
    Subject: Re: Creative System Information (English : Adobe Premeire Pro .5
    and Adobe Audition) (KMM987992I6636L0KM)
    > Sir,
    >
    > The only time that I've see a random tone being generated as you
    > decribe, it was necessary to update the system bios to correct.
    >
    > While we are able to playback and record with the card and it's included
    > software, Adobe continues to not allow you to monitor what you're
    > recording. As best we can tell, there's nothing wrong with the card and
    > I would urge you to check with Adobe for any "monitor recording"
    > switches that may be in their software.
    >
    > For faster service please reply with previous correspondence when
    > replying to this email.
    >
    > Best Regards
    > ,
    >
    > David (00)
    > Team Specialist
    >
    > Technical Support
    > Creative Labs Americas
    >
    >
    >
    > To provide feedback on your "Creative Experience" please click on the
    > following link:
    >
    Link removed
    >
    > This link is provided so that you may provide feedback on your "Creative
    > Experience". If you require further troubleshooting or have additional
    > questions simply reply to the original mail and we will be glad to
    > assist you.
    >
    > Original Message Follows:
    > ------------------------
    > Jeen... I appreciate, very much, your reply. But I don't appreciate
    > trying
    > to be 'ping ponged' back and forth between Creative and Adobe. While I
    > realize that you can only deduce a solution from what I tell you, I
    > believe
    > that if you re-read my description of the problem you will realize that
    > the
    > problem is with the sound card and it's associated software. Otherwise
    > why
    > would the system work as expected when it it turned on the next morning?
    >
    > I would also like to know where the 'tone' comes from. When recording
    > video segment (with audio) through the firewire connection of the
    > Creative Audidgy 2ZS card, after a short while the audio is replaced with a
    > constant tone (as I said, it is about 200 Hz). If I record the video thru the
    > Firewire connection and the audio through the 'Line-In' connection,
    > there is no problem with the recording the audio track 'tone free'. However,
    > sometimes but not always, when the audio is played back the tone will
    > appear. This has happened with both Adobe Premeire Pro .5 and Adobe
    > Audition. It is not in the audio track of Adobe Premeire Pro .5 or
    > Adobe Audition, so the problem must lie with the Creative Audigy 2ZS card or
    > it's associated software. I'm sure your audio engineers have knowledge of
    > this problem and I would appreciate an answer.
    >
    > Thanks...Bill Allen
    >
    > ----- Original Message -----
    > From: "Creative Americas Customer Support"
    >
    > To: "Bill Allen"
    > Sent: Friday, February 0, 2006 2:5 AM
    > Subject: Re: Creative System Information (English : Adobe Premeire Pro
    > .5
    > and Adobe Audition) (KMM9780I6636L0KM)
    >
    >
    >> Dear Bill,
    >>
    >> Thank you for replying back to Creative Technical Support.
    >>
    >> With regards to your issue, I understand that you are having
    > difficulty
    >> getting the audio to record from the applications Adobe Premiere Pro
    > .5
    >> and therefore not sound during the playback.
    >>
    >> As you have verified that the sound card is working properly with the
    >> other applications on recording or playback, this could be due to the
    >> improper setup for the audio in the Premiere Pro .5.
    >>
    >> You may like to refer to Adobe for assistance on the configuration of
    >> the audio settings as we are not in a better position to advise you on
    >> third party software.
    >>
    >> Should you have not sound or issues with our software, please feel
    > free
    >> to contact us so that we can assist you.
    >>
    >> For faster service please reply with previous correspondence when
    >> replying to this email.
    >>
    >> Best Regards
    >> ,
    >>
    >> Jeen
    >> Technical Support
    >> Creative Labs Americas
    >>
    >>
    >>
    >> To provide feedback on your "Creative Experience" please click on the
    >> following link:
    >>
    Link removed
    >>
    >> This link is provided so that you may provide feedback on your
    > "Creative
    >> Experience". If you require further troubleshooting or have additional
    >> questions simply reply to the original mail and we will be glad to
    >> assist you.
    >>
    >> Original Message Follows:
    >> ------------------------
    >> Ronshone... Thanks for your reply.
    >>
    >> Here is the information you requested:
    >>
    >> Sound Blaster Audigy 2ZS
    >> PID: 0 03 50 00 00 00 02
    >> Driver Ver: 2.8.4
    >> Firmware : 0.0.0
    >> Model: SB.0350
    >> Serial Number: MSB0350472004288E
    >> Ink stamp: 50SPT470D
    >>
    >> The Audigy 2ZS is the only sound card installed
    >> The Audigy 2ZS card is at least one slot away from the graphics card.
    >> The Audigy 2ZS card is one slot away from another card.
    >> The Audigy 2ZS card is properly seated in the PCI slot.
    >> The PC's internal wires have been moved away from the Audigy 2ZS card
    > .
    >> The 'on-board' sound is disabled thru the BIOS.
    >> The 'on-board' game port is disabled thru the BIOS.
    >> The XP Pro operating system is up to date with all updates.
    >> There were no background operation going at the time of the tests.
    >> The anit-virus program was closed
    >> The CPU is not overclocked.
    >> And, I am the Administrator.
    >>
    >> The card came in a Creative retail Box along with the input unit that
    >> mounts
    >> in the dri've bay. I can't recall what that is called.
    >>
    >> I have relocated the sound card to a slot that is 4 slots away from
    > the
    >> graphics card and slot away from another card, in this case an
    >> additional
    >> IDE dri've controller.
    >>
    >> I have performed the test you outlined. I found that I had to record
    >> using
    >> the 'line in' source input. And I had to playback using the 'wave'
    >> source.
    >> As far as that test is concerned, everything worked. However when I
    >> bring
    >> up Adobe Premeire Pro .5 I do not hear the audio when capturing, and,
    >> even
    >> though the audio meters in Premeire Pro in indicate that there is
    > audio
    >> playing from the audio track on playback, I hear nothing from the
    >> speakers.
    >>
    >> I then brought up the Creative Speaker Settings requester and did a
    >> diagnostic test. All tests indicated "pass". But when I click on the
    >> 'Speaker Settings' and perform the 'Speaker Test' I hear nothing. I
    >> should
    >> add that in both mixers, the Creative Surround Mixer and the Play
    >> Control
    >> mixer, all inputs and outputs are selected (not muted). Also when I
    >> performed this same test yesterday the 'Speaker Test' worked fine.
    >>
    >> On rebooting, the 'Windows XP' sound is heard from the speakers.
    >> Bringing
    >> up Adobe Premeire Pro .5, the audio played as expected. The 'Speaker
    >> Test'
    >> in the Creative Surround Mixer also worked as expected.
    >>
    >> I then recorded the rest of my program using the Adobe Premeire Pro
    > .5
    >> 'Capture' requester and when I tried to playback from within Adobe
    >> Premeire
    >> Pro .5 all I got was a constant tone (about 200 Hz), even though the
    >> audio
    >> meters in Adobe Premeire Pro .5 indicated that the audio was good and
    >> had
    >> no constant tone.
    >>
    >> I rebooted the computer and brought up Adobe Premeire Pro .5 and my
    >> program. Without making any changes to either mixers, Adobe Premeire
    > Pro
    >> .5
    >> performed, and the sound played, as expected. In the 'Play Control'
    >> mixer
    >> only the 'wave' was acti've. All the rest were muted. It was the same
    >> for
    >> the 'Creative Surround Mixer'.
    >>
    >> I am at a loss as to what the problem is. Any help would be
    >> appreciated.
    >>
    >> ...Bill Allen
    >> ----- Original Message -----
    >> From: "Creative Americas Customer Support"
    >> @customercare.creative.com
    >> To: "Bill Allen"
    >> Sent: Monday, February 06, 2006 9:42 PM
    >> Subject: Re: Creative System Information (English : Adobe Premeire Pro
    >> .5
    >> and Adobe Audition) (KMM933384I6636L0KM)
    >>
    >>
    >> Dear Bill,
    >>
    >> Thank you for contacting Creative Technical Support.
    >>
    >> With regards to the issue you are having, I would really appreciate it
    >> if you can provide me with the model number of the sound card. It
    >> should
    >> start with CT or SB followed by 4 numbers found on the sound card. I
    >> also need the serial number which can be found on the sticker and the
    >> ink stamp which is printed on the back of the card. This number will
    >> not
    >> be located on any of the stickers and it will not be labeled. It is a
    >> number that has been stamped on the card itself, possibly near the
    >> outer
    >> edge of the card to determine the best advice for you.
    >>
    >> Did the sound card come pre-installed in the PC, comes in a plastic
    >> cover or brown box or did it come in a Creative retail box package?
    >>
    >> Below is a link that may help with the location of the model number.
    >>
    >> Run a keyword search for SID2456 from the link below.
    >>
    Link removed
    >>
    >> I also need you to try the following recording test.
    >>
    >> SELECT THE RECORDING SOURCE IN SURROUND MIXER
    >> . Go to Start Programs Creative SB Audigy Surround Mixer
    >> 2. Click on the Recording Source (should be on the right side of the
    >> mixer under the REC label)
    >> 3. Change the recording source to Analog Mix
    >> 4. Mute the other analog sources (Mic, CD Audio, Auxiliary, Tad, PC
    >> speaker) that you don't want recorded with the audio stream.
    >> 5. You may wish to select "record without monitoring" by click on the
    >> (+) above the Analog Mix recording source. This keeps the source from
    >> playing out to speakers while recording
    >>
    >> TEST RECORD THE AUDIO
    >> . Go to Start Programs Accessories Multimedia Sound Recorder.
    >> 2. Click the Record button (red dot)
    >> 3. Talk into the microphone
    >> 4. Let it record the source for a little bit
    >> 5. Hit the Stop button (black square)
    >> 6. Hit the play button (single arrow pointing right)
    >> 7. You should now hear the audio that you recorded.
    >>
    >> If you are still having issues, I recommend you to ensure the
    > following
    >> for the audio installation and test:
    >>
    >> - The card is the only card installed other than the Graphics card.
    >> - The card is at least one empty slot away from the Graphics card.
    >> - Place the soundcard away from all the others.
    >> - That the card is seated properly in the PCI slot.
    >> - Move the PC's internal wires away from the soundcard.
    >> - That the on-board sound on your motherboard is disabled through the
    >> BIOS.
    >> - That the on-board gameport is disabled through the BIOS.
    >> - That your motherboard BIOS is up-to-date.
    >> - That the operating system is up-to-date with the latest service
    > packs
    >> and patches.
    >> - That there are no background applications open when you attempt the
    >> solution.
    >> - That the anti-virus program is disabled.
    >> - That if you are over-clocking your system, return all options to
    >> their
    >> recommended settings.
    >> - That you access the PC with administrator rights.
    >>
    >> Do reply back to me if you are still having problems with any error
    >> messages prompted. Thanks.
    >>
    >> For faster service please reply with previous correspondence when
    >> replying to this email.
    >>
    >> Best Regards
    >> ,
    >>
    >> Ronshone
    >> Technical Support
    >> Creative Labs Americas
    >>
    >>
    >>
    >> To provide feedback on your "Creative Experience" please click on the
    >> following link:
    >>
    Link removed
    >>
    >> This link is provided so that you may provide feedback on your
    >> "Creative
    >> Experience". If you require further troubleshooting or have additional
    >> questions simply reply to the original mail and we will be glad to
    >> assist you.
    >>
    >> Original Message Follows:
    >> ------------------------
    >> User Detail
    >> ----------------------------------------
    >> Name : Bill Allen
    >> Email Address : [email protected]
    >> Self Description : Intermediate PC User
    >>
    >> Creative Product Information
    >> ----------------------------------------
    >>
    >> Problem Type : I need help with a third-party software application
    >>
    >> Problem lies with:
    >> ----------------------------------------
    >> Adobe Premeire Pro .5 and Adobe Audition
    >>
    >> Customer's System Specification
    >> ----------------------------------------
    >>
    >>
    >> Detailed Problem Description
    >> ----------------------------------------
    >> I can hear sound from my computers speakers. The diagnostic tests
    >> performed by the Creative software are all "OK", but I cannot record
    >> audio with either of the two programs mentioned above. I have checked
    >> everything I can think of and all of the settings appear to be "OK".
    > I
    >> have also updated the driver for the sound card. What can I do?
    >>
    >> Attachment :
    >> [ Attachment Type: application/octet-stream Name: CTSi.cab]

    TeamRacing6 wrote:
     b noir,
    I can get itunes to start if I disable Bonjour or if I "repair" it first. Sometimes I can repair Bonjour though add/remove programs, sometimes it will only "repair" using WinRar. Sometimes I have to "repair" Bonjour 2 or 3 times to get iTunes to start.
    I have tried uninstalling and reinstalling at least a dozen times. I have tried redownloading iTunes at least 5 times and from different links. This leads me to believe that the dnssd.dll file is not itself corrupt, but this newest version is causing a conflict with XP somewhere somehow.
    Team, iTunes 10.2.2.12 has just been released. I installed it and checked, and BonJour's been updated to version 2.0.5.0, and there's a new 2.0.5.0 version of dnssd.dll on my system. So I reckon it's worth a try updating to that to see if it's of any help with your trouble.

  • Problem with Join Queries using PHP and an Orcale Database

    Ok, I am trying to build a simple php querying tool for my oracle database and for the most part it is working however I am having a problem getting data from my join queries. If I run the following query :
    QUERY:
    SELECT lastfirst,EnteredBy,Debit FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
    RESULT SET:
    Lastfirst     EnteredBy     Debit
    caiu, test      204     1
    But when I run the query correctly I get no results
    QUERY:
    SELECT sts.lastfirst,gl.EnteredBy,gl.Debit FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
    RESULT SET:
    sts.lastfirst     gl.EnteredBy     gl.Debit
    and if I run the query combining the two above methods and adding a field (schoolid) that has the same name on both table I get the following result sets
    QUERY:
    SELECT lastfirst,EnteredBy,Debit,sts.schoolid FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
    RESULT SET:
    lastfirst     EnteredBy     Debit     sts.schoolid
    caiu, test      204     1     
    QUERY:
    SELECT lastfirst,EnteredBy,Debit,schoolid FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
    RESULT SET:
    NONE
    Therefore, I have to have something written incorrectly in my php code and I just can not figure it out. My entire code is pasted below please provide me with an assistance you might have to offer. I have change the odbc_connec line so I could post it to this forum. In addition, I had to phrase out the column headers there for when you write the column headers you have to use ~ instead of , as the separator and then I turn back into the correct format for sql.
    //These scripts just open help windows if somone clicks on the icon
    <script>
    function submit()
    {document.sqlform.submit();}
    </script>
    <script>
    function colwin(){
    window.open("colnames.php",null,"height=300,width=400,scrollbars=1");}
    </script>
    <script>
    function tabwin(){
    window.open("tablenames.php",null,"height=300,width=400,scrollbars=1");}
    </script>
    <script>
    function help(){
    window.open("http://www.w3schools.com/sql/default.asp",null,"height=500,width=700,scrollbars=1");}
    </script>
    <form method="post" action="<?php echo $PHP_SELF;?>" name="sqlform">
    <?php
    //Cookie to check for authorization to the site
    if($_COOKIE['cookie']=="CheckCookieForAuth")
    //These get the values of the textareas after the form has been submitted
    $sqlSELECT = $_POST["SELECT"];
    $sqlFROM = $_POST["FROM"];
    $sqlJOIN = $_POST["JOIN"];
    $sqlWHERE = $_POST["WHERE"];
    $sqlOTHER = $_POST["OTHER"];
    $sqlSELECTTYPE = $_POST["SELECTTYPE"];
    //This is the variable used to parse out my headers the user entered
    $sqlColNames = split('~',$sqlSELECT);
    //This converts the ~ separator to , so I can actually use it as part of my sql string
    $search = array('~');
    $replace = array(',');
    $mystring = $sqlSELECT;
    $sqlString = str_replace($search, $replace, $mystring);
    //These are the textareas and the drop down options that the end users has to create queries
    echo "<table border=0>";
    echo "<tr><td valign='top'>";
    echo "<B>SELECT TYPE</B> <BR><SELECT NAME=SELECTTYPE>
    <OPTION VALUE='SELECT' SELECTED>SELECT</OPTION>
    <OPTION VALUE='SELECT DISTINCT'>SELECT DISTINCT</OPTION>
    <OPTION VALUE='INSERT'>INSERT</OPTION>
    <OPTION VALUE='UPDATE'>UPDATE</OPTION>
    <OPTION VALUE='DELETE'>DELETE</OPTION>
    </SELECT>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=SELECT wrap=physical>$sqlSELECT</textarea>";
    echo "</td><td valign='top'>";
    echo "<img src='images/sqlC.jpg' width='25' height='25' onclick='colwin()'>";
    echo "</td></tr>";
    echo "<tr><td valign='top'>";
    echo "<b>FROM</b>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=FROM wrap=physical>$sqlFROM</textarea>";
    echo "</td><td valign='top'>";
    echo "<img src='images/sqlT.jpg' width='25' height='25' border=0 onclick='tabwin()'>";
    echo "</td></tr>";
    echo "<tr><td valign='top'>";
    echo "<b>JOIN</b>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=JOIN wrap=physical>$sqlJOIN</textarea>";
    echo "</td></tr>";
    echo "<tr><td valign='top'>";
    echo "<b>WHERE</b>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=WHERE wrap=physical>$sqlWHERE</textarea>";
    echo "</td></tr>";
    //This is where the end user would enter group by, having, order by, etc..
    echo "<tr><td valign='top'>";
    echo "<b>OTHER</b>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=OTHER wrap=physical>$sqlOTHER</textarea>";
    echo "</td></tr>";
    This is a run query icon and a help icon
    echo "<tr><td colspan=2 align=right>";
    echo "<img src='images/RunQuery.jpg' width='30' height='28' onclick='submit()'> <img src='images/qm.jpg' border=0 width='25' height='25' onclick='help()'>";
    echo "</td></tr></table>";
    echo "<br>";
    echo "<br>";
    //This is where I connect to my remote oracle database
         $conn=odbc_connect('ODBC_ConnectionName','USERNAME','PASSWORD');
    //This is the sql string created by the end users
         $sql="$sqlSELECTTYPE $sqlString FROM $sqlFROM $sqlJOIN $sqlWHERE $sqlOTHER";
    //This executes the connection string and the sql string
         $rs=odbc_exec($conn,$sql);
    //This will display the query or a message if the query is empty
         if($rs!=NULL){
         echo "<table border=1>";
         echo "<tr>";
    //This loops through the string array the end user enter the field name text area to get column headers
         for($i=0; $i<count($sqlColNames); $i++)
         echo "<td>";
         print_r($sqlColNames[$i]);
         echo "</td>";
         echo "</tr><tr>";
    //This actually fetchs the rows from the statement and then display the data based on the column names the end user speificed
         while (odbc_fetch_row($rs))
              for($i=0; $i<count($sqlColNames); $i++)
                   $results=odbc_result($rs,$sqlColNames[$i]);
                   echo "<td>$results</td>";
              echo "</tr>";
         odbc_close($conn);
         echo "</table>";}else{echo "Results will be displayed here";}
    echo "<br><br>";
    echo $sql;
    else
    echo "Not logged in";
    ?>
    </form>

    This looks more like a SQL question than a PHP issue. There are a couple of JOIN examples at http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10002.htm#i2066611 that might you work through the problem.

  • (Another) problem with custom painting using JApplet and JPanel

    Hi all,
    I posted regarding this sort of issue yesterday (http://forums.sun.com/message.jspa?messageID=10883107). I fixed the issue I was having, but have run into another issue. I've tried solving this myself to no avail.
    Basically I'm working on creating the GUI for my JApplet and it has a few different JPanels which I will be painting to, hence I'm using custom painting. My problem is that the custom painting works fine on the mainGUI() class, but not on the rightGUI() class. My code is below:
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    public class TetrisClone extends JApplet {
         public void init() {
              setSize( 450, 500 );
              Container content = getContentPane();
              content.add( new mainGUI(), BorderLayout.CENTER );
              content.add( new rightGUI() , BorderLayout.LINE_END );
    class mainGUI extends JPanel {
         // Main bit where blocks fall
         public mainGUI() {
              setBackground( new Color(68,75,142) );
              setPreferredSize( new Dimension( 325, 500 ) );
              validate();
         public Dimension getPreferredSize() {
              return new Dimension( 450, 500 );
         public void paintComponent( Graphics g ) {
              super.paintComponent(g);
              // As a test. This shows up fine.
              g.setColor( Color.black );
              g.fillRect(10,10,100,100);
              g.setColor( Color.white );
              g.drawString("Main",45,55);
    class rightGUI extends JPanel {
         BufferedImage img = null;
         int currentLevel = 0;
         int currentScore = 0;
         int currentLines = 0;
         public rightGUI() {
              // The right panel. Has quite a few bits. Starts here..
              FlowLayout flow = new FlowLayout();
              flow.setVgap( 20 );
              setLayout( flow );
              setPreferredSize( new Dimension( 125, 500 ) );
              setBackground( new Color(27,34,97) );
              setBorder( BorderFactory.createMatteBorder(0,2,0,0,Color.black) );
              // Next block bit
              JPanel rightNext = new JPanel();
              rightNext.setPreferredSize( new Dimension( 100, 100 ) );
              //rightNext.setBackground( new Color(130,136,189) );
              rightNext.setOpaque( false );
              rightNext.setBorder( BorderFactory.createEtchedBorder(EtchedBorder.LOWERED) );
              Font rightFont = new Font( "Courier", Font.BOLD, 18 );
              // The player's playing details
              JLabel rightLevel = new JLabel("Level: " + currentLevel, JLabel.LEFT );
              rightLevel.setFont( rightFont );
              rightLevel.setForeground( Color.white );
              JLabel rightScore = new JLabel("Score: " + currentScore, JLabel.LEFT );
              rightScore.setFont( rightFont );
              rightScore.setForeground( Color.white );
              JLabel rightLines = new JLabel("Lines: " + currentLines, JLabel.LEFT );
              rightLines.setFont( rightFont );
              rightLines.setForeground( Color.white );
              JPanel margin = new JPanel();
              margin.setPreferredSize( new Dimension( 100, 50 ) );
              margin.setBackground( new Color(27,34,97) );
              JButton rightPause = new JButton("Pause");
              try {
                  img = ImageIO.read(new File("MadeBy.gif"));
              catch (IOException e) { }
              add( rightNext );
              add( rightLevel );
              add( rightScore );
              add( rightLines );
              add( margin );
              add( rightPause );
              validate();
         public Dimension getPreferredSize() {
                   return new Dimension( 125, 500 );
         public void paintComponent( Graphics g ) {
              super.paintComponent(g);
              g.setColor( Color.black );
              g.drawString( "blah", 425, 475 ); // Doesn't show up
              g.drawImage( img, 400, 400, null ); // Nor this!
              System.out.println( "This bit gets called fine" );
    }Any help would be greatly appreciated. I've read loads of swing and custom painting tutorials and code samples but am still running into problems.
    Thanks,
    Tristan Perry

    Many thanks for reminding me about the error catching - I've added a System.out.println() call now. Anywhoo, the catch block never gets run; the image get call works fine.
    My problem was/is:
    "My problem is that the custom painting works fine on the mainGUI() class, but not on the rightGUI() class. My code is below:"
    I guess I should have expanded on that. Basically whatever I try to output in the public void paintComponent( Graphics g ) method of the rightGUI class doesn't get output.
    So this doesn't output anything:
    g.drawString( "blah", 425, 475 ); // Doesn't show up
    g.drawImage( img, 400, 400, null ); // Nor this!
    I've checked and experimented with setOpaque(false), however this doesn't seem to be caused by any over-lapping JPanels or anything.
    Let me know if I can expand on this :)
    Many thanks,
    Tristan Perry
    Edited by: TristanPerry on Dec 10, 2009 8:40 AM

  • Problems with JDev 11g using JBOSS and ANT

    Hi,
    I'm trying to migrate to JDev 11g with JBoss ( version 7.X ) as the AppServer
    With JDev 10g all works fine with JBoss, even the Remote Debug, all OK
    here is the problems I have :
    1) ANT
    JDev doesn't save my ANT settings
    every time I launch ANT : Run Ant Target - I must set the Advance settings
    JDev 10g I only need to do that once, the settings are saved but not in the 11g, why ?
    2) persistence
    I get this error when deploying to JBoss
    16:34:50,967 INFO [org.jboss.as.server] (HttpManagementService-threads - 1) JBA
    S015870: Deploy of deployment "prod_v0.0.1_iDigital.menu.ear" was rolled back wi
    th failure message {"JBAS014771: Services with missing/unavailable dependencies"
    => ["jboss.persistenceunit.\"prod_v0.0.1_iDigital.menu.ear/iDigital.menu-WebApp
    .war#InfraModel\"jboss.naming.context.java.jdbc.stdDSMissing[jboss.persistenceun
    it.\"prod_v0.0.1_iDigital.menu.ear/iDigital.menu-WebApp.war#InfraModel\"jboss.na
    ming.context.java.jdbc.stdDS]","jboss.persistenceunit.\"prod_v0.0.1_iDigital.men
    u.ear#InfraModel\"jboss.naming.context.java.jdbc.stdDSMissing[jboss.persistenceu
    nit.\"prod_v0.0.1_iDigital.menu.ear#InfraModel\"jboss.naming.context.java.jdbc.s
    tdDS]"]}
    it seems that is something related to dependencies not well configured during build stage of the EAR, but with 10g works fine
    BTW, I can't run my project with WebLogic either, gives this error :
    <5/Abr/2013 18H27m BST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1365182860563' for task '0'. Error is: 'weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].'
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].
         at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         Truncated. see log file for complete stacktrace
    >
    <5/Abr/2013 18H27m BST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'iDigital.menu'.>
    <5/Abr/2013 18H27m BST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].
         at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         Truncated. see log file for complete stacktrace
    can someone give me a clue ?
    thanks
    Edited by: FernandoLeite on Apr 5, 2013 10:31 AM

    I can't say many about the ant stuff, but have you tried to put the parameters in a property file and use this to get the parameters to ant?
    The reason you can't run the application on WLS is that you have not installed the adf runtime on your wls. The error 'application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].' points to this.
    Timo

  • Performance problem with ojdbc14.jar

    Hi,
    We are having performance problem with ojdbc14.jar in selecting and updating (batch updates) entries in a table. The queries are taking minutes to execute. The same java code works fine with classes12.zip ans queries taking sub seconds to execute.
    We have Oracle 9.2.0.5 Database Server and I have downloaded the ojdbc14.jar from Oracle site for the same. Tried executing the java code from windows 2000, Sun Solaris and Opteron machines and having the same problem.
    Does any one know a solution to this problem? I also tried ojdbc14.jar meant for Oracle 10g, that did not help.
    Please help.
    Thanks
    Yuva

    My code is doing some thing which might be working well with classes12.zip and which does not work well with ojdbc14.jar? Any general suggestions to make the code better, especially for batch updates.
    But for selecting a row from the table, I am using index columns in the where cluase. In the code using PreparedStatement, setting all the reuired fields. Here is the code. We have a huge index with 14 fields!!. All the parameters are for where clause.
    if(longCallPStmt == null) {
    longCallPStmt = conn.prepareStatement(longCallQuery);
    log(Level.FINE, "CdrAggLoader: Loading tcdragg entry for "
    +GeneralUtility.formatDate(cdrAgg.time_hour, "MM/dd/yy HH"));
    longCallPStmt.clearParameters();
    longCallPStmt.setInt(1, cdrAgg.iintrunkgroupid);
    longCallPStmt.setInt(2, cdrAgg.iouttrunkgroupid);
    longCallPStmt.setInt(3, cdrAgg.iintrunkgroupnumber);
    longCallPStmt.setInt(4, cdrAgg.iouttrunkgroupnumber);
    longCallPStmt.setInt(5, cdrAgg.istateregionid);
    longCallPStmt.setTimestamp(6, cdrAgg.time_hour);
    longCallPStmt.setInt(7, cdrAgg.icalltreatmentcode);
    longCallPStmt.setInt(8, cdrAgg.icompletioncode);
    longCallPStmt.setInt(9, cdrAgg.bcallcompleted);
    longCallPStmt.setInt(10, cdrAgg.itodid);
    longCallPStmt.setInt(11, cdrAgg.iasktodid);
    longCallPStmt.setInt(12, cdrAgg.ibidtodid);
    longCallPStmt.setInt(13, cdrAgg.iaskzoneid);
    longCallPStmt.setInt(14, cdrAgg.ibidzoneid);
    rs = longCallPStmt.executeQuery();
    if(rs.next()) {
    cdr_agg = new CdrAgg(
    rs.getInt(1),
    rs.getInt(2),
    rs.getInt(3),
    rs.getInt(4),
    rs.getInt(5),
    rs.getTimestamp(6),
    rs.getInt(7),
    rs.getInt(8),
    rs.getInt(9),
    rs.getInt(10),
    rs.getInt(11),
    rs.getInt(12),
    rs.getInt(13),
    rs.getInt(14),
    rs.getInt(15),
    rs.getInt(16)
    }//if
    end_time = System.currentTimeMillis();
    log(Level.INFO, "CdrAggLoader: Loaded "+((cdr_agg==null)?0:1) + " "
    + GeneralUtility.formatDate(cdrAgg.time_hour, "MM/dd/yy HH")
    +" tcdragg entry in "+(end_time - start_time)+" msecs");
    } finally {
    GeneralUtility.closeResultSet(rs);
    GeneralUtility.closeStatement(pstmt);
    Why that code works well for classes12.zip (comes back in around 10 msec) and not for ojdbc14.jar (comes back in 6-7 minutes)?
    Please advise.

  • How can you add a where clause using "OR" with applied ViewCriteria?

    [JDeveloper 10.1.3 SU4]
    [JHeadstart 10.1.3 build 78]
    I am using JHeadstart, but have a question probably more in the ADF area. On the JHeadstart forum I asked:
    "I am overriding JhsApplicationModule's advancedSearch in order to be able to search in childtables. I created transient attributes, display those in advanced search and in the overridden method I check if any of these are filled by the user and create a where clause like 'EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>)'. I add this whereclause using ViewObject.setWhereClause.
    So far so good and it works. However, if the user selects 'Result matches any criteria', combining setWhereClause and the normal advancedSearch QueryByExample implementation using ViewCriteriaRow do not provide the desired result, since the ViewCriteria and the setWhereClause are AND-ed together, which is fine if the user selects the (default) "Results match all criteria" (everything is AND-ed) but not the "Result matches any criteria", since then every criterium is OR-ed together, except for the setwhereclause criteria and the set of ViewCriteriaRows, they are AND-ed.
    I looked if I could specify that a WhereClause will be OR-ed to existing applied ViewCriteria, but no luck. Do I have to rewrite also advancedSearch's ViewCriteria implementation and write an entire setWhereClause implementation to be able to "OR" every criterium? Or any other suggestions? Can I look at the entire Where clause and rewrite it (after applyCriteria and setWhereClause are called on the VO)?
    Toine"
    Sandra Muller (JHeadstart Team) told me today: "This sounds like a JDeveloper/ADF issue that is not related to JHeadstart. The question is: how can you add a where clause using "OR" if there are already one or more ViewCriteria applied?
    To simplify the test case, you could create a simple ADF BC test client class in a test Model project without JHeadstart (in the test class, use bc4jclient + Ctrl-Enter), in which you first apply a few ViewCriteriaRows to a View Object and also add a where clause.
    Can you please log a TAR at MetaLink ( http://metalink.oracle.com/ ), or ask this question at the JDeveloper forum at http://otn.oracle.com/discussionforums/jdev.html ? (This what I am doing now ;-))
    Thanks,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting"
    Anyone knowing the answer or am I asking for an enhancement?
    Toine

    Hi,
    Can you SET your whereclause as follows ?
    ('Y' = <isAnd>
    and EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>))
    OR ('N' = <isAnd>
    AND EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> OR <another column in childtable> LIKE '<value supplied by user>))
    )

Maybe you are looking for

  • Long loading time if no internet connection available (VS 2005 Redist)

    Hallo forum members! I've been searching for a solution for my problem for a while - without success. It isn't really a critical issue, but quite annoying anyways. Here's the problem i'm dealing with: I've developed an .NET application using Visual S

  • Operations on stack

    Hi guys, I've got a simple stack working, but am having some problems with the input commands. Basically, the commands "empty", "pop", and "peek" are only meant to operate on the stack, not to be inserted inside it. They function on it and also opera

  • Configuration Error 16 on Creative Suite 6 Design and Web Premium

    Hello, I recently began receiving a Configuration Error 16 message when I attempt to launch any of the CS6 applications. I attempted to follow the instructions here: http://helpx.adobe.com/x-productkb/policy-pricing/configuration-error-cs5.html Howev

  • DNG and MESZ timestamp / sony A100 RAW conversion

    Hello, i have a question regarding the timestamp within the EXIF metadata after the RAW to DNG conversion for my A100 pictures. Today I have seen that the timestamp betwen the RAW original file and the converted DNG file differs about 3 hours. I can'

  • Alternative formula for condition base value -correct  routine

    Hi , We need  correct standard routine number in "Alt. formula  for condition base value " in transaction V/08 pricing control . Requirement As follow : We have one header freight condition which is header condition and group condition in V/06 condit