Can I restore recent query output in Oracle SQL Developer? - oracle-sqldeveloper

I have a large query I am running in Oracle SQL Developer. The query seemed to run successfully and then I made the mistake of hitting count rows and it froze. I had to terminate the program in the task manager. I have been searching online and I have seen a lot about how unsaved scripts can be recovered using history, but I dont see anything about restoring the query result. Is it cashed anywhere so I dont have to run the query all over again?
Any help is greatly appreciated.

If you are using PL/SQL Developer, then you need to press CTRL+E. You can find Recent Executed Quer

Related

VS Code not running queries

I have a take home project, I have to connect to a Postgres SQL, run some queries, make changes to a repo and push my changes. I have successfully connected to the database (I'm able to see everything when I select the elephant and I have it selected at the bottom of my screen). When I write a simple code and execute, I get both message "Query Completed in 4.2 sec." and "Waiting for query to complete"
After a while, I get an error message that the window is not responding, you can reopen the window or keep waiting". Everything should be up to date (I downloaded the latest software as of Sept 1st 2022). What step am I missing? I was expecting the results of my query.
Please let me know what to check
The query needs to be saved (Ctrl + S for Windows) before the query can be executed.

Does Oracle SQL Developer refresh when you launch it?

I've just run a couple of queries where I forgot to click on the blue 'refresh' button when I launched Oracle SQL Developer.
But I was wondering whether it actually refreshes anyway, when you actually launch it?
Short answer: 'no.'
But first, let's share with folks with the 'blue refresh button' you mention in your question.
What does this button do?
It re-executes the query that the resultset is tied to, in this case
select * from employees
When you restart/re-open SQL Developer it does not even connect to any databases, much less re-execute any queries automatically.
What you might see is a .SQL file re-opened as you had it open when you closed the application from your last session. But no database work will happen until you hit the 'Connect' button.
Disclaimer: I work for Oracle and am the product manager for SQL Developer.

How to force Cloud SQL restart

I've seen variants of this question around, but I'm looking for a definitive answer if anyone has one...
We are running a Cloud SQL Postgres instance, and are stuck on restarting the DB after having an export crash out with an unspecified error.
For several hours now our DB has been out of action saying it's restarting.
The options to export, restart, all of that good stuff, are greyed out and unavailable.
There doesn't seem to be a way to force a restart either through the console, or via gcloud command.
Most of the replies I've seen to this question seem to end up with the poster being helped out by Google support. Don't get me wrong, I'd very much appreciate that, but I'd also like to know if there's a way of doing this myself?
Any help greatly appreciated.
Currently, the 'force restart' option is not available for 'PostgreSQL' instance.
There may be several reasons behind the 'stuck' stage of an SQL instance. Not every time, 'force restart' option wouldn't resolves the root/actual cause.
However, if you still think this option needs to be included in the 'PostgreSQL' instance, I strongly recommend opening a 'Feature Request' through the issue tracker. While opening the 'Feature Request', try to include a bit more details about your use case scenario(with or without an example) as well.

PgAdmin sometimes crash when clicking SQL query button

I know this question may be seen as a duplicate with this one. I even have almost the same configuration (PostgreSQL 9.1.3, pgAdmin III 1.14.3, 32 bit Windows). What is the difference and the reason I ask a new question is that my PgAdmin doesn't crash always (just mostly) and that the cause of the problem is different - in linked question the problem was with missing adminpack, but I have adminpack installed and it works well, so the answer for linked question doesn't work for me.
Do you have any ideas where the problem could be?
EDIT: PgAdmin doesn't crash at other occasions (well, unless I do someting that obviously deserves a crash), just while trying to open SQL query window. It's worse and worse as time goes on, now it's almost "always". The problem is not "connection specific" - frequence of crashing is the same for different server connections.
EDIT2: I reinstalled PgAdmin and nothing have changed. I'm starting to suspect PostgreSQL 9.1.3 or even PostGIS 2.0.1 of the problem.
Goto run and type %appdata% and go inside postgresql folder.
rename or delete pgadmin_histoqueries.xml file.
try opening the SQL query editor again.
Good luck!
PgAdmin crashes on me all of the time, but you eventually learn to be gentle with it.
Particularly, if it is waiting for a response from the PostgreSQL server, the window may freeze up until a reply is returned and parsed. When this happens, do not close the window, just wait.
Also, if you attempt to edit two different objects on the same parent, save one and click save on the other, this crashes the program.
My advice would be to only do one thing at a time, be patient, and don't be in a hurry to kill the process when it freezes up.
There can be a great many different possible reasons for crashes. Some of them have been fixed in the latest version 1.16.1, release just last week.
You could try the new version and see if that fixes your problem.
Pgadmin3 was really unstable after installation on my ubuntu 12.04 LTS. It either freezes or crashes even while doing very basic things like looking data in a table or list tables in a schema etc., I almost gave up and started using the command line psql and luckily stumbled on this blog which recommended to remove the pgadmin3 history file to solve the freezes and crashes. It worked for me.

CrystalReports Editing a rpt file

I was asked to investigate why some data is not being pulled up in a CrytalReport document. I am an absolute beginner ( as far as CrytalReports is concerned ) who just wanted to tinker with the code and see how the results change. Is this right way to fix the issue?
I was thinking that there will be some selection criteria (similar to an SQL Query ) and I can change the values there. After spending a couple of hours, I am out of patience. Can anyone please tell me or give me some pointers about them. I prefer not going through CrystalReports for beginners which teach from installing to setup and all. In fact, I really don't know what it takes to edit a CrystalReports file.
Another issue is that when I open the .rpt file, I get a dialog with the title Log On To Repository. Which repository is this? I have complete access to the SQL Server database, but the passwords did not work..(including that of sa )
I have VS(2010/2003), CR Developer 9.2.3.1699.
All suggestions are greatly appreciated
Thanks
Where to start...
The Log on to repository thingy is referring to the shared repository if BusinessObjects Enterprise. You seem to have the standalone version, so don't worry about that.
Press F1 for help. The help files are fairly good. Not great, but good.
Try Report->Selection Formulas-Record. This limits the individual records going into the report by that criteria. Likewise with Report->Selection Formulas->Group
Database->Verify Database (Self-explanatory)
Database->Database Expert and Database->Set Datasource Location are both very helpful in figuring out where the report gets it's data from.
This is a full-featured program. When I first saw it, it took me 3 months to get a decent working knowledge. You won't learn the details of it overnight.