Melody SQL

I'm using Oracle 11.2.0.3

Is there anyway that I can fix this simple SQL.
SQL_ID  69vt0gcg5hf8n, child number 0
-------------------------------------
SELECT /*+ GATHER_PLAN_STATISTICS */   *   
FROM dba_synonyms d  
WHERE table_owner = 'MAIN'          
AND owner = 'PUBLIC'       
AND NOT EXISTS (SELECT 1 FROM user_tables u WHERE d.synonym_name = u.table_name)
 
Plan hash value: 2026236024
 
------------------------------------------------------------------------------------------------------------------------------------------------
| Id  | Operation                                | Name           | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
------------------------------------------------------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT                         |                |      1 |        |    588 |00:00:48.10 |   84376 |       |       |          |
|*  1 |  FILTER                                  |                |      1 |        |    588 |00:00:48.10 |   84376 |       |       |          |
|   2 |   NESTED LOOPS                           |                |      1 |      3 |    588 |00:00:48.10 |   84376 |       |       |          |
|   3 |    NESTED LOOPS                          |                |      1 |      3 |    588 |00:00:48.10 |   84371 |       |       |          |
|   4 |     NESTED LOOPS                         |                |      1 |     66 |  25696 |00:00:47.93 |   36725 |       |       |          |
|   5 |      TABLE ACCESS BY INDEX ROWID         | USER$          |      1 |      1 |      1 |00:00:00.01 |       2 |       |       |          |
|*  6 |       INDEX UNIQUE SCAN                  | I_USER1        |      1 |      1 |      1 |00:00:00.01 |       1 |       |       |          |
|*  7 |      INDEX RANGE SCAN                    | I_OBJ5         |      1 |     66 |  25696 |00:00:47.92 |   36723 |       |       |          |
|*  8 |       HASH JOIN                          |                |  26362 |      1 |    666 |00:00:47.81 |   36593 |  1245K|  1245K|  599K (0)|
|*  9 |        FIXED TABLE FULL                  | X$KSPPI        |  26362 |      1 |  26362 |00:00:43.51 |       0 |       |       |          |
|  10 |        MERGE JOIN CARTESIAN              |                |  26362 |    234 |   1413K|00:00:02.49 |   36593 |       |       |          |
|  11 |         NESTED LOOPS OUTER               |                |  26362 |      1 |    666 |00:00:00.31 |   36593 |       |       |          |
|  12 |          NESTED LOOPS OUTER              |                |  26362 |      1 |    666 |00:00:00.29 |   36339 |       |       |          |
|  13 |           NESTED LOOPS OUTER             |                |  26362 |      1 |    666 |00:00:00.27 |   35149 |       |       |          |
|  14 |            NESTED LOOPS OUTER            |                |  26362 |      1 |    666 |00:00:00.26 |   35149 |       |       |          |
|  15 |             NESTED LOOPS                 |                |  26362 |      1 |    666 |00:00:00.24 |   33166 |       |       |          |
|  16 |              NESTED LOOPS                |                |  26362 |      1 |    666 |00:00:00.23 |   31343 |       |       |          |
|* 17 |               TABLE ACCESS BY INDEX ROWID| OBJ$           |  26362 |      1 |   1641 |00:00:00.20 |   28078 |       |       |          |
|* 18 |                INDEX RANGE SCAN          | I_OBJ2         |  26362 |      1 |   1641 |00:00:00.17 |   26465 |       |       |          |
|* 19 |               TABLE ACCESS CLUSTER       | TAB$           |   1641 |      1 |    666 |00:00:00.01 |    3265 |       |       |          |
|* 20 |                INDEX UNIQUE SCAN         | I_OBJ#         |   1641 |      1 |    670 |00:00:00.01 |    2150 |       |       |          |
|  21 |              TABLE ACCESS CLUSTER        | TS$            |    666 |      1 |    666 |00:00:00.01 |    1823 |       |       |          |
|* 22 |               INDEX UNIQUE SCAN          | I_TS#          |    666 |      1 |    666 |00:00:00.01 |     666 |       |       |          |
|  23 |             TABLE ACCESS CLUSTER         | SEG$           |    666 |      1 |    633 |00:00:00.01 |    1983 |       |       |          |
|* 24 |              INDEX UNIQUE SCAN           | I_FILE#_BLOCK# |    666 |      1 |    633 |00:00:00.01 |    1271 |       |       |          |
|* 25 |            INDEX RANGE SCAN              | I_OBJ1         |    666 |      1 |      0 |00:00:00.01 |       0 |       |       |          |
|* 26 |           INDEX RANGE SCAN               | I_OBJ1         |    666 |      1 |    254 |00:00:00.01 |    1190 |       |       |          |
|* 27 |          INDEX RANGE SCAN                | I_USER2        |    666 |      1 |    254 |00:00:00.01 |     254 |       |       |          |
|  28 |         BUFFER SORT                      |                |    666 |   2752 |   1413K|00:00:01.93 |       0 |   106K|   106K|96256  (0)|
|  29 |          FIXED TABLE FULL                | X$KSPPCV       |    666 |   2752 |   1832K|00:00:01.34 |       0 |       |       |          |
|* 30 |     TABLE ACCESS BY INDEX ROWID          | SYN$           |  25696 |      1 |    588 |00:00:00.16 |   47646 |       |       |          |
|* 31 |      INDEX UNIQUE SCAN                   | I_SYN1         |  25696 |      1 |  25696 |00:00:00.09 |   21950 |       |       |          |
|* 32 |    INDEX RANGE SCAN                      | I_USER2        |    588 |      1 |    588 |00:00:00.01 |       5 |       |       |          |
|  33 |   NESTED LOOPS                           |                |      0 |      1 |      0 |00:00:00.01 |       0 |       |       |          |
|* 34 |    INDEX SKIP SCAN                       | I_USER2        |      0 |      1 |      0 |00:00:00.01 |       0 |       |       |          |
|* 35 |    INDEX RANGE SCAN                      | I_OBJ4         |      0 |      1 |      0 |00:00:00.01 |       0 |       |       |          |
------------------------------------------------------------------------------------------------------------------------------------------------
 
Predicate Information (identified by operation id):
---------------------------------------------------
 
   1 - filter((("O"."TYPE#"<>4 AND "O"."TYPE#"<>5 AND "O"."TYPE#"<>7 AND "O"."TYPE#"<>8 AND "O"."TYPE#"<>9 AND "O"."TYPE#"<>10 AND 
              "O"."TYPE#"<>11 AND "O"."TYPE#"<>12 AND "O"."TYPE#"<>13 AND "O"."TYPE#"<>14 AND "O"."TYPE#"<>22 AND "O"."TYPE#"<>87 AND 
              "O"."TYPE#"<>88) OR BITAND("U"."SPARE1",16)=0 OR (SYS_CONTEXT('userenv','current_edition_name')='ORA$BASE' AND "U"."TYPE#"<>2) OR 
              ("U"."TYPE#"=2 AND "U"."SPARE2"=TO_NUMBER(SYS_CONTEXT('userenv','current_edition_id'))) OR  IS NOT NULL))
   6 - access("U"."NAME"='PUBLIC')
   7 - access("O"."SPARE3"="U"."USER#" AND "O"."TYPE#"=5)
       filter(("O"."TYPE#"=5 AND  IS NULL))
   8 - access("KSPPI"."INDX"="KSPPCV"."INDX")
   9 - filter("KSPPI"."KSPPINM"='_dml_monitoring_enabled')
  17 - filter(BITAND("O"."FLAGS",128)=0)
  18 - access("O"."OWNER#"=USERENV('SCHEMAID') AND "O"."NAME"=:B1)
  19 - filter(BITAND("T"."PROPERTY",1)=0)
  20 - access("O"."OBJ#"="T"."OBJ#")
  22 - access("T"."TS#"="TS"."TS#")
  24 - access("T"."TS#"="S"."TS#" AND "T"."FILE#"="S"."FILE#" AND "T"."BLOCK#"="S"."BLOCK#")
  25 - access("T"."BOBJ#"="CO"."OBJ#")
  26 - access("T"."DATAOBJ#"="CX"."OBJ#")
  27 - access("CX"."OWNER#"="CU"."USER#")
  30 - filter("S"."OWNER"='MAIN')
  31 - access("O"."OBJ#"="S"."OBJ#")
  32 - access("O"."OWNER#"="U"."USER#")
  34 - access("U2"."TYPE#"=2 AND "U2"."SPARE2"=TO_NUMBER(SYS_CONTEXT('userenv','current_edition_id')))
       filter(("U2"."TYPE#"=2 AND "U2"."SPARE2"=TO_NUMBER(SYS_CONTEXT('userenv','current_edition_id'))))
  35 - access("O2"."DATAOBJ#"=:B1 AND "O2"."TYPE#"=88 AND "O2"."OWNER#"="U2"."USER#")
 


Statistics
----------------------------------------------------------
         22  recursive calls
          0  db block gets
      84541  consistent gets
          0  physical reads
          0  redo size
      30437  bytes sent via SQL*Net to client
        789  bytes received via SQL*Net from client
         41  SQL*Net roundtrips to/from client
        666  sorts (memory)
          0  sorts (disk)
        588  rows processed
Thank you.

If you check out Metalink/MyOracleSupport, you will find a few performance bugs, etc. that is found recently and are still open.

Example (after searching on X$ KSPPCV):

Bug 15858332 : ADD FIXED INDEX for X$ KSPPCV. INDX AND X$ KSPPI. KSPPINM
Severity 2 - severe loss of Service Product Version 11.2.0.2.0
Status 11 - Bug Code/material (answer/solution)

"DIAGNOSTIC ANALYSIS:
--------------------
Due to the lack of fixed index on X$ KSPPCV and X$ KSPPI, the optimizer must
Choose the fixed table of full scans on both and can easily choose a join order
This results in poor performance (join them after other tables with X$ KSPPCV)
first). See bug 13724904 for a more in-depth analysis to explain why the plan is frequently
poor. »

Tags: Database

Similar Questions

  • Scan for SQL Injection

    Hello

    My site has been pulled down by the host. They sent me the following message is displayed:

    "We got information that there is injection of SQL code on our server and when we draw the injection point is for your domain. '.
    This is the type of attack:
    SQL generic sql update injection attempt - GET, SQL union select parameter - possible sql injection attempt - GET parameter

    That's why we need to disable your Web site for temporary.
    Please, scan your PC and the Web site of local files and make sure that your local files from PC and the site Web is virus-free.
    If you have you analyze local files on PC and the website also make sure that there is no virus please update this post once again.
    So we can reactivate your website. »

    Anyone know what I use for scanning for this please?

    Thank you

    Apple hosts your Web site?

  • Black screen startup melody and repeated mac.

    Hello

    I have an iMac 27' with 8 GB of ram i7 processor and model 2010 with operating system software most recent.

    Two weeks ago, when I press start button I listen to the melody of classic mac startup will be repeated and the screen is still black. Nothing more. It is repeated and repeated when I manually close my iMac.

    You can not press cmd + R or something else.

    I try to disconnect the decision-making, disconnect all usb and fireware devices but nothing. The problem is the same.

    Anyone knows anything to help me?

    Thank you

    It looks like a hardware problem. You can try to start inSafe Mode.

    If it does not take in any Apple store for a free evaluation.

  • Dialog file open Firefox "which is a:" said 'SQL file' with all the files.

    Since I installed PostgreSQL on my Windows 7 PC, all files in Firefox by default SQL or add a ".sql". For example: if I download a javascript file, the saved file is "jquery.js.sql" in the downloads directory. None of my other browsers, only firefox. I did a reset complete and uninstalled/reinstalled and this problem persists. None of my plug-ins are enabled and I only firebug as an extension. How can I solve this problem?

    Try to delete the mimeTypes.rdf file in the Firefox profile folder to reset all the actions file.

    You can use this button to go to the Firefox profile folder:

    • Help > troubleshooting information > profile directory: see file
  • : SqlServer SQL

    I get the following error messages when an application sends a query:

    MSG 605, level 21, State 3, line 1
    Try to look for logical page (1:224) in the 11 failed database. It belongs to allocation unit 72058253744865280 not to 72057594040287232

    What's wrong?

    If DBCC CHECKDB or CHECKTABLE reports an error (which should be the Msg 2533), the page is corrupted or an incorrect page. You must restore from a backup to solve the problem. If you cannot restore from a backup, use DBCC CHECKDB repair options. To find the cause of this problem, you must use techniques as you would with other errors of corruption of database including: search for system-level or hardware problems (a tool such as SQLIOSIM may be useful to do so. SQLIOSIM is supplied with SQL Server 2008 and SQL Server 2008 R2 and requires no separate download) make sure you have the PAGE_VERIFY = CHECKSUM database option turned on. While one can still encounter the Error Msg 605 with active checksum (E.g. "Scribbler" problem or incorrect page provided by the IO system), allowing the checksum can provide irrefutable proof that the page has been changed incorrectly in the IO system. try to restore a backup of the database that you know who won't be 'clean' (CHECKDB errors) and backups of the transaction log that you cover the time when the error was encountered. If you can "replay" this problem of restoring a backup of database 'clean' and the transaction will connect then contact Microsoft Technical Support for assistance.

    https://social.technet.Microsoft.com/forums/itmanagement/en-us/373cf033-D3F1-4f71-AF02-a8a6b8d05828/SQL-database-is-corrupted-please-

  • The problem with SQL after the migration of the database to another machine

    Having a SQL strange problem trying to extract a database being moved from one machine to the other.  Both machines are running SQL 2008 32-bit and are both Windows 2008 servers.  When I try to backup the database using the SQL tools and restore the. BAK file on the new SQL Server, I get the following error:

    Restore failed for server 'servername' (Microsoft.SqlServer.Smo)
    Additional information:
    System.Data.SqlClient.SqlError: RESTORE detected an error on the page (44:2097184) in database 'RestoreDBName' read from the backup set.

    Similarly, when I am trying to copy the. MDF and. LDF files to the new server and tie them, I get the following error:

    Attach the database failed for the server 'servername '.
    Additional information:
    An exception occurred during the execution of a Transact-SQL statement or batch.
    A system assertion failed.  An assertion failure is usually caused by a corruption of data or software bug.  To check the database, consider running DBCC CHECKDB.  If you have agreed to send images to Microsoft during installation, a mini dump will be sent to Microsoft.  An update can be an available from Microsoft in the latest Service Pack or a QFE from Technical Support.
    Could not open new database 'NewDatabaseName' create a DATABASE is dropped.
    "" Location: "logmgr.cpp": 3277
    Expression: lfh-> lfh_startOffset is startOffset
    SPID:55
    PID: 292876 (Microsoft SQL Server, error: 3624)

    Everything I've read, these errors usually indicate some sort of database corruption.  However when I run DBCC CHECKDB on the database on the source server, it is up to perfectly don't own... None detected corruption.  In fact, this server hosts 8 different databases.  Departure from all the correct DB on the source server, none of them will restore however to a new server using one of the methods above.  I'm having a hard time to believe that each of them could be corrupted when they show absolutely no indication of a problem.

    Anyone have any ideas?

    Try to make the backup and restore via SQLCMD (or via a query in SQL Server MS window).

    The backup will be the following (obviously, change "MaBase" and "D:\BACKUPS" to some database and the location you wish to save - just using for example):

    BACKUP DATABASE MyDatabase

    TO DISK = 'D:\BACKUPS\MyDatabase.bak. '

    WITH NOFORMAT, NOINIT,.

    NAME = 'Database MyDatabase - Full Backup',

    NOREWIND, NOUNLOAD, STATS = 10, SKIP

    Copy your backup to the other server and file make:

    RESTORE the DATABASE to MyDatabase

    FROM DISK = 'E:\Backups\MyDatabase.bak' WITH FILE = 1,

    GO to "MyDatabase_Data" to "E:\SQLDATA\MyDatabase_Data.mdf,"

    GO to "MyDatabase_Log" to "E:\SQLLOG\MyDatabase_Data.ldf,"

    NOUNLOAD, STATS = 10 REPLACE

    Again, change your names and locations in function.

    If this does not work, try to restore a database by third-party tools. You can find them in Google. If you don't want to spend the time to research, you can try a tool SQL Server Recovery Toolbox. All the details about this program on the link. http://www.oemailrecovery.com/sql_repair.html

  • Server MS SQL on Tecra A9 problems

    We have two new A9 which will not run Outlook 2007 BCM implemented as it appears that the instance of SQL server on the laptop computers of MSSMLBIZ does not start. Start the service manually the results to get an error code 17058. Reinstall Office, Outlook and BCM does not help, on a single machine, we have tried to reinstall the BCM to include SQL Server and now it fails when it tries to install and run SQL server, again saying that he can not start the service.

    As this is an issue that is specific tp the two A9 (we have other PC running this fine set upward) any ideas what is causing the problem?

    Thank you

    Nick

    Hello

    Since the problem is more software and not really a Toshiba question I suggest you to check some forums Microsoft or M$ support because here probably nobody could help.

    Not much unwanted seem to have such an experience about SQL, even I can't tell you what to do and I know almost every time a sort of suspicion or response.

    A suggestion _could_ be tell me what operating system you have installed. Maybe it s related to the BONE or something else...

    See you soon

  • Update, Qosmio F - SQL Server 2005 Express Edition Service Pack 3 fails

    This update continues to be marked by the automatic update from microsoft, but fails to update no matter how many times I try to treat it... Why is it so?

    What is the aim of SQL servers and do I need? Deleting it will solve my problem?

    Hello

    Check out this page of MS:
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=3181842a-4090-4431-ACDD-9a1c832e65a6&displaylang=en

    You can download here the full Microsoft SQL Server 2005 Express Edition Service Pack 3.
    But please check the Instructions on the page of Ms.
    You will need Microsoft .NET Framework 2.0 or later and you need to follow some other measures that are mentioned on the Web site.

    See you soon

  • Problem to install SQL Server 2005

    Hi friends,
    I have Toshiba computer and I had a problem installing SQL Server 2005 when we do the connectivity to the server, it is not work properly.

    As much I know Toshiba doesn t load of SQL Server.

    By the way: Toshiba has a lot of computers. One you have?

  • Cannot install SQL server 2000 and 2005 on Satellite A205-s5831

    Hello everyone.
    I need some help from you all.
    I have Toshiba Satellite A205-S5831 laptop.
    Its Windows Vista Edition Have Home Premium.

    And I am unable to install SQL server 2000 and 2005.
    I also cannot install Windows XP SP2.

    SATA driver problem.

    Please help me...!

    Answer me

    Hello

    Windows XP needs a SATA driver if you want to install on the laptop with SATA HDD controller.
    Driver SATA can be found in the Intel Storage Manager.

    I advise to use nLite program to include a SATA driver in the new Windows XP CD, then boot from the XP CD created new.
    You will find details of the nLite:
    http://www.nliteos.com/

    With regard to the problem of Server SQL;
    You may be able to install in Windows XP. There may be a compatibility problem between Vista and SQL Server software

  • How to make the chord symbols a sheet/get lead to show above a melody?

    Hello

    Does anyone know how to make a sheet of lead in logic?  How do you get the chord symbols appear above the melody?

    Thank you!

    To change a sheet of lead. Change the personal style of what you have to "lead sheet"...

    For agreements.

    Select the agreements in the area of the part and drag the object to the rope over the first note you want agreements associated with and type the name of the string. You can press return, then drag over another, etc, etc...

    or

    You can drag onto the first and rather type the tab key to move to the next beat, tab again to move to the next beat, etc. and where you want a rope just tap into it and when finished press tab to continue forward beat by beat... See quick example below...

  • Portege R500/Vista - Why SQL Server installed?

    Why the Portégé R500 (with Vista) come with Microsoft SQL Server 2005 pre-installed?

    What is an idea of Toshiba or something to do with Vista?

    Wire in Nice. ;)

    Good luck with your Portege R500.

  • SQL error

    Hello I get a SQL error everytime I click on solve a puzzle on a PTC site, that message is what I get.

    Database of error: Invalid SQL: SELECT user.membership, memberships.downline_earns from user JOIN membership WE memberships.id = user .membership WHERE user .username = 'Is A' type = '1'

    MySQL error: 1064 (you have an error in your SQL syntax; check the manual that corresponds to your MySQL Server version for the syntax to use near 'A' right and type = 1 "at line 1)

    Missed session.

    Any ideas of any software or a way to fix this would be appreciated.

    It is a problem on the web server, and not on your computer. All you can do is inform the operator of the site.

  • HPDM 4.6 - SQL database Question

    I have the console HPDM installed on my machine and the device management server/gateway running on a server.  The database is a database of SQL2012.  I've set up a new machine with SQL2014, and I want to move the database there.  I'm not moving all other parts.

    The problem that I'm running into is that I don't know where to go or what pieces to apply the change to, to point the HPDM at the new location of the SQL Server.

    Any help is appreciated!  Thank you.

    Another way to migrate the DB - dbsetup.exe stimulus, before doing so, please the current DB using the backup of backup & restore tools

    1. stop the server HPDM

    2. navigate... \Hp Device Manager\Server\bin in the command line window

    3. run dbsetup '-language = en ""-country = US "to reopen the DIALOGUE of INSTALLATION DB box

    4. choose the third option - MIGRATE

    5. choose source DB and select the destination DB

    6 finish the Walker

    7. start the DM server

  • How mp3 and vedio and melody of itune uplode

    How mp3 and vedio and melody of itune uplode

    Help, please

Maybe you are looking for

  • HP laptop, 2000 - 2a20CA: Page of the screen shrinks by using the cursor key

    Laptop HP 2000-2a20CA No. B5R61UA It seems the upgrade from Win 7 to win 10 Home edition, in navigation or by using a Microsoft Office program, the windows Explorer. When you move the cursor with the touchpad and then listen to select a link, functio

  • Query data from computer network Analyzer RSZVB

    Hello. Sorry for the inconvenience. I would like to ask u about the data. I have download RSZVB example of measurement in LABVIEW on site of Rohde & Schwarz. Then, data were not included in the graph. The connection that I used is the LAN cable. Or f

  • 'PC Tools Registry Mechanic' window will not disappear and wants me to pay for it

    Original title: help I have a "PC Tools Registry Mechanic" window that appears in the corner Southeast of my screen I can't click off even if it has an icon 'x '.   I need to stop and restart to get rid of.  Then, soon he returns!  It is an option of

  • KB2483185 fails to install even after difficulty there 50593

    I am unable to apply the update to Microsoft KB2483185 February.   I think it started because of a failure of file download, but that has been corrected and now is stuck because MS of a workaround does not work. As stated on the KB article http://sup

  • Search values table

    Hello friends, I have a... simple problem, I m trying to solve without success... Initially I Don t know how I can start this... Well, I have to create a VI and he needs to get the value of 2 resistors PT100 and search in the table below the correct