Export Data of Tables in Oracle to format DBF
People,
I need your help! I have a question...How I do for to export the a table (data) Oracle to format table in DBF using PL/SQL?
Please, I am waiting an answer...
Thanks a lot
Tavares, Marcelo
I would probably export to a simple text file (ASCII-delimited or fixed-length fields), then import to Excel and save as Dbase format.
But the following link provides a way to do it directly in PL/SQL:
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:711825134415
Similar Messages
-
How to export data within tables in Oracle 10g
Since I'm using Oracle 10g, thus I wanted to know that do I have the option for exporting data from one table to another or exporting the whole table to some another databases like SQL Server or any other database.
There are several options, each has different advantages and disadvantages. When both source and target are Oracle;
1. you can use database links across databases -
http://psoug.org/reference/db_link.html
2. you can unload to external tables after 10g and load from external table -
http://tonguc.wordpress.com/2007/08/09/unload-data-with-external-tables-and-data-pump/
3. you can use data pump(expdp/impdp) after 10g -
http://psoug.org/reference/datapump.html
http://psoug.org/reference/dbms_datapump.html
4. you can use traditional export(exp) and import(imp) -
http://psoug.org/reference/export.html
http://psoug.org/reference/import.html
5. you can unload to text with an unloader and use sql*loader to load -
http://tonguc.wordpress.com/2007/09/02/announcement-of-a-new-product-ubsql-from-ubtools/
http://asktom.oracle.com/tkyte/flat/
http://psoug.org/reference/sqlloader.html
for some options you may get the meta information(all table related DDLs) with supplied package DBMS_METADATA;
http://psoug.org/reference/dbms_metadata.html
When source is Oracle 10g and target is non-Oracle you may unload to text from Oracle and use the related text loader utility supplied with the other vendor.
Also Heterogeneous Connectivity is another option between Oracle and non-Oracle systems;
http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/toc.htm
If you need more informations please visit Oracle's documentation for your release and search for the topic you are interested; http://tahiti.oracle.com -
Exporting data from table to Excel in a particular format using BSP.
Hello all,
I am creating a application in BSP wherein i have to export data to excel sheet.
I am able to do that but the output in excel sheet is not formatted. it is displaying the data in a single
column. For example, the internal table which i am exporting to excel contains fields "product
name", "area name", country name", "values". all these should be displayed in different columns.How
can i achieve this functionality.A sample code will be of great help..
Below is the code i hav written for exporting to excel :
data: l_len type i,
l_string type string,
app_type type string,
file_content type xstring,
file_mime_type type string.
create OBJECT cached_response TYPE cl_http_response EXPORTING add_c_msg = 1.
cached_response->set_data( file_content ).
cached_response->set_header_field(
name = if_http_header_fields=>content_type
value = file_mime_type ).
LOOP AT itab_xls INTO wa_xls.
CONCATENATE L_STRING wa_xls-product_name
wa_xls-area_name
wa_xls-landx
CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING SEPARATED BY SPACE.
ENDLOOP.
APP_TYPE = 'APPLICATION/MSEXCEL; charset=utf-16le'.
data: l_xstring type xstring.
call function 'SCMS_STRING_TO_XSTRING'
exporting
text = l_string
MIMETYPE = 'APPLICATION/MSEXCEL; charset=utf-16le'
IMPORTING
BUFFER = l_xstring.
Add the Byte Order Mark - UTF-16 Little Endian
concatenate cl_abap_char_utilities=>byte_order_mark_little
l_xstring
into l_xstring in byte mode.
cached_response->set_data( l_xstring ).
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = 'APPLICATION/MSEXCEL; charset=utf-16le' ).
*Set the filename into the response header
cached_response->set_header_field( name = 'Content-Disposition'
value = 'attachment; filename=gkb_excel.xls' ).
*Set the Response Status
cached_response->set_status( code = 200 reason = 'OK' ).
*Set the Cache Timeout - 60 seconds - we only need this in the cache
*long enough to build the page and allow the IFrame on the Client to request it.
cached_response->server_cache_expire_rel( expires_rel = 60 ).
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
CONCATENATE runtime->application_url '/' guid '.xls' INTO url.
cl_http_server=>server_cache_upload( url = url
response = cached_response ).
Can anyone help me with some solution.
Thanks in advance.
Gurmahima.the issue is here
LOOP AT itab_xls INTO wa_xls.
CONCATENATE L_STRING wa_xls-product_name
wa_xls-area_name
wa_xls-landx
CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING SEPARATED BY SPACE.
ENDLOOP.
instead do the following
LOOP AT itab_xls INTO wa_xls.
CONCATENATE L_STRING wa_xls-product_name ','
wa_xls-area_name ','
wa_xls-landx ','
CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING .
ENDLOOP.
and then change the file name extension from xls to csv. it should open properly in excel.
Note that this is only excel csv file. if you want a proper excel excel file, then
option one: build a html table with your data into a string and pass it to excel
option 2: build excel xml using your data into a string and pass it to excel.
Regards
Raja -
Export data to excel from oracle ?
Hi,
Is it possible to export the table data to an excel sheet??? If yes, please let me know how to achieve it !!!
Regards
VenkatNumerous threads about this issue....
Just a pair of example...
Export from oracle to excel
Export Data to Excel using PL/SQL
If you were not satisfied ... , you could search extensively the forums:
http://forums.oracle.com/forums/search.jspa?threadID=&q=export+data+to+excel&objID=f75&dateRange=lastyear&userID=&numResults=15
Greetings...
Sim -
Exporting data in tables to an Excel spreadsheet?
Is there a script or another way to export or save a documents tables (multiple tables over several pages) to an excel spreadsheet? I have found a solution which involves exporting each spread as a html file which i can then open straight in excel but this is still quite long winded and i can only seem to do this a spread at a time. As the job I am working on involves many pages this is taking too long. Surely there must be a script which can automate this in some way. I am fairly new to scripting so any help will be grateful. I have searched in scripting but nothing has really come close to what i am trying to achieve. Indesign CS5.5 user.
Thanks for the quick response. I thought it was an applescript because of the word "applescript" within it. Now I'm running it as a jsx. However in my real document with nothing selected, it selects only one table on page 3 to export. I created a new test document with three tables in separate text boxes on one page, and the script only exports the first one. I put the three tables in one big text box (one story), and still it only exports the first one. I tried selecting the second table in the story and ran the script again, but it still just exported the first table.
What I am hoping for is a script that will export every table to a single excel spreadsheet. Here is an example of the dummy tables with the legend in the first column and the data in the second column. I don't mind if the script exports the legend every time; I can repmove those columns in the excel file.
1
a
2
b
3
c
4
d
5
e
6
f
7
g
8
h
1
i
2
j
3
k
4
l
5
m
6
n
7
o
8
p
1
q
2
r
3
s
4
t
5
u
6
v
7
w
8
x -
Export Data in Table Control to Excel
Hi Folks -
Here is what I thought would be a simple task. I want to use the run-time shortcut menu to export data to excel from a table control, which is an option in the default menu.
The two things I would like to be able to do are:
1) Either the whole table including the headers or
2) Perform a selection of rows during run-time to export to excel
From a prior discussion, it appear that there is a bug in this functionality. When I tried to create my own code to perform the selection programmatically, my table was resized to a thumbnail while running the VI, and the export still not work properly.
http://forums.ni.com/t5/LabVIEW/Export-table-to-excel/m-p/1089007#M481882
Any further thoughts on this are appreciated. I have some workarounds but would like to see this working.
Attachments:
test.vi 8 KBDonRothGE wrote:
Hi Folks -
Here is what I thought would be a simple task. I want to use the run-time shortcut menu to export data to excel from a table control, which is an option in the default menu.
The two things I would like to be able to do are:
1) Either the whole table including the headers or
2) Perform a selection of rows during run-time to export to excel
From a prior discussion, it appear that there is a bug in this functionality. When I tried to create my own code to perform the selection programmatically, my table was resized to a thumbnail while running the VI, and the export still not work properly.
http://forums.ni.com/t5/LabVIEW/Export-table-to-excel/m-p/1089007#M481882
Any further thoughts on this are appreciated. I have some workarounds but would like to see this working.
First, try to save to the oldest version of VI you can so that the most people are able to view your VI.
Not everybody has the latest LabVIEW installed. Strange but true.
Second, I opened your VI and I don't see anything except a While loop and a Stop button with a Table control. No other code.
I have no clue what you are doing with regards to "perform the selection programmatically".
Anyway, I select cells on the Table control using Property Node Selection Size and Property Node Selection Node and the Invoke Node to export the data to Excel, it works for me.
Excel opens up and I see one worksheet which is populated with the values from the Table control.
I have Excel 2010.
However, it looks like you will need to manually save the opened Excel file. -
Export data from table with CLOB column
DB: Oracle10g
SQLDeveloper: 1.0
OS: windows xp for sqldeveloper
Linux for Oracle db
we have a table with two CLOB columns. We want to export the data to either text or csv. But the CLOB columns don't show up in the columns that can be exported.
How do I export CLOB data from SQL Developer?
Regards,
LonnekeI don't think this is a good protection: you can have these characters in VARCHAR anyway, and this way you "throw the baby out with the bath water". Not mentioning that right now also immune formats like HTML are also limited.
-
Getting Error While trying to export Data in Table Mode
Hi Guru's,
My DB Version: 10.2.0.1.0
My OS Version: Windows Server 2003
During exporting Table data i am getting below error:
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-31626: job does not exist
ORA-31637: cannot create job SYS_EXPORT_TABLE_01 for user SYS
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT_INT", line 601
ORA-39080: failed to create queues "" and "" for Data Pump job
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPC$QUE_INT", line 1550
ORA-01403: no data found
command which i used for export is ;
expdp username/password@db_name tables=(schema.table_name:partition_name) directory=test_dir dumpfile=file_name.dmp logfile=logfile_name.log content=all
Can you please help me what happen to export
when i use original export import i am able to do that but not with expdp why is it soIt is a bug. The following metalink note will will help you out
ORA-31626 ORA-31637 ORA-06512 ORA-39080 ORA-1403 Received When Using DataPump Export [ID 744700.1] -
Data trouble when exporting data from Access to Oracle
Hey,
I have several tables in Access in which I am exporting to Oracle. The exporting works fine, but some of the ' are getting converted to ? during the export, so any fields that have words like government's or women's are now spelled government?s and women?s. Any ideas on why this would be happening and on how to fix it?
ThanksWhat is your database character set in Oracle? What is your NLS_LANG parameter set to on the client?
I'm guessing that your data contains some of Microsoft's special characters (things like curly quotes) rather than the standard ASCII apostrophe. Both the database character set and the client NLS_LANG would have to be configured to a character set that supports those characters in order for the data to be transferred correctly.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Generate Insert Statement Script to Extract Data from Table in Oracle 7i
Hi all, I have an old Oracle legacy system that is running for over 15 years.Every now and then we need to extract data from this table@ ORacle 7i to be imported back to Oracle 10G.
My thoughts are to create a script of Insert statements in oracle 7 and that to be deployed back to Oracle 10G.
I found this scripts in Google and not sure how exactly this works.Any explanation on thsi scripts , would be greatly appreciated.I find this scripst may help to generate a set of insert statements from that table to the latest table at 10G.
<pre>
-- Step 1: Create this procedure:
create or replace Function ExtractData(v_table_name varchar2) return varchar2 As
b_found boolean:=false;
v_tempa varchar2(8000);
v_tempb varchar2(8000);
v_tempc varchar2(255);
begin
for tab_rec in (select table_name from user_tables where table_name=upper(v_table_name))
loop
b_found:=true;
v_tempa:='select ''insert into '||tab_rec.table_name||' (';
for col_rec in (select * from user_tab_columns
where
table_name=tab_rec.table_name
order by
column_id)
loop
if col_rec.column_id=1 then
v_tempa:=v_tempa||'''||chr(10)||''';
else
v_tempa:=v_tempa||',''||chr(10)||''';
v_tempb:=v_tempb||',''||chr(10)||''';
end if;
v_tempa:=v_tempa||col_rec.column_name;
if instr(col_rec.data_type,'CHAR') > 0 then
v_tempc:='''''''''||'||col_rec.column_name||'||''''''''';
elsif instr(col_rec.data_type,'DATE') > 0 then
v_tempc:='''to_date(''''''||to_char('||col_rec.column_name||',''mm/dd/yyyy hh24:mi'')||'''''',''''mm/dd/yyyy hh24:mi'''')''';
else
v_tempc:=col_rec.column_name;
end if;
v_tempb:=v_tempb||'''||decode('||col_rec.column_name||',Null,''Null'','||v_tempc||')||''';
end loop;
v_tempa:=v_tempa||') values ('||v_tempb||');'' from '||tab_rec.table_name||';';
end loop;
if Not b_found then
v_tempa:='-- Table '||v_table_name||' not found';
else
v_tempa:=v_tempa||chr(10)||'select ''-- commit;'' from dual;';
end if;
return v_tempa;
end;
show errors
-- STEP 2: Run the following code to extract the data.
set head off
set pages 0
set trims on
set lines 2000
set feed off
set echo off
var retline varchar2(4000)
spool c:\t1.sql
select 'set echo off' from dual;
select 'spool c:\recreatedata.sql' from dual;
select 'select ''-- This data was extracted on ''||to_char(sysdate,''mm/dd/yyyy hh24:mi'') from dual;' from dual;
-- Repeat the following two lines as many times as tables you want to extract
exec :retline:=ExtractData('dept');
print :retline;
exec :retline:=ExtractData('emp');
print :retline;
select 'spool off' from dual;
spool off
@c:\t1
-- STEP3: Run the spooled output c:\recreatedata.sql to recreate data.
Source:http://www.idevelopment.info/data/Oracle/DBA_tips/PL_SQL/PLSQL_5.shtml
</pre>Thanks Justin.
I get what you are saying,i really wanted to see the output of the codes, because the furtherst i could get from that code is
SELECT EXTRACTDATA('MYTABLE') FROM MYTABLE;
and it generated this:
"select 'insert into MYTABLE ('||chr(10)||'DATE1,'||chr(10)||'TIME1,'||chr(10)||'COUNTS) values ('||decode(DATE1,Null,'Null','to_date('''||to_char(DATE1,'mm/dd/yyyy hh24:mi')||''',''mm/dd/yyyy hh24:mi'')')||','||chr(10)||''||decode(TIME1,Null,'Null',TIME1)||','||chr(10)||''||decode(COUNTS,Null,'Null',COUNTS)||');' from MYTABLE;
select '-- commit;' from dual;"
"select 'insert into MYTABLE ('||chr(10)||'DATE1,'||chr(10)||'TIME1,'||chr(10)||'COUNTS) values ('||decode(DATE1,Null,'Null','to_date('''||to_char(DATE1,'mm/dd/yyyy hh24:mi')||''',''mm/dd/yyyy hh24:mi'')')||','||chr(10)||''||decode(TIME1,Null,'Null',TIME1)||','||chr(10)||''||decode(COUNTS,Null,'Null',COUNTS)||');' from MYTABLE;
select '-- commit;' from dual;"
"select 'insert into MYTABLE ('||chr(10)||'DATE1,'||chr(10)||'TIME1,'||chr(10)||'COUNTS) values ('||decode(DATE1,Null,'Null','to_date('''||to_char(DATE1,'mm/dd/yyyy hh24:mi')||''',''mm/dd/yyyy hh24:mi'')')||','||chr(10)||''||decode(TIME1,Null,'Null',TIME1)||','||chr(10)||''||decode(COUNTS,Null,'Null',COUNTS)||');' from MYTABLE;
select '-- commit;' from dual;"
"select 'insert into MYTABLE ('||chr(10)||'DATE1,'||chr(10)||'TIME1,'||chr(10)||'COUNTS) values ('||decode(DATE1,Null,'Null','to_date('''||to_char(DATE1,'mm/dd/yyyy hh24:mi')||''',''mm/dd/yyyy hh24:mi'')')||','||chr(10)||''||decode(TIME1,Null,'Null',TIME1)||','||chr(10)||''||decode(COUNTS,Null,'Null',COUNTS)||');' from MYTABLE;
select '-- commit;' from dual;"
"select 'insert into MYTABLE ('||chr(10)||'DATE1,'||chr(10)||'TIME1,'||chr(10)||'COUNTS) values ('||decode(DATE1,Null,'Null','to_date('''||to_char(DATE1,'mm/dd/yyyy hh24:mi')||''',''mm/dd/yyyy hh24:mi'')')||','||chr(10)||''||decode(TIME1,Null,'Null',TIME1)||','||chr(10)||''||decode(COUNTS,Null,'Null',COUNTS)||');' from MYTABLE;
select '-- commit;' from dual;"
"select 'insert into MYTABLE ('||chr(10)||'DATE1,'||chr(10)||'TIME1,'||chr(10)||'COUNTS) values ('||decode(DATE1,Null,'Null','to_date('''||to_char(DATE1,'mm/dd/yyyy hh24:mi')||''',''mm/dd/yyyy hh24:mi'')')||','||chr(10)||''||decode(TIME1,Null,'Null',TIME1)||','||chr(10)||''||decode(COUNTS,Null,'Null',COUNTS)||');' from MYTABLE;
select '-- commit;' from dual;"
I was expecting a string of
insert into mytable values (19/1/2009,1,1);
insert into mytable values (19/10/2008,5,10);
Thanks for the explanation . -
Export and Import table in Oracle 8i
Hi Gurus,
I want to do an export of a oracle table to a binary file which is in 8i for back up.
And at some point of time import the same.
Can anyone please guide me the steps for the same. I am using SQL*plus & toad.
Thanks in advance.you can use IMP/EXP utilities
this can be a good start http://www.orafaq.com/wiki/Import_Export_FAQ -
Insert data from table on ORACLE to table SQL SERVER 2005
I need to load a table in SQLSERVER 2005 1/day and that table are in ORACLE10gR2. What possibilities i can use to do it?
Someone have some doc about configurations?
tks,
Elber.Hi, take a look on this AskTom's article. It helps me a lot:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4406709207206Paulo. -
Export import - using TOAD FOR ORACLE and ORACLE DATABASE 10G EXPRESS or s
Hi all,
Could you please kindly help me?
I am using TOAD FOR ORACLE to export a table to flat file A. The tool just supports to distinguish fields by "spaces".
And the web page of ORACLE DATABASE 10G EXPRESS to import the data from flat file A to another database. To load data to a table from a text file, the web page bases on "comma" to distinguish fields.
So could you have any suggestion for me? I need to export data via TOAD FOR ORACLE. And then import it to another database by the home page of ORACLE DATABASE 10G EXPRESS or sqlplus.
Thank you so much for your help!Dont use TOAD for exporting your data. Use PL/SQL. Below is the code given in Asktom.com that does what you want.
create or replace function dump_csv( p_query in varchar2,
p_separator in varchar2 default ',',
p_dir in varchar2 ,
p_filename in varchar2 )
return number
is
l_output utl_file.file_type;
l_theCursor integer default dbms_sql.open_cursor;
l_columnValue varchar2(2000);
l_status integer;
l_colCnt number default 0;
l_separator varchar2(10) default '';
l_cnt number default 0;
begin
l_output := utl_file.fopen( p_dir, p_filename, 'w' );
dbms_sql.parse( l_theCursor, p_query, dbms_sql.native );
for i in 1 .. 255 loop
begin
dbms_sql.define_column( l_theCursor, i, l_columnValue, 2000 );
l_colCnt := i;
exception
when others then
if ( sqlcode = -1007 ) then exit;
else
raise;
end if;
end;
end loop;
dbms_sql.define_column( l_theCursor, 1, l_columnValue, 2000 );
l_status := dbms_sql.execute(l_theCursor);
loop
exit when ( dbms_sql.fetch_rows(l_theCursor) <= 0 );
l_separator := '';
for i in 1 .. l_colCnt loop
dbms_sql.column_value( l_theCursor, i, l_columnValue );
utl_file.put( l_output, l_separator || l_columnValue );
l_separator := p_separator;
end loop;
utl_file.new_line( l_output );
l_cnt := l_cnt+1;
end loop;
dbms_sql.close_cursor(l_theCursor);
utl_file.fclose( l_output );
return l_cnt;
end dump_csv;
/Here is the link to this thread in asktom.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:95212348059 -
Export database from BerkeleyDB to Oracle Database
Hi,
Within the framework of some projetc, for creating reports, I need to export data from BerkeleyDB to Oracle database.
How can I do it ?Hello,
One way to export data from a Berkeley DB database into an Oracle DB table
is to use the OCI interface on the Oracle DB side and the C API on the Berkeley DB side. If you have access to "My Oracle Support" an example can be found in Note 797537.1.
Thanks,
Sandra -
Export data for domain data make wrong file
Hi!
If I try export data from table with column with type such as MDSYS.SDO_GEOMETRY in SQL developer (1.2.0 and 1.2.1.3213 both) result file will be with information like (for insert clause):
Insert into table_name (NUMB,GEOLOC) values (500949,'MDSYS.SDO_GEOMETRY');.
Also in previous version (1.2.0) when this column was shown in data window it was more informative:
MDSYS.SDO_GEOMETRY(2006, 262148, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1,95,2,1,109,2,1,133,2,1,157,2,1), MDSYS.SDO_ORDINATE_ARRAY(22847.57591,7216.21100000001,22842.04691,7217.2571,22841.44841,7218.00440000001,22843.39211,7228.31675000001,22844.13881,7232.35205000001,22845.63335,7239.52580000001,22845.63335,7240.27310000001,22845.03599,7240.72145000001,22826.05499,7244.15885000001,22814.39735,7246.10180000001,22809.01769,7246.84910000001,22807.67249,7246.40075000001,22802.44103,7222.33850000001,22799.19203,7213.03505000001,22795.8656525,7208.73815000001,22794.81386,7208.73200000001,22789.47752,7208.70080000001,22784.3570675,7209.03725000001,22758.6899675,7184.04095000001,22757.3447675,7183.59260000001,22751.9645375,7183.59245000001,22744.006055,7183.03205000001,22743.258785,7181.83640000001,22737.1684775,7181.35070000001,22736.7201725,7182.69575,22729.546295,7183.59245000001,22726.7066975,7186.58165000001,22725.9594275,7186.73105000001,22725.2121575,7186.43210000001,22723.11983,7184.56400000001,22722.29789,7184.48915000001,22721.55062,7186.28270000001,22721.326325,7186.80575000001,22717.515305,7191.36410000001,22715.7218,7193.68070000001,22710.1920875,7200.48080000001,22709.4448175,7206.90740000001,22709.370005,7214.15585000001,22709.74364,7214.52950000001,22711.6866275,7215.35150000001,22711.83611,7216.84610000001,22711.98545,7220.05925000001,22711.611815,7236.12560000001,22711.3876625,7247.63360000001,22711.4249975,7249.76345000001,22710.7523975,7250.95910000001,22710.0051275,7252.45355000001,22849.96763,7244.45780000001,22848.8559875,7243.04300000001,22848.32375,7242.36545000001,22849.51961,7243.41155000001,22848.8559875,7243.04300000001,22846.82921,7241.91710000001,22826.05499,7244.15885000001,22263.062285,7163.22935000001,22263.809555,7173.01865000001,22265.67773,7194.61475000001,22265.902025,7196.78180000001,22265.902025,7197.23015000001,22265.8272125,7197.37970000001,22265.304095,7197.97745000001,22217.9272625,7201.19075,22217.1799925,7201.56440000001,22216.8063575,7202.31170000001,22216.35791,7204.47875000001,22216.731545,7206.12275000001,22800.2381225,7220.28350000001,22798.3699475,7214.23070000001,22796.651255,7211.31620000001,22795.3061975,7209.82175000001,22794.9325625,7209.22385000001,22794.81386,7208.73200000001,22785.5170175,7170.21620000001,22777.3717175,7133.0768,22776.9234125,7130.76035000001,22775.727695,7125.90305000001,22774.6816025,7120.82150000001,22773.7100375,7115.81480000001,22774.53212,7109.98610000001,22774.4573075,7110.73340000001,22773.2617325,7111.70480000001,22773.1870625,7112.45210000001,22773.7100375,7115.81480000001,22773.11225,7113.87185000001,22767.95603,7108.93985000001))
when new one:
MDSYS.SDO_GEOMETRY
WBR,
SergeyI'm newbie here and not sure what you want exactly but.
First of all I've created table on Oracle 10G (10.2.0.3) Enterprise ed as follow:
CREATE TABLE tblnm
"MI_PRINX" NUMBER(11,0),
"GEOLOC" MDSYS.SDO_GEOMETRY,
CONSTRAINT RP_MAP_PK PRIMARY KEY (MI_PRINX)
INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
VALUES ('tblnm','GEOLOC',MDSYS.SDO_DIM_ARRAY(mdsys.sdo_dim_element('X', -100000.0, 185000.0, 1.425E-5), mdsys.sdo_dim_element('Y', -100000.0, 200000.0, 1.5E-5)),262148);
CREATE INDEX tblnm_SX ON tblnm (GEOLOC)
INDEXTYPE IS MDSYS.SPATIAL_INDEX;
insert into tblnm (MI_PRINX,GEOLOC) VALUES
(1,MDSYS.SDO_GEOMETRY(2001, 262148, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1), MDSYS.SDO_ORDINATE_ARRAY(6946.74932,9604.25675000001)));
After that I've export data from this table by SQLDeveloper:
as insert clause result was
-- INSERTING into TBLNM
Insert into TBLNM (MI_PRINX,GEOLOC) values (1,'MDSYS.SDO_GEOMETRY');
when I've try to import data (after delete) by this command i've got:
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected MDSYS.SDO_GEOMETRY got CHAR
for loader clause file looks like
LOAD DATA
INFILE *
Truncate
INTO TABLE "TBLNM"
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
(MI_PRINX,
GEOLOC)
begindata
"1","MDSYS.SDO_GEOMETRY"
and so one. Result file doesn't consist data for sdo_geometry column - only name of class.
Maybe you are looking for
-
I am having problems with Windows Media Player and have tried all suggested options to sort it out. It was installed on my laptop when I bought it in Sept 2012 and is now causing problems that I can't resolve. In checking the player defaults and trou
-
is the labview 8.2 compatible with FPGA (altera) thats ordering code is DK-DSP-3C120N ?
-
audio help
-
Jdev 10.1.3 ADF & jdk5.x support and toystore demo
Any target date for ADF support in 10.1.3? I need to learn ADF and was going to use 10.1.3. The below imports, among others, are unresolved. These are ADF right? Also, any jdk5.0 support date? My system Must be on 5.0 and stay on 5.0 import oracle.jb
-
Simple Servlet question, pls help
This is my form submission part in my jsp page <form name="updateForm" method="POST" action="/Update"> This is my web.xml <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN