ERROR at line 1: ORA-00920: invalid relational operator

Hello;

I get this error with this code:
EXECUTE 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;
Help me please, cordially

you are missing a space in this part:

in_column2 || 'like (''%'||

should be

in_column2 || ' like (''%'||

Tags: Database

Similar Questions

  • 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

  • to DECLARE * ERROR at line 1: ORA-00900: invalid SQL statement

    This works fine when I use the System user to create a schema and then run this script.
    When I create another user with grant connect, resources, create view permissions I get this error:

    DECLARE
    *

    ERROR on line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at...


    DECLARE
    ID MY_TABLE.ID%TYPE;
    tNom my_table. % TABLENAME TYPE;
    PName MY_TABLE_TWO. PROPERTYNAME % TYPE;
    CURSOR c1 IS
    SELECT distinct evt.id, evt. TABLENAME, vid.propertyname
    FROM my_table evt, vid MY_TABLE_TWO
    WHERE the evt. COL_1 = 1
    AND evt. COL_2 = vid. COL_2
    and not exists (select facts FROM MY_TABLE_THREE 1)
    where evt.id = facts.eventid and facts.displayname = vid.propertyname);
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO id, tNom, pname;
    OUTPUT WHEN c1% NOTFOUND;
    INSERT INTO MY_TABLE_THREE (ID, COLUMNLENGTH)
    VALUES (S_ANALYTICS_SEQUENCE.nextval, 255);
    RUN IMMEDIATELY 'ALTER TABLE ' | tNom | 'Add ' | PName | ' _ NVARCHAR2 (255);
    END LOOP;
    CLOSE c1;
    END;

    Hello

    Maybe missing a privilege. If I were you, I'll try this first:

    DECLARE
       id    MY_TABLE.ID%TYPE;
       tname MY_TABLE.TABLENAME%TYPE;
       pname MY_TABLE_TWO.PROPERTYNAME%TYPE;
       CURSOR c1 IS
          SELECT DISTINCT evt.id,
                          evt.TABLENAME,
                          vid.propertyname
            FROM MY_TABLE     evt,
                 MY_TABLE_TWO vid
           WHERE evt.COL_1 = 1
             AND evt.COL_2 = vid.COL_2
             AND NOT EXISTS (SELECT 1
                    FROM MY_TABLE_THREE facts
                   WHERE evt.id = facts.eventid
                     AND facts.displayname = vid.propertyname);
    BEGIN
       OPEN c1;
       LOOP
          FETCH c1
             INTO id, tname, pname;
          EXIT WHEN c1%NOTFOUND;
          INSERT INTO MY_TABLE_THREE
             (ID,
              COLUMNLENGTH)
          VALUES
             (S_ANALYTICS_SEQUENCE.NEXTVAL,
              255);
          DBMS_OUTPUT.put_line('ALTER TABLE ' || tname || ' add ' || pname ||
                               '_ NVARCHAR2(255)');
          --EXECUTE IMMEDIATE 'ALTER TABLE ' || tname || ' add ' || pname || '_ NVARCHAR2(255)';
       END LOOP;
       CLOSE c1;
    EXCEPTION
       WHEN OTHERS THEN
          DBMS_OUTPUT.put_line(SQLERRM);
    END;
    /
    

    Using this approach, you can see the sentences to run without run, I also added an exception block.

    Kind regards

  • 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

  • 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:52

    I 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

  • Database does not start... ALTER database open; change the database open * ERROR at line 1: ORA-03113: end of file on the channel of communication process ID: 10400 Session ID: 418 serial number: 3 -.

    HI during startup of the database of the following errors is. Please help solve the problem.

    SQL > alter database open;

    change the database open * ERROR at line 1: ORA-03113: end of file on the channel of communication process ID: 10400 Session ID: 418 serial number: 3 -.

    ============================================================

    Please see the alerts log entries

    --------------------------------------------------------------------------------------------------------------------------------

    Commissioning:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    With the options of partitioning, OLAP, Data Mining and Real Application Testing.

    Using parameters in spfile D:\APP\ADMINISTRATOR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SPFILEATTNDPRD server-side. ORA

    Parameters of the system with default values:

    process = 400

    sessions = 624

    memory_target = 4G

    control_files = 'D:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB0M_. CTL.

    control_files = 'C:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB13_. CTL.

    DB_BLOCK_SIZE = 8192

    compatible = "11.2.0.0.0."

    log_archive_format = "ARC%S_%R.%T."

    db_create_file_dest = 'D:\oracle\oradata. '

    db_create_online_log_dest_1 = "D:\oracle\oradata".

    db_create_online_log_dest_2 = "C:\oracle\oradata".

    db_recovery_file_dest = 'C:\oracle\oradata\flash_area. '

    db_recovery_file_dest_size = 8G

    undo_tablespace = 'UNDOTBS1.

    Remote_login_passwordfile = "EXCLUSIVE."

    db_domain = «»

    dispatchers = "(PROTOCOL=TCP) (SERVICE = ATTNDPRDXDB)" "

    audit_file_dest = "D:\APP\ADMINISTRATOR\ADMIN\ATTNDPRD\ADUMP".

    AUDIT_TRAIL = 'DB '.

    db_name = "ATTNDPRD".

    open_cursors = 300

    diagnostic_dest = "D:\APP\ADMINISTRATOR".

    Sun 24 May 13:43:09 2015

    PMON started with pid = 2, OS id = 5792

    Sun 24 May 13:43:09 2015

    VKTM started with pid = 3, OS id = 6500 high priority

    VKTM clocked at (10) precision of milliseconds with DBRM quantum (100) ms

    Sun 24 May 13:43:09 2015

    GEN0 started with pid = 4, OS id = 13072

    Sun 24 May 13:43:09 2015

    DIAG started with pid = 5, OS id = 1424

    Sun 24 May 13:43:09 2015

    DBRM started with pid = 6, OS id = 8240

    Sun 24 May 13:43:09 2015

    PSP0 started with pid = 7, OS id = 2980

    Sun 24 May 13:43:09 2015

    DIA0 started with pid = 8, OS id = 12956

    Sun 24 May 13:43:09 2015

    MA started with pid = 9, OS id = 13356

    Sun 24 May 13:43:09 2015

    DBW0 started with pid = 10, OS id = 14248

    Sun 24 May 13:43:09 2015

    DBW1 started with pid = 11, OS id = 17900

    Sun 24 May 13:43:09 2015

    LGWR started with pid = 12, OS id = 5564

    Sun 24 May 13:43:09 2015

    CKPT started with pid = 13, OS id = 16736

    Sun 24 May 13:43:09 2015

    SMON started with pid = 14, OS id = 14068

    Sun 24 May 13:43:09 2015

    RECCE has started with pid = 15, OS id = 16288

    Sun 24 May 13:43:09 2015

    MMON started with pid = 16, OS id = 10884

    commissioning 1 dispatcher (s) for '(ADDRESS =(PARTIAL=YES) (PROTOCOL = TCP))' network address...

    commissioning or shared server 1...

    Environment ORACLE_BASE = D:\app\Administrator

    Sun 24 May 13:43:09 2015

    ALTER DATABASE MOUNT

    Sun 24 May 13:43:09 2015

    MMNL started with pid = 17, OS id = 16128

    Mount of redo thread 1, with mount id 3325657453

    Database mounted in exclusive Mode

    Disabled lost write protect

    Completed: ALTER DATABASE MOUNT

    Sun 24 May 13:43:23 2015

    change the database open

    Sun 24 May 13:43:23 2015

    LGWR: FROM PROCESS ARCH

    Sun 24 May 13:43:23 2015

    Arc0 started with pid = 21, OS id = 10084

    Arc0: Started archiving

    LGWR: FROM PROCESS ARCH COMPLETE

    ARC0: FROM PROCESS ARCH

    Sun 24 May 13:43:24 2015

    Arc1 started with pid = 22, OS id = 18400

    Sun 24 May 13:43:24 2015

    ARC2 started with pid = 23, OS id = 17280

    Arc1: Started archiving

    ARC2: Started archiving

    Arc1: become the "no FAL' ARCH

    Arc1: become the "no SRL" ARCH

    ARC2: Become the heartbeat ARCH

    Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:

    ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.

    ************************************************************************

    You have choice to free up space in the recovery area:

    1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard

    then consider changing POLICY of DELETE ARCHIVELOG RMAN.

    2 back up files on a tertiary device such as a tape with RMAN

    SAFEGUARDING RECOVERY AREA command.

    3. Add space drive and increase the db_recovery_file_dest_size setting to

    reflect the new space.

    4 remove the unnecessary files using the RMAN DELETE command. If a service

    the system control has been used to remove the files, and then use the RMAN DUPLICATION and

    Commands DELETE has EXPIRED.

    ************************************************************************

    Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:

    ORA-19809: limit exceeded for file recovery

    ORA-19804: cannot recover disk 44571136 bytes limit 8589934592 space

    ARCH: 19809 error creating archive log file to ' C:\ORACLE\ORADATA\FLASH_AREA\ATTNDPRD\ARCHIVELOG\2015_05_24\O1_MF_1_10343_%U_. ARC'

    Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:

    ORA-16038: log 2 # 10343 sequence can be archived

    ORA-19809: limit exceeded for file recovery

    ORA-00312: wire 2 1 online journal: ' D:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYD8B_. JOURNAL"

    ORA-00312: wire 2 1 online journal: ' C:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYDF6_. JOURNAL"

    USER (ospid: 10400): put an end to litigation because of the error 16038

    Sun 24 May 13:43:24 2015

    ARC3 started with pid = 24, OS id = 2188

    Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_arc2_17280.trc file:

    ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.

    ************************************************************************

    You have choice to free up space in the recovery area:

    1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard

    then consider changing POLICY of DELETE ARCHIVELOG RMAN.

    2 back up files on a tertiary device such as a tape with RMAN

    SAFEGUARDING RECOVERY AREA command.

    3. Add space drive and increase the db_recovery_file_dest_size setting to

    reflect the new space.

    4 remove the unnecessary files using the RMAN DELETE command. If a service

    the system control has been used to remove the files, and then use the RMAN DUPLICATION and

    Commands DELETE has EXPIRED.

    ************************************************************************

    Instance of stopped by USER, pid = 10400

    --------------------------------------------------------------------------------------------------------------------------

    Regarding

    Ngoyi

    Hello

    Now it works very well... with following

    --------------------------------------------------

    using sqlplus

    • Startup mount
    • ALTER database noarchivelog;
    • ALTER database open;

    -------------------------------------------------------------------------------

    Concerning

    Ngoyi

    -------------------------------------------------

  • error: error at line 1: ORA-01503: CREATE CONTROLFILE failed

    Hello
    I'm the sinister scene I enter my database in nomount, but when I run create controlfile command
    It shows me an error:

    My controlfile content is:
    CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 2
    MAXDATAFILES 30
    MAXINSTANCES 1
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 ' / test/opt/102/oradata/test/redo1.log' 100M, SIZE
    GROUP 2 ' / test/opt/102/oradata/test/redo2.log' 100M, SIZE
    GROUP 3 ' / test/opt/102/oradata/test/redo3.log' SIZE 100 m
    DATA FILE
    ' / test/opt/102/oradata/test/system.dbf',
    ' / test/opt/102/oradata/test/undotbs1.dbf',
    ' / test/opt/102/oradata/test/sysaux.dbf',
    ' / test/opt/102/oradata/test/users01.dbf'
    CHARACTER SET WE8ISO8859P1
    ;


    After running this, I got the error below:

    CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
    *
    ERROR on line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in the identification of file ' / test/opt/102/oradata/test/system.dbf'
    ORA-27037: unable to get file status
    Linux-x86_64 error: 2: no such file or directory
    Additional information: 3


    what goes wrong with this script.

    Your disaster recovery operation became a disaster it seems :)

    Try copying the available backup files and repeat the same thing.

    Kind regards
    CSM

    Published by: CSM. DBA on July 30, 2012 11:50

  • Error at line 1: ORA-01503: creating the control file has no

    Hello

    I do disaster when I create controlfile by trace, I got an error

    CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 2
    MAXDATAFILES 30
    MAXINSTANCES 1
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 ' / test/opt/102/oradata/test/redo1.log' 100M, SIZE
    GROUP 2 ' / test/opt/102/oradata/test/redo2.log' 100M, SIZE
    GROUP 3 ' / test/opt/102/oradata/test/redo3.log' SIZE 100 m
    DATA FILE
    ' / test/opt/102/oradata/test/system.dbf',
    ' / test/opt/102/oradata/test/undotbs1.dbf',
    ' / test/opt/102/oradata/test/sysaux.dbf',
    ' / test/opt/102/oradata/test/users01.dbf'
    CHARACTER SET WE8ISO8859P1
    ;
    CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
    *
    ERROR on line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in the identification of file ' / test/opt/102/oradata/test/system.dbf'
    ORA-27037: unable to get file status
    Linux-x86_64 error: 2: no such file or directory
    Additional information: 3

    I wrote something wrong?

    Thank you

    I understand, but I couldnot restoration l datafile by rman restore command coz base not at the stage of editing!

    Appear you are not using the rman backup catalog and controlfile to help register rman backup.
    in this case if you recreate the controlfile to way you will lose all your information backup of controlfile.
    better restore controlfile from piece of backup or AutoSave. as restore controlfile from ""

  • Error Ora-600 - sql > create spfile from pfile - ERROR at line 1: ORA-00600

    Hello

    I am facing the following question in the database pending,

    Oracle 10g

    SQL > create spfile from pfile;
    Create spfile from pfile
    *
    ERROR on line 1:
    ORA-00600: internal error code, arguments: [ksplrmfn1], [3059], [3059], [], [],.
    [], [], []


    After you have added the db_file_name_convert and log_file_name_convert in pfile. If I remove these two spfile parameters is created successfully.

    Thank you.

    Here's the syntax exactly who i had given.

    db_file_name_convert = "/ u02/proddata", "/ u02/proddata ', ' / u03/proddata", "proddata1/u04 /, ' / u04/proddata ', ' / u04/proddata '
    log_file_name_convert = "/ u02/proddata", "/ u02/proddata ', ' / u03/proddata", "proddata1/u04 /, ' / u04/proddata ', ' / u04/proddata '

    Carefully, see apostrophe ending 4th missed rope... Changed as below. Use it and try again :)

    db_file_name_convert = "/ u02/proddata", "/ u02/proddata", "/ u03/proddata", "/ u04/proddata1", "/ u04/proddata", "/ u04/proddata.
    log_file_name_convert = "/ u02/proddata", "/ u02/proddata", "/ u03/proddata", "/ u04/proddata1", "/ u04/proddata", "/ u04/proddata.

    Close if answered threads

  • ORA-29283: invalid file operation, SP2-0103: nothing in the SQL buffer to run.

    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;

    /

  • 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.

  • ERROR at line 1: ORA-00054: resource busy and acquire with NOWAIT specified

    Hello

    We have an informatica session that maintains the slightest error with this error. These are the locked objects.

    Locked object Oracle Username o/s process Locker SID username / Ser # name Date/time of the connection

    -------------------- ---------------- ------------- -------------------- --------- ------------ ---- -------------------

    IDSSTG. MBRSHP_COV_UL IDSSTG (ACTIVE) informap 21671 sasbsp24 2141,10784 _SYS 2013/09/17 10:35:58

    P_DNTL                                                                                          SMU2

    $ 8

    SYS. OBJ$ IDSSTG (ACTIVE) informap 21671 sasbsp24 2141,10784 _SYS 2013/09/17 10:35:58

    SMU2

    $ 8

    Please indicate how this can be solved?

    Kind regards

    Narayan

    Yes, both are working against IDSSTG. MBRSHP_COV_ULP_DNTL

    Why should table be changed (ALTER TABLE) as part of the normal treatment?

    Table DDL should be consistent between versions of software version.

    the worst that happens is that no INDEX is created.

    SQL will run on this table.

    just CREATE INDEX later

  • with master as * ERROR at line 1: ORA-01762: vopdrv: query not in FROM block

    with master as 
    (
      select lbrcode,prdacctid,dateclosed,dateopen custno from masters
      where  dateclosed>=to_date('30-Sep-2014','DD-MON-YYYY')
    )
    ,
    limit as 
    (
      select totsanclimit,expdate ,lbrcode,prdacctid
                from
                (
                select limits.*,
                 rank() over (partition by lbrcode,prdacctid order by efffromdate desc) as rnk
                 from limits where efffromdate<=to_date('30-Sep-2014','DD-MON-YYYY')
                )where rnk=1
    )
    ,
    got_closing_balance AS 
    (
          SELECT prdacctid, lbrcode, balance1, balance2, balance3
                , balance4, balance5, balance6, balance7
               , RANK () OVER (PARTITION BY lbrcode, prdacctid ORDER BY cbldate DESC) AS rnk
                 FROM balances
            WHERE cbldate<=to_date('30-Sep-2014','DD-MON-YYYY') 
      and t_module_new(prdacctid,lbrcode)=30
       )
    ,
    rec as 
    (
      select * 
      from(
      SELECT 
      LBRCODE,
      MAINACCTID,
      FCYTRNAMT,
      VCRACCTID,
      DRCR,
      ENTRYDATE,
      cashflowtype,
      activitytype,mainmodtype,
                    (case when (cashflowtype='LNPCR' or cashflowtype='LNOCHCR') then 'prn_rec'
                    when (cashflowtype<>'LNPCR' and trim(substr(vcracctid,1,8))='INTREC') then 'int_rec'
                            ELSE 'NOT_TO_BE_CONSIDERED'END)AS REMARK 
                     FROM transactions
                     WHERE 
      POSTDATE BETWEEN to_date('01-Apr-2014','DD-MON-YYYY') AND TO_DATE(' 30-Sep-2014','DD-MON-YYYY')
                     and canceledflag<>'C'
                     and drcr='C' and mainmodtype in (30)
      ) where remark!='NOT_TO_BE_CONSIDERED'
    )
    select 
    m.lbrcode,
    m.prdacctid,m.custno,
    l.totsanclimit
    from master m
    join limit l on m.lbrcode=l.lbrcode and m.prdacctid=l.prdacctid
    join got_closing_balance g on m.lbrcode=g.lbrcode and m.prdacctid=g.prdacctid
    and m.lbrcode=25
    --and T_MODULE_NEW(m.prdacctid,m.lbrcode) in (30) 
     and g.rnk=1
    /
    
    
    
    

    guess it's because you have not used "REC" either in your hand or a with clause - I remember that "earlier" version had a problem with this considering that current versions don't

    HTH

  • ERROR at line 1: ORA-06502: PL/SQL: digital or value error ORA-06512: at line 10

    Hi all

    DECLARE

    TYPE (t1) IS RENDERING

    v_ename emp.ename%TYPE,

    v_sal emp.sal%TYPE

    );

    TNom TYPE IS an ARRAY OF t1

    INDEX OF DIRECTORY;

    v_tname tNom;

    BEGIN

    BECAUSE me IN v_tname. FIRST... v_tname. LAST

    LOOP

    Dbms_output.put_line (v_tname (i) .v_ename |) '' || .v_sal v_tname (i));

    END LOOP;

    END;

    You want to ask why I used the SLIDER? -We can use in BULK COLLECT with LIMIT clause with the cursor

    We also directly in bulk collect into collections as below:

    DECLARE

    TYPE (t1) IS RENDERING

    v_ename emp.ename%TYPE,

    v_sal emp.sal%TYPE

    );

    TNom TYPE IS an ARRAY OF t1

    INDEX OF DIRECTORY;

    v_tname tNom;

    BEGIN

    SELECT ename, sal BULK COLLECT INTO v_tname FROM emp;

    BECAUSE me IN v_tname. FIRST... v_tname. LAST

    LOOP

    Dbms_output.put_line (v_tname (i) .v_ename |) ' ' || .v_sal v_tname (i));

    END LOOP;

    END;

    /

Maybe you are looking for

  • How to "work offline"?

    It's crazy, but I can't find out how to work in offline mode. I just have to shut down the internet. Where did put the option work offline?

  • laptop HP 11 inch flow: keyboard on laptop will not register key strikes

    My keyboard work when I get the password to unlock the computer but other that I can't type anything.  The laptop makes a clicking sound when I hit the keys, but it will not type actually.  The mouse works fine and I can access it online, but only if

  • DeskJet F2480: 10 Windows upgrade now solution Center will not launch

    Since the upgrade to win 10, the F2480 prints and scans by using the built-in windows scan software. The printer is USB connected. The HP Solution Center software will not start. Uninstalled and reinstalled with software downloaded from AIO_CDB_Net_F

  • I'm trying to reset my Windows Media Player libraries.

    I was not able to do this through the command prompt and when I try to delete the file .wmdb to view files/folders it says "Open in WIndows Media Player Network Sharing Service" I tried to turn off the sharing, I can find but I can not delete this an

  • Non-functional processor DV7 - what a graphic problem?

    Hi all Edit: I think that it maybe the wrong section for this so I she published more than crash & block but since I saw some views on this one, did not delete in case someone was following this so leave it here for now. Administrators can remove if