Exporting 500,000 records from Oracle SQL Developer - oracle

How can I export about 500,000 records from within SQL developer ? I am trying to export but it is crashing when i highlight the results to then export..

Right-click in the [Query Result].
Choose the export option.
Choose the appropriate options.
[Next]
[Finish]
Unless you are using SQL Developer V1 against Oracle V7, then you might have problems; but you didn't offer version info, so ...
Or are these the steps you have tried?

You don't need to highlight in order to export, just right-click on the first result SQLDeveloper presents (first 50 rows of your query) and then export option.
Then a Wizard to choose file and other options will appear.

Related

VS Code Oracle Developer Hide SQL in Results Window

I'm using Oracle Developer Tools for VS Code Extension. When I run a SQL statement a Results Tab opens displaying the SQL statement and records retrieved.
How can I hide the SQL statement in the Results tab? I don't want to see it with my data rows.
This is the Extension:
This is the SQL Tab:
This is the SQL Results Tab:
This can be controlled using the oracledevtools.query.echo setting, but note you'll need to reload any windows before the setting will take effect:
You may also wiuth to bump the oracledevtools.query.resultSet.pageSize setting to 25 at the same time:

Exporting an Oracle table show unrecognize symbols for local(Bangla) language data in insert statement

I am exporting a table that contains some Bangla information. If I run select statement data is showing fine but if export it as select UTF-8 or UTF8 encoding this is showing some unrecognize symbol. if I choose some different encoding it shows "???" instead of Bangla letter.
what I am missing. Please help.
Oracle DB : Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Sql developer : Java(TM) Platform 1.8.0_291 Oracle IDE 21.2.1.204.1703 Versioning Support 21.2.1.204.1703
Addes some screenshot below.
Select query showing bangla data fine. But...
After exporting using sql developer using UTF8 or UTF-8 its showing unrecognise characters.
Thankfully those data are exported successfully! previously I right-clicked on the table and select export option then a window came up. where I had to choose encoding option.which was giving the issues with data.
But this time I selected compressed check box option from the window. It creates a zip file and inside that found the script. and wow! my data is showing fine!
Now it's working!

Autocomplete is not working: DBeaver plugin in Eclipse for Oracle PL/SQL in MacOS

Autocomplete is not working for DBeaver plugin (21.1.0) in Eclipse (2021-03) for Oracle PL/SQL (Oracle DB Developer VM: Oracle 19.3) in MacOS (Catalina).
It does autocomplete for SQL queries with MySQL, PostgreSQL, and Oracle.
But, with Oracle PL/SQL, it does some case changes and syntax highlights, but NO code completion.
For example, if I start typing DECLARE or BEGIN, it does NOT prompt it. But, once I complete these keywords, they are automatically turned to upper case and changes color to blue.
However, when I type dbms_output.put_line it neither prompts anything nor changes case or color thereafter.
(Noticed: In Oracle SQL Developer, it prompts several options as we continue typing the above command, and also does syntax highlight thereafter. Similarly, it prompts options, and code snippets with initial 3 letters like dec, etc.)
By default, the following are checked:
Windows > Preferences > Database > Database Editors > SQL Editor > Code Complete >
Enable auto activation
Activate on typing
Auto-insert proposal
Any idea?

SQL Developer tool doesn't have "Application Express" node in the file hiearchy in the Connections Tab

I want to work with the SQL Developer. And for now, I have two SQL Developer versions, one at my office (4.2) and the other one is at home (4.1)
On both versions, I don't have section Application Express > Import Application sections in the Connections tab.
I've found this article on the Internet
https://iadviseblog.wordpress.com/2015/02/09/exportimport-apex-applications-in-sql-developer/
But, I cannot see this option.
You know why or is there a way to see this?
To determine to show this node in the trees, sql developer does a query from apex_release as the connected user. Then to show the list of applications the tool issues this sql where :SCHEMA is the connected user.
select * from (select WORKSPACE, workspace_id,
APPLICATION_ID,
APPLICATION_NAME,
APPLICATION_NAME||' ('||APPLICATION_ID||')' short_name,
owner,
pages,
LAST_UPDATED_ON last_updated,
VERSION,
AUTHENTICATION_SCHEME,
theme_number
from apex_applications)
where owner = :SCHEMA
TL;DR It's either permissions or the version of apex is too old. In the worksheet try these 2 selects.

Query runs fast but report renders slow: how to debug this?

I'm running SSRS 08. My query has four parameters (all varchars). I can run the query through management studio and it runs in under 10sec. I get the same performance if I run the query in Visual Studio's query designer.
However...if I try to preview the report or actually run the report once it's deployed the actual report sometimes takes more than 5 minutes. I ran a trace and the query seems to be in/out of the SQL server side quickly. How can I find where/why I'm loosing this performance? I've tried/checked so far the following:
No images are referenced in the report
No grouping/sorting outside of the stored procedure
Since it's a straight forward report I rebuilt it with same result (to check if it's not an issue of a corrupted report).
ran SQL trace when I executed the report to make sure the query did not have issues
Based on some suggestions before I rewrote the query to use variables instead of parameters like so
-- ...
-- Note: #Parameter is a varchar(40)
-- ...
declare #Var as varchar(40)
set #var=#parameter
select * from table where fieldvalue=#var
Ran the trace and it's not an issue on the query side.
I had the report html output trouble on report retrieving 32000 lines. In my case I had to activate “Interactive Paging” to allow user see first page and able to generate Excel file. The pro is that first page appears fast and user can generate export to Excel or PDF, the cons is that user can scroll only current page. If user wants to see more content he\she must use navigation buttons above the grid. In my case user accepted this behavior because the export to Excel was more important.
To activate “Interactive Paging” you must click on the free area in the report pane and change property “InteractiveSize”\ “Height” on the report level in Properties pane. Set this property to different from 0. I set to 8.5 inches in my case. Also ensure that you unchecked “Keep together on one page if possible” property on the Tablix level (right click on the Tablix, then “Tablix Properties”, then “General”\ “Page Break Options”).
I was troubleshooting a similar issue a while ago and it turned out to be related to the browser I was using to view the report. If the report returns a lot of data to the screen consider splitting it into multiple pages if it is not already configured that way.
Why Does Business Intelligence Studio Load Reports Faster than the Report Server
I think I may have found my answer on a social.msdn.microsoft.com thread
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/1e34dc76-4d78-4376-89b0-7c381ed82726/
I unchecked the "Keep together" setting and it now actually previews coming from the server and I can export the report. Much improvement

Resources