Exporting data from Oracle query to excel using query - oracle

I am having a select query, the result of which i want to be exported in a excel file using Oracle query and not any in-built operations.
I am using TOAD for Oracle. I am not sure if this is possible or not.
Any help would be of great use.
Thanks in Advance!

In Toad, it's pretty straightforward:
Run your query
click the "Export dataset" button
change export format to "Excel File"
enter a filename

Instead of pushing it into Excel, why not "pull" it into Excel? See get external data. An added bonus is that you can add this to your windows task scheduler that will update it for you.
http://office.microsoft.com/en-us/excel-help/connect-to-import-external-data-HP010089898.aspx

Related

Oracle Report6i - Export to Excel Option/Button

Please guide me that how to enable option/button on oracle report 6i to export it into excel format
Waiting for your response
BR
Javed Akram
You can't, as far as I can tell. Reports 6i don't have option of saving result into native MS Excel format.
The closest thing you could do is to set desformat to delimited:
Means that the report output is sent to a file that can be read by standard spreadsheet utilities, such as Microsoft Excel. If you do not choose a delimiter, then the default delimiter is a TAB.
(see documentation)

In Oracle Apex, is there a set of hot keys to activate the Run Command?

In Oracle Apex SQL Workshop, is there a set of hot keys to activate the Run Command? I've researched this online and have not found an answer. It seems laborious to have to type out my query and then have to use my mouse to click on Run, when hot keys can help keep my hands on the keyboard. I'm using a Mac and typically through Firefox. Thank you.
In SQL Workshop? Ctrl-Enter
If you have multiple queries, highlight the relevant query first.

Generate ER diagram from SQL Script

I have some SQL scripts written in a .sql file
I need to generate ER diagram using those scripts, so that I can verify the relationships and then get them executed in the DB.
Can anyone help me on how I can achieve this?
I would prefer doing this in SQLDeveloper
EDIT: As ismetguzelgun suggested me in his answer to execute the scripts first and then export the diagram through data modeler. I do not have the permission to execute DML commands in the Database and I do not have any other database as well where I can execute this. So that option is not going to work out for me.
Just use the import feature.
File - Data Modeler - Import - DDL Script
Point to one or more .sql files.
A dialogue will appear showing what's about to be added to your design. Make sure everything's checked and hit the Merge button.
Your new/existing design is ready!
If you don't see anything in the diagram area, zoom out or use the Navigator window to make sure you're in an area with your tables. Or use the tree on the left, pick a table, and right click, 'Go to Diagram' - it will take you directly to that object in the diagram.

How to added the SQL query used generate the excel file in DATAGRIP IDE?

I'm a SQL developer user, usually, I extract data from Oracle database and store them into excel files on a daily basis, the nice thing about Oracle's SQL Developer when exporting the file into excel file, you get two worksheets one for your data, and another worksheet contain the SQL query that used to generate this report.
Now I'm using DATAGRIP IDE from JetBrains, I noticed when I export the file into excel sheet I only get the data and I don't the SQL query that I used to generate this excel file.
is there any way to add the SQL query to the exported file?
There is no possibility to include the SQL tab automatically. But every grid has it's own "View Query" option where you can see and copy the needed SQL.
To have this tab, please create a feature request here: https://youtrack.jetbrains.com/issues/DBE

Query Designer does not recognize quotation marks in the name of synonym (Oracle)

I need to get access to a synonym on a Oracle database.
What I have done so far is:
-Create a DataSet.
-Open the server explorer.
-Open the dataset designer and put the synonym (let's say it's name is "abc") in the dataset designer.
-Right click on 'add query' and then open the query designer.
The problem is when I try to write:
SELECT * FROM myschema."abc"
the system automatically delete the quotation marks so it will end in an Oracle's exception (ORA-00942) which tells me that the table or view does not exist.
There is no way I can rename the synonym.
Is there a way to turn off the autocorrection feature?
I can also get access through DataReader but I want to use the dataset designer.
I am using Visual Studio 2010.
Thx
Edit:
This problem does only appear when I am using Oracle provider.
I created a synonym with the same name in a MSSQL database and the system automatically recognize the synonym with quote marks.
It seems that it's a bug in the oracle provider.
You need to put quotation mark around your table name also. Try this:
SELECT * FROM "myschema"."abc"
It worked for me

Resources