External Table log file
I am using external table in my query and it works fine, just I want to create log file or bad file if any in different folder currently it create in same folder where data file (CSV) exists.
create or replace directory data_dir as 'c:\temp\'
You can specify one or many of the following options:
NOBADFILE NODISCARDFILE NOLOGFILEIn the ACCESS PARAMETERS portion of your table definition.
Hope this helps!
Similar Messages
-
Oracle 11g - External Table/Remote File Issue?
Oracle 11g - External Table/Remote File Issue?
=============================
I hope this is the right forum for this issue, if not let me, where to go.
We are using Oracle 11g (11.2.0.1.0) on (Platform : solaris[tm] oe (64-bit)), Sql Developer 3.0.04
We are not allowed to put files on the CSV file system (Server A), where DB instance is running. We are able place CSV files on another server(Server B), where DB instance is not running.
We are trying to use oracle external table to load text files in .CSV format.
How do we create a Directory (Create Directory) on Server A DB to point to File system of Server B?
Is it feasible?
Any idea?
Thanks in helping.The Solaris DBA should be able to mount the filesystem for you. Either that or you have to get creative transferring the file like this;
http://www.linkedin.com/groups/Getting-creative-external-table-preprocessor-140609.S.50474382?qid=ba673ce4-c4bb-40c5-8367-52bd2a2dfc80&trk=group_search_item_list-0-b-ttl&goback=%2Egmp_140609
Cheers
David -
External table log and bad files
Hi, i have defined the following access parameters for my external table and set REJECT LIMIT to 0:
ACCESS PARAMETERS
RECORDS DELIMITED by NEWLINE
BADFILE BAD_DIR:'CARDS.bad'
LOGFILE LOG_DIR:'CARDS.log'
NODISCARDFILE
FIELDS TERMINATED BY ","
OPTIONALLY ENCLOSED BY '"'
READSIZE 1048576
LRTRIM
MISSING FIELD VALUES ARE NULL
REJECT ROWS WITH ALL NULL FIELDS
I want to know everytime i query the external table, my log file and bad file will be overwritten or appended? i want them to be overwritten.Hi,
Yeah, well, be in for a surprise here:
"The external tables feature is a complement to existing SQL*Loader functionality."
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/utility.htm#sthref1800
http://www.oracle.com/pls/db102/search?remark=quick_search&word=external+table&tab_id=&format=ranked
Have you actually read/tried anything?
You can download an XE DB for free and play with that. -
External table logs not as detailed as sqlldr logs
Hi,
I've been using external tables in my CSV utility but I found that the log file generated is not as detailed as when I used sqlldr to upload csv files. For example, I can't find the following:
- Total logical records skipped
- Total logical records read
- Total logical records rejected
- Total logical records discarded
Also, in sqlldr log, for each rejected record, there is a reason specified, but for external table, I can only find the rejected record in .bad file and no reasons can be found in the log file.
Are there any options I can turn on for external tables to get these data? I need to show them to user after the data upload. Many thanks!!!Have you followed theses instructions?
http://dataintegrity.wordpress.com/2009/10/16/xlsx/
Can you show us the file's format?
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Network location for external table's file
Hi,
I am trying to import data from a csv file in oracle 10g database. I can successfully upload data from a csv file located on server itself using external table. But when I redefine directory object on a folder on network location, it doesn't work. Is that a limitation with external tables to access data from a file on network location.
Any clarifications and suggestions would be highly appreciated.
Thanks,
AniketHi Nicolas,
I created a directory object pointing to a folder on a system(Other than Oracle 10g server) in the network. This folder is shared and can be accessed from the Oracle 10g server. When I create an external table with the default directory as the shared folder it couldn't read the csv file from that folder ( Shared folder on another system).
But when I redefined the directory object on a local folder which was on Oracle 10g server, it could read from csv file in the local folder using external table.
My understanding is using external tables, one can only read files that are on the local machine i.e. Oracle 10g server and not on a different system.
Please correct me if i am wrong. Any further suggestions would be highly appreciated.
Regads,
Aniket -
SQL Developer 1.1 Doesn't escape or check external tool titles for characters that cant be used in filenames.
For example, on Windows, define a tool titled SQL*Plus. When you try to start it, you get a message saying that the file log_dir\SQL*Plus_date_and_time can't be created.
I hope I'm not reporting a known issue, but I don't have access to metalink, and didn't see this in the forms already.
WKHi Will,
Thanks for the report. This is indeed a previously unreported bug. I have filed it in our bug database as #5725824.
The bug only occurs when you have the "Save Logs to File" option checked on the Environment/Log page in preferences. The workaround is to disable this option, or to change the name of the tool so that it does not contain illegal characters.
Thanks,
Brian -
Getting the error LOG file opened at 01/29/07 18:13:12 while selecting from
I am getting following error in log file while selecting from a external table
LOG file opened at 01/29/07 18:13:12
KUP-04040: file test.csv in UTL not found. I am follwoing the following steps:
connect as sys user :
CREATE OR REPLACE DIRECTORY UTL as 'D:\oracle\product\10.1.0';
GRANT READ,write ON DIRECTORY UTL TO user1;
connect as user1
drop table test;
create table test (EQP_N_EQUIPMETID_PK number(10) ,
EQPNAME varchar2(100),
EQPDESCR varchar2(1000),
COSSEC varchar2(10),
ETSCES varchar2(10),
CATPARTNO varchar(1000),
EQUIPMETID_FK number(10),
EQPTYPEMASTERID_FK number(10),
SECTIONID_FK number(10),
MEAUNITID_FK number(10),
CREATEDBY number(10),
MODIFIEDBY number(10),
LASTUPDATED varchar2(20),
SHUFFLING varchar2(50))
ORGANIZATION EXTERNAL
(TYPE oracle_loader
DEFAULT DIRECTORY utl
ACCESS PARAMETERS (FIELDS TERMINATED BY ',')
LOCATION ('test.csv'))
REJECT LIMIT UNLIMITED
On issuing select count(*) from test gives following error:
SQL> select count(*) from test;
select count(*) from test
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file test.csv in UTL not found
ORA-06512: at "SYS.ORACLE_LOADER", line 19
ORA-06512: at line 1
All these steps I have tried on the oracle server as well as on the client m/c.
Is there any step that I am missing out???hi,
SQL> edit c:\oracle\product\10.1.0\test.csv
SQL> conn sys as sysdba
Enter password:
Connected.
SQL> create or replace directory UTL as 'c:\oracle\product\10.1.0';
Directory created.
SQL> grant read,write on directory UTL to scott;
Grant succeeded.
SQL> create table scott.test ( no number(10),
2 name varchar2(20))
3 organization external
4 ( type oracle_loader
5 default directory UTL
6 access parameters
( fields terminated by ',')
7 location
('test.csv'))
8 reject limit unlimited;
Table created.
SQL> select count(*) from scott.test;
COUNT(*)
1
SQL> select * from scott.test;
NO NAME
1 test
SQL>it is working for me. again check your file location.
regards
Taj
Message was edited by:
M. Taj -
DATE fields and LOG files in context with external tables
I am facing two problems when dealing with the external tables feature in Oracle 9i.
I created an External Table with some fileds with the DATE data type . There were no issues during the creation part. But when i query the table, the DATE fields are not properly selected though the data is there in the files. Is there any ideas to deal with this ?
My next question is regarding the log files. The contents in the log file seems to be growing when querying the external tables. Is there a way to control this behaviour?
Suggestions / Advices on the above two issues are welcome.
Thanks
LakshminarayananHi
If you have date datatypes than:
select
greatest(TABCASER1.CASERRECIEVEDDATE, EVCASERS.FINALEVDATES, EVCASERS.PUBLICATIONDATE, EVCASERS.PUBLICATIONDATE, TABCASER.COMPAREACCEPDATE)
from TABCASER, TABCASER1, EVCASERS
where ...-- join and other conditions
1. greatest is good enough
2. to_date creates date dataype from string with the format of format string ('mm/dd/yyyy')
3. decode(a, b, c, d) is a function: if a = b than return c else d. NULL means that there is no data in the cell of the table.
6. to format the date for display use to_char function with format modell as in the to_date function.
Ott Karesz
http://www.trendo-kft.hu -
Avoid creation of log file for external table
Hi
This script is creating log file in the ext directory. How to avoid it. Can you specify the syntex.
Thanks alot.
Bhaskar
CREATE TABLE datfiles_list
(file_name varchar2(255))
ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY ext_dir
ACCESS PARAMETERS (RECORDS DELIMITED BY NEWLINE)
LOCATION ('datfiles_list.txt')
);Example
CREATE TABLE datfiles_list
(file_name varchar2(255))
ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY ext_dir
ACCESS PARAMETERS (RECORDS DELIMITED BY NEWLINE NOLOGFILE)
LOCATION ('datfiles_list.txt')
); -
Hi,
I have created an external table. And it has been run successfully. When i view the log file i am not able to find out the counts like
no of records loaded,
no of records rejected.
Kindly advice me on this.
Cheers
Ramkannan.AHi,
ORGANIZATION EXTERNAL
( type oracle_loader
default directory PARAGON_FEED_DIR
access parameters
records delimited by newline skip 1
BADFILE PARAGON_FEED_LOG:'pgon_mapunmap.bad'
LOGFILE PARAGON_FEED_LOG:'pgon_mapunmap.log'
date_cache = 650000
STRING SIZES ARE IN CHARACTERS
CHARACTERSET = WE8ISO8859P1
fields terminated by "," OPTIONALLY ENCLOSED BY '"' LDRTRIM
missing field values are null
In the Log file
Field Definitions for table PGON_MAPUNMAP_LOAD
Record format DELIMITED BY NEWLINE
Data in file has same endianness as the platform
Rows with all null fields are accepted
Fields in Data Source:
SOURCESYSTEMNAME CHAR (255)
Terminated by ","
Enclosed by """ and """
Trim whitespace same as SQL Loader
SOURCESYSTEMLOCATION CHAR (255)
Terminated by ","
Enclosed by """ and """
Trim whitespace same as SQL Loader
SOURCEID CHAR (255)
Terminated by ","
Enclosed by """ and """
Trim whitespace same as SQL Loader
SOURCESHORT CHAR (255)
Terminated by ","
Enclosed by """ and """
Trim whitespace same as SQL Loader
SOURCELEGAL CHAR (255)
Terminated by ","
Enclosed by """ and """
Trim whitespace same as SQL Loader
SOURCECOUNTRY CHAR (255)
Terminated by ","
Enclosed by """ and """
Trim whitespace same as SQL Loader
ORGID CHAR (255)
Terminated by ","
Enclosed by """ and """
Trim whitespace same as SQL Loader
ORGSHORT CHAR (255)
I want to know how many records are loaded & how many records are rejected in Log file.
But i am not able to see that -
How to overwrite a log and bad file in external table in oracle 10g
Hi,
I have used external table in oracle 10g.whenever use select query in external table orace internally create one log file in specified directory,
but this log file is growing.How can i overwrite the log file(old to replace with new).I need overwrite a log and bad file in external table.
kindly give the solutions.
By
SivaI don't believe that is possible with the LOGFILE clause, but it may be with the BADFILE clause. Here is an excerpt from the documentation :
The LOGFILE clause names the file that contains messages generated by the external tables utility while it was accessing data in the datafile. If a log file already exists by the same name, the access driver reopens that log file and appends new log information to the end. This is different from bad files and discard files, which overwrite any existing file. NOLOGFILE is used to prevent creation of a log file.
If you specify LOGFILE, you must specify a filename or you will receive an error.
If neither LOGFILE nor NOLOGFILE is specified, the default is to create a log file. The name of the file will be the table name followed by _%p and it will have an extension of .log. -
Hi
I am trying to craete an external table and then select the data from the table. However I am getting error while trying to select the data from external table.
SQL>CREATE OR REPLACE DIRECTORY my_dir as 'C:\arun';
Directory created.
SQL>GRANT ALL ON DIRECTORY my_dir TO PUBLIC;
Grant succeeded.
SQL>DROP TABLE proj_checklists_external;
Table dropped.
SQL>CREATE TABLE proj_checklists_external
2 ( checklist_submission_id NUMBER
3 ,Lead_reviewer_name VARCHAR2(30)
4 ,Lead_reviewer_corp_id VARCHAR2(10)
5 ,creation_date VARCHAR2(10)
6 ,submitted_dater VARCHAR2(10)
7 ,approved_date VARCHAR2(10)
8 ,status VARCHAR2(50)
9 )
10 ORGANIZATION EXTERNAL
11 (
12 TYPE ORACLE_LOADER
13 DEFAULT DIRECTORY my_dir
14 ACCESS PARAMETERS
15 (
16 RECORDS DELIMITED BY NEWLINE
17 FIELDS TERMINATED BY ','
18 )
19 LOCATION ('Book1.txt')
20 )
21 PARALLEL 5
22 REJECT LIMIT 200;
Table created.
SQL>SELECT * FROM proj_checklists_external;
SELECT * FROM proj_checklists_external
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04063: unable to open log file PROJ_CHECKLISTS_EXTERNAL_28484.log
OS error No such file or directory
ORA-06512: at "SYS.ORACLE_LOADER", line 14
ORA-06512: at line 1
I craeted an file PROJ_CHECKLISTS_EXTERNAL_28484.log also in C:\arun and then tried to select but still got same error.
Any idea how to overcome this error.
Regards
Arunhere you go:
SQL> CREATE OR REPLACE DIRECTORY GRATIS_LOAD as 'D:\AdvSourceData\Membership\';
Directory created
SQL> GRANT ALL ON DIRECTORY GRATIS_LOAD to ADVROLE;
Grant succeeded
SQL>
SQL> DROP TABLE MEMB_BATCH_LOAD_ID;
Table dropped
SQL> CREATE TABLE MEMB_BATCH_LOAD_ID (
2 ID_NUMBER VARCHAR2(10),
3 STATUS CHAR(1)
4 )
5 ORGANIZATION EXTERNAL
6 ( TYPE ORACLE_LOADER
7 DEFAULT DIRECTORY GRATIS_LOAD
8 ACCESS PARAMETERS
9 ( records delimited by NEWLINE
10 fields (
11 ID_NUMBER POSITION (1:10) CHAR,
12 STATUS POSITION (11:1) CHAR
13 )
14 )
15 LOCATION
16 ( 'GRATISID.TXT'
17 )
18 );
Table created
SQL> select * from memb_batch_load_id;
select * from memb_batch_load_id
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04063: unable to open log file MEMB_BATCH_LOAD_ID_1388_5552.log
OS error The system cannot find the file specified.
ORA-06512: at "SYS.ORACLE_LOADER", line 14
ORA-06512: at line 1
SQL> -
How to interpret External Table's log file ?
Hello All,
Env: Oracle 10.2.0.4 on Solaris 10.
I have a csv file and need to use the extenal table to load the data.
The data is from Microsoft Active Dir and the fields are quite big.
Since there is no table to upload, i created a table with 283 cols with varchar2(4000), 'coz i do not
not how big each records are. The file has 8039 records and and could load only 7600.
Googled and checked documentation and found no details on how to interpret the log file for missing records or what caused.
LOG\343\203\225\343\202\241\343\202\244\343\203\253\343\201\21408/10/09 16:55:56\343\201\247\343\202\252\343\203\274\343\203\227\343\203\26
3\343\201\225\343\202\214\343\201\276\343\201\227\343\201\237
\350\241\250A1\343\201\256\343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\345\256\232\347\276\251
\343\203\254\343\202\263\343\203\274\343\203\211\343\203\273\343\203\225\343\202\251\343\203\274\343\203\236\343\203\203\343\203\210DELIM
ITED BY NEWLINE
\343\203\225\343\202\241\343\202\244\343\203\253\345\206\205\343\201\256\343\203\207\343\203\274\343\202\277\343\201\257\343\203\227\343\
203\251\343\203\203\343\203\210\343\203\225\343\202\251\343\203\274\343\203\240\343\201\250\345\220\214\343\201\230endianness\343\201\247\3
43\201\231
\343\201\231\343\201\271\343\201\246\343\201\256\343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\201\214NULL\343\201\247\
343\201\202\343\202\213\350\241\214\343\201\214\345\217\227\345\205\245\343\202\214\343\202\211\343\202\214\343\201\276\343\201\227\343\201
\237
\343\203\207\343\203\274\343\202\277\343\203\273\343\202\275\343\203\274\343\202\271\343\201\256\343\203\225\343\202\243\343\203\274\343\
203\253\343\203\211:
DN CHAR (4000)
","\343\201\247\347\265\202\344\272\206\343\201\227\343\201\276\343\201\231
"""\343\201\250"""\343\201\247\345\233\262\343\201\276\343\202\214\343\201\246\343\201\204\343\201\276\343\201\231
SQL Loader\343\201\250\345\220\214\346\247\230\343\201\253\347\251\272\347\231\275\343\202\222\345\210\207\343\202\212\346\215\250\34
3\201\246\343\201\276\343\201\231
OBJECTCLASS CHAR (4000)
","\343\201\247\347\265\202\344\272\206\343\201\227\343\201\276\343\201\231
"""\343\201\250"""\343\201\247\345\233\262\343\201\276\343\202\214\343\201\246\343\201\204\343\201\276\343\201\231
SQL Loader\343\201\250\345\220\214\346\247\230\343\201\253\347\251\272\347\231\275\343\202\222\345\210\207\343\202\212\346\215\250\34
3\201\246\343\201\276\343\201\231
DISTINGUISHEDNAME CHAR (4000)
","\343\201\247\347\265\202\344\272\206\343\201\227\343\201\276\343\201\231
"""\343\201\250"""\343\201\247\345\233\262\343\201\276\343\202\214\343\201\246\343\201\204\343\201\276\343\201\231
SQL Loader\343\201\250\345\220\214\346\247\230\343\201\253\347\251\272\347\231\275\343\202\222\345\210\207\343\202\212\346\215\250\34
3\201\246\343\201\276\343\201\231
KUP-04026: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\201\214\343\203\207\343\203\274\343\202\277\345\236\213\343\201
\253\345\257\276\343\201\227\343\201\246\351\225\267\343\201\231\343\201\216\343\201\276\343\201\231\343\200\202
KUP-04101: \343\203\254\343\202\263\343\203\274\343\203\2111686\343\201\214\343\203\225\343\202\241\343\202\244\343\203\253/u01/app/oracle/
product/10.2.0/db_1/work/csvdeResult.csv\343\201\247\346\213\222\345\220\246\343\201\225\343\202\214\343\201\276\343\201\227\343\201\237
KUP-04021: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211MEMBEROF\343\201\256\343\203\225\343\202\243\343\203\274\343\203\253
\343\203\211\343\203\273\343\203\225\343\202\251\343\203\274\343\203\236\343\203\203\343\203\210\343\203\273\343\202\250\343\203\251\343\20
3\274
KUP-04026: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\201\214\343\203\207\343\203\274\343\202\277\345\236\213\343\201
\253\345\257\276\343\201\227\343\201\246\351\225\267\343\201\231\343\201\216\343\201\276\343\201\231\343\200\202
KUP-04101: \343\203\254\343\202\263\343\203\274\343\203\2111708\343\201\214\343\203\225\343\202\241\343\202\244\343\203\253/u01/app/oracle/
product/10.2.0/db_1/work/csvdeResult.csv\343\201\247\346\213\222\345\220\246\343\201\225\343\202\214\343\201\276\343\201\227\343\201\237
KUP-04021: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211USERCERTIFICATE\343\201\256\343\203\225\343\202\243\343\203\274\343\
203\253\343\203\211\343\203\273\343\203\225\343\202\251\343\203\274\343\203\236\343\203\203\343\203\210\343\203\273\343\202\250\343\203\251
\343\203\274
KUP-04026: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\201\214\343\203\207\343\203\274\343\202\277\345\236\213\343\201
\253\345\257\276\343\201\227\343\201\246\351\225\267\343\201\231\343\201\216\343\201\276\343\201\231\343\200\202
KUP-04101: \343\203\254\343\202\263\343\203\274\343\203\2111709\343\201\214\343\203\225\343\202\241\343\202\244\343\203\253/u01/app/oracle/
product/10.2.0/db_1/work/csvdeResult.csv\343\201\247\346\213\222\345\220\246\343\201\225\343\202\214\343\201\276\343\201\227\343\201\237
KUP-04021: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211USERCERTIFICATE\343\201\256\343\203\225\343\202\243\343\203\274\343\
203\253\343\203\211\343\203\273\343\203\225\343\202\251\343\203\274\343\203\236\343\203\203\343\203\210\343\203\273\343\202\250\343\203\251
\343\203\274
KUP-04026: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\201\214\343\203\207\343\203\274\343\202\277\345\236\213\343\201
\253\345\257\276\343\201\227\343\201\246\351\225\267\343\201\231\343\201\216\343\201\276\343\201\231\343\200\202
KUP-04101: \343\203\254\343\202\263\343\203\274\343\203\2111710\343\201\214\343\203\225\343\202\241\343\202\244\343\203\253/u01/app/oracle/
product/10.2.0/db_1/work/csvdeResult.csv\343\201\247\346\213\222\345\220\246\343\201\225\343\202\214\343\201\276\343\201\227\343\201\237
KUP-04021: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211USERCERTIFICATE\343\201\256\343\203\225\343\202\243\343\203\274\343\
203\253\343\203\211\343\203\273\343\203\225\343\202\251\343\203\274\343\203\236\343\203\203\343\203\210\343\203\273\343\202\250\343\203\251
\343\203\274
KUP-04026: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\201\214\343\203\207\343\203\274\343\202\277\345\236\213\343\201
\253\345\257\276\343\201\227\343\201\246\351\225\267\343\201\231\343\201\216\343\201\276\343\201\231\343\200\202
KUP-04101: \343\203\254\343\202\263\343\203\274\343\203\2111715\343\201\214\343\203\225\343\202\241\343\202\244\343\203\253/u01/app/oracle/
product/10.2.0/db_1/work/csvdeResult.csv\343\201\247\346\213\222\345\220\246\343\201\225\343\202\214\343\201\276\343\201\227\343\201\237
KUP-04021: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211MEMBEROF\343\201\256\343\203\225\343\202\243\343\203\274\343\203\253
\343\203\211\343\203\273\343\203\225\343\202\251\343\203\274\343\203\236\343\203\203\343\203\210\343\203\273\343\202\250\343\203\251\343\20
3\274
KUP-04026: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\201\214\343\203\207\343\203\274\343\202\277\345\236\213\343\201
\253\345\257\276\343\201\227\343\201\246\351\225\267\343\201\231\343\201\216\343\201\276\343\201\231\343\200\202
KUP-04101: \343\203\254\343\202\263\343\203\274\343\203\2111717\343\201\214\343\203\225\343\202\241\343\202\244\343\203\253/u01/app/oracle/
product/10.2.0/db_1/work/csvdeResult.csv\343\201\247\346\213\222\345\220\246\343\201\225\343\202\214\343\201\276\343\201\227\343\201\237
KUP-04021: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211USERCERTIFICATE\343\201\256\343\203\225\343\202\243\343\203\274\343\
203\253\343\203\211\343\203\273\343\203\225\343\202\251\343\203\274\343\203\236\343\203\203\343\203\210\343\203\273\343\202\250\343\203\251
\343\203\274
:Above is an extract of the log file.
Could someone shed some light on how to interpret it ?
or any links would be sufficient.
TIA,
JJHello,
I have already tried with CLOB and could see only 2600 records where as when the cols where varchar2(4000) i could get 7680 rows.
@Franky:
Is KUP equal to ORA- errors ?
Is there any lookup tool ?
I could not see any formatted error description in the log file.
This is the beginning of the KUP errors in the log file. REPSFROM is a col. How do i know for which row it has failed ?
KUP-04021: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211REPSFROM\343\201\256\343\203\225\343\202\243\343\203\274\343\203\253
\343\203\211\343\203\273\343\203\225\343\202\251\343\203\274\343\203\236\343\203\203\343\203\210\343\203\273\343\202\250\343\203\251\343\20
3\274
KUP-04026: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\201\214\343\203\207\343\203\274\343\202\277\345\236\213\343\201
\253\345\257\276\343\201\227\343\201\246\351\225\267\343\201\231\343\201\216\343\201\276\343\201\231\343\200\202
KUP-04101: \343\203\254\343\202\263\343\203\274\343\203\2112\343\201\214\343\203\225\343\202\241\343\202\244\343\203\253/u01/app/oracle/pro
duct/10.2.0/db_1/work/csvdeResult.csv\343\201\247\346\213\222\345\220\246\343\201\225\343\202\214\343\201\276\343\201\227\343\201\237
KUP-04021: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211MEMBEROF\343\201\256\343\203\225\343\202\243\343\203\274\343\203\253
\343\203\211\343\203\273\343\203\225\343\202\251\343\203\274\343\203\236\343\203\203\343\203\210\343\203\273\343\202\250\343\203\251\343\20
3\274
KUP-04026: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\201\214\343\203\207\343\203\274\343\202\277\345\236\213\343\201
\253\345\257\276\343\201\227\343\201\246\351\225\267\343\201\231\343\201\216\343\201\276\343\201\231\343\200\202
KUP-04101: \343\203\254\343\202\263\343\203\274\343\203\211508\343\201\214\343\203\225\343\202\241\343\202\244\343\203\253/u01/app/oracle/p
roduct/10.2.0/db_1/work/csvdeResult.csv\343\201\247\346\213\222\345\220\246\343\201\225\343\202\214\343\201\276\343\201\227\343\201\237
KUP-04021: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211MEMBEROF\343\201\256\343\203\225\343\202\243\343\203\274\343\203\253
\343\203\211\343\203\273\343\203\225\343\202\251\343\203\274\343\203\236\343\203\203\343\203\210\343\203\273\343\202\250\343\203\251\343\20
3\274
KUP-04026: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\201\214\343\203\207\343\203\274\343\202\277\345\236\213\343\201
\253\345\257\276\343\201\227\343\201\246\351\225\267\343\201\231\343\201\216\343\201\276\343\201\231\343\200\202
KUP-04101: \343\203\254\343\202\263\343\203\274\343\203\211509\343\201\214\343\203\225\343\202\241\343\202\244\343\203\253/u01/app/oracle/p
roduct/10.2.0/db_1/work/csvdeResult.csv\343\201\247\346\213\222\345\220\246\343\201\225\343\202\214\343\201\276\343\201\227\343\201\237
KUP-04021: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211MEMBEROF\343\201\256\343\203\225\343\202\243\343\203\274\343\203\253
\343\203\211\343\203\273\343\203\225\343\202\251\343\203\274\343\203\236\343\203\203\343\203\210\343\203\273\343\202\250\343\203\251\343\20
3\274
KUP-04026: \343\203\225\343\202\243\343\203\274\343\203\253\343\203\211\343\201\214\343\203\207\343\203\274\343\202\277\345\236\213\343\201
\253\345\257\276\343\201\227\343\201\246\351\225\267\343\201\231\343\201\216\343\201\276\343\201\231\343\200\202
[pre]
TIA,
J J -
How to import external table, which exist in export dump file.
My export dump file has one external table. While i stated importing into my developement instance , I am getting the error "ORA-00911: invalid character".
The original definition of the extenal table is as given below
CREATE TABLE EXT_TABLE_EV02_PRICEMARTDATA
EGORDERNUMBER VARCHAR2(255 BYTE),
EGINVOICENUMBER VARCHAR2(255 BYTE),
EGLINEITEMNUMBER VARCHAR2(255 BYTE),
EGUID VARCHAR2(255 BYTE),
EGBRAND VARCHAR2(255 BYTE),
EGPRODUCTLINE VARCHAR2(255 BYTE),
EGPRODUCTGROUP VARCHAR2(255 BYTE),
EGPRODUCTSUBGROUP VARCHAR2(255 BYTE),
EGMARKETCLASS VARCHAR2(255 BYTE),
EGSKU VARCHAR2(255 BYTE),
EGDISCOUNTGROUP VARCHAR2(255 BYTE),
EGREGION VARCHAR2(255 BYTE),
EGAREA VARCHAR2(255 BYTE),
EGSALESREP VARCHAR2(255 BYTE),
EGDISTRIBUTORCODE VARCHAR2(255 BYTE),
EGDISTRIBUTOR VARCHAR2(255 BYTE),
EGECMTIER VARCHAR2(255 BYTE),
EGECM VARCHAR2(255 BYTE),
EGSOLATIER VARCHAR2(255 BYTE),
EGSOLA VARCHAR2(255 BYTE),
EGTRANSACTIONTYPE VARCHAR2(255 BYTE),
EGQUOTENUMBER VARCHAR2(255 BYTE),
EGACCOUNTTYPE VARCHAR2(255 BYTE),
EGFINANCIALENTITY VARCHAR2(255 BYTE),
C25 VARCHAR2(255 BYTE),
EGFINANCIALENTITYCODE VARCHAR2(255 BYTE),
C27 VARCHAR2(255 BYTE),
EGBUYINGGROUP VARCHAR2(255 BYTE),
QTY NUMBER,
EGTRXDATE DATE,
EGLISTPRICE NUMBER,
EGUOM NUMBER,
EGUNITLISTPRICE NUMBER,
EGMULTIPLIER NUMBER,
EGUNITDISCOUNT NUMBER,
EGCUSTOMERNETPRICE NUMBER,
EGFREIGHTOUTBOUNDCHARGES NUMBER,
EGMINIMUMORDERCHARGES NUMBER,
EGRESTOCKINGCHARGES NUMBER,
EGINVOICEPRICE NUMBER,
EGCOMMISSIONS NUMBER,
EGCASHDISCOUNTS NUMBER,
EGBUYINGGROUPREBATES NUMBER,
EGINCENTIVEREBATES NUMBER,
EGRETURNS NUMBER,
EGOTHERCREDITS NUMBER,
EGCOOP NUMBER,
EGPOCKETPRICE NUMBER,
EGFREIGHTCOSTS NUMBER,
EGJOURNALBILLINGCOSTS NUMBER,
EGMINIMUMORDERCOSTS NUMBER,
EGORDERENTRYCOSTS NUMBER,
EGRESTOCKINGCOSTSWAREHOUSE NUMBER,
EGRETURNSCOSTADMIN NUMBER,
EGMATERIALCOSTS NUMBER,
EGLABORCOSTS NUMBER,
EGOVERHEADCOSTS NUMBER,
EGPRICEADMINISTRATIONCOSTS NUMBER,
EGSHORTPAYMENTCOSTS NUMBER,
EGTERMCOSTS NUMBER,
EGPOCKETMARGIN NUMBER,
EGPOCKETMARGINGP NUMBER,
EGWEIGHTEDAVEMULTIPLIER NUMBER
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY EV02_PRICEMARTDATA_CSV_CON
ACCESS PARAMETERS
LOCATION (EV02_PRICEMARTDATA_CSV_CON:'VPA.csv')
REJECT LIMIT UNLIMITED
NOPARALLEL
NOMONITORING;
While importing , when i seen the log file , it is failing the create the external table. Getting the error "ORA-00911: invalid character".
Can some one suggest how to import external tables
Addressing this issue will be highly appriciated.
NaveenHi Srinath,
When i observed the create table syntax of external table from import dump log file, it show few lines as below. I could not understand these special characters. And create table definationis failing with special character viz ORA-00911: invalid character
ACCESS PARAMETERS
LOCATION (EV02_PRICEMARTDATA_CSV_CON:'VPA.csv').
I even observed the create table DDL from TOAD. It is same as i mentioned earlier
Naveen -
How to read specific lines from a text file using external table or any other method?
Hi,
I have a text file with delimited data, I have to pick only odd number rows and load into a table...
Ex:
row1: 1,2,2,3,3,34,4,4,4,5,5,5,,,5 ( have to load only this row)
row2: 8,9,878,78,657,575,7,5,,,7,7
Hope this is enough..
I am using Oracle 11.2.0 version...
ThanksThere are various ways to do this. I would be inclined to use SQL*Loader. That way you can load it from the client or the server and you can use a SQL*Loader sequence to preserve the row order in the text file. I would load the whole row as a varray into a staging table, then use the TABLE and MOD functions to load the individual numbers from only the odd rows. Please see the demonstration below.
SCOTT@orcl12c> HOST TYPE text_file.csv
1,2,2,3,3,34,4,4,4,5,5,5,,,5
8,9,878,78,657,575,7,5,,,7,7
101,201
102,202
SCOTT@orcl12c> HOST TYPE test.ctl
LOAD DATA
INFILE text_file.csv
INTO TABLE staging
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
(whole_row VARRAY TERMINATED BY '/n' (x INTEGER EXTERNAL),
rn SEQUENCE)
SCOTT@orcl12c> CREATE TABLE staging
2 (rn NUMBER,
3 whole_row SYS.OdciNumberList)
4 /
Table created.
SCOTT@orcl12c> HOST SQLLDR scott/tiger CONTROL=test.ctl LOG=test.log
SQL*Loader: Release 12.1.0.1.0 - Production on Tue Aug 27 13:48:37 2013
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Path used: Conventional
Commit point reached - logical record count 4
Table STAGING:
4 Rows successfully loaded.
Check the log file:
test.log
for more information about the load.
SCOTT@orcl12c> CREATE TABLE a_table
2 (rn NUMBER,
3 data NUMBER)
4 /
Table created.
SCOTT@orcl12c> INSERT INTO a_table (rn, data)
2 SELECT s.rn,
3 t.COLUMN_VALUE data
4 FROM staging s,
5 TABLE (s.whole_row) t
6 WHERE MOD (rn, 2) != 0
7 /
17 rows created.
SCOTT@orcl12c> SELECT * FROM a_table
2 /
RN DATA
1 1
1 2
1 2
1 3
1 3
1 34
1 4
1 4
1 4
1 5
1 5
1 5
1
1
1 5
3 101
3 201
17 rows selected.
Maybe you are looking for
-
IPod Touch: charging with Windows 2000 SP3?
Hello, I've got an iPod Touch 2nd generation, and I'm a mac user. At work, I have a Windows 2000 PC, Service Pack 3. I wanted to use this windows machine to charge (with USB) my Touch, but it didn't work directly. So I tried to download iTunes, but i
-
Can I fix a disk with this message? Disk Utility can't repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.
-
EHSM - Create Vendor - error: 'Could not find a document for the given key'
Dear all, In the Chemical Approval Process I have attached a SDS document to the Approval Request. You can assign a Vendor to the SDS. As there are no (EHSM) Vendors currently available in the system I would like to create a new (EHSM) Vendor by clic
-
Edit "Copy From button" on A/R Invoice
Hi I've added two extra Forms "Loading" & "Unloading" under A/R Invoice . This is not the problem. The problem is--- I want to get the "Copy from Unloading" dropdown after clicking the Copy From button on A/R Invoice Form. Rgds Subrata
-
Nhi guru's cross apps what is basic type,idoc type , message type
nhi guru's cross apps what is basic type,idoc type , message type plz help me i am larning how to work on idocs using ale explain me like realtime environment