Exporting table names and columns in Excel with Oracle SQL Developer - oracle-sqldeveloper

How can I export only table names and its columns to an excel sheet from a database using Oracle SQL Developer version 4.
I tried exporting database feature, but it does not allow excel export for Metadata.
Sorry if this is asked in wrong forum

Query what you want eg:
select owner,table_name,column_name
from dba_tab_cols
where owner = 'SCHEMA';
Then right click on the result and choose Eksport.... Choose a format and save.

Related

tableau, excel workbook, three worksheets, want data sources column in union

I have a question on Tableau Desktop. I have an excel file with three tabs: Applications, Shared Drives, Sharepoint_Libraries. I would like to union all of these tables. I would like a column called Data Source with the below values. So from Applications excel file, I would like a Data Source column in the Union which says Applications. So from Shared Drives excel file, I would like a Data Source column in the Union which says Shared Drives. Lastly, from Sharepoint_Libraries excel file, I would like a Data Source column in the Union which says Sharepoint_Libraries. How can I do this in Tableau? Do I need to edit the source excel files and add the Data Source column in each file? Or, can I create a calculated field called Data Source and use a formula to populate this information?
Data Source
Applications
Shared Drives
Sharepoint_Libraries
Tableau has a "merged mismatched fields" option for this situation.
So..
open Desktop
connect to the Excel file
drag over the Applications sheet
drag over the Shared Drives sheet and position it just below Applications until you see the "union" box appear then release your mouse button
repeat for Sharepoint Libraries
in the preview window (below) you will see the three different fields.
highlight the three fields that you want to merge
right-click and choose Merge Mismatched Fields.
Then you can rename the field accordingly :)

Show Full Data Set behind Graphs when connecting to SQL Analysis Services in Tableau

We have a live connection to a tabular 2014 edition of SQL Analysis Services model not a multidimensional one.
How can we enable the tabular model to show full underlying data in Tableau when trying to export the full dataset behind the graphs we produce?
Thanks!
If you are in the worksheet where your chart is you can click on Worksheet on the top menu, then click on Export, and if you select data it will put the data
in an Access database. Or you can send it in a crosstab format to Excel.
Also, if you make a duplicate copy of the chart worksheet and then in the new duplicate worksheet click on "Show Me" on the right, and click on the first option for "Text Table" and it should
format it as data if you need to see how it looks in Tableau before exporting.

How can I extract 7 million records from Oracle database to CSV file

I have already tried the export option in the sql developer,it is very time consuming.
I need to know if there is quicker way to extract data to CSV file.
enter image description here
I think you can try with Toad for oracle in DataGrid view then right click and export Data Set, you can start with a million with WHERE ROWNUM < 1000001

How copy data from Excel to a table using Oracle SQL Developer

Is there any alternative way to copy the data from Excel sheet and paste it into a table using Oracle SQL Developer!?
For now I am using (PL/SQL Developer) by writing (for update) at the end of the select statement, Ex:
Select * from ABD
for update
Then paste the columns from Excel to the table...
Regards
Adel
It's not exactly copy and paste but you can import data from Excel using Oracle SQL Developer.
Navigate to the table you want to import the data into and click on the Data tab.
After clicking on the data tab you should notice a drop down that says Actions...
Click Actions... and select the bottom option Import Data...
Then just follow the wizard to select the correct sheet, and columns that you want to import.
EDIT : To view the data tab :
Select the SCHEMA where your table is created.(Choose from the Connections tab on the left pane).
Right click on the SCHEMA and choose SCHEMA BROWSER.
Select your table from the list (by giving your schema).
Now you will see the DATA tab.
Click on Actions and Import Data...
None of these options show up for me. The way to paste data from Excel is as follows:
Add an extra column to the left of your spreadsheet data (if you
don't have row numbers showing in PL/SQL Developer you may not have
to have an extra empty column to the left).
Copy the rows of data from your spreadsheet including the empty
column.
In PL/SQL Developer, open your table in edit mode. You can
right-click the table name in the object browser and select Edit Data
or write your own select statement that includes the rowid and click
the lock icon. Be sure your columns are ordered the same as in your
spreadsheet.
Here's the part that took me forever to figure out: click on the left
side of the first empty row to highlight it. It will not work if you
don't have the first empty row highlighted.
Paste as usual using Ctrl+V or right-click Paste.
I couldn't find this info anywhere when I needed it, so I wanted to be sure to post it.
You may directly right-click on the table name - that also shows the "Import Data.." option.Then you can follow few simple steps & succeed.
Do anyone know how to import a new table with data from excel?
Click on "Tables" in "Connections" window, choose "Import data ...", follow the wizard and you will be asked for name for new table.
For PLSQL version 9.0.0.1601
From the context menu of the Table, choose "Edit Data"
Insert or edit the data
Post change

Import from Excel to Sql Table

I have excel sheet and I have 5 columns all are of type VARCHAR's.
I have a Table called Details and has 5 columns all of type VARCHAR's.
I have to import the data from Excel to table every day.
I am manually copying the records from excel and pasting them into the sql table. This approach is easy and quick.
But I want to make it automated.
Can I do it through the coding by giving the location of Excel Sheet.
I am using SQL 2005 and Excel 2007.
Any suggestions or directions please.
Thank you.
You can use Integration Services to import excel files automatically, here is a good example:
http://www.techrepublic.com/blog/datacenter/how-to-import-an-excel-file-into-sql-server-2005-using-integration-services/205
You can also use Import/Export Wizard within SQL Server 2005 as well, which does the same job and also allow you to save it as a SSIS package.