Unable to display results of multiple query in grid in Oracle SQL Developer
Hi, I am a newbie to this forum and couldn't find the Oracle SQL Developer forum so posting it here.
My question: How to display multiple query results in grid in Oracle SQL Developer.
Example:
select * from Employee;
select * from Department;
- when I select both the queries and hit F5 in Oracle sql developer. By default it displays in output window.
- How to display result of both the queries in Grid.
Any thoughts on this would be really helpful.
Thanks in advance.
Harsh
Hi Harsh,
I'd say that the Results grid is designed to only show the results of 1 query at a time. I don't know/can't see how it would display multiple queries at a time.
I would suggest either joining your tables to create a single query or opening another SQL Worksheet for one of the queries so that you can display the results side-by-side.
Maybe you could explain what you're trying to do. Why are you trying to display multiple results in the same query grid?
Similar Messages
-
How to display result of database query in JFrame?
How to display result of oracle database query in JFrame?
This is part of my code:
String username, password;
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
OracleConnection conn = DriverManager.getConnection(String url, String username, String password);
Statement s= conn.createStatement();
ResultSet q= s.executeQuery("SELECT A, B, C FROM TABLE X");
Forget what url, username & password are. Is there any problem with my code?
What should be next if I want to display result of the query in a table in JFrame?Thx !How to create JTable with unknown no. of rows? How to get no. of rows of a query?
I saw the demo of creating JTable on java.sun.com but the the table has a certain no. of rows which is not applicable to my case.
Suppose the result of query is a table with 3 attributes so there are 3 columns in the table.
R contains the result of the query.
Should it be something like this if I want to create JTable of the query?
How to make n rows of {R.getString(1),R.getString(2),R.getString(3)};?
public SimpleTableDemo() {
super(new GridLayout(1,0));
String[] columnNames = {"A",
"B",
"C",
while (R.next())
// content of a row
Object[][] data = {R.getString(1),R.getString(2),R.getString(3)};
I can't run it because I still can't debug my code which is said before.
Thx! -
Oracle SQL Developer O/P and Toad O/P is Different for Same QUERY.
Hi,
can any one calrify me why i'm getting different result when i run the same QUERY in Oracle Developer and TOAD.
When i Ran a Query in TOAD i could see Null&Data in a column called Customer_Category but when i Ran the same Query in Oracle SQL Developer i'm getting all Null N i couldnt see any data in the column.
i have not performed any DDL r DML statement, just i got the Query and i Ran it in TOAD & Oracle SQL Developer.
I found that the OUT PUT is different for perticular column.
Thanks in Advance....> I found that the OUT PUT is different for perticular column.
The RENDERING of data from Oracle (or any other server such as a POP3 server, web server, etc) IS DONE BY THE CLIENT.
So to repeat - RENDERING IS DONE BY THE CLIENT.
If one client selects to display the output received from the server differently than another client, it is a CLIENT ISSUE.
It is not a server issue. It is not a SQL issue. It is not a PL/SQL issue.
In other words, wrong forum for this question. You have a pure client side rendering problem which has absolutely nothing to do with SQL and/or PL/SQL. -
Oracle SQL Developer 1.5.5 Unable to save file
I edit content of a column in a table I get this when trying to save change:
Unable to save TABLE ... ("Failed to save changes").
This error disappear when I do the same task in Oracle SQL Developer 1.1.3.
Please help me!when I run:
UPDATE "OWNFTS"."BONGDATHAMSO"
SET LTDKQURL = 'http://soccernet.espn.go.com/fixtures?league=ita.1&cc=4716'
WHERE ROWID = 'AAASBeAAGAAAAEgAAH' AND ORA_ROWSCN = '4238785';
commit;
from SQL Worksheet, there's "Enter Substitution Variable" window inform me to enter something in a textbox beside "CC:" label.
Clicking "OK" or "Cancel" on this window with or without filling textbox has the same result:
+0 rows updated+
commit succeeded.
AND the command which was cutting ORA_ROWSCN predicate:
UPDATE "OWNFTS"."BONGDATHAMSO"
SET LTDKQURL = 'http://soccernet.espn.go.com/fixtures?league=ita.1&cc=4716'
WHERE ROWID = 'AAASBeAAGAAAAEgAAH';
commit;
fired the same " window
but:
+1 rows updated+
+commit succeeded.+
AND after refresh Table, I couldn't see the new value.
Edited by: user11193632 on Aug 5, 2009 7:30 PM -
Unable to connect to Oracle Database using Oracle Sql developer 2.1.1.64
Hi Everyone,
I am searching for some help regarding my problem with Oracle connectivity. I have installed Oracle 11g release 2 on my Windows XP Professional Laptop. For a few days after installation i could connect to the Oracle database with the SYSTEM account using Oracle SQL developer ( installed on the same Laptop) but now i am unable to do so.It gives me this annoying message:
An error was encountered performing the required operation Got a minus one from read call .Vendor code 0
However i am able to connect using Sql Plus by supplying the username SYSTEM and the corresponding password.
My TNSNAMES .ora file is as follows:
ORACLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORACLE)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
My Listener.ora file is as follows:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
(SID_DESC =
(GLOBAL_DBNAME = Oracle)
(ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
(SID_NAME = Oracle)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
ADR_BASE_LISTENER = D:\app
My Sqlnet.ora file is as follows:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
I am new to Oracle and so i need someone in this forum who can help me resolve this problem. Also i even tried connecting to the database using Toad 10.5.0.41. It give me the following error:
ORA 12537 : TNS Connection closed
Thanks for your patience and help in advance.
---PrashantHello Irian and Sue,
I can connect to the Oracle database using SQL Plus. Now when i TNSPING ORACLE from command line i get the following message :
Used parameter files:
D:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost
*)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE)))*
TNS-12537: TNS:connection closed
Thanks for your response to my initial post.Do u have any other methods to resolve this? -
SDO_GEOMETRY displaying in Oracle SQL Developer (freezing)
Hi,
I am using Oracle SQL Developer (V 1.5.3) heavily at work, and have noticed some undesirable behaviour when the table's data tab is trying to display SDO_GEOMETRY. In this version (and subsequent ones) Developer tries to convert the geometry to WKT, instead of just displaying "sdo_geometry". I can see why this has been added in, however I am using many geometries that are quite large, and have extremely large sdo_ordinate_array/s . This is causing Developer to appear to be freezing while it runs the conversion, often hanging for many minutes at a time. I have briefly looked at V 2.1, and it appears to be the same.
Does anyone know if there is a check box option, or similar to switch this behaviour off? Limiting the number of rows returned has been suggested, but even when dealing with a STATES table the 9 rows needed for all 9 Australian states is far too large for a data tab display. If an option doesn't currently exist, it might be worth adding in to future versions of SQL developer.
regards, JeffHello,
I´ve the same problem. I use version 3.0.03 (3.45) but I can´t find the possibility to change this option.
Can someone help me?
Thanks
Peter -
Displaying line numbers in oracle Sql developer
hi guys, can someone tell me how to display line numbers in oracle sql developer Version 2.1.1.64?.
I absolutely didn't know where it was, so I had to look for it, and it appears easy to find.
Hit Tools
Hit Preferences
Expand Code Editor
Navigate to line gutter
Now click 'Show line numbers'
And, oh yes, there is a separate sql developer forum. Please keep sql developer issues in that forum.
Sybrand Bakker
Senior Oracle DBA -
Optimizing an SQL Query using Oracle SQL Developer
Hi ,
Currently i am using Oracle SQL Developer as my Database IDE .
Is it possible to use Orqcles SQLDeveloper for the purpose of Optimizing an SQL Query ??
For example assume i am having a query as :
Select from Tranac_Master where CUST_STATAUS='Y' and JCC_REPORT='N'*
Could anybody please tell me how can i use Oracle SQL Developer to optimize this query or any other SQL queries ??
Please share your ideas , thanks in advance .1. Your query looks very simplistic as it is, so I fail to see how you can better optimise it (unless 'Tranac_Master' is a view, in which case I'd need to see the view details).
2. No tool can automagically optimise your SQL to any degree of practical use. Very minor adjustments may be possible automatically, but really it is a question of you knowing your data & database design accurately, and then you applying your expert knowledge to tune it. -
Is it possible to query software inventory report for Oracle SQL developer installation?
Hi all
My company requires to generate a report of all kinds of Oracle database access tool. I can find Toad installation from Add/Remove Program and therefore can query for Toad.
However, Oracle SQL developer is using Java. I cannot see an entry for Oracle SQL developer from Add/Remove Program. Is there a way to query inventory for Oracle SQL developer installation?
Thanks a lot.
Regards
LicYou might be able to use software inventory to report on the version of sqldeveloper.exe.
As the app looks like just a zip you extract to a custom location that might be one method. -
Display results of MySQL query from AMFPHP by ArrayCollection in AS3 (Flash CS4)
Hi, i am using Flash CS4 (AS3) + AMFPHP + MySQL to do own flash frontend for Wordpress CMS. Everything is going fine but i`ve got one problem. Problem with properly display of result of query in AS3 by using ArrayCollection.
When i check my service in "amfphp/browser/" in web browser i`ve got this (with all needed data):
(mx.collections::ArrayCollection)#0
filterFunction = (null)
length = 2
list = (mx.collections::ArrayList)#1
length = 2 source = (Array)#2
That is the reason that i suppose that service work fine. Problem is when i try to display result in AS3. In actionscript i have got this:
function getNewsListHandler(result:Object):void{
trace(result);
This function displays: [object Object].
I know that "result" is an ArrayCollection type but i don`t know how to get rows and columns from this. I know that my data is there but i have no idea how to get it.
Clarify: I don`t know how to get to Arrays and simple data variables which are in ArrayCollection.
Could anyone help me with that problem. I would be gratefull
P.S. I tried also change query type in service.PHP for mysql_fetch_query but in that case i`ve got only one row (not all data).Thanks for fast reply,
arr_coll:ArrayCollection = new ArrayCollection ({col1:"data1",col2:"data2"}, {col1:"data3",col2:"data4"});
you would get the data like
var resultstr:String = arr_coll[1][1].col2;
trace(resultstr);
//results in data4
could you explain me how it was happen (arr_coll[1][1].col2)? It`s not clear to me. I thought in this case rather something like this :
var resultstr:String = arr_coll[1]['col2'];
It should give me "data4". I know it wasn`t but i don`t understand ArrayCollection in level which is needed to use your advice in my case. Could you clarify "arr_coll[1][1].col2" a bit?
What would it look like when you would have something like this:
arr_coll:ArrayCollection = new ArrayCollection ({col1:"data1",col2:"data2"}, {col1:"data3",col2:"data4"},{col1:"data5",col2:"data6"},{col1:"data7",col2:"data8"});
and you would want know f.e. position in ArrayCollection of "data6". How would you code this? arr_coll[1][2].col2? -
How to display result of a query in browser?
I have to write a simple application where I use EJB to access a database and then use Servlet/JSP to display the data to a browser. can anyone help me out please?
in my ejb i am taking the input as claim number and using a select query i am getting the row for the particular claim number from the database. Through a servlet i need to invoke the ejb and get the data(result of the query) displayed in a browser. I want to know a way to display the query result in the browser.
-
Hi there
I want to display the results of a query.
OK I do kow how to do that. I do have one long text field
(MySQL) and in some cases the colomn I iwsh to display has a page
of information. I just want to display say the first 300
characters. I was initionally thinking rtrim or trim but tralise
that doesnt do it.
I cant find what the correct term is.
Thanks in advanceActually, I believe the Right() function returns the last
part of the text, you will want to use the Left() function to
return the first part. . . .
http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/js/html/wwhelp.htm?hre f=00000617.htm
-Mike -
Bug in pinning of results tabs results in multiple query results tabs
In Tools > Preferences > Database > Worksheet there is an option called Automatically Freeze Reult Tabs.
This option, when unchecked, does not seem to be working. New query results tabs are created when pressing F9 to run selected query text.
Elsewhere I have read that this is a known bug (9247525). A work-around is said to be to not select text before pressing F9. However, this does not seem to always work for me. Sometimes SQL Developer tries to execute code that is outside of the immediate query. The result is usually a query error.
Thus a whole bunch of query result tabs build up.
Is this bug being addressed? Is there a place where these bugs can be looked up? Or that status of a bug checked?
Thanks for any assistance.
(I am on 2.1.0.63. On Windows.)
--MichaelThe bug you have found will be somewhere in the list of work for the SQL Developer team and should get fixed and included in a public release/patch eventually.
It sounds like your issue with the workaround (statement being identified based on cursor position) is with SQL Developer's pickiness with what is the end of a statement. As a general rule, SQL Developer will only consider a ; at the end of a line or a / starting a new line as the end of a statement - it does not consider a blank line the end of a statement. For example, the following is all considered a single statement:
select * from dual
select * from dual;theFurryOne -
Pivot Dynamic for Query in Oracle SQL DEVELOPER ??
Hi
I have the following question, someone who has a dynamic pivot.
I need a dynamic query that is that when the transfer column to row do receiving any type declared as these can change data.
Example:
ID_PROJECT
PROJECT STAGES
DATE
12345
Requirement Analysis
17-01-2013
12345
Quotation
20-01-2013
12345
Project Preparation
29-01-2013
12345
Model Verification
04-02-2013
12345
Closed requirement
10-02-2013
23456
Building and Unit Tests
With dynamic pivot:
ID_PROJECT
Requirement Analysis
Quotation
Project Preparation
Model Verification
Closed requirement
12345
17-01-2013
20-01-2013
29-01-2013
04-02-2013
10-02-2013
I mean that in this case the stages of the project will be changing.Hello,
Do you want to do this in an SQL - Developer application-setting or by using any SQL / PLSQL block or both ? -
Displaying tables in Oracle SQL Developer
Anyone who can help me I thank you in advance. I installed SQL Developer v1.5.3 and can connect to the databases I want to access. After establishing the db connection the Tables icon is displayed. I click on it and no tables are displayed. I can run scripts so I know ihave read access to them . Is there anyone who can help my determine why Tables does not expand and diaply the tanbles in the db?
What do you mean by other owners node? I am an Oracle or SQL newbie. The db I'm accessing is a corporate db. Is there additional permissions (beyond read permisiion to run queries) I need to be able to view the tables as well? Most others access the dbs via Toad or PSQL and are not having this issue. No money for those so I have to use SQL Developer. The Oracle client is 9i, and the db is 10.
Maybe you are looking for
-
Firefox use 100% of one CPU (Mac)
I use last firefox (32) on MacOS X 10.6.8. Sometime firefox start using 100% a one CPU, from that time the only way to stop it was to quit (it take severals seconds, sometime it hang). When it start i can close all windows, firefox continue using 100
-
"File not readable" error in CS6
I've opened the file, worked on the file, saved the file and suddenly I'm getting a "File not readable" error upon open. Running CS6. One file was saved out to CS5 compatible. Created another test file and it saved out and reopened without issue. Mac
-
Records created locally - is there a reliable way to report on this?
We need to run a report and return Order records that were created locally only (not online). I wondered if there is a reliable way to check if records were created on the remote client vs. the online client? e.g. is there some field which is only se
-
How to clone & sync systems?
Hi How do I sync my files from one mac to another? I have a macbookpro 15 and would like to copy ALL files to another macbook pro 13. Is there a way to "migrate" all files without having to re-install all apps? And is there a way to syn both of my ma
-
Each time I turn on ipad it is Telling me siri not available connect to to the internet
each time I turn on ipad it is telling me siri is not available connect to the interner. also I cannot slide to open