External Table is loading data [message #409764] |
Tue, 23 June 2009 23:17 |
m_golam_hossain
Messages: 89 Registered: August 2008 Location: Uttara, Dhaka, Bangladesh
|
Member |
|
|
I have created an external table but select statement is not working can any body please help! I am attaching my code and text data with one location.jpg file.
My database in developer suite are in the same machine.
I have searched the forum for such posting but the solutions are not to my requirement.
SQL> CREATE OR REPLACE DIRECTORY fingerprint_dir AS 'g:\oradir\fingerprint';
Directory created.
SQL> GRANT READ ON directory fingerprint_dir to public;
Grant succeeded.
SQL> GRANT WRITE ON directory fingerprint_dir to public;
Grant succeeded.
SQL>
SQL> DROP TABLE data.ext_fingerprint PURGE;
Table dropped.
SQL> CREATE TABLE data.ext_fingerprint
2 (
3 userid VARCHAR2(10) ,
4 name VARCHAR2(50),
5 dt VARCHAR2(20) ,
6 wkday VARCHAR2(10) ,
7 firstin VARCHAR2(10) ,
8 lastout VARCHAR2(10)
9 )
10 ORGANIZATION EXTERNAL
11 (
12 TYPE oracle_loader
13 DEFAULT DIRECTORY fingerprint_dir
14 ACCESS PARAMETERS
15 (
16 RECORDS DELIMITED BY newline
17 SKIP 1
18 FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
19 (
20 userid CHAR(10) ,
21 name CHAR(50),
22 dt CHAR(20) ,
23 wkday CHAR(10) ,
24 firstin CHAR(10) ,
25 lastout CHAR(10)
26 )
27 )
28 LOCATION ('report.csv')
29 )
30 REJECT LIMIT 1
31 ;
Table created.
SQL>
SQL> select * from data.ext_fingerprint order by 1,3;
select * from data.ext_fingerprint order by 1,3
*
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
error opening file g:\oradir\fingerprint\EXT_FINGERPRINT_2040_17328.log
Regards-
G. Hossain
-
Attachment: report.csv
(Size: 0.18KB, Downloaded 1206 times)
|
|
|
|
|
Re: External Table is loading data [message #409776 is a reply to message #409769] |
Tue, 23 June 2009 23:50 |
m_golam_hossain
Messages: 89 Registered: August 2008 Location: Uttara, Dhaka, Bangladesh
|
Member |
|
|
I have disabled the Antivirus McAfee and
Granted Full Permission to everyone to the directory.
How can I make oracle able to write to the directory? I mean what should I do now to make oracle able to write to the directory. The directory is on local hard disk. I also tried in C: drive. But for no use.
Best Regards.
G. Hossain
[Updated on: Tue, 23 June 2009 23:55] Report message to a moderator
|
|
|
|
|
Re: External Table is loading data [message #409867 is a reply to message #409779] |
Wed, 24 June 2009 04:57 |
m_golam_hossain
Messages: 89 Registered: August 2008 Location: Uttara, Dhaka, Bangladesh
|
Member |
|
|
Quote: |
Oracle is not able to access (write) log file in a remote directory.
|
CAN ANYBODY PLEASE TELL WHY ORACLE IS NOT ABLE TO ACCESS THE LOG FILE AND HOW I CAN MAKE ORACLE WRITE THE LOG FILE AS DISCUSSED IN PRECEEDING MESSAGES?
I ALSO TRIED THIS FROM C:\oratext directory. But, the error message is the same.
Quote: |
SQL> CREATE OR REPLACE DIRECTORY fingerprint_dir AS 'C:\oratext';
Directory created.
SQL> GRANT READ ON directory fingerprint_dir to public;
Grant succeeded.
SQL> GRANT WRITE ON directory fingerprint_dir to public;
Grant succeeded.
SQL>
SQL> DROP TABLE data.ext_fingerprint PURGE;
Table dropped.
SQL> CREATE TABLE data.ext_fingerprint
2 (
3 userid VARCHAR2(10) ,
4 name VARCHAR2(50) ,
5 dt VARCHAR2(20) ,
6 wkday VARCHAR2(10) ,
7 firstin VARCHAR2(10) ,
8 lastout VARCHAR2(10)
9 )
10 ORGANIZATION EXTERNAL
11 (
12 TYPE oracle_loader
13 DEFAULT DIRECTORY fingerprint_dir
14 ACCESS PARAMETERS
15 (
16 RECORDS DELIMITED BY newline
17 SKIP 1
18 FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
19 (
20 userid CHAR(10) ,
21 name CHAR(50),
22 dt CHAR(20) ,
23 wkday CHAR(10) ,
24 firstin CHAR(10) ,
25 lastout CHAR(10)
26 )
27 )
28 LOCATION ('report.csv')
29 )
30 REJECT LIMIT 1
31 ;
Table created.
SQL>
SQL> select * from data.ext_fingerprint order by 1,3;
select * from data.ext_fingerprint order by 1,3
*
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
error opening file C:\oratext\EXT_FINGERPRINT_2040_18324.log
|
Best regards.
[Updated on: Wed, 24 June 2009 05:08] Report message to a moderator
|
|
|
|
Re: External Table is loading data [message #410027 is a reply to message #409882] |
Wed, 24 June 2009 22:03 |
m_golam_hossain
Messages: 89 Registered: August 2008 Location: Uttara, Dhaka, Bangladesh
|
Member |
|
|
Thank you for your kind attention to my problem!
Quote: |
So your Oracle instance owner is not allowed to write into this directory or file.
|
Q1. Who might be the owner of my oracle instance, ora_dba?
Q2. How can I know the name of my oracle instance owner?
I am an administrator user of the Windows XP. I have granted full/all permissions of the directory to everyone, to user ora_dba and administrators. But the error message did not change.
Kind regards.
[Updated on: Wed, 24 June 2009 22:08] Report message to a moderator
|
|
|
|
Re: External Table is loading data [message #410030 is a reply to message #410028] |
Wed, 24 June 2009 22:26 |
m_golam_hossain
Messages: 89 Registered: August 2008 Location: Uttara, Dhaka, Bangladesh
|
Member |
|
|
Dear Blackswan,
Quote: |
>I want to move my undo and temporary tablespace to new path because of space issue. .........
Provide proof via command line along with CUT & PASTE
|
Because it is for space issue I would prefer adding extra datafiles in the new location to the exising table spaces, for example:
ALTER TABLESPACE tablespacename ADD datafile 'F:\DataFiles\DataFile08.dbf' size 100M REUSE AUTOEXTEND ON ;
I wonder the reason of your such query reply in my other type of question posting.
Regards.
[Updated on: Wed, 24 June 2009 22:32] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: External Table is loading data [message #410058 is a reply to message #410055] |
Thu, 25 June 2009 00:02 |
m_golam_hossain
Messages: 89 Registered: August 2008 Location: Uttara, Dhaka, Bangladesh
|
Member |
|
|
As we know Oracle for windows-32 bit is not case sensitive, except for Password (please correct me if I am wrong). Still I tried by changing to all lower case.
SQL> conn data/ioiuuyjkjjkghhg@jstt
Connected.
SQL> CREATE OR REPLACE DIRECTORY fingerprint_dir AS 'c:\oratext';
Directory created.
SQL> GRANT READ ON directory fingerprint_dir to public;
Grant succeeded.
SQL> GRANT WRITE ON directory fingerprint_dir to public;
Grant succeeded.
SQL>
SQL> DROP TABLE data.ext_fingerprint PURGE;
Table dropped.
SQL> CREATE TABLE data.ext_fingerprint
2 (
3 userid VARCHAR2(10) ,
4 name VARCHAR2(50) ,
5 dt VARCHAR2(20) ,
6 wkday VARCHAR2(10) ,
7 firstin VARCHAR2(10) ,
8 lastout VARCHAR2(10)
9 )
10 ORGANIZATION EXTERNAL
11 (
12 TYPE oracle_loader
13 DEFAULT DIRECTORY fingerprint_dir
14 ACCESS PARAMETERS
15 (
16 RECORDS DELIMITED BY newline
17 SKIP 1
18 FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
19 (
20 userid CHAR(10) ,
21 name CHAR(50),
22 dt CHAR(20) ,
23 wkday CHAR(10) ,
24 firstin CHAR(10) ,
25 lastout CHAR(10)
26 )
27 )
28 LOCATION ('report.csv')
29 )
30 REJECT LIMIT 1
31 ;
Table created.
SQL>
SQL> select * from data.ext_fingerprint order by 1,3;
select * from data.ext_fingerprint order by 1,3
*
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
error opening file c:\oratext\EXT_FINGERPRINT_2040_17812.log
Kindly clarify me as to what type of more evidence I can provide.
Best regards.
G. Hossain.
[Updated on: Thu, 25 June 2009 00:06] Report message to a moderator
|
|
|
|
|
Re: External Table is loading data [message #410064 is a reply to message #410051] |
Thu, 25 June 2009 00:23 |
m_golam_hossain
Messages: 89 Registered: August 2008 Location: Uttara, Dhaka, Bangladesh
|
Member |
|
|
I, user GHossain, start the service.
Quote: |
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\Documents and Settings\GHossain>net stop OracleServiceJSTT
The OracleServiceJSTT service is stopping......
The OracleServiceJSTT service was stopped successfully.
D:\Documents and Settings\GHossain>net start OracleServiceJSTT
The OracleServiceJSTT service is starting..........
The OracleServiceJSTT service was started successfully.
D:\Documents and Settings\GHossain>
|
User GHossain is an Administrator and have full permission on the directory C:\ORATEXT.
Best regards.
[Updated on: Thu, 25 June 2009 00:24] Report message to a moderator
|
|
|