commands of MySQL with Sql developer does not
I use sqldeveloper 3.1.07 and trying some selects a mysql 5.1 database.SELECT SYSDATE(); works fine, but if I try to
Use mysql;
Select in the mysql database;
-> and user table there is a mistake cause no database is selected.
How to use sqldeveloper correctly for this task.
How/where can I run the command mysql with the sqldeveloper?
Any help is appreciated.
Hey Cracker Jack,
Analyzers of SQL Developer the text in a worksheet SQL to identify each statement and its type.
Current SQL Developer has only one Oracle SQL, SQL * Plus, PL/SQL Analyzer.
This means that the spreadsheet recognizes that SQL which is similar to Oracle SQL (SELECT, INSERT, UPDATE, DELETE,...).
No connection to MySQL or other databases Oracle, the spreadsheet should work fine with standard SQL (as your selection), but when the command executes a particular MySQL (or not Oracle), the worksheet does not know how to interpret it.
You can explicitly provide the information to the SQL needs worksheet using a hint.
http://dermotoneill.blogspot.com/2010/11/workheet-hints.html
MySQL example:
/ * sqldev:query * / show databases;
/ * sqldev:stmt * / use dermot;
Select database();
/ * sqldev:stmt * / use information_schema;
Select database();
Kind regards
Dermot.
SQL development team.
Tags: Database
Similar Questions
-
my SQL Developer does not work properly! Help
Hello!!
My problem here is not like I can't live or work, but it's REALLY annoying, see my SQL Developer does not take any different key of letters and the space bar, I mean, if I use the Enter key, does not alter the line, if I use the return key back isn't clear if I use F5/F9 does not execute the msec! and if the keys don't work!
any ideas why this is happening? and if yes how do fix this problem?There is a well known bug but still not solved, causing this type of behavior, if you are a developer SQL 1.5.X you can work around the problem by loading the accelerators by default:
Tools-> accelerators-> load Preset-> by default
If you're on 2.1.X preset may be responsible for
Tools-> preferences->-> others-> load keyboard accelerators
2.1 this problem has not been reported so far, so if you are in 1.5.X you can consider upgrading.
-
Queue in sql developer does not take into account the VALUE ECHO OFF
I am a developer SQL 3.1.07.42 Windows 7 64 bit with java 1.7
I have the following script very simple just to show the problem:
If I run into a FROG 10.6.0.42 it creates the file withSET ECHO OFF; SET FEEDBACK OFF; SET SERVEROUTPUT ON; SET VERIFY OFF; SET PAGES 0; SET HEAD OFF; SPOOL c:\test.sql SELECT 1, 2, 3 FROM DUAL; SPOOL OFF; /
This is as expected (by me)1 2 3
If I run the same exact query in SQL Developer 3.1.07.42, it creates the file with:
(the < above is actually ">" but software formatting CODE is screwing ' > ')< SELECT 1, 2, 3 FROM DUAL 1 2 3
but I don't want the ECHOed command to be wound. For the life of me, I can't find a way to turn off the ECHO of the queue in sql developer.
Tried the same thing in 3.0.4 and 2.1.1 with the same (bad) result (more a few warning on some unsupported SET commands).
Am I missing something obvious? Cause like that, control of the coil cannot be used in sql developer to generate a CSV file, for example, due to the echo command. And windows does not come with default SED so it's on. (more than my original script is integrated into a whole much broader and complex scripts and the main script, their use is run from Developer SQL as a company policy (so that everyone uses the same tool and the code runs the same for everyone))
Any ideas/suggestions are welcome
Thank you.Hello
If you save your code
SET ECHO OFF; SET FEEDBACK OFF; SET SERVEROUTPUT ON; SET VERIFY OFF; SET PAGES 0; SET HEAD OFF; SPOOL c:\testscript.log SELECT 1, 2, 3 FROM DUAL; SPOOL OFF;
as a script, say C:\testscript.sql, then run from a worksheet like
@\testscript.sql
the output in C:\testscript.log will be
1 2 3
Kind regards
Gary
SQL development team -
Objects SQL Developer does not appear DDL
Greetings! First time poster here on Oracle forums, so I hope I can be as precise as possible :)
I'm having a problem with the display the SQL that makes up an object, more specifically a VIEW.
Here's the scenario:
I log in as a user of TI - WDSQUERY (this account can be used my multiple people to perform queries in different schemas). I navigate to other users and expand this node. I find the schema that I want to use, ALCHEMY, and expand the node.
It now puts me in the realm of ALCHEMY we'll call it. I should be able to see all the different objects belonging to this scheme (assuming that permissions are implemented). I click on the node "VIEWS" to develop all objects from view. I can see the data and the columns. What I can't see is the SQL that generates that view, and I have no idea why.
Colleague of mine use Toad, and he can do the same exact scenario (even ID, go to the same schema, etc.), but when he clicks on the "Script" tab, it will generate the SQL code that generates that view. Which leads me to believe this is not a permission problem, because it is on the exact same user_ID.
Is there an option I did not check somewhere in SQL Developer? The current work around because it's that I simply ask the DBA_VIEWS where owner = "ALCHEMY" and then pull on the text of the name / the view I want. But... still, it's just one of those things that I want to know why it does not work.
Here are the codes ORA bit that I get when trying to view the SQL code of the VIEW:
ORA-31603: object "PO_LINE" of type VIEW not found in the schema "ALCHEMY".
ORA-06512: at "SYS." DBMS_SYS_ERROR', line 105
ORA-06512: at "SYS." Dbms_metadata", line 2806
ORA-06512: at "SYS." Dbms_metadata", line 4333
ORA-06512: at line 1
Any help would be appreciated GREATYLY!Hello
If you can see the objects in the schema "Other users", then I guess your user_ID the system privilege to SELECT ANY DICTIONARY. See the DDL and data requires additional privileges, however. I haven't looked enough deep to be absolutely sure, but there are two or three methods using SQL Developer:
(1) If you SELECT ON
. object privilege, then you can see the data and the DDL.
(2) otherwise, if you need to EXECUTE ON DBMS_METADATA you can see the DDL (except it may depend on other privileges too (?)).Sorry I don't have the time to dig deeper into the DBMS_METADATA. It works on some of my users to login, but not others. And, of course, privileges such as SELECT ON DBA_VIEWS you always give an unfair advantage.
Hope this helps,
Gary Graham
SQL development team -
1.5.4 - SQL-spreadsheet SQL-Developer does not use the owner of the Table
In older versions of the sql developer, you can remove a table in the spreadsheet and was built a select query. With the new version 1.5.4 - owner of the table is ' % s ' and you must inform the owner of the table or the query does not work with tables of other users.
Is this a bug or is there the possibility to change the settings to delete tables in the SQL-worksheet with the owners of the table.You're DND from the node of the Table under the node of the other user? If so, I'm able to reproduce the problem you're talking about. Otherwise I still not got you problem clearly.
-
Hello
I've seen a number of discussions on this issue but did not answer that worked for me.
I use the latest version of SQL Developer 4.0.2.15.21 - x 64 on Win7 x 64.
It is unziped to c:\oracle\sqldeveloper. (I don't have a d: drive install on).
It fails to start, is 20% then stops.
I still have an old 4.0.0 version which works, but would like to make use of the latter.
All the answers about why it's a failure and how to fix it?
Thank you!
Owen.
Nuke SQL Developer Directory for this version in your directory of Application data for the user of your operating system - should be under roaming profiles and start the SQL Developer.
-
Unable to start SQL Developer - does not recognize Java JDK
After the attempt to launch SQL Developer for the first time, I get a dialog box asking for the "full path to the Java executable. I use the feature navigate to point to my local java.exe Java JDK 7, and nothing happens. No error message, no guest or suspicion (typical Oracle applications, I'm discovery) - the dialog box clears itself and wil not accept all java.exe I point him to.SQL> SELECT 'SQL Developer Forum' "Where to look..." FROM DUAL; Where to look... -------------------------------- SQL Developer Forum SQL> L 1* SELECT 'SQL Developer Forum' "Where to look..." FROM DUAL SQL>
-
Code works correctly with sql developer but not in shapes
Hi, formulas [32 bit] Version 6.0.8.11.3 (Production)
INSERT INTO DEFICIENCIES SELECT I.ITEM_ID , S.ITEM_ENG_NAME , S.ITEM_ARABIC_NAME FROM ITEM_DETAIL I , STOCK S WHERE I.ITEM_ID = S.ITEM_ID AND I.ITEM_ID NOT IN ( SELECT ITEM_ID FROM DEFICIENCIES ) GROUP BY I.ITEM_ID , S.ITEM_ENG_NAME , S.ITEM_ARABIC_NAME HAVING MAX(EXPIRY_DATE) <= TRUNC(SYSDATE) OR SUM(QUANTITY) = 0 UNION SELECT E.ITEM_ID , S.ITEM_ENG_NAME , S.ITEM_ARABIC_NAME FROM EXPIRED E , STOCK S WHERE E.ITEM_ID = S.ITEM_ID AND E.ITEM_ID NOT IN ( SELECT ITEM_ID FROM DEFICIENCIES ) ORDER BY ITEM_ENG_NAME ;
When I used it in oracle forms, I have faced
error 103 at line 15 column 2 encountered the symbol "order" when expecting one of the following: ;return RETURNING_ adn or group havign intersect minus start union where connect the symbol "group was inserted before "order" to continue
?
forms not authorized such use for «insert into...» Select... Of... ORDER BY' with order by.
but this use can be used in a database procedure.
write your code in a database procedure. your code will run.
-
Programming with SQL Developer
I have a routine I run nightly to update an Oracle database. I lose my license of TOAD, so I'll try to move everything to SQL Developer.
The run statement looks like this
C:\Oracle\sqldeveloper-5338\sqldeveloper\sqldeveloper.exe "login/password@host" ' @C:\data\sql\test sql scheduler.sql more»
I know that the connection and everything is good because it worked very well as a TOAD.
Can anyone help?
I also tried to run in SQL Plus, but some applications have commands in SQL Plus does not recognize them.-is a standard sql, which version of sql comment * more you use? Can you post an example of one of your scripts?
CASE is also standard and supported in all recent versions of oracle. He works with the sqlplus database will support it.It occurs to me - you have blank lines in queries? for example
select x, y, case z ....
By default, sqlplus use blank lines to close the input statement. He'll take it the following line as the start of a new statement. ISN CASE valid #t as the beginning of a statement so he complain.
-
Having problems with SQL Developer connection to the database on a LINUX machine
Having problems with SQL Developer connection to the database on a LINUX machine
Hello
I am trying to connect my machine to windows 7 Home premium to an oracle database 11 g on RedHat 5 machine using SQL Developer. I got this error on SQL Developer
Status: Failed - Test has failed: the network adapter could not establish the connection
on Linux
and TNSPINGLSNRCTL> status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production Start Date 03-APR-2013 16:13:13 Uptime 7 days 22 hr. 16 min. 41 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora Listener Log File /u01/app/oracle/product/11.2.0/db_1/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.X.X.X)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... Service "orc11g" has 1 instance(s). Instance "orc11g", status READY, has 1 handler(s) for this service... Service "orc11gXDB" has 1 instance(s). Instance "orc11g", status READY, has 1 handler(s) for this service... Service "orc11g_XPT" has 1 instance(s). Instance "orc11g", status READY, has 1 handler(s) for this service... The command completed successfully LSNRCTL>
Tnsnames.ora on Linux,tnsping 172.x.x.x TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 11-APR-2013 14:32:17 Copyright (c) 1997, 2005, Oracle. All rights reserved. Used parameter files: /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora Used EZCONNECT adapter to resolve the alias Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=172.x.x.x))(ADDRESS=(PROTOCOL=TCP)(HOST=172.x.x.x)(PORT=1521))) OK (0 msec) [oracle@ltebilling ~]$
Listner on Linux,ORC11G = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orc11g) ) )
hosts/ect/Linux,SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1) (PROGRAM = extproc) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521)) ) )
and there is no problem to ping linux from windows# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 172.x.x.x LTEBilling
Published by: user11309581 on April 11, 2013 15:16user11309581 wrote:
as I have already desciped earlier, I can't connect to the server throw Linux my Windows SQL Server, with error message below.
tatus: failed - Test has failed: the network adapter could not establish the connectionIt's too generic to mean anything. The application is hidden the real error message. You got when you did the tnsping and obtained "TNS-12535: TNS:operation has expired. Now THAT's an error.
This indicates a problem firewall and routing. You said earlier you could ping the server, but now we see tnsping fails. Two different protocols of usage, so that both the successful ping turns out a valid physical path, it guarantees not that all traffic will pass. What happens with
c:\ telnet 172.x.x.x 1521
-
Connection problem with SQL Developer 3.0.0.4
I have a strange problem with SQL Developer (SD) 3.0.0.4. So that the implementation of a new connection I have in double entries listed for some of the databases listed in my TNSNAMES.ora file. When I try to connect to one of the databases has entered duplicated, I get the following Oracle error:ORA-01034: Oracle not available ORA-27101: Kingdom does not exist SVR4 shared memory error: 2: no files or directory
however, if I try to connect to the same database using SQL * more or TOAD, it works perfectly and TOAD has no duplicates.
At first, I thought maybe that SD has been reading multiple copies of the TNSNAMES.ora so I checked and removed all the duplicate files and set the variable of environment TNS_ADMIN to point to that and the single instance of the TNSNAMES.ora file. Yet once, SQLPlus and TOAD to work fine, but SD is always showing entries twice and always have reported the above error when I try to connect to a database with a duplicate entry. I should mention, I'm able to connect to the database that have only a single entry listed use SD.
If I understand correctly, SD uses JDBC as underlying connection mechanism. Based on this "agreement" I thought that maybe I had a file corrupted in the Java Cache, so I cleared the cache, but I always get errors.
As mentioned, I use SQL Developer 3.0.0.4 with Java 1.6.0_11 (included in the download). In addition, I have installed JRE 1.6.0_24 and I am running Windows XP SP3. Any ideas or suggestions are greatly appreciated.
Craig...Hi Craig,.
Or, if I have misunderstood completely the scenario you describe, here's a post on the forum about duplicate entries appear in the drop-down list Alias network when the connection Type is TNS:
Developer SQL 2.1.0.63 TNS name in characters of the connection
This solution involves clean a bad TNSNAMES. ORA file with double score entries to test the death of SID.
-Gary
-
Screen problem of refresh with SQL Developer 1.5.5 on Vista 64-bit
I use the latest version of SQL Developer.
I have screen refresh issues in sql developer. Scrolling up and down, the screen gets jumbled up, some screen time do any appear. Work with SQL Developer very difficult. I don't have such a problem with any of my other publishers.
Is this something specific to Vista? Is it someone knows solution to this problem.
Thank you
Edited by: user5899685, 1 Sep 2009 11:14Specific? Not really, but judging by the posts here Vista is more likely. It usually indicates the incompatibility between Java and video drivers.
If the update of your JDK or the video driver does not work or is not an option, just disable DirectDraw in \sqldeveloper\bin\sqldeveloper.conf generally also works:AddVMOption - Dsun.java2d.noddraw = true
Hope that helps,
K. -
I have problems with my DNS does not. It happens every day.
I'm having problems recently with the DNS does not. However, it is not a constant problem. I have access to internet, and then a few hours later will have no access. It went back and just 3 times in more than a few days., I do not have anything to temporarily solve the problem, it only happens on its own. This occurs regardless wireless or direct. Thank you...
original title: DNS is not respondingHello
1. what operating system is installed on the computer?
2. were there any changes (hardware or software) to the computer before the show?
Method 1: Perform the steps mentioned below and see if the problem persists.
a: click on the button "Start".
b. in the search box, type "invite."
c. in the list of results, right-click Guest, and then click run as administrator. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
d. at the command prompt, type ipconfig/flushdns.Method 2: Click on the link below and see if the problem occurs.Method 3: Click on the link below and see if the problem resolves.
Hope this information helps. -
I'm opening a JPEG in Adobe Photoshop, but 'Open with' dialog box does not Photoshop
I'm opening a JPEG in Adobe Photoshop, but the 'Open with' dialog box does not Photoshop in the list of available programs. I have attempte
Original title: file association
When Adobe Photoshop is installed it is automatically added to the open with command and usually it is the editor who is added, okay, so in your case, it is not added.
Right click of your peak, point to open with, click on choose program.
Put a check mark in the box, always use... If you wish.
Click on browse, it opens the program files, double-click Adobe, double-click on Photoshop Elements.
PhotoShopElementsEditor.exe-click, and then click Open
-
Error code 0 xC0000001 on Asus Vivo tab Rt with RT Windows does not start
Error code 0 xC0000001 on Asus Vivo tab Rt with RT Windows does not start
Hi guys,.
I hope you can help, I bought an Asus Vivo tab RT with month windows RT 13 there, I used it only for the first two weeks after I bought and then travel. I went back to find he does not start and going to a blue with 0 xC0000001 error screen after several attempts of the operating system on your PC could not start, so it needs to be repaired.
It is now one month out of warranty and ASUS refuse to provide support for me, I used the recovery media to reset the Tablet, but still he starts to this message.
I'm not sure what I can do, I'm totally stuck. Can anyone offer some advice on what I can try? anything via the command prompt?
At this point I have an expensive paper weight.
Thanks in advance
Joel
Hello Joel,
Usually, the error code 0 xC0000001 indicates that winload.exe in C:\Windows\System32\Boot could not be found or is corrupted. This could be the result of a corrupted download, before the creation of the operating system.Since Windows RT came pre-installed and require installation media to retrieve the device, you may need to contact Asus support for assistance.
http://support.ASUS.com/ServiceHome.aspx?SLanguage=en
I'm really sorry not to be useful in this regard.
Please do not hesitate to contact us for any further assistance on Windows.
Maybe you are looking for
-
For some reason any in my list of Firefox Add-on - it so-called Z 4.6.8.5 arose. It has not added to my list. There is no Remove button to remove, just a button to 'enable '. Anyone know what it is and how I can remove it?
-
Gray network ID cannot join F10 to the domain
Well, I am a network support analyst for a living, so I know not how to attach and remove the PC and laptop computers of a domain. I have a Qosmio F10 that comes with having the BONE restored from the Original Recovery CD ROM product The network card
-
How can I add new contact list to contact?
How can I add a new contact to my contact list?
-
My sustain pedal works exclusively with B3 organ sounds. (Neither X Pro Logic and GarageBand). Thanks for the help
-
I try to get my password in the site of Skype, and I can't get too. !
I m, a regular of the Skype talking with kids hoo give Vancouver a weeck 3 times and with friends across the United States. and the Canada. I can't because Skype does not accept my password, half-time Im with the same passworth and username for the p