Reg ORA-29283
Hi,
I'm using forms6i.
I have a form which allows users to store their files, either
(1) to the filesystem or
(2) in the db as blob.
In the 2nd case, when user tries to view the file, i recreate the file from the stored blob, with the same filename(gets from the table itself)
and then open the file for the user using HOST command.
But my issue is , once they tries to view the file, a file is created in the specified dir, and opened.
But when second time they try to open it, it throws error ORA-29283, invalid file operation.
The reason i think is, the file already exists, so when it tries to again create the same file, error occurs.(because every time i manually go and delete the already existing file, it works).
So once they close the file after viewing , i should delete the file.
But When i should issue delete? How i know they have closed the file?
Please help
Thanks
Thanks christian,
I changed my code like this
Host( 'cmd /c dir /B "\\192.168.0.12\testdir\'||:fum_filename||'"',no_screen); -- Checking the existance of the file
IF form_success THEN
Host( 'cmd /c attrib +rw "\\192.168.0.12\testdir\'||:fum_filename||'"',NO_SCREEN ) ;
End if;
retrieve_blob(:fum_filename,:fum_ref,stat,stat_msg); -- This procedure recreates the file from the blob.
Host( 'cmd /c attrib +r "\\192.168.0.12\testdir\'||:fum_filename||'"',NO_SCREEN ) ;
Host( 'cmd /c "\\192.168.0.12\testdir\'||:fum_filename||'"',NO_SCREEN ) ;But still of no help! Am i doing right??
Similar Messages
-
ORA-29283 invalid file operation
NLSRTL 10.2.0.5.0 Production
Oracle Database 10g Enterprise Edition 10.2.0.5.0 64bi
PL/SQL 10.2.0.5.0 Production
TNS for IBM/AIX RISC System/6000: 10.2.0.5.0 Productio
I am trying to get the content of a trace file generated for me.
Because I don't have privileges to log on the server and copy the trace file for me directly with some os user, I am doing the following:
1. I alter my session trace identifier to easier identify the trace file
ALTER SESSION SET TRACEFILE_IDENTIFIER = 'Func01';2. I invoke DBMS_MONITOR
3. I run the procedure I want to monitor.
4. I disable the monitoring by calling DBMS_MONITOR
5. At this point I run the following query to identify my trace file:
select u_dump.value || '/' || instance.value || '_ora_' || v$process.spid || nvl2(v$process.traceid, '_' || v$process.traceid, null ) || '.trc'"Trace File"
from V$PARAMETER u_dump
cross join V$PARAMETER instance
cross join V$PROCESS
join V$SESSION on v$process.addr = V$SESSION.paddr
where 1=1
and u_dump.name = 'user_dump_dest'
and instance.name = 'instance_name'
and V$SESSION.audsid=sys_context('userenv','sessionid');It gives me: /ORACLE/MYDB/trace/MYDB_ora_3616822_Func01.trc
I have created directory in advanced on the path where the traces are stored:
CREATE OR REPLACE DIRECTORY trace_dir AS '/ORACLE/MYDB/trace/';
SELECT * FROM dba_directories WHERE directory_name = 'TRACE_DIR';
Output:
OWNER DIRECTORY_NAME DIRECTORY_PATH
SYS TRACE_DIR /ORACLE/MYDB/trace/I don't have rights to grant read, write on TRACE_DIR to my user, as I am not logged with SYS.
I created a table to store in it the lines from the trace file:
CREATE TABLE tmp_traces_tab
callnum NUMBER,
line NUMBER,
fileline CLOB
);Then I run the following PL/SQL block to retrieve the content of the trace and store it in the table T:
DECLARE
l_file UTL_FILE.file_type;
l_location VARCHAR2 (100) := 'TRACE_DIR';
l_filename VARCHAR2 (255) := 'MYDB_ora_3616822_Func01.trc';
l_text VARCHAR2 (32767);
l_line NUMBER := 1;
l_call NUMBER := 1;
BEGIN
-- Open file.
l_file := UTL_FILE.fopen (l_location, l_filename, 'r', 32767);
-- Read and output first line.
UTL_FILE.get_line (l_file, l_text, 32767);
INSERT INTO tmp_traces_tab (callnum, line, fileline) VALUES (l_call, l_line, l_text);
l_line := l_line + 1;
BEGIN
LOOP
UTL_FILE.get_line (l_file, l_text, 32767);
INSERT INTO tmp_traces_tab (callnum, line, fileline) VALUES (l_call, l_line, l_text);
l_line := l_line + 1;
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
END;
INSERT INTO tmp_traces_tab (callnum, line, fileline) VALUES (l_call, l_line, l_text);
l_line := l_line + 1;
UTL_FILE.fclose (l_file);
END;
/And when I run the code I get the error: ORA-29283 invalid file operation.
Is it possible to a role my user to be able to get the content of the trace files in the directory TRACE_DIR without having explicit READ , WRITE privileges on it?
My user currently has these roles:
select * from dba_role_privs where grantee = USER;
Output:
U1 OPR_ROLE_LOSS_SNAPSHOT_READER YES YES
U1 RESOURCE NO YES
U1 CONNECT NO YES
U1 DBA NO YES
U1 OPR_ROLE_SUPPORT_USER YES YESI know that on another db with different user I hit no errors when doing completely the same (of course the program unit I monitor is different).
That other user with which I have NO issues has these roles:
select * from dba_role_privs where grantee = USER;
Output:
U2 DBA NO YES
U2 EXEC_SYS_PACKAGES_ROLE NO YES
U2 EXECUTE_CATALOG_ROLE NO YES
U2 CONNECT NO YESVerdi wrote:
NLSRTL 10.2.0.5.0 Production
Oracle Database 10g Enterprise Edition 10.2.0.5.0 64bi
PL/SQL 10.2.0.5.0 Production
TNS for IBM/AIX RISC System/6000: 10.2.0.5.0 Productio
And when I run the code I get the error: ORA-29283 invalid file operation.
Is it possible to a role my user to be able to get the content of the trace files in the directory TRACE_DIR without having explicit READ , WRITE privileges on it?
My user currently has these roles:
select * from dba_role_privs where grantee = USER;
Output:
U1 OPR_ROLE_LOSS_SNAPSHOT_READER YES YES
U1 RESOURCE NO YES
U1 CONNECT NO YES
U1 DBA NO YES
U1 OPR_ROLE_SUPPORT_USER YES YESI know that on another db with different user I hit no errors when doing completely the same (of course the program unit I monitor is different).
Thanks for posting version alongwith other details.
TO my knowledge, No you cannot.
Privileges acquired via a Role are not valid in PL/SQL. You need to have explicit privileges. -
Errors ORA-39002,ORA-39070, ORA-29283, ORA-06512, ORA-29283 during import
Hi all,
I am getting errors during import to 10g database using impdp command.
D:\>impdp nisa_lt/abc123@objtel1 directory=dtpump dumpfile=20120208_expobj.dmp full=y logfile=dbblog.log
Import: Release 10.2.0.1.0 - Production on Monday, 13 February, 2012 17:16:05
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 488
ORA-29283: invalid file operation
dmpfile history:
Starting "NISA_LT"."SYS_EXPORT_SCHEMA_01": nisa_lt/********@OBJ schemas=nisa_lt directory=dtpump dumpfile=20120208_expobj.dmp logfile=20120208_expobj.log
Master table "NISA_LT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
Dump file set for NISA_LT.SYS_EXPORT_SCHEMA_01 is:
/oradb/OBJ/oraarch/20120208_expobj.dmp
Job "NISA_LT"."SYS_EXPORT_SCHEMA_01" successfully completed at 15:04:36
and the dump file was done ftp with bin mode set.
It'll be really helpful if some one can guide me on this.Hi all,
I was trying to import into a database which i have only the details, but i have no access to db machine, which i think was the problem.
dmp file easily got imported to database present in the systems which i had access.
Following are my conclusions based on the experiments, correct me if I'm wrong:
1. Basically these are errors when db system cant read/write/access the directory structure pointed by directory in database.
2. This can be achieved by mounting the directory in which dmp is present to the system where database is present.
2. We cannot import using impdp just by having tns details of the db, we need to have access to db system.
Thanks
Avi :) -
ORA-29283 when writing file to server
I am trying to setup procedure that writes the result of a query to a file on the database server. I am currently testing the writing of file using some generic code.
The database is on Red Hat Linux. The directory was created on the server as the mfts_user account and the oracle user granted read/write access. This was verified by logging into the server as oracle and creating a file via "touch test.txt".
The following 2 procedures/functions were created to test utl_file:
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
AS
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;
create or replace PROCEDURE TEST_DUMP_CSV
AS
l_count NUMBER;
l_fn VARCHAR2(30);
BEGIN
SELECT TO_CHAR(SYSDATE,'YYYYMMDDHH24MISS') INTO l_fn FROM DUAL;
l_count := dump_csv( p_query => 'select * from coreq',
p_separator => ',',
p_dir => 'OUTBOUND_NEW_DIR',
p_filename => 'dump_csv' || l_fn || '.csv' );
dbms_output.put_line( to_char(l_count) || ' rows extracted to file dump_csv' || l_fn || '.csv.' );
END TEST_DUMP_CSV;
To test utl_file, I execute as the MAXIMO user:
CREATE OR REPLACE DIRECTORY outbound_new_dir AS '/home/mfts_user/Maximo/outbound_new';
select dump_csv('select * from coreq', ',', 'OUTBOUND_NEW_DIR', 'dump_csv.csv' ) from dual;
Here is the error I get:
ORA-29283: invalid file operation
ORA-06515: at "SYS.UTL_FILE", line 449
ORA-29283: invalid file operation
ORA-06512: at "MAXIMO.DUMP_CSV", line 15
ORA-06512: at line 1
This same setup works on Windows XP when logged in as an Admin user, which tells me that the syntax and logic is correct.
What could be wrong with the Linux setup?Yes. I read that read/write is automatically granted to the user that creates the DIRECTORY object.
The result of the query you gave was 2 records:
GRANTOR GRANTEE TABLE_SCHEMA TABLE_NAME PRIVILEGE GRANTABLE HIERARCHY
SYS MAXIMO SYS OUTBOUND_NEW_DIR READ YES NO
SYS MAXIMO SYS OUTBOUND_NEW_DIR WRITE YES NO -
Error handler for ORA-29283 - not working
I am running Oracle 9.2.0.4 on HP-UX.
I have a stored procedure which reads a text file. I have set up an execption for error code ORA-29283 (invalid file operation). When I test my procedure (by not having the file to read) my exception handler is bypassed for a general exception error and my procedure terminates.
here's parts of my code:
Declare
file_not_found EXCEPTION;
PRAGMA EXCEPTION_INIT (file_not_found, -29283);
BEGIN
nochourly_file := UTIL_FILE.fopen('/mydirectory','myfile.txt','R');
Loop
begin
UTL_FILE.get_line(nochourly_file, sbuffer);
EXCEPTION
WHEN NO_DATA_FOUND
THEN
GOTO end_of_file;
WHEN file_not_found
THEN
DBMS_OUTPUT.put_line ('Invalid File Operation - file not found');
skip_last_hour_processed;
GOTO end_of_file;
WHEN OTHERS
THEN
err_num := SQLCODE;
err_msg := SUBSTR (SQLERRM, 1, 100);
DBMS_OUTPUT.put_line ('Error ' || TO_CHAR (err_num));
DBMS_OUTPUT.put_line (err_msg);
DBMS_OUTPUT.put_line (sbuffer);
RAISE;
EXIT;
END;
===============
When this fails I expect to see the message
"Invalid file operation - file not found"
which indicates my exception handler was processed.
Instead I see:
SQL> @$HOME/newhourly_dly
Begin processing at 20060627154321
nlasthourprocessed:20060627100000
Last Hour Processed is 20060627100000
BEGIN noc_hourly_daily_load; END;
ERROR at line 1:
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 449
ORA-29283: invalid file operation
ORA-06512: at "HNS.NOC_HOURLY_DAILY_LOAD", line 374
ORA-06512: at line 1
Elapsed: 00:00:00.05
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
Can you explain:
1) what generated the error message since
a. it wasn't my exception handler and
b. it wasn't the "WHEN OTHERS"
2) Why isn't my error handler working?
Please advise.
Thank youHello
Not sure why your exception is being ignored but usually, to be able to handle the UTL_FILE exceptions, you need to explicitly code for each exception declared in the UTL_FILE package i.e.
EXCEPTION
WHEN utl_file.invalid_path THEN
--Do something
WHEN utl_file.invalid_mode THEN
--Do something
WHEN utl_file.invalid_filehandle THEN
--Do something
WHEN utl_file.invalid_operation THEN
--Do something
WHEN utl_file.read_error THEN
--Do something
WHEN utl_file.write_error THEN
--Do something
WHEN utl_file.internal_error THEN
--Do something
END;HTH
David -
Error after a DB clone - SQLERRM: ORA-29283 SYSMAN.MGMT_EMREP_METRICS
I clone a db and now receiving this message in the alert logs:
Wed Feb 08 01:00:00 2012
Errors in file /u01/app/oracle/admin/AUDT/diag/rdbms/audt/AUDT/trace/AUDT_j001_23301.trc:
ORA-12012: error on auto execute of job 7
ORA-20000: SQLERRM: ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation SQLCODE: -29283
ORA-06512: at "SYSMAN.MGMT_EMREP_METRICS", line 165
ORA-06512: at line 1
It's an auto job from SYSMAN that starts at 1am. The box I clone from is not having this error.greddy09sc wrote:
I clone a db and now receiving this message in the alert logs:
Wed Feb 08 01:00:00 2012
Errors in file /u01/app/oracle/admin/AUDT/diag/rdbms/audt/AUDT/trace/AUDT_j001_23301.trc:
ORA-12012: error on auto execute of job 7
ORA-20000: SQLERRM: ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation SQLCODE: -29283
ORA-06512: at "SYSMAN.MGMT_EMREP_METRICS", line 165
ORA-06512: at line 1
It's an auto job from SYSMAN that starts at 1am. The box I clone from is not having this error.I suspect that some OS/filesystem directory is missing or has wrong permissions. -
Reg ora-12034 materialized view log on younger than last refresh
Hi,
when i update my base table materialized view log shows the updated rows
but when i refresh materialized view it wont show updated rows in materialized view and also there is no rows in materialzed log
it shows error ora-12034: materialized view log on younger than last refresh
cheers,FIX
A complete refresh is required before the next fast refresh.
Please run the process "Refresh Materialized Views" -
REG:ORA-01653: unable to extend table SYS.OBJ$ by 128 in tablespace SYSTEM
Hi
My database is
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Solaris: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
I get the following error
ORA-00604: error occurred at recursive SQL level 1 ORA-01653: unable to extend table SYS.OBJ$ by 128 in tablespace SYSTEM
java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-01653: unable to extend table SYS.OBJ$ by 128 in tablespace SYSTEM
When query the dba_data_files system tablespace
TABLESPACE_NAME AUTOEXTENSIBLE FILE_NAME MAXBYTES/1024/1024/1024 BYTES/1024/1024/1024 SYSTEM YES DATA/maq1/datafile/system.260.709848331 31.9999847412109375 0.65447998046875 SYSTEM NO DATA200/maq1/datafile/system.310.729819887 0 0.9765625
2 rows selected
Please adviceHello,
ORA-00604: error occurred at recursive SQL level 1 ORA-01653: unable to extend table SYS.OBJ$ by 128 in tablespace SYSTEM
TABLESPACE_NAME AUTOEXTENSIBLE FILE_NAME MAXBYTES/1024/1024/1024 BYTES/1024/1024/1024
SYSTEM YES +DATA/maq1/datafile/system.260.709848331 31.9999847412109375 0.65447998046875
SYSTEM NO +DATA200/maq1/datafile/system.310.729819887 0 0.9765625
If you have enough space on the Disk for the first Datafile to extend, it's a rather strange behaviour.
In this case, I suggest you to open a SR on My Oracle Support.
On Solaris, a similar bug was reported (in 9.2.0.8 release):
Bug 7196775: ERROR ORA-01653 OCCURS WHILE INSERTING RECORDS IN TABLE WITH DATAFILE AUTOEXTENDElse, you may try to extend manually the Datafiles so as to get enough free space inside the Tablespace SYSTEM.
Hope this help.
Best regards,
Jean-Valentin -
Reg : ORA: ORA-03113:
Folks,
I am facing the below issue while runnig concurrent program,
Cause: FDPSTP failed due to ORA-02068: fatal error
ORA-03113: end of file on communication channel
ORA-12541: TNS: no listener
PS: Listener is up and running fine both apps and DB also.Please post the details of the application release, database version and OS.
I am facing the below issue while runnig concurrent program,Is this a seeded or custom concurrent program?
Cause: FDPSTP failed due to ORA-02068: fatal error GRCN_DBLK
ORA-03113: end of file on communication channel
ORA-06512: at "APPS.GRC_LLENA_PENDIENTE_TEMP_PKG", line 929
ORA-12541: TNS: no listener
PS: Listener is up and running fine both apps and DB also.Was this working before? If yes, any changes been done recently?
Is GRC_LLENA_PENDIENTE_TEMP_PKG a custom package developed by you?
Thanks,
Hussein -
Impdp issue oracle 10g express - ORA-39002,39070, 29283, 06512, 29283
Dear All,
I have the following problem trying to import a dump:
D:\COSMOS_BATCH_RUNNER\Automation_oracle\Scripts\IMPORT DMP>impdp ses17/ses17 di
rectory=DMPDIR dumpfile=ses17.dmp
Import: Release 10.2.0.1.0 - Production on Vendredi, 26 Novembre, 2010 9:45:10
Copyright (c) 2003, 2005, Oracle. All rights reserved.
ConnectΘ α : Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
ORA-39002: opΘration non valide -> operation not valid
ORA-39070: Ouverture du fichier journal impossible-> impossible to open logfile
ORA-29283: opΘration non valide sur le fichier-> operation not valid on file
ORA-06512: α "SYS.UTL_FILE", ligne 475
ORA-29283: opΘration non valide sur le fichier
I have created an DMPDIR and granted read and write right to user ses17 before to import the dump.
When I have a look at the security of the folder referenced by DMPDIR, I should also have read and write access to it. (in windows when I click right on the folder -> properties -> security (read and write are crossed).
Any idea how to import the dump file?
Thanks in advance,
ThomasFull Import Mode
The full import mode loads the entire contents of the source (export) dump file to the target database. However, you must have been granted the IMP_FULL_DATABASE role on the target database. The data pump import is invoked using the impdp command in the command line with the FULL parameter specified in the same command line.
$ impdp system/<password> DIRECTORY=expdp_dir DUMPFILE=expfull.dmp FULL=y LOGFILE=impfull.og
Schema Import Mode
The schema import mode is invoked using the SCHEMAS parameter. Only the contents of the specified schemas are load into the target database. The source dump file can be a full, schema-mode, table, or tablespace mode export files. If you have a IMP_FULL_DATABASE role, you can specify a list of schemas to load into the target database.
$ impdp hr/hr DIRECTORY=expdp_dir DUMPFILE=expfull.dmp SCHEMAS=hr,sh,oe
Table Import Mode
This export mode is specified using the TABLES parameter. In this mode, only the specified tables, partitions and their dependents are exported. If you do not have the EXP_FULL_DATABASE role, you can import only tables in your own schema.
$ impdp hr/hr DIRECTORY=expdp_dir DUMPFILE=expfull.dmp TABLES=employees,jobs,departments -
DATA-PUMP ERROR: ORA-39070 Database on Linux, Client on Win 2008
Hi,
i want to make a datapump export from client Windows 2008. I define dpdir as 'C:\DPDIR'.
While making expdp
expdp login\pass@ora directory=dpdir dumpfile=dump.dmp logfile=log.log full=y
i get those errors
ORA-39002:niepoprawna operacja
ORA-39070:nie mozna otworzyc pliku dziennik
ORA-29283:niepoprawna operacja na pliku
ORA-06512:przy "sys.utl_file", linia 536
ORA-29283:niepoprawna operacja na pliku
(decriptions in polish)
I found out, that datapump is saving files to the Linux Server (where database is). When i define 'C:\DPDIR' it doesn't recognize it because there is no such directory on Linux.
How can I save datapump export dumpfile on Windows?tstefanski wrote:
Hi,
i want to make a datapump export from client Windows 2008. I define dpdir as 'C:\DPDIR'.
While making expdp
expdp login\pass@ora directory=dpdir dumpfile=dump.dmp logfile=log.log full=y
i get those errors
ORA-39002:niepoprawna operacja
ORA-39070:nie mozna otworzyc pliku dziennik
ORA-29283:niepoprawna operacja na pliku
ORA-06512:przy "sys.utl_file", linia 536
ORA-29283:niepoprawna operacja na pliku
(decriptions in polish)
I found out, that datapump is saving files to the Linux Server (where database is). When i define 'C:\DPDIR' it doesn't recognize it because there is no such directory on Linux.
How can I save datapump export dumpfile on Windows?
>Hi,
i want to make a datapump export from client Windows 2008. I define dpdir as 'C:\DPDIR'.
While making expdp
expdp login\pass@ora directory=dpdir dumpfile=dump.dmp logfile=log.log full=y
i get those errors
ORA-39002:niepoprawna operacja
ORA-39070:nie mozna otworzyc pliku dziennik
ORA-29283:niepoprawna operacja na pliku
ORA-06512:przy "sys.utl_file", linia 536
ORA-29283:niepoprawna operacja na pliku
(decriptions in polish)
I found out, that datapump is saving files to the Linux Server (where database is). When i define 'C:\DPDIR' it doesn't recognize it because there is no such directory on Linux.
How can I save datapump export dumpfile on Windows?
expdp can only create dump file on DB Server system itself. -
Hi All,
I have one query related to expdp using shared path for directory.
I have 2 machine, I dont have enough space from where I run the EXPDP command, so I want to move my DMP files from machien 1 to machine 2.
from machine 1 : I have create one shared directory in G drive as below: \\machine1\G\TEST
from machine 2: I have run the "create directory command and give read,write privleges to system user as below"
Create or replace directory test as '\\machine1\G\TEST';
grant read,write on directory test to system;
and from machine 2: run the expdp cmd as below:
expdp system/<pwd>@<sid> schemas=scott directory=test dumpfile=test.dmp logfile=test.log
and I am getting below error:
ORA-39002: invalid operation
ORA-39070: Unable to open the log f
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line
ORA-29283: invalid file operation
can any one suggest me what are the alternatives for this?
Thanks...Data Pump does not support network share paths. Even mapped network drives wont work.
From my point of view you have the follwoing alternatives:
- add more LOCAL disk space (e.g. an usb hard disk)
- use iSCSI to present storage from remote servers to your database server
- if you´d be on UNIX you could use NFS - but as far as i can see you´re on windows
Ronny Egner
My blog: http://blog.ronnyegner-consulting.de -
ORA-39070 Error when using datapump and writing to ASM storage
I am able to export data using datapump when i write to a file system. However, when i try to write to an ASM storage, i get the following errors.
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
below are the steps i tooks.
create or replace directory jp_dir2 as '+DATA/DEV01/exp_dir';
grant read,write on directory jp_dir2 to jpark;
expdp username/password schemas=testdirectory=jp_dir2 dumpfile=test.dmp log=test.log
Edited by: user564785 on Aug 25, 2011 6:49 AMgoogle: expdp ASM
first hit:
http://asanga-pradeep.blogspot.com/2010/08/expdp-and-impdp-with-asm.html
"Log files created during expdp cannot be stored inside ASM, for log files a directory object that uses OS file system location must be given. If not following error will be thrown
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
" -
Hi Team.
We have a DB 11.1.0.07 ON HP-UX 11.23 64 Bits. and wr have this error;
ORACLE error 29283 in FDPSTP
**Starts**27-SEP-2013 12:05:10
ORACLE error 29283 in FDPSTP
Cause: FDPSTP failed due to ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
ORA-06512: at "APPS.FLC_OPM_INTERFACE", line 119
ORA-06512: at line 1
Generando archivo: /homeoa/proaut2/PROD/OP/OPM130927120510.dat
Invalida Operacion
Guido938302 wrote:
Hi Team.
We have a DB 11.1.0.07 ON HP-UX 11.23 64 Bits. and wr have this error;
ORACLE error 29283 in FDPSTP
**Starts**27-SEP-2013 12:05:10
ORACLE error 29283 in FDPSTP
Cause: FDPSTP failed due to ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
ORA-06512: at "APPS.FLC_OPM_INTERFACE", line 119
ORA-06512: at line 1
Generando archivo: /homeoa/proaut2/PROD/OP/OPM130927120510.dat
Invalida Operacion
Guido
[oracle@localhost ~]$ oerr ora 29283
29283, 00000, "invalid file operation"
// *Cause: An attempt was made to read from a file or directory that does
// not exist, or file or directory access was denied by the
// operating system.
// *Action: Verify file and directory access privileges on the file system,
// and if reading, verify that the file exists. -
Cant delete file from a folder..
Hello All,
I am using Oracle Database 10g on Linux OS
I want to delete some file using PL-SQL for that I have written following program.
DECLARE
fileHandler UTL_FILE.FILE_TYPE;
BEGIN
UTL_FILE.FREMOVE ('MY_DIRECTORY','my_filet.txt');
EXCEPTION
when others then
dbms_output.put_line('error is = '||sqlerrm);
END;
but when I execute this I get a error message as
error is = ORA-29283: invalid file operation
but the Directory Name and File name are valid, though the error is there .Why?
Pls help
thanks in advance
Regards,
Abhijit.It probably has to do with the permissions and file ownership of the target file on the server.
I tried the same code. I was able to delete a file where the owner was 'oracle' , and got the same error you have mentioned while trying to delete a file of another user with wrong permissions.
-Ashwin
Message was edited by:
ashwinkr
Maybe you are looking for
-
I need help getting songs from my Ipod to my Iphone. I have a different Apple ID on my ipod... I am not sure of that Apple ID. How do I figure that out? How do I get my songs to all be on my Iphone. I do not want to repay for songs I have already.
-
ORA-15001: diskgroup "FRA" does not exist or is not mounted
Dear Experts, We noticed the error "ORA-15001: diskgroup "FRA" does not exist or is not mounted" on the 2nd node of our 4 nodes RAC database system. During this weekend, we moved our system to a new data center. After the move was done, we were able
-
Hello All, Here I have a problem with sender file communication channel. THe channel is not able to pick a file as the file format is not correct andf throwing exception in the channel which is expected. But Its not allowing to go and pick the other
-
Calendar Server Migration from iplanet5.2 to Sunjava messaging server
Hi Can any one help me on Calendar server migration. How can i migrate the calendar server from iplanet 5.2 to sunjava messaging server Users Calendar resources Groups Attributes
-
How to calculate taxes in invoice tab of me23n t.code
Hi, I need to print the taxes shown in invoice tab for a particular PO. I have used related fn modules for calculating but i'm not get the exact values as shown in the sap. I have even searched the forums but didn't get any relevant answer. Please he