Connect by - sql help : getting error ORA-01489: result of string concatena

here is an sql query and I am trying to cook a decode but since there are many columns invloved when I am trying to run this I am getting the following error:
ORA-01489: result of string concatenation is too long
Any kind of help is appreciated, I need to get this going otherwise I am dead :(
Regards
Rahul
SQL:
select sys_connect_by_path(c.decode_prep,'-') decode_prep
from (select 'DECODE(BIAPPS_11.'||substr(b.all_cols,instr(b.all_cols,',',1,a.rn)+1,instr(b.all_cols,',',1,a.rn+1)-instr(b.all_cols,',',1,a.rn)-1)||','||'RAHULKALRA.'||substr(b.all_cols,instr(b.all_cols,',',1,a.rn)+1,instr(b.all_cols,',',1,a.rn+1)-instr(b.all_cols,',',1,a.rn)-1)||',''1'',''0'')' decode_prep, rownum curr, rownum -1 prev
from (select rownum rn
from dual connect by rownum <=
(select (length('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM')
- length(replace('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM',',')))+1 total_cols
from dual)) a, (select ','||'ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM'||',' all_cols from dual) b) c
start with curr = 1
connect by prior curr = prev
order by length(sys_connect_by_path(c.decode_prep,'-')) desc
same as above sql only difference is here I am pulling the first record from the result set which above query returns :
select ltrim(replace(decode_prep,'-','||'),'||') decode_prep
from (select sys_connect_by_path(c.decode_prep,'-') decode_prep
from (select 'DECODE(BIAPPS_11.'||substr(b.all_cols,instr(b.all_cols,',',1,a.rn)+1,instr(b.all_cols,',',1,a.rn+1)-instr(b.all_cols,',',1,a.rn)-1)||','||'RAHULKALRA.'||substr(b.all_cols,instr(b.all_cols,',',1,a.rn)+1,instr(b.all_cols,',',1,a.rn+1)-instr(b.all_cols,',',1,a.rn)-1)||',''1'',''0'')' decode_prep, rownum curr, rownum -1 prev
from (select rownum rn
from dual connect by rownum <=
(select (length('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM')
- length(replace('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM',',')))+1 total_cols
from dual)) a, (select ','||'ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM'||',' all_cols from dual) b) c
start with curr = 1
connect by prior curr = prev
order by length(sys_connect_by_path(c.decode_prep,'-')) desc)
where rownum = 1
Edited by: Mac_Freak_Rahul on Nov 28, 2012 1:31 AM : in the first sql ')'
removed after desc in the last line so now this query will run and throw an error.

Clearly your error is because the string concatenation you are doing with sys_connect_by_path is exceeding the 4000 bytes permitted by SQL.
In that case you need to concatenate your data into a CLOB datatype, for which you'll need a CLOB aggregation function...
create or replace type clobagg_type as object
  text clob,
  static function ODCIAggregateInitialize(sctx in out clobagg_type) return number,
  member function ODCIAggregateIterate(self in out clobagg_type, value in clob) return number,
  member function ODCIAggregateTerminate(self in clobagg_type, returnvalue out clob, flags in number) return number,
  member function ODCIAggregateMerge(self in out clobagg_type, ctx2 in clobagg_type) return number
create or replace type body clobagg_type is
  static function ODCIAggregateInitialize(sctx in out clobagg_type) return number is
  begin
    sctx := clobagg_type(null) ;
    return ODCIConst.Success ;
  end;
  member function ODCIAggregateIterate(self in out clobagg_type, value in clob) return number is
  begin
    self.text := self.text || value ;
    return ODCIConst.Success;
  end;
  member function ODCIAggregateTerminate(self in clobagg_type, returnvalue out clob, flags in number) return number is
  begin
    returnValue := self.text;
    return ODCIConst.Success;
  end;
  member function ODCIAggregateMerge(self in out clobagg_type, ctx2 in clobagg_type) return number is
  begin
    self.text := self.text || ctx2.text;
    return ODCIConst.Success;
  end;
end;
create or replace function clobagg(input clob) return clob
  deterministic
  parallel_enable
  aggregate using clobagg_type;
SQL> select trim(',' from clobagg(ename||',')) as enames from emp;
ENAMES
SMITH,ALLEN,WARD,JONES,MARTIN,BLAKE,CLARK,SCOTT,KING,TURNER,ADAMS,JAMES,FORD,MILLER
SQL> ed
Wrote file afiedt.buf
  1  with t as
  2    (select 'PFL' c1, 0 c2,110 c3 from dual union all
  3     select 'LHL', 0 ,111 from dual union all
  4     select 'PHL', 1, 111 from dual union all
  5     select 'CHL', 2, 111 from dual union all
  6     select 'DHL', 0, 112 from dual union all
  7     select 'VHL', 1, 112 from dual union all
  8     select 'CPHL', 0, 114 from dual union all
  9     select 'WDCL', 1, 114 from dual union all
10     select 'AHL' ,2 ,114 from dual union all
11     select 'NFDL', 3, 114 from dual)
12  --
13  -- end of test data
14  --
15  select trim(clobagg(c1||' ')) as c1, c3
16  from (select * from t order by c3, c2)
17  group by c3
18* order by c3
SQL> /
C1                                     C3
PFL                                   110
LHL CHL PHL                           111
DHL VHL                               112
CPHL AHL NFDL WDCL                    114

Similar Messages

  • Ora-01489: result of string concatenation is too long

    Hello Gurus,
    i have a typical problem
    i am constructing a query in FORM and writing SQLPLUS script into a .SQL file. file will contain final data like below..
    set linesize 90
    set pagesize 0
    set echo off
    set verify off
    set termout off
    set feedback off
    set trimspool on
    set escape '^'
    spool D:\10GAPPServerappln\xxx\TEMPREP\ADA39057.sql;
    set linesize 229
    select ' IQIS# ,Cust Complaint Short Txt ,CD Short Txt ' from dual;
    set linesize 129
    select a||','||b||','||c||d from table;
    spool off;
    exit;
    After this By using HOST command i will execute the above .sql script and will write the output to text file.
    But problem is when i have clob column in any one of concatenated columns in query (a or b or c) then i am getting the error "Ora-01489: result of string concatenation is too long".
    pls suggest me how to overcome this problem..

    sybrand_b wrote:
    Obviously the || operator is concatenating strings, your CLOB is implicitly converted to a VARCHAR2, which has a 4000 bytes limit.???
    From non-experts who did read documentation:
    CLOB || VARCHAR2 = CLOB:
    SQL> CREATE OR REPLACE
      2  VIEW V1
      3  AS SELECT TO_CLOB('A') || 'A' clob_concat_varchar2 FROM dual
      4  /
    View created.
    SQL> DESC V1
    Name                                      Null?    Type
    CLOB_CONCAT_VARCHAR2                               CLOB
    SQL> SY.

  • Insertin Data useing SQL Procedure Getting Error ORA-00942 and ORA-06512

    I have two Schemas ISYS and ISYSTWO
    I had created a Stored Procedure RECINC2 in Schema ISYS
    as
    procedure recinc2(cName IN CHAR,cWhere IN CHAR,cTable in CHAR)
    AS
    cQry VARCHAR2(1000);
    BEGIN
    cQry := 'INSERT INTO '||cName||'.'||cTable||' SELECT * FROM '||cTable|| ' WHERE ||cWhere;
    dbms_output.put_line(cqry);
    EXECUTE IMMEDIATE cQry;
    end;
    NOW WHEN in Run it gives error
    SQL> begin
    2 recinc2('ISYSTWO','CODE=4','AGENTS');
    3 end;
    4 /
    INSERT INTO ISYSTWO.AGENTS SELECT * FROM AGENTS WHERE CODE=4
    begin
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "ISYS.RECINC2", line 8
    ORA-06512: at line 2
    BUT IF I EXECUTE
    the DBMS output
    INSERT INTO ISYSTWO.AGENTS SELECT * FROM AGENTS WHERE CODE=4
    it executes and gives fine result
    Please help
    Thanks
    Chaand kackria

    SQL> conn ISYSTWO/ISYSTWO
    Connected.
    SQL> grant all on agents to isys;
    Grant succeeded.
    SQL> conn isys/isys
    Connected.
    SQL> exec recinc2('ISYSTWO','CODE=4','AGENTS');
    INSERT INTO ISYSTWO.AGENTS SELECT * FROM AGENTS WHERE CODE=4
    PL/SQL procedure successfully completed.

  • Direct Path SQL Loader get error ORA-01555

    Hi All,
    11.2.0.1 DB
    Has anyone here used sqlloader direct path option?
    Is there special setting I need for the Undo TS?
    I am testing my sqlloader direct path but I got error : ORA-01555: snapshot too old: rollback segment number 10 with name "_SYSSMU10$" too small
    I am only testing 100 records and I shutdown the database. And I am only the one using it. :(
    Does dropping the Undo TS and creating new one help resolve my issue?
    Thanks a lot,
    Kinz
    Edited by: KinsaKaUy? on 07-Nov-2012 03:33

    I drop my UNDOTS1 and recreate it to resolve if there are framentation in the TS itself , but to no avail, the same error persist :(
    Record 1: Rejected - Error on table EMPLOYEE.
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01555: snapshot too old: rollback segment number with name "" too small
    SYSTEM                         ONLINE
    _SYSSMU87_2780657351$          ONLINE
    _SYSSMU88_120427686$           ONLINE
    _SYSSMU89_1588874193$          ONLINE
    _SYSSMU90_2571046414$          ONLINE
    _SYSSMU91_1803654754$          ONLINE
    _SYSSMU92_2477693864$          ONLINE
    _SYSSMU93_1908993412$          ONLINE
    _SYSSMU94_985867735$           ONLINE
    _SYSSMU95_4165893730$          ONLINE
    _SYSSMU96_1502488804$          ONLINE
    _SYSSMU97_3533816217$          ONLINE
    _SYSSMU98_3954380786$          ONLINE
    _SYSSMU99_1314687851$          ONLINE
    _SYSSMU100_3542148152$         ONLINE
    _SYSSMU101_1249002234$         ONLINE
    _SYSSMU102_1520886654$         ONLINE
    _SYSSMU103_2785416951$         ONLINE
    _SYSSMU104_1530388055$         ONLINE
    _SYSSMU105_1995830672$         ONLINE
    _SYSSMU106_4584952$            ONLINE
    _SYSSMU107_1177768351$         ONLINE
    _SYSSMU108_3896986945$         ONLINE
    _SYSSMU109_2576315174$         ONLINE
    _SYSSMU110_2786589320$         ONLINE
    _SYSSMU111_1195961439$         ONLINE
    _SYSSMU112_2612035115$         ONLINE
    _SYSSMU113_1697198479$         ONLINE
    _SYSSMU114_3939726644$         ONLINE
    _SYSSMU115_467875145$          ONLINE
    _SYSSMU116_2826382876$         ONLINE
    _SYSSMU117_3650068864$         ONLINE
    _SYSSMU118_92260707$           ONLINE
    _SYSSMU119_2322108460$         ONLINE
    _SYSSMU120_2583709550$         ONLINE
    _SYSSMU121_1279604730$         ONLINE
    _SYSSMU122_2128414833$         ONLINE
    _SYSSMU123_1365970622$         ONLINE
    _SYSSMU124_1855929876$         ONLINE
    _SYSSMU125_1511578664$         ONLINE
    _SYSSMU126_3219352797$         ONLINE
    _SYSSMU127_2412556110$         ONLINE
    _SYSSMU128_2102547636$         ONLINE
    _SYSSMU129_447164998$          ONLINE
    _SYSSMU130_3851265156$         ONLINE
    _SYSSMU131_3046352603$         ONLINE
    _SYSSMU132_2987406815$         ONLINE
    _SYSSMU133_983809304$          ONLINE
    _SYSSMU134_928979873$          ONLINE
    _SYSSMU135_3248183819$         ONLINE
    _SYSSMU136_811112856$          ONLINE
    _SYSSMU137_1958351427$         ONLINE
    _SYSSMU138_2222543$            ONLINE
    _SYSSMU139_3962620689$         ONLINE
    _SYSSMU140_2711665463$         ONLINE
    _SYSSMU141_3724825495$         ONLINE
    _SYSSMU142_1818253355$         ONLINE
    _SYSSMU143_1370485269$         ONLINE
    _SYSSMU144_2442636386$         ONLINE
    59 rows selected.
    SQL>Is there something missing in my sqlloader parameter? but if I use "ordinary" path it will load successfully. But not with "direct" path :( Any ideas please

  • From pl/sql table getting error - "ORA-01403: no data found"

    Hi All,
    i habe written package, and the spce define as -
    type F761RecType is RECORD (
    type F761TabType is TABLE of F761RecType INDEX BY BINARY_INTEGER;
    l_F761_table F761TabType;
    PROCEDURE modification1
    p_F761_table IN F761TabType,
    From button click of form i passed -
    DECLARE
    l_f761_table I743_PUC_MAPS_TREE_PKG.F761TabType;
    l_counter number;
    BEGIN
              LOOP
         l_counter :=l_counter+1;
              l_f761_table(l_counter).P_TABLE := :MAPS.P_table;
         EXIT WHEN      :SYSTEM.LAST_RECORD = 'TRUE' ;
    next_record;
    end loop;
    i743_puc_maps_tree_pkg.modification1(
                                            p_F761_table => l_f761_table,
    END;
    Now when I take table count (l_f761_table.count) in button click in form level I am getting value; but when I try to get the count in sid the package, it giving error "ORA-01403: no data found".
    Pls tell me where I am wrong ..!!
    BR,
    Subir

    Thaks all, probls has been solved..

  • Dynamic SQL Help - Getting Errors

    Basically I have a table with employee data, and I'm trying to create a dynamic PL / SQL block that creates a new table and copies over the data from employee table to the new one.
    I'm teaching myself dynamic SQL so this is practice. Please don't offer "better solutions" because I'm sure there are plenty - I'm just looking to complete the code as is so I better understand this query language.
    Here is my code:
    set serveroutput on size 10000
    declare
    cursor c is
    select table_name, tablespace_name
    from user_tables where table_name = 'EMP';
    cursor c2 is
    select table_name, column_name, data_length, data_type, data_precision
    from user_tab_cols where table_name = 'EMP';
    cursor c3 is
    select *
    from emp;
    counter number(3);
    counter := 0;
    begin
    for i in c loop
    if (counter = 0) then
    create table emp2;
    insert into emp2 table_name, tablespace_name;
    for i in c2 loop
    insert into emp2 table_name, column_name, data_length, data_type, data_precision;
    counter := counter + 1;
    end loop;
    end loop;
    for i in c3 loop
    insert into emp2 empno, ename, job, mgr, hiredate, sal, comm, deptno;
    end loop;
    end;
    Here are my errors:
    Error starting at line 3 in command:
    declare
    cursor c is
    select table_name, tablespace_name
    from user_tables where table_name = 'EMP';
    cursor c2 is
    select table_name, column_name, data_length, data_type, data_precision
    from user_tab_cols where table_name = 'EMP';
    cursor c3 is
    select *
    from emp;
    counter number(3);
    counter := 0;
    begin
    for i in c loop
    if (counter = 0) then
    create table emp2;
    insert into emp2 table_name, tablespace_name;
    for i in c2 loop
    insert into emp2 table_name, column_name, data_length, data_type, data_precision;
    counter := counter + 1;
    end loop;
    end loop;
    for i in c3 loop
    insert into emp2 empno, ename, job, mgr, hiredate, sal, comm, deptno;
    end loop;
    end;
    Error report:
    ORA-06550: line 14, column 13:
    PLS-00103: Encountered the symbol "=" when expecting one of the following:
    constant exception <an identifier>
    <a double-quoted delimited-identifier> table long double ref
    char time timestamp interval date binary national character
    nchar
    The symbol "<an identifier>" was substituted for "=" to continue.
    ORA-06550: line 19, column 7:
    PLS-00103: Encountered the symbol "CREATE" when expecting one of the following:
    ( begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifi
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Start reading the Documents
    There are basic errors in your code, some are pointed out below
    declare
      cursor c is
        select table_name, tablespace_name
        from user_tables where table_name = 'EMP';
      cursor c2 is
        select table_name, column_name, data_length, data_type, data_precision
        from user_tab_cols where table_name = 'EMP';
      cursor c3 is
        select *
        from emp;
      counter number(3);
      counter := 0; --"You cannot initiate variable like this"
    begin
      for i in c loop
       if (counter = 0) then
         create table emp2; --"You cannot create tables directly in PL/SQL. Need to use dynamic SQL.Syntax also wrong. "
         insert into emp2 table_name, tablespace_name; --"Values caluse missing"
         for i in c2 loop
            insert into emp2 table_name, column_name, --"Values caluse missing"
               data_length, data_type, data_precision; --"Record syntax not used"
            counter := counter + 1;
      end loop;
      end loop;
      for i in c3 loop
        insert into emp2 empno, ename,
         job, mgr, hiredate, sal, comm, deptno; --"Values caluse missing"
      end loop;
    end;

  • SQL command running into error: ora-01489

    Hello everyone,
    i have created a query as shown below. When i am trying to run this query on test server using TOAD it executes without any error.
    The same query i am trying to copy and paste on TOAD for my production server and it gives me an error:
    ORA-01489: result of string concatenation is too long
    select payslip_of_month,
    person_id, payslip_date, element_name,
    pay_action, business_group_id, payroll_desc,payment_currency,LISTAGG(screen_entry_value, ' ') WITHIN GROUP (ORDER BY display_sequence) AS ENTRIES_RESULT
    from (
    SELECT piv.display_sequence,piv.input_value_id,TO_CHAR (pact.effective_date, 'Month RRRR') payslip_of_month,
    per.person_id person_id,
    CASE
    WHEN pact.action_type <> 'Q'
    THEN TO_CHAR (pact.effective_date,'DD-MON-RRRR')
    ELSE TO_CHAR (NVL (pact.pay_advice_date, pact.DATE_EARNED),'DD-MON-RRRR')
    END payslip_date,
    NVL (pettl.reporting_name, pettl.element_name) element_name,
    trim(peev.screen_entry_value) screen_entry_value,pact.action_type pay_action, per.business_group_id,
    CASE
    WHEN has.assignment_set_name LIKE '%MAINRUN%'
    THEN 'End of Month Payment'
    WHEN pact.action_type = 'Q'
    THEN 'Request Payment'
    ELSE 'Adjustment Payment'
    END payroll_desc,
    pet.output_currency_code payment_currency
    FROM pay_element_types_f_tl pettl,
    pay_element_classifications_tl pectl,
    pay_element_types_f pet,
    pay_element_classifications pec,
    pay_input_values_f piv,
    pay_assignment_actions asact,
    pay_payroll_actions pact,
    per_abs_attendance_types_v ABS,
    per_all_assignments_f ass,
    per_all_people_f per,
    fnd_lookup_values fnd,
    hr_assignment_sets has ,
    pay_element_entry_values_f peev
    WHERE pectl.classification_id = pec.classification_id
    AND pectl.LANGUAGE = USERENV ('LANG')
    AND pettl.element_type_id = pet.element_type_id
    AND pettl.LANGUAGE = USERENV ('LANG')
    AND pact.payroll_action_id = asact.payroll_action_id
    AND pet.classification_id = pec.classification_id
    AND piv.element_type_id = pet.element_type_id
    AND piv.element_type_id = ABS.element_type_id(+)
    AND asact.assignment_id = ass.assignment_id
    AND ass.person_id = per.person_id
    and piv.name in ('Remarks1')
    AND SYSDATE BETWEEN ass.effective_start_date AND ass.effective_end_date
    AND SYSDATE BETWEEN per.effective_start_date AND per.effective_end_date
    AND pact.effective_date BETWEEN piv.effective_start_date
    AND piv.effective_end_date
    AND pact.effective_date BETWEEN pet.effective_start_date
    AND pet.effective_end_date
    AND fnd.lookup_code = pact.action_type
    AND fnd.lookup_type = 'ACTION_TYPE'
    AND pact.assignment_set_id = has.assignment_set_id(+)
    AND pettl.element_name = 'Payslip Remarks'
    and piv.input_value_id =peev.input_value_id
    and pact.effective_date between peev.EFFECTIVE_START_DATE and peev.EFFECTIVE_END_DATE
    order by piv.display_sequence)
    where PERSON_ID=:per_id
    and PAYSLIP_DATE like '%APR%2013%'
    and BUSINESS_GROUP_ID=0
    group by payslip_of_month, person_id, payslip_date, element_name,pay_action, business_group_id, payroll_desc,payment_currency
    Strange! I am unable to understand that the data entry done on both servers is same yet on one server it works fine however on the production server it fails.
    Pls help.
    thnx

    Hallo,
    you can replace the listagg command with screen_entry_value only and see if the data set is the same.
    regards
    Giuseppe

  • Starting Oracle 11gr2 Im getting Error: ORA-03135: connection lost contact

    Hi Guys!
    Thanks for your advises. I still working toward a resolution.
    But I encountered another issue from Enterp Manager :
    ERROR : Please correct the following error: Connection string must be specified.
    My connection has this format:
    //using connection string attributes to connect to Oracle Database
      con.ConnectionString = "User Id=scott;Password=tiger;Data Source=oracle";
      con.Open();
      Console.WriteLine("Connected to Oracle" + con.ServerVersion);
    Please tell me what is wrong here. Thanks. Dan.
    Hi all !
    I need help please for resolving the following :
    Problem:
    Im having frequent disconnection after abnormal shutdown due to power failure.
    starting Oracle 11gr2 Im getting Error: ORA-03135: connection lost contact
    Im on Laptop running Linux Centos 6.3 Host.
    and Im running Oracle 11gr2 on Oracle Enterprise Linux in VMware (Guest).
    When attempting login from the Oracle Enterprise Manager Database Control
    I got  Error: "Your username and/or password are invalid."
    The alert.log is at the bottom
    [test@localhost ~]$ xhost +
    access control disabled, clients can connect from any host
    [test@localhost ~]$
    [test@localhost ~]$ su - root
    Password:
    [root@localhost ~]#
    [root@localhost ~]# su - oracle
    [oracle@localhost ~]$
    [oracle@localhost ~]$ export ORACLE_SID=db11gr2
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/app/oracle/product/11.2.0/db_1
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_BASE
    /u01/app/oracle
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_SID
    db11gr2
    [oracle@localhost ~]$
    [oracle@localhost ~]$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 04-DEC-2013 12:23:07
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                04-DEC-2013 12:23:08
    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/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "db11gr2" has 1 instance(s).
      Instance "db11gr2", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@localhost ~]$
    [oracle@localhost ~]$ emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
    https://localhost.localdomain:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ............... started.
    Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_db11gr2/sysman/log
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:26:38 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL>
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    ORA-00600: internal error code, arguments: [4194], [: no
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    SQL>
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:59:23 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL>
    ERROR at line 1:
    ORA-03135: connection lost contact
    Process ID: 8973
    Session ID: 1 Serial number: 5
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:12:03 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL> select STATUS, DATABASE_STATUS from v$instance;
    STATUS       DATABASE_STATUS
    OPEN         ACTIVE
    SQL>
    SQL> SELECT * FROM v$instance;
    ERROR:
    ORA-03114: not connected to ORACLE
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:17:37 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL> SELECT * FROM v$instance;
    INSTANCE_NUMBER INSTANCE_NAME
    HOST_NAME
    VERSION           STARTUP_T STATUS       PAR    THREAD# ARCHIVE LOG_SWITCH_WAIT
    LOGINS     SHU DATABASE_STATUS   INSTANCE_ROLE      ACTIVE_ST BLO
                  1 db11gr2
    localhost.localdomain
    11.2.0.1.0        04-DEC-13 OPEN         NO           1 STOPPED
    ALLOWED    NO  ACTIVE            PRIMARY_INSTANCE   NORMAL    NO
    SQL>
    alert log file
    [oracle@localhost ~]$
    [oracle@localhost ~]$ adrci
    ADRCI: Release 11.2.0.1.0 - Production on Wed Dec 4 17:09:47 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    ADR base = "/u01/app/oracle"
    adrci> set editor emacs
    adrci> show alert
    Choose the alert log from the following homes to view:
    1: diag/rdbms/unknown/DB11G
    2: diag/rdbms/db11gr2/db11gr2
    3: diag/tnslsnr/localhost/listener
    Q: to quit
    Please select option: 2
    *** glibc detected *** adrci: malloc(): memory corruption: 0x09de7160 ***
    ======= Backtrace: =========
    /lib/libc.so.6[0x1d42dd]
    /lib/libc.so.6(__libc_malloc+0x67)[0x1d5e97]
    /lib/ld-linux.so.2[0x331f8a]
    /lib/ld-linux.so.2[0x33215a]
    /lib/ld-linux.so.2[0x32e3ce]
    /lib/libc.so.6[0x272550]
    /lib/libc.so.6(_dl_sym+0x1a)[0x2728fa]
    /lib/libdl.so.2[0x110e08]
    /lib/ld-linux.so.2[0x331e66]
    /lib/libdl.so.2[0x1112cc]
    /lib/libdl.so.2(dlsym+0x63)[0x110d93]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(sskgds_save_text_start_end+0x47)[0xa0fb37]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(skgdsinit+0xb7)[0xa0a909]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x15edea8]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(kgdsdsts+0x26)[0x15ef8c2]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStackWFlag+0x102)[0x198961a]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStack+0x2d)[0x198950d]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1989250]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdFillIncCtx+0x72)[0x1989088]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexPopulateIncCtx+0x67)[0x1994d25]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexProcessError+0x75)[0x1996437]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x19601c5]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgePostErrorDirect+0x650)[0x1960b3c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c58fb6]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x183c44e]
    [0x3bb440]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1cf7966]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrlrReadAlertMsg+0x562)[0x1cf7126]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrxae_alert_ext+0x2d4)[0xbbcf44]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb9f25c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch_real+0x23f)[0xb9bc1f]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch+0xee)[0xb9b520]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb53c3e]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrip_relation_iterator+0x16c)[0xb531bc]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripricm_rltniter_wcbf_mt+0x1f7)[0xb52709]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripritc_rltniter_wcbf+0xe6)[0xb585f2]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query+0x3f2)[0x1abe62c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query_wcmd+0x36f)[0x1abf053]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3e116]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3f5b7]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c4e2ae]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvciec_exec_cmd+0x4a2)[0x1c4d640]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvci_main_int+0x43b)[0x1c59e61]
    adrci[0x8048c5b]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmcall+0x363)[0x1496ec3]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmpmai+0x15c)[0x1497904]
    adrci[0x8048aa5]
    /lib/libc.so.6(__libc_start_main+0xdc)[0x17fe9c]
    adrci[0x8048811]
    ======= Memory map: ========
    00110000-00112000 r-xp 00000000 08:03 5925240    /lib/libdl-2.5.so
    00112000-00113000 r-xp 00001000 08:03 5925240    /lib/libdl-2.5.so
    00113000-00114000 rwxp 00002000 08:03 5925240    /lib/libdl-2.5.so
    00114000-00139000 r-xp 00000000 08:03 5925284    /lib/libm-2.5.so
    00139000-0013a000 r-xp 00024000 08:03 5925284    /lib/libm-2.5.so
    0013a000-0013b000 rwxp 00025000 08:03 5925284    /lib/libm-2.5.so
    0013b000-0014f000 r-xp 00000000 08:03 5925246    /lib/libpthread-2.5.so
    0014f000-00150000 r-xp 00013000 08:03 5925246    /lib/libpthread-2.5.so
    00150000-00151000 rwxp 00014000 08:03 5925246    /lib/libpthread-2.5.so
    00151000-00153000 rwxp 00151000 00:00 0
    00153000-00166000 r-xp 00000000 08:03 5925301    /lib/libnsl-2.5.so
    00166000-00167000 r-xp 00012000 08:03 5925301    /lib/libnsl-2.5.so
    00167000-00168000 rwxp 00013000 08:03 5925301    /lib/libnsl-2.5.so
    00168000-0016a000 rwxp 00168000 00:00 0
    0016a000-002a9000 r-xp 00000000 08:03 5925233    /lib/libc-2.5.so
    002a9000-002aa000 --xp 0013f000 08:03 5925233    /lib/libc-2.5.so
    002aa000-002ac000 r-xp 0013f000 08:03 5925233    /lib/libc-2.5.so
    002ac000-002ad000 rwxp 00141000 08:03 5925233    /lib/libc-2.5.so
    002ad000-002b0000 rwxp 002ad000 00:00 0
    002b0000-002b1000 r-xp 00000000 08:03 3905250    /usr/lib/libaio.so.1.0.1
    002b1000-002b2000 rwxp 00000000 08:03 3905250    /usr/lib/libaio.so.1.0.1
    002b2000-002bb000 r-xp 00000000 08:03 5925256    /lib/libnss_files-2.5.so
    002bb000-002bc000 r-xp 00008000 08:03 5925256    /lib/libnss_files-2.5.so
    002bc000-002bd000 rwxp 00009000 08:03 5925256    /lib/libnss_files-2.5.so
    002bd000-002c8000 r-xp 00000000 08:03 5925425    /lib/libgcc_s-4.1.2-20080825.so.1
    002c8000-002c9000 rwxp 0000a000 08:03 5925425    /lib/libgcc_s-4.1.2-20080825.so.1
    00324000-0033e000 r-xp 00000000 08:03 5925219    /lib/ld-2.5.so
    0033e000-0033f000 r-xp 00019000 08:03 5925219    /lib/ld-2.5.so
    0033f000-00340000 rwxp 0001a000 08:03 5925219    /lib/ld-2.5.so
    003bb000-003bc000 r-xp 003bb000 00:00 0          [vdso]
    003bc000-01fc3000 r-xp 00000000 08:03 4984633    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    01fc3000-020a7000 rwxp 01c07000 08:03 4984633    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    020a7000-020c1000 rwxp 020a7000 00:00 0
    025b1000-027ce000 r-xp 00000000 08:03 5006042    /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
    027ce000-027fc000 rwxp 0021d000 08:03 5006042    /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
    027fc000-027fe000 rwxp 027fc000 00:00 0
    08048000-08049000 r-xp 00000000 08:03 1407670    /u01/app/oracle/product/11.2.0/db_1/bin/adrci
    08049000-0804a000 rw-p 00000000 08:03 1407670    /u01/app/oracle/product/11.2.0/db_1/bin/adrci
    09d62000-09e0d000 rw-p 09d62000 00:00 0          [heap]
    b7e00000-b7e21000 rw-p b7e00000 00:00 0
    b7e21000-b7f00000 ---p b7e21000 00:00 0
    b7f68000-b7f90000 rw-p b7f68000 00:00 0
    bfc54000-bfc6d000 rwxp bffe5000 00:00 0          [stack]
    bfc6d000-bfc6e000 rw-p bfffe000 00:00 0
    starting Oracle 11gr2 Im getting Error: ORA-03135: connection lost contact
    Im on Laptop running Linux Centos 6.3 Host.
    and Im running Oracle 11gr2 on Oracle Enterprise Linux in VMware (Guest).
    Im having frequent disconnection after abnormal shutdown due to power failure.
    When attempting login from the Oracle Enterprise Manager Database Control
    I got  Error: "Your username and/or password are invalid."
    [test@localhost ~]$ xhost +
    access control disabled, clients can connect from any host
    [test@localhost ~]$
    [test@localhost ~]$ su - root
    Password:
    [root@localhost ~]#
    [root@localhost ~]# su - oracle
    [oracle@localhost ~]$
    [oracle@localhost ~]$ export ORACLE_SID=db11gr2
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/app/oracle/product/11.2.0/db_1
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_BASE
    /u01/app/oracle
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_SID
    db11gr2
    [oracle@localhost ~]$
    [oracle@localhost ~]$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 04-DEC-2013 12:23:07
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                04-DEC-2013 12:23:08
    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/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "db11gr2" has 1 instance(s).
      Instance "db11gr2", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@localhost ~]$
    [oracle@localhost ~]$ emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
    https://localhost.localdomain:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ............... started.
    Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_db11gr2/sysman/log
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:26:38 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL>
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    ORA-00600: internal error code, arguments: [4194], [: no
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    SQL>
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:59:23 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL>
    ERROR at line 1:
    ORA-03135: connection lost contact
    Process ID: 8973
    Session ID: 1 Serial number: 5
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:12:03 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL> select STATUS, DATABASE_STATUS from v$instance;
    STATUS       DATABASE_STATUS
    OPEN         ACTIVE
    SQL>
    SQL> SELECT * FROM v$instance;
    ERROR:
    ORA-03114: not connected to ORACLE
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:17:37 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL> SELECT * FROM v$instance;
    INSTANCE_NUMBER INSTANCE_NAME
    HOST_NAME
    VERSION           STARTUP_T STATUS       PAR    THREAD# ARCHIVE LOG_SWITCH_WAIT
    LOGINS     SHU DATABASE_STATUS   INSTANCE_ROLE      ACTIVE_ST BLO
                  1 db11gr2
    localhost.localdomain
    11.2.0.1.0        04-DEC-13 OPEN         NO           1 STOPPED
    ALLOWED    NO  ACTIVE            PRIMARY_INSTANCE   NORMAL    NO
    SQL>
    alert log file
    [oracle@localhost ~]$
    [oracle@localhost ~]$ adrci
    ADRCI: Release 11.2.0.1.0 - Production on Wed Dec 4 17:09:47 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    ADR base = "/u01/app/oracle"
    adrci> set editor emacs
    adrci> show alert
    Choose the alert log from the following homes to view:
    1: diag/rdbms/unknown/DB11G
    2: diag/rdbms/db11gr2/db11gr2
    3: diag/tnslsnr/localhost/listener
    Q: to quit
    Please select option: 2
    *** glibc detected *** adrci: malloc(): memory corruption: 0x09de7160 ***
    ======= Backtrace: =========
    /lib/libc.so.6[0x1d42dd]
    /lib/libc.so.6(__libc_malloc+0x67)[0x1d5e97]
    /lib/ld-linux.so.2[0x331f8a]
    /lib/ld-linux.so.2[0x33215a]
    /lib/ld-linux.so.2[0x32e3ce]
    /lib/libc.so.6[0x272550]
    /lib/libc.so.6(_dl_sym+0x1a)[0x2728fa]
    /lib/libdl.so.2[0x110e08]
    /lib/ld-linux.so.2[0x331e66]
    /lib/libdl.so.2[0x1112cc]
    /lib/libdl.so.2(dlsym+0x63)[0x110d93]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(sskgds_save_text_start_end+0x47)[0xa0fb37]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(skgdsinit+0xb7)[0xa0a909]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x15edea8]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(kgdsdsts+0x26)[0x15ef8c2]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStackWFlag+0x102)[0x198961a]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStack+0x2d)[0x198950d]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1989250]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdFillIncCtx+0x72)[0x1989088]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexPopulateIncCtx+0x67)[0x1994d25]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexProcessError+0x75)[0x1996437]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x19601c5]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgePostErrorDirect+0x650)[0x1960b3c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c58fb6]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x183c44e]
    [0x3bb440]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1cf7966]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrlrReadAlertMsg+0x562)[0x1cf7126]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrxae_alert_ext+0x2d4)[0xbbcf44]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb9f25c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch_real+0x23f)[0xb9bc1f]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch+0xee)[0xb9b520]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb53c3e]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrip_relation_iterator+0x16c)[0xb531bc]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripricm_rltniter_wcbf_mt+0x1f7)[0xb52709]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripritc_rltniter_wcbf+0xe6)[0xb585f2]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query+0x3f2)[0x1abe62c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query_wcmd+0x36f)[0x1abf053]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3e116]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3f5b7]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c4e2ae]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvciec_exec_cmd+0x4a2)[0x1c4d640]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvci_main_int+0x43b)[0x1c59e61]
    adrci[0x8048c5b]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmcall+0x363)[0x1496ec3]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmpmai+0x15c)[0x1497904]
    adrci[0x8048aa5]
    /lib/libc.so.6(__libc_start_main+0xdc)[0x17fe9c]
    adrci[0x8048811]
    ======= Memory map: ========
    00110000-00112000 r-xp 00000000 08:03 5925240    /lib/libdl-2.5.so
    00112000-00113000 r-xp 00001000 08:03 5925240    /lib/libdl-2.5.so
    00113000-00114000 rwxp 00002000 08:03 5925240    /lib/libdl-2.5.so
    00114000-00139000 r-xp 00000000 08:03 5925284    /lib/libm-2.5.so
    00139000-0013a000 r-xp 00024000 08:03 5925284    /lib/libm-2.5.so
    0013a000-0013b000 rwxp 00025000 08:03 5925284    /lib/libm-2.5.so
    0013b000-0014f000 r-xp 00000000 08:03 5925246    /lib/libpthread-2.5.so
    0014f000-00150000 r-xp 00013000 08:03 5925246    /lib/libpthread-2.5.so
    00150000-00151000 rwxp 00014000 08:03 5925246    /lib/libpthread-2.5.so
    00151000-00153000 rwxp 00151000 00:00 0
    00153000-00166000 r-xp 00000000 08:03 5925301    /lib/libnsl-2.5.so
    00166000-00167000 r-xp 00012000 08:03 5925301    /lib/libnsl-2.5.so
    00167000-00168000 rwxp 00013000 08:03 5925301    /lib/libnsl-2.5.so
    00168000-0016a000 rwxp 00168000 00:00 0
    0016a000-002a9000 r-xp 00000000 08:03 5925233    /lib/libc-2.5.so
    002a9000-002aa000 --xp 0013f000 08:03 5925233    /lib/libc-2.5.so
    002aa000-002ac000 r-xp 0013f000 08:03 5925233    /lib/libc-2.5.so
    002ac000-002ad000 rwxp 00141000 08:03 5925233    /lib/libc-2.5.so
    002ad000-002b0000 rwxp 002ad000 00:00 0
    002b0000-002b1000 r-xp 00000000 08:03 3905250    /usr/lib/libaio.so.1.0.1
    002b1000-002b2000 rwxp 00000000 08:03 3905250    /usr/lib/libaio.so.1.0.1
    002b2000-002bb000 r-xp 00000000 08:03 5925256    /lib/libnss_files-2.5.so
    002bb000-002bc000 r-xp 00008000 08:03 5925256    /lib/libnss_files-2.5.so
    002bc000-002bd000 rwxp 00009000 08:03 5925256    /lib/libnss_files-2.5.so
    002bd000-002c8000 r-xp 00000000 08:03 5925425    /lib/libgcc_s-4.1.2-20080825.so.1
    002c8000-002c9000 rwxp 0000a000 08:03 5925425    /lib/libgcc_s-4.1.2-20080825.so.1
    00324000-0033e000 r-xp 00000000 08:03 5925219    /lib/ld-2.5.so
    0033e000-0033f000 r-xp 00019000 08:03 5925219    /lib/ld-2.5.so
    0033f000-00340000 rwxp 0001a000 08:03 5925219    /lib/ld-2.5.so
    003bb000-003bc000 r-xp 003bb000 00:00 0          [vdso]
    003bc000-01fc3000 r-xp 00000000 08:03 4984633    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    01fc3000-020a7000 rwxp 01c07000 08:03 4984633    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    020a7000-020c1000 rwxp 020a7000 00:00 0
    025b1000-027ce000 r-xp 00000000 08:03 5006042    /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
    027ce000-027fc000 rwxp 0021d000 08:03 5006042    /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
    027fc000-027fe000 rwxp 027fc000 00:00 0
    08048000-08049000 r-xp 00000000 08:03 1407670    /u01/app/oracle/product/11.2.0/db_1/bin/adrci
    08049000-0804a000 rw-p 00000000 08:03 1407670    /u01/app/oracle/product/11.2.0/db_1/bin/adrci
    09d62000-09e0d000 rw-p 09d62000 00:00 0          [heap]
    b7e00000-b7e21000 rw-p b7e00000 00:00 0
    b7e21000-b7f00000 ---p b7e21000 00:00 0
    b7f68000-b7f90000 rw-p b7f68000 00:00 0
    bfc54000-bfc6d000 rwxp bffe5000 00:00 0          [stack]
    bfc6d000-bfc6e000 rw-p bfffe000 00:00 0

    Hi,
    Please check Oracle support id : Troubleshooting ORA-3135 Connection Lost Contact (Doc ID 787354.1)

  • I am getting error "ORA-12899: value too large for column".

    I am getting error "ORA-12899: value too large for column" after upgrading to 10.2.0.4.0
    Field is updating only through trigger with hard coded value.
    This happens randomly not everytime.
    select * from v$version
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Table Structure
    desc customer
    Name Null? Type
    CTRY_CODE NOT NULL CHAR(3 Byte)
    CO_CODE NOT NULL CHAR(3 Byte)
    CUST_NBR NOT NULL NUMBER(10)
    CUST_NAME CHAR(40 Byte)
    RECORD_STATUS CHAR(1 Byte)
    Trigger on the table
    CREATE OR REPLACE TRIGGER CUST_INSUPD
    BEFORE INSERT OR UPDATE
    ON CUSTOMER FOR EACH ROW
    BEGIN
    IF INSERTING THEN
    :NEW.RECORD_STATUS := 'I';
    ELSIF UPDATING THEN
    :NEW.RECORD_STATUS := 'U';
    END IF;
    END;
    ERROR at line 1:
    ORA-01001: invalid cursor
    ORA-06512: at "UPDATE_CUSTOMER", line 1320
    ORA-12899: value too large for column "CUSTOMER"."RECORD_STATUS" (actual: 3,
    maximum: 1)
    ORA-06512: at line 1
    Edited by: user4211491 on Nov 25, 2009 9:30 PM
    Edited by: user4211491 on Nov 25, 2009 9:32 PM

    SQL> create table customer(
      2  CTRY_CODE  CHAR(3 Byte) not null,
      3  CO_CODE  CHAR(3 Byte) not null,
      4  CUST_NBR NUMBER(10) not null,
      5  CUST_NAME CHAR(40 Byte) ,
      6  RECORD_STATUS CHAR(1 Byte)
      7  );
    Table created.
    SQL> CREATE OR REPLACE TRIGGER CUST_INSUPD
      2  BEFORE INSERT OR UPDATE
      3  ON CUSTOMER FOR EACH ROW
      4  BEGIN
      5  IF INSERTING THEN
      6  :NEW.RECORD_STATUS := 'I';
      7  ELSIF UPDATING THEN
      8  :NEW.RECORD_STATUS := 'U';
      9  END IF;
    10  END;
    11  /
    Trigger created.
    SQL> insert into customer(CTRY_CODE,CO_CODE,CUST_NBR,CUST_NAME,RECORD_STATUS)
      2                values('12','13','1','Mahesh Kaila','UPD');
                  values('12','13','1','Mahesh Kaila','UPD')
    ERROR at line 2:
    ORA-12899: value too large for column "HPVPPM"."CUSTOMER"."RECORD_STATUS"
    (actual: 3, maximum: 1)
    SQL> insert into customer(CTRY_CODE,CO_CODE,CUST_NBR,CUST_NAME)
      2                values('12','13','1','Mahesh Kaila');
    1 row created.
    SQL> set linesize 200
    SQL> select * from customer;
    CTR CO_   CUST_NBR CUST_NAME                                R
    12  13           1 Mahesh Kaila                             I
    SQL> update customer set cust_name='tst';
    1 row updated.
    SQL> select * from customer;
    CTR CO_   CUST_NBR CUST_NAME                                R
    12  13           1 tst                                      Urecheck your code once again..somewhere you are using record_status column for insertion or updation.
    Ravi Kumar

  • Getting error  ORA-20001: FLEX-ID DOES NOT EXIST

    I am trying to load new jobs.. I have run the fnd_flex_val_api.create_independent_vset_value to load the values into the segments needed.. NREL HR Job Title and NREL HR Job Descriptor and the values are in there.
    I'm getting this in the hr_job_api.create_job api. thanks, Scott
    Edited by: user12036380 on Aug 26, 2010 3:18 PM

    Hi,
    What is the application release?
    Please see if these docs help.
    Error 'ORA-20001: FLEX-ID Does Not Exist' In HR_POSITIONS_API While Loading Positions [ID 790124.1]
    HR_ASSIGNMENT_EXTRA_INFO_API.UPDATE_ASSIGNMENT_EXTRA_INFO Errors with 'ORA-20001: FLEX-ID DOES NOT EXIST' [ID 1163457.1]
    HR_IN_PERSONAL_PAY_METHOD_API Error Ora-20001 Flex-Id Does Not Exist [ID 834844.1]
    Cannot Create Employee Via API - FLEX-ID DOES NOT EXIST Error Occurs [ID 554850.1]
    Thanks,
    Hussein

  • HT1212 IPAD is Disabled, tried to connect via itunes but get error "iTunes could not connect to the [device] because it is locked with a passcode. You must enter your passcode on the [device] before it can be used with iTunes."

    IPAD is Disabled, tried to connect via itunes but get error "iTunes could not connect to the [device] because it is locked with a passcode. You must enter your passcode on the [device] before it can be used with iTunes."

    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Getting Error ORA-01422&ORA-06512 while clicking distributions of invoice

    Hi,
    I am Getting Error ORA-01422&ORA-06512 when i query the invoice and click on the All distributions.
    However i am getting this error only for some invoices and not for all.
    Any suggestion on this is highly appreciated.
    Regards,
    Shreyans

    Hi,
    What is the application release? If you are on R12, please refer to these documents.
    Note: 580014.1 - R12 Invoices FAQs - (16. Why do the Errors ORA-01422 and ORA-06512 Show when Clicking on the [All Distributions] Button?)
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=580014.1
    Note: 559199.1 - Error ORA-01422 ORA-06512 Raises when Click On [All Distributions] Button
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=559199.1
    Regards,
    Hussein

  • Getting error ORA-01033 : Oracle Initialization or shutdown in progress

    Getting error ORA-01033 : Oracle Initialization or shutdown in progress
    Tried to login with different users and could login thru one user. when given the command shuddown immediate, gave the error :
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    When given the command startup, gave the error :
    ORACLE instance started.
    Total System Global Area 135338868 bytes
    Fixed Size 453492 bytes
    Variable Size 109051904 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    ORA-00322: log 1 of thread 1 is not current copy
    ORA-00312: online log 1 thread 1: 'C:\ORACLE\ORADATA\LDESK\REDO01.LOG'
    Please guide
    Regards,
    Meenal

    ORA-00322:     log string of thread string is not current copy
    Cause:     Check of log file header at database open found that an online log appears to be an incorrectly restored backup.
    Action:     Restore correct file or reset logs.
    As already mentioned,your redo seems to be corrupted.Are you in archivelog mode with a good copy of backup with you?
    Aman....

  • Getting error ORA-12705, while connecting through Sql*Plus?

    Hi TOM,
    While connecting ORACLE Database through Sql*Plus / via through Application. We getting error called "Error while trying to retrieve text for error ORA-12705".
    How to re-solve this one?
    Thanks & Regards,
    Senthil K Kumar.

    Maran,
    check the registry NLS_LANG in the registry rename it as suggested by burleson and add a new entryCurrently, it was more suggested by Maxim ;-)
    Nicolas.

  • PLEASE HELP !!! Getting error ORA-02438 and ORA-00910

    Hi,
    I am trying to create a table, have a field "Financial_Aid_Requested" declared as CHAR() and has a check constraint on it, when I try to run it, it gives me error "ORA-00910: specified length too long for its datatype" and so when I try to change the datatype to VARCHAR2 or even CHAR(2000), or CHAR(2) it gives me error "ORA-02438: Column check constraint cannot reference other columns"
    PLEASE HELP, I AM STUCK WITH THIS THING !!
    Below is What I have written as a part of query :
    Financial_Aid_Requested      CHAR() NULL
    CONSTRAINT CK3APPLICATION_INFO
    CHECK (Financial_Aid_Requested IN (Y,N))
    Thank you in advance.

    I wonder why you use CHAR in the first place, why not VARCHAR2(1)?
    You have to put Y and N between quotes:
    create table mytab (
    Financial_Aid_Requested VARCHAR2(1) NULL
    CONSTRAINT CK3APPLICATION_INFO
    CHECK (Financial_Aid_Requested IN ('Y','N'))

Maybe you are looking for

  • Vendor's reconciliation account change

    Hello There's change in the reconciliation account of vendor.... for this strategy is like this.... first making the all open items of vendor equal to zero....using vendor clearing account... For e.g Vendor reconciliation a/c(old)-Dr.   To vendor cle

  • Add new system to an Existing project in Change Request in Solution Manager

    HI, Is it ok to add new systems and remove systems to an existing Project in Solution Manager with Change Request Management activated? Currently, Change request is already set-up in our solution landscape, however, a new BI Dev and QA systems were c

  • BI content for invoices from vendors

    Hi guys, Can you please help me in finding the appropriate BI content (DataSource, ETL, Cube, etc) for vendor invoices. I must find a way to put together the invoices that have been received from all the vendors, both on header and item level. Thanks

  • Installing crashes Macbook Pro Retina

    Hi, I'm desperatly trying to install PS 6 on my new Macbook Pro Retina.  But the installer always stops at 80% and crashes the computer.  I have to switch it off and on.  Didn't get any error message (well, haven't found any yet ...). Any idea or hin

  • When copying a cd to i-tunes, some tracks get separated - how do I re-unite the album tracks?

    When copying a CD to I-tunes, some tracks get separated out - how can I re-unite these tracks with the rest ofm the album?