SQL Developer 2.1 EA - count rows with filter on a table

This is a small problem that I came across today while using 2.1 EA. I opened a table and did a filter to narrow down the results of the table. Then when I right clicked on the search results and clicked on 'Count Rows'....I get the count of the rows in the table and not my search results.
Is this a feature or a bug?
Thanks,
Mike

In EA2, we get both the total and the filtered total, nice.
Only remark is we don't get a progress indicator anymore, and thus can't cancel a query that might take up hours to finish!
Please log a bug for this.
Thanks,
K.

Similar Messages

  • Oracle SQL Developer 1.2 – Automatic -  is compatible with Oracle 11g?

    Oracle SQL Developer 1.2 – Automatic - is compatible with Oracle 11g?
    Thanks in advance!
    -Babu

    So I'm taking it the question is -
    Is 1.2 Sql Developer compatible with 11g DB?
    The short answer is Yes. We are constantly adding new functionality and better support for the newer Databases. For Example to use the real time Sql monitoring that became available in 11g you will have to be on at least 2.1 Sql Dev. Is there some reason you don't want to upgrade to the latest Sql Dev? If not the current EA version then at least the current production version?
    Thanks,
    Syme

  • SQL Developer connect to RAC12c (Basic) failed with ORA-01017 invalid username/password; logon denied

    I'm using scan in hostname to connect as Basic that failed ORA-01017.  I'm using the same credential system to logon from sqlplus and is fine.
    Any ideas?

    Essentially all you have said is: help me, I have a problem.
    1. full version of sql developer being used
    2. full version of Java SDK being used
    3. full version of JDBC jar file being used
    4. full details on the connection information being used
    5. full version of the Oracle client being used
    6. confirm that both your sql*plus and sql developer connections were made from the SAME machine
    A Basic connection uses the thin driver while sql*plus is using OCI

  • Counting rows with a particular value

    Hello. I recently posted this thread Count java problem for how to count an attribute.
    Now I need that count to be limited to a certain value inside the attribute.
    let me clarify. I have a table Casinos, which is connected to a table SlotsInCasinos, which is further connected to SlotMachines in a many to many with SlotsInCasinos being the intersection.
    The previous post that I mentioned (thanks Timo by the way) told me how to count all the slots in a particular casino.
    Now I would like to know how I could count all the slots of a particular value (for example Poker slot Machines, regular Slot machines, etc) instead of the total count in a particular object.
    So on the page I would have lets say 2 output texts, one showing the number of Poker Slot Machines in that particular casino and the other showing the number of regular Slot machines in that particular casino (a third could show the number of some third kind of slot machines).
    Thank you for your time

    Hello everyone here is an update
    I created a view object called Test, based on the entity object SlotMachinesInCasino. I then created a view link TestLink and created a master detail relationship (the same one I already had for the View Object SlotMachinesCasinosVO.
    The difference is in the query for test I put the following
    SELECT
        VezaTehOpTipAp.OBJEKAT_ID,
        VezaTehOpTipAp.TIP_APARATA_ID,
        VezaTehOpTipAp.VEZA_TEH_OP_TIP_AP_ID,
        TIPOVI_APARATA.NAZIV_APARATA NAZIV_APARATA
    FROM
        VEZA_TEH_OP_TIP_AP VezaTehOpTipAp,
        TIPOVI_APARATA
    WHERE
        TIPOVI_APARATA.NAZIV_APARATA = 'Evona'My thinking was that if I do this the estimated row count function for this will just give me the number of Evona Game machines. I tried it out in an SQL Worksheet and it gives back only the Evona machines.
    Unfortunately when I create the TestIterator and then drop output text whose EL is the estimated row count for the test iterator it does not work as intended. It counts all the Slot Machines in the Object no matter the Name.
    So it gives a number equal to all the slot machines instead of to the number of slot machines with name 'Evona'.
    What did I do wrong?

  • SQL Developer 1.1.0.21: Issues with Data Grid and SQL syntax checking

    In this new release of SQL Dev, when I execute a SQL in the SQL Worksheet and click in the Data Grid in the Results tab and try to navigate within a record using arrow keys, the grid cell enters into edit mode by default and so I cannot use the Left or Right arrow keys to navigate the grid. I am forced to use tab key to navigate. This is counter intuitive in my opinion.
    Is there any option to change this behavior?
    Another issue that I have come across is with SQL syntax checking. In some cases, when I press F9 to execute a SQL, it shows the SQL as executed i.e. shows something like 0.0134 seconds in the toolbar and no results displayed. In reality, the SQL had some syntax error which were NOT reported. This can be frustrating since now I have to fall back to SQL*Plus or TOAD just for syntax check.
    I like the fact that SQLDev highlights the current SQL but it would be more useful if it just indicated the first line of the current sql instead of highlighting the whole sql.
    Manish

    "In this new release of SQL Dev, when I execute a SQL in the SQL Worksheet and click in the Data Grid in the Results tab and try to navigate within a record using arrow keys, the grid cell enters into edit mode by default and so I cannot use the Left or Right arrow keys to navigate the grid. I am forced to use tab key to navigate. This is counter intuitive in my opinion."
    In the "Results" tab, Click Ctrl & Tab keys (at the same time) or with mouse click on any cell other than the first column (a sequence or rownum), you will be able to navigate using the arrow keys.
    "Another issue that I have come across is with SQL syntax checking. In some cases, when I press F9 to execute a SQL, it shows the SQL as executed i.e. shows something like 0.0134 seconds in the toolbar and no results displayed. In reality, the SQL had some syntax error which were NOT reported. This can be frustrating since now I have to fall back to SQL*Plus or TOAD just for syntax check."
    The 0.0134 seconds could be the result of the most recently executed successful statement. Check the Script Output tab for errors. Use F5 (Run Script option) instead of F9.
    "I like the fact that SQLDev highlights the current SQL but it would be more useful if it just indicated the first line of the current sql instead of highlighting the whole sql."
    On the SQL statement (or code), Right Click -> Format SQL (or press Ctrl & B), proper formatting would help.
    I use version 1.0.0.15.57 and seems to be working allright.
    - Babu Rangasamy

  • Counting rows with multiple criteria

    I know this is a silly beginner question, but is there an easy way to count the number of rows in a table which match criteria based on different columns (sort of a countif with multiple criteria). For example, if Column A in a table has "All, Some, None" responses and Column B has "Main, Off" responses, is there an easy way to count the number of rows in which Column A has All and Column B has Off?

    Neondiet wrote:
    From an intellectual and philosophical view I agree with you. But from a practical view what I really want to do is just use one application for my spreadsheet tasks, not jump back and forth because one sheet I share with MS Windows users, and another with Numbers users, and another with OS X users who don't have Numbers or Excel but do have NeoOffice. Maybe I have to settle for that though.
    Yeah... this kind of situation stinks. Its like needing to writing software that will run on both Macs and PCs.
    Anyway, I've followed the advise in this forum and resorted to using a hidden column with concatenated values to solve my own problem, though it does seem like a bit of a hack compared to managing a single formula in a single cell. Horses for courses I suppose.
    jaxjason has posted a very elegant pivot table like solution that utilizes this technique. See http://www.numberstemplates.com/forums/showthread.php?t=36
    Btw, from what I've read on the net to date, SUM (in Excel) with an array formula answers the original authors problem of counting occurrences of values, not SUMPRODUCT; which I believe sums up the contents of cells in a range, if cells in other ranges match specific criteria.
    Yes, if you use the '*' (as indicated above) then SUM() is sufficient though SUMPRODUCT() will work as it degenerates to SUM when there is only one argument. If you use two arrays as arguments (like: = SUMPRODUCT((A1:A4="All"), (B1:B4="Off")), then SUMPRODUCT() is necessary. Here's my understanding of how it works (I hope your able to follow my abuse of algebraic techniques):
    =SUM((A1:A4="All") * (B1:B4="Off"))
    expanding the array expressions...
    =SUM((A1="All", A2="All", A3="All", A4="All") * (B1="Off", B2="Off", B3="Off", B4="Off"))
    at this point Excel computes the equality expressions, for example...
    =SUM((TRUE, FALSE, TRUE, FALSE) * (TRUE, TRUE, FALSE, FALSE))
    expanding the array multiplication...
    =SUM((TRUE * TRUE, FALSE * TRUE, TRUE * FALSE, FALSE * FALSE))
    Excel, apparently, then, when forced to multiply Boolean values, maps TRUE -> 1 and FALSE -> 0...
    =SUM((1 * 1, 0 * 1, 1 * 0, 0 * 0))
    performing the multiplications...
    =SUM((1, 0, 0, 0))
    summing...
    =1 + 0 + 0 + 0
    resulting...
    =1
    I'm afraid, now, if I continue any further, Yvan will chastise me.

  • SQL Developer: How do I copy data with Column Headers from the output grid?

    Hello,
    I am using Version 2.1.1.64.
    I run a SQL query, I get the results grid in the "Query Result" window down below. Say I get 10 rows returned, with 5 columns.
    I want to Copy this entire grid, plus the column headers/names, to the clipboard. So I can paste it under the original query to document the results of that query.
    I can't find any way to do this. I can copy/paste the results grid, but it doesn't copy the headers.
    The only way I see to do it is to go through numerous steps to Export to a TXT file, then paste that. Unfortunately, that is a lot of wasted steps if I need to do this over and over, plus, the output gets pasted in an ugly format with double quotes, etc.
    It seems like the simplest functionality is to copy/paste the entire results grid, and of course you might the headers. Why is this so complicated/impossible to do?
    (I believe Toad has the same problem. DBArtisan allows you to copy/paste the entire results, plus headers, though.)
    Any assistance would be appreciated!
    Thanks,
    John

    Ah, ok...
    I had tried that before, and it didn't work, it seemed to copy the path of filename I was using. But I think that was because I had clicked on a Column Header first, and it had asked me if I wanted to filter. I think then it lost track that it was in the grid. It's a little flukey.
    What I did now was to click on an individual cell in the output, then hit CTRL-A to select all, then hit SHIFT-CTRL-C. That gives me exactly what I want.
    Thanks very much for your quick solution, I appreciate it!
    John

  • SQL Developer  3.2.09 fetch rows limit

    Hi,
    I have a problem. When I perform a query on some table that returns a lot of rows I can get only number of rows that set in fetch size in Preferences->database->Advanced. It just stops and doesn't allow to scroll any more. There was no such kind of problems in previous release

    Found duplicate report here:No more than 50 records in a query result . Resolved.
    Edited by: user12009569 on 20.09.2012 3:20

  • Locating row with invalid number from  table with few million rows

    We need to query the a table or a view of same to obtain a id of type VARCHAR with bind value being NUMBER. Any attempts in this regard I try seem to result ORA-01722: invalid number. Once case is below here
    SQL> select TEXT_ID FROM ATT_TABLE where to_number(TEXT_ID) = 9411956;
    select TEXT_ID FROM ATT_TABLE where to_number(TEXT_ID) = 9411956
    ERROR at line 1:
    ORA-12801: error signaled in parallel query server P010
    ORA-01722: invalid number
    1. TEXT_ID column is meant to have numeric values in VARCHAR type. It is possible that some record / row is not complying. How can I locate the non-complying records ?
    2. What would be a VIEW definition that would return only records with valid numeric data in TEXT_ID column.
    Edited by: bonjonbovi on Feb 13, 2009 3:58 PM

    Of course the regexp_like is really cpu expensive, but there's no other solution in your situation
    The only way to differ numberic value from character, is REGEXP_LIKE function
    But you can do it using PL/SQL
    BEGIN
       FOR c IN (SELECT TO_NUMBER (ID) ID
                   FROM test_number)
       LOOP
          DBMS_OUTPUT.put_line (c.ID);
       END LOOP;
    EXCEPTION
       WHEN OTHERS
       THEN
          NULL;
    END;

  • SQL Developer 3.1.07.42 existing column filter no longer editable

    LO developers,
    I have noticed a change in behaviour (I would not call it a regression ;o) ) since v3.1 prod release.
    Until 3.1.07.42, when you add a column filter on a table or query resultset, you could edit the filter later. Since 3.1.07.42, it is no longer possible: one has to remove the filter first and then enter a new one.
    Is this the intended behaviour? I preferred the previous one.
    Have a nice day,
    Olivier.

    Unfortunately. Here is another forum thread referencing this issue, including the bug number:
    Another bug introduced in production release - table filter
    -Gary

  • Sql Developer 1.5.5 bug with large sequence start values.

    We have a small table in our sql server 2005 schema (~700) rows. Its primary key is a bigint. We randomly generate ids for this table (don't ask). We have ids for this table which are larger than 2147483647. (java.lang.Integer.MAX_VALUE). I'm using a Windows 10g instance as the repository:
    SQL> select * from v$version
    2 ;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Capturing this model works fine.
    Converting this model works fine.
    When the converted model is "Generated", Sql Developer stops generating the script before the worksheet window is opened with the generated sql. If run from sqldeveloper/bin, this exception is output to the console:
    java.lang.Exception: java.util.NoSuchElementException
    at oracle.dbtools.migration.workbench.core.ui.AbstractMigrationProgressRunnable.start(AbstractMigrationProgressRunnable.java:141)
    at oracle.dbtools.migration.workbench.core.GenerateInitiator.launch(GenerateInitiator.java:42)
    at oracle.dbtools.raptor.controls.sqldialog.ObjectActionController.handleEvent(ObjectActionController.java:149)
    at oracle.ide.controller.IdeAction.performAction(IdeAction.java:524)
    at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:855)
    at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:496)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
    at java.awt.Component.processMouseEvent(Component.java:6134)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
    at java.awt.Component.processEvent(Component.java:5899)
    at java.awt.Container.processEvent(Container.java:2023)
    at java.awt.Component.dispatchEventImpl(Component.java:4501)
    at java.awt.Container.dispatchEventImpl(Container.java:2081)
    at java.awt.Component.dispatchEvent(Component.java:4331)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
    at java.awt.Container.dispatchEventImpl(Container.java:2067)
    at java.awt.Window.dispatchEventImpl(Window.java:2458)
    at java.awt.Component.dispatchEvent(Component.java:4331)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.util.NoSuchElementException
    at oracle.dbtools.metadata.persistence.PersistableObjectIterator.next(PersistableObjectIterator.java:131)
    at oracle.dbtools.migration.generate.GenerateWorker.generateSequences(GenerateWorker.java:862)
    at oracle.dbtools.migration.generate.GenerateWorker.generateIndividualSchema(GenerateWorker.java:456)
    at oracle.dbtools.migration.generate.GenerateWorker.generateSchema(GenerateWorker.java:365)
    at oracle.dbtools.migration.generate.GenerateWorker.runGenerate(GenerateWorker.java:220)
    at oracle.dbtools.migration.workbench.core.ui.GenerateRunner.doWork(GenerateRunner.java:71)
    at oracle.dbtools.migration.workbench.core.ui.AbstractMigrationProgressRunnable.run(AbstractMigrationProgressRunnable.java:161)
    at oracle.dbtools.migration.workbench.core.ui.MigrationProgressBar.run(MigrationProgressBar.java:569)
    at java.lang.Thread.run(Thread.java:619)
    A problem row can be viewed by issuing this query against the repository:
    select * from md_sequences where seq_start > 2147483647;
    We have one row returned. The oracle.dbtools.metadata.persistence.MdSequence class uses a java.lang.Integer value to store the start value for the sequence. The value stored in the repository's MD_SEQUENCE table overflows the Integer type.
    Updating the SEQ_START column in the MD_SEQUENCE table fixed our problem. (Well, I can now generate the schema. I may have other problems with the sequence being off).
    I've written this post to save someone else the day it took me to diagnose this problem with Sql Developer 1.5.5. At the very least Sql Developer should inform the user that it could not generate the script because of the large sequence start value. It basically swallows any error and terminates script generation without any type of feedback.

    Update: I was able to recreate the problem!
    1. Create a new table (I used TEST).
    2. Mark first column af primary key.
    3. Save the table.
    Notice the name of the primary key index created: (TEST_PK in my case)
    4. Edit the table.
    5. Under constraints change the name of the primary key constraint.
    6. Save the table.
    Notice that the index still has its original name.
    7. Edit the table.
    8. Change something.
    9. Attempt to save changes (Fails).
    Conclusion:
    Either SQL Developer should be aware of indexes with different name than a constraint,
    or when SQL Developer changes the name of a constraint with an index, both the constraint and the index should be renamed.

  • Performance problem with slow VIEW from JDBC (fast from SQL Developer)

    Hi all,
    I'm experiencing following problem and would like to know if someone else also hit this one before and has a suggestion how to solve it:
    I have a pretty complicated SELECT statement that per definition returns only a few rows (~30). With no further optimization it takes ~20 seconds to return the full dataset in Oracle SQL Developer. If you add the */+ PUSH_PRED(name_of_some_inner_view) /* hint (hint is correct, stars got eaten by the OTN-forum syntax), the statement takes less than 0.5s to execute (still in SQL Developer). I saved the statement with the hint as VIEW. Selecting from the VIEW in SQL Developer is also fast.
    Now if I call the statement from JDBC (Tomcat webapp), I can see from the server console that the statement is 1:1 100% the same as the one I execute in SQL Developer. Nevertheless it takes about 20 seconds to complete.
    Here my details:
    SELECT banner FROM v$version;
    BANNER                                                                        
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production             
    PL/SQL Release 11.2.0.2.0 - Production                                          
    CORE     11.2.0.2.0     Production                                                        
    TNS for 32-bit Windows: Version 11.2.0.2.0 - Production                         
    NLSRTL Version 11.2.0.2.0 - Production                                          
    JDBC Driver used: some old odbc14.jar as well as current odbc6.jar for 11.2.0.2.0 from http://www.oracle.com/technetwork/da...10-090769.html
    SQL Developer: current version 3.2.20.09From my reading this could go wrong:
    - JDBC doesn't know the VIEW's column data types and Oracle behaves mysterious because of this (=there must be more to the SELECT than just the string, some meta-information)
    - For some reason the hint inside the VIEW is not used (unlikely)
    I also tried a Table Function/Pipelined table and selected from it as a workaround, but the result is the same: Selecting from Function is fast from SQL Developer, but slow from JDBC. All other statements that come from JDBC are as fast as they should be. I really don't know what to think of this and where the error might be.
    Is there some setting that tells Oracle not to use hints when called from JDBC?
    Thank you & Best regards,
    Blama

    Hi Bawer,
    that's what I'm thinking. Unfortunately I can't post it, as it is library code (not my lib). But in the debug-output I can see the SQL-String sent to the DB (which does include the hint).
    But I find the 2nd option you mention more likely anyway: Even if I put the hint into a VIEW and select from the view, the time-difference is there (it's even there if I use Table Functions/Pipelined table and select from the function).
    So I'd think it is more likely that something else is happening (e.g. Oracle is configured in a way that it does not use hints when called from JDBC or similar. Or the library sets some session options in order to prevent the usage of hints). But I don't know if there is even the possibility of doing so.
    Does the Oracle JDBC driver have the option to set these options?
    Does the Oracle DB have the option to set sth. like "ALTER SESSION SET dontUseHints = 'Y';"

  • SQL Developer 1.5 having problems with JDK 6 Update 7

    I tried to open a table using SQL Developer 1.5 but connection timed out. when using SQL developer 1.2 i don't get any problems opening it.
    i have JDK 6 update 7 installed.
    the only problem with SQL Developer 1.2 is that i get a jdbc in the error log
    how do i get to fix the SQL Developer 1.5?

    --The sql developer is connected using tnsnames.ora, with read only access
    --i'm using windows XP SP3
    --I have jdk 6 update 7 installed
    --The tables that I can't View is listed under Other Users.
    --I thought it was just because i have no permission to view it, but when i used the old sql developer 1.2, it displayed it properly.
    --The reason i want to use SQL developer 1.5 is because i don't want to see any JDBC error on log messages, which happens on the sql developer 1.2
    --i dont get to see any errors, sql developer suddenly can't view and lost the connection. it says connection is currently busy. and suddenly stops responding, the only way i can get it working again is by using the taskbar, when it close the program it gets java is not responding..
    --also when i try running sqlcli.bat i get error with it.. is it because of my java?
    --What more details do you need?
    Edited by: user10285639 on Oct 15, 2008 4:47 PM
    Edited by: user10285639 on Oct 15, 2008 4:53 PM

  • Issue with viewing Package Body in SQL Developer 2.1 EA1

    I was able to view the package body from different schemas after I log in with user account in SQL Developer 1.5.5.
    But with SQL Developer 2.1 EA1, I could view only spec and I can see the package body only if I log in with DBO account.
    Is there any setting that needs to be configured to be able to view the package body?
    Thanks!

    Thanks for replying my message.
    It's Oracle 9i.
    What I meant 'spec' is you can see only the headers you defined in spec. You can expend the package and be able to see the all functions and procedures but you won't be able to see the '%packagename% Body' where all the detail code were written.
    As I mentioned in my previous post, with SQL Developer 1.5.5 version, you can see spec and package body if you expend the package.

  • Is SQL Developer 1.5.5 Compatible with SQL Server 2008

    We are trying to perform a database migration and we keep getting "Locating Source Plugin" failed, we have the jTDS Drivers from sourceforge, tried several versions, including 1.0, 1.2, 1.2.2, 1.2.4, 1.2.5, 1.2.7, and 1.2.8... and i came across a thread Sql Dev Third party migration issue
    and i was wondering if SQL Developer 1.5.5 is compatible with Microsoft SQL Server 2008?

    Those versions are ancient, older than SS2008 even.
    Go get version 4.0.3 and a jTDS 3.1 driver.
    Details here

Maybe you are looking for

  • Message required in Log in Language

    Hi, SRM 4.0 , Classic Scenario. While creating a SC , I am getting an Error message which is in Dutch Language , which I want in English Language. Actually this message is for Cost Centre which is called from B.E. system KI-235 & in SRM , message cal

  • Performance Issie in SQL Statement Using Hints

    Hi, I am using Oracle version 10G. I am using a INSERT statement as: INSERT /*+ PARALLEL (TEST,4) */ INTO TEST(COL1,COL2,COL3) SELECT COL1,COL2,COL3 FROM DUMMY; For increasing the Performance I am using the above statement. Will the usage of Hints in

  • Delimeter Between Strings

    I am going to provide a long string as a parameter to a method. This long string consists of a number of Strings (the number is a variable) separated by delimeters; for example, "aa, bbbbb, ccc, ddddddd". This method is supposed to return the length

  • Trying to upgrade to Indesign 4 from PM6.5

    Have finally found the courage to upgrade to a new computer and open my Indesign CS4 box. I know I bought it a couple of years ago but have never got round to running anyhting but PM 6.5 under Windows xp. However it won't let me install and upgrade a

  • I have a hp pavilion dv4-2160us and the dvd/cd reader is not working. it can't detect the disk too.

    I have a hp pavilion dv4-2160us and the dvd/cd reader is not working. it can't detect the disk too. i've done everything on the hp website to fix it (reinstall the driver, etc.), but nothing seems to help.  can anybody help me with my problem? thank