Error in Executing procedure--Cannot inser null

when i execute a procedure . i am getting the following error.
Where to write an exection. Please let me know whether i have to write exection after insert or..
Please help me.
my procedure is as follows
insert into a as select * from b;
ORA-01400: cannot insert NULL into ("ETL"."A.EXP_CD")
ORA-06512: at "ETL.P_STGE_MATTER", line 167
ORA-06512: at line 11

if you are using the same insert statement that you
have mentioned then i think it should be like
insert into a (select * from b)Really ?
SQL> create table a (id number(1))
  2  /
Tabel is aangemaakt.
SQL> create table b as select 1 id from dual
  2  /
Tabel is aangemaakt.
SQL> insert into a select * from b
  2  /
1 rij is aangemaakt.Regards,
Rob.

Similar Messages

  • Error while executing procedure for excel upload

    Hi Friends
    Pl. find below error while executing procedure for loading excel data. pl. verify and suggest for any changes in the format of data.
    Rgds
    SriG

    If reading Excel as a database you would use "Access LSLINK"
    Access external means you are reading a file. I don't think it is possible to treat Excel as a file because the internal structure is complex.
    In the past I have saved the Excel as a CSV or as a Tab delimeted file. Then I use something like
    ACCESS External
      USE &filename
      BEGIN
        DESCRIPTION free ,
        Variables text 20
        Organisation text 20
        'July 2008' numeric 20
        'August 2008' numeric 20
        'September 2008' numeric 20
        'October 2008' numeric 20
        'November 2008' numeric 20
        'December 2008' numeric 20
        'January 2009' numeric 20
        'February 2009' numeric 20
        'March 2009' numeric 20
        'April 2009' numeric 20
        'May 2009' numeric 20
        'June 2009' numeric 20
      END
      peek
      read
    ... quit the access sub system
    END

  • ORA-06550 error while executing procedure

    HI Friends,
    I have written a proc for the below process.
    SP_Control (table)
    sno     campgn_id     campgn_typ     campgn_no     current_wave
    1     ET07001     ONB     ONB01     1
    2     ET07001     ONB     CNB01     1
    3     ET03053     IAL     IAL1A     A
    4     ET03053     IAL     IAL2A     A
    5     ET03053     IAL     IAL3A     A
    6     ET03053     IAL     IAL4A     A
    After calling the procedures with bellow parameters
    Get_next_campgn(‘ONB01’,’ONB’);
    Get_next_campgn(‘CNB01’,’ONB’);
    Get_next_campgn(‘IAL1A’,’IAL’);
    Get_next_campgn(‘IAL2A’,’IAL’);
    Get_next_campgn(‘IAL3A’,’IAL’);
    Get_next_campgn(‘IAL4A’,’IAL’);
    …………… it should update the table with below data.
    sno     campgn_id     campgn_typ     campgn_no     current_wave
    1     ET07001     ONB     ONB02     2
    2     ET07001     ONB     CNB02     2
    3     ET03053     IAL     IAL1B     B
    4     ET03053     IAL     IAL2B     B
    5     ET03053     IAL     IAL3B     B
    6     ET03053     IAL     IAL4B     B
    I have written a procedure like this and its compliled successfully.
    But throws error while executing like
    execute Get_next_campgn(‘ONB01’,’ONB’);
    create or replace procedure Get_next_campgn(p_campgn varchar2,p_type varchar2)
    as
    begin
    update SP_Control set campgn_no = substr(p_campgn,1,length(p_campgn)-1)||to_char(ascii(substr(p_campgn,-1,1))+1) ,
    curr_wave = to_char(ascii(curr_wave)+1)
    where campgn_type = p_type
    and campgn_no = p_campgn ;
    exception
    when others then
    dbms_output.put_line(sqlerrm);
    end Get_next_campgn;
    Error::::
    Error starting at line 15 in command:
    execute Get_next_campgn(‘ONB01’,’ONB’)
    Error report:
    ORA-06550: line 1, column 24:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    ( ) - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    table continue avg count current exists max min prior sql
    stddev sum variance execute multiset the both leading
    trailing forall merge year month day hour minute second
    timezone_hour timezone_minute timezone_region timezone_abbr
    time timestamp interval date
    <a string literal with character set specification>
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    Please suggest....

    The procedure executed successfully for me.
    drop table sp_control;
    create table sp_control
      campgn_no varchar2(20),
      curr_wave varchar2(20),
      campgn_type varchar2(20)
    insert into sp_control values ('ONB01', '1', 'ONB');
    insert into sp_control values ('IAL1A', 'A', 'IAL');
    create or replace procedure Get_next_campgn(p_campgn varchar2,p_type varchar2)
    as
    begin
    update SP_Control set campgn_no = substr(p_campgn,1,length(p_campgn)-1)||to_char(ascii(substr(p_campgn,-1,1))+1) ,
    curr_wave = to_char(ascii(curr_wave)+1)
    where campgn_type = p_type
    and campgn_no = p_campgn ;
    exception
    when others then
    dbms_output.put_line(sqlerrm);
    end Get_next_campgn;
    begin
      Get_next_campgn('ONB01','ONB');
    end;
    select * from sp_control;
    --Output as Follows:
    drop table sp_control succeeded.
    create table succeeded.
    1 rows inserted
    1 rows inserted
    procedure Get_next_campgn(p_campgn Compiled.
    anonymous block completed
    CAMPGN_NO            CURR_WAVE            CAMPGN_TYPE         
    ONB050               50                   ONB                 
    IAL1A                A                    IAL                 
    2 rows selectedJust a hunch, in the Procedure call
    execute Get_next_campgn(‘ONB01’,’ONB’);the "Single Quotes" does not appear correct. They were probably typed into some other editor.
    When executed as
    execute  Get_next_campgn(‘ONB01’,’ONB’);
    Error starting at line 1 in command:
    begin
      Get_next_campgn(‘ONB01’,’ONB’);
    end;
    Error report:
    ORA-06550: line 2, column 19:
    PLS-00103: Encountered the symbol "‘" when expecting one of the following:
       ( ) - + case mod new not null <an identifier>
       <a double-quoted delimited-identifier> <a bind variable>
       table continue avg count current exists max min prior sql
       stddev sum variance execute multiset the both leading
       trailing forall merge year month day hour minute second
       timezone_hour timezone_minute timezone_region timezone_abbr
       time timestamp interval date
       <a string literal with character set specification>
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:So, just replace them in any SQL editor and your Invoker block shall work properly.
    Regards,
    P.

  • Error while executing procedure in TOAD which contains parameter and dblink

    Hi all,
    I am getting error while executing the following code in TOAD and APEX.
    It contains parameter( start_date and end_date) and dblink(@TO_FUT).
    When I hardcode the parameter values, It works fine.
    When I dont give hardcoded values in the procedure, the error comes.
    When I comment the lines whereever parameter comes, still the error comes.
    I am not sure whether it is parameter issue or dblink issue or some other issue
    Is anybody having any clue about this error?
    Your help is very much appreciated.
    The code:
    CREATE OR REPLACE PROCEDURE PROC_ENR_ACC(START_DATE DATE,END_DATE DATE)
    AS
    BEGIN
    EXECUTE IMMEDIATE 'TRUNCATE TABLE OUTPUT_TABLE';
    INSERT INTO OUTPUT_TABLE
    (FIRST_NAME ,LAST_NAME,HID ,EFF_DT,CID,PLAN, FLAG)
    SELECT
    TEMP1.FIRST_NAME,
    TEMP1.LAST_NAME,
    TEMP1.HID,
    TEMP1.EFF_DT,
    TEMP1.CID,
    TEMP1.PLAN,
    NVL((SELECT 'Y'
    FROM FADMIN.MEMI_TABLE@TO_FUT MEMI
    WHERE MEMI.MEME_CK = TEMP1.MEME_CK
    AND MEMI.TXN_EFF_DT = TEMP1.EFF_DT
    AND MEMI.PBP = TEMP1.PLAN
    AND MEMI.MEMI_TXN_CD IN ('AC','RE')
    AND MEMI.MEMI_SEQ_NO = (SELECT MAX (MI.MEMI_SEQ_NO)
    FROM FADMIN.MEMI_TABLE@TO_FUT MI
    WHERE MI.MEME_CK = MEMI.MEME_CK
    AND MI.TXN_EFF_DT = MEMI.TXN_EFF_DT
    AND MI.PBP = MEMI.PBP
    AND MI.MEMI_TXN_CD IN ('AC','RE')
    AND MI.MEMI_INTF_STS = 03 )),'N') AS FLAG
    FROM
    ( SELECT
    M1.FIRST_NAME ,
    M1.LAST_NAME ,
    M1.HID ,
    M1.EFF_DT,
    M1.CID,
    M1.PLAN ,
    (SELECT MEME.MEME_CK
    FROM FADMIN.MEME_TABLE@TO_FUT MEME, FADMIN.GRGR_TABLE@TO_FUT GRGR
    WHERE MEME.M_HIN = M1.HID
    AND MEME.GRGR_CK = GRGR.GRGR_CK
    AND GRGR.GRGR_ID = M1.GRGR_ID
    )AS MEME_CK
    FROM FADMIN.METR_TABLE@TO_FUT M1,
    ( SELECT M3.HID, M3.EFF_DT FROM FADMIN.METR_TABLE@TO_FUT M3
    WHERE M3.TYPE IN ('60','61')
    AND M3.REPLY IN ('117','118')
    AND TRUNC (M3.METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M3.SYIN_INST = (SELECT MAX (M4.SYIN_INST)
    FROM FADMIN.METR_TABLE@TO_FUT M4
    WHERE M4.HID = M3.HID
    AND M4.TYPE IN ('60','61')
    AND M4.REPLY IN ('117','118')
    AND TRUNC (M4.EFF_DT) = TRUNC (M3.EFF_DT))
    ) TEMP
    WHERE M1.TYPE IN ('60','61')
    AND M1.REPLY ='011'
    AND TRUNC (M1.METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M1.SYIN_INST = (SELECT MAX (M2.SYIN_INST)
    FROM FADMIN.METR_TABLE@TO_FUT M2
    WHERE M2.HID = M1.HID
    AND M2.TYPE IN ('60','61')
    AND M2.REPLY ='011'
    AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
    AND M1.HID = TEMP.HID (+)
    AND M1.EFF_DT = TEMP.EFF_DT (+)
    AND TEMP.HID IS NULL
    UNION
    SELECT
    M1.FIRST_NAME ,
    M1.LAST_NAME ,
    M1.HID ,
    M1.EFF_DT,
    M1.CID,
    M1.PLAN ,
    (SELECT MEME.MEME_CK
    FROM FADMIN.MEME_TABLE@TO_FUT MEME, FADMIN.GRGR_TABLE@TO_FUT GRGR
    WHERE MEME.M_HIN = M1.HID
    AND MEME.GRGR_CK = GRGR.GRGR_CK
    AND GRGR.GRGR_ID = M1.GRGR_ID
    )AS MEME_CK
    FROM FADMIN.METR_TABLE@TO_FUT M1
    WHERE M1.TYPE IN ('60','61')
    AND M1.REPLY IN ('016', '017', '022', '023')
    AND TRUNC (M1.METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M1.SYIN_INST = (SELECT MAX (M2.SYIN_INST)
    FROM FADMIN.METR_TABLE@TO_FUT M2
    WHERE M2.HID = M1.HID
    AND M2.TYPE IN ('60','61')
    AND M2.REPLY IN ('016', '017', '022', '023')
    AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
    )TEMP1 ;
    END;
    The error:
    ORA-00918: column ambiguously defined
    ORA-02063: preceding line from TO_FUT
    ORA-06512: at "PROC_ENR_ACC", line 5
    ORA-06512: at line 5

    Okay
    Here's the code formatted
    CREATE OR REPLACE PROCEDURE PROC_ENR_ACC (START_DATE DATE, END_DATE DATE)
    AS
    BEGIN
       EXECUTE IMMEDIATE 'TRUNCATE TABLE OUTPUT_TABLE';
       INSERT INTO OUTPUT_TABLE (FIRST_NAME,
                                 LAST_NAME,
                                 HID,
                                 EFF_DT,
                                 CID,
                                 PLAN,
                                 FLAG)
       SELECT   TEMP1.FIRST_NAME,
                TEMP1.LAST_NAME,
                TEMP1.HID,
                TEMP1.EFF_DT,
                TEMP1.CID,
                TEMP1.PLAN,
                NVL (
                     (SELECT   'Y'
                      FROM   MEMI_TABLE MEMI
                      WHERE       MEMI.MEME_CK = TEMP1.MEME_CK
                      AND MEMI.TXN_EFF_DT = TEMP1.EFF_DT
                      AND MEMI.PBP = TEMP1.PLAN
                      AND MEMI.MEMI_TXN_CD IN ('AC', 'RE')
                      AND MEMI.MEMI_SEQ_NO = (SELECT   MAX (MI.MEMI_SEQ_NO)
                                              FROM   MEMI_TABLE MI
                                              WHERE   MI.MEME_CK = MEMI.MEME_CK
                                              AND MI.TXN_EFF_DT = MEMI.TXN_EFF_DT
                                              AND MI.PBP = MEMI.PBP
                                              AND MI.MEMI_TXN_CD IN ('AC', 'RE')
                                              AND MI.MEMI_INTF_STS = 03)
                      ),'N') FLAG
       FROM (SELECT   M1.FIRST_NAME,
                      M1.LAST_NAME,
                      M1.HID,
                      M1.EFF_DT,
                      M1.CID,
                      M1.PLAN,
                      (SELECT   MEME.MEME_CK
                       FROM   MEME_TABLE MEME, GRGR_TABLE GRGR
                       WHERE       MEME.M_HIN = M1.HID
                       AND MEME.GRGR_CK = GRGR.GRGR_CK
                       AND GRGR.GRGR_ID = M1.GRGR_ID) MEME_CK
             FROM   METR_TABLE M1,
                    (SELECT   M3.HID, M3.EFF_DT
                     FROM   METR_TABLE M3
                     WHERE   M3.TYPE IN ('60', '61')
                     AND M3.REPLY IN ('117', '118')
                     AND TRUNC (M3.METR_TRANS_DT) BETWEEN START_DATE AND  END_DATE
                     AND M3.SYIN_INST = (SELECT   MAX (M4.SYIN_INST)
                                         FROM   METR_TABLE M4
                                         WHERE   M4.HID = M3.HID
                                         AND M4.TYPE IN ('60', '61')
                                         AND M4.REPLY IN ('117', '118')
                                         AND TRUNC (M4.EFF_DT) = TRUNC (M3.EFF_DT))
                     ) TEMP
             WHERE   M1.TYPE IN ('60', '61') AND M1.REPLY = '011'
             AND TRUNC (M1.METR_TRANS_DT) BETWEEN START_DATE AND  END_DATE
             AND M1.SYIN_INST = (SELECT   MAX (M2.SYIN_INST)
                                 FROM   METR_TABLE M2
                                 WHERE       M2.HID = M1.HID
                                 AND M2.TYPE IN ('60', '61')
                                 AND M2.REPLY = '011'
                                 AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
            AND M1.HID = TEMP.HID(+)
            AND M1.EFF_DT = TEMP.EFF_DT(+)
            AND TEMP.HID IS NULL
            UNION
            SELECT   M1.FIRST_NAME,
                     M1.LAST_NAME,
                     M1.HID,
                     M1.EFF_DT,
                     M1.CID,
                     M1.PLAN,
                     (SELECT   MEME.MEME_CK
                      FROM   MEME_TABLE MEME, GRGR_TABLE GRGR
                      WHERE       MEME.M_HIN = M1.HID
                      AND MEME.GRGR_CK = GRGR.GRGR_CK
                      AND GRGR.GRGR_ID = M1.GRGR_ID) MEME_CK
            FROM   METR_TABLE M1
            WHERE   M1.TYPE IN ('60', '61')
            AND M1.REPLY IN ('016', '017', '022', '023')
            AND TRUNC (M1.METR_TRANS_DT) BETWEEN START_DATE AND  END_DATE
            AND M1.SYIN_INST = (SELECT   MAX (M2.SYIN_INST)
                                FROM   METR_TABLE M2
                                WHERE   M2.HID = M1.HID
                                AND M2.TYPE IN ('60', '61')
                                AND M2.REPLY IN ('016', '017', '022', '023')
                                AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
            ) TEMP1;
    END;
    /When posting code if you put {noformat}{noformat} (with the curly brackets and in lower case) above and below it you can preserve formatting.
    To your original question...
    Is the link name supposed to be variable?
    What do you mean by 'hard coding' the values, do you mean in the procedure itself so you'd actually PROC_ENR_ACC();?
    What happens when you run this?DECLARE
    start_date DATE;
    end_date DATE;
    BEGIN
    start_date := '01-JAN-2009';
    end_date := '01-FEB-2009';
    PROC_ENR_ACC(start_date, end_date);
    END;
    I need to know exactly how to recreate your error...
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    +Don't forget to mark replies helpful or correct+ ;)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Impdp errors with ORA-01400: cannot insert NULL into

    Hi Experts,
    I have very intresting situation when I use impdp to import table back to DB.
    Environment:
    Database Server: 10.2.0.4 Enterprise
    OS: RHEL 5.5 64-bit
    We have a table and it's size is 350+ GB and so to reclaim space I want to perform expdp/impdp operation. When I following below steps:
    1) expdp table
    2) drop table
    3) impdp full table
    It works like a charm and I am able to reclaim 83% space and table size shows about 20GB.
    But when I follow below method:
    1) expdp table
    2) truncate table (To save some time not to import indexes, stats, constraints , etc)
    3) impdp table
    I get following error:
    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
    Master table "SYS"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
    Starting "SYS"."SYS_IMPORT_TABLE_01": sys/******** tables=<schema>.<table_name> directory=test_dir dumpfile=<table_name>_%u.dmp logfile=impdp_<table_name>.log parallel=16 CONTENT=DATA_ONLY
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    ORA-31693: Table data object "<schema"."table_name" failed to load/unload and is being skipped due to error:
    ORA-01400: cannot insert NULL into ("schema"."table_name"."ID")
    Job "SYS"."SYS_IMPORT_TABLE_01" completed with 1 error(s) at 16:12:28
    Please advise how to proceed further, it seems like I am hitting some sort of Bug but metalink does not show any.
    Regards,
    MS
    Edited by: user10651321 on Nov 9, 2012 4:38 PM

    expdp and impdp operations should not be executed as SYS - try SYSTEM account instead. See first Note section here - http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_import.htm#sthref243
    Pl post the complete expdp and impdp commands used, along with a description of the table for which you encounter this error.
    HTH
    Srini

  • Why am I getting the error "Coercion Failed: Input cannot be null for this coercion"?

    I created a OOTB team site, with a OOTB document library and an OOTB "Approval - SharePoint 2010" workflow.  Under the workflow's start options I have "Allow this workflow to be manually..." checked.  On the next workflow setup page, I put
    myself in the Assign To field and put "test" in the Request field.  I left everything else blank. 
    Then, I setup a retention stage in the Information Management Policy settings for the library.  The event is Modified + 1 days, action is Start a workflow and I selected the workflow described above.  I set the Recurrence for 1 days.
    If I execute the workflow manually, it executes without error. 
    When the IMP executes the workflow, the status indicated in the column added to the library is "Canceled".  Clicking on the Canceled link opens the Workflow Information.  In the Workflow History section the Event Type is Error, User ID is System
    Account and Description is "Coercion Failed: Input cannot be null for this coercion". 
    Research shows that this error can be invoked when creating custom workflows that contain empty input fields when executed.  I would think that if there were required input fields in the workflow
    configuration, that the workflow would error when manually executed. 
    Any help is appreciated.  Thank you.
    Matt H.

    I had found that article previously but it doesn't seem to apply since this is OOTB and not a workflow created in SD.  I would expect that MS would have created the workflow in such a manner that it would work with IMP.  Besides, I don't think
    it's possible to edit the default Approvers workflow.  Also, I'm sure I'm not the first one out there to use the Approvers workflow with IMP.  If it was broken OOTB, someone else would have discovered it.  My guess is that there is something
    not configured correctly on the server, but I don't know how to start to diagnose it based on this error message.Matt H.

  • Error in Executing Procedure through DBLink

    Hi,
    I am facing some problems in executing a procedure through DBLink.
    I have two schema A and B in two different database.
    In schema A I am having one procedure X in package Y and my requirement is that I want to execute this procedure in schema B. So in schema B i have created one DBLink ABC and trying to execute procedure X using this DB link.
    begin
    A.Y.X@ABC;
    end;
    But I am getting below error:
    ORA-06550: line 2, column 1:
    PLS-00201: identifier 'A.Y.X@ABC' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    Any help would be greatly appreciated!
    Thanks In Advance..
    Regards,
    Sachin Bansal

    Hi,
    Yes, I am connecting to user A of DB1 and in this user I am having procedure X in Package Y. My DBLink in Schema B of DB2 is pointing to user A of DB1.
    I have created DBLINK using below script:
    create public database link abc
    connect to A
    identified by A
    using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXX)(PORT=1521)))(CONNECT_DATA=(service_name=XXX)))';
    Above DBLInk is working fine..I am able to access all the table of schema A in schema B using this DBLink. But when I trying to execute any procedre of schema A in schema B then i am getting error.
    Regards,
    Sachin

  • Exception: Error decoding message (Key cannot be null)

    Hi guys,
         Coherence 3.3.1/389
         .Net API 3.3.1.2
         I've wrote small invocation task, which collects the info about cluster members, stores it to HashMap and return it as result. This is the code:
         NamedCache cache = CacheFactory.getCache(sCacheName);
         CacheService service = cache.getCacheService();
         Cluster cluster = service.getCluster();
         HashMap res = new HashMap();
         Set members = cluster.getMemberSet();
         Iterator iter = members.iterator();
         while(iter.hasNext())
         Member member = (Member)iter.next();
         res.put((Object)member.getProcessName(), new Integer(member.getPort()));
         As you can see if member.getProcessName() returns null, then null is placed to HashMap.
         When the result was returned to the client, I've got this exception:
         2007-10-04 09:55:45.849 <Error> (thread=Tangosol.Net.Messaging.Impl.ConnectionManager+ConnectionManagerDaemon): Error decoding message
         System.ArgumentNullException: Key cannot be null.
         Parameter name: key
         at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
         at System.Collections.Hashtable.set_Item(Object key, Object value)
         at Tangosol.IO.Pof.PofStreamReader.ReadAsObject(Int32 typeId) in c:\dev\release.net\coherence-net-v3.3\src\Coherence\IO\Pof\PofStreamReader.cs:line 3446
         at Tangosol.IO.Pof.PofStreamReader.ReadObject(Int32 index) in c:\dev\release.net\coherence-net-v3.3\src\Coherence\IO\Pof\PofStreamReader.cs:line 2284
         at Tangosol.Net.Messaging.Impl.Response.ReadExternal(IPofReader reader) in c:\dev\release.net\coherence-net-v3.3\src\Coherence\Net\Messaging\Impl\Response.cs:line 117
         at Tangosol.Net.Messaging.Impl.Codec.Decode(IChannel channel, DataReader reader) in c:\dev\release.net\coherence-net-v3.3\src\Coherence\Net\Messaging\Impl\Codec.cs:line 118
         at Tangosol.Net.Messaging.Impl.Connection.DecodeMessage(DataReader reader) in c:\dev\release.net\coherence-net-v3.3\src\Coherence\Net\Messaging\Impl\Connection.cs:line 874
         I understood why it was happened, but I did not understood why it was masked and my client application was frozen until request time accured (180s).
         Why did you mask it?
         Regards,
         Dmitry.

    Hi
    Thanks for answered.
    I tried to import just 6 lines but the same error.
    Did you know, what could be?
    I am pasting the log.
    TOTAL STEPS  2
    1. Convert Data:         completed  in 1 sec.
    2. Load and Process:     Failed  in 1 sec.
    3. Import:               completed  in 1 sec.
    [Selection]
    FILE=\GrupoPit\FRATECO\DataManager\DataFiles
    41010100001.csv
    TRANSFORMATION=\GrupoPit\FRATECO\DataManager\TransformationFiles
    Frateco.xls
    CLEARDATA= Yes
    RUNLOGIC= Yes
    CHECKLCK= No
    [Messages]
    Convert Data
    Success
    Record Count : 6
    Accept Count : 6
    Reject Count : 0
    Skip Count   : 0
    Key cannot be null.
    Parameter name: key

  • MSI Bundle error message: Access Token cannot be null

    Hi
    I deploy Lotus Notes client to all workstations, but some workstation return the error message "MSI_Unknow_Error{Access Token cannot be null}",What reason will cause the error ?? Anyone seem the similar problem ?
    wyld

    wyld,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • ORA-00900: invalid SQL statement Error while Executing Procedure

    Hi:
    I am trying to execute following procedure through java code, but i am getting ORA-00900: invalid SQL statement error.
    Procedure is :
    <code>
    (vResult out int)
    as
    vCardId varchar2(16);
    vForacid varchar2(16);
    vApp_Entry_No varchar2(10);
    vSrNo number(6);
    vCardStatus char(1);
    vCardStat char(2);
    vExpiryDate date;
    Cursor cardCur1 is
    select u.card_number,trim(u.ACCOUNT_NUMBER),u.CARD_STATUS,to_char(u.EXPIRY_DATE,'dd-MM-yyyy')
    FROM DailyCardData u
    where default_indicator='1'
    and isprocessed = 'N'
    order by expiry_date;
    begin
    vSrNo := 0;
    vResult := 0;
    open cardCur1;
    Loop
    fetch cardCur1 into vCardId,vForacid,vCardStat,vExpiryDate;
    if cardCur1%NOTFOUND then
    exit;
    end if;
    if (vCardStat != null) then
    vCardStatus := 'H';
    elsif (vExpiryDate <= sysdate) then
    vCardStatus := 'E';
    else
    vCardStatus := null;
    end if;
    select a.app_entry_no into vApp_Entry_No from Application a,ApplicationLinkedAccounts l
    where l.foracid = vForacid and l.AcSrNo = '1'
    and a.app_entry_no = l.app_entry_no
    and a.cardid is null
    and a.DOWNLOADFILECREATIONFLAG = 'Y';
    update Application set CardId = vCardId,
    Card_Status = vCardStatus,APPLICATIONPROCESSEDFLAG = 'Y',
    APPLICATIONPROCESSEDdate = DOWNLOADFILECREATIONdate
    where App_Entry_No = vApp_Entry_No;
    commit;
    update DailyCardData set isprocessed = 'Y',app_entry_no = vApp_Entry_No
    where card_number = vCardId;
    commit;
    end Loop;
    close cardCur1;
    vResult := 1;
    end;
    </code>
    Can any body help me in that?
    Thank You,
    Anup

    First of all I don't see a procedure header.
    Secondly I see you commit inside your procedure. This is a bug.
    Thirdly I see you also commit inside a loop. This is also a bug, and needs to be removed asap.
    The error indicates a statement doesn't parse. As you don't post the error stack, nor a table definition no one can reproduce the problem.
    You need to isolate the statements, one by one, and run them through sql*plus to see what happens.
    Sybrand Bakker
    Senior Oracle DBA

  • Error while executing procedure : ORA-06550 and PLS-00103

    Hi I have created the Stored Procedure as,
    CREATE OR REPLACE PACKAGE BODY APPS.TMP_IMPORT_ITEMS_PKG AS
      PROCEDURE LOAD_INTERFACE_TABLE(organization_code IN VARCHAR2, errbuf OUT VARCHAR2, retcode OUT NUMBER) IS
      org_code varchar2(3);
      BEGIN
        org_code:= organization_code;
        DBMS_OUTPUT.PUT_LINE('Organization Code is...' || org_code);
      END LOAD_TABLE;
    END TMP_IMPORT_ITEMS_PKG;
    And here is the code what i am trying to execute:
    DECLARE
      V_ERRBUF VARCHAR2(1000);
      V_RETCODE NUMBER;
    BEGIN
      EXEC TMP_IMPORT_ITEMS_PKG.LOAD_INTERFACE_TABLE('x1', V_ERRBUF, V_RETCODE);
    END;
    when i run the above code i am getting the following error:
    ORA-06550: line 5, column 10:
    PLS-00103: Encountered the symbol "TMP_IMPORT_ITEMS_PKG" when expecting one of the following:
    := . ( @ % ;
    The symbol ":=" was substituted for "TMP_IMPORT_ITEMS_PKG" to continue.
    Can any body tell me what's wrong with the above code
    Thanks in Advance,
    Kumar K
    Edited by: user2054206 on Dec 17, 2008 9:09 PM
    Edited by: user2054206 on Dec 17, 2008 9:27 PM

    BEGIN
    EXEC TMP_IMPORT_ITEMS_PKG.LOAD_INTERFACE_TABLE('x1', '', null);
    END;why are you executing it like that , it should be
    EXEC TMP_IMPORT_ITEMS_PKG.LOAD_INTERFACE_TABLE('x1', '', null);or as Prabhakar said in PL/SQL
    BEGIN
         TMP_IMPORT_ITEMS_PKG.LOAD_INTERFACE_TABLE('x1', '', null);
    END;Edited by: Rajneesh Kumar on Dec 18, 2008 11:08 AM

  • RPC error while executing procedure

    Hi,
    whenever I execute a procedure which extracts data from COBOL through relativity, it gives me RPC error and exits, the procedure code and error description is provided below,
    Procedure Code:
    ===========
    CREATE OR REPLACE Procedure CDB.pop_UtilityBill AS
    txt_Truncate Varchar2(200);
    txt_Rename Varchar2(500);
    BEGIN
    txt_Truncate := 'truncate table UtilityBill_Tmp';
    execute immediate (txt_Truncate);
    --Loading of Date from UTLMERGE File to Temporary Table
    Insert into UtilityBill_TMP
    (UtlBillDate,Branch ,Booth ,Batch,Card,Bill ,DocNo,Account ,ElcAcc ,ElcFil, GasAcc, GasFil, RegCode , ExchCode, PtclAcc , PtclFil ,
    WasaAcc, WasaFil , Amount , TranType , ChequeNo , Bank , Flag , UtlBillTime , PostId , FlatbedFlag , FlatbedMicrread , FlatbedEndorse , BillingMonth )
    Select DECODE("MrgDate",0,TO_DATE(NULL),TO_DATE("MrgDate"+1721423,'J')) UtlBillDate,
    "Branch",
    "Booth",
    "Batch",
    "Card",
    "Bill",
    "DocNo",
    "Account",
    "ElcAcc",
    "ElcFil",
    "GasAcc",
    "GasFil",
    "RegCode",
    "ExchCode",
    "PtclAcc",
    "PtclFil" ,
    "WasaAcc",
    "WasaFil" ,
    "Amount",
    "TranType",
    "ChequeNo",
    "Bank" ,
    "Flag" ,
    "MrgTime" UtlBillTime ,
    "PostId",
    "FlatbedFlag",
    "FlatbedMicrread" ,
    "FlatbedEndorse",
    "BillingMonth"
    From UTLMRG2M_CURR@BIDB
    INNER JOIN Branches_Control_UtlBill BU on BU.Branch = "Branch"
    where "MrgDate" > UtilityBill_Date
    and "Card" <> 9;
    COMMIT;
    --Loading of Date from Temporary Table to Interface Table
    INSERT INTO UtilityBill_I
    (UtlBillDate,Branch ,Booth ,Batch,Card,Bill ,DocNo,Account ,ElcAcc ,ElcFil, GasAcc, GasFil, RegCode , ExchCode, PtclAcc , PtclFil ,WasaAcc,
    WasaFil , Amount , TranType , ChequeNo , Bank , Flag ,UtlBillTime , PostId , FlatbedFlag , FlatbedMicrread , FlatbedEndorse , BillingMonth )
    Select UtlBillDate,
    Branch,
    Booth,
    Batch,
    Card,
    Bill,
    DocNo,
    Account,
    ElcAcc,
    ElcFil,
    GasAcc,
    GasFil,
    RegCode,
    ExchCode,
    PtclAcc,
    PtclFil ,
    WasaAcc,
    WasaFil ,
    Amount,
    TranType,
    ChequeNo,
    Bank ,
    Flag ,
    UtlBillTime ,
    PostId,
    FlatbedFlag,
    FlatbedMicrread ,
    FlatbedEndorse,
    BillingMonth
    From UtilityBill_TMP;
    COMMIT;
    --Swapping of Data from Interface Table to Actual Table
    EXECUTE IMMEDIATE('RENAME UtilityBill TO UtilityBill_Bkp');
    EXECUTE IMMEDIATE('RENAME UtilityBill_I TO UtilityBill');
    EXECUTE IMMEDIATE('RENAME UtilityBill_Bkp TO UtilityBill_I');
    -- Insertion in Interface Table for Next Day Preparation
    INSERT INTO UtilityBill_I
    (UtlBillDate,Branch ,Booth ,Batch,Card,Bill ,DocNo,Account ,ElcAcc ,ElcFil, GasAcc, GasFil, RegCode , ExchCode, PtclAcc , PtclFil ,WasaAcc,
    WasaFil , Amount , TranType , ChequeNo , Bank , Flag ,UtlBillTime , PostId , FlatbedFlag , FlatbedMicrread , FlatbedEndorse , BillingMonth )
    Select UtlBillDate,
    Branch,
    Booth,
    Batch,
    Card,
    Bill,
    DocNo,
    Account,
    ElcAcc,
    ElcFil,
    GasAcc,
    GasFil,
    RegCode,
    ExchCode,
    PtclAcc,
    PtclFil ,
    WasaAcc,
    WasaFil ,
    Amount,
    TranType,
    ChequeNo,
    Bank ,
    Flag ,
    UtlBillTime ,
    PostId,
    FlatbedFlag,
    FlatbedMicrread ,
    FlatbedEndorse,
    BillingMonth
    From UtilityBill_TMP;
    COMMIT;
    txt_Truncate := 'TRUNCATE TABLE UtilityBill_Tmp';
    execute immediate(txt_Truncate);
    Commit;
    END;
    Error Description:
    ===========
    BEGIN pop_UtilityBill; END;
    ERROR at line 1:
    ORA-02068: following severe error from BIDB
    ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=cdbprd)(PORT=1521)
    ))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=HSODBC1)))
    ORA-06512: at "CDB.POP_UTILITYBILL", line 10
    ORA-06512: at line 1
    HS trace file:
    ========
    Oracle Corporation --- TUESDAY MAY 08 2012 18:03:53.979
    Heterogeneous Agent Release
    9.2.0.8.0
    HS Agent received unexpected RPC disconnect
    Network error 1003: NCR-01003: NCRS: Read error.
    Oracle database Version:
    ===============
    Oracle9i Release 9.2.0.8.0 - Production
    Operating System:
    ===========
    Microsoft Windows Server 2003 SP2
    can anybody help me out on this?

    remove the line break then if youre loading that in. Apologies, I didnt read the next line. The error is with the insert, if youre loading that up as a sql command file it wont run like that with the line break as it reads it as separate commands quick example.
    SQL> host more ins.sql
    insert into t1
    (select * from dba_objects
    where rownum = 1);
    commit;
    SQL>
    SQL> create table t1 as select * from dba_objects where 1=0;
    Table created.
    SQL> @ins
    OWNER
    OBJECT_NAME
    SUBOBJECT_NAME                  OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE
    CREATED   LAST_DDL_ TIMESTAMP           STATUS  T G S  NAMESPACE
    EDITION_NAME
    SYS
    ICOL$
                                           20              2 TABLE
    OWNER
    OBJECT_NAME
    SUBOBJECT_NAME                  OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE
    CREATED   LAST_DDL_ TIMESTAMP           STATUS  T G S  NAMESPACE
    EDITION_NAME
    09-DEC-10 09-DEC-10 2010-12-09:03:39:59 VALID   N N N          1
    Commit complete.
    SQL> select * from t1;
    no rows selected
    SQL>
    -- ok, try it without the linebreak
    SQL> host more ins1.sql
    insert into t1
    (select * from dba_objects
    where rownum = 1);
    commit;
    SQL> @ins1
    1 row created.
    Commit complete.
    SQL>

  • Internal communication error when execute procedure on HANA MPP Cluster

    Hi All,
           I'm executing a hana POC at customer environment, it's a 6 nodes hana cluster (with one master & 5 work node).
    When I create a table cross all nodes, and than execute a procedure with that table, it's failed by internal error
    create columnt table CC.AA (NEWDATE DATE primary key) replica AT all locations;
    create procedure CC.P_INS_ADW_DIM_DATE( )
    LANGUAGE SQLSCRIPT
    SQL SECURITY INVOKER
    AS
    FULLDATE DATA;
    MONTHNUMBER INTEGER;
    YEARNUMBER INTEGER;
    DAYNUMBER INTEGER;
    BEGIN
           FULLDATE:=TO_DATE('19800101','YYYYMMDD');
           INSERT INTO "CC"."AA" CALUES(FULLDATE);
    END;
    CALL CC.P_INS_ADM_DIM_DATE( );
    The error message like below:
    SAP DBTech JDBC: Cannot connect to VolumeID=7 [Cannot connect to host 172.21.36.58:34215 [Connection timed out]]
    172.21.36.58 is internal communication IP address of the cluster node, while is public IP should be 192.168.1.123
    I'm wonder if Hana call data through internal channel, does the port should be 3××003
    And I saw in /etc/hosts internal IP bound to host name, not public IP
    hana003  172.21.36.58
    Can anyone help?
    thanks!

    Hi Experts,
      Did anybody faced same problem mentioned above? how to fix it.
    Thanks,
    Umashankar

  • Error when execute procedure

    The procedure compile without error but when I execute I get this error. please help
    ORA-01008: not all variables bound
    ORA-06512: at "ITEMINCSVFORMAT1AA", line 116
    ORA-06512: at line 1
    CREATE OR REPLACE PROCEDURE itemincsvformat1aa (
       p_spnumber   IN       VARCHAR2,
       p_result     OUT      sys_refcursor
    IS
       v_letting   VARCHAR2 (40);
       v_call      VARCHAR2 (40);
       lv_sql      VARCHAR2 (32767) := NULL;
    BEGIN
       SELECT DISTINCT l.letting, CALL
                  INTO v_letting, v_call
                  FROM letprop l, proposal p
                 WHERE l.lcontid = p.contid AND cprojnum = p_spnumber;
       --            AND SUBSTR (l.lcontid, 4, 4) < '5';
       lv_sql :=
          ' SELECT  DISTINCT   (''Job''||'' ''||l.lcontid) "Job No.", e.iplineno "Line Number" , g.csecnum "Section", e.eiitem "Item Number",
             INITCAP(trim (i.idescrl) || '''' || trim(e.isupdes)) "Description",
             ( SELECT r.qty
               FROM propitem r, proposal p, letprop l
              WHERE r.contid = p.contid
              and p.contid = l.lcontid    
              and l.letting = :B3
              and l.call = :B4    
              and r.lineflag = ''L''
              and r.iplineno = s.iplineno) quantity ,         
             i.iunits "Units",                 
                to_char( (SELECT DISTINCT pi.price
                         FROM propitem pi
                        WHERE pi.contid = p.contid
                          AND pi.lineflag = ''L''
                          AND TRIM (pi.iplineno) <> '' ''
                          AND TRIM (pi.iplineno) = TRIM (e.iplineno)), ''$999,999,999.00'')  "Engineers (Unit Price)"  ,                
                         to_char(((SELECT DISTINCT pi.price
                                            FROM propitem pi
                                         WHERE pi.contid = p.contid
                                              AND pi.lineflag = ''L''
                                              AND TRIM (pi.iplineno) <> '' ''
                                              AND TRIM (pi.iplineno) = TRIM (e.iplineno)) * 
                           ( SELECT r.qty
               FROM propitem r, proposal p, letprop l
              WHERE r.contid = p.contid
              and p.contid = l.lcontid    
              and l.letting = :B5
              and l.call = :B6    
              and r.lineflag = ''L''
              and r.iplineno = s.iplineno)), ''$999,999,999.00'') "Engineers (Extended Amount)"    ';
       FOR lv_rec IN (SELECT DISTINCT s.vendor,
                                      TO_CHAR (s.calcbtot, '999,999,999.00')
                                 FROM bidtabs b, bidders s
                                WHERE b.CALL = s.CALL
                                  AND b.letting = s.letting
                                  AND b.vendor = s.vendor
                                  AND b.letting = v_letting
                                  AND b.CALL = v_call
                             ORDER BY 2)
       LOOP
          lv_sql :=
                lv_sql
             || ', to_char(MAX(DECODE(trim(s.vendor),'''
             || TRIM (lv_rec.vendor)
             || ''',bidprice)),  ''$999,999,999.00'') as "'
             || TRIM (lv_rec.vendor)
             || ' (Unit Price) " , 
             to_char(MAX(DECODE(trim(s.vendor),'''  || TRIM (lv_rec.vendor) || ''',bidprice)*   ( SELECT r.qty   FROM propitem r, proposal p, letprop l   WHERE r.contid = p.contid    and p.contid = l.lcontid    
              and l.letting = :B7    and l.call = :B8             and r.lineflag = ''L''      and r.iplineno = s.iplineno)) ,  ''$999,999,999.00'') as "'  || TRIM (lv_rec.vendor)    || ' (Extension) "';
       END LOOP;
       lv_sql :=
             lv_sql
          || '  FROM itemlist i,
                          estitem e,
                          estcatg g,
                          propproj x,
                          proposal p,
                          letprop l,
                          bidtabs s
             WHERE (p.contid = x.contid AND x.pcn = g.pcn)
                      AND e.pcn = g.pcn
                      AND e.cn = g.cn
                      AND i.item = e.eiitem
                      AND i.ispecyr = p.cspecyr
                      and s.IPLINENO = e.IPLINENO
                      AND e.iplineno <> '' ''
                      AND e.eiitem <> ''2550601/01000''
                      AND e.eiitem <> ''2565601/00031''
                      AND e.eiitem <> ''2565601/00032''
                      AND e.eiitem <> ''2565601/00033''
                      AND e.eiitem <> ''2402601/01000''
                      AND l.lcontid = p.contid
                      AND l.letting = :B1
                      AND l.call = :B2
                      and l.call = s.call
                      and l.letting = s.letting
                      GROUP BY e.iplineno,
                                 g.csecnum,    
                                 e.eiitem,                          
                                 i.idescrl,
                                 e.eiitem,                        
                                 i.idescrl,
                                 i.iunits,                                                    
                                 e.isupdes ,
                                 g.pcn ,
                                 p.contid,                     
                                 s.iplineno ,
                                 l.lcontid       
                 ORDER BY e.iplineno ';
       DBMS_OUTPUT.put_line (lv_sql);
       OPEN p_result FOR lv_sql
       USING v_letting, v_call, v_letting, v_call, v_letting, v_call, v_letting, v_call;
    END;

    Thank you for the reply. I really appreciate that. I could get the value from this query and pass into the daynamic query
    SELECT DISTINCT l.letting, CALL
    INTO v_letting, v_call
    FROM letprop l, proposal p
    WHERE l.lcontid = p.contid AND cprojnum = p_spnumber;
    I tried this but I got an error message.
          to_char(MAX(DECODE(trim(s.vendor),'''  || TRIM (lv_rec.vendor) || ''',bidprice)*   ( SELECT r.qty   FROM propitem r, proposal p, letprop l   WHERE r.contid = p.contid    and p.contid = l.lcontid    
              and l.letting = :v_letting    and l.call = v_call           and r.lineflag = ''L''      and r.iplineno = s.iplineno)) ,  ''$999,999,999.00'') as "'  || TRIM (lv_rec.vendor)    || ' (Extension) "';
    SELECT DISTINCT l.letting, CALL
                  INTO v_letting, v_call
                  FROM letprop l, proposal p
                 WHERE l.lcontid = p.contid AND cprojnum = p_spnumber;
            FOR lv_rec IN (SELECT DISTINCT s.vendor,
                                      TO_CHAR (s.calcbtot, '999,999,999.00')
                                 FROM bidtabs b, bidders s
                                WHERE b.CALL = s.CALL
                                  AND b.letting = s.letting
                                  AND b.vendor = s.vendor
                                  AND b.letting = v_letting
                                  AND b.CALL = v_call
                             ORDER BY 2)
       LOOP
          lv_sql :=
                lv_sql
             || ', to_char(MAX(DECODE(trim(s.vendor),'''
             || TRIM (lv_rec.vendor)
             || ''',bidprice)),  ''$999,999,999.00'') as "'
             || TRIM (lv_rec.vendor)
             || ' (Unit Price) " , 
             to_char(MAX(DECODE(trim(s.vendor),'''  || TRIM (lv_rec.vendor) || ''',bidprice)*   ( SELECT r.qty   FROM propitem r, proposal p, letprop l   WHERE r.contid = p.contid    and p.contid = l.lcontid    
              and l.letting = :B7    and l.call = :B8             and r.lineflag = ''L''      and r.iplineno = s.iplineno)) ,  ''$999,999,999.00'') as "'  || TRIM (lv_rec.vendor)    || ' (Extension) "';
       END LOOP;

  • Error while executing procedure

    Hi,
    I am executing a procedure, which will write a query result into a spreadsheet and it will store it into the local PC. i am trying to run this procedure using TEST username.
    Now i created a utl_file directory like below:
    create directory MYDIR5 AS 'c:\raj';
    and i tried to assign permission like below :
    grant read,write on directory MYDIR5 to TEST
    i got the below error, while i am executing the GRANT stmt:
    ORA-01749: you may not GRANT/REVOKE privileges to/from yourself
    So who has to grant privileges for this. I tried to execute the procedure without granting privileges but it end up with ORA-29283: error.
    So pls help me on this issue.
    Thanks in advance!!!

    You looked up the CREATE DIRECTORY statement right? What does it say under "Prerequisites"?
    > I am executing a procedure, which will write a query result into a spreadsheet and it will store it into the local PC
    Is the database also on your local PC? UTL_FILE runs on the database server.

Maybe you are looking for

  • IMessage has randomly stopped working on my Macbook Pro, what can I do?

    My iMessage on my macbook pro has stopped working. I can log in just fine and I have logged out and back in but still cannot send or receive messages. It worked just fine at my house and last year at college but for whatever reason it has stopped wor

  • Ducking not working in imovie

    Hi... running the lastest version of imovie.  All up to date. Ducking does not work when selecting on a video clip.  i.e. I want the background music to fade and keep audio on clip up. I have tried with several different songs, close and restarted im

  • Customer Master Address and Outputs

    I have maintained two address es in my customer master, The Street address and a PO box. I want the delivery Note out put to print the street address on it and the Invoice out put to print the PO BOX. Currently my Delivery Note is showing the PO BOX

  • Completely stuck

    Hey everyone, so I can't find any help elsewhere on the internet so I am coming here. I bought lbp 1, 2, and racing and absolutely loved them all. So lbp 3 came and and it was a no brainer, right?  I bought this game, played it for 30 minutes or so a

  • Find my device icon not showing up

    I have a macbook air and when I use find my device on my ios device, the macbook air shows up, but where the icon is suppose to be, shows a pink box. Any idea why this is happening? Thanks