SLOW VIEW AND DUPLACITE IN SOM RECORDS

Good evening
Iam created this view but make Doublicate or more for many records what is the problem:
CREATE OR REPLACE FORCE VIEW XXX_SINGLE_DATA
NAMEARFIRST,
NAMEARSECOND,
NAMEARTHIRD,
NAMEARFAMILY,
NAMEENFIRST,
NAMEENSECOND,
NAMEENTHIRD,
NAMEENFAMILY,
CV_NATIONAL_ID,
SEX,
EMAILS,
EMAIL2,
EMPLOOYID,
JOBTITLEAR,
IBANACCOUNT,
PHONES,
EXT,
MOBILE,
DEPARTMENT
AS
SELECT first_name namearfirst,
per_information1 namearsecond,
per_information2 namearthird,
last_name namearfamily,
PER_INFORMATION3 nameenfirst,
PER_INFORMATION4 nameensecond,
PER_INFORMATION5 nameenthird,
PER_INFORMATION6 nameenfamily,
national_identifier cv_national_id,
DECODE (a.sex, 'M', 1, 'F', 2, NULL) sex,
email_address emails,
a.attribute5 email2,
a.employee_number emplooyid,
ed.PERSON_TYPE jobtitlear,
ed.BANK_ACCOUNT ibanaccount,
xxx_get_static_phone (a.employee_number),
XXX_GET_PHONE_EXT (a.employee_number),
xxx_get_mobile (a.employee_number),
hd.name
FROM per_people_x a,
per_assignments_x b,
per_qualifications c,
per_time_periods d,
per_person_type_usages ppt,
per_grades e,
xxx_earns_deducts ed,
hr_organization_units hd,
pay_people_groups ppg
WHERE a.person_id = b.person_id
AND a.person_id = c.person_id(+)
AND TO_DATE (TO_CHAR (SYSDATE, 'dd/mm/yyyy'), 'dd/mm/yyyy') BETWEEN d.start_date
AND d.end_date
AND b.payroll_id = d.payroll_id
AND a.person_id = ppt.person_id
AND b.grade_id = e.grade_id
AND b.PAYROLL_ID = ed.PAYROLL_ID
AND a.employee_number = ed.employee_number
AND ed.time_period_id =
(SELECT MAX (time_period_id)
FROM xxx_earns_deducts
WHERE a.employee_number = ed.employee_number)
AND b.people_group_id = ppg.people_group_id
AND b.person_id = a.person_id
AND TO_NUMBER (ppg.segment2) = hd.organization_id(+)
ORDER BY TO_NUMBER (a.employee_number);
Iam Very thank you

Please post the details of the application release, database version and OS.
Do you have the statistics collected up to date?
Please generate the explain plan to find out why the query/view is slow.
Re: query performance
https://forums.oracle.com/forums/search.jspa?threadID=&q=SLOW+AND+Query&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Also, please fix the duplicate records issue first then check the performance of the view/query.
Thanks,
Hussein

Similar Messages

  • I have a digital voice recorder with a 3.5mm mic and headphone jack and want to transfer some recorded lecture to my mac book pro.  The mac book does not have 3.5mm  jacks.  Does anyone know if a jack to USB converter would work?

    I have a digital voice recorder with a 3.5mm microphone and headphone jack and want to transfer some recorded lectures to my mac book pro.  The mac book does not have 3.5mm  jacks.  Does anyone know if a jack to USB converter would work?

    Is there a pattern to the time of day or other detail that may be
    traced back to a OS X system cause of this odd phenomenon?
    Are there any copies of system files on any of the attached USB
    external drives? Any libraries, such as iTunes, iPhoto, etc?
    Once the drives are indexed by Spotlight, are their permissions
    ignored by the OS X? Content, if neutral, should not affect the
    wake or sleep cycle; especially if they're ignored by the OS X.
    Could there be a bad cable or other component? If so that would
    be a difficult process of elimination to detect it. Usually replacing
    most suspect components in the USB stream (external to Macs)
    is a rote way to mechanically test that idea; & not 100% sure.
    Does the equipment all have a good ground to the utility or house
    electrical field? An intermittent ground may affect more than sleep.
    Hard to say at this point. Maybe a late-night talk radio guru on
    remote viewing could peer into your situation and sleuth it out?
    Sorry to have run out of ideas, but the process must be electrical
    & mechanical to some extent. - Or perhaps odd software inspired.
    Do you have any phone-home spyware items inside, just jumping
    at the chance to spill your information? Little Snitch may help.
    PS: Perhaps the computer needs to go into Apple & have a genius
    or product specialist at AASP test the unit thoroughly... BlueTooth?
    see:
    https://www.google.com/?gws_rd=ssl#q=Wake+reason:+XHC1
    Good luck & happy computing!
    edited 2x

  • Completely new to lab view and need to get some stop watch help please

    OK I am new to lab view so please be patient with me. I have a need for a stop watch that is triggered to start when two voltage values differ by more than 0.110V and then stop counting when they return to within 0.110v my goal is to capture the total amount of time the two voltages differ and record it along with the rest of the data is this possible and how would I do it? Thanks I am running 8.5

    danger831 wrote:
    thanks for the quick response but thats not really enough info to help me as I am very very unfamiliar with lab view and have only been using it for a few days(mainly just plugging in copied sections) so hopefully someone can give me a little more help. But the good news is I am now looking into taking one of the Lab view courses but that probably won't help me with this problem this week. thanks again for your help
    For starters, try to write the name correctly. It is LabVIEW, not lab view.
    Seriously though, your best way of learning to is try some things yourself first. Look through the examples that ship with LabVIEW for the components Raven suggested (while loops, shift registers, etc.) We could give you a working example but you will learn far more by trying things for yourself. As suggested, try a few things and then post what you have done and what you are having trouble with. From there we can answer your questions rather than just do it for you.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • I have some loops from acid 5 which I have dragged in a folder to the loop browser.  Some of them retain the folder name in the View: and some don't.  I have had some that seem to go in but I can't find them.  Where should I look?

    I have some loops from acid 5 which I have dragged in a folder to the loop browser.  Some of them retain the folder name in the View: and some don't.  I have also had some that seem to go in but I can't find them.  If I try to add them again, I get a msg that they are already there.  Where should I look?

    It may be best to recreate the folder and the smart playlists from scratch.
    tt2

  • My keyboard on macbook pro (laptop) is acting weird. One key is not responding at all. Have verified using Keyboard viewer and some other keys are printing the unresponsive character at random.

    my keyboard on macbook pro (laptop) is acting weird. One key is not responding at all. Have verified using Keyboard viewer and some other keys are printing the unresponsive character at random. "z" is the unresponsive character.
    Is it a damaged keyboard ?
    The laptop is just 2 months old, will Apple replace it with a new one if its indeed a damaged keyboard or just repair, I use it for official purposes so being without a laptop is not much of an option.

    No one here works for Apple, so we don't know what Apple might or might not do.  If it's a genuine defect, they will of course repair it under warranty.  It is not their responsibility if it effects your ability to work or not, so that's on you.
    If, however, they determine that the key is problematic as a result of your misuse of the laptop, then everything is on you.  And trust me, if they find a glob of dried up beer or coffee there, they will charge you.
    Your only choice is to take it in for repair.

  • Some records stays in Event Polling Table forever and ever

    I have configured Event Polling Table at Oracle BI. It works fine and the entry cache are purged. But some records stays in EPT table for ever. Records without misstat1 are inserted by me (trigger). Records with OTHER=misstat1 are inserted by BI Server. There is no delete or error statement in log file for this timestamp. Other timestamps are deleted by BI Server.
    +++Administrator:fffe0000:fffe0012:----2008/09/22 22:17:58
    -------------------- Sending query to database named misstat1_db (id: <<127983>>):
    insert into
         BI_EPT("UPDATETYPE", "UPDATETIME", "DBNAME", "CATALOGNAME", "SCHEMANAME", "TABLENAME", "OTHER") values (1, TIMESTAMP '2008-09-22 22:08:24', '', '', '', 'MV_E_DENIK_KP', 'misstat1')
    UPDATETYPE     UPDATETIME     DBNAME     CATALOGNAME     SCHEMANAME     TABLENAME          OTHER
    1     22. 9. 2008 22:08:24                                                                    MV_E_DENIK_KP           misstat1
    1     22. 9. 2008 22:08:24                                                                    MV_E_HIM                           misstat1
    1     22. 9. 2008 22:28:19                                                                    MV_ODY_OSCI_VYROCI     misstat1
    1     22. 9. 2008 22:28:19                                                                    MV_ZPC_CERP           misstat1
    1     22. 9. 2008 22:08:24                                                                    MV_E_DENIK_KP     
    1     22. 9. 2008 22:08:24                                                                    MV_E_HIM     
    1     22. 9. 2008 22:28:19                                                                    MV_ZPC_CERP     
    1     22. 9. 2008 22:28:19                                                                    MV_ODY_OSCI_VYROCI     

    UpdateTime needs to be unique, but you can't put a unique constraint on it. As you probably know, the server will insert a nearly identical record (it will just put text in the OTHER field but everything else will be the same). Then it deletes both records. However, in your case it looks like there are some identical timestamps that are not just duplicates from the server's insert. If you make sure you don't have any identical timestamps in UpdateTime, I think it will work correctly if everything else is configured correctly.

  • HT201177 I cannot view some videos and participate in some websites since Adobe upgraded all to Flash 11.7. I have an older Mac G5 PowerPC (no Intel chip) running OS 10.5.8. I keep getting splash screens saying I have to update to Flash 11.7 but 11.7 is m

    I cannot view some videos and participate in some websites since Adobe upgraded all to Flash 11.7. I have an older Mac G5 PowerPC (no Intel chip) running OS 10.5.8. I keep getting splash screens saying I have to update to Flash 11.7 but 11.7 is made for those Macs with an Intel chip. I am running the newest Flash for my system. It seems all concerned should have made Flash retro-compatible for those of us with older Macs. Is there a work around to this Flash requirement short of buying a new Mac with the Intel chip?

    I'll bet you'll have better luck if you post your question in the Power Mac discussions here: https://discussions.apple.com/community/desktop_computers/power_mac
    Either that, or one of the forums at Adobe.
    Good luck.
    Russ

  • HT4847 On startup my macbookair says start up disk full/delete some files. When I look at storage disk utility I see 51GB of a possible 60GB is used with Other. What is Other? and how can I view and delete some of these files?

    On startup my macbookair says start up disk full/delete some files. When I look at storage disk utility I see 51GB of a possible 60GB is used with Other. What is Other? and how can I view and delete some of these files?

    A MacBook will use Time Machine to make local backups so that when connected to an external drive it will backup a lot faster.
    to disable this, you must use a command under terminal.
    to locate terminal, do a search for it under spotlight (the magnifying glass on the top right corner), should be the first hit.
    once under terminal, type the following text exactly:
    sudo tmutil disablelocal
    hit enter.
    you will be asked to input your password, if you do not have a password, you will have to create one before performing this command. after entering your password, hit enter again and close terminal.
    in a few minutes the space taken up by time machine should be cleared.

  • SQL Server slow on some records after insert

    Have an application that uses Web Service which picks packages with 250 records on the server. Each item is validated and inserted into the database. The problem is that with an empty table, the process inserts 20 records per second, although I still find
    it slow, but as the amount of record will be inserted into the table, the perfomece falls gradually. For example, with 10000 record in the table, can only process 12 record per second, and it will fall until it reaches a minimum of 6 records per second. 
    The database has only primary key, and took longer triggers and indexes. 
    I use SQL Server 2012.
    I researched and saw that I can use XML to do the insert. What is the best way to do this? And because both perfomece falls.
    Marlon Tiedt
    www.sesmt.com.br

    Added the DDL below the 3 main tables involved. The machine I'm doing the tests is an i7 with 8 GB of RAM. Yesterday processing, MS SQL Server came to stay with 3GB of RAM allocated. 
    Another test I did was when I was with 15000 records I deleted the PRODUTO and PRODUTO2 tables, and the process was once again fast, with 20-25 record per second and then fell again to 16 and gradually becoming slower. 
    Another test, I removed everything, PK, FK, constraint and indexes and yet was not fast. I am also thinking that is not index. 
    One thing I noticed, as have several tables involved, opens a transaction on the database, which creates the transaction in my database and then creates the tempdb, is this normal? 
    What additional information I could pass along to you help?
    CREATE TABLE [dbo].[PRODUTO](
    [PR_CODIGO] [int] NOT NULL,
    [PR_ABREVIATURA] [char](20) NOT NULL,
    [PR_DESCRICAO] [char](80) NOT NULL,
    [PR_DESCNOCUPOM] [char](1) NULL,
    [PR_LOTE] [char](1) NULL,
    [PR_COMPOSICAO] [char](1) NULL,
    [PR_PESAVEL] [char](1) NULL,
    [PR_PRECO] [numeric](15, 4) NULL,
    [PR_CUSTO] [numeric](15, 4) NULL,
    [PR_IMCODIGO] [int] NULL,
    [PR_STCODIGO] [int] NOT NULL,
    [PR_UMSIGLA] [varchar](3) NOT NULL,
    [PR_PSMCODIGO] [int] NULL,
    [PR_MLCODIGO] [int] NULL,
    [PR_REGSUM] [int] NULL,
    [PR_CODIGOPR] [int] NULL,
    [PR_MINIIMG] [int] NULL
    ) ON [PRIMARY]
    SET ANSI_PADDING OFF
    ALTER TABLE [dbo].[PRODUTO] ADD [PR_VARIAVEL1] [varchar](250) NULL
    ALTER TABLE [dbo].[PRODUTO] ADD [PR_EXPORTADO] [char](1) NULL
    ALTER TABLE [dbo].[PRODUTO] ADD [PR_RLCODIGO] [varchar](40) NULL
    CONSTRAINT [PRODUTO_PK] PRIMARY KEY CLUSTERED
    [PR_CODIGO] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    CREATE TABLE [dbo].[PRODUTO2](
    [PR_PRCODIGO] [int] NOT NULL,
    [PR_OBSERVACAO] [text] NULL,
    [PR_ATIVO] [char](1) NULL,
    [PR_TIPODISPO] [char](1) NULL,
    [PR_STPORESTADO] [char](1) NULL,
    [PR_NOVOPRECO] [numeric](15, 4) NULL,
    [PR_ORIGEM] [char](1) NULL,
    [PR_FUCODIGO] [int] NULL,
    [PR_CFCODIGO] [char](10) NULL,
    [PR_FOCODIGO] [int] NULL,
    [PR_UMCOMPRA] [varchar](3) NULL,
    [PR_DTREGISTRO] [datetime] NULL,
    [PR_DTULTALT] [datetime] NULL,
    [PR_VARIAVEL5] [char](20) NULL,
    [PR_VARIAVEL6] [char](20) NULL,
    [PR_PECOMISSAO] [numeric](15, 4) NULL,
    [PR_VARIAVEL7] [char](20) NULL,
    [PR_VARIAVEL8] [char](20) NULL,
    [PR_VALIDADE] [int] NULL,
    [PR_PESO] [numeric](15, 4) NULL,
    [PR_MOSIGLA] [varchar](3) NULL,
    [PR_DTALTPRECO] [datetime] NULL,
    [PR_PRECOANT] [numeric](15, 4) NULL,
    [PR_PECOMISSAOPRAZO] [numeric](15, 4) NULL,
    [PR_ALFA1] [varchar](40) NULL,
    [PR_ALFA2] [varchar](40) NULL,
    [PR_NUM1] [numeric](15, 4) NULL,
    [PR_NUM2] [numeric](15, 4) NULL,
    [PR_PRECOFUTURO] [numeric](15, 4) NULL
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    SET ANSI_PADDING OFF
    ALTER TABLE [dbo].[PRODUTO2] ADD [PR_EXIBETOUCH] [char](1) NULL
    ALTER TABLE [dbo].[PRODUTO2] ADD [PR_VARIAVEL2] [varchar](250) NULL
    ALTER TABLE [dbo].[PRODUTO2] ADD [PR_VARIAVEL3] [varchar](250) NULL
    ALTER TABLE [dbo].[PRODUTO2] ADD [PR_VARIAVEL4] [varchar](250) NULL
    ALTER TABLE [dbo].[PRODUTO2] ADD [PR_PESOBRUTO] [numeric](14, 2) NULL
    ALTER TABLE [dbo].[PRODUTO2] ADD [PR_LABORATORIO] [varchar](80) NULL
    CONSTRAINT [PRODUTO2_PK] PRIMARY KEY CLUSTERED
    [PR_PRCODIGO] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ALTER TABLE [dbo].[PRODUTO2] ADD DEFAULT ('N') FOR [PR_ATIVO]
    GO
    CREATE TABLE [dbo].[BARRAS](
    [BR_BARRAS] [char](20) NOT NULL,
    [BR_PRCODIGO] [int] NOT NULL,
    [BR_LOTE] [int] NULL,
    [BR_UMSIGLA] [varchar](3) NULL,
    [BR_REGSUM] [int] NULL
    ) ON [PRIMARY]
    SET ANSI_PADDING OFF
    ALTER TABLE [dbo].[BARRAS] ADD [BR_CODIGOFISCAL] [char](1) NULL
    CONSTRAINT [BARRAS_PK] PRIMARY KEY CLUSTERED
    [BR_BARRAS] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    Marlon Tiedt
    www.sesmt.com.br

  • Slow in accessing Virtual Admin, Log Viewer and ConfigTool

    I'm trying to access the Virtual Admin, Log Viewer and ConfigTool remotely and the accessing speed is awfully slow.
    Slow in terms of when I click on certain menu, it took me about 30-60 seconds just load the items.
    Any particular setting that I can do to improve the loading speed?
    P/S: I'm running SAP EP 7.0 on Sun Solaris 10, Oracle 10g, Java 1.4.3
    Thanks
    Edited by: Brandon Cheah on Sep 4, 2008 7:49 AM

    Hello,
    Check the CPU utilization on the server, maybe the server is very busy.
    Regards,
    Siddhesh

  • Link to DL Linksys Multi Camera Viewer and Recorder Utility

    I read that the Multi Camera Viewer and Recorder Utility is backward compatible.  I have 2 WVC54G cameras and I would like to use it for them.  Can someone provide a link to download the Multi Camera Viewer and Recorder Utility?
    Thank you.

    Click here

  • For tablet touch is very slow in firefox OS. Some times it is hanging. While dialing number to call it taking to much time. How to fix and debug this issue.

    For tablet touch is very slow in firefox OS. Some times it is hanging. While dialing number to call it taking to much time. How to fix and debug this issue. Waiting for your reply.

    Hi sb00349044,
    I'm sorry to hear that you are having problems with your Firefox OS device. Can you please specify the device Model and Version?
    If your device is one of the Firefox OS Tablets from the contribution program, please be aware that those builds are still being improved and ironed out. If that is the case, please follow the guidelines for the contributor program to report issues with the device.
    Thanks,
    - Ralph

  • Record audio and save on some server!

    Hello Guys,
    I have a requirement in an elearning project where I need to record the users audio and place it on some server so that user can hear it again in future when required. Basically user shall be asked with questions for which he has to answer on mic and that should be recorded and saved on server for future references...
    So is this by any chance possible with Adobe Connect ? If not then feel free to post your suggestions please....
    Thanks in advance for your kind consideration!
    As ever,
    VK

    All recordings done with Connect are server side and can be accessed later through a URL, with or without password protection. So, yes, this is possible via Connect.

  • A track that I bought from the store only play partially as if it didn't completely download. This was some time a go and there is no record in my iTunes account of its purchase. Any thoughts to a solution?

    A track that I bought from the store only play partially as if it didn't completely download. This was some time a go and there is no record in my iTunes account of its purchase. Any thoughts to a solution?

    Hello Kim,
    You may want to consider deleting and redownloading the affected songs from the iTunes Store.
    Deleting files from the iTunes library and your computer
    http://support.apple.com/kb/HT3842
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    All the best,
    Allen

  • HT4522 how do I view and verify that the back up files are in fact recorded on Airport?

    How do I view and verify the files on Airport do in fact exist?

    Click the Time Machine "clock" icon on the dock
    Wait a few minutes for the Time Machine "Star Wars" interface to load
    Use the scale at the right of the screen to select a recent backup time or date
    Navigate to find the file(s) that you want to see
    Click Cancel to return to the present time

Maybe you are looking for

  • How to send out email in HTML format instead of Plain text?

    Can anyone help? Or any website with that information? I am trying to send out email using javamail. But i want it to be in HTML format so that i can set font size,coulor and so on. Thanks in advance if you have any clue or solution.

  • System failure during locking GL 401000

    Dear All, At the time of J1IIN following error is displayed "System failure during locking GL 401000" This is Basic excise duty GL Please help to solve the issue. Regards, Pravin

  • HT201700 Voltage input range for original Macbook air 2008/2009

    My charger (A1244 | 45w) no longer works. And I need to buy a new charger. Since this is for an old 2008 macbook air, the smart thing to do is buy a charger that will work with new models (that require 85w). Apple doesn't make this power tolerance sp

  • 6230i wierd error with phone when connecting to bl...

    I have had it working on my old computer, and now when i am trying to get it to work on this new computer, i get this error... http://img123.imageshack.us/img123/8444/problem15l​v.jpg .....Message Edited by titch2349 on 13-Feb-2006 06:41 PM

  • Layout space issues with IE7

    Hi Everyone, I have a website that I created that is a two column fixed width with header and footer. When you look at the site in Firefox the spacing between the sidebar on the left and the main content is correct but when you view the same site in