Some tables cannot be queried in SQL Developer

Hello

When I try to query tables in rows of SQL Developer 0 are returned, when I use the same query in PL/SQL developer, that all rows are returned. Has anyone ever had this problem and if so what can do to solve this problem? For these two tools I use username and password applications. Here are the details of the SQL Developer I use.

CV Version inside Oracle SQL Developer (client only)
Java (TM) Platform 1.5.0_06
Oracle IDE 1.5.1.54.40
Support versioning 1.5.1.54.40

Thank you
Roald

Roald.vandenBerg wrote:
The first 2 queries return 0 rows in the two SQL Developer & PL/SQL Developer

Select userenv ('LANG') of double
SQL DEV
RESULT: GB

PL/SQL
RESULT: WE

This is the reason why you have not found the exit. Because your view is expected the lang to be US and GB not. Please change.

And how to do it?

Go to your SQL Developer NLS settings (Tools > Preferences > Database > NLS settings)
And change it to the language = AMERICAN and territory = AMERICA.

Concerning
Anurag

Tags: Database

Similar Questions

  • I have some problem in my query to sql server. If I press f5 to run it opens to record dialogue area nd do not run (I don't get successful... orders etc). Please help me

    I have some problem in my query to sql server. If I press f5 to run it opens to record dialogue area nd do not run (I don't get successful... orders etc). Please help me

    Hello

    SQL Server is not supported in these forums. I suggest that you ask your question again in one of the forums dedicated to Microsoft for him here:

    http://social.technet.microsoft.com/Forums/en-us/category/sqlserver .

    Thank you.   :)

  • How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Hello

    How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Thank you

    Jay.

    Select the connection and right-click on it and select schema statistics collection

  • How export (unload) result of the query without running query on sql developer

    Hello

    I want to know how export (unload) result of the query without running query on sql developer.

    I know this way.
    1. execution of query
    2. click on "Download" on the results tab
    http://i.stack.imgur.com/CQ4Qb.jpg


    Is he available unload a query result before the race?

    No, but you can do this ask the developer SQL change however, for other users can vote and add weight to the possible future implementation.

    Kind regards
    K.

  • Cannot query the SQL Developer apex_application_files

    Request Express 4.2.5

    SQL workshop

    I use a function table to analyze several files, delimited by tabs, that I downloaded and saved on the apex_application_files.  The strange thing is that when I run the following query in the SQL workshop and the schema that owns the function table, then it returns the correct results.  However, when I try to do the same on the SQL Developer as the user who owns the table function it returns no result.  A short, generic version of the base query is:

    SELECT * from apex_application_files

    Is there some kind of definition I need to put in SQL Developer, that tempt me to appear as a certain user APEX, so that I can get results when I run the above query?

    I was able to get the data I need questioning wwv_flow_file_objects$ of in SQL Developer.

  • Table of misinterpretation of the SQL Developer Reference

    I use SQL Developer with Oracle 11 g DBMS 2.1.1.64.
    I've noticed recently that even if the DBMS allows you to create a table and a function with the same name, if I try to type a variable % TYPE by using the table, that I have just mentioned, there is a compilation error. For example, there are cancel_tag_range and cancel_tag_range of the table function. Then I do this variable declaration:
    v_current_tag cancel_tag_range.start_tag%TYPE;
    that translates into error "PLS-00225: reference of the subprogram or cursor 'CANCEL_TAG_RANGE' is out of range."
    that is, SQL Developer interprets as a reference to the function, not the table.
    It seems to me that the SQL Developer should know how to handle this. After all, the DBMS let me name 2 objects the same - which I think should be a problem because they are different object types - one is an array and the other a function. In addition, the context of the statement should specify that the table is referenced.
    Why does this happen? And there at - there no way to get around this other than rename one of these objects? Thank you.

    SQLDeveloper use the PL/SQL compiler in the DBMS so the error comes from the DBMS. You'll have to rename it, I suspect.

  • SQL query simple SQL Developer takes, the wizzard of XE does not work

    Hello everyone

    I wrote this simple query that developer SQL works well, but when I try to run a report based on this sql query, it tells me invalid sql statement. It's true, maybe it's not valid because this IF clause in there... but Developer SQL seems to be very tolerant or includes more...

    I wrote this is because obviously if there is no Boss, ie = 0 then I would get an error when it division by 0, so I put that 0 just for selecting the right


    If count (bosses) > 0
    Select company, zip code.
    sum (Boss/staff)
    assessment
    Group of company, zip code

    Thank you very much

    Alvaro

    Ok. This should work:

    Select company, zip code.
    -case when count (staff)! = 0 here end sum (Boss/staff)
    assessment
    Group of company, zip code

    If this does not work, could you please explain, how your table looks like?

  • Can we keep OPEN? Œuvres query in SQL Developer, but not Oracle APEX

    Hi Sirini,

    Just my thoughts - but if one of them is closed, I think it should be a {: identifier of the thread = 2496751} where it becomes the evasive. This one {: identifier of the thread = 2496754} (APEX!) must be the one that remains open. You do not?

    My 2 cents,
    Howard

    .. where it becomes the elusive...

    What skin? Posters he determined that he needed a semicolon at the end of the statement and that he had forgotten the INTO clause. The two are beginner errors. OP has closed the thread as answered and disappeared "Google stop" to learn more about creating queries SQL in PL/SQL. This seems resolved - at least until that back of her Googlequest with another question.

  • Cannot properly run the SQL Developer

    Can someone help with the following problem?

    When I run the application, the module to help screen will appear, however, enforcement isn't behind it. It appears as an active process, but there is no window for it.

    I'm on the latest version, Windows xp.

    Any help is appreciated.

    -JK

    Published by: user486976 on September 26, 2008 12:21

    Java seems to have problems drawing he...
    Is this your first race? So maybe not your settings got corrupted. There is a +\sqldeveloper\system1.5.1.54.40\o.ide.11.1.1.0.22.49.42\windowinglayout.xml+ in your user profile. Deletion which should return illegal positions (as some windows have been pushed off the screen). You can also delete everything + folder \sqldeveloper+ (or selective subfolders) to reset the default settings...
    It can also be a problem with a theme applied; you have something special? What JDK do you have?

    Hope that helps,
    K.

  • How to pass a list as a bind variable in SQL Developer?

    How can I pass a list as a bind variable in SQL Developer?

    The following query in SQL Developer so work I put ": prmRegionID = 2.

    SELECT COUNTRY_ID,
    COUNTRY_NAME
    OF HUMAN RESOURCES. COUNTRY
    WHERE IN REGION_ID (: prmRegionID);

    The problem is that I can't find how to set ": prmRegionID = 2, 3.

    I know that I can replace ": prmRegionID" by a proxy '& prmRegionID '. The above query will work well with"& prmRegionID = 2" and with "& prmRegionID = 2, 3". "

    But with this solution, I lost all the benefit of the use of bound variables (analysis hard against soft parse, possibility of SQL injection, etc.).

    I'm learning how to do this in SQL, as well as the use of UDT in this thread: How to move a list as a bind variable?

    But with this solution, I've lost nice SQL Developer user interface. In SQL developer, it is easy to test a query using the standard binding variable. When we start the application, a pop up asking for a value of the variable binding.

    With the UDT, the interface request always variable binding standard. You have an idea on how I can get a variable string binding (such as 1, 2, 10) in a set of NUMBER or VARCHAR2? This way I would be able to launch a standard query in SQL Developer to test my application.


    Can someone tell me what is the best approach to this?

    Thank you in advance,


    MB

    Hi Blais,

    Thank you for trying the SQL and PL/SQL instance before coming here - it was definitely the right approach, and you've got some very good suggestions there. Your needs for a invite only bind to the value in the clause list, I think I have a possible solution. I'll introduce you to a list of characters, so you'll have to tweak it for other types of data. First, add the following to your schema:

    create or replace
    TYPE bind_tab_typ AS TABLE OF VARCHAR2(4000);
    
    create or replace
    FUNCTION comma_to_table(iv_raw IN VARCHAR2)
    RETURN bind_tab_typ
    PIPELINED
    IS
       ltab_lname dbms_utility.lname_array;
       ln_len     BINARY_INTEGER;
    BEGIN
       dbms_utility.comma_to_table(list   => iv_raw
                                  ,tablen => ln_len
                                  ,tab    => ltab_lname);
       FOR i IN 1 .. ln_len LOOP
          PIPE ROW (ltab_lname(i));
       END LOOP;
    END;
    

    Now you can write a query, say for scott.dept, as follows, and have executed statement ask the value list in the clause as a single binding variable:

    select *
    from dept
    where dname in (
      select * from table( comma_to_table( :BNDS ))
    );
    

    When you are prompted, provide the list of values separated by a single comma without any extra spaces.

    I don't know if the Varchar2 (4000) really needs to be which is great. I use it because that's what dbms_utility.lname_array uses.

    Kind regards
    Gary
    SQL development team

  • Queue in sql developer does not take into account the VALUE ECHO OFF

    I am a developer SQL 3.1.07.42 Windows 7 64 bit with java 1.7

    I have the following script very simple just to show the problem:
    SET ECHO OFF;
    SET FEEDBACK OFF;
    SET SERVEROUTPUT ON;
    SET VERIFY OFF;
    SET PAGES 0;
    SET HEAD OFF;
    
    SPOOL c:\test.sql
    SELECT 1, 2, 3 FROM DUAL;
    SPOOL OFF;
    /
    If I run into a FROG 10.6.0.42 it creates the file with
             1          2          3
    This is as expected (by me)
    If I run the same exact query in SQL Developer 3.1.07.42, it creates the file with:
    < SELECT 1, 2, 3 FROM DUAL
    1 2 3
    (the < above is actually ">" but software formatting CODE is screwing ' > ')
    but I don't want the ECHOed command to be wound. For the life of me, I can't find a way to turn off the ECHO of the queue in sql developer.
    Tried the same thing in 3.0.4 and 2.1.1 with the same (bad) result (more a few warning on some unsupported SET commands).

    Am I missing something obvious? Cause like that, control of the coil cannot be used in sql developer to generate a CSV file, for example, due to the echo command. And windows does not come with default SED so it's on. (more than my original script is integrated into a whole much broader and complex scripts and the main script, their use is run from Developer SQL as a company policy (so that everyone uses the same tool and the code runs the same for everyone))

    Any ideas/suggestions are welcome
    Thank you.

    Hello

    If you save your code

    SET ECHO OFF;
    SET FEEDBACK OFF;
    SET SERVEROUTPUT ON;
    SET VERIFY OFF;
    SET PAGES 0;
    SET HEAD OFF;
    
    SPOOL c:\testscript.log
    SELECT 1, 2, 3 FROM DUAL;
    SPOOL OFF;
    

    as a script, say C:\testscript.sql, then run from a worksheet like

    @\testscript.sql

    the output in C:\testscript.log will be

    1 2 3

    Kind regards
    Gary
    SQL development team

  • Cannot modify most user Source in SQL Developer

    Hello

    I created an Oracle 12.1.0.2 database container called DEVELOP and responsible for 11 GR 2 one hundred packages and 600 tables with hundreds of pages of APEX 5.0.

    I did it using IMPDP and applications run well in the 5.0.2 APEX I just tested all applications.

    Each version of SQL Developer (4.1.2 4.1.3 and the version that comes with 12 c for download) does not allow me to edit any package, procedure, function, or type.

    All I see is "CREATE or REPLACE.

    I can see all the tables and data.

    I saw some problems that appear which suggested using 12.1.0.2 if that happen which I use.

    I create a window using the SYSDBA account for the container, then:

    Select * from DBA_OBJECTS where owner = 'LSDB' and object_type = 'PACKAGE '.

    I see all of my packages.

    I create a window in the account for these objects, called LSDB can:

    When I run select * from USER_OBJECTS where type_objet = 'PACKAGE '. I see all my packages, for example.

    When I run select NAME DISTINCT from USER_SOURCE; I don't see any source at all code, even if I can right-click on each package of SQL Developer and download the entire package in a window and modify the set.

    The source code is somewhere else, simply not visible to the process tree viewer that seems.

    I don't see many discussions on this issue for 12 c 12.1.0.2.

    Because it is a test of 12 c, I gave all the roles and privileges for the LSDB account.

    I am new to 12 c and Developer SQL 4.1.x. and I'm not a magician to the inner workings of the Oracle or SQL Developer, this behavior seems very strange to me.

    Any help would be greatly appreciated.

    Thank you

    Bernie

    Jeff,

    Here is the right solution to this problem.

    This problem was caused by a failure to completely put the PDB container $ SEEDS at 32K extended varchar2 objects.

    The pluggable DEVELOP database has been upgraded to 32K VARCHAR2 objects correctly, but APB$ SEEDS was not.

    This resulted in an Oracle ORA-14696 error when you create a new database plug-in, DEVELOP2.

    Once the PDB database $ SEED container has been properly upgraded to 32K VARCHAR2 objects using the following code, Developer SQL displays all the source properly, and the new database plug-in DEVELOP2 could also be created.

    You can close this topic and thanks for your help.

    BPW

    SQL > conn / AS sysdba

    SQL > startup mount

    SQL > migrate ALTER DATABASE OPEN;

    DATABASE altered.

    SQL > SELECT con_id, name, open_mode FROM v$ PDB;

    CON_ID NAME OPEN_MODE

    ---------- ------------------------------ ----------

    2 PDB$ SEEDS MIGRATE

    SQL > ALTER SESSION SET container = APB$ SEED;

    Modified SESSION.

    SQL > SELECT SYS_CONTEXT ('USERENV', 'CON_NAME') AS a 'Container' FROM dual;

    Container

    ------------------------

    PDB$ SEEDS

    SQL > ALTER system SET max_string_size = EXTENDED;

    Modified system.

    SQL > @? / rdbms/admin/utl32k. SQL

    PROCEDURE is complete PL/SQL with success.

  • How to modify data in "Result grid query" in Oracle SQL developer

    Dear,

    I would like to know how to change values directly in the query result grid.

    I use Oracle SQL Developer version 4.0.3.16

    Thank you

    Khalil

    EditValues.JPG

    I checked in SQL Developer 4 and I found no option to do this.

    I don't think it's available. You can open the table and add filters on each column and change. Or you can add where clause as suggested the link written by Jeff that I already gave. (http://www.thatjeffsmith.com/archive/2013/06/sql-developer-im-looking-at-a-record-how-do-i-edit-it/)

    Or you write update instructions.

    See you soon

    AJ

  • Characters not visible (caused by hitting the bar space or TAB in PL/SQL developer tool) causing slow running query? and database with low performance?

    Hi all

    I need your help to get this issue resolved its urgent and I'm not able to get to the conclusion. Here is my scenario, I'm getting slow query runs because of some non-visible characters that are copied with the application of the PL/SQL developer tool. Please find below attached screenshot: Oracle_Issue

    Oracle_Isssue.png

    Note: This non-visible characters are caused when we write the query then us hit the SPACEBAR or press TAB PL/SQL developer tool

    I use the developer tool PL/SQL to write or test the query. Now I take this request copy paste in my application of the company (who takes this query connects to Oracle or any source of data base, catch data and produce PDF reports for customers).

    Now, my client is the Oracle user when I write and you run this query by the PL/SQL Developer, it works fine, but when I paste in my Inbox feature request (reporting system) and run it, it runs slower and jams to the customer database. Now after a little research I found that when I copy the query directly from PL/SQL developer at my request, he copy some characters not visible (introduced when we press SPACE or TAB in PL/SQL developer tool when writing query) with the request, then I copy this query again to my box of the application Notepad and delete these non-visible characters. Now, after removing the non-visible characters again once I copy backup question in my application and run the query, it works normally. Please find below attached screenshot: Oracle_Issue 2

    Oracle_Isssue_2.png

    So I think that the cause of slow performance is due to some INVISIBLE CHARACTERS present in the query.

    My application uses SQL server 2008-2012 at the backend to store data from different sources.

    Character set used: SQL_Latin1_General_CP1_CI_AS


    To write and test queries: PL/SQL developer tool

    My Client use Oracle 11 g

    Character set used: Normal character: NLS_CHARACTER: AL16UTF16

    National Characeter: NLS_NCHAR_CHARACTER: WE8WIN1521

    I just wanted to know the blocking process to the top of the database and the characters not visible how affecting slow running query of query database.

    Please let me know if I'm missing something or you need more information on this issue.

    Thanks in advance,

    HP

    Simple answer. No.

    Spaces and line breaks do not change the execution plan created. Does not plan to run slower or faster.

  • SQL Developer / SQL Loader - copy of tables

    Hello

    I currently work with two copies of a web application, to access the various Oracle environments.
    I can access these two databases by using only the credentials of the web application. These credentials allow CRUD operations, but have no permission to import/export.

    I tried to copy data between identical tables in the database. Given the restrictive permission set I was advised to use SQL Loader. I'm also using SQL Developer (cannot have TOAD for licensing reasons, bah!)

    I managed to save the tables I want to go to the source database by using the loader file format, but can't seem to find a way to use them in the destination database. Developer SQL provides a variety of export controls, import only I see associates a xls/csv format. There are other migration assistants provided with SQL Developer, but they don't seem to want to cling to my connection settings (import/export authorizations given, once again, I think).

    Developer SQL provides the facility to import ldr files?

    Thank you
    Jim

    No GUI, just the \bin\sqlldr.exe on the server...

    Have fun
    K.

Maybe you are looking for

  • Driver problem HP hd graph

    Hello I just bought a new laptop from hp 15-d051sq and I can not find a suitable driver for the graphics. I tried the drivers on the site for my laptop model but they are incompatible, I also tried a bunch of different drivers, but none of them worke

  • Old license Windows XP Home Edition (HP) is not valid

    Hi guys,. I recently had to format & reinstall the pc of my father, who has a sticker of xp of windows with the license on this subject. The sticker says "Windows XP Home Edition HP", but when I try to install WinXP with this license, he said that th

  • replace drive hard kaput?

    When my computer was unable to reboot and chkdsk and the following disk repair utility would not work, I paid to have the laptop looked at by a pro. It turns out that the HARD drive has failed. So the question is: can I replace the drive hard when al

  • Native file browser?

    Can anyone confirm (or not) the PlayBook includes a type file management utility Explorer native capable of launching documents, change names of files etc.

  • invalid column user_constraints

    Hi allWhat is the use of invalid, View_related columns in the user_constriants table. Can you tell me an example.Select invalid, View_related from user_constraints;