ORA-29283: invalid file operation
Hi friends,I m getting ORA-29283: invalid file operation. I tried to use create directory option as well. I have to wriite the file to a specific location determined by the system setting
even I tried to write by specifying the path setting and direct read/write permision he throw the error.any even input will be highly appreciated.
Thank you
Create or replace procedure (table_csv)
in_succ_fail IN kcc_case_trans_fin_audit.success_or_fail%type by default NULL
in_team_id IN kcc_case_trans_fin_audit.ounit_identifier_kt%type by default NULL,
in_run_reference IN kcc_case_trans_fin_audit.run_reference%type by default NULL,
)
IS
v_file_path varchar2 (100) default Null;-to contain the path
v_file_name varchar2 (100) default Null; - to hold the name of the file
v_file_name_component varchar2 (20) default Null; - to contain the part of file name
v_string varchar2 (4000) default Null;
v_actual_start_date PROVISIONS.actual_start_date%type;
v_actual_end_date PROVISIONS.actual_end_date%type;
v_provid_identifier PROVISIONS.provid_identifier%type;
v_citem_identifier PROVISIONS.citem_identifier%type;
v_start_date COST_COMMITMENTS.start_date%type;
v_end_date COST_COMMITMENTS.end_date%type;
v_ccentr_identifier COST_COMMITMENTS.ccentr_identifier%type;
v_ccreas_identifier COST_COMMITMENTS.ccreas_identifier%type;
v_meaning coded_cost_reasons.meaning%type;
v_cost_centre_code cost_centres.cost_centre_code%type;
v_sch_start_date schedules.start_date%type;
v_sch_end_date schedules.end_date%type;
v_schedule_type schedules.schedule_type%type;
v_she_ccentr_identifier schedules.ccentr_identifier%type;
v_she_cost_centre_code cost_centres.cost_centre_code%type;
v_success_or_fail kcc_case_trans_fin_audit.success_or_fail%type;
v_file_audit UTL_FILE. TYPE_DE_FICHIER; -File pointer variable
File_Exception Exception; -User-defined exceptions
Cursor cur_kctfaudit is
Select ID, krestr_identifier, person_identifier,.
ounit_identifier_kt, new_ccentr_identifier
provis_identifier, ccommi_identifier, schedu_identifier
success_or_fail, error_message, run_reference
of kcc_case_trans_fin_audit
where success_or_fail = in_succ_fail
or ounit_identifier_kt = in_team_id
or run_reference = in_run_reference;
Begin
-To get the location of the directory, and then to make the name of the file.
v_file_path: = Adf_Getparam ('END', 'RFDR');
Select to_char (sysdate, 'ddmmyyhhmi') in the double v_file_name_component;
v_file_name: = 'kcc_restr_fin_audit_ ' | v_file_name_component |'. CSV';
If v_file_path is null then
Raise FILE_Exception;
End if;
-If the system "END/RFDR" parameter is not set then do not pass further and get out
If v_file_path is not null then
v_file_path: = v_file_path | » \';
v_file_audit: = UTL_FILE. FOPEN (v_file_path, v_file_name, 'W');
-v_file_audit: = UTL_FILE. FOPEN ("C: \ KCCTEST', v_file_name, 'W'");
-If the file to write has been opened successfully
IF utl_file.is_open (v_file_audit) THEN
-loops through each line of the file
I'm IN cur_kctfaudit LOOP
-The value null if the provis_identifier on the case_tran_fin_audit is null.
-a code here...
-to build the string with all the information to write to the file
v_string: = i.identifier | ','
|| baf_name_list (i.person_identifier, 'P'). ','
|| baf_name_list (i.ounit_identifier_kt, 'P'). ','
|| i.new_ccentr_identifier | ','
|| v_sch_start_date | ','
|| v_sch_end_date | ','
|| v_schedule_type | ','
|| v_she_cost_centre_code | ','
|| v_success_or_fail | ','
|| i.ERROR_MESSAGE | ','
|| i.krestr_identifier;
UTL_FILE. Put_line (v_file_audit, v_string, autoflush = > true);
END LOOP;
DBMS_OUTPUT. Put_line (' file Created: ' | v_file_name);
UTL_FILE. FCLOSE (v_file_audit);
END IF;
END IF;
EXCEPTION
WHEN utl_file.invalid_mode THEN
RAISE_APPLICATION_ERROR (-20051, 'invalid parameter Mode');
WHEN utl_file.invalid_path THEN
RAISE_APPLICATION_ERROR (-20052, 'Invalid File Location');
WHEN utl_file.invalid_filehandle THEN
RAISE_APPLICATION_ERROR (-20053, 'no valid Filehandle');
-WHEN utl_file.invalid_operation CAN
-RAISE_APPLICATION_ERROR (-20054, "Invalid File opération");
WHEN utl_file.internal_error THEN
RAISE_APPLICATION_ERROR (-20057, 'internal error');
WHEN utl_file.charsetmismatch THEN
RAISE_APPLICATION_ERROR (-20058, 'Open with FOPEN_NCHAR but later IO inconsistent');
WHEN utl_file.file_open THEN
RAISE_APPLICATION_ERROR (-20059, "file already open");
WHEN utl_file.invalid_maxlinesize THEN
RAISE_APPLICATION_ERROR (-20060, 'Row size exceeds 32 K');
WHEN utl_file.invalid_filename THEN
RAISE_APPLICATION_ERROR (-20061, "Invalid File Name");
WHEN utl_file.access_denied THEN
RAISE_APPLICATION_ERROR (-20062, "file access denied by ');
When FILE_Exception then
RAISE_APPLICATION_ERROR (-20002,' system END/RFDR parameter is not defined.) Set the system and try again! ');
dbms_output.put_line (' system END/RFDR parameter is not defined.) Set the system and try again! ');
WHILE others THEN
-dbms_output.put_line (sqlerrm);
RAISE_APPLICATION_ERROR (-20099, "UTL_FILE Unknown Error");
END table_csv;
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.
I have confidence in Oracle reports reality of the more acurrately, you.
View simplified code that produces the error and after CUT PASTE & showing evidence why Oracle is bad.
Tags: Database
Similar Questions
-
Hi gurus of the Oracle,.
Our version of oracle's 11 g RAC 2.
We write records into a file using utl_file.
According to the request, data should write to 160 files.
After writing to 50 records, his mistake to launch. as
BEGIN PROC_WRITE_TO_FILE; END;
*
ERROR on line 1:
ORA-29283: invalid file operation
ORA-06512: at "SYS." UTL_FILE", line 536
ORA-29283: invalid file operation
ORA-06512: at "TEST. PROC_WRITE_TO_FILE', line 130 '.
ORA-06512: at line 1
SQL > SP2-0103: nothing in the SQL buffer to run.
My procedure is
-DECLERATION
BEGIN
OPEN C2;
LOOP
EXTRACT THE C2 IN P_WRITE;
WHEN THE EXIT C2% NOTFOUND;
L_NAME: = "WRITE" | P_WRITE | » _. TXT';
L_FILE: = UTL_FILE. FOPEN (L_DIR, L_NAME, 'W');
OPEN C1 (P_WRITE);
LOOP
FETCH C1 INTO P_OD_PLACE, P_OD_USER, P_ED_PERF, P_GM_LST, P_GM_FIRST, P_GM_MOD, P_GM_SUFF, P_BD_NUM, P_BD_FRET, P_BD_UNIT, P_BD_GOLE, P_BD_GEP, P_DAT_BOD, P_DAT_EFF, P_ED_RACE, P_ED_GENDER, P_LAND_DIST, P_LAND_LOT, P_ED_STAT_REASON ,P_OD_PRECINCT,P_OD_JANI_PREC,P_NB_PIST_CNG,P_NB_PIST_SEN,P_NB_PIST_VASER,P_NB_PIST_JUD,P_NB_PIST_COMMI,P_NB_PIST_SCHOL,P_NB_PIST_WD,P_NB_PIST_JANIB,P_NB_PIST_JANIC,P_NB_PIST_FIRE,P_NB_PIST_SCHOB,P_NB_PIST_SUPCM,P_NB_PIST_WATBD,P_NB_PIST_GOLEL P_GM_NAME, P_ED_JANI_CODE, P_DAT_ACCEPT, P_DAT_CHANGED, P_OD_COMBO, P_TX_DESC, P_DAT_LST_CTT, P_BD_NUM2, P_BD_FRET1, P_BD_UNIT2, P_BD_GOLE2, P_BD_ST, P_BD_GEP5, P_BD_GEP4, P_BD_FRET2, P_BD_FRET3, P_BD_COUNTRY;
WHEN EXIT C1% NOTFOUND;
UTL_FILE. PUT_LINE (L_FILE, P_OD_PLACE: ' |) ' || P_OD_USER |' | ' || P_ED_PERF |' | ' || P_GM_LST |' | ' || P_GM_FIRST |' | ' || P_GM_MOD |' | ' || P_GM_SUFF |' | ' || P_BD_NUM |' | ' || P_BD_FRET |' | ' || P_BD_UNIT |' | ' || P_BD_GOLE |' | ' || P_BD_GEP |' | ' || P_DAT_BOD |' | ' || P_DAT_EFF |' | ' || P_ED_RACE |' | ' || P_ED_GENDER |' | ' || P_LAND_DIST |' | ' || P_LAND_LOT |' | ' || P_ED_STAT_REASON |' | ' || P_OD_PRECINCT |' | ' || P_OD_JANI_PREC |' | ' || P_NB_PIST_CNG |' | ' || P_NB_PIST_SEN |' | ' || P_NB_PIST_VASER |' | ' || P_NB_PIST_JUD |' | ' || P_NB_PIST_COMMI |' | ' || P_NB_PIST_SCHOL |' | ' || P_NB_PIST_WD |' | ' || P_NB_PIST_JANIB |' | ' || P_NB_PIST_JANIC |' | ' || P_NB_PIST_FIRE |' | ' || P_NB_PIST_SCHOB |' | ' || P_NB_PIST_SUPCM |' | ' || P_NB_PIST_WATBD |' | ' || P_NB_PIST_GOLEL |' | ' || P_GM_NAME |' | ' || P_ED_JANI_CODE |' | ' || P_DAT_ACCEPT |' | ' || P_DAT_CHANGED |' | ' || P_OD_COMBO |' | ' || P_TX_DESC |' | ' || P_DAT_LST_CTT |' | ' || P_BD_NUM2 |' | ' || P_BD_FRET1 |' | ' || P_BD_UNIT2 |' | ' || P_BD_GOLE2 |' | ' || P_BD_ST |' | ' || P_BD_GEP5 |' | ' || P_BD_GEP4 |' | ' || P_BD_FRET2 |' | ' || P_BD_FRET3 |' | ' || P_BD_COUNTRY);
UTL_FILE. FFLUSH (L_FILE);
END LOOP;
CLOSE C1;
END LOOP;
CLOSE C2;
UTL_FILE. FCLOSE (L_FILE);
END;
/
Appreciate your suggestions.
Thank you and best regards,
REDA
You understand, but you can't do it? What? Move a single line in the right place?
* sigh * I wish I was your code monkey...
-DECLERATION
BEGIN
OPEN C2;
LOOP
EXTRACT THE C2 IN P_WRITE;
WHEN THE EXIT C2% NOTFOUND;
L_NAME: = "WRITE" | P_WRITE | » _. TXT';
L_FILE: = UTL_FILE. FOPEN (L_DIR, L_NAME, 'W');
OPEN C1 (P_WRITE);
LOOP
FETCH C1 INTO P_OD_PLACE, P_OD_USER, P_ED_PERF, P_GM_LST, P_GM_FIRST, P_GM_MOD, P_GM_SUFF, P_BD_NUM, P_BD_FRET, P_BD_UNIT, P_BD_GOLE, P_BD_GEP, P_DAT_BOD, P_DAT_EFF, P_ED_RACE, P_ED_GENDER, P_LAND_DIST, P_LAND_LOT, P_ED_STAT_REASON ,P_OD_PRECINCT,P_OD_JANI_PREC,P_NB_PIST_CNG,P_NB_PIST_SEN,P_NB_PIST_VASER,P_NB_PIST_JUD,P_NB_PIST_COMMI,P_NB_PIST_SCHOL,P_NB_PIST_WD,P_NB_PIST_JANIB,P_NB_PIST_JANIC,P_NB_PIST_FIRE,P_NB_PIST_SCHOB,P_NB_PIST_SUPCM,P_NB_PIST_WATBD,P_NB_PIST_GOLEL P_GM_NAME, P_ED_JANI_CODE, P_DAT_ACCEPT, P_DAT_CHANGED, P_OD_COMBO, P_TX_DESC, P_DAT_LST_CTT, P_BD_NUM2, P_BD_FRET1, P_BD_UNIT2, P_BD_GOLE2, P_BD_ST, P_BD_GEP5, P_BD_GEP4, P_BD_FRET2, P_BD_FRET3, P_BD_COUNTRY;
WHEN EXIT C1% NOTFOUND;
UTL_FILE. PUT_LINE (L_FILE, P_OD_PLACE: ' |) ' || P_OD_USER |' | ' || P_ED_PERF |' | ' || P_GM_LST |' | ' || P_GM_FIRST |' | ' || P_GM_MOD |' | ' || P_GM_SUFF |' | ' || P_BD_NUM |' | ' || P_BD_FRET |' | ' || P_BD_UNIT |' | ' || P_BD_GOLE |' | ' || P_BD_GEP |' | ' || P_DAT_BOD |' | ' || P_DAT_EFF |' | ' || P_ED_RACE |' | ' || P_ED_GENDER |' | ' || P_LAND_DIST |' | ' || P_LAND_LOT |' | ' || P_ED_STAT_REASON |' | ' || P_OD_PRECINCT |' | ' || P_OD_JANI_PREC |' | ' || P_NB_PIST_CNG |' | ' || P_NB_PIST_SEN |' | ' || P_NB_PIST_VASER |' | ' || P_NB_PIST_JUD |' | ' || P_NB_PIST_COMMI |' | ' || P_NB_PIST_SCHOL |' | ' || P_NB_PIST_WD |' | ' || P_NB_PIST_JANIB |' | ' || P_NB_PIST_JANIC |' | ' || P_NB_PIST_FIRE |' | ' || P_NB_PIST_SCHOB |' | ' || P_NB_PIST_SUPCM |' | ' || P_NB_PIST_WATBD |' | ' || P_NB_PIST_GOLEL |' | ' || P_GM_NAME |' | ' || P_ED_JANI_CODE |' | ' || P_DAT_ACCEPT |' | ' || P_DAT_CHANGED |' | ' || P_OD_COMBO |' | ' || P_TX_DESC |' | ' || P_DAT_LST_CTT |' | ' || P_BD_NUM2 |' | ' || P_BD_FRET1 |' | ' || P_BD_UNIT2 |' | ' || P_BD_GOLE2 |' | ' || P_BD_ST |' | ' || P_BD_GEP5 |' | ' || P_BD_GEP4 |' | ' || P_BD_FRET2 |' | ' || P_BD_FRET3 |' | ' || P_BD_COUNTRY);
UTL_FILE. FFLUSH (L_FILE);
END LOOP;
CLOSE C1;
UTL_FILE. FCLOSE (L_FILE);
END LOOP;
CLOSE C2;
END;
/
-
SYS. Question UTL_FILE survey ORA-29283: invalid file operation
We have a cron to demand that gives the State of the database in our emails. Recently we have cloned the instance, and all by doing this, we bounced back the entire server.
After that we stopped getting emails of this instance. When I checked the crontab file and run the scripts manually. It showed the following error.
SQL > alter session SET smtp_out_server = "xxxx1:100";
declare
v_utl_filehandler UTL_FILE. TYPE_DE_FICHIER;
v_rawfile RAW (32767).
v_size NUMBER;
5 v_block NUMBER;
6 v_boolean BOOLEAN;
v_file_dir varchar2 (100);
7 8 v_transfer_location varchar2 (100): = "[email protected], [email protected], [email protected];
9 v_file_name varchar2 (100): = "mailattachment.doc";
10 starts
11 v_file_dir: = "MAIL_DIR";
12 v_utl_filehandler: = UTL_FILE. FOPEN (v_file_dir, v_file_name, "r");
13 UTL_FILE.fgetattr (v_file_dir, v_file_name, v_boolean, v_size, v_block);
14 UTL_FILE.get_raw (v_utl_filehandler, v_rawfile, v_size);
15 UTL_FILE. FCLOSE (v_utl_filehandler);
16
17 sys.utl_mail.send_attach_raw (sender = > '[email protected]')
18, recipients = > v_transfer_location
19, subject = > 'database of status of EBS UAT.
20, message = > "Dear Sir". CHR (13) | CHR (13) |
21 ' Please find attached file database state of EBS UAT. "| CHR (13) | CHR (13) |
22 'thank you ' | CHR (13) |
23 ' oracle@UATDB1'|| CHR (13) | CHR (13)
24, attachment = > v_rawfile
25, att_inline = > FALSE
26, att_filename = > v_file_name
(27);
28 end;
29.
declare
*
ERROR on line 1:
ORA-29283: invalid file operation
ORA-06512: at "SYS." UTL_FILE", line 536
ORA-29283: invalid file operation
ORA-06512: at the level of line 12
It was working fine before the cloning.
Published by: Gerard may 24, 2012 11:52I guess that the problem is caused by
v_utl_filehandler := UTL_FILE.FOPEN(v_file_dir, v_file_name, 'r');
Is the path to the directory "MAIL_DIR" exists in your database server?
The file 'mailattachment.doc' exists in this path?
You have read access to this path?You can check the path of the directory with:
select * from all_directories where directory_name='MAIL_DIR';
When the directory does not exist in this table, you need to create (such as s/n):
CREATE DIRECTORY MAIL_DIR AS 'yourdirectory';
To grant read access to the DBA, you need:
GRANT READ ON DIRECTORY MAIL_DIR TO
; (Overall precondition is that the oracle user (operating system - the user running your oracle instance) can access the given directory).
Published by: hm on 23.05.2012 22:52
-
Error: ORA-29283: invalid file so that registerdatabase operation
We get the error during the registration of the agent to the server
AGENT_HOME/bin/schagent - registerdatabase port > < host > <
Error:
Oracle Scheduler Agent registration
The agent registration failed!
Error: ORA-29283: invalid file operation
ORA-06512: at "SYS." UTL_FILE", line 536
ORA-29283: invalid file operation
Database version: 11.1.0.7.0
Someone at - he seen these errors?
Published by: Gaham on August 10, 2009 12:03 AM
Published by: Gaham on August 10, 2009 12:04 AMHello
This can happen if you have recently changed ORACLE_HOME for the database. We're currently tracking this as a bug.
To work around this problem, you can do
delete the PLANNER directory $ _WALLET_DIR;
-replace ORACLE_HOME with the full path to your new oracle home
- and use-instead of / for Windows
Create directory PLANNER$ _WALLET_DIR as "ORACLE_HOME/Planner/portfolio";Hope this helps,
Ravi. -
Hello world
I need to recover a file from the operating system using an Oracle procedure. To do this. All I need is to try to use a different file name and capture that in a table of newspaper (to test the object).
Currently, when I run my procedure by incorrect filename it throws an error "invalid file Operation.
Is it possible, where my procedure will not throw this error and instead it will run the procedure and the paper in the table of my error is "bad file name" or something like that.
in any case I found it. I used this:
INVALID_FILE_OPERATION EXCEPTION;
PRAGMA EXCEPTION_INIT (INVALID_FILE_OPERATION,-29283);
Thank you
-
Case with where clause - ORA-00920: invalid relational operator
Hi all, when I try to run the following query, I get the following error...
ORA-00920: invalid relational operator
00920 00000 - "invalid relational operator.
* Cause:
* Action:
Error on line: column 16: 5
Anyone know what the problem with my request? Thanks in advance.
SELECT concat (year, period)
OF DD_ACTUALS_FACT
CASE WHERE period
WHEN 'JAN' THEN '01'
WHEN 'FEB' THEN '02'
WHEN 'MAR' THEN ' 03 "
WHEN "APR" THEN ' 04 "
WHEN 'CAN' THEN ' 05 "
WHEN "JUN" THEN '06'
WHEN 'JUL' THEN '07'
WHEN 'AUG' THEN '08'
WHEN 'MS' THEN '09'
WHEN 'OCT' THEN '10'
WHEN 'NOV' THEN '11'
WHEN 'DEC' THEN '12'
END as number 'months '.
ORDER OF CONCAT (year, number 'months') / / DESC
The problem is the number 'month' - you cannot give an "ACE" alias for an expression in a where clause clause.
You have not really given any condition, that a set of translations of period in a number.
Also, you didn't say what you're trying to do.
Maybe you want to:
SELECT concat (year, period)
OF DD_ACTUALS_FACT
WHERE something
ORDER OF CONCAT (year, period of the CASE
WHEN 'JAN' THEN '01'
WHEN 'FEB' THEN '02'
WHEN 'MAR' THEN ' 03 "
WHEN "APR" THEN ' 04 "
WHEN 'CAN' THEN ' 05 "
WHEN "JUN" THEN '06'
WHEN 'JUL' THEN '07'
WHEN 'AUG' THEN '08'
WHEN 'MS' THEN '09'
WHEN 'OCT' THEN '10'
WHEN 'NOV' THEN '11'
WHEN 'DEC' THEN '12'
END DESC)
/
-
ORA-00920: invalid relational operator
SELECT PATIENT_FILE_NO,PATIENT_NAME,START_DATE,END_DATE,AGE,GENDER,ATTENDANCE_TYPE,PATIENT_CATEGORY,EPISODE_NO,VISIT_ID,ORGANIZATION_NO FROM (SELECT PM.PATIENT_FILE_NO, PE.EPISODE_NO, DECODE(CURRENT_LANG_P_S,'P', PATIENT_NAME_P ||' '||PATIENT_NAME_2_P||' '|| PATIENT_NAME_3_P||' '||PATIENT_NAME_F_P, PATIENT_NAME_S ||' '||PATIENT_NAME_2_S||' '|| PATIENT_NAME_3_S||' '||PATIENT_NAME_F_S ) PATIENT_NAME , EXSYS.GET_AGE(PM.DATE_OF_BIRTH,SYSDATE) AGE , CODES_PKG.GET_DESCRIPTION(PM.GENDER,103) GENDER, CODES_PKG.GET_DESCRIPTION(PM.PATIENT_CATEGORY,110) PATIENT_CATEGORY, PE.ATTENDANCE_TYPE , PE.START_DATE , NVL(PE.END_DATE,PA.CLINICAL_DISCHARGE_DATE)END_DATE , PE.ORGANIZATION_NO, MR.VISIT_ID FROM RC_PATIENTS PM, RC_PATIENT_EPISODES PE, AD_PATIENT_ADMISSIONS PA , MR_PATIENT_VISITS MR WHERE PM.PATIENT_FILE_NO =PE.PATIENT_FILE_NO AND PE.ADMISSION_NO =PA.ADMISSION_NO AND PM.PATIENT_FILE_NO =MR.PATIENT_FILE_NO AND PE.STATUS != 'C' AND PM.PATIENT_FILE_NO =NVL('',PM.PATIENT_FILE_NO) AND PA.CLINICAL_DISCHARGE_DATE IS NOT NULL AND TRUNC(PA.CLINICAL_DISCHARGE_DATE) BETWEEN '25-05-14' AND '25-05-14' AND PE.PRIMARY_ELIGIBILITY ='Y' AND PE.ATTENDANCE_TYPE M in ('I','D') and '12226' IN (SELECT RCST1.STAFF_ID FROM RC_CLINICAL_TEAMS RCTE, RC_CLINICAL_TEAM_STAFF RCST, RC_CLINICAL_TEAM_STAFF RCST1 WHERE RCTE.CLINICAL_TEAM_ID =RCST.CLINICAL_TEAM_ID AND RCTE.CLINICAL_TEAM_ID =RCST1.CLINICAL_TEAM_ID AND RCTE.WARD_ALLOCATION ='Y' AND RCST.STAFF_ID =PE.DOCTOR_ID AND trunc(PE.start_date) BETWEEN RCTE.APPLIES_START AND nvl(RCTE.APPLIES_END,trunc(PE.start_date)) AND trunc(PE.start_date) BETWEEN RCST.APPLIES_START AND nvl(RCST.APPLIES_END,trunc(PE.start_date)))) AND PE.DOCTOR_ID IN ('1' ,'11906' ,'13074' ,'12767' ,'11903' ,'11904' ,'12495' ,'11905' ,'11939')) order by PATIENT_NAME
When I run this code, I am facing this error?
where the operator that he speaks?
Thank you, I had.
There is the letter "M" next to the "attendance_type column.
Thank you
-
ERROR at line 1: ORA-00920: invalid relational operator
Hello;
I get this error with this code:
Help me please, cordiallyEXECUTE IMMEDIATE 'SELECT COUNT(*) FROM ' || in_table_name || ' WHERE ' || in_column1 || ' like (''%'|| in_value1 ||'%'') AND '|| in_column2 || 'like (''%'|| in_value2 ||'%'') AND ' || in_column3 || ' like (''%' || in_value3 ||'%'') AND ROWNUM = 1' INTO ln_test;
you are missing a space in this part:
in_column2 || 'like (''%'||
should be
in_column2 || ' like (''%'||
-
Hi all.
Sorry to ask this error again, I read a lot of topic in this forum on this subject, but I can't fix it.
So I create this topic.
My computer is running oracle database 11 g 2 express edition on ubuntu LTS 14.04.
I'm trying to import the database of dmp file. That's what I do:
> sqplus
opening session with sys as sysdba, then run:
Hoangnv CREATE USER IDENTIFIED BY hoangnv;
GRANT CONNECT TO hoangnv;
GRANT RESOURCE, s/n hoangnv;
CREATE OR REPLACE DIRECTORY dmpdir AS ' / home/hoangnv/downloads/db ";
GRANT read, write the DIRECTORY ON dmpdir TO hoangnv;
my_project.dmp file is stored on /home/hoangnv/Downloads/db folder.
Finally, I ran the command below in terminal:
impdp hoangnv/hoangnv@xe directory = dmpdir dumpfile = my_project.dmp logfile = my_project.log
That's what see the Terminal:
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
Any ideas? I run these commands on window and import the database successfully.
Hello
Please try the suggestions below:
1. make sure that the roles granted to the user are 'default' for him.
SQL > change the user hoangnv the role by default all;
then try to re-import.
Note: the DBA role contains the IMP_FULL_DATABASE with it.
2. try import with the use of the 'System' this time, which is the result then? don't forget to give the system read, write on directory dmpdir.
3. is the permission to/home/hoangnv/Downloads/db fine OS?
-
ORA-39002: invalid operation
I am using expdp, replacing the scripts of the exp.
I get these error lines:
ORA-39002: invalid operation
ORA-39070: unable to open the log file.
ORA-29283: invalid file operation
My expdp order:
Directory of dumpfile = test.dmp for = export_meta content = metadata_only expdp systemYes.CREATE DIRECTORY does not create the directory export_meta to you on disk.
-
The DDL extract fail with ORA-30511: invalid operation of DDL TRIGGER system
Hello
When I tried to do all DDL operation I can see the following trace in ggs_ddl_trace.log with the trace level 2.
It does not insert record in the GGS_DDL_HIST table.
everything seems only when ddl_status.sql has been run...
DDL replication is not the case.
Help, please.
SESS 30445-2012-04-12 11:16:09: DDL: start YVERT found [1147628]
SESS 30445-2012-04-12 11:16:09: DDL: object ID is [74635]
SESS 30445-2012-04-12 11:16:09: DDLTRACE1: before: point in execution = [4]
SESS 30445-2012-04-12 11:16:09: DDLTRACE1: insertToMarker: inString =]
SESS 30445-2012-04-12 11:16:09: DDLTRACE1:
[SESS 30445-2012-04-12 11:16:09: DDLTRACE1:], type = target [0] = [1]
SESS 30445-2012-04-12 11:16:09: DDLTRACE2: insertToMarker: optype marker = [0], current_fragment = [0]
SESS 30445-2012-04-12 11:16:09: DDLTRACE2: insertToMarker: added the fragment part * 1 *]
SESS 30445-2012-04-12 11:16:09: DDLTRACE2:
[[SESS 30445-2012-04-12 11:16:09: DDLTRACE2:], new current fragment [], new length of it]
SESS 30445-2012-04-12 11:16:09: DDLTRACE1: itemHeader: MD_TAB_DDLSTATEMENT (key1 = key2 [] = []) = [change the 'GGUSER' table. ["' Adds YASEEN" (column2 VARCHAR2 (30))], itemMode = [0]
SESS 30445-2012-04-12 11:16:09: DDLTRACE2: escape_string: retVal = ['alter table 'GGUSER'.] ["" YASEEN ' add\ (VARCHAR2\ (30\)------) of Column2 ']
SESS 30445-2012-04-12 11:16:09: DDLTRACE2: itemHeader: retVal = [, G1 =' alter table 'GGUSER'.] ["" YASEEN ' add\ (VARCHAR2\ (30\)------) of Column2 ',]
SESS 30445-2012-04-12 11:16:09: DDLTRACE1: insertToMarker: inString =]
SESS 30445-2012-04-12 11:16:09: DDLTRACE1:, G1 =' alter table 'GGUSER '. "" YASEEN ' add\ (column2 VARCHAR2\ (30\)------) ',
[SESS 30445-2012-04-12 11:16:09: DDLTRACE1:], type = target [4] = [1]
SESS 30445-2012-04-12 11:16:09: DDLTRACE2: insertToMarker: optype marker = [4], current_fragment = [0]
SESS 30445-2012-04-12 11:16:09: DDLTRACE2: insertToMarker: added the fragment part * 2 *]
SESS 30445-2012-04-12 11:16:09: DDLTRACE2:, G1 =' alter table 'GGUSER '. "" YASEEN ' add\ (column2 VARCHAR2\ (30\)------) ',
[SESS 30445-2012-04-12 11:16:09: DDLTRACE2:], new ongoing fragment [, G1 =' alter table 'GGUSER'.] ["" YASEEN ' add\ (VARCHAR2\ (30\)------) of Column2 ',], new length of it [66]
[SESS 30445-2012-04-12 11:16:09: DDLTRACE1: insertToMarker: total_fragments =]
SESS 30445-2012-04-12 11:16:09: DDLTRACE1: insertToMarker: total_fragments (in a loop) = [1]
SESS 30445-2012-04-12 11:16:09: DDLTRACE1: insertToMarker: fragment # = [1] fragment = [, G1 =' alter table 'GGUSER'.] ["" YASEEN ' add\ (VARCHAR2\ (30\)------) of Column2 ',]
SESS 30445-2012-04-12 11:16:09: DDLTRACE1: insertToMarker: insertion in the history, objid [74635]
SESS 30445-2012-04-12 11:16:09: DDL: insertToMarker: ORA-30511: invalid DDL operation in the system triggers
SESS 30445-2012-04-12 11:16:09: DDL: getTableInfo: ORA-30511: invalid DDL operation in the system triggers
* SESS 30445-2012-04-12 11:16:09: DDL: trigger sys. GGS_DDL_TRIGGER_BEFORE: processing error DDL operation [change the 'GGUSER' table. ["' Adds to the YASEEN" (VARCHAR2 (30)) Column2], error ORA-30511: invalid DDL operation in the system triggers, stack error: ORA-06512: at 'GGUSER '. DDLREPLICATION', line 2486 *.
ORA-06512: at line 833 level
SESS 30445-2012-04-12 11:16:09: DDL: cleaning sequence marker [17]
SESS 30445-2012-04-12 11:16:09: DDL: cleaned [2] marker table rows
SESS 30445-2012-04-12 11:16:09: DDL: cleaning sequence DDL [17]
SESS 30445-2012-04-12 11:16:09: DDL: cleaned [0] lines of the DDL tableHello
The recyclebin database is empty. Otherwise please purge the recyclebin and then try to make the changes.
Thank you
Kamal. -
Invalid relational operator error.
Hello
What is the problem with this query? I'm getting ORA-00920: invalid relational operator error.
SELECT *.
TEMP
WHERE FLAG_Y = 1 AND (FLAG_N IS NOT NULL
OR FLAG_K NOT NULL)
Thank you
you just forgot the IS before the second NOT NULL...
HTH
-
ORA-02236: invalid filename when creating redo eve
I'm getting ora-02236 creating again Eve... Why is it so?
SQL > select * from v version $;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
AMT for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL > 300 fixed lines;
SQL > set 300 pages;
SQL > /.
GROUP # STATUS TYPE MEMBER IS_
---------- ------- ------- ------------------------------ ---
/ U01/oracle/oradata/HITHA/redo No. 3 online
03 journal
/ U01/oracle/oradata/HITHA/redo No. 2 online
02.Markus newspaper
1/u01/oracle/oradata/HITHA/redo STALE in LINE No.
01.intro newspaper
SQL > select bytes of the log v$.
BYTES
----------
52428800
52428800
52428800
SQL > ALTER DATABASE ADD STANDBY LOGFILE GROUP 4 SIZE 50 M;
ALTER DATABASE ADD STANDBY LOGFILE GROUP 4 SIZE 50 M
*
ERROR on line 1:
ORA-02236: invalid file name
SQL > ALTER DATABASE ADD STANDBY LOGFILE SIZE 50 M;
ALTER DATABASE ADD STANDBY LOGFILE SIZE 50 M
*
ERROR on line 1:
ORA-02236: invalid file name
Hi all
I just tried to give the path and he managed...
SQL > alter database add standby logfile ' / u01/oracle/oradata/EDWIGE redo04.log "size m 50;
Database altered.
SQL > alter database add standby logfile ' / u01/oracle/oradata/EDWIGE
Database altered.
SQL > alter database add standby logfile ' / u01/oracle/oradata/EDWIGE
Database altered.
SQL > select * from v$ logfile;
GROUP # STATUS TYPE MEMBER IS_
---------- ------- ------- ------------------------------ ---
/ U01/oracle/oradata/HITHA/redo No. 3 online
03 journal
/ U01/oracle/oradata/HITHA/redo No. 2 online
02.Markus newspaper
1/u01/oracle/oradata/HITHA/redo STALE in LINE No.
01.intro newspaper
4/u01/oracle/oradata/HITHA/redo of EVE No.
04.the newspaper
5/u01/oracle/oradata/HITHA/redo of EVE No.
05.Marco newspaper
6/u01/oracle/oradata/HITHA/redo of EVE No.
06.the newspaper
6 selected lines.
-
IKM Partition Oracle Exchange Error loading - ORA-14006: invalid partition name
Hello
I use ODI Standalone Edition Version 11.1.1
I've created an interface, the target table's partition.
DDL script
CREATE TABLE big_table2)
ID NUMBER (10),
CREATED_DATE DATE,
lookup_id NUMBER (10),
given VARCHAR2 (50)
)
PARTITION OF RANGE (created_date)
(PARTITION big_table_2007 VALUES LESS THAN (MAXVALUE));
the performance of the interface error: -.
Internal CZ_SC_CONSULTING jar:file:/D:/Oracle/middleware/Oracle_ODI1/oracledi/client/jdev/extensions/Oracle.ODI.Navigator.jar!/com/Sunopsis/graphical/gif/State/f_error.gif 2015-01-28 10:58:38.0 2015-01-28 10:59:08.0 30 14006 ODI-1226: step INT_EXCH_PART fails after 1 attempt. ODI-1240: Flow INT_EXCH_PART fails during an operation of integration. This flow of charge table BIG_TABLE2 target.
ODI-1228: failed INT_EXCH_PART (integration) task on the target of ORACLE ODI_STAGE connection.
Caused by: java.sql.SQLException: ORA-14006: invalid partition name
ORA-06512: at line 2
Please can I know what is the problem.
Put your name of the partition in upper case and double coate as:
'BIG_TABLE_2007 '.
The capital should not be a problem, but it is better to be like that because it will store like this in the table USER or ALL_TAB_PARTITIONS.
This makes it easier to compare if you need to check if a partition already exists or not.
Hope this can help you.
-
ORA-20515: invalid Session
Hello
I find the rest of error messages in my glassfish.log file. Applications are working fine but do not know why this error comes from time to time, and then in the log file only.
Operating system: CentOS 6.4 64bits
Oracle 11G XE
Apex 4.2.3.00.08
Apex listener 2.0.5
3.1.2.2 Glasfish
I am also using Nginx as a reverse proxy server.
[#: 2013-11 - 06T 12: 02:10.103 - 0500 |] SEVERE | glassfish3.1.2 | null | _ThreadID = 83; _ThreadName = wire 2. ORA-20515: Invalid session
ORA-06512: at "APEX_040200.WWV_FLOW_DML", line 2045
ORA-06512: at "APEX_040200.HTMLDB_UTIL", line 2659
ORA-06512: at line 2
java.sql.SQLException: ORA-20515: Invalid session
ORA-06512: at "APEX_040200.WWV_FLOW_DML", line 2045
ORA-06512: at "APEX_040200.HTMLDB_UTIL", line 2659
ORA-06512: at line 2
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:205)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1043)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3713)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4755)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1378)
at sun.reflect.GeneratedMethodAccessor74.invoke (unknown Source)
Any help will be much appreciated.
Habib
Hi Habib.
This error can occur when applications to APEX_UTIL. GET_BLOB_FILE to download the BLOB content on a page of DML form passes invalid or expired session id. You should be able to find support requests to APEX_UTIL. GET_BLOB_FILE or HTMLDB_UTIL. GET_BLOB_FILE in your web server log files.
Kind regards
Christian
Maybe you are looking for
-
When I go to options in the toolbar it is always empty (just a gray screen)
When I go in the options in the toolbar, it is always empty (just a gray screen) firefox 32.03. never happened until I used 32.0
-
Error 9/4MEM/40000000: 0x7f6f9f90
I get this error message after the Test run of equipment due to a problem with loading the images/graphics. 27 "iMAC, end 2012, 16 GB of RAM installed Apple. Replaced RAM with two Modules of 8 GB of OWC/Mac sales and still got the error with the ex
-
Why not zoom gesture in the work of Lion in the web pages of Firefox?
I have the latest Firefox and now the last Lion OS X:. But the pinch to zoom gesture (that works in Safari) won't work in Firefox web pages. I thought that Firefox has been updated to work with Lion. So why not zoom or is there something I should do
-
Portege R100: fan and screen
My portege r100 fan no longer works and I wonder to the service change only the fan or the mainboard... and my screen has 24 dead pixels color do that I have to doKind regards
-
HELP UPGRADING HP p7-1010 retail
Hi I have a p7-1010 detail and I was wondering if my updates would work for this computer. PSU-CORSAIR Builder Series CX600 600W ATX12V v2.3 80 PLUS BRONZE certified Active PFC Power Supply Map-100357-2GL video Radeon HD 7750 2 GB 128 - bit DDR3 PCI