Problem accessing external table
Hello,
When trying to access an external table, we're getting the following error.
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
ORA-01891: Datetime/Interval internal error
ORA-06512: at "SYS.ORACLE_DATAPUMP", line 19
Any recommendations?
Thanks
Metalink says
Error: ORA-1891
Text: Datetime/Interval internal error
Cause: Internal error.
Action: Please contact Oracle Worldwide Support.
Can't find any other solution
Similar Messages
-
Unix permission problem for external table in oracle 10g, sun solaris
Hello All,
I'm facing a problem in accessing external table which has stumped me a bit.
What I'm looking for is to use a external table with restricted permission to Others(770) on unix.
Would appreciate if someone helps me out here.
Here are the steps:
1.create directory ext_tab_dir1 as '/home/ravi/test'
2.grant read,write on directory ext_tab_dir1 to scott
3.CREATE TABLE scott.emp_load1(employee_number CHAR(5))
ORGANIZATION EXTERNAL (
type oracle_loader
default directory ext_tab_dir1
access parameters (
records delimited by newline
fields terminated by ' '
optionally enclosed by '"'
missing field values are null
location ('info.dat')
Now I have added unix user oracle to unix group myDbGroup and provided myDbGroup read/write/exec permission on directory /home/ravi/test.
info.dat has been placed in /home/ravi/test.
#pwd
/home/ravi
#ls -l
drwxrwx--- 2 ravi myDbGroup 512 Mar 7 17:35 test
I have manually logged in as user oracle and successfully created a sample file in /home/ravi/test.
-rwxrwx--- 1 ravi myDbGroup 13 Mar 7 17:33 info.dat
-rw-r--r-- 1 oracle oinstall 0 Mar 7 18:05 sampleFile
I then connect to the db using sqlplus as ravi and do a
#select * from scott.emp_load1
I get the following error
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04063: unable to open log file emp_load1_18567.log
OS error Permission denied
ORA-06512: at "SYS.ORACLE_LOADER", line 19
After this, I gave full permission to /home/ravi/test
drwxrwxrwx 2 ravi myDbGroup 512 Mar 7 17:35 test
#select * from scott.emp_load1
And this was successful.
It created a log file in /home/ravi/test
-rwxrwx--- 1 ravi myDbGroup 13 Mar 7 17:33 info.dat
-rw-r--r-- 1 oracle oinstall 0 Mar 7 18:05 sampleFile
-rw-r--r-- 1 oracle oinstall 0 Mar 7 18:05 emp_load1_18567.log
Now what stumped me is the owner and group owner of the file emp_load1_18567.log.
It is same as the sampleFile which I created manually!!
From this it can be deducted oracle is not using user id oracle while reading/writing to the unix directory but somehow assigning user id oracle as owner to the log file at the end.
If someone has encountered this problem earlier or has some info about this...pls share.
Regards,
RavinandanThanks for the reply.
I have earlier checked this with NOLOGFILE option.
But no luck.
I would like to add one more detail(which I missed earlier) about the problem.
If I give 750 access to /home/ravi(That is read/exec to Group and none perm to Others),
I will get the same error(KUP-04063: unable to open log file emp_load1_18567.log).
This obviously means oracle is not even able to access the directory(Although unix user oracle has access via the group perms). -
Error while accessing External table.
Hi All,
While accessing oracle external table. I created the table with the following query.
CREATE OR REPLACE DIRECTORY load_dir AS '\\oraaps\Exceldata\'
CREATE TABLE my_sheet
DEPTNO NUMBER,
DNAME VARCHAR2(14),
LOC VARCHAR2(13)
ORGANIZATION EXTERNAL
TYPE oracle_loader
DEFAULT DIRECTORY load_dir
ACCESS PARAMETERS
RECORDS DELIMITED BY NEWLINE
badfile load_dir:'my_sheet.bad'
logfile load_dir:'my_sheet.log'
FIELDS TERMINATED BY ','
MISSING FIELD VALUES ARE NULL
DEPTNO,
DNAME,
LOC
LOCATION ('my_sheet.csv')
)REJECT LIMIT UNLIMITED;
I am sure that the table and the directory got created because i can see the table in the SQL developer. But whenever i say select * from my_sheet i'm getting the following error in the log file.
LOG file opened at 10/16/06 14:48:21
Field Definitions for table mysheet
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:
DEPTNO NUMBER Terminated by ","
Trim whitespace same as SQL Loader
DNAME VARCHAR2(14),
Terminated by ","
Trim whitespace same as SQL Loader
LOC VARCHAR2(13)
Terminated by ","
Trim whitespace same as SQL Loader
KUP-04001: error opening file \\oraaps\Exceldata\mysheet.csv
KUP-04017: OS message: The data is invalid.
Please do reply..Its urgent from my project deliverable point of view.
Any help appreciated.
Thanks and Regards.
V.Venkateswara RaoIt is not an Oracle error/problem. The error message is quite specific ito the actual root cause of the problem:
KUP-04001: error opening file \\oraaps\Exceldata\mysheet.csv
KUP-04017: OS message: The data is invalid.
These are operating system errors. The operating system cannot access/open/read the specific UNC and/or file.
Fix it at o/s level and it will work when Oracle needs to make that o/s call. -
Synonym problem with external table in materialized view
I have a materialized view that includes selects on two external tables.
However, no matter how I try to access the external tables, the creation fails with a "Synonym Translation Is No Longer Valid" (ORA-00980) error.
This happens even when I replace the tablename with the full table name, including the link.
I can create a view just fine, but if I then try something like CREATE MATERIALIZED VIEW mvw_my_view AS SELECT * FROM vw_my_view (where vw_my_view is the view in question), it still throws the Synonym Translation exception.00980, 00000, "synonym translation is no longer valid"
// *Cause: A synonym did not translate to a legal target object. This
// could happen for one of the following reasons:
// 1. The target schema does not exist.
// 2. The target object does not exist.
// 3. The synonym specifies an incorrect database link.
// 4. The synonym is not versioned but specifies a versioned
// target object.
// *Action: Change the synonym definition so that the synonym points at
// a legal target object.It is really, Really, REALLY difficult to fix a problem that can not be seen.
use COPY & PASTE so we can see what you do & how Oracle responds. -
Hi,
Oracle Version:10.2.0.1
Operating system:Linux
Here i created the external table successfully and when fetching the records for the text file i am getting some problem.
Here is my external table creation syntax.
create table sample_ext1 (DETAIL_SEQ_NUM number(15,0),
REPAY_IDENTIFIER varchar(20),
REPAY_STATUS varchar(20),
VISA_CODE VARCHAR2(30),
NCN_CODE VARCHAR2(10 ),
AUTH_NUMBER VARCHAR2(10 ),
EXTENDED_STATUS VARCHAR2(20 )
organization external
( default directory APD_EXTRACTS
access parameters( RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY 0X'09'
MISSING FIELD VALUES ARE NULL) location ('sample.txt'));
and my sample.txt file data is
1000 james anderson 51 3 630-033 75188553
1001 james anderson 52 3 630-034 75188554
1002 james anderson 53 3 630-035 75188555
1003 james anderson 54 3 629-959 75188556
1004 james anderson 50 2 75188552
1005 james anderson 55 2 75188557
1006 james anderson 56 2 75188558
1007 james anderson 57 2 75188559
1008 james anderson 58 2 75188560
1009 james anderson 59 2 75188561and the output is
1000 james anderson 51 3 630-033 75188553
1001 james anderson 52 3 630-034 75188554
1002 james anderson 53 3 630-035 75188555
1003 james anderson 54 3 629-959 75188556
1004 james anderson 50 2
1005 james anderson 55 2
1006 james anderson 56 2
1007 james anderson 57 2
1008 james anderson 58 2
1009 james anderson 59 2 here my problem is in the sixth column i am having some null values in sample.txt file as shown above but in the out put i am getting null values in last column also but there is data .
Please help me how to solve my problem.
Thanks & Regards,
Poorna Prasad.Hi All,
My problem was solved her what i did wrong is at first i made some changer manually to my sample.txt file.But after loading the original fiile as it is with editing it i get the correct output .
Thanks & Regards,
Poorna Prasad. -
Weird problem using external tables
Hi,
Please move my message to the correct forum if it is not in the right one.
Problem:
I have the following external table definition:
CREATE TABLE blabla (
AANSLUITINGSNR_BV NUMBER(15),
BSN_NR NUMBER(9),
DATUM_AANVANG_UKV DATE,
DATUM_EIND_UKV DATE,
BEDR_WAO_WERKN_REFJ number(18),
BEDR_WAO_WERKG_REFJ NUMBER(38)
ORGANIZATION EXTERNAL (
TYPE oracle_loader
DEFAULT DIRECTORY nood_dir
ACCESS PARAMETERS (
RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY ';'
MISSING FIELD VALUES ARE NULL
"AANSLUITINGSNR_BV",
"BSN_NR",
"DATUM_AANVANG_UKV" DATE "YYYYMMDD",
"DATUM_EIND_UKV" DATE "YYYYMMDD",
"BEDR_WAO_WERKN_REFJ",
"BEDR_WAO_WERKG_REFJ"
LOCATION ('myfile.csv')
REJECT LIMIT UNLIMITED;
My file looks like this:
107031035423278;913487654;20010101;20011231;3231729003;8334195582
128039008378982;117347347;20010101;20011231;1606131689;4468506457
134740829467773;450263934;20010101;20011231;9568986434;526201096
141020256280899;782714783;20010101;20011231;33235678;2398903683
146130347251892;960256796;20010101;20011231;441706397;2622754437
151020336151123;441010528;20010101;20011231;8183416412;6077359802
152888977527618;114572066;20010101;20011231;2370992895;6196483262
But when selecting the following log is stated:
error processing column BEDR_WAO_WERKG_REFJ in row 1 for datafile /oracle/db/noodscenario/myfile.csv
ORA-01722: invalid number
error processing column BEDR_WAO_WERKG_REFJ in row 2 for datafile /oracle/db/noodscenario/myfile.csv
ORA-01722: invalid number
Why is number 8334195582 stated as invalid ?
Thanks,
Coen
Message was edited by:
Coenos1Which Oracle version and OS are you on ? It works perfectly to me :
$ cat myfile.csv
107031035423278;913487654;20010101;20011231;3231729003;8334195582
128039008378982;117347347;20010101;20011231;1606131689;4468506457
134740829467773;450263934;20010101;20011231;9568986434;526201096
141020256280899;782714783;20010101;20011231;33235678;2398903683
146130347251892;960256796;20010101;20011231;441706397;2622754437
151020336151123;441010528;20010101;20011231;8183416412;6077359802
152888977527618;114572066;20010101;20011231;2370992895;6196483262
$ sqlplus test/test
SQL*Plus: Release 10.2.0.2.0 - Production on Fri Aug 24 10:56:30 2007
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> CREATE TABLE blabla (
2 AANSLUITINGSNR_BV NUMBER(15),
3 BSN_NR NUMBER(9),
4 DATUM_AANVANG_UKV DATE,
5 DATUM_EIND_UKV DATE,
6 BEDR_WAO_WERKN_REFJ number(18),
7 BEDR_WAO_WERKG_REFJ NUMBER(38)
8 )
9 ORGANIZATION EXTERNAL (
10 TYPE oracle_loader
11 DEFAULT DIRECTORY work
12 ACCESS PARAMETERS (
13 RECORDS DELIMITED BY NEWLINE
14 FIELDS TERMINATED BY ';'
15 MISSING FIELD VALUES ARE NULL
16 (
17 "AANSLUITINGSNR_BV",
18 "BSN_NR",
19 "DATUM_AANVANG_UKV" DATE "YYYYMMDD",
20 "DATUM_EIND_UKV" DATE "YYYYMMDD",
21 "BEDR_WAO_WERKN_REFJ",
22 "BEDR_WAO_WERKG_REFJ"
23 )
24 )
25 LOCATION ('myfile.csv')
26 )
27* REJECT LIMIT UNLIMITED
SQL> /
Table created.
SQL> select * from blabla;
AANSLUITINGSNR_BV BSN_NR DATUM_AAN DATUM_EIN BEDR_WAO_WERKN_REFJ BEDR_WAO_WERKG_REFJ
107031035423278 913487654 01-JAN-01 31-DEC-01 3231729003 8334195582
128039008378982 117347347 01-JAN-01 31-DEC-01 1606131689 4468506457
134740829467773 450263934 01-JAN-01 31-DEC-01 9568986434 526201096
141020256280899 782714783 01-JAN-01 31-DEC-01 33235678 2398903683
146130347251892 960256796 01-JAN-01 31-DEC-01 441706397 2622754437
151020336151123 441010528 01-JAN-01 31-DEC-01 8183416412 6077359802
152888977527618 114572066 01-JAN-01 31-DEC-01 2370992895 6196483262
7 rows selected.
SQL>What do you see within the log file ? -
OWB 10g R1 : Error while accessing External Table
Dear All,
We have created few external and registered them using os user oracle.
Now , we have changed to user 'oratester' and reregistered the location.
oratester is having all the rights on the folder which the external table is refering.
Still , we are facing with the following error:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout ORA-29400: data cartridge error KUP-04063: unable to open log file log_test.txt OS error Permission denied
If anybody is having any idea how to solve this error, please reply
Thanks in Advance
malleyah. Ive configured the accessing parameters.
The code generated , has the following
ACCESS PARAMETERS (
RECORDS DELIMITED BY NEWLINE
CHARACTERSET WE8MSWIN1252
STRING SIZES ARE IN BYTES
BADFILE ALL_DB_LOC_CMN_FLS_LOG_LOC:'bad_central.txt'
DISCARDFILE ALL_DB_LOC_CMN_FLS_LOG_LOC:'discard_central.txt'
LOGFILE ALL_DB_LOC_CMN_FLS_LOG_LOC:'log_central.txt'
FIELDS
TERMINATED BY '~'
OPTIONALLY ENCLOSED BY '"' AND '"'
Which OS does oracle use to create log/bad files? -
Hi
I able to create external tables ,but unbale to query
I had followed the below steps
sql> conn system/manager;
Connected
SQL> select * from emp;
EMPNO ENAME DEPTNO
100 mmm 10
200 yyy 20
300 zz 30
SQL> spool emp.dat
SQL> select empno ||','||ename||','||deptno from emp;
EMPNO||','||ENAME||','||DEPTNO
100,mmm,10
200,yyy,20
300,zz,30
sql>create directory x as 'd:\oracle\y'
Directory is created
SQL> create table ext(empno char(4),ename char(10),deptno char(2))
2 organization external (type oracle_loader default directory x access
parameters(fields terminated by ','
3 (empno,ename,deptno))
4 location('emp.dat'));
Table created.
SQL> select * from ext;
select * from ext
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file emp.dat in x not found
ORA-06512: at "SYS.ORACLE_LOADER", line 14
ORA-06512: at line 1
Thanks inadvance
MohanYea - there's nothing here that shows that you are pointing at that dir when you do the spool command.
Also, the headers went into the file. There should only be data. Edit the file and clean it up.
Maybe start with a very simple hand-edited file with 1 field, and get that to work.
Tom Best -
hi,
i have created a directory as fllows
create or replace directory ext_dir as 'd:\oracle\ora92'.
after that i created a csv file called test.csv in the same directory.
When i am trying to create an external table i am getting the following errors.
create table ext_table_csv (
i Number,
n Varchar2(20),
m Varchar2(20)
organization external (
type oracle_loader
default directory ext_dir
access parameters (
records delimited by newline
fields terminated by ','
missing field values are null
location ('test.csv' )
reject limit unlimited;
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file test.csv in EXT_DIR not found
ORA-06512: at "SYS.ORACLE_LOADER", line 19
any help pls.
regards
RRKSQL> drop table ext_table_csv ;
Table dropped.
SQL> create table ext_table_csv (
2 i number(20),
3 n CHAR(20),
4 m CHAR(20)
5 )
6 organization external (
7 type oracle_loader
8 default directory EXT_DIR
9 access parameters (
10 records delimited by newline
11 fields terminated by ','
12 missing field values are null
13 (i char,
14 n char,
15 m char)
16 )
17 location ('sample.csv' )
18 )
19 reject limit unlimited;
Table created.
SQL> select * from ext_table_csv;
I N M
1 a x
2 b y -
Error accessing External Table.
Hi All,
I am using external table for importing data. In that excel sheet certain fields are not mandatory. Whenever I try to import data from such excel sheets it is unable to refer those columns which don't have data in all fields. What shall i do, so that the external table will refer to all columns irrespective of whether its having data in all fields are not??
Please help me out.
Any help appreciated.
VenkyI think you have some problem with no of columns in your table as well no of columns in your excel sheet. Please paste the table description and excel sheet format here.
Cheers -
Problem in external table & sql*loader
hi all
i want to transter data between flat file to oracle database through external table option and sql*loader Utility.
1. how u make .dat file in external table.
2. how u make .ctl file in sql*loader utility.
if u know any good site plz. tell me.
thanx
Mohammadi52Hi,
Use this link to search any Oracle documentation:
http://tahiti.oracle.com/
Also please have a look on the below link:
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/utility.htm
Regards -
Problem with External Table using ORACLE_INTERNAL TYPE in 9i release 2
Hi,
I have tried to create an external table in oracle 9i release 2 using the following qurey:
CREATE TABLE emp_ext
ORGANIZATION EXTERNAL
( TYPE ORACLE_INTERNAL
DEFAULT DIRECTORY admin_dat_dir
LOCATION(admin_dat_dir:'emp1.dmp')
PARALLEL
AS
SELECT * from employees;
and getting the following error message
ORA-30657: operation not supported on external organized table
Please help me.
Thanks in AdvanceAs a matter of fact oracle 9i has two types of api for external tables one is oracle_loader and the other is oracle_internal which in 10g become oracle_datapump.
What my question is how can I use the other type in case of external table as we are doing in 10g? Do I need to run any script to enable this feature or is there any privillege issue?
I've given the read, write privillege to the user and the oracle user has read/write permission in os level on the location of the directory. -
Problem with external tables in 9i
Okay I have copied the csv file to that directory. I get this error when I run the select statement... basically the fields dont get populated.
*** SCRIPT START : Session:ADMAP@DEVDB2(1) 13-Nov-2006 16:38:53 ***
Processing ...
select * from proc_args
select * from proc_args
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "identifier": expecting one of: "comma, char, date, defaultif, decimal, double, float, integer, (, nullif, oracle_date, oracle_number, position, raw, recnum, ), unsigned, varrawc, varchar, varraw, varcharc, zoned"
KUP-01008: the bad identifier was: VARCHAR2
KUP-01007: at line 5 column 26
ORA-06512: at "SYS.ORACLE_LOADER", line 14
*** Script stopped due to error ***
*** SCRIPT END : Session:ADMAP@DEVDB2(1) 13-Nov-2006 16:38:53 ***
SCRIPTCREATE OR REPLACE DIRECTORY dir AS '/tmp/ext_dir';
--grant read,write on directory ext_dir to bulk_load;
CREATE TABLE proc_args (
argument_name VARCHAR2(50),
argument_value VARCHAR2(50)
ORGANIZATION EXTERNAL (
-- TYPE ORACLE_LOADER
DEFAULT DIRECTORY dir
ACCESS PARAMETERS (
RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY ','
MISSING FIELD VALUES ARE NULL
argument_name VARCHAR2(50),
argument_value VARCHAR2(50)
LOCATION ('input_arguments.csv')
--PARALLEL 5
--REJECT LIMIT UNLIMITED;
select * from proc_argsI think the fields specified in the ACCESS PARAMETERS section should be SQL*Loader datatypes, not standard SQL, e.g.
CREATE TABLE proc_args (
argument_name VARCHAR2(50),
argument_value VARCHAR2(50)
ORGANIZATION EXTERNAL (
-- TYPE ORACLE_LOADER
DEFAULT DIRECTORY dir
ACCESS PARAMETERS (
RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY ','
MISSING FIELD VALUES ARE NULL
argument_name CHAR,
argument_value CHAR
LOCATION ('input_arguments.csv')
Other valid types are specified here:
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_field_list.htm#sthref1004 -
Hi All,
I am having an oracle server and a file server.
I want to keep data file in file server.
I am able to create directory in oracle.
I am able to create table succesfully.
But I am getting error while giving select query.
Please help.
ThanksMy codes are like that
Create or replace directory ext_dir as 'C:\test';
drop table ext_table_fixed;
Create table ext_table_fixed (
col1 char(4),
col2 char(5)
organization external (
type oracle_loader
default directory ext_dir
access parameters (
records delemeted by newline
fields (
col1 position (1:4) char(4),
col2 position (5:9) char(5)
location ('a.txt')
) reject limit unlimited;
Select * from ext_table_fixed;
Error
ORA-29913: ODCIEXTTABLEOPEN error in executing string callout
ORA-29400: data cartridge error string
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "identifier": expecting one of: "badfile, byteordermark, characterset, discardfile, exit, fields, fixed, load, logfile, nodiscardfile, nobadfile, nologfile, date_cache, string, skip, variable"
KUP-01008: the bad identifier was: delemeted
KUP-01007: at li -
Problem accessing sys table from user's schema
Hi,
I had a store procedure whose owner is say user1.Inside of that store procedure i am executing the following select query.
select * from sys.all_coloumns where owner = 'USER1';
This is resulting me "no data found".
When i am executing the same select query from SQL*plus it is giving me the proper output.
I think this is happening because of less systeme privileges/role assigned to schema USER1.
Can you please suggest which priviledges i need to grant, so that my proc. will work fine.User1 needs select rights on sys.all_columns directly.
Not via the DBA role.
Maybe you are looking for
-
Hi., I am using FM F4IF_INT_TABLE_VALUE_REQUEST to display F4 for a Particular field . But while displaying a field(ISBN) with 13 characters is displayed only with value of 8 characters only. kindly advice. IT_FT-TABNAME = 'ZC002_ESTNOF4'. IT_F
-
Last payment date shown in credit master sheet is wrong.
Hi, The last payment date and amount in the credit master sheet S_ALR_87012218 does not reflect the true last payment info. As per the payment history list, there have been more recent last payments after the last payment date shown on the credit mas
-
Dreamweaver CS3 mishandling dashes and quotes?
Well, that's my problem. After years of doing sites in GoLive, I'm forcing myself to learn to do them the proper way, with Dreamweaver in CSS. I've apend days learning about the cascade and specificity. I've had three books open at a time. I finally
-
Hi , I need to create the OVS help for a field in Selection screen in IF_POWL_FEEDER class in which method do i need to do and help how to do this Thanks, Kalyani
-
Hi all, we are thinking about registration of a namespace to organize delivery of subsystems with our development objects. (no commercial use) Does anybody know, what SAP charges for the registration of a namespace? Thanks for your comments.