Data import trouble with 1.5.4 Sql Developer
I am trying to import data from Excel files , but now when I go through the import wizard, then click finish,
The Data Import Wizard dialog box disappears and nothing happens. No errors, no import, nothing.
Here's what I get : (I only have 1000 rows and 6 colums)
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException:
3
at java.awt.Container.createHierarchyEvents(Container.java:1335)
at java.awt.Container.createHierarchyEvents(Container.java:1335)
at java.awt.Container.createHierarchyEvents(Container.java:1335)
at java.awt.Container.createHierarchyEvents(Container.java:1335)
at java.awt.Container.createHierarchyEvents(Container.java:1335)
at java.awt.Container.createHierarchyEvents(Container.java:1335)
at java.awt.Container.createHierarchyEvents(Container.java:1335)
at java.awt.Container.createHierarchyEvents(Container.java:1335)
at java.awt.Container.createHierarchyEvents(Container.java:1335)
at java.awt.Container.createHierarchyEvents(Container.java:1335)
at java.awt.Dialog.conditionalShow(Dialog.java:472)
at java.awt.Dialog.show(Dialog.java:526)
at java.awt.Component.show(Component.java:1302)
at java.awt.Component.setVisible(Component.java:1255)
at oracle.javatools.dialogs.progress.AbstractProgressMonitor$1.run(Abstr
actProgressMonitor.java:341)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Similar Messages
-
Data Transformation Service (DTS) available in Oracle SQL Developer?
Hi All,
Sorry to bother you again. Is Data Transformation Service (DTS) available in Oracle SQL Developer? So far I cannot find it. For example, i want merge First Name, Last Name column from Access,excel or cvs to migrate as Full Name in Oracle or Full name in Access,Xls or cvs split into First name & last name column in Oracle. What method or service should I use.
Regards,
Tun TunOn wikipedia, I see that's a SQL Server component, so I don't think it's possible to use it in any other program.
But you can always tweak columns through normal queries, and even create a new table based on that, like
CREATE TABLE Table_New AS
SELECT First_Name || Last_Name FROM Table_OldHope that helps,
K. -
How to view complete date stamp in query result view in sql developer?
Hi,
In the query result, the date present in db is shown as DD-MM-YYYY format but I want to view the complete date stamp. When I view the same data in aqua data studio, I see the complete time stamp. Please let me know if I need to do some settings in Oracle SQL Developer so that complete date is shown?
How to view complete date stamp in query result view in sql developer?
Thanks in advance,
Vineet864793 wrote:
Hi,
In the query result, the date present in db is shown as DD-MM-YYYY format but I want to view the complete date stamp. When I view the same data in aqua data studio, I see the complete time stamp. Please let me know if I need to do some settings in Oracle SQL Developer so that complete date is shown?
How to view complete date stamp in query result view in sql developer?
Thanks in advance,
VineetAlternatively you can execute below
set nls_date_format='DD-MM-YYYY HH24:MI:SS';Regards,
Achyut K -
How export datas with special characters from SQL Developer?
Hi.
I'm doing an import of datas of a table, but this table have special characteres in specific accents (á,é,í,ó,ú), my source table have for example "QRCN Querétaro, Candiles" but when I done an export from opcion Tool --> Export DLL (and Datas) from SQL Developer generate the next script
Insert into tablexxx(CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20280','QRCN Quer?ro, Candiles');
How can I do for export my datas and generate the script correct?
Insert into tablexxx(CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20280','QRCN Querétaro, Candiles');
thanks.Hi sybrand_b,
1. In my SQL Developer I select Tool-->Export DDL (and Data).
2. I Select name file, connection (this is a remote DB), objects to export in this case I select 'Tables and data' and table name to export
3. Run the procedure and generate the script following:
-- File created - jueves-julio-01-2010
-- DDL for Table TABLEXXX
CREATE TABLE "BOLINF"."TABLEXXX"
( "CADENA" VARCHAR2(50 BYTE),
"NUMERO_FARMACIA" VARCHAR2(50 BYTE),
"SUCURSAL_REFERENCIA" VARCHAR2(200 BYTE)
-- DATA FOR TABLE TABLEXXX
-- FILTER = none used
REM INSERTING into TABLEXXX
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20280','QRCN Quer?ro, Candiles');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20281','QRCG Quer?ro, Corregidora');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20282','QRFU');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20283','QRFU');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20284','SAUN San Lu?P, Universidad');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20285','SAEV San Lu?P, Eje Vial');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20286','SALB San Lu?P, Los Bravo');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20287','SAAL San Lu?P, Alvaro Obreg?');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20288','SACA San Lu? Callej?n de Cod');
4. But my source table have the next datas.
Select * from TABLEXXX.
CADENA NUMERO_FARMACIA SUCURSAL_REFERENCIA
C002 20280 QRCN Querétaro, Candiles
C002 20281 QRCG Querétaro, Corregidora
C002 20282 QRFU
C002 20283 QRFU
C002 20284 SAUN San Luís P, Universidad
C002 20285 SAEV San Luís P, Eje Vial
C002 20286 SALB San Luís P, Los Bravo
C002 20287 SAAL San Luís P, Alvaro Obregó
C002 20288 SACA San Luís, Callejón de Cod
5. I have done a query to table nls_database_parameters.
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZH:TZM
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZH:TZM
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_RDBMS_VERSION 10.2.0.4.0
6. I have revised in Regedit-->HKEY_LOCAL_MACHINE-->SOFTWARE-->ORACLE-->ORACLE HOME and value for NLS_LANG=AMERICAN_AMERICA.UTF8
where should I change for export my datas correct?
or exist any form for export my datas?
thanks a lot.
regards -
How to export/import database from tools menu in sql developer.
Hi,
I need to export database from a server and import it on another db server using the export database function under tools menu in SQL developer. How do I import it? This is for Oracle 10g database.
ThanksDepends what are you trying to do? Are you making a database copy or just creating an empty schemea or creating schema with the data?
With 10g, you have also options of using datapump (expdp/impdp) and conventional export/import which is very usefule and easy to use when it comes to create a clone (duplicate schema) or an export/import of some objects.
If you right click on table object, you have options of export ddl/export data and import data but thats different thant what expdp/impdp or conventional export/import provides. For very small database you can use sqldeveloper but consider
using other above mentioned options. Hope this helps
Regards -
Using REF with object table in SQL Developer
When i create object tables and fill them with data, then in SQL Developer de REF value isn't displayed.
I did the following:
CREATE TYPE adres_type AS OBJECT
(straat VARCHAR2(20)
,nummer VARCHAR2(10)
,postcode VARCHAR2(6)
,plaats VARCHAR2(50));
CREATE TABLE adressen of adres_type;
CREATE TYPE locatie_type AS OBJECT
(nr NUMBER
,naam VARCHAR2(20)
,adres REF adres_type);
CREATE TABLE locaties OF locatie_type;
CREATE TABLE locaties OF locatie_type
(SCOPE FOR (adres) IS adressen);
insert into adressen values (adres_type('Arnhemsestraatweg', '33','6881ND','Velp'));
insert into locaties values (1,'Directie', (select ref (a) from adressen a where a.plaats = 'Velp'))
Then in SQL Developer de REF(A) column is empty, while in SQL*Plus it displays the REF value:
In SQL Developer: SELECT a.*, REF(a) FROM adressen a;
STRAAT NUMMER POSTCODE PLAATS REF(A)
Arnhemsestraatweg 33 6881ND Velp
In SQLPLUS: SELECT a.*, REF(a) FROM adressen a;
STRAAT NUMMER POSTCODE PLAATS REF(A)
Arnhemsestraatweg 33 6881ND Velp 0000280209C70341FBB96B4F77813B27B50E53BB4332382E22ADD64AD9B755F651D416B6DA010134
Is this a bug or is there another reason why the ID doesnt display in SQL Developer.
(this didnt work in all the previous SQL Developer releases and still not in de 2.1 E.A. version)Hi <not sure of your first name>,
I have replicated the issues and logged a bug against this
Bug 9102579 - FORUM: REF FUNCTION NOT RETURNING CORRECT RESULT
Regards,
Dermot O'Neill
SQL Developer Team -
Problems with debugging in Oracle sql developer
Dear all,
I have a stored procedure with about 3500 lines of code. The SP is calling some other SP's , so altogether around 30,000 lines of code is to executed.
I have some delete statements in the beginning of my SP.
Till nw i was able to debug and run this SP.
But nw I am facing a strange problem.
I can run the SP.
But if i try to debug it , it gets hanged after the delete statement and does not move forward.
So i moved all that statements to another SP and I call the new SP from my present one.
In this way If i debug , after calling the newly created SP , my main Sp does not recognise the break points , and it just finishes execution ..
Can any one help me on this.
Thanks in Advance,
Kurian SimonSimon,
Did you move the breakpoint, and once you'd moved the lines of code, did you recompile, using compile for debug? Also, it's important to do compile for debug on all the program units you want to debug, otherwise SQL Developer will just step over the units not compiled for debug.
Sue -
Function will not run (and shows with red cross in SQL Developer)
I have created the function below by typing into the "Enter SQL Statement" box in the SQL Developer tool and running. I see the message "create or REPLACE FUNCTION Statement Processed". I see the Function in the tree view, but it has a red cross icon next to it, so I guess somethings wrong with it. When I try to run it I get the message "The selected program is in an invalid state for running. Recompile the program and try again." If I right-click the function and compile then I get no errors but the red cross remains and I still can't run it.
What am I doing wrong?
Also, I am planning on supplying a SQL script to customers that will have this function at the top of the script, and then I will use the function throughout the rest of the script to decide whether or not to drop a table before re-creating it. Will that be ok? i.e. will the function be available to the rest of the script, or would the function creation need to be followed by a commit/grant/other?
CREATE OR REPLACE FUNCTION CHECK_TABLE_EXISTS(tableName VARCHAR2)
RETURN BOOLEAN IS
tableExists NUMBER(1,0);
BEGIN
SELECT COUNT(*) INTO tableExists FROM user_tables WHERE table_name=tableName;
IF tableExists = 1 THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
END CHECK_TABLE_EXISTS;Thanks,
PaulHello Try the same at sqlplus and see how it goes. It should not throw any error messages as I tried the same as a normal user Scott with only (connect, resource) priveleges. You dont have to grant any specific previleges for user_tables.
-Sri
SRI>conn scott/tiger@sri
Connected.
SRI>CREATE OR REPLACE FUNCTION CHECK_TABLE_EXISTS(tableName VARCHAR2)
2 RETURN BOOLEAN IS
3 tableExists NUMBER(1,0);
4 BEGIN
5 SELECT COUNT(*) INTO tableExists FROM user_tables WHERE table_name=tableName;
6 IF tableExists = 1 THEN
7 RETURN TRUE;
8 ELSE
9 RETURN FALSE;
10 END IF;
11 END CHECK_TABLE_EXISTS;
12 /
Function created.
SRI>set serverout on
SRI>begin
2 if check_table_exists('EMP') = TRUE
3 THEN
4 dbms_output.put_line('Found');
5 else
6 dbms_output.put_line('Not Found');
7 end if;
8 end;
9 /
Found
PL/SQL procedure successfully completed. -
Apex report result doesn't agree with the result of sql developer
Hello guys,
at the moment I try to create a standard report which takes his content from several spreadsheets. Because of some problems with the searchbar I'm not able to use an interactive report. The sql query contains a function, which sets some space characters into the content of a column. But there is a big problem. When I call my sql query in apex from the spreadsheets the result doesn't agree with the result which affords the sql developer.
I know that the sql developer affords the right result.
best regards
wderr
Edited by: user9072567 on 07.02.2010 12:57thats the query:
select "TWORKITEM"."WORKITEMKEY",
"TWORKITEM"."PROJCATKEY",
"TPROJECT"."LABEL",
"TWORKITEM"."PACKAGESYNOPSYS",
replace(replace("TWORKITEM"."PACKAGEDESCRIPTION", chr(10), '<br>'),'<td></td>','<td></td>') packagedesc,
suche_ohne_ti_be("TWORKITEM"."WORKITEMKEY") "CHANGEDESCRIPTION"
from "TWORKITEM" "TWORKITEM", "TPROJECT" "TPROJECT", "TPROJCAT" "TPROJCAT"
where "TWORKITEM"."PROJCATKEY" = "TPROJCAT"."PKEY"
and "TPROJCAT"."PROJKEY" = "TPROJECT"."PKEY"
and (instr(upper("TWORKITEM"."WORKITEMKEY"), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."WORKITEMKEY"))) > 0
or instr(upper("TPROJECT"."LABEL"), upper(nvl(:P10_SEARCHTEXT, "TPROJECT"."LABEL"))) > 0
or instr(upper("TWORKITEM"."PACKAGESYNOPSYS"), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."PACKAGESYNOPSYS"))) > 0
or instr(upper("TWORKITEM"."PACKAGEDESCRIPTION"), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."PACKAGEDESCRIPTION"))) > 0
or instr(upper(suche_ohne_ti_be("TWORKITEM"."WORKITEMKEY")), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."WORKITEMKEY")))>0
I mean with spreadsheets some tables/charts. And I take those informations from 3 of them.
regards
wderr -
SQL Developer Data Modeler: free of licensing costs like SQL Developer?
Sue and SQL Developer Team,
At what release did Data Modeler become free? And by "free" does this mean free for development only? Or free of cost for any and all production use? From what I recall, early releases of Data Modeler were "free" to download but required for-pay licensing to use.
http://www.oracle.com/technetwork/developer-tools/datamodeler/overview/index.html
"SQL Developer Data Modeler is a free data modeling and design tool..."
If there is a license fee for Data Modeler, then the above statement would be as misleading as one like the following:
"Oracle Enterprise 11g is a free database..."
Free to download, yes. Not free for production usage.Evidently the answer is "yes" this time. Free as in free of licensing costs:
http://blogs.oracle.com/OTechMusings/2010/09/free_as_in_beer_data_modeler.html
http://www.oracle.com/technetwork/developer-tools/datamodeler/pricing-faq-101047.html -
How i can deal with DB schema in SQL developer ?
Hi
Thank you for reading my post , how i can make sql developer just to show one schema ?
ThanksWhat the Natalka wanted to say is so that the
hardwired user does not visualize none another user
when clicar in the option 'Other Users'.
For this, you must clicar with the right button of
mouse on the option 'Other Users', 'Apply Filter' and
to move for the panel of the left all the users who
you do not want that they are visualized.
It is not this what you want? If possible, detail
more its request.
Remembering that each user in the Oracle is
corresponding to one schema.by the way, how can I create tables in sql developer if I don't see the one I have already created thanks -
Bulk import of tnsnames.ora file into SQL developer on first run
Is there a way for SQL developer to read the tnsnames.ora file and import all of the connections from that? Near as I can see, I would either have to manually add each of them or import an xml file of some kind...Thoughts?
There's a feature request for this at the Exchange (http://htmldb.oracle.com/pls/otn/f?p=42626:39:3634225177876117::NO::P39_ID:4582), but they closed it down like a crack-house :-(
So you just have to continue your manual slave-labours...
Have fun,
K. -
I need help with network install of SQL Developer 3.2
All,
Does anyone have any references on how to perform a network install for SQL Developer? Here is what I'm trying to achieve:
1. Network installation on drive S:\ (Windows, obviously)
2. User links to network installation
3. Connections are unique for each user
I found the 2006 posting of network install for Raptor, but I could not find anything that correlates with the latest release. All I have done so far is downloaded and unzipped. Any help/instructions/guides/tutorials are welcome.You have installed!. The code for SQLDeveloper does not have an installer.
If the software is on S, say a shared drive, each user will start sqldeveloper and a directory called sqldeveloper will be created in their local %APPLICATION_DATA% folder. This will keep all connections etc unique for all users.
You will have to create a link from the S drive to the sqldeveloper.exe if you want a shortcut to start it. We dont provide it.
Thanks
B -
Issue with viewing packages in SQL Developer EA2
I posted a message when EA1 came out asking why I couldn't see the package's body in EA1.
Now I couldn't see the any thing under '$schema/packages' in EA2.
Does anybody know why?
My OS: Windows XP Pro SP2
Oracle: 9i
SQL Developer version: EA2In version 9 a very simple sql is supposed to be executed:
SELECT OBJECT_NAME, OBJECT_ID,
DECODE(STATUS, 'INVALID', 'TRUE', 'FALSE') INVALID,
'TRUE' runnable
FROM SYS.ALL_OBJECTS a
WHERE OWNER = :SCHEMA
AND OBJECT_TYPE = 'PACKAGE'
AND SUBOBJECT_NAME IS NULL
-- for packages
SELECT OBJECT_NAME, OBJECT_ID,
DECODE(STATUS, 'INVALID', 'TRUE', 'FALSE') INVALID,
'TRUE' runnable
FROM SYS.ALL_OBJECTS o
WHERE OWNER =:SCHEMA
AND OBJECT_NAME = :PARENT_NAME
AND OBJECT_TYPE = 'PACKAGE BODY'
-- for package bodies
If either of these doesn't return anything in worksheet, then the problem is right there. However, this part hasn't been changed since EA1 (The only change was adding SYS.DBA_PLSQL_OBJECT_SETTINGS requirement for version >=10). I can't reproduce the problem: in 9i scott sees any procedure/package I create. -
Import of ERwinR8 data models into Oracle SQL Developer Data Modeler
Hi! My site want to move off ERwin R8 and use Oracle SQL Developer Data Modeler. When will Oracle SQL Developer Data Modeler support the import of ERwin R8data model xml?
Thanks very much, PattyHi,
You can add the classic SCOTT schema with EMP/DEPT tables to a 10g Express Edition DB by running this script as SYSTEM:
C:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN\scott.sql
Also, you may wish to upgrade to the current version of SQL Developer:
http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
As for importing a .dmp file, you import it to the database, not SQL Developer. Please post that question to the appropriate forum.
Regards,
Gary Graham
SQL Developer Team
Maybe you are looking for
-
Need a column based off a PL/SQL cursor, how to do this?
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production With the Real Application Testing option JServer Release 9.2.0.8.0 - Production Report Builder 10.1.2.2.0 ORACLE Server Release 10.1.0.5.0 Oracle Procedure Builder 10.1.2.2.0 Oracle ORA
-
How much leeway for blowing up when downconverting HDV to SD?
Hi. I'm trying to understand how much I can blow up a HD/HDV image when the final format for a project is an SD DVD. How much and why... I'm working on a DVD of a play. The producer thinks our wide shot is too wide. She wants me to blow it up wheneve
-
Upgrade to Solaris 10 from Solaris 8
My client has upgraded from Solaris 8 to Solaris 10. In the process the partition /lu (live update) was created at about 8GB. The root partition is currently at 94% and removal of /lu has not recovered this space. Please advise best practice to resol
-
We are creating background job for running the report in background...but i want the output(report) to send an email in Excel format after the job run successfully... The only problem is the attachemnt in the email we are getting it as HTML (filenam
-
Unable to refresh any of the reports in Deski.
Team, We are not able to refresh any of the reports in Deski. Error Message: Connection or SQL sentence error (DA0005) Error Details: Exception: DBD, ORA-24373: invalid length specified for statement state: N/A System Details: Windows 2003 Std SP1 &