ORA 2343 Valuenot allowed error coming

Hi All,
I'm getting 'ORA 2343 Valuenot allowed' error coming while creating a report query. Please advice.
Below is the query used.
Regards,
Aparna S
select null date_temp,circle, EQUP_INDEX, port,sum(Total_transmit_drop_KB),sum(Total_receive_drop_KB),sum(Total_output_packet_NOS),sum(Total_input_packet_NOS),avg(Rate_of_input_traffic_Mb_Sec),avg(Rate_of_output_traffic_Mb_Sec) from (
--decode(sign(diff),-1, prfr_start_time +diff,prfr_start_time) prfr_start_time
select circle, EQUP_INDEX, port, diff,
(Total_input_traffic_MB - LAG(Total_input_traffic_MB) OVER (PARTITION BY EQUP_INDEX,port ORDER BY EQUP_INDEX,port1,port) ) /900 * 8 Rate_of_input_traffic_Mb_Sec,
(Total_output_traffic_MB - LAG(Total_output_traffic_MB) OVER (PARTITION BY EQUP_INDEX,port ORDER BY EQUP_INDEX,port1,port)) /900 * 8 Rate_of_output_traffic_Mb_Sec,
(Total_input_packet_NOS -LAG(Total_input_packet_NOS) OVER (PARTITION BY EQUP_INDEX,port ORDER BY EQUP_INDEX,port1,port)) Total_input_packet_NOS,
(Total_output_packet_NOS - LAG(Total_output_packet_NOS) OVER (PARTITION BY EQUP_INDEX,port ORDER BY EQUP_INDEX,port1,port)) Total_output_packet_NOS,
(Total_receive_drop_KB - LAG(Total_receive_drop_KB) OVER (PARTITION BY EQUP_INDEX,port ORDER BY EQUP_INDEX,port1,port)) Total_receive_drop_KB,
(Total_transmit_drop_KB- LAG(Total_transmit_drop_KB) OVER (PARTITION BY EQUP_INDEX,port ORDER BY EQUP_INDEX,port1,port)) Total_transmit_drop_KB,
Destination_Router from (
SELECT /*+ ORDERED USE_NL(PR) USE_NL(PD)INDEX(PR PRFR_TIME_TYPES_IDS_UNQ) */
TRUNC(pr.prfr_start_time) prfr_start_time,
--TO_CHAR(pr.prfr_start_time,:QRY3) grpCol1,
--&P_AGG(TO_CHAR(pr.prfr_start_time, :QRY4)&P_MIN) grpCol2,
area_area_code circle,
pr.PRFR_NEMS_PARENT_ID EQUP_INDEX,
--MAX(DECODE(po.PRFO_CODE,'port',SUBSTR(pd.prfd_value,INSTR(pd.prfd_value,'/')+1,1000))) port1,
''''||MAX(DECODE(po.PRFO_CODE,'port',pd.prfd_value)) port,
MAX(pr.prfr_start_time - TO_DATE(:p_start_date,'DD-MON-YYYY HH24:MI')) diff,
SUM(DECODE(po.PRFO_CODE,'Total_input-traffic',to_number(nvl(pd.prfd_value,0))))/1024/1024 Total_input_traffic_MB,
SUM(DECODE(po.PRFO_CODE,'Total_output-traffic',to_number(nvl(pd.prfd_value,0)))) /1024/1024 Total_output_traffic_MB,
SUM(DECODE(po.PRFO_CODE,'Total_input-packet',to_number(nvl(pd.prfd_value,0)))) Total_input_packet_NOS,
SUM(DECODE(po.PRFO_CODE,'Total_output-packet',to_number(nvl(pd.prfd_value,0)))) Total_output_packet_NOS,
SUM(DECODE(po.PRFO_CODE,'Total_receive-drop',to_number(nvl(pd.prfd_value,0)))) /1024 Total_receive_drop_KB,
SUM(DECODE(po.PRFO_CODE,'Total_transmit-drop',to_number(nvl(pd.prfd_value,0)))) /1024 Total_transmit_drop_KB,
MAX(DECODE(po.PRFO_CODE,'Destination_Router',pd.prfd_value)) Destination_Router
FROM ( select equp_id,equp_index,area_area_code,area_code from
areas ar1,locations lo,equipment eq
where exists (select 'X' from areas B where ar1.area_code = b.area_code &QRY1 )
and eq.equp_locn_ttname = lo.locn_ttname
and lo.locn_area_code = ar1.area_code
-- AND ar1.area_code in (select area_code from areas &QRY1)
AND equp_equt_abbreviation LIKE '%MPBN%' &QRY &P_EQUPIDLIST) eq,
PERF_RECORDS pr, PERF_DATA pd,PERF_OBJECTS po
WHERE pr.PRFR_ID = pd.PRFD_PRFR_ID
AND pd.PRFD_start_time =pr.prfr_start_time
AND pd.PRFD_PRFO_ID = po.PRFO_ID
AND pr.PRFR_PARENT_ID=to_char(eq.equp_id) and pr.PRFR_object_ID =to_char(eq.equp_id)
AND pr.prfr_start_time >=TO_DATE(:p_start_date,'DD-MON-YYYY HH24:MI') -1/96
AND pr.prfr_start_time < TO_DATE(:p_end_date,'DD-MON-YYYY HH24:MI')
--AND TO_CHAR( pr.prfr_start_time ,'MI')='00'
AND po.PRFO_PRFT_TYPE = 'MPBN_Traffic_NetOp'
GROUP BY area_area_code,eq.equp_index,pr.prfr_id,pr.prfr_start_time ,pr.PRFR_NEMS_PARENT_ID
) where port like :P_SSA ) a
where diff >0
group BY circle, EQUP_INDEX, port

never seen that error before. can you verify that number?
keep halving the query the query until you find the offending field.
e.g.
if
select
a,
b,
d,
d
from table
gives you an error, in the next run do
select
a,
b --,
--c,
--d
from table

Similar Messages

  • ORA-01722: invalid number error coming in Oracle 10g.

    Hi,
    We are getting the error "ORA-01722: invalid number" while opening a cursor using CURSOR FOR LOOP.
    This error has started coming only after we have migrated to Oracle 10g from Oracle 9i. Earlier the same code used to work properly. And also on Oracle 10g, its not happening every time. Sometimes it gives error while sometimes it works.
    Does anybody know about any such bug in Oracle 10g. Our cursor is a parametrized cursor accepting a VARCHAR2 parameter and the value we are passing to it is also character.
    Our database is Oracle 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production and is running on UNIX server.

    And also on Oracle 10g, its not happening every time. Sometimes it gives error while sometimes it works. This is typically due to
    a) environment settings that differ from session to session
    b) or more often, data
    The actual error means that Oracle expects a number and is unable to obtain a number from the input (data or SQL or bind variables) supplied. I agree with William that it looks a lot like an implicit TO_NUMBER() conversion failing.
    Why not add a debug exception handler to the code? When that exception occurs, dump the PL/SQL call stack and values of all variables and parameters to a debug/logging table (using an autonomous transaction).

  • ORA-01722: Invalid Number error coming on upgrade from  11.2.0.1.0 to  11.2.0.2.0

    Hi,
    Recently i upgraded the DB from 11.2..0.1.0 to 11.2.0.2.0 after which my queries started giving ORA:01722 error.
    The query had a left outer join between two tables based on the 2 column having different data types.
    For eg:  select * from table_1left outer join table_2 on table_2.column with number data type =
                   table_1. column with varchar datatype
    This query was working fine on 11.2..0.1.0, but started to give out error  after upgrading.

    1) the data was same in both the versions of the DB, so i don't think that first point is the reason its misfiring.
    2) For the second point if i write my query like below it works correctly in the newer version of DB.
    select * from table_1left outer join table_2 on to_char(table_2.column with number data type) =
                   table_1. column with varchar datatype
    OR
    select * from table_1left outer join table_2 on trim(table_2.column with number data type) =
                   table_1. column with varchar datatype
    3) The nls settings seems to be same for both the versions. I couldn't find any changes.
    Thanks

  • ORA-22902 CURSOR expression not allowed Error Cause: CURSOR on a subquery..

    Hi,
    I found same issue in a metalink thread which is addressed in Oracle 12.1 which doesn't help me now. I need to rewrite the below query. Does anyone have any suggestions how to go about it?
    thanks,
    April
    working in Oracle 11.2.0.3.1, windows server, doing an upgrade from 10g to 11g. Piece of code is failing with following error via TOAD
    Oracle Database Error Code ORA-22902 Description :
    CURSOR expression not allowed
    Error Cause:
    CURSOR on a subquery is allowed only in the top-level SELECT list of a query.
    The below code is returning a tree of data for projects, units within the buildings.
    Code as follows:
    SELECT LEVEL
    , p.project_id
    || NVL (p.file_ref, ' ')
    || '] ['
    || NVL (p.project_ref, ' ')
    || '] '
    || p.project_name
    || ' ( '
    || (SELECT COUNT (*)
    FROM PROJECT p1
    WHERE p1.parent_project_id = p.project_id)
    || ' sub-projects, '
    || (SELECT COUNT (*)
    FROM PROJECT_ELEMENT pe2
    WHERE pe2.project_id = p.project_id)
    || ' elements)' AS project_description
    CURSOR
    (SELECT pe.element_id
    || pe.element_ref
    || '] '
    || pe.element_name
    || ' ('
    || pe.unit_count
    || ')' AS element_description
    CURSOR
    (SELECT hu.hu_id
    || hu.hu_ref
    || '] '
    || CASE
    WHEN hu.bedroom_count IS NOT NULL
    THEN ', Bedrooms: ' || hu.bedroom_count
    ELSE NULL
    END
    || CASE
    WHEN hu.bedspace_count IS NOT NULL
    THEN ', Bedspaces: ' || hu.bedspace_count
    ELSE NULL
    END AS hu_descripton
    FROM HOUSING_UNIT hu
    WHERE hu.element_id = pe.element_id
    ORDER BY hu.hu_ref
    ) AS housing_units
    FROM PROJECT_ELEMENT pe
    WHERE pe.project_id = p.project_id
    ORDER BY pe.element_ref, pe.element_name
    ) elements
    FROM PROJECT p
    START WITH p.project_id = l_root_project_id
    CONNECT BY PRIOR p.project_id = p.parent_project_id -- connect by used with LEVEL keyword
    ORDER SIBLINGS BY p.file_ref DESC
    , p.project_ref DESC
    , p.project_name DESC;
    Edited by: AprilM on Jul 17, 2012 10:28 AM

    Interesting. I am getting even worse results on 11.2.0.1.0:
    SQL> select * from v$version
      2  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL> select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d
      2  /
    select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00905: missing keyword
    SQL> connect scott
    Enter password: *****
    Connected.
    SQL> select * from v$version
      2  /
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d
      2  /
    DNAME          CURSOR(SELECTENAMEFR
    ACCOUNTING     CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    CLARK
    KING
    MILLER
    RESEARCH       CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    SMITH
    JONES
    SCOTT
    ADAMS
    FORD
    SALES          CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    ALLEN
    WARD
    MARTIN
    BLAKE
    TURNER
    JAMES
    6 rows selected.
    OPERATIONS     CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    no rows selected
    SQL> And double CURSOR also works fine in 10g:
    SQL> select cursor(select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d) from dual
      2  /
    CURSOR(SELECTDNAME,C
    CURSOR STATEMENT : 1
    CURSOR STATEMENT : 1
    DNAME          CURSOR(SELECTENAMEFR
    ACCOUNTING     CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    CLARK
    KING
    MILLER
    RESEARCH       CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    SMITH
    JONES
    SCOTT
    ADAMS
    FORD
    SALES          CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    ALLEN
    WARD
    MARTIN
    BLAKE
    TURNER
    JAMES
    6 rows selected.
    OPERATIONS     CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    no rows selectedSY.
    Edited by: Solomon Yakobson on Jul 17, 2012 1:27 PM

  • ORA-29278: SMTP transient error:421 Service not available on oracle 10g

    HIi,
    I am trying to send e-mails by using PL/Sql procedure . I am using UTL_MAIL/UTL_SMTP on oracle 10g R1 database.
    There is no problem in creating procedure,but when i am doing execution i am getting the mention error.
    I am trying to send mail with attachment as excel file.
    ORA-20001: The following error has occured: ORA-29278: SMTP transient error:
    421 Service not available
    ORA-06512: at "SCOTT.MAIL_ATT_RAW", line 64
    ORA-06512: at line 1
    -----my procedure code------
    CREATE OR REPLACE PROCEDURE mail_att_raw(filename varchar2) AS
    fil BFILE;
    file_len PLS_INTEGER;
    MAX_LINE_WIDTH PLS_INTEGER := 54;
    buf RAW(2100);
    amt BINARY_INTEGER := 2000;
    pos PLS_INTEGER := 1; /* pointer for each piece */
    filepos PLS_INTEGER := 1; /* pointer for the file */
    filenm VARCHAR2(50) := filename; /* binary file attachment */
    data RAW(2100);
    chunks PLS_INTEGER;
    len PLS_INTEGER;
    modulo PLS_INTEGER;
    pieces PLS_INTEGER;
    err_num NUMBER;
    err_msg VARCHAR2(100);
    resultraw RAW(32000);
    BEGIN
    /* Assign the file a handle */
    fil := BFILENAME('BFILE_DIR', filenm);
    /* Get the length of the file in bytes */
    file_len := dbms_lob.getlength(fil);
    /* Get the remainer when we divide by amt */
    modulo := mod(file_len, amt);
    /* How many pieces? */
    pieces := trunc(file_len / amt);if (modulo <> 0) then
    pieces := pieces + 1;end if;/* Open the file */
    dbms_lob.fileopen(fil, dbms_lob.file_readonly);/* Read the first amt into the buffer */
    dbms_lob.read(fil, amt, filepos, buf);/* For each piece of the file . . . */
    FOR i IN 1..pieces LOOP/* Position file pointer for next read */
    filepos := i * amt + 1;/* Calculate remaining file length */
    file_len := file_len - amt;/* Stick the buffer contents into data */
    data := utl_raw.concat(data, buf);/* Calculate the number of chunks in this piece */
    chunks := trunc(utl_raw.length(data) / MAX_LINE_WIDTH);/* Don't want too many chunks */
    IF (i <> pieces) THEN
    chunks := chunks - 1;
    END IF;/* For each chunk in this piece . . . */
    FOR j IN 0..chunks LOOP/* Position ourselves in this piece */
    pos := j * MAX_LINE_WIDTH + 1;/* Is this the last chunk in this piece? */
    IF (j <> chunks) THEN len := MAX_LINE_WIDTH;
    ELSE
    len := utl_raw.length(data) - pos + 1;
    IF (len > MAX_LINE_width) THEN
    len := MAX_LINE_WIDTH;
    END IF;
    END IF;/* If we got something, let's write it */
    IF (len > 0 ) THEN
    resultraw := resultraw || utl_raw.substr(data, pos, len);
    END IF;
    END LOOP;/* Point at the rest of the data buffer */
    IF (pos + len <= utl_raw.length(data)) THEN
    data := utl_raw.substr(data, pos + len);
    ELSE
    data := NULL;
    END IF;/* We're running out of file, only get the rest of it */
    if (file_len < amt and file_len > 0) then
    amt := file_len;
    end if;/* Read the next amount into the buffer */dbms_lob.read(fil, amt, filepos, buf);
    END LOOP;/* Don't forget to close the file */
    dbms_lob.fileclose(fil);
    SYS.UTL_MAIL.SEND_ATTACH_RAW(sender => '[email protected]', recipients => '[email protected]',subject => 'Testmail', message => 'Hallo', attachment => resultraw, att_filename => filename);
    EXCEPTION
    WHEN OTHERS THEN--dbms_output.put_line('Fehler');
    raise_application_error(-20001,'The following error has occured: ' || sqlerrm);
    END;
    Please suggest me what settings i need to change. This same procedure is running on another maching,but not on my machine.
    If somebody is having any other simple procedure ,please help me.
    My SMTP port -25
    Thanks in advance.

    Hi Justin,
    Please get the answers of your queries
    The error you're getting is coming from the SMTP server you are trying to connect to.
    - What SMTP server is your database configured to use?
    Reply - I am using IIS(5.0)
    - What SMTP server is the database where this code is working configured to use?
    Reply - Same IIS. Database is installed locally on my machine only. I am trying to send mail locally to me only,Not to the outside person.
    - Has the SMTP server been configured to allow connections from both machines?
    Reply - Yes
    One more query, do we really require to set the SMTP_OUT_SERVER parameter for SCOPE=BOTH
    ALTER SYSTEM SET smtp_out_server = '172.16.1.10' SCOPE=BOTH
    I am not able to set like this for BOTH,only for SPFILE i can set ?.
    My SMTP Server IP=172.16.1.10
    PORT- 25
    Thanks
    Manoj

  • ORA-01722: invalid number (Error in Application after upgrade to 3.0)

    Dear All,
    After upgrading to 3.0 I am no longer able to login to my application. The error I am seeing is:
    ORA-01722: invalid number
         Error      Could not process show_hide_memory.show_hide_collection_output procedure !
    Please help me pin-point the issue and fixed it.
    This happens in some applications but in others it doesn't...
    Regards,
    Pawel.

    I believe I have found the source of the problem!
    This is coming from the sample application which was used for the show/hide of regions example.
    The code behind the above procedure is:
    CREATE OR REPLACE
    PACKAGE show_hide_memory AS
    PROCEDURE show_hide_collection;
    PROCEDURE show_hide_collection_output;
    END;
    CREATE OR REPLACE PACKAGE BODY show_hide_memory AS
    PROCEDURE show_hide_collection AS
    l_arr apex_application_global.vc_arr2;
    l_found boolean := FALSE;
    l_collection_name VARCHAR2(255) := 'SHOW_HIDE_COLLECTION';
    BEGIN
    IF(wwv_flow_collection.collection_exists(p_collection_name => l_collection_name) = FALSE) THEN
    htmldb_collection.create_or_truncate_collection(p_collection_name => l_collection_name);
    END IF;
    l_arr := apex_util.string_to_table(p_string => v('TEMPORARY_ITEM'), p_separator => ']');
    -- If the array member count of l_arr < 3, then the following code will raise an exception
    FOR c1 IN
    (SELECT seq_id
    FROM apex_collections
    WHERE collection_name = l_collection_name
    AND c001 = l_arr(1)
    AND c002 = l_arr(2)
    AND c003 = l_arr(3))
    LOOP
    -- It exists, so delete it
    apex_collection.delete_member(p_collection_name => l_collection_name, p_seq => c1.seq_id);
    l_found := TRUE;
    END LOOP;
    IF l_found = FALSE THEN
    apex_collection.add_member(p_collection_name => l_collection_name, p_c001 => l_arr(1), p_c002 => l_arr(2), p_c003 => l_arr(3));
    END IF;
    COMMIT;
    END show_hide_collection;
    PROCEDURE show_hide_collection_output AS
    BEGIN
    htp.prn('<script type="text/javascript">' || CHR(10));
    htp.prn('<!--' || CHR(10));
    htp.prn('window.onload=function(){' || CHR(10));
    FOR c1 IN
    (SELECT c003
    FROM apex_collections
    WHERE collection_name = 'SHOW_HIDE_COLLECTION'
    AND c001 = wwv_flow.g_flow_id
    AND c002 = wwv_flow.g_flow_step_id)
    LOOP
    htp.prn('htmldb_ToggleWithImage(''' || c1.c003 || 'img'',''' || c1.c003 || 'body'');' || CHR(10));
    END LOOP;
    htp.prn('}' || CHR(10));
    htp.prn('//-->' || CHR(10));
    htp.prn('</script>' || CHR(10));
    END show_hide_collection_output;
    END;
    I guess now I have to find the bug in the above code !

  • How to get rid of "ORA-22881: dangling REF" error on :new.OBJECT_VALUE?

    Hi,
    I'm having trouble with a "ORA-22881: dangling REF" error against :new.OBJECT_VALUE when a trigger executes.
    Here is the initial trigger:
    create or replace TRIGGER "CSHEET_UPDATE"
    BEFORE UPDATE ON "CSHEET" FOR EACH ROW
    BEGIN
    SELECT
    updateXML(
    :new.OBJECT_VALUE,
    '/Csheet/METADATA/MODIFIED_DATE/text()', to_char(SYSDATE, 'YYYY-MM-DD') || 'T' || to_char(SYSDATE, 'HH:MI:SS')
    INTO :new.OBJECT_VALUE FROM dual;
    END;
    And this is the error I get with even a simple UPDATE:
    BEGIN
    UPDATE CSHEET SET OBJECT_VALUE = OBJECT_VALUE WHERE rownum = 1;
    COMMIT;
    END;
    Error report:
    ORA-22881: dangling REF
    ORA-06512: at "LNC.CSHEET_UPDATE", line 5
    ORA-04088: error during execution of trigger 'LNC.CSHEET_UPDATE'
    ORA-06512: at line 2
    22881. 00000 - "dangling REF"
    *Cause:    The object corresponding to the REF that was accessed does not
    exist.
    *Action:   Ensure that the REF value is pointing to an existing object.
    However, if I add a schemavalidate() call at the beginning of the trigger then the error disappears.
    New trigger:
    create or replace TRIGGER "CSHEET_UPDATE"
    BEFORE UPDATE ON "CSHEET" FOR EACH ROW
    BEGIN
    :new.OBJECT_VALUE.schemavalidate();
    SELECT
    updateXML(
    :new.OBJECT_VALUE,
    '/Csheet/METADATA/MODIFIED_DATE/text()', to_char(SYSDATE, 'YYYY-MM-DD') || 'T' || to_char(SYSDATE, 'HH:MI:SS')
    INTO :new.OBJECT_VALUE FROM dual;
    END;
    Is there another way, besides using ":new.OBJECT_VALUE.schemavalidate();", to correct the :new.OBJECT_VALUE dangling REF issue?
    Thanks
    Keith

    Hi Marco,
    This is my version info:
    Oracle Database 11g Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE 11.1.0.6.0 Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    CSHEET is indeed object relational storage.
    BEGIN
    DBMS_XMLSCHEMA.REGISTERSCHEMA(
    schemaurl =&gt; 'CSheet.xsd',
    schemadoc =&gt; sys.UriFactory.getUri('/public/Schemas/CSheet.xsd'),
    local =&gt; TRUE,
    gentypes =&gt; TRUE,
    genbean =&gt; FALSE,
    gentables =&gt; TRUE,
    force =&gt; FALSE,
    owner =&gt; 'LNC',
    enablehierarchy =&gt; DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
    END;
    The only "unusual" aspect of it is that it does some out-of-line storage, has a primary key assigned internally, and specifies a couple of unique restrictions:
    Snippets from the schema:
    &lt;xs:element name="Csheet" xdb:defaultTable="CSHEET" xdb:columnProps="CONSTRAINT CSHEET_pkey PRIMARY KEY (XMLDATA.UCN)"&gt;
    &lt;xs:element name="LEGISLATION" maxOccurs="unbounded" xdb:SQLInline="false" xdb:defaultTable="CSHEET_LEGISLATION"&gt;
    &lt;xs:complexType&gt;
    &lt;xs:sequence&gt;
    &lt;xs:choice&gt;
    &lt;xs:sequence&gt;
    &lt;xs:element name="NAME" type="reasonable_data_T"/&gt;
    &lt;xs:element name="CITATION" minOccurs="0" type="CITATION_T"/&gt;
    &lt;/xs:sequence&gt;
    &lt;xs:element name="CITATION" type="CITATION_T"/&gt;
    &lt;/xs:choice&gt;
    &lt;xs:element name="REFERENCES"&gt;
    &lt;xs:complexType&gt;
    &lt;xs:sequence&gt;
    &lt;xs:element name="REFERENCE" maxOccurs="unbounded" xdb:SQLInline="false" xdb:defaultTable="CSHEET_REFERENCES"&gt;
    &lt;xs:complexType&gt;
    &lt;xs:sequence&gt;
    &lt;xs:unique name="unique_pinpoints"&gt;
    &lt;xs:selector xpath="REFERENCE"/&gt;
    &lt;xs:field xpath="PINPOINT"/&gt;
    &lt;/xs:unique&gt;
    &lt;xs:unique name="unique_legislation"&gt;
    &lt;xs:selector xpath="LEGISLATION"/&gt;
    &lt;xs:field xpath="CITATION"/&gt;
    &lt;/xs:unique&gt;
    And I rename and scope the REF tables:
    DECLARE
    gen_name VARCHAR2 (4000);
    BEGIN
    SELECT TABLE_NAME INTO gen_name FROM USER_NESTED_TABLES
    WHERE PARENT_TABLE_NAME = 'CSHEET';
    EXECUTE IMMEDIATE 'RENAME "' || gen_name || '"TO CSHEET_LEG_V';
    SELECT TABLE_NAME INTO gen_name FROM USER_NESTED_TABLES
    WHERE PARENT_TABLE_NAME = 'CSHEET_LEGISLATION';
    EXECUTE IMMEDIATE 'RENAME "' || gen_name || '"TO CSHEET_REF_V';
    END;
    ALTER TABLE CSHEET_LEG_V ADD SCOPE FOR (COLUMN_VALUE) IS CSHEET_LEGISLATION;
    ALTER TABLE CSHEET_REF_V ADD SCOPE FOR (COLUMN_VALUE) IS CSHEET_REFERENCES;
    Nothing really non-standard and everything works just fine...except I HAVE to schemavalidate() to undangle my REF :( .
    I don't even understand where the REF is coming from since it was my understanding that OBJECT_VALUE was considered an XMLType. Could it have something to do with the out-of-line tables?
    Thanks
    Keith

  • ORA-29279: SMTP permanent error: 554 5.5.1 Error: no valid recipients

    Hi ,
    Following error msg coming when notification was sending to mail .
    ORA-29279: SMTP permanent error: 554 5.5.1 Error: no valid recipients
    Please advise how to clear this error.
    Thanks&Regards
    Ranganath Konikineni

    It's not related to oracle. Check How you made the connection with SMTP server and to whom you are sending the mail.
    Post your code with tag like {noformat} Your lines of code {noformat}                                                                                                                                                                                                                                                                                                                                                                                                                               

  • ORA-29279: SMTP permanent error: To Send Mail from Oracle 10g (10.2.0.1)

    I have installed Oracle 10g (10.2.0.1) on Windows XP (SP2) machine at my home PC.There is a broadband connection on my home PC.I have installed UTL_MAIL package and then set SMTP_OUT_PARAMETER by the following SQL Statement.
    My machine IP address is 192.168.0.3
    SQl> alter system set smtp_out_server = 'smtp.bsnl.in:25' scope = 25;
    Then we run the following script.
    BEGIN
    UTL_MAIL.SEND(
    SENDER => '[email protected]',
    RECIPIENTS => '[email protected]',
    SUBJECT => 'Testing UTL_MAIL',
    MESSAGE => 'The receipt of this email means'||
    'that it works for UTL_MAIL'
    END;
    Then following error message comes.
    BEGIN
    ERROR at line 1:
    ORA-29279: SMTP permanent error: 553 Authentication is required to send mail as
    <[email protected]>
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 99
    ORA-06512: at "SYS.UTL_SMTP", line 222
    ORA-06512: at "SYS.UTL_MAIL", line 407
    ORA-06512: at "SYS.UTL_MAIL", line 594
    ORA-06512: at line 2
    Can anybody suggest the solution of the above problem.

    Hi,
    is your smtp server configured to use anonymous connection?
    Attackwave
    Reply Code       Description
    211      System status, or system help reply
    214      Help message [Information on how to use the receiver or the meaning of a particular non-standard command; this reply is useful only to the human user]
    220      <domain> Service ready
    221      <domain> Service closing transmission channel
    250      Requested mail action okay, completed
    251      User not local; will forward to <forward-path>
    252      OK, pending messages for node <node> started. Cannot VRFY user (for example, info is not local), but will take message for this user and attempt delivery.
    253      OK, <messages> pending messages for node <node> started
    354      Start mail input; end with <CRLF>.<CRLF>
    355      Octet-offset is the transaction offset
    421      <domain> Service not available, closing transmission channel (This may be a reply to any command if the service knows it must shut down.)
    450      Requested mail action not taken: mailbox unavailable [for example, mailbox busy]
    451      Requested action terminated: local error in processing
    452      Requested action not taken: insufficient system storage
    453      You have no mail.
    454      TLS not available due to temporary reason. Encryption required for requested authentication mechanism.
    458      Unable to queue messages for node <node>
    459      Node <node> not allowed: reason
    500      Syntax error, command unrecognized (This may include errors such as command line too long.)
    501      Syntax error in parameters or arguments
    502      Command not implemented
    503      Bad sequence of commands
    504      Command parameter not implemented
    521      <Machine> does not accept mail.
    530      Must issue a STARTTLS command first. Encryption required for requested authentication.
    534      Authentication mechanism is too weak.
    538      Encryption required for requested authentication mechanism.
    550      Requested action not taken: mailbox unavailable [for , mailbox not found, no access]
    551      User not local; please try <forward-path>
    552      Requested mail action terminated: exceeded storage allocation
    *553      Requested action not taken: mailbox name not allowed [for example, mailbox syntax incorrect]*
    554      Transaction failed

  • Getting ORA-29279: SMTP permanent error: 553

    Error report:
    ORA-29279: SMTP permanent error: 553 Requested action not taken: mailbox name not allowed
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 221
    ORA-06512: at "SYS.UTL_MAIL", line 397
    ORA-06512: at "SYS.UTL_MAIL", line 608
    ORA-06512: at line 2
    29279. 00000 - "SMTP permanent error: %s"*Cause: A SMTP permanent error occurred.
    *Action:   Correct the error and retry the SMTP operation..
    The mail server changed in our company and i have updated the smtp_out_server parameter in system to reflect the new ip with the port.
    But when i try testing the utl_mail package, i get this error message. It used to work fine with the old mail server. Nothing else has changed.
    Please advice.
    Thanks
    Kavita

    994008 wrote:
    Error report:
    ORA-29279: SMTP permanent error: 553 Requested action not taken: mailbox name not allowed
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 221
    ORA-06512: at "SYS.UTL_MAIL", line 397
    ORA-06512: at "SYS.UTL_MAIL", line 608
    ORA-06512: at line 2
    29279. 00000 - "SMTP permanent error: %s"*Cause: A SMTP permanent error occurred.
    *Action:   Correct the error and retry the SMTP operation..
    The mail server changed in our company and i have updated the smtp_out_server parameter in system to reflect the new ip with the port.
    But when i try testing the utl_mail package, i get this error message. It used to work fine with the old mail server. Nothing else has changed.
    Please advice.
    Thanks
    Kavitawhile logged onto the DB then do as below
    telnet <new_mail_server> 25
    post results back here

  • Ora-29279: SMTP permanent error Unbalanced ' ' XE

    Dear Sirs
    Sorry for my bad english, I'm not from USA; I have a problem when I send email in Oracle Express Aplication Release 11.2.0.2.0, I get this mistake ora-29279: SMTP permanent error <[email protected].. Unbalanced '>' and I don`t know what happen. I configure UTL_MAIL in this way:
    [host@oracle]$ cd $ORACLE_HOME/rdbms/admin
    [host@oracle]$sqlplus / as sysdba
    SQL> @utlmail
    SQL> @utlsmtp
    SQL> @prvtmail.plb
    SQL> GRANT EXECUTE ON utl_mail TO PUBLIC;
    SQL> GRANT EXECUTE ON utl_smtp TO PUBLIC;
    SQL> alter system set smtp_out_server='192.168.170.10' scope=both;
    ACL: Access Control List
    in White Horses Blog
    Create ACL and privileges
    Now first create an ACL as SYS (or any other user with DBMS_NETWORK_ACL_ADMIN execute granted), this will hold the privileges. You can add as many privileges as you like to this file, but I would recommend to split privileges in the ACL to specific tasks or users. You must create an ACL with at least one privilege, so lets start with the ‘connect’ privilege for user ASSA, (also a role can be added as principal):
    begin
    dbms_network_acl_admin.create_acl (
    acl => 'utl_mail.xml',
    description => 'Allow mail to be send',
    principal => 'ASSA',
    is_grant => TRUE,
    privilege => 'connect'
    commit;
    end;
    Add Privilege
    Great, now that the ACL is created, you can add more privileges like the ‘resolve’ privilege:
    begin
    dbms_network_acl_admin.add_privilege (
    acl => 'utl_mail.xml',
    principal => 'ASSA',
    is_grant => TRUE,
    privilege => 'resolve'
    commit;
    end;
    Assign ACL
    Cool, you granted ASSA to connect and resolve, but you have not defined to which resources he is allowed to connect:
    begin
    dbms_network_acl_admin.assign_acl(
    acl => 'utl_mail.xml',
    host => '192.160.170.10'
    commit;
    end;
    I configured utl_mail in other computer at the first time, in virtual machine, in a server, with windows server 2000 and it's working without problems.
    The problem is in this computer, with windows xp. I can`t send emails despite configuring UTL_MAIL.
    Danny Lima
    Ecuador

    Dear UDO
    i dont think that the code is bad, i have the same code in my virtual machine in PC server with Windows server 2003 and that's works.
    In my pc Server:
    create or replace TRIGGER "AUTO"
    after insert on qr
    for each row
    declare
    /* auto_Nivel Variable que tomará el campo nivel del Empleado que Administre el Reclamo*/
    auto_nivel number;
    /*auto_mail_e y auto_mail_s Variable que tomará el campo del correo del Empleado que Administre el Reclamo y de
    su superior respectivamente*/
    auto_mail_e varchar2(30);
    auto_mail_s varchar(30);
    /*auto_responsable variable que tomará el campo cedula_empleado de la tabla QR*/
    auto_responsable varchar2(30):=:new.cedula_empleado;
    /*auto_n_empleado variable que tomará el nombre y apellido del empleado que Administre el Reclamo*/
    auto_n_empleado varchar2(60);
    /*auto_n_cliente variable que tomará el nombre y apellido del Cliente que solicitó la hoja de servicio*/
    auto_n_cliente varchar2(60);
    /*auto_CRM variable que tomará el correo electrónico de CRM*/
    auto_CRM varchar2(30);
    /*a variable que almacenará correo electrónicos*/
    a varchar2(120);
    /*a variable que almacenará el ID del empleado causante del reclamo*/
    auto_causante varchar2(30):=:new.empleado_causante;
    /*a variable que almacenará el correo electrónico del empleado causante del reclamo*/
    auto_causante_mail varchar2(30);
    /*ori_aux variable que almacenará el origen perteneciente a talleres, cuya recepción de Reclamos tiene
    una condición especial*/
    ori_aux number;
    ori number:=:new.origen;
    begin
    select c.nombre||' '||c.apellido into auto_n_cliente
    from cliente c where c.id=:new.cedula_cliente;
    IF :new.QUEJA_RECLAMO='QUEJA' THEN
    select e.email into auto_crm
    from empleados e where e.perfil='CRM';
    utl_mail.send(sender => '[email protected]',
    recipients => auto_crm,
    subject => 'DATASIERRA PQR-CRM',
    message => 'DATASIERRA PQR-CRM'||CHR(10)||'Reclamo '||:new.ss||CHR(10)||:new.cedula_empleado||CHR(10)||auto_n_empleado||CHR(10)||''||CHR(10)||auto_n_cliente||' Numero de Cedula: '||:new.cedula_cliente||' queja por: '||CHR(10)||''||CHR(10)||:new.descripcion||CHR(10)||''||CHR(10)||SYSDATE);
    ELSE
    Select e.nivel into auto_nivel
    from empleados e where e.id=auto_responsable;
    select e.nombre||' '||e.apellido into auto_n_empleado
    from empleados e where e.id=auto_responsable;
    SELECT O.ORIGEN_MAYOR INTO ORI_AUX
    FROM ORIGEN O WHERE :NEW.ORIGEN=O.ID;
    /*Inserción de Datos en la tabla Seguimiento*/
    insert into seguimiento
    (id_ss,fecha_seguimiento,escalado_a,estado)
    values
    (:new.ss,:new.fecha,auto_responsable,'CASO ABIERTO');
    /*Proceso si el Origen del reclamo pertenece a Talleres*/
    if ori_aux=22 THEN
    select e.email into auto_causante_mail
    from empleados e where e.id=auto_causante;
    select e.email into auto_crm
    from empleados e where e.perfil='CRM';
    a:=auto_causante_mail||',[email protected],'||auto_crm;
    /*Proceso de Envío de Correo a los destinatarios almacenados en la variable a*/
    utl_mail.send(sender => '[email protected]',
    recipients => a,
    subject => 'DATASIERRA PQR-CRM',
    message => 'DATASIERRA PQR-CRM'||CHR(10)||'Reclamo '||:new.ss||CHR(10)||:new.empleado_causante||CHR(10)||''||CHR(10)||auto_n_cliente||' Numero de Cedula: '||:new.cedula_cliente||' reclamo por: '||CHR(10)||''||CHR(10)||:new.descripcion||CHR(10)||''||CHR(10)||SYSDATE);
    select e.email into auto_mail_e
    from empleados e where e.id=auto_responsable;
    a:=auto_mail_e;
    utl_mail.send(sender => '[email protected]',
    recipients => a,
    subject => 'DATASIERRA PQR-CRM',
    message => 'DATASIERRA PQR-CRM'||CHR(10)||'Reclamo '||:new.ss||CHR(10)||auto_n_cliente||' Numero de Cedula: '||:new.cedula_cliente||' reclamo por: '||CHR(10)||''||CHR(10)||:new.descripcion||CHR(10)||''||CHR(10)||SYSDATE);
    if ori=2 then
    utl_mail.send(sender => '[email protected]',
    recipients => '[email protected],[email protected],[email protected]',
    subject => 'DATASIERRA PQR-CRM',
    message => 'DATASIERRA PQR-CRM'||CHR(10)||'Reclamo '||:new.ss||CHR(10)||:new.empleado_causante||CHR(10)||''||CHR(10)||auto_n_cliente||' Numero de Cedula: '||:new.cedula_cliente||' reclamo por: '||CHR(10)||''||CHR(10)||:new.descripcion||CHR(10)||''||CHR(10)||SYSDATE);
    end if;
    else
    /*Proceso si empleado que administrará el reclamo es de nivel diferente de 1*/
    if auto_nivel <> 1 then
    /*Asignacióna del correo del Empleado que Administre el Reclamo y de su superior respectivamente
    a las variables auto_mail_e y auto_mail_s también respectivamente*/
    select e.email, x.email into auto_mail_e, auto_mail_s
    from empleados e, empleados x
    where e.id=auto_responsable and e.dependencia=x.id;
    /*Asignación de los correos Empleado que Administre el Reclamo, de su superior
    y de [email protected] respectivamente*/
    a:=auto_mail_e||','||auto_mail_s||',[email protected]';
    /*Proceso de Envío de Correo a los destinatarios almacenados en la variable a*/
    utl_mail.send(sender => '[email protected]',
    recipients => a,
    subject => 'DATASIERRA PQR-CRM',
    message => 'DATASIERRA PQR-CRM'||CHR(10)||'Reclamo '||:new.ss||CHR(10)||:new.cedula_empleado||CHR(10)||auto_n_empleado||CHR(10)||''||CHR(10)||auto_n_cliente||' Numero de Cedula: '||:new.cedula_cliente||' reclamo por: '||CHR(10)||''||CHR(10)||:new.descripcion||CHR(10)||''||CHR(10)||SYSDATE);
    else
    /*Proceso si empleado que administrará el reclamo es de nivel 1*/
    /*Asignación del correo del empleado que administrará el reclamo*/
    select e.email into auto_mail_e
    from empleados e where e.id=auto_responsable;
    /*Proceso de Envío de Correo a los destinatarios almacenados en la variable a*/
    a:=auto_mail_e||',[email protected]';
    utl_mail.send(sender => '[email protected]',
    recipients => a,
    subject => 'DATASIERRA PQR-CRM',
    message => 'DATASIERRA PQR-CRM'||CHR(10)||'Reclamo '||:new.ss||CHR(10)||:new.cedula_empleado||CHR(10)||auto_n_empleado||CHR(10)||''||CHR(10)||auto_n_cliente||' Numero de Cedula: '||:new.cedula_cliente||' reclamo por: '||CHR(10)||''||CHR(10)||:new.descripcion||CHR(10)||''||CHR(10)||SYSDATE);
    end if;
    end if;
    end if;
    end auto;
    I can send emails with this code without problems
    , but just in my virtual machine.
    I compare the code that is in my pc with Windows xp where I have the problem and its the same code, but that code doesn`t work and I get
    problems when I send the email.
    In my pc with windows XP
    create or replace trigger "AUTO"
    after insert on qr
    for each row
    declare
    /* auto_Nivel Variable que tomará el campo nivel del Empleado que Administre el Reclamo*/
    auto_nivel number;
    /*auto_mail_e y auto_mail_s Variable que tomará el campo del correo del Empleado que Administre el Reclamo y de
    su superior respectivamente*/
    auto_mail_e varchar2(30);
    auto_mail_s varchar(30);
    /*auto_responsable variable que tomará el campo cedula_empleado de la tabla QR*/
    auto_responsable varchar2(30):=:new.cedula_empleado;
    /*auto_n_empleado variable que tomará el nombre y apellido del empleado que Administre el Reclamo*/
    auto_n_empleado varchar2(60);
    /*auto_n_cliente variable que tomará el nombre y apellido del Cliente que solicitó la hoja de servicio*/
    auto_n_cliente varchar2(60);
    /*auto_CRM variable que tomará el correo electrónico de CRM*/
    auto_CRM varchar2(40);
    /*a variable que almacenará correo electrónicos*/
    a varchar2(120);
    /*a variable que almacenará el ID del empleado causante del reclamo*/
    auto_causante varchar2(30):=:new.empleado_causante;
    /*a variable que almacenará el correo electrónico del empleado causante del reclamo*/
    auto_causante_mail varchar2(40);
    /*ori_aux variable que almacenará el origen perteneciente a talleres, cuya recepción de Reclamos tiene
    una condición especial*/
    ori_aux number;
    ori number:=:new.origen;
    begin
    select c.nombre||' '||c.apellido into auto_n_cliente
    from cliente c where c.id=:new.cedula_cliente;
    IF :new.QUEJA_RECLAMO='QUEJA' THEN
    select e.email into auto_crm
    from empleados e where e.perfil='CRM';
    utl_mail.send(sender => '[email protected]',
    recipients => auto_crm,
    subject => 'DATASIERRA PQR-CRM',
    message => 'DATASIERRA PQR-CRM'||CHR(10)||'Reclamo '||:new.ss||CHR(10)||:new.cedula_empleado||CHR(10)||auto_n_empleado||CHR(10)||''||CHR(10)||auto_n_cliente||' Numero de Cedula: '||:new.cedula_cliente||' queja por: '||CHR(10)||''||CHR(10)||:new.descripcion||CHR(10)||''||CHR(10)||SYSDATE);
    ELSE
    Select e.nivel into auto_nivel
    from empleados e where e.id=auto_responsable;
    select e.nombre||' '||e.apellido into auto_n_empleado
    from empleados e where e.id=auto_responsable;
    SELECT O.ORIGEN_MAYOR INTO ORI_AUX
    FROM ORIGEN O WHERE :NEW.ORIGEN=O.ID;
    /*Inserción de Datos en la tabla Seguimiento*/
    insert into seguimiento
    (id_ss,fecha_seguimiento,escalado_a,estado)
    values
    (:new.ss,:new.fecha,auto_responsable,'CASO ABIERTO');
    /*Proceso si el Origen del reclamo pertenece a Talleres*/
    if ori_aux=22 THEN
    select e.email into auto_causante_mail
    from empleados e where e.id=auto_causante;
    select e.email into auto_crm
    from empleados e where e.perfil='CRM';
    a:=auto_causante_mail||',[email protected],'||auto_crm;
    /*Proceso de Envío de Correo a los destinatarios almacenados en la variable a*/
    utl_mail.send(sender => '[email protected]',
    recipients => a,
    subject => 'DATASIERRA PQR-CRM',
    message => 'DATASIERRA PQR-CRM'||CHR(10)||'Reclamo '||:new.ss||CHR(10)||:new.empleado_causante||CHR(10)||''||CHR(10)||auto_n_cliente||' Numero de Cedula: '||:new.cedula_cliente||' reclamo por: '||CHR(10)||''||CHR(10)||:new.descripcion||CHR(10)||''||CHR(10)||SYSDATE);
    select e.email into auto_mail_e
    from empleados e where e.id=auto_responsable;
    a:=auto_mail_e;
    utl_mail.send(sender => '[email protected]',
    recipients => a,
    subject => 'DATASIERRA PQR-CRM',
    message => 'DATASIERRA PQR-CRM'||CHR(10)||'Reclamo '||:new.ss||CHR(10)||auto_n_cliente||' Numero de Cedula: '||:new.cedula_cliente||' reclamo por: '||CHR(10)||''||CHR(10)||:new.descripcion||CHR(10)||''||CHR(10)||SYSDATE);
    if ori=2 then
    utl_mail.send(sender => '[email protected]',
    recipients => '[email protected],[email protected],[email protected]',
    subject => 'DATASIERRA PQR-CRM',
    message => 'DATASIERRA PQR-CRM'||CHR(10)||'Reclamo '||:new.ss||CHR(10)||:new.empleado_causante||CHR(10)||''||CHR(10)||auto_n_cliente||' Numero de Cedula: '||:new.cedula_cliente||' reclamo por: '||CHR(10)||''||CHR(10)||:new.descripcion||CHR(10)||''||CHR(10)||SYSDATE);
    end if;
    else
    /*Proceso si empleado que administrará el reclamo es de nivel diferente de 1*/
    if auto_nivel <> 1 then
    /*Asignacióna del correo del Empleado que Administre el Reclamo y de su superior respectivamente
    a las variables auto_mail_e y auto_mail_s también respectivamente*/
    select e.email, x.email into auto_mail_e, auto_mail_s
    from empleados e, empleados x
    where e.id=auto_responsable and e.dependencia=x.id;
    /*Asignación de los correos Empleado que Administre el Reclamo, de su superior
    y de [email protected] respectivamente*/
    a:=auto_mail_e||','||auto_mail_s||',[email protected]';
    /*Proceso de Envío de Correo a los destinatarios almacenados en la variable a*/
    utl_mail.send(sender => '[email protected]',
    recipients => a,
    subject => 'DATASIERRA PQR-CRM',
    message => 'DATASIERRA PQR-CRM'||CHR(10)||'Reclamo '||:new.ss||CHR(10)||:new.cedula_empleado||CHR(10)||auto_n_empleado||CHR(10)||''||CHR(10)||auto_n_cliente||' Numero de Cedula: '||:new.cedula_cliente||' reclamo por: '||CHR(10)||''||CHR(10)||:new.descripcion||CHR(10)||''||CHR(10)||SYSDATE);
    else
    /*Proceso si empleado que administrará el reclamo es de nivel 1*/
    /*Asignación del correo del empleado que administrará el reclamo*/
    select e.email into auto_mail_e
    from empleados e where e.id=auto_responsable;
    /*Proceso de Envío de Correo a los destinatarios almacenados en la variable a*/
    a:=auto_mail_e||',[email protected]';
    utl_mail.send(sender => '[email protected]',
    recipients => a,
    subject => 'DATASIERRA PQR-CRM',
    message => 'DATASIERRA PQR-CRM'||CHR(10)||'Reclamo '||:new.ss||CHR(10)||:new.cedula_empleado||CHR(10)||auto_n_empleado||CHR(10)||''||CHR(10)||auto_n_cliente||' Numero de Cedula: '||:new.cedula_cliente||' reclamo por: '||CHR(10)||''||CHR(10)||:new.descripcion||CHR(10)||''||CHR(10)||SYSDATE);
    end if;
    end if;
    end if;
    end auto;
    Both of them are the same, I dont know what happen.!

  • Ora-29279: SMTP permanent error Unbalanced ' '

    Dear Sirs
    Sorry for my bad english; I have a problem when I send email in Oracle Express Aplication Release 11.2.0.2.0, I get this mistake ora-29279: SMTP permanent error <[email protected].. Unbalanced '>' and I don`t know what happen. I configure UTL_MAIL in this way:
    [host@oracle]$ cd $ORACLE_HOME/rdbms/admin
    [host@oracle]$sqlplus / as sysdba
    SQL> @utlmail
    SQL> @utlsmtp
    SQL> @prvtmail.plb
    SQL> GRANT EXECUTE ON utl_mail TO PUBLIC;
    SQL> GRANT EXECUTE ON utl_smtp TO PUBLIC;
    SQL> alter system set smtp_out_server='192.168.170.10' scope=both;
    ACL: Access Control List
    in White Horses Blog
    Create ACL and privileges
    Now first create an ACL as SYS (or any other user with DBMS_NETWORK_ACL_ADMIN execute granted), this will hold the privileges. You can add as many privileges as you like to this file, but I would recommend to split privileges in the ACL to specific tasks or users. You must create an ACL with at least one privilege, so lets start with the ‘connect’ privilege for user ASSA, (also a role can be added as principal):
    begin
    dbms_network_acl_admin.create_acl (
    acl => 'utl_mail.xml',
    description => 'Allow mail to be send',
    principal => 'ASSA',
    is_grant => TRUE,
    privilege => 'connect'
    commit;
    end;
    Add Privilege
    Great, now that the ACL is created, you can add more privileges like the ‘resolve’ privilege:
    begin
    dbms_network_acl_admin.add_privilege (
    acl => 'utl_mail.xml',
    principal => 'ASSA',
    is_grant => TRUE,
    privilege => 'resolve'
    commit;
    end;
    Assign ACL
    Cool, you granted ASSA to connect and resolve, but you have not defined to which resources he is allowed to connect:
    begin
    dbms_network_acl_admin.assign_acl(
    acl => 'utl_mail.xml',
    host => '192.160.170.10'
    commit;
    end;
    I configured utl_mail in other computer at the first time, in virtual machine, in a server, with windows server 2000 and it's working without problems.
    The problem is in this computer, with windows xp. I can`t send emails despite configuring UTL_MAIL.
    Danny Lima
    Ecuador

    It is a mail server error, telling you it does not like the data your code is passing to it. Nothing to do with Oracle, ACLs or configuration settings.
    Everything to do with your code passing incorrectly formatted data to the mail server - and the mail server throwing an error back at your code.

  • ORA-29279: SMTP permanent error: 553

    Hi,
    This what i do in SQL Plus and receive an error. What i do wrong?
    Thanks
    SQL> connect system/oracle as sysdba;
    Connected.
    SQL> $ORACLE_HOME/javavm/install/initjvm.sql;
    SQL> $ORACLE_HOME/javavm/install/init_jis.sql;
    SQL> $ORACLE_HOME/rdbms/admin/initplsj.sql;
    SQL> CREATE OR REPLACE PROCEDURE SEND_MAIL (msg_to varchar2, msg_subject varchar2, msg_text varchar2
    2 IS
    3 c utl_smtp.connection;
    4 rc integer;
    5 msg_from varchar2(50) := '[email protected]';
    6 mailhost VARCHAR2(30) := 'authsmtp.streamline.net'; -- local database host
    7
    8 BEGIN
    9 c := utl_smtp.open_connection(mailhost, 25); -- SMTP on port 25
    10 utl_smtp.helo(c, mailhost);
    11 utl_smtp.mail(c, msg_from);
    12 utl_smtp.rcpt(c, msg_to);
    13
    14 utl_smtp.data(c,'From: Oracle Database' || utl_tcp.crlf ||
    15 'To: ' || msg_to || utl_tcp.crlf ||
    16 'Subject: ' || msg_subject ||
    17 utl_tcp.crlf || msg_text);
    18
    19 utl_smtp.quit(c);
    20
    21 END;
    22 /
    Procedure created.
    SQL> EXEC SEND_MAIL ('[email protected]', 'Hello from Oracle', 'This is a message');
    BEGIN SEND_MAIL ('[email protected]', 'Hello from Oracle', 'This is a message'); END;
    ERROR at line 1:
    ORA-29279: SMTP permanent error: 553 sorry, that domain isn't in my list of
    allowed rcpthosts (#5.7.1)
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 99
    ORA-06512: at "SYS.UTL_SMTP", line 241
    ORA-06512: at "SYS.SEND_MAIL", line 12
    ORA-06512: at line 1
    SQL>

    You aren't doing anything wrong, that's a message from your mail server saying you're doing something against its rules. Talk to your network people and have them add you to the list of domains that are allowed rcpthosts.
    From: http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:255615160805

  • I bought second hand iphone i have my apple id and password i was ysing this fron last two years i upgraded my phone to os 7 after finishing ny phone is asking for i d abd password to activate when i am entering my id and pasdword error coming

    I won't b able to activate my Iphone.asking for apple I'd and password the I d and password I am entering .error coming on phone saying that u can't activate with this I'd I check with my nearest authorist agent in Hyderabad india.they want me call on customer service number 1800- they  want my purchase copy or correct I'd the I'd and password I having its not working for this can anyone help me please.

    Sorry, but you have encountered the Activation Lock:
    ACTIVATION LOCK
    The only person who can remove it is the person who put it on. You will need to contact the previous owner and have them follow one of the sets of instructions in this link:
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account - Apple Support
    If you cannot do that, then see if there is any way of getting a refund from the seller. If you cannot do that, then you have a device that is unusable and won't be able to be restored.
    Sorry
    GB

  • Error: ORA-16778: redo transport error for one or more databases

    Hi all
    I have 2 database servers"Primary database and physical standby" in test environment( before going to Production)
    Before Dataguard broker configuration , DG setup was running fine , redo was being applied and archived on phy standby.
    but while enabling configuration i got "Warning: ORA-16607: one or more databases have failed" listener.ora & tnsnames.ora are updated with global_name_DGMGRL
    Please help me how can i resolve this issue .Thanks in advance.
    [oracle@PRIM ~]$ dgmgrl
    DGMGRL for Linux: Version 10.2.0.1.0 - Production
    Copyright (c) 2000, 2005, Oracle. All rights reserved.
    Welcome to DGMGRL, type "help" for information.
    DGMGRL> connect sys
    Password:
    Connected.
    DGMGRL> show configuration
    Configuration
    Name: test
    Enabled: YES
    Protection Mode: MaxPerformance
    Fast-Start Failover: DISABLED
    Databases:
    prim - Primary database
    stan - Physical standby database
    Current status for "test":
    Warning: ORA-16607: one or more databases have failed
    DGMGRL> show database
    show database
    ^
    Syntax error before or at "end-of-line"
    DGMGRL> remove configuration
    Warning: ORA-16620: one or more databases could not be contacted for a delete operation
    Removed configuration
    DGMGRL> exit
    [oracle@PRIM ~]$ connect sys/sys@prim as sysdba
    bash: connect: command not found
    [oracle@PRIM ~]$ lsnrctl stop
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:52:30
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    The command completed successfully
    [oracle@PRIM ~]$ lsnrctl start
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:52:48
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 08-OCT-2006 19:52:48
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PRIM_DGMGRLL" has 1 instance(s).
    Instance "PRIM", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@PRIM ~]$ lsnrctl stop
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:54:46
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    The command completed successfully
    [oracle@PRIM ~]$ lsnrctl start
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:54:59
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    [oracle@PRIM ~]$ dgmgrl
    DGMGRL for Linux: Version 10.2.0.1.0 - Production
    Copyright (c) 2000, 2005, Oracle. All rights reserved.
    Welcome to DGMGRL, type "help" for information.
    DGMGRL> connect /
    Connected.
    DGMGRL> create configuration test as
    primary database is PRIM
    connect identifier is PRIM
    ;Configuration "test" created with primary database "prim"
    DGMGRL> add database STAN as
    connect identifier is STAN
    maintained as physical;Database "stan" added
    DGMGRL> show configuration
    Configuration
    Name: test
    Enabled: NO
    Protection Mode: MaxPerformance
    Fast-Start Failover: DISABLED
    Databases:
    prim - Primary database
    stan - Physical standby database
    Current status for "test":
    DISABLED
    DGMGRL> enable configuration
    Enabled.
    DGMGRL> show configuration
    Configuration
    Name: test
    Enabled: YES
    Protection Mode: MaxPerformance
    Fast-Start Failover: DISABLED
    Databases:
    prim - Primary database
    stan - Physical standby database
    Current status for "test":
    Warning: ORA-16607: one or more databases have failed
    DGMGRL> show database verbose prim
    Database
    Name: prim
    Role: PRIMARY
    Enabled: YES
    Intended State: ONLINE
    Instance(s):
    PRIM
    Properties:
    InitialConnectIdentifier = 'prim'
    LogXptMode = 'ASYNC'
    Dependency = ''
    DelayMins = '0'
    Binding = 'OPTIONAL'
    MaxFailure = '0'
    MaxConnections = '1'
    ReopenSecs = '300'
    NetTimeout = '180'
    LogShipping = 'ON'
    PreferredApplyInstance = ''
    ApplyInstanceTimeout = '0'
    ApplyParallel = 'AUTO'
    StandbyFileManagement = 'AUTO'
    ArchiveLagTarget = '0'
    LogArchiveMaxProcesses = '30'
    LogArchiveMinSucceedDest = '1'
    DbFileNameConvert = '/u01/app/oracle/oradata/STAN, /u01/app/oracle/oradata/PRIM'
    LogFileNameConvert = '/u01/app/oracle/oradata/STAN, /u01/app/oracle/oradata/PRIM'
    FastStartFailoverTarget = ''
    StatusReport = '(monitor)'
    InconsistentProperties = '(monitor)'
    InconsistentLogXptProps = '(monitor)'
    SendQEntries = '(monitor)'
    LogXptStatus = '(monitor)'
    RecvQEntries = '(monitor)'
    HostName = 'PRIM'
    SidName = 'PRIM'
    LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521))'
    StandbyArchiveLocation = '/u01/app/oracle/flash_recovery_area/PRIM/archivelog/'
    AlternateLocation = ''
    LogArchiveTrace = '0'
    LogArchiveFormat = '%t_%s_%r.arc'
    LatestLog = '(monitor)'
    TopWaitEvents = '(monitor)'
    Current status for "prim":
    Error: ORA-16778: redo transport error for one or more databases
    DGMGRL> show database verbose stan
    Database
    Name: stan
    Role: PHYSICAL STANDBY
    Enabled: YES
    Intended State: ONLINE
    Instance(s):
    STAN
    Properties:
    InitialConnectIdentifier = 'stan'
    LogXptMode = 'ASYNC'
    Dependency = ''
    DelayMins = '0'
    Binding = 'OPTIONAL'
    MaxFailure = '0'
    MaxConnections = '1'
    ReopenSecs = '300'
    NetTimeout = '180'
    LogShipping = 'ON'
    PreferredApplyInstance = ''
    ApplyInstanceTimeout = '0'
    ApplyParallel = 'AUTO'
    StandbyFileManagement = 'AUTO'
    ArchiveLagTarget = '0'
    LogArchiveMaxProcesses = '30'
    LogArchiveMinSucceedDest = '1'
    DbFileNameConvert = '/u01/app/oracle/oradata/PRIM, /u01/app/oracle/oradata/STAN'
    LogFileNameConvert = '/u01/app/oracle/oradata/PRIM, /u01/app/oracle/oradata/STAN'
    FastStartFailoverTarget = ''
    StatusReport = '(monitor)'
    InconsistentProperties = '(monitor)'
    InconsistentLogXptProps = '(monitor)'
    SendQEntries = '(monitor)'
    LogXptStatus = '(monitor)'
    RecvQEntries = '(monitor)'
    HostName = 'STAND'
    SidName = 'STAN'
    LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=STAND)(PORT=1521))'
    StandbyArchiveLocation = '/u01/app/oracle/flash_recovery_area/STAN/archivelog/'
    AlternateLocation = ''
    LogArchiveTrace = '0'
    LogArchiveFormat = '%t_%s_%r.arc'
    LatestLog = '(monitor)'
    TopWaitEvents = '(monitor)'
    Current status for "stan":
    Error: ORA-12545: Connect failed because target host or object does not exist
    DGMGRL>

    This:
    Current status for "stan":
    Error: ORA-12545: Connect failed because target host or object does not exist
    says that your network setup is not correct. You need to resolve that first.
    As for Broker setup steps how about the doc or our Data Guard 11g Handbook?
    It's 3 DGMGRL commands so I am not sure what 'steps' you need?
    Larry

Maybe you are looking for

  • LOVs in ReIM ?

    Hi , can any one tell me how lovs works in ReIM , as it gives dynamic values at different operations. I am not getting from where values in lovs are getting set, or from which class is shooting the queries to get the data from data base.

  • Right clicking no longer works in Java?

    Control clicking in Java no longer works on my new powerbook. Other applications seem to be fine. How do I correct this? If uninstalling and reinstalling Java is the answer, how do I do this. I have poked around a bit but cannot find an answer to thi

  • ABAP-Mapping with CALL TRANSFORMATION

    Hi everybody, I got an ABAP mapping that uses CALL TRANSFORMATION: TRY.       CALL TRANSFORMATION (strxsltid)         SOURCE XML IDOCXML_DOCUMENT         RESULT XML result.     CATCH cx_xslt_abap_call_error INTO lr_oref.       text = lr_oref->get_tex

  • Mount cdrom in a local zone

    Hello, how can I mount a cdrom in a local zone. It works fine in the global zone, but in a local zone I got an error no device Thanks Mark

  • Media Encoder is Missing

    Hi, Have an Adobe Creative Cloud subscription and had previously installed the 'Premiere Pro CS6 Family' from the Application Manager along with Encore, Speedgrade etc. and Media Encoder was installed as part of this. Being honest...the applications