Error In Executing Odciexttablefetch Callout In Oracle
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers impdp ora-29913: error in executing odciexttablefetch callout or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x ora-29913: error in executing odciexttablefetch callout ora-30653: reject limit reached Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it ora-29913 error in executing odciexttablefetch callout during import only takes a minute: Sign up ORA-29913: error in executing ODCIEXTTABLEOPEN callout when inserting csv into oracle up vote 1 down vote favorite I'm trying to execute this code in PL/SQL: create or replace directory ext_tab_dir as 'C:/mydir'; GRANT READ,WRITE
Ora-29913 Error In Executing Odciexttablefetch Callout Ora-29400 Data Cartridge Error
ON DIRECTORY ext_tab_dir TO PUBLIC; DROP TABLE emp_load; CREATE TABLE emp_load (v1 VARCHAR2(4000), v2 VARCHAR2(4000) ) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY ext_tab_dir ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE BADFILE ext_tab_dir:'bad.bad' LOGFILE ext_tab_dir:'log.log' FIELDS TERMINATED BY ',' ) LOCATION ('testfile.csv') ); -- INSERT INTO tablename(v1,v2) SELECT * From emp_load and then getting next errors: ORA-29913: error in executing ODCIEXTTABLEOPEN callout ORA-29400: data cartridge error error opening file C:/mydir/log.log I do get that it has to do something with ora-29913 error in executing odciexttablefetch callout ora-01722 invalid number permissions, but I'm the one who created that directory, so how do I grant priveleges to myself if it is set like this by default? Is there any way to perform that sort of operation from PL/SQL? oracle csv plsql share|improve this question edited Dec 1 '14 at 14:47 slavoo 2,76192029 asked Dec 1 '14 at 14:45 Nikita Buriak 25118 1 What's the content of the LOGFILE? –Marco Baldelli Dec 1 '14 at 15:38 1 It's not in there as if it doesn't create itself, and If I do that manually it is empty. –Nikita Buriak Dec 2 '14 at 9:47 1 Try writing the path with backslahes: C:\mydir\log.log –Marco Baldelli Dec 2 '14 at 13:51 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted Try something like this. GRANT SELECT, INSERT, UPDATE, DELETE ON emp_load TO NikitaBuriak; Replace 'NikitaBuriak' with the ID you used when you created the table.. share|improve this answer answered Dec 1 '14 at 17:10 Rose 541411 if I do so it says: ORA-01749 "you can't GRANT previleges to yourself" –Nikita Buriak Dec 2 '14 at 9:46 You'll need to log into the database using an ID that has permissions to grant privileges against your table, then run the GRANT. –Rose Dec 2 '14 at 15:56 1 yeah, that worked, thanks :) –Nikita Buriak Dec 3 '14 at 11:11 ad
CommunityOracle User Group CommunityTopliners CommunityOTN Speaker BureauJava CommunityError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work error in executing odciexttableopen callout correctly without it enabled. Please turn JavaScript back on
Ora-29913 Error In Executing Odciexttableopen Callout Ora-29400 Data Cartridge Error Kup-04040
and reload this page. Please enter a title. You can not post a blank
Ora-29913 Error In Executing Odciexttableopen Callout Expdp
message. Please type your message and try again. More discussions in General Database Discussions All PlacesDatabaseGeneral Database Discussions This discussion is archived 1 http://stackoverflow.com/questions/27230879/ora-29913-error-in-executing-odciexttableopen-callout-when-inserting-csv-into-o 2 Previous Next 16 Replies Latest reply on Mar 14, 2013 10:16 AM by Nicolas.Gasparotto ERROR WITH EXTERNAL TABLE 458726 Jan 20, 2006 7:45 PM Hi, I am trying to query an external table that points it file on my WindowsXP system. The Oracle server is https://community.oracle.com/thread/358054 running on a same machine. ----------------------------------------- create table external_arq( text1 varchar2(1), text2 varchar2(20) ) organization external (type oracle_loader default directory external_directory access parameters ( records delimited by newline fields missing field value are null (text1 position(1,1), text2 position(2,20) ) ) location ('c:\temp\TEST.TXT') ) ------------------------------------------------------------ When I query the external table it returns the following error. SQL> select * from EXT_TABLE; select * from EXT_TABLE * ERROR at line 1: ORA-29913: error in executing ODCIEXTTABLEOPEN callout ORA-29400: data cartridge error KUP-00554: error encountred while parsing access parameters KUP-01005: sintaxe error: found "identifier": expecting one of :"values" KUP-01008: the bad identifier was: value KUP-01007: at line 3 column 15 ORA-06512: at "SYS.ORACLE_LOADER", line 14 ORA-06512: at line 1 Vendor code 29913 Anybody have any idea ? Anderson 42250Views Tags: none (add) 11gContent tagged with 11g, externalContent tagged w
August 28, 2013 - 7:17 pm UTC Category: Database – Version: 11.2 Latest Followup You Asked Hi Tom I am getting an error while executing the OS commands through the https://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:3021213500346960197 external table preprocessor. /appuser/parthiban > cat my_dir_list.pl #!/bin/perl @dir=`ls -l|grep ":"`; for (@dir) {print (join ("|", (split /\s+/)), "\n")} /appuser/parthiban > ./my_dir_list.pl -rwxrwx---|1|appuser|appusergrp|386|Dec|3|12:42|max.pl -rwxrwx---|1|appuser|appusergrp|418|Dec|3|12:45|max2.pl -rwxrwx---|1|appuser|appusergrp|160|Dec|3|12:49|max3.pl -rwxrwx---|1|appuser|appusergrp|88|Feb|17|07:21|my_dir_list.pl -rw-rw----|1|appuser|appusergrp|160|Feb|14|11:54|my_emp.lst -rwxrwx---|1|appuser|appusergrp|51|Feb|17|03:33|my_files.lst drwx------|2|appuser|appusergrp|256|Feb|14|12:38|sec -rw-rw----|1|appuser|appusergrp|77|Dec|3|12:09|tmpfile1.txt CREATE TABLE my_dir_list ( "permission" varchar2(4000), "x" varchar2(4000), "owner" varchar2(4000), "group" varchar2(4000), "size" varchar2(4000), "month" varchar2(4000), "date" varchar2(4000), "time" varchar2(4000), "name" varchar2(4000)) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY parthiban_dir ACCESS error in PARAMETERS ( RECORDS DELIMITED BY NEWLINE PREPROCESSOR parthiban_dir: 'my_dir_list.pl' FIELDS TERMINATED BY '|' ) LOCATION ('my_dir_list.pl') ); select * from my_dir_list; ORA-29913: error in executing ODCIEXTTABLEFETCH callout ORA-29400: data cartridge error KUP-04095: preprocessor command /appuser/parthiban/my_dir_list.pl encountered error "sh: ls: not found sh: grep: not found " It should be because that the "oracle" user doesn't have enough privileges to execute such commands. error in executing (1) Am I right? (2) How to grant such privileges to the "oracle" user? REM I should have posted this in a Unix forum Thanks for your help Tom. Warm Regards. and we said... you are assuming what the environment is here. You are relying on $PATH - which would be a really really bad idea - what if someone put a program named ls in a directory that was "earlier" in your path than you expected? We would run that 'trojan' ls program - and we would run it as "oracle" do not rely on defaults do not rely on $PATH be explicit $ which grep /bin/grep reference /bin/grep in your script NOT just grep. same with ls. This has nothing to do with permissions - this has everything to do with assuming your environment would be set - and it won't be. Set everything, be explicit. Reviews Write a Review KUP-04076: February 21, 2011 - 11:37 pm UTC Reviewer: Parthiban Nagarajan from Coimbatore, India Hi Tom This is just the continuation of my question. Yes. The PATH environment variable was the