Does SQL Developer support a default Path to SQL scripts
Just started using SQL Developer.
In the past, I created shortcuts on my PC desktop to run SQLPLUS to the different
instances as follows:
1. Create a shortcut to PLUS80W.exe
2. Set the property "Start in" to a directory where the SQL scripts are located.
3. Add the login/password@instance to the end of the shortcut.
In this way, ypu only needed to click on the shortcut to log into SQLPLUS and run your
scripts via @script.sql etc.
Can you setup a default path to SQL scripts SQL Developer so that it can locate
the scripts on your PC ?
I did notice in version 13.43 that if you close SQL Developer with a SQL script open in the SQL Worksheet, when you startup SQL Developer the next time it automatically opens the file in the SQL Worksheet with no database connection. It also sets the default path for SQL scripts to be the directory where your open SQL file resides. If you right-click in the SQL Workshop and then click on "Open File" the directory defaults to the directory of the SQL file that is open.
Mike
Similar Messages
-
Does SQL Developer support OS Authentication? Will it?
Does SQL Developer support OS Authentication connections? If not will it in the future?
Given this has the SQL Developer been changed to remove the requirement of adding a password for an OS authenticated account? These users also have the ability to access the DB via applications and the fact that they don't have to enter a password right now is ideal. I really don't want to have to add a password for them. Will this be changed within SQL Developer?
-
Will SQL Developer support data type anydata
Will SQL Developer support datatype sys.anydata in future releases?
Currently SQL Developer will not show any data for columns of type anydata.
Example:
create table t1 (id number, col1 sys.anydata);
insert into t1 values(1,sys.anydata.convertvarchar2('TEST'));
IF I export data from this table something like
Insert into T1 (ID,COL1) values (1,'SYS.ANYDATA'); will be generated.
The grid will display 'sys.anydata' for this column
Versions:
WINXP SP3
SQL Developer Version 2.1.1.64
Build MAIN-64.39
ErnstI added a feature request:
https://htmldb.oracle.com/pls/otn/f?p=42626:39:528125578772603::NO::P39_ID:25161
Regards,
Ernst
Edited by: Ernst Leber on May 31, 2010 12:36 PM -
SQL Developer - Adding a column comment via SQL
When I add a comment in SQL*Plus via SQL, such as COMMENT ON COLUMN "MY_OWNER"."MY_TABLE"."MY_COLUMN" IS 'column comment' it works fine. When I try the same thing in SQL Developer I receive a message "No SQL statement entered".
I realize this can be done in SQL Developer via action buttons in the user interface; but I need to be able to do it via SQL since my procedure generates this code for hundreds of columns at one time.
Is there a SQL way to do this in SQL Developer? Alternatively, can SQL Developer call SQL*Plus to run commands?This is a current bug when executing as statement (F9).
Good news is it does work when running as script (F5).
Have fun,
K. -
SQL Developer dropping first column in a SQL SELECT
Am not too certain who to report this to... but I just noticed that SQL Developer will not return the first column in a SELECT statement when there is a comment just after the SELECT reserved word when running the query in the SQL Worksheet. For instance:
SELECT -- > HEADER INFORMATION STARTS HERE <--
w.stu_id HDR_STU_ID,
w.wiser_id HDR_WISER_ID,
iep.wiep_id HDR_WIEP_ID,
sis.wisis_id HDR_WISIS_ID,
FROM wiser_exit exit
INNER JOIN wiser w
ON exit.wiser_id = w.wiser_id
INNER JOIN wiser_iep iep
ON w.wiser_id = iep.wiser_id
INNER JOIN vw_wiser_iep_sis sis
ON iep.wiep_id = sis.wiep_id
will just return columns 2 - 4 (HDR_WISER_ID, HDR_WIEP_ID, and HDR_WISIS_ID), and NOT column HDR_STU_ID.
I verified this by running the same query in SQL Commands in the SQL Workshop of APEX, and the resultset returned all the columns including HDR_STU_ID.
Just ran another quick test in SQL Developer, and get the same results from a SELECT against a single table:
SELECT -- > HEADER INFORMATION STARTS HERE <--
county_cd,
odd_even_flg,
street_name
FROM dime
Did not return the county_cd column.
I know, it's just a minor quirk, but I thought I would mention it.John,
Thank you. I replaced the '--' comments with the '/*' '*/' style and it picked up the first column.
I guess I'll just have to break an old habit I've been doing for years for comments. Dang, I hope all that old code doesn't break...
Thomas
Spoke too soon. I followed up by checking what Oracle's 'Oracle Database 10g The Complete Reference' had to say about the issue of using '--' for comments and under '-- (Comment)' it says "-- tells oracle a comment has begun. Everything from that point to the end of the line is treated as a comment. These delimiters are used only within SQL itself or in PL/SQL ..."
So I guess I can continue using '--', but need to keep in mind that in certain circumstances it might not work as expected. YMMV
Edited by: Thomas 8246 on Feb 19, 2010 8:09 PM -
SQL Developer Seems to have messed up SQL Plus & Crystal Connectivity
Hi all,
previously I have been able to connect to a DB via SQL Plus. Also, I have been able to report on it with Crystal Reports XI.
I'm not certain, but I believe this has occurred since installing SQL Developer?!?!? Since once I installed, no need to use SQL Plus anymore and just haven't needed Crystal for a while.
My TNSNames.ora in C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN seems fine (it worked before)
SQLNet.ora has the following in it......
#SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= ( TNSNAMES, EZCONNECT )
A TNSPing returns.....
C:\>TNSPING PVNGDEV1
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-SEP-2
008 17:28:21
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora
TNS-03505: Failed to resolve name
C:\>
When I try and create a connection via Crystal I get....
Crystal Reports
Failed to open the connection.
Details: ORA-12154: TNS:could not resolve the connect identifier specified
[Database Vendor Code: 12154 ]
This is sending me absolutely crazy and have already spent 1/2 day trying to fix it.
Please - any ideas?
Regards
DC
SQL Developer 1.5.1
Oracle Client 10.2
Crystal Developer XIPROBLEM SOLVED - WHAT A MYSTERY and a WASTE OF MY TIME.
APOLOGIES TO SQL Develoepr for being the prime suspect - I still love you!
TNSNAmes.ORA as follows works!!!!!!
pvngdev1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ********)(PORT = 1521))
(CONNECT_DATA =
(SID = pvngdev1)
However, the following does not
PVODB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PVODB)
PVOQA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
(CONNECT_DATA =
(SID = PVOQA)
# - Enterprise Reporting
ERSDEVDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
(CONNECT_DATA =
(SID = sasrpt)
(SERVER = DEDICATED)
# - PVNG
PVNGDEV1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PVNGDEV1)
PVNGQA1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PVNGQA1)
DESTDEV1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = DESTDEV1)
Why is this.
I guess I 'll build up TNSNAmes connection by connectuion and test and see how I get on.
Regards all
DC -
Missing SQL Developer functions when connecting to MS SQL Server 2005
Hi all,
I've connected SQL Developer to a ms sql server db. Now I can't use the functions from SQL Developer like
- Drag&Drop tables to the sql-sheet,
- autocompletition of attributes (Strg+Space).
Is this function not supported or do I have to change some preferences?
THX SteveUnfortunately most of the advanced functions of SQL Developer are supported only for oracle databases, so on ms sql, or almost anything else you can do little more than browse data.
-
SQL Developer viewing schemas on an MS SQL Server
Hi,
I've connected SQL Developer to our MS SQL server in the hope we can dump some of the data it contains onto our Oracle 10g box.
Problem is in the left hand connections pane we can only see one database on the sql server box at a time. If we want to see more than one database we have to make a new connection to each seperately.
Is there any way of making SQL developer show and allow browsing of all the sql server databases for which the user has permissions in the same way it does for MySQL connections?
Regards
JohnNo; it's even more restrictive (at least in Oracle DBs): 1 connection for each database AND schema (user).
Regards,
K. -
SQL Developer database copy corrupts wrapped PL/SQL
SQL Developer 3.0.04.34, database 11.2.0.2.2
Database copy brings over the wrapped pl/sql DDL, but somehow corrupts the code and will not compile.
It must be recreated from source plb file.
expdp / impdp does not have this problem.
This would appear to be a bug.
Wayne Lintonuser4792902 wrote:
Also it looks like the SQL Developer loads all the Data from sources Schema for each table in memory and copies to destination Schema.Yes
Any idea how to over come that...Don't use it, use the database's IMPDP/EXPDP tools for copying large quantities of data or whole schemas or databases.
Also adding the Filter or selection like the Database Export functionality in Database Copy will really be helpful in this kind of situation. The Developer team has any plans?Probably not right now, but you can request this at the SQL Developer Exchange though, so other users can vote and add weight for possible future implementation.
Regards,
K. -
30EA3 SQL Developer 3 error message while migrating SQL sever database
I was mirating a SQL sever 2005 database to Oracle 11g, and got the following error message during the process:
"Migration action have failed. Check the migration reports for Detail. :null".
After the error message, I could see the "Captured Database Objects" and "Converted Database objects" under the "Migration Projects". However, if I open the generated scripts, it only contains the fowlloing, nothing else:
"SET DEFINE OFF;
PROMPT Creating User Emulation ...
CREATE USER Emulation IDENTIFIED BY Emulation DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP;
GRANT CREATE SESSION, RESOURCE, CREATE VIEW, CREATE MATERIALIZED VIEW, CREATE SYNONYM,CREATE PUBLIC SYNONYM TO Emulation;"
What's the cause of this problem, please advice. Thanks.
BobHi Bob,
The next thing in the generation script should have been the definition of the sqlserver_utilities package.
This package emulates some of the system functions found in SQL Server.
It gets placed into your converted model as the very last step of the conversion.
Building the generation script (where your failure happened) is straight forward and I wouldn't expect an error here.
I would guess something went wrong during the capture or conversion and is only surfacing during the generation phase when it tried to write the sqlserver_utilities package to the generation file.
I could be wrong, but I would manually check that conversion completed successfully first.
1) Browse you converted model under
Migration Projects "Nav" : Projects > YourProjectName > YourModelName(default a date)> Converted Database Objects > Procedures > YourProcName
a) Are there any red crosses on any of these nodes in your navigator ?
b) If you right click on a converted database name is "reconvert" grayed out or available?
c) run the following in the SQL Worksheet against the same connection you used for the migration repository
select * from md_packages;
Is there one row there with the definition of sqlserver_utilities in its package_header and native_sql columns?
Also do you have anything in the capture issues, conversion status or conversion issues reports (double click you project and the migration reports should pop up on the right hand side, each report a separate tab) ?
Just trying to pinpoint what happened here.
Thanks for your feedback,
Dermot
SQL Developer Team.
Edited by: Dermot ONeill on Feb 16, 2011 2:48 PM -
SQL Developer Unit Testing - Validation with PL/SQL
Hi,
I am trying to create Unit tests using SQL Developer UT framework.
But when i am creating validation using User PL/SQL code option.
Then how can i check value returned by l_count in code snippet below:
-- Please raise an exception if the validation fails.
-- For example:
DECLARE
l_count NUMBER;
wrong_count EXCEPTION;
BEGIN
SELECT count(*) into l_count
FROM test_recon
WHERE
match_num = 99836936
AND Stg_status_flag <> 'E';
IF l_count = 0
THEN
RAISE wrong_count;
END IF;
END;
Also, can someone please refer me to few more demo examples (apart from oracle docs) to implement good test cases with SQL developer.
I appreciate your help.
Regards
DipaliProbably not the answer you're looking for, but back when I was playing around with the Unit Test stuff, I didn't have sys privs, and the DBAs were a little busy at the time to set a up a repository for me. Rather than wait, I installed Oracle XE on my machine and created a small dev schema and deployed unit test to that. It's so much easier to perform quick proof of concepts when you have full control.
-
Is SQL Developer 1.5.5 Compatible with SQL Server 2008
We are trying to perform a database migration and we keep getting "Locating Source Plugin" failed, we have the jTDS Drivers from sourceforge, tried several versions, including 1.0, 1.2, 1.2.2, 1.2.4, 1.2.5, 1.2.7, and 1.2.8... and i came across a thread Sql Dev Third party migration issue
and i was wondering if SQL Developer 1.5.5 is compatible with Microsoft SQL Server 2008?Those versions are ancient, older than SS2008 even.
Go get version 4.0.3 and a jTDS 3.1 driver.
Details here -
Does SQL Developer support TimesTen?
Anyone who knows if I can access TimesTen IMDB in SQL Developer
Currently, there's no support for this.
-kris -
Using bind variables in Oracle SQL developer
Hi all,
i am using Oracle SQL developer. i want to use the bind variable in my sql.
variable myid number :=1;
select * from mds_3618_request where id = :myid;
but i am getting the below error.
Error starting at line 2 in command:
select * from mds_3618_request where id = :myid
Error report:
SQL Error: Missing IN or OUT parameter at index:: 1
Does Oracle SQL developer support bind variables in the SQL statements?
thanks in Advance
Vali ShaikYou are probable going to get a quicker answer on this forum : SQL Developer
-- Andy -
Does SQL developer plan to support TFS?
our developing team uses MS Team Foundation Server as our primary source control / version control software. Does SQL developer planning to give a plug-in to support this? The PL/SQL developer could let us us MSSCCI provider to connect to TFS, I would like to know if Oarcle's SQL developer support the same.
Thanks!Although unlikely, you can always request this at the SQL Developer Exchange, so other users can vote and add weight for possible future implementation.
Regards,
K.
Maybe you are looking for
-
I'm trying to use Tor Project for anonymous browsing. I updated my Firefox to 4.0, but I can't get a Tor Button to download, because it isn't available for Firefox 4.o. Will it be soon? If not, how do I go back to an earlier, stable version of Firefo
-
BI Publisher Desktop 10.1.3.4.2 Office 2010
Hi Experts Customer has installed BI Publisher Desktop 10.1.3.4.2 and Office 2007 in the PC,Now he wants to upgrade Office 2007 to Office 2010. From the following note Is the BI Publisher Desktop Plugin Builder for Microsoft Word Certified for MS Off
-
I would like to create play/pause movie controls that for different flv files. I do not want to use skins but have the controls as part of the movie/video. Can anyone point me to a tutorial source that will help me design these?
-
Hi All , I would like to deploy the NAC Appliance for 1500 users on my network,just wanted to get clarity as to why do i need the NAC manager for 20 NAC Appliances if am only deploying one NAC Appliance. Thanks in advance
-
Ok, so i just jailbroke, and my ipod was going into safe mode a lot on its own, so i searched online for a solution, and that was to find the problem cydia tweak i downloaded, one of the ways was to got into the mobilesubstrate settings and single ou