Why the query access path is different !

Hi All
I have a query which is running satisfactorily in TEST but is taking a long time in PROD.
SELECT * FROM MTHLY_PROD_BASE WHERE START_DATE >= to_date('1/1/2013','mm/dd/yyyy') AND START_DATE < to_date('1/1/2014','mm/dd/yyyy')
MTHLY_PROD_BASE is a view, containing some underlying tables and views which are doing summations and groupings of data.
I have access plans for it in TEST and PROD in jpg format, but I am not able to attach here as the "Insert Image" button is inactive for me. How can I attach them for explaining my issue properly ?
There was some memory added around a week ago to the DB server for improving performance of another database, but since then the DB in which I ran the query is performing poorly.
Data for underlying tables, being referenced in the query, in TEST is same as in PROD, but the plans are different.
I need to know what factors may cause the access path for a query to change, so that I can investigate what else might have got changed/impacted in PROD ?
Thanks

AnkitV wrote:
Hi all
1) version info of TEST and PROD:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
"CORE    11.2.0.2.0    Production"
TNS for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
2) Platform is Aix 6.1.0.0
3) Query as mentioned in initial post too :SELECT * FROM MTHLY_PROD_BASE WHERE START_DATE >= to_date('1/1/2013','mm/dd/yyyy') AND START_DATE < to_date('1/1/2014','mm/dd/yyyy')
4) As I mentioned, I do not have plan in text format, and its lots of lines in the
I need to know what might be the reason for change in the access mode for the query in PROD, which has caused it to take 3-4 hrs instead of 30 mins ?
Any help will be highly appreciated.
different results occur when something is different between the two environments.
Since we don't have access to either system, YOU are the only one who can actually compare & contrast between the two systems.
HOW To Make TUNING request
https://forums.oracle.com/forums/thread.jspa?threadID=2174552#9360003

Similar Messages

  • Why the image I get is different from the image I see on SpeedGrade???

    the image I get is different from the image I see on SpeedGrade???
    As the pic shows, the left one is what i get from speedgrade, and the right one is what i get after rending it out.

    Welcome to the world of the QuickTime Gamma Shift. In short: Apple is dispaying your video wrong. It actually happens with there own software (Final Cut Pro) as wel...
    Google for "QuickTime Gamma Shift" and see if you can find a workflow that works for you.

  • Why the query of the object still can work after the datafile has been deleted?

    Dear friends:
    Recently, I deleted a datafile from OS but don't touch the correspondent tablespace in OEM(actually the datafile name still exists in OEM after I deleted it from OS). I found out I still can create objects such as table and query it in this tablespace using sqlplus though the physical datafile has already been deleted.(What I done is I created new objects using an account whose default tablespace is that one which I deleted the datafile from it.). Will these new objects use another datafile instead the original one deleted? I will appriciate if you can point out the reason for me. Thanks for your help!
    John
    07/26/2002

    Even though you delete a datafile physically from OS, entries about the datafile still exists in Data Dictionary. So long as these entries are there in data dictionary, Oracle will consider that these file exists unless there is a specific command which referes to deleted files.
    Further, you are trying to create table in a tablespace whose datafile is deleted. If that was the only datafile for that tablespace then you should get an error. If the table is getting created, there must be some other datafile for that tablespace, in which your table is getting created. This is all when your database is already in running stage. If you shutdown and restart the database, it won't start next time because of missing datafile.
    Hope this solves your query.

  • Why the bill I got is different with my order??

    I ordered Verizon Fios Double Freedom
    phone plan:  versizon freedom essentials  $49.99
    Fios internet plan: Fios up to 20Mbps/5mbps $52.99
    versizon fios double freedom saving     -$42.99
    total :  $ 59.99
    special offer: Get $25.00 off total monthly price shown below months 1-3 and 5.00 off months 4-12
    But Fios Double Freedom is 79.99$$ in the bill.      I called custom service, but they can't figure it out.........What should I do?

    Excuse my last post, I just noticed that you do not have Video service with us according to your original post...some of use blast through some of these forum posts too fast...
    In this case, I have no idea why your bill is that high.  One thing to do is call the verizon store before going there, not all of the stores can assist with fixing a FiOS bill.

  • Why the acquisition with DAQmx is different by using Labview 8.2 from Labview signal express?

    Hello,
    I am using a PCi-6281 to acquire a voltage. When I am using Labview signal express with only the step to acquire I read the good signal with the exact voltage. But when I am using my VI, the y axis and the values recorded are wrong. Why this difference appears?
    I insert a picture with both signal: at the top is the signal from my vi (wrong measurement) and at the bottom is the signal from labview signal express (correct).
    The vi I am using is the example Cont Acqu&Graph Voltage-To file (binary).vi.
    Thank you for your answer!
    Sophie
    Sophie

    I am using the binary file because it requires the minimum change in another VI. I have tried to change in scaled data but now my second VI has not enough memory to display all data.... What's wrong? Here is my second VI. Totest with data you need to insert a number in the "scaling factor" if not the dat are multiplied by zero...
    thanks for your help!
    Message Edité par stage84 le 07-24-2009 10:11 AM
    Attachments:
    Display 3.vi ‏1867 KB

  • Why the ID on iCloud is different from my Apple ID?

    I updated the IOS of my iphone4 through my PC last night, but somehow it doesn't restore my Apps to iphone. Then I recognized that I have an eariler backup in iCloud yesterday. I am trying to restore the backup from iCloud now. I signed in to iCloud with my Apple ID first. Then it asked me to choose the date of backup record. Then, it asked me to sign in another Apple ID which I don't know at all. Why's that? I can't sign in someone's ID. I can't restore my backup from iCloud. Please, anyone can help!!!!!

    Your Apple ID is required to log in to iCloud, yes? I think you are rquired to re-sign in when performing  an iCloud feature?

  • Why the same function ToolTipText behaves differently in Jar and in Class

    Hi All! In my applet I use two similar statements from javax.swing:
    jListTeaSortSelect.setToolTipText("To stop the alarm just click over here.");
    jProgressBar1.setToolTipText("To stop the alarm just click over here.");
    Both work correctly when I run my applet from classes.
    Problem: When I run it from jar, composed from the same classes, second tool tip does not appear.
    I have no idea on where to get a hint to the solution. Could that be that the problem is caused by other graphical components or by the layout of the container?
    The applet and JAR in question with source code can be found on
    http://www.kobylkin.net/TeaTimer.htm , and the source code is included below in this letter as well..
    Thanks!
    Egor
    I do not include GNU GPL here, for histerical reasons [:-)]
    * TeaTimerJApplet.java
    * Created on 19. Januar 2002, 18:56
    * Tea timer with sound alarm to brew your tea right for the best taste.
    * Copyright Kobylkin Egor 2002. [email protected] www.kobylkin.net
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation; either version 2
    * of the License, or (at your option) any later version.
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    * GNU General Public License for more details.
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
    USA.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.applet.*;
    import java.applet.Applet;
    import java.net.*;
    public class TeaTimerJApplet extends javax.swing.JApplet {
    /** Creates new form TeaTimerJApplet */
    public TeaTimerJApplet() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {//GEN-BEGIN:initComponents
    java.awt.GridBagConstraints gridBagConstraints;
    jListTeaSortSelect = new javax.swing.JList();
    jButtonTimerStart = new javax.swing.JButton();
    jProgressBar1 = new javax.swing.JProgressBar();
    getContentPane().setLayout(new java.awt.GridBagLayout());
    jListTeaSortSelect.setBorder(new
    javax.swing.border.TitledBorder("Select the tea type"));
    jListTeaSortSelect.setModel(new javax.swing.AbstractListModel() {
    String[] strings = { "Test................10sec.", "Green
    tea.........3min.", "Black tea...........4min.", "Black
    tea...........5min.", "Mint, Coffee......8min." };
    public int getSize() { return strings.length; }
    public Object getElementAt(int i) { return strings; }
    jListTeaSortSelect.setToolTipText("To stop the alarm just click
    over here.");
    jListTeaSortSelect.setName("jListTeaSort");
    jListTeaSortSelect.setSelectedIndex(2);
    jListTeaSortSelect.setSelectionBackground(java.awt.Color.yellow);
    jListTeaSortSelect.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    jListTeaSortSelect.setAutoscrolls(false);
    jListTeaSortSelect.addMouseListener(new
    java.awt.event.MouseAdapter() {
    public void mousePressed(java.awt.event.MouseEvent evt) {
    jListTeaSortSelectMousePressed(evt);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    getContentPane().add(jListTeaSortSelect, gridBagConstraints);
    jButtonTimerStart.setBackground(java.awt.Color.lightGray);
    jButtonTimerStart.setText("Start the timer");
    jButtonTimerStart.setToolTipText("<html>Visit me at
    www.kobylkin.net <br> Copyright Kobylkin Egor 2002 under GNU GPL</html>");
    jButtonTimerStart.setDoubleBuffered(true);
    jButtonTimerStart.setMaximumSize(new java.awt.Dimension(180, 90));
    jButtonTimerStart.setMinimumSize(new java.awt.Dimension(120, 27));
    jButtonTimerStart.setNextFocusableComponent(jListTeaSortSelect);
    jButtonTimerStart.setPreferredSize(new java.awt.Dimension(140,
    27));
    jButtonTimerStart.addActionListener(new
    java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButtonTimerStartActionPerformed(evt);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    getContentPane().add(jButtonTimerStart, gridBagConstraints);
    jProgressBar1.setToolTipText("To stop the alarm signal just click
    over here.");
    jProgressBar1.setMinimumSize(new java.awt.Dimension(140, 14));
    jProgressBar1.setPreferredSize(new java.awt.Dimension(140, 14));
    jProgressBar1.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mousePressed(java.awt.event.MouseEvent evt) {
    jProgressBar1MousePressed(evt);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    getContentPane().add(jProgressBar1, gridBagConstraints);
    }//GEN-END:initComponents
    private void jListTeaSortSelectMousePressed(java.awt.event.MouseEvent
    evt) {//GEN-FIRST:event_jListTeaSortSelectMousePressed
    // Add your handling code here:
    if ( timerIsRunningFlag == false )
    jListTeaSortSelect.setBackground(java.awt.Color.white);
    so.stop();
    }//GEN-LAST:event_jListTeaSortSelectMousePressed
    private void jProgressBar1MousePressed(java.awt.event.MouseEvent evt)
    if ( timerIsRunningFlag == false )
    jListTeaSortSelect.setBackground(java.awt.Color.white);
    so.stop();
    private void
    jButtonTimerStartActionPerformed(java.awt.event.ActionEvent evt)
    {//GEN-FIRST:event_jButtonTimerStartActionPerformed
    //set the controls in dumb state:
    jButtonTimerStart.setEnabled(false);
    jListTeaSortSelect.setEnabled(false);
    jListTeaSortSelect.setBackground(java.awt.Color.white);
    switch ( jListTeaSortSelect.getSelectedIndex() ) {
    case 0 : timerDelay = 500; break; //Test 10 sec.
    case 1 : timerDelay = 9000; break; //Green tea 3 min.
    case 2 : timerDelay = 12000; break; //Black tea 4 min.
    case 3 : timerDelay = 15000; break; //Black tea 5 min.
    case 4 : timerDelay = 24000; break; //Mint tea 8 min.
    // every "timerDelay/100" seconds the progress bar status will be
    set to be -5% less by timerTaskPerformer.
    // After 20 times timerDelay will be less than 5% so the
    timerTaskPerformer fires the alarm.
    timer = new javax.swing.Timer(timerDelay, timerTaskPerformer);
    timer.setRepeats(true);
    timer.start();
    timerIsRunningFlag = true;
    progressBarStatus = 100;
    jProgressBar1.setValue( progressBarStatus );
    jButtonTimerStart.setLabel("Timer started");
    so.stop();
    }//GEN-LAST:event_jButtonTimerStartActionPerformed
    private ActionListener timerTaskPerformer = new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    if (progressBarStatus > 5){ progressBarStatus-=5;
    jProgressBar1.setValue(progressBarStatus);
    }else{
    timer.stop();
    timerIsRunningFlag = false;
    //user alarm actions
    jListTeaSortSelect.setBackground (java.awt.Color.red);
    Toolkit.getDefaultToolkit().beep();
    so=getAudioClip(getCodeBase(), "spacemusic.au");
    so.loop();
    /* "Server not found" IE error.
    open pop-up explorer window to alert user
    try {
    AppletContext ac = getAppletContext();
    ac.showDocument( new URL( getCodeBase() +
    "teaReady.html" ), "_self");
    catch (MalformedURLException exc) {
    showStatus("Cannot find file teaReady.html");
    progressBarStatus = 0;
    jProgressBar1.setValue( progressBarStatus );
    //return to the initial state
    jButtonTimerStart.setText("Start the tea timer");
    jButtonTimerStart.setEnabled(true);
    jListTeaSortSelect.setEnabled(true);
    //Variables declaration
    private int progressBarStatus = 100;
    public boolean timerIsRunningFlag = false;
    public int timerDelay;
    private javax.swing.Timer timer;
    public AudioClip so;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonTimerStart;
    private javax.swing.JList jListTeaSortSelect;
    private javax.swing.JProgressBar jProgressBar1;
    // End of variables declaration//GEN-END:variables

    Hi
    What i understand from u'r problem is that when a jar is created and run under browser, ToolTipText for progress panel is not shown? is so is the case - i had no problems..
    The code given was compiled and created a jar successfully..
    this is how i created the jar..(under WindowsNT and MSIE)
    jar cf TeaTimer.jar TeaTimerJApplet.class
    TeaTimer.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </HEAD>
    <BODY BGCOLOR="#FFFFFF">
    <APPLET CODE="TeaTimerJApplet" archive="TeaTimer.jar" WIDTH="200" HEIGHT="200">
    </APPLET>
    </BODY>
    </HTML>
    cheers
    Mohan

  • Why this query does not show the result?

    Why the query with the schema prefixed does not show the result and the query without schema display the correct results?
    SQL> select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS';
    select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS'
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    SQL> select data_object_id,object_type from dba_objects where object_name='HR.JOBS';
    no rows selected
    SQL> select data_object_id, OWNER, object_type from dba_objects where object_name='JOBS';
    DATA_OBJECT_ID     OWNER                          OBJECT_TYPE
    69662              HR                                 TABLE
                       OE                                 SYNONYM
    SQL> SELECT USER FROM DUAL;
    USER
    SYS

    Hi,
    the column object_name refers to a object_name which is 'JOBS', the column owner refers to the owner 'HR', the value isn't stored together, so you have to select the two columns. It is the same behaviour as every other table/view. Have a look at the values in the view DBA_OBJECTS.
    Herald ten Dam
    Superconsult.nl

  • Why not exists and minus give different result

    HI,
    I am writing thes query by using two different operators they should give me the same output but they dont. Please can anybody explain why they give different output.
    query 1
    SQL> SELECT COUNT(*) FROM
    2 (select orig_idx
    3 from rel15_au_poi a
    4 MINUS
    5 SELECT ORIG_IDX
    6 FROM REL14_1_AU_POI_INTERM B) ;
    COUNT(*)
    244312
    query 2
    SQL> select count(*)
    2 from rel15_au_poi a
    3 where not exists
    4 (select null from rel14_1_au_poi_interm b where a.orig_idx=b.ORIG_IDX) ;
    COUNT(*)
    245341
    best Regards,

    Because you have duplicates in rel15_au_poi which are counted with exists and removed with minus.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries004.htm#sthref3147
    MINUS Example
    The following statement combines results with the MINUS operator, which returns only unique rows returned by the first query but not by the second:
    SELECT product_id FROM inventories
    MINUS
    SELECT product_id FROM order_items;

  • How can the query results include null if it's a required field on the front end?

    I executed a query that simply asked for all data points on a single table.
    I am trying to figure out why the query would report back as having all "Null" values in 3 of 10 columns. The information is required for the end user to enter before the system allows
    them save a record.

    You understand correctly.
    When you look up de service code do you get an description from table DDLValues?
    THIS IS CORRECT
    If the service code is in there, you should check why de ID is not correct.
    I dont know what this means. Check why the "ID" is not correct? What ID?
    The DDLvalues table has no objects on which it depends. It that normal?
    This is the code for the individual services
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[IndividualService](
    [ID] [bigint] IDENTITY(1,1) NOT NULL,
    [StudentID] [uniqueidentifier] NULL,
    [DateofService] [datetime] NULL,
    [ServiceCode] [int] NULL,
    [FocusCode] [int] NULL,
    [InterventionCode] [int] NULL,
    [ClinicianID] [uniqueidentifier] NULL,
    [Schoolid] [bigint] NULL,
    [Approved] [int] NULL CONSTRAINT [DF_IndividualService_Approved]  DEFAULT ((0)),
     CONSTRAINT [PK_IndividualService] PRIMARY KEY CLUSTERED 
    [ID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    ALTER TABLE [dbo].[IndividualService]  WITH CHECK ADD  CONSTRAINT [FK_IndividualService_aspnet_Users] FOREIGN KEY([StudentID])
    REFERENCES [dbo].[Students] ([StudentID])
    ON DELETE CASCADE
    GO
    ALTER TABLE [dbo].[IndividualService] CHECK CONSTRAINT [FK_IndividualService_aspnet_Users]
    GO
    ALTER TABLE [dbo].[IndividualService]  WITH CHECK ADD  CONSTRAINT [FK_IndividualService_aspnet_Users1] FOREIGN KEY([ClinicianID])
    REFERENCES [dbo].[aspnet_Users] ([UserId])
    GO
    ALTER TABLE [dbo].[IndividualService] CHECK CONSTRAINT [FK_IndividualService_aspnet_Users1]
    GO
    ALTER TABLE [dbo].[IndividualService]  WITH CHECK ADD  CONSTRAINT [FK_IndividualService_DDLValues] FOREIGN KEY([FocusCode])
    REFERENCES [dbo].[DDLValues] ([DDLValueID])
    GO
    ALTER TABLE [dbo].[IndividualService] CHECK CONSTRAINT [FK_IndividualService_DDLValues]
    GO
    ALTER TABLE [dbo].[IndividualService]  WITH CHECK ADD  CONSTRAINT [FK_IndividualService_DDLValues1] FOREIGN KEY([InterventionCode])
    REFERENCES [dbo].[DDLValues] ([DDLValueID])
    GO
    ALTER TABLE [dbo].[IndividualService] CHECK CONSTRAINT [FK_IndividualService_DDLValues1]
    GO
    ALTER TABLE [dbo].[IndividualService]  WITH CHECK ADD  CONSTRAINT [FK_IndividualService_DDLValues2] FOREIGN KEY([ServiceCode])
    REFERENCES [dbo].[DDLValues] ([DDLValueID])
    GO
    ALTER TABLE [dbo].[IndividualService] CHECK CONSTRAINT [FK_IndividualService_DDLValues2]
    GO
    ALTER TABLE [dbo].[IndividualService]  WITH CHECK ADD  CONSTRAINT [FK_IndividualService_Schools] FOREIGN KEY([Schoolid])
    REFERENCES [dbo].[Schools] ([SchoolID])
    GO
    ALTER TABLE [dbo].[IndividualService] CHECK CONSTRAINT [FK_IndividualService_Schools]
    GO

  • Changing Content.Access.Path into short URL implies errors at CAT2

    Hello,
    After changing the Content.Access.Path to another value due to the note 549610 I see complications and errors on my application cat2, that some buttons and information aren´t showed any more.
    When I do the changes in the Content.Access.Path backwards, the errors in cat2 aren´t there any more.
    I think that solving one problem (changing parameters) has effect to onother application.
    Who can help me, please?
    Thank you in advance!!
    Best regards
    Andreas

    Hi priya,
    Not sure: check syntax in your Update Roules, also at level of start routine.
    Ciao.
    Riccardo.

  • Whats wrong with the query

    Hi
    I have a view which is obtained by using multiple unions, sub queries which made the query complex. The view works good and gives correct data when i select all the records from the view. But the problem is when I use where clause and filter then it is giving me an error message which is shown below. In other words "select * from view" works good but "select * from view where dateran >to_date('3/3/2011','mm/dd/yyyy') ".
    Now I dont understand is why the query is not working when I use the where clause. Can any one tell what could be the reason?
    ERROR MESSAGE
    +"ORA-01427: single-row subquery returns more than one row+
    +01427. 00000 - "single-row subquery returns more than one row"+
    Thanks,

    CREATE OR replace FORCE VIEW "SECO"."D_REWORK_REPORT_V"
    ("MATERIALID", "CUSTOMER", "ORDER#", "PRODUCT", "STEELGRADEID", "GAUGE", "WIDTH"
    , "DEFECTCODE", "DEFECTCOMMENT", "RESPONSIBLEUNIT", "SEVERITY", "COMMENTS",
    "ENTRYCOIL", "ENTRYWEIGHT", "DATERAN", "SHIFTDATERAN")
    AS
      SELECT
      /*+ USE_HASH */ mf.me_id                                        materialid,
                      tp.customername,
                      v.au_nr                                         order#,
                      taup.productid                                  product,
                      taup.sc_steelgradeid                            steelgrade,
                      taup.coilorderthickness                         thick,
                      taup.coilorderwidth                             width,
                      mf.fehlertyp                                    defectcode,
                      ft.displaytext                                  defectcomment,
                      mf.fehlerverursacher
                      unitresponsible,
                      mf.auspraegung                                  priority,
                      mf.bemerkung                                    comments,
                      (SELECT matbezeichnung
                       FROM   matereignis c
                       WHERE  c.me_id = v.me_id
                              AND bemerkung = 'process scrap'
                              AND subtyp = 'Produktion'
                              AND dtstorno IS NULL
                              AND matbezeichnung = (SELECT a.matbezeichnung
                                                    FROM   d_matevents_v a
                                                    WHERE  me_id = v.me_id
                                                           AND dtstorno IS NULL
                                                           AND a.ereignisid =
                                                               ereignisiderfassung))
                                                                      entrytcoil,
                      (SELECT aftergew
                       FROM   d_matevents_v c
                       WHERE  c.me_id = v.me_id
                              AND c.ereignisid = ereignisiderfassung) entryweight,
                      (SELECT erstelldatum
                       FROM   matereignis c
                       WHERE  c.me_id = v.me_id
                              AND bemerkung = 'process scrap'
                              AND subtyp = 'Produktion'
                              AND dtstorno IS NULL
                              AND matbezeichnung = (SELECT a.matbezeichnung
                                                    FROM   d_matevents_v a
                                                    WHERE  me_id = v.me_id
                                                           AND dtstorno IS NULL
                                                           AND a.ereignisid =
                                                               ereignisiderfassung))
                                                                      dateran,
                      (SELECT CASE
                                WHEN To_number(To_char(erstelldatum, 'HH24')) < 7
                              THEN
                                erstelldatum - 1
                                ELSE erstelldatum
                              END
                       FROM   matereignis c
                       WHERE  c.me_id = v.me_id
                              AND bemerkung = 'process scrap'
                              AND subtyp = 'Produktion'
                              AND dtstorno IS NULL
                              AND matbezeichnung = (SELECT a.matbezeichnung
                                                    FROM   d_matevents_v a
                                                    WHERE  me_id = v.me_id
                                                           AND dtstorno IS NULL
                                                           AND a.ereignisid =
                                                               ereignisiderfassung))
                                                                      shiftdateran
      FROM   matfehler mf,
             matfehler_prj mfp,
             tap_prj tp,
             taup_prj taup,
             vlfehlerverursacher_v fv,
             vlfehlertyp_v ft,
             vlfehlerauspraegung_v fa,
             d_matevents_v v
      WHERE  mf.me_id = v.me_id
             AND v.au_nr = tp.au_nr(+)
             AND tp.au_nr = taup.au_nr(+)
             AND mf.fehlerverursacher = fv.fehlerverursacher(+)
             AND mf.fehlerverursacher <> 'TAC'
             AND mf.fehlertyp = ft.fehlertyp(+)
             AND mf.auspraegung = fa.auspraegung(+)
             AND mf.me_id = mfp.me_id
             AND mf.lfd_nr = mfp.lfd_nr
             AND v.fa_nr LIKE '%-%'
             AND v.bemerkung = 'kmpL3TMArb.processTTM_REPORT_TO_L3'
             AND v.dtstorno IS NULL
             AND Trunc (mf.erstelldatum) BETWEEN
                 To_date ('01/01/'
                          || ( To_char (SYSDATE,
                               'YYYY') - 1
                     'MM/DD/YYYY') AND Trunc (SYSDATE)
             AND v.ereignisid = (SELECT MIN (ereignisid)
                                 FROM   matereignis a
                                 WHERE  a.fa_nr LIKE '%-%'
                                        AND Nvl (a.bemerkung, 'A') =
                                            'kmpL3TMArb.processTTM_REPORT_TO_L3'
                                        AND a.dtstorno IS NULL
                                        AND a.me_id = v.me_id
                                        AND 2 = (SELECT COUNT (DISTINCT
                                                        matbezeichnung
                                                 FROM   matereignis b
                                                 WHERE  b.fa_nr LIKE '%-%'
                                                        AND b.me_id = a.me_id
                                                        AND b.dtstorno IS NULL)
                                 GROUP  BY a.me_id)
             AND ereignisiderfassung = (SELECT MAX (a.ereignisid)
                                        FROM   matereignis a
                                        WHERE  a.me_id = v.me_id
                                               AND a.ereignisid < v.ereignisid
                                               AND a.dtstorno IS NULL
                                               AND ( a.ausloeser = 'DIALOG'
                                                      OR a.ausloeser =
                                                         'MaterialQM_MPanel' )
                                               AND ( a.bemerkung != 'Unblocking'
                                                      OR Substr (a.bemerkung, 1, 9)
                                                         =
                                                         'kmpSIVPES'
      UNION
      SELECT
      /*+ USE_HASH */ mf.me_id
                      materialid,
                      tp.customername,
                      v.au_nr
                      order#,
                      taup.productid
                      product,
                      taup.sc_steelgradeid
                      steelgrade,
                      taup.coilorderthickness
                      thick,
                      taup.coilorderwidth
                      width,
                      mf.fehlertyp
                      defectcode,
                      ft.displaytext
                      defectcomment,
                      mf.fehlerverursacher
                      unitresponsible,
                      mf.auspraegung
                      priority,
                      mf.bemerkung
                      comments,
                      matbezeichnung
                      entrytcoil,
                      aftergew
                      entryweight,
                      (SELECT erstelldatum
                       FROM   matereignis c
                       WHERE  c.me_id = v.me_id
                              AND bemerkung = 'process scrap'
                              AND subtyp = 'Produktion'
                              AND dtstorno IS NULL
                              AND matbezeichnung = (SELECT a.matbezeichnung
                                                    FROM   d_matevents_v a
                                                    WHERE  me_id = v.me_id
                                                           AND dtstorno IS NULL
                                                           AND a.ereignisid =
                                                               v.ereignisid))
                      dateran,
                      (SELECT CASE
                                WHEN To_number(To_char(erstelldatum, 'HH24')) < 7
                              THEN
                                erstelldatum - 1
                                ELSE erstelldatum
                              END
                       FROM   matereignis c
                       WHERE  c.me_id = v.me_id
                              AND bemerkung = 'process scrap'
                              AND subtyp = 'Produktion'
                              AND dtstorno IS NULL
                              AND matbezeichnung = (SELECT a.matbezeichnung
                                                    FROM   d_matevents_v a
                                                    WHERE  me_id = v.me_id
                                                           AND dtstorno IS NULL
                                                           AND a.ereignisid =
                                                               v.ereignisid))
                      shiftdateran
      FROM   matfehler mf,
             matfehler_prj mfp,
             tap_prj tp,
             taup_prj taup,
             vlfehlerverursacher_v fv,
             vlfehlertyp_v ft,
             vlfehlerauspraegung_v fa,
             d_matevents_v v
      WHERE  mf.me_id = v.me_id
             AND v.au_nr = tp.au_nr(+)
             AND tp.au_nr = taup.au_nr(+)
             AND mf.fehlerverursacher = fv.fehlerverursacher(+)
             AND mf.fehlertyp = ft.fehlertyp(+)
             AND mf.auspraegung = fa.auspraegung(+)
             AND mf.me_id = mfp.me_id
             AND mf.lfd_nr = mfp.lfd_nr
             AND v.fa_nr LIKE '%-%'
             AND Trunc (mf.erstelldatum) BETWEEN
                 To_date ('01/01/'
                          || ( To_char (SYSDATE,
                               'YYYY') - 1
                     'MM/DD/YYYY') AND Trunc (SYSDATE)
             -- If a coil gets a rework more than 2 times, get the first record
             AND v.ereignisid = (SELECT MIN (ereignisid)
                                 FROM   matereignis a
                                 WHERE  a.fa_nr LIKE '%-%'
                                        AND a.dtstorno IS NULL
                                        AND a.me_id = v.me_id
                                        AND 2 < (SELECT COUNT (DISTINCT
                                                        matbezeichnung
                                                 FROM   matereignis b
                                                 WHERE  b.fa_nr LIKE '%-%'
                                                        AND b.me_id = a.me_id
                                                        AND b.dtstorno IS NULL)
                                 GROUP  BY a.me_id)
             AND ereignisiderfassung = (SELECT MAX (a.ereignisid)
                                        FROM   d_matevents_v a
                                        WHERE  a.me_id = v.me_id
                                               AND a.ereignisid <
                                                   (SELECT b.ereignisid
                                                    FROM   matereignis b
                                                    WHERE  b.fa_nr LIKE '%-%'
                                                           AND
                                                   b.metyp = 'Anbinden'
                                                           AND b.matbezeichnung =
                                                               v.matbezeichnung
                                                           AND b.me_id = v.me_id))
      UNION
      SELECT
      /*+ USE_HASH */ mf.me_id
                      materialid,
                      tp.customername,
                      v.au_nr
                      order#,
                      taup.productid
                      product,
                      taup.sc_steelgradeid
                      steelgrade,
                      taup.coilorderthickness
                      thick,
                      taup.coilorderwidth
                      width,
                      mf.fehlertyp
                      defectcode,
                      ft.displaytext
                      defectcomment,
                      mf.fehlerverursacher
                      unitresponsible,
                      mf.auspraegung
                      priority,
                      mf.bemerkung
                      comments,
                      matbezeichnung
                      entrytcoil,
                      aftergew
                      entryweight,
                      (SELECT erstelldatum
                       FROM   matereignis c
                       WHERE  c.me_id = v.me_id
                              AND bemerkung = 'process scrap'
                              AND subtyp = 'Produktion'
                              AND dtstorno IS NULL
                              AND matbezeichnung = (SELECT a.matbezeichnung
                                                    FROM   d_matevents_v a
                                                    WHERE  me_id = v.me_id
                                                           AND dtstorno IS NULL
                                                           AND a.ereignisid =
                                                               v.ereignisid)) AS
                      dateran,
                      (SELECT CASE
                                WHEN To_number(To_char(erstelldatum, 'HH24')) < 7
                              THEN
                                erstelldatum - 1
                                ELSE erstelldatum
                              END
                       FROM   matereignis c
                       WHERE  c.me_id = v.me_id
                              AND bemerkung = 'process scrap'
                              AND subtyp = 'Produktion'
                              AND dtstorno IS NULL
                              AND matbezeichnung = (SELECT a.matbezeichnung
                                                    FROM   d_matevents_v a
                                                    WHERE  me_id = v.me_id
                                                           AND dtstorno IS NULL
                                                           AND a.ereignisid =
                                                               v.ereignisid)) AS
                      shiftdateran
      FROM   matfehler mf,
             matfehler_prj mfp,
             tap_prj tp,
             taup_prj taup,
             vlfehlerverursacher_v fv,
             vlfehlertyp_v ft,
             vlfehlerauspraegung_v fa,
             d_matevents_v v
      WHERE  mf.me_id = v.me_id
             AND v.au_nr = tp.au_nr(+)
             AND tp.au_nr = taup.au_nr(+)
             AND mf.fehlerverursacher = fv.fehlerverursacher(+)
             AND mf.fehlertyp = ft.fehlertyp(+)
             AND mf.auspraegung = fa.auspraegung(+)
             AND mf.me_id = mfp.me_id
             AND mf.lfd_nr = mfp.lfd_nr
             AND v.fa_nr LIKE '%-%'
             AND Trunc (mf.erstelldatum) BETWEEN
                 To_date ('01/01/'
                          || ( To_char (SYSDATE,
                               'YYYY') - 1
                     'MM/DD/YYYY') AND Trunc (SYSDATE)
             -- If a coil gets a rework more than 2 times, get the second record
             AND v.ereignisid = (SELECT ereignisid
                                 FROM   matereignis a
                                 WHERE  a.fa_nr LIKE '%-%'
                                        AND a.me_id = v.me_id
                                        AND a.dtstorno IS NULL
                                        AND ROWNUM = 1
                                        AND a.ereignisid > (SELECT MIN (ereignisid)
                                                            FROM   matereignis b
                                                            WHERE
                                            b.fa_nr LIKE '%-%'
                                            AND b.dtstorno IS
                                                NULL
                                            AND
                                                           b.me_id = a.me_id
                                                                   AND 2 <
                                                           (SELECT COUNT (DISTINCT
                                                                   matbezeichnung)
                                                            FROM   matereignis c
                                                            WHERE
                                            c.fa_nr LIKE '%-%'
                                            AND
                                                           c.me_id = b.me_id
                                                                   AND c.dtstorno IS
                                                                       NULL)
                                                            GROUP  BY a.me_id))
             AND ereignisiderfassung = (SELECT MAX (a.ereignisid)
                                        FROM   d_matevents_v a
                                        WHERE  a.me_id = v.me_id
                                               AND a.ereignisid <
                                                   (SELECT MIN (b.ereignisid)
                                                    FROM   matereignis b
                                                    WHERE  b.fa_nr LIKE '%-%'
                                                           AND
                                                   b.metyp = 'Anbinden'
                                                           AND b.matbezeichnung =
                                                               v.matbezeichnung
                                                           AND b.me_id = v.me_id)); 

  • When I try to open iTunes, I get this error message: Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item. I get a different error message if I try to uninstall it.

    When I try to open iTunes, I get this error message: "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item." I've been able to uninstall all Apple products except iTunes as I get this error message: "The Installer has insufficent privileges to modify this file: C:\Program Files\i Tunes\Acknowledgments.rtf." I've had the iTunes on my laptop for a year and a half with no problems until now.

    Any suggestions please?

  • "Windows cannot access the specified device, path, or file, you may not have appropriate permission to access the item" Why?

    Whenever i try to access any folder on my computer(Windows 7), it tells me "Windows
    cannot access the specified device, path, or file, you may not have appropriate permission to access the item",
    this happens even for My
    Computer and Control Panel. It's driving me nuts! I'll be honest here, I was trying to uninstall Visual
    Studio 2013 Communityfrom my computer by going to Programs
    and Features but for some reason, it was getting stuck at "Configuring
    Your System". After trying it numerous times, I went to the visual studio installation directory, and removed
    the installation files from there. I even removed the files from the C:\Program
    Data folder, then i went back to Programs
    and Features and tried to remove the listing there, but I got a dialog box saying "you
    don't have sufficient access to uninstall visual studio" . I googled this problem and found this  solution
    (http://superuser.com/a/174198)
     then i tried using the solution, I used SubinAcl and
    changed the registry permissions as mentioned in the solution and ended up like this!
    All the access permissions are set correctly (that's what I can make out...)
    Please Help!

    Hi
    Some required information are needed for us to help you.
    Hi NabeelOmer,
    We wonder if you have taken any action such as system restore after this issue occurred.
    You might also try this command to restore your access control list.
    Run this command to navigate to the drive letter, example is D
    D:
    To reset all permissions, run this command
    icacls * /reset /t /c /q
    Visual Studio is a very invasive program and which provides the ability to enumerate projects and solutions for system, user should never try uninstalling it manually without any guidance.
    Visual Studio made changes for your whole system, if the file has been moved or deleted this error would occur.
    Since you mentioned that you get this error almost everywhere even in control panel. We suggest you repair/reinstall your Visual Studio first and check if it could be fixed.
    How to: Repair Visual Studio
    https://msdn.microsoft.com/en-us/library/aa983433%28v=vs.90%29.aspx?f=255&MSPPError=-2147217396
    Regards
    D. Wu

  • Windows cannot access the specified device, path, or file.

    NOTE:  My access is through terminal services. 
    I received a new server to load my IBM Rational products.  I was able to load ClearQuest, Req Pro and ClearCase with no problems.  Because this machine is being used as a web interface for the products, I needed to also load Crystal Reports XI along with the embedded report server.  Well, I got everything installed but the embedded reports server. 
    On my attempt to double click on the file that would extract and install the addins needed I received the error message:
    Windows cannot access the specified device, path, or file.  You may not have the appropriate permissions to access the item.
    After some testing I see that if I select any executable associated with installing an application, I get this error.
    I've been searching all over the internet for a solution to this proble.  Does anyone know why this happens and what I can do to fix it?

    Ok this will be a long post, and for starters I wanted to point something out to everyone - there is two separate discussions going on in this thread. On one side you have a discussion about servers and people using thin clients or Citrix having this error
    code and changing Internet Explorer to resolve this conflict. Then on the other side all the stand alone home users with XP and Vista and 7 trying to figure out what is going on with their install that has the exact same error code. Microsoft in their infinite
    wisdom has given this error code to relate to multiple different errors hence the confusion.
    Now here is my story, with out a resolution yet.
    Ok, so I ran into a real nasty trojan virus, that is now resolved and gone. However, when I went into the process of being able to resolve this issue a sticky byproduct was this permissions issue. This is how it happens, I download a video with Firefox or
    any browser Opera, IE whatever. Then after I have downloaded it into the proper location I can see it within the downloads list from the browser, should I double click to launch the video with WMV it will fail with that error "Windows cannot access the
    specified device, path, or file. You may not have the appropriate permission to access the item". However, should I open the directory and then launch from the true download location, rather in the list of the files within the browser download list it
    will launch fine. This is the problem I can utilize the programs directly launching them from explorer, however should I try and launch a program from inside another program it will fail to launch.
    This is a Vista 64 bit installation, and I am pretty tech savvy individual. What I have tried thus far is to take owner ship of the directory since trusted installer was the owner previously. After I had done that I went into the permissions of the exe and
    sought to make sure that the file was open for everyone to be able to modify and have full control - it was. After that I also tried launching the browsers as admin privileges to see if it would still launch. It will not it refuses to allow calls to this directory.
    That being said it is also a big problem when I use Corel DVD Moviefactory, because this program is trying to launch other programs from this directory to run. So, I need to figure out why is it that I am not able to have programs make calls to this directory
    and try and launch exe files and fail, yet the permissions are fine and I can launch them from directly clicking on the item in a directory?
    Further clarification as to what happens:
    Firefox downloads to Harvester\downloads
    All my pictures, movies, executable, rar/zip, reside in this directory "downloads"
    In the browser Firefox there is a "downloads" [contrl+J] list that shows what you have downloaded through the browser
    All of these items are able to double click and execute from this list with out having to navigate to the "downloads" directory
    When executing a WMV file it will fail and error out with the "Windows cannot access the specified device, path, or file. You may not have the appropriate permission to access the item" error.
    However, navigating to this directory will allow me to launch all programs with out any problem, the difference is I am launching from the file rather than through a program making a call to the x86 directory to launch the file. If I have an item that doesn't
    require a program to launch from the x86 directory it will launch ok through Firefox, ex InfanView, HJsplit, etc.
    This is a problem with other programs making calls to external programs residing in the x86 directory like Corel Moviefactory 7. While running it will make the same error "Windows cannot access the specified device, path, or file. You may not have the
    appropriate permission to access the item" when trying to make a new DVD, because it utilizes something in that directory an external program.
    This happens with Opera as well, don't know about IE I don't use it.
    What I have done thus far:
    Removed my firewall that was MS native firewall
    Removed my anti-virus and malware software - AVG, MalwareBytes, Windows Defender, Windows Security Essentials, Spybot Search and Destroy, Spy cop, and a few others
    Went and took ownership of the directory
    Tried registry hacks
    Altered AVG to exclude the (x86) directory
    Re-installed AVG and MalwareBytes to see if I can repair the file
    Shared the (x86) directory for everyone and inherited the permissions
    Tried CLI restoring of default permissions
    Tried to make changes in safe mode still shut down.
    This is where I am now....waiting for a scan to end to reboot and check to see if I was able to make any progress.

Maybe you are looking for

  • Mail newbie question

    Hello. I am setting up mail for the first time and I am running into an issue. I am going step by step by what it says in the mail services pdf, and I am to the point of configuring email client software. I decided to try it on my own account first,

  • Issue in viewing .rpt with COM UFL formulas

    Hi, I am new to CR. Can we view a report having formulas using COM UFL in CR viewer XI. I tried to deign a report using COM UFL.The report has formulas referencing to COM libraries.The report could be viewed only in CR designer XI. I tried to open th

  • Flash Builder 4.7 - AIR SDK 3.1: Directory does not contain a AIR SDK

    Im still having issues with using AIR 3.1 with flash builder 4.7 (see my previous posts) and would appreciate any help/ advice. Ive uninstalled FB 4.7, reinstalled and followed the procedure to overlay AIR 3.1. Im now getting the following error - AI

  • Special Characters in SELECT Query

    What is the right way of using Special character '*' in SELECT Query. Say..   SELECT PSPID  FROM PROJ                 INTO TABLE IT_P_PROJ                 WHERE PSPID EQ P_PROJ In this P_PROJ is SS*. No value is populating for this . Pls suggest wher

  • Update Error 0007

    I have read all the posts relating to the Update error 0007,  I updated my Paypal details as advised, but still I am unable to download or update any of the big applications, r.e. Modern Combat.  I am very disappointed that none of the BB technical s