I create new connection in oracle SQL, then try to this query but don't why isn't running
Here the query:
I click run statement but it show nothing.
I select all the query and click run and try the shortcut also nothing showed
You aren't running a query, you're running a command.
And your results panel is collapsed. Drag this up.
Then you should see script output with feedback from running your ALTER USER command.
Related
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.
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).
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.
I have installed Oracle 11g on Windows 7 successfully. But, when I am creating a database using DBCA, it says init.ora (access denied), at the last step, and stops. I logged into the system using admin.
I have manually changed the settings of that directory where the DB file is created. But have had no success. Does anyone have a solution?
This is in Oracle 12c running on my Windows 10 PC.
Right click on the "CMD" before opening the command prompt and
Click on "RUN AS ADMINISTRATOR" so the command prompt opened with Full Administrator privileges
Call the "DBCA" assist by typing DBCA in this command window
The database creator assistant opens, and everything after this step goes very well.
Sounds like you haven't followed the installation guide. A typical error if you have not added the user to the domain group.
I jumped into the same issue today. The issue will keeping come out no matter you're logged in as admin or not (in most cases, we logged in as admin, same as me).
I get pass the issue as : press Windows key to open Start Menu, type in 'dbca', when dbca.bat shows up in Programs, right click and select 'Run as administrator', everything goes fine now !