Sql Developer wont convert Sql Server to Oracle lob w Oracle 11gr2 client
I have the Sql Developer 2.1.1.64 loaded on a Windows machine accessing Oracle 11g release 2 database on a linux box with no jre. I have the latest version of java (1.6.0.21) and jdk (6 u 21). When I loaded Oracle 11g r2 client onto my windows box, all sql server tables could be moved to my Oracle repository except tables that converted from a Sql Server 2005 type of nvarchar(max) to nclob. I would just get every row in the error column during the move.
Turns out when I uninstalled the Oracle 11g r2 client and installed the Oracle 11g r1 client, it worked.
I'm afraid you're in the wrong forum. This is the Berkeley DB Java Edition forum.
--mark
Similar Messages
-
SQL Developer Connection to SQL Server
Hi,
could some body help in connection sql developer connection to sql server 2005 please?
thanks,
kamaleshSetting Up SQL Developer for MS SQL SERVER 2000
1) Install/Extract SQL Developer 1.2.1 in C:\Program Files\Oracle
Making the {$sqldevhome} = C:\Program Files\Oracle\sqldeveloper
2) Obtain the JDBC SQL SERVER Pluggin (jtds-1.2.2-dist.zip) from:
http://sourceforge.net/project/showfiles.php?group_id=33291&package_id=25350
3) Unzip jtds-1.2.2-dist.zip
Creates: jtds-1.2.2.jar
\x86\SSO\ntlmauth.dll
4) Copy the jtds-1.2.2.jar into:
{$sqldevhome}\jlib Directory.
5) Copy the the ntlmauth.dll dll in the \x86\SSO subdir into:
{$sqldevhome}\jdk\jre\bin\ntlmauth.dll
6) In SQL Developer:
Got Menu "Tools"
- Preferences...
Expand the "[+] Database
Choose "Third Party JDBC Drivers"
Click "Add Entry"
Then Browse for your copy of "{$sqldevhome}\jlib\jtds-1.2.2.jar"
Note: Use the jar filename, not its parent directory for entry.
7) Restart SQL Developer and try your SQL Server 2000 Connection -
Connect from SQL Developer to several SQL Server instances
Our SQL Server has more than one instance, but I see only one instance of them trying to connect from SQL Developer 1.2 to SQL Server. How I should define the connection information? Usually we connect to SQL Server by <hostname>/<instancename> and then the database name as CatalogName (Initial Catalog). In the Oracle world you can give only the hostname, a port number and the database name. How I can convince the SQL Developer to choose one of our SQL Server instances?
Hi user627927,
Bug/Enhancement request already logged.
We have not got this configuration in house, two people have suggested workarounds but we are unable to test them for now. The last person was unable to get these workarounds working, and we have not confirmed them in house.
Can you get the instances connected through two different ports?
It would be great if you could confirm either workaround.
-Turloch
*1/Suggestion 1 change the URL through SQLDevelopers xml connection store.
*2/Overload the port field to have instance in the eventual url
*1/Suggestion 1 change the url through SQLDevelopers xml connection store.
[Note it is probably simpler to connect a dummy connection through the connection dialog as usual save it (you cannot connect) and then add the instance information rather than having to enter all the information in an unmanaged way.]
Hi Naveen,
I had same problem as you and user579801. I managed to resolve it by doing the following.
1. Locate the file called IDEConnections.xml in the folder where you have installed SQL Developer (eg. c:\sql developer\sqldeveloper\system\oracle.jdeveloper.db.connection.11.1.1.0.11.42.62).
2. Create the following entries under <connections> tag.
<connection>
<URL>jdbc:jtds:sqlserver://\\.\;namedPipe=true;instance=SQLDBNam;</URL>
<ConnectionName>SQLServer</ConnectionName>
<user>SQLUser</user>
<ConnectionType>JDBC</ConnectionType>
<DeployPassword>false</DeployPassword>
<JdbcDriver>net.sourceforge.jtds.jdbc.Driver</JdbcDriver>
<RaptorConnectionType>Microsoft SQL Server</RaptorConnectionType>
</connection>
3. Save the file; Close and re-open the SQL Developer and try connecting.
Hope this will solve your problem. Good luck.
Regards
Raja
*2/Overload the port field to have instance in the eventual url
This took some figuring out but I cracked it in the end....
SQLServer tab:
Hostname: <servername>
Port: <portnumber>/<databasename>;instance=<instancename>
so for me the Port field looks like this: 1433/Gaffa;instance=SQL01
That should now connect to a named instance SQL Server.
Paul Fairhurst -
SQL Developer vs. SQL*Plus Performance???
Hi,
DB: Oracle 10.2.0.3.0
SQL Developer: 1.2.0
SQL*Plus: 10.2.0.3.0
I am running the same query once in SQL Developer (Response time 10 sec.)
The same query in SQL*Plus takes over 20 Minutes.
SQL*Plus is using SQL*Net right?
Is that the reason?
ThanksHi,
how can I check for SQL Developer?
Does SQL Developer use SQL*Net also?
I changed the arraysize to 1000
but does not see any performance gain.
The query still taking more than 6 minutes.
The same in SQL Developer runs within 10 seconds!
Thanks -
Issue with SQL Developer connect to SQL server
I'm using "SQL Developer 2.1.1.64.45" to work on a migration project which needs to convert a SQL server database to a Oracle 11g database. But I got an issue when I setup the SQL server connection. The SQL Developer let me connect by selecting a SQL server database name (For example: Northwind), but once connected, it always connected to "master" database instead. The "SQL Developer" is running on Windows 7 Professional (x64) platform. My Oracle database is 11g, and SQL server database is SQL 2005. And my SQL server instance name is "SQL2005". Anyone have ever experienced this problem? Thanks in advance.
Edited by: user8276338 on Feb 8, 2011 1:05 PMHi Bob,
Thanks for the feedback, lets stick with SQL Developer 3.
Correct me if I'm wrong,
You attempted to migrate from SQL Server to Oracle including target generation and datamove in one go, by filling in each step of the migration wizard to the end.
During the datamove you got
ORA-01000:maximum open cursor exceeded
So it looks like SQL Developer during the migration is not closing cursors fast enough and hits the maximum number of open cursors in your Oracle database.
I think the default max open cursors is 300 in Oracle.
There are a few things we can do here.
You should be able to see the new migration project in your Migration Projects navigator.
By navigating down the project tree to "Converted Database Objects" we can attempt the data move again by right clicking and choosing "Data Move".
But first I would restart SQL Developer so as to free up any lingering open cursors.
That may allow you to complete the data move, as the only cursors being open are being used in the data move and not some cursors which may have been left open from previous steps in the migration.
Now from my perspective I would like to identify where are we leaving open the cursors, so I'm going to setup some testcases my end to see if I can replicate.
From your perspective Id presume you just want to move on with the migration.
So if the above (shutdown and attempt just the data move) doesnt workyou could
A) Increase the MAX OPEN CURSORs on your Oracle databases so it complete the data move
or
B) Use the offline data move technique.
A) Increase MAX OPEN CURSORs
This wiki explains how to do that, looks like 1000 is fairly common, but even a much larger number is not a problem
http://wiki.oracle.com/page/OPEN_CURSORS
ALTER SYSTEM SET OPEN_CURSORS = 10000;
OR
B) Offline Data Move
If you are moving large amounts of data (say > 1GB), then the standard data move (we call it online), which just uses JDBC to SELECT * FROM and INSERT INTO may not cut the mustard.
In this case you can try using our offline technique. SQL Developer will generate a set of scripts for you.
unload_script.bat will use SQL Servers BCP tool to dump out the table data into DAT files.
oracle_ctl.bat will load the data in the DAT files into Oracle.
As we know the names of all the tables, columns ,both SQL Server and Oracle, we can generate fairly good scripts.
The benefit of this technique is large amounts of data can be migrated and you get to use tools designed to dump data and load in data, so you have better error logging and tweaking.
To attempt this in the Migration Wizard , Data Move page, select offline.
If you can describe your database a bit (number of tables, number of procedures, amount of data to migrate) I may be able to define my testcase better so I can replicate the issue.
Thanks
Dermot
SQL Developer Team. -
Oracle SQL Developer 3.2, SQL*Plus COLUMN FORMAT bug
SQL*Plus command COLUMN truncates output result in SQL Developer.
Script in Worksheet:
column nn format 999
select level nn from dual connect by level<=10;The Run Script (F5) result contains only 8 lines in Script Output window:
NN
1
2
3
4
5
6
7
8
Changing column alias:
select level nn2 from dual connect by level<=10NN2
1
2
3
4
5
6
7
8
9
10
10 rows selected
The output can contain no data for more formatted columns.
===============================================================
About
Oracle SQL Developer 3.2.09
Version 3.2.09
Build MAIN-09.30
Copyright © 2005, 2012 Oracle. All Rights Reserved.
IDE Version: 11.1.1.4.37.59.48
Product ID: oracle.sqldeveloper
Product Version: 11.2.0.09.30
Version
Component Version
========= =======
Java(TM) Platform 1.7.0_02
Oracle IDE 3.2.09.30
Versioning Support 3.2.09.30sqldeveloper64-3.2.09.30-no-jre.zip.
My jdk now is 1.7.07 x64, Windows 7 x64.
C:\Java\jdk17\bin>java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
Gary Graham wrote:Also, I don't understand what you mean by
The output can contain no data for more formatted columns.
Sript:
col owner format a10
col table_name format a20
col column_name format a20
col comments format a50
select
row_number() over(order by column_name) r11,
count(*) over() c11,
owner ow,
table_name tn,
column_name cn,
comments co
from all_col_comments t
where owner='SYS' and table_name='INDEX_STATS';
select
row_number() over(order by column_name) r,
count(*) over() c,
owner,
table_name,
column_name,
comments
from all_col_comments t
where owner='SYS' and table_name='INDEX_STATS';
select 1 from dual;
prompt abcThe output truncated after headers of second queryR11 C11 OW TN CN CO
1 25 SYS INDEX_STATS BLKS_GETS_PER_ACCESS Expected number of consistent mode block gets per row. This assumes that a row chosen at random from the table is being searched for using the index
2 25 SYS INDEX_STATS BLOCKS blocks allocated to the segment
3 25 SYS INDEX_STATS BR_BLKS number of branch blocks in the b-tree
4 25 SYS INDEX_STATS BR_BLK_LEN useable space in a branch block
5 25 SYS INDEX_STATS BR_ROWS number of branch rows
6 25 SYS INDEX_STATS BR_ROWS_LEN sum of the lengths of all the branch blocks in the b-tree
7 25 SYS INDEX_STATS BTREE_SPACE total space currently allocated in the b-tree
8 25 SYS INDEX_STATS DEL_LF_ROWS number of deleted leaf rows in the index
9 25 SYS INDEX_STATS DEL_LF_ROWS_LEN total length of all deleted rows in the index
10 25 SYS INDEX_STATS DISTINCT_KEYS number of distinct keys in the index
11 25 SYS INDEX_STATS HEIGHT height of the b-tree
12 25 SYS INDEX_STATS LF_BLKS number of leaf blocks in the b-tree
13 25 SYS INDEX_STATS LF_BLK_LEN useable space in a leaf block
14 25 SYS INDEX_STATS LF_ROWS number of leaf rows (values in the index)
15 25 SYS INDEX_STATS LF_ROWS_LEN sum of the lengths of all the leaf rows
16 25 SYS INDEX_STATS MOST_REPEATED_KEY how many times the most repeated key is repeated
17 25 SYS INDEX_STATS NAME name of the index
18 25 SYS INDEX_STATS OPT_CMPR_COUNT optimal prefix compression count for the index
19 25 SYS INDEX_STATS OPT_CMPR_PCTSAVE percentage storage saving expected from optimal prefix compression
20 25 SYS INDEX_STATS PARTITION_NAME name of the index partition, if partitioned
21 25 SYS INDEX_STATS PCT_USED percent of space allocated in the b-tree that is being used
22 25 SYS INDEX_STATS PRE_ROWS number of prefix rows (values in the index)
23 25 SYS INDEX_STATS PRE_ROWS_LEN sum of lengths of all prefix rows
24 25 SYS INDEX_STATS ROWS_PER_KEY average number of rows per distinct key
25 25 SYS INDEX_STATS USED_SPACE total space that is currently being used in the b-tree
25 rows selected
R C OWNER TABLE_NAME COLUMN_NAME COMMENTS
- - ---------- -------------------- -------------------- -------------------------------------------------- -
Sql developer 3.0 - SQL Server tab missing
Hi There,
I use SQL Developer 3.0. I only see two tabls in New Database connection screen, Oracle and Access, I need to connect to Microsoft SQL Server, but there is no tab on this.
How do I get this resolved.
Thankswvu1999 wrote:
Jim, I've tried this. Downloaded the official JDBC drivers from MSFT
[Microsoft SQL Server JDBC Driver 2.0|http://www.microsoft.com/downloads/en/details.aspx?FamilyID=99b21b65-e98f-4a61-b811-19912601fdc9]
Pointed SQL Developer to the .jar (actually MSFT gives us 2 to choose from)
SQL Developer shows nothing new on the Connection dialog.
Ideas?READ THE MANUAL!!!
The microsoft driver is not supported. -
Sql Developer 2.1 - "sql server" can't see tables
I'm running sql developer 2.1 on Linux Mint -- connected to MSFT sql server with JTDS driver.
I can query just fine. However, there are no tables in the object browser. No objects at all beyond the main categories (tables, stored procedures).
Lee"I see...said the blind man to the deaf man".
I found all my tables.....they were under "dbo" not the user I logged in as.
My connection is: database MyDataBase username myuser
The object tree looked like:
MyDataBase
- dbo
- myuser
+ tables
+ stored procedures
- someother
- andanotherone
I went to "myuser" which I considered to be the schema owner, but all the objects are actually owned by dbo -- and they are there under dbo.
To further test -- I created table "table_test" -- and it appeared under dbo, not "myuser". Now that I understand the behavior, I'm back to LOVING Sql Developer. Thanks for helping and keep up the good work.
I much prefer to work on oracle databases -- but at least I can keep using this excellent oracle tool even when forced to work on Microsoft Sql Server :)
Lee -
SQL Developer wont work via SSL (TCPS)
I am trying to get SQL Developer (1.5.1) to connect to our Oracle database using SSL (tcps -- port 2484) and am getting a very generic error. (I have no error connecting to the same database over the unencrypted port -- 1521).
Status: Failue - Test failed: Io exception: The Network Adapter could not establish the connection.
I personally think that the connection is timing out, but all logging/debuggig features I can find do not prove anything either way. I have successfully connected to the database via SSL using tnsping and sqlplus. I have also successfully imported the certificate from the database server into the cacerts file in sqldeveloper/jdk/jre/lib/security This error is the same whether I use my TNSNAMES file or a custom JDBC url.
Please reply if you have questions/ideas/solutions.
Thanks, Dan
block from TNSNAMES.ora
TEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname.fqdn)(PORT = 1521))
(CONNECT_DATA =
(SID = test)
TEST_SSL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCPS)(HOST = hostname.fqdn)(PORT = 2484))
(CONNECT_DATA =
(SID = test)
(SECURITY =
(SSL_SERVER_CERT_DN="CN=hostname.fqdn, OU=My Unit, O=My University, L=City, ST=State, C=US")
contents of sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= (BEQ, TCPS, NTS)
SSL_VERSION = 0
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
SSL_CLIENT_AUTHENTICATION = FALSE
WALLET_LOCATION =
(SOURCE =
(METHOD = FILE)
(METHOD_DATA =
(DIRECTORY = C:\oracle\certs)
)This has helped, but I am not 100% there.
After altering my setting to use OCI/Thick driver and upgrading to 11g client, (and verifying that I could sqlplus/tnsping/odbc as before) the following happens:
When testing the connection or trying to connect with tnsnames method, the dialog box comes up just telling me it's testing/connecting, and never stops trying (and therefore also never fails).
This also happens when I try to connect via a custom JDBC URL,
BUT
When I test the connection using the same JDBC URL, I 'succeed' -- so I must be close.
My Custom JDBC URL is
jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)
(HOST=hostname.fqdn)(PORT=2484))(CONNECT_DATA=(SERVICE_NAME=test))
(SECURITY =(SSL_SERVER_CERT_DN="CN=hostname.fqdn, OU=My Unit, O=My University, L=City, ST=State, C=US")))
What might I be missing?
Thank you. -
SQL Developer / JDK On Windows Server 2008 64 bit R2
Does anyone have the recipe to fix the annoying message: "Cannot find a J2SE installed at path: C:\Program Files\Java\jre6"? I get the same message, when trying to set up and run SQL Developer on a Windows 2008 server with SQL Developer 32 bit, Java 1.6 and Java 1.7 32 bit, and now trying with SQL Developer 64-bit with JDK 64 bit. Thank-you.
SQL Developer requires a JDK, not a JRE. When you are asked to select the path you need to into "C:\program files\jdk1.6.0_35\bin" (or whatever) rather the the jre6 directory.
If you are using SQLDeveloper 3.2, then you need to be using the latest JDK 1.6 release. The bittage of the JDK should match your SQL Developer (and your oracle client if you are using one). -
SQL Developer 3.0.04 generated scripts not compatible with Oracle 10g (XE)
HI,
I tried to do an export from one XE database (still 10g) to another XE database. (also 10g).
I tried to do a database copy as well as a separate export and import (by loading the file and running as a script).
Neither of them work without modifying the files as it seems that SQL Developer generates scripts that are only compatible with Oracle 11g.
- Create table contains "segment creation automatic"
- Storage clauses contain parts that are not compatible with 10g
I ran through the wizard several times but neither can I find an option to choose for compatibility with earlier versions of Oracle.
Checked the preferences screen as well.
Is this a well hidden option or is it not possible to make this work for 10g.
Extra : found workaround by removing the storage clause to the export. Is there another way that does not force me to remove the storage clause?
Edited by: kcaluwae on 24-jun-2011 6:03I'm sure this is far from the supported way to fix this but, seeing that it's apparently an issue with the classpath or something in it, I hacked <sqldeveloper_install>\sqldeveloper\bin\sqldeveloper.bat and added [ORACLE_HOME]\jdbc\lib\ojdbc6.jar to the classpath. At least that gets me started with 3.0 and lets me create TNS connections.
I'd really appreciate a better solution, if any of you kind folks knows of something.
Thanks,
Kelly -
Able to connect via Oracle SQL Developer, but not sql plus
Using Oracle 10.2.0.
I can connect using the TNS connection type in SQL Developer, but cannot do so in SQL PLUS. SQL Plus gives me the error -- could not resolve the connect identifier.
When I do tnsping USPO_ADHOC, I get:
C:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION =
TNS-12533: TNS:illegal ADDRESS parameters
So here is my tnsnames.ora file:
INTL_ADHOC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.239.162.108)(PORT = 1521))
(CONNECT_DATA =
(SID = intl1)
USSYN_ADHOC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.239.162.109)(PORT = 1521))
(CONNECT_DATA =
(SID = USSYN)
USPO_ADHOC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.239.162.107)(PORT = 1521))
(CONNECT_DATA =
(SID = uspo)
Any assistance gratefully appreciated. Thanks.I actually did not have that environmental variable, so I added it, but nothing changed.
I would note that if I do tnsping foo, I get: failed to resolve name.
If I do tnsping USPO_ADHOC, I get: illegal address parameter.
In both cases, the output correctly identified the path to my sqlnet.ora file, which is in the same directory as my tnsnames.
So I would conclude from that, that the system was already able to find my tnsnames file.
Anyway, here's my sqlnet.ora:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
Thanks again for any ideas! -
Sql developer not working which i got when i installed oracle 11g on win7
Hi i successfully instaled my oracle 11g on windows 7,but when iam trying to use my sql developer chich i got by default with 11g is not working ..when i open it its asking me for "select the path of java.exe file" when i browse and given the right path .iits again giving me the same pop and not throughing any error msg at least.
Could u pls help me out on this??Well, not supported does not necessarly mean does not work, but if you have problem, then your only way is to find a solution on your own or through other fellows who are doing the same.
Anyway, you could ask your question in the SQL Developer dedicated forum, but again, you could have some unexpected issues by working on non-supported config :
SQL Developer
Nicolas. -
SQL developer connect to SQL server database
Hi Friends,
I have a sql developer 3.2. I download jtds1.2 as a thirty part driver in window. It works and SQL server tab appear on connection window.
But Retrieve database button does not work and not able to enter a sql database name.
Without database name , I got error message as failure 0 test failed:unknow server host name 'CACI1111\SQLEXPRESS'. I use defolt 1433 port.
However, I can open SQL server 2008 express in my local PC.
What do I need to do it?
Thanks
newdbaHello,
my syntax to connect to a non-local SQL Server 2005 Express database is nn.nn.nn.nn/testdb in the hostname field, where nn.nn.nn.nn is the IP address of the other PC and testdb is the name of the database.
Regards
Wolfgang -
SQL developer wont start on Mac OSX Lion
Hi there,
hoping someone can help me with this one, I've been running SQL Developer 3 on the macbook no problems for about a year, I recently upgraded to Mac OSX Lion and now when I try to start SQL Developer it will not run.
I have downloaded and installed the latest version of java as directed on the SQL Developer download page.
When I start SQL developer and view the Activity Monitor the "bash" process starts to use 100% CPU very quickly and SQL developer does not even get to the splash screen.
Can anyone point me in the right direction in terms of diagnosing this issue? Is there a log file I can review or way of starting SQL developer with specific arguments?
Kind regards,
stuIrian wrote:
Usually the SetJavaHome points to the root directory for the JVM installation, this directory in your case appears to be
/Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home
so try setting this in the SetJavaHome command for your SQL Developer (the bin folder will be added internally)
I'm not completely sure as i do not use macs, but it's worth a try.
Just had this same problem with Mountain Lion/SQL Developer 3.2.2, right after my upgrade to Mountain Lion. The path shown in Irian's response is what did the trick for me. The /System/Library/.... path shown by some others doesn't even exist on my machine. Interesting....
Earl
Maybe you are looking for
-
Unable to create a simple test client. Got ConfigException: JBO--33001
I am trying to create a simple test client as per ADF training manual. Have just created an empty AM. The test client is giving this error at runtime. The test client looks like: public static void main(String args[]) String amDef = "test.TestModule"
-
Upgrading a Report from Crystal Reports 10 to Crystal Reports 11
Post Author: Chakradhar CA Forum: Upgrade to XI 3.0 HI All, Please provide a solution for this.. Is there any way to change the version of a report without redesigning the report? If we upgrade the report without redisign, dont we lose the special fe
-
How does a business set up location services for their app?
We are an educational facility and would like the location services if the iPhone or iPad to show the availability of our app when a user is nearby.
-
Different appearance of same file
Can anyone explain why the same PDF file viewed in Reader 8.1.2 on XPSP3 on two different laptops should look so different? I've posted side-by-side screenshots of an example at http://www.pixentral.com/show.php?picture=1oi6hYvQnhYXKGvG5GN7TiYgzURZ T
-
Hello, I installed Oracle Interconnect 10g for a proof of concept. My client has 60 systems having a 300 link between them. Those systems are developed with forms/ report (60%), microsoft technology, mainframe, clipper, etc. We have a lot of question