I have a view vw_Monitor in database
how can I export DDL of creation of this table into a file in Oracle SQL Developer?
Open Connections window
Expand Connection
Expand Views
Right click on the view and select export
From the pop up window, specify filename (default name being export.sql)
Click next and then finish
Related
I am able to use spool using sql*plus
We can use the UTL function for that.
But what I want to know, whether we use a spool in toad for Oracle.
I have tried and received the error Ora-00900.
spool is a SQL*Plus internal command so you cannot use it as plsql command
but you can easily do this through toad itself by
1- Write and Run the query into toad.
2- Right click on your datagrid in toad.
3- click on Export Dataset option and choose the configuration you want.
After I run a query, SELECT SomeColumn FROM SomeTable, via the command window in VFP, I'm unable to access that table from C# using the OleDb Provider until I close VFP.
System.Data.OleDb.OleDbException: 'Cannot open file \\some-server\some-share\SomeTable.dbf.'
It's like VFP is not closing the file handle after executing the query.
How do tell VFP to close the file/table w/o having to close VFP?
use
without any argument closes the table\cursor in current work area.
use in (select('SomeTable'))
closes it in any work area, only if it is open.
Both commands are scoped to current data session. If you are using any sessions other than the default one, then you need to loop those sessions and close in there.
An easier way would be to execute:
set exclusive off
in VFP before opening any tables. Then the tables would be opened shared, and you could open them both from VFP and outside.
Or make that a permanent setting by going to Tools -> Options -> Data and unchecking "Open Exclusive":
BTW, I replied thinking about any table that you would open by using "use" or "select ... from thatTable".
Your question is vague though, maybe you mean the table is created as a result of the query (your query doesn't have that destination though). If that is the case, then the created table is in exclusive use until you close it (using one the commands at top).
I'm new to PL/SQL Developer and have session problems.
Everytime I open an SQL file, Developer opens a new session to the database.
I have a limit of 2 sessions, so I can't open more then 2 SQL files at the same time.
I would like to open as many SQL files as I want with the same session.
Does PL/SQL Developer have settings for this somewhere?
I couldn't find it in Preferences but I hope there is one.
Thanks!
In the menu Tools/Preferences "Oracle Connection" chose "Session Mode" Single session or Dual session.
And restart plsql developer.
I need export table dump using SQL DEVELOPER
I do: View->DBA then right click on data pump and then data pump export wizard
In opened export wizard window, I choose Tables type, then click next and in second step, there are not displayed any tables:
Though, I have several tables in current connection (under this user).
What is problem here? why I cant see table list for exporting?
SQL DEVELOPER version: 4.0.3
Click the 'Lookup' button.
By default it will export all tables for your user. Use this page if you only want to export certain tales.
Click the 'More' button if you want to browse by user.
In Toad, it's easy to look for a ddl script that creates a user with all its grants and roles:
In Oracle SQL Developer, I find a similar option but it's not complete:
Is there a way to have same Toad's information in Oracle SQL Developer?
It's a bit more convoluted, and might make more sense with pictures but I can't create those right now... but if you go to the 'View' menu and choose 'DBA' you get a second panel on the left (titled 'DBA', unsurprisingly).
Click the green + button and pick your connection from the drop-down list in the dialog box; it will then appear under 'Connections' in that panel. Expand that connection, then 'Security', then 'Users'. You'll see all the database users listed.
Right-click on a user and choose 'Create like...' from the contextual menu, which will give a new dialog that's very similar to the one you already found.
Enter a user name and password to make the next step make more sense, then go go the 'SQL' tab, and you'll see something similar to what Toad produced.
You can also use the DBMS_METADATA package to extract the DDL manually; that has been covered here and on DBA.SE.