End.of.file character sequence in jdeveloper

I'm unable to input the windows end-of-file character in the program input window (JDeveloper) so i can exit the while loop below. The window accepts all other characters except the CTRL-C character sequence in windows. How does a user exit this loop in the \\\jdev
while (input.hasNext()) { //loop until EOF character
try {
//retrieve data to be input
record.setAccount(input.nextInt());
record.setFirstName(input.next());
record.setLastName(input.next());
record.setBalance(input.nextDouble());
if (record.getAccount() > 0) {
output.format("%d %s %s %.2f\n", record.getAccount(),
record.getFirstName(), record.getLastName(),
record.getBalance());
} else {
System.out.println("Account number must be greater than 0");
} //end try
catch (FormatterClosedException e) {
System.err.println("Error writing to file.");
return;
} catch (NoSuchElementException e) {
System.err.println("Invlaid input. Please try again.");
input.nextLine();
System.out.printf("%s %s\n%s", "Enter account number (>0), ",
"first name, last name, and balance.", "? ");
} //end while
//...

Hi,
That charecter comes in the last field in the file as it is the end , so write a code in transformations from PSA to DSO of the last  field.
Here i am giving the code that needs to be included in the field routine.
DATA : INT_VAR TYPE /BI0/OIMATERIAL. (give your field insted of material)
DATA : STR_VAR1(20) TYPE C. (give your field type here)
DATA : VAR2 TYPE I.
DATA : VAR3 TYPE I.
DATA : VAR4 TYPE I.
DATA : STR_VAR6(20) TYPE C.
MOVE SOURCE_FIELDS-MATERIAL TO INT_VAR.
TRANSLATE INT_VAR TO UPPER CASE .
IF INT_VAR CN
',<>?/\:;"''ABCDEFGHI JKLMNOPQRSTUVWXYZ!%^&*()__+=1234567890' .
STR_VAR1 = INT_VAR+0(SY-FDPOS).
VAR2 = STRLEN( INT_VAR ).
VAR3 = SY-FDPOS + 1.
VAR4 = VAR2 - VAR3.
STR_VAR6 = INT_VAR+VAR3(VAR4).
CONCATENATE STR_VAR1 STR_VAR6 INTO RESULT.
ELSE.
RESULT = INT_VAR.
ENDIF.
Hope this works good in your case
Cheers,
Srinath.

Similar Messages

  • INPUT THE END-OF-FILE CHARACTER/ CRTL-C in Jdeveloper

    I'm trynta input the end-of-file character in the program input window (JDeveloper) so i can exit the while loop below. The window accepts all other characters except the CTRL-C character sequence in windows. How does the user exit this loop?
    while (input.hasNext()) { //loop until EOF character
    try {
    //retrieve data to be input
    record.setAccount(input.nextInt());
    record.setFirstName(input.next());
    record.setLastName(input.next());
    record.setBalance(input.nextDouble());
    if (record.getAccount() > 0) {
    output.format("%d %s %s %.2f\n", record.getAccount(),
    record.getFirstName(), record.getLastName(),
    record.getBalance());
    } else {
    System.out.println("Account number must be greater than 0");
    } //end try
    catch (FormatterClosedException e) {
    System.err.println("Error writing to file.");
    return;
    } catch (NoSuchElementException e) {
    System.err.println("Invlaid input. Please try again.");
    input.nextLine();
    System.out.printf("%s %s\n%s", "Enter account number (>0), ",
    "first name, last name, and balance.", "? ");
    } //end while
    //...

    Hi,
    U need to use one class. Refer below given code.
    TYPES : BEGIN OF lt_record_input,
              rec(1000) TYPE c,
            END OF lt_record_input.
    DATA : li_record_input TYPE TABLE OF lt_record_input .
    DATA lv_cr TYPE c.
    lv_cr = cl_abap_char_utilities=>cr_lf.
    CONCATENATE '/opt/isv/cti_app/DOCU/INCOMING/PROCESSED/UNSUCCESSFUL/'
    gv_filename INTO lv_path.
    OPEN DATASET lv_path FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc = 0.
      DO.
        READ DATASET lv_path INTO lw_record_input-rec.
        IF sy-subrc EQ 0.
          REPLACE lv_cr IN lw_record_input-rec WITH space.
          APPEND lw_record_input TO li_record_input.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      CLOSE DATASET lv_path.
    ENDIF.
    Hope it help u.

  • Create end of file character in email attachment

    Hi all,
    Currently I am attaching a text file to the email send using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    But here the issue is, in attachment file there are extra 3 blank lines are getting filled which client does't want.
    Is there any way to generate end of file character, to add after all rows got filled in internal table?
    Or is there any way to not to filled blank lines at the end of the file?
    Please advise a solution.
    Thanks and Regards
    Nishad

    Hi,
    gs_packinglist-doc_size =  gf_count * 255 .
    This is how I am passing the doc_size. In the above, gf_count is the number rows in attachment file that I am multiplying with 255 characters as I am passing attachment in contents_bin parameter.
    Thanks and regards
    Nishad

  • Convrtd to Invterval Part- ORA-03113: end-of-file on communication channel

    Hi all,
    I had a table as Interval Partitioned. In order to create XML- Xpath indexes on it, I converted it to Range Partitioned table.
    I am able to create the XPATH indexes but I get the error: ORA-03113: end-of-file on communication channel
    - When I revert the code to Interval Partitioned without the XMLIndex, it works fine(although takes time as no XML Index)
    - When I convert table to non partitioned table, create the XML Index, it works fine.
    But I need the partitons, so when I create the partitioned table I get the error.
    CREATE TABLE INT_PART_TABLE
    DB_ID VARCHAR2(10 BYTE),
    xML_mESSAGE SYS.XMLTYPE,
    LOAD_TIMESTAMP TIMESTAMP(6)
    XMLTYPE xML_mESSAGE STORE AS BINARY XML
    PARTITION BY RANGE (LOAD_TIMESTAMP)
    PARTITION MAX VALUES LESS THAN (TIMESTAMP' 2013-06-01 00:00:00')
    TABLESPACE CSTR_STG_DATA
    NOCOMPRESS
    NOCACHE
    ENABLE ROW MOVEMENT;
    BEGIN
    DBMS_XMLINDEX.dropparameter('Indx_Par');
    END;
    BEGIN
    DBMS_XMLINDEX.REGISTERPARAMETER(
    'Indx_Par',
    'PATH TABLE Table1
    PATHS (INCLUDE ( /abc:field1/xyz:field2
    /abc:field1/def:field2
    NAMESPACE MAPPING ( xmlns:abc="ABCD"
    xmlns:def="DEFG"
    xmlns:xyz="XYZA"
    end;
    create index INDX_XPATHS on "INT_PART_TABLE" (XML_MESSAGE) indextype is xdb.xmlindex
    parameters ('PARAM Indx_Par') local;
    Now if I execute the following statement in
    SELECT T.xML_mESSAGE
    FROM INT_PART_TABLE1 T
    WHERE XMLEXISTS (
    declare namespace abc="ABCD";
    declare namespacedef="DEFG";
    declare namespace xyz="XYZA";
    let $tt as xs:boolean := fn:exists($p/main/id = ("144283","9085802")])
    return if ($tt) then true()
    else ()'
    PASSING T.xML_mESSAGE AS "p");
    - Is there any other way of writing this Select statement, which may work?
    - Any other thing I need to take care of when defining the table and partitions script so that I don't get this error?

    Hi,
    I think it's time you give a clear (and working) test case so that we can safely try to reproduce the issue.
    What you've given so far has syntax error and name mismatch.
    So please :
    - database version (SELECT * FROM v$version)
    - complete sequence of DLLs
    - some sample XML documents (it doesn't have to be the real ones, but at least something realistic)
    Thanks in advance.
    declare namespace abc="ABCD";
    declare namespacedef="DEFG";
    declare namespace xyz="XYZA";
    let $tt as xs:boolean := fn:exists($p/main/id = ("144283","9085802")])
    return if ($tt) then true()
    else ()'Why all that stuff? You don't have to return a boolean.
    The following works for me on 11.2.0.3 :
    SQL> CREATE TABLE int_part_table (
      2    db_id          VARCHAR2(10)
      3  , xml_message    XMLTYPE
      4  , load_timestamp TIMESTAMP
      5  )
      6  XMLTYPE xml_message STORE AS BINARY XML
      7  PARTITION BY RANGE (load_timestamp) (
      8    PARTITION MAX VALUES LESS THAN (timestamp '2013-06-01 00:00:00')
      9  )
    10  NOCOMPRESS
    11  NOCACHE
    12  ENABLE ROW MOVEMENT;
    Table created
    SQL> insert into int_part_table values (1, xmltype('<main><id>144283</id></main>'), sysdate);
    1 row inserted
    SQL> insert into int_part_table values (1, xmltype('<main><id>9085802</id></main>'), sysdate);
    1 row inserted
    SQL> insert into int_part_table values (1, xmltype('<main><id>1</id></main>'), sysdate);
    1 row inserted
    SQL> commit;
    Commit complete
    SQL> create index int_part_table_uix on int_part_table (xml_message)
      2  indextype is xdb.xmlindex
      3  parameters (
      4  'PATH TABLE INT_PART_TABLE_PT
      5  PATHS ( INCLUDE ( /main/id ) )')
      6  local;
    Index created
    SQL> SELECT xml_message
      2  FROM int_part_table
      3  WHERE XMLExists(
      4         '/main[id=("144283","9085802")]'
      5         PASSING xml_message
      6       )
      7  ;
    XML_MESSAGE
    <main>
      <id>144283</id>
    </main>
    <main>
      <id>9085802</id>
    </main>
    Execution Plan
    Plan hash value: 3517234298
    | Id  | Operation                              | Name                         | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    |   0 | SELECT STATEMENT                       |                              |     1 |   155 |    34   (6)| 00:00:01 |       |       |
    |   1 |  NESTED LOOPS                          |                              |     1 |   155 |    34   (6)| 00:00:01 |       |       |
    |   2 |   VIEW                                 | VW_SQ_1                      |     1 |    25 |    32   (4)| 00:00:01 |       |       |
    |   3 |    HASH UNIQUE                         |                              |     1 |    47 |         |             |       |       |
    |*  4 |     HASH JOIN SEMI                     |                              |     1 |    47 |    32   (4)| 00:00:01 |       |       |
    |   5 |      PARTITION SYSTEM SINGLE           |                              |     2 |    90 |     2   (0)| 00:00:01 |     1 |     1 |
    |*  6 |       TABLE ACCESS BY LOCAL INDEX ROWID| INT_PART_TABLE_PT            |     2 |    90 |     2   (0)| 00:00:01 |     1 |     1 |
    |*  7 |        INDEX SKIP SCAN                 | SYS117585_INT_PART__PIKEY_IX |     3 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |   8 |      COLLECTION ITERATOR PICKLER FETCH | XQSEQUENCEFROMXMLTYPE        |  8168 | 16336 |    29   (0)| 00:00:01 |       |       |
    |*  9 |   TABLE ACCESS BY USER ROWID           | INT_PART_TABLE               |     1 |   130 |     1   (0)| 00:00:01 | ROWID | ROWID |
    Predicate Information (identified by operation id):
       4 - access("SYS_P3"."VALUE"=SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0) AND
                  SUBSTRB("VALUE",1,1599)=SUBSTRB(SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0),1,1599))
       6 - filter(SYS_XMLI_LOC_ISNODE("SYS_P3"."LOCATOR")=1)
       7 - access("SYS_P3"."PATHID"=HEXTORAW('704E') )
           filter("SYS_P3"."PATHID"=HEXTORAW('704E') )
       9 - filter("ITEM_6"=TBL$OR$IDX$PART$NUM("DEV"."INT_PART_TABLE",0,7,65535,"INT_PART_TABLE".ROWID))
    Note
       - Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)
    SQL> SELECT xml_message
      2  FROM int_part_table
      3  WHERE XMLExists(
      4         '/main[id="144283" or id="9085802"]'
      5         PASSING xml_message
      6       )
      7  ;
    XML_MESSAGE
    <main>
      <id>144283</id>
    </main>
    <main>
      <id>9085802</id>
    </main>
    Execution Plan
    Plan hash value: 3748936130
    | Id  | Operation                                | Name                         | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    |   0 | SELECT STATEMENT                         |                              |     1 |   155 |    11  (10)| 00:00:01 |       |       |
    |   1 |  NESTED LOOPS                            |                              |     1 |   155 |    11  (10)| 00:00:01 |       |       |
    |   2 |   VIEW                                   | VW_SQ_1                      |     2 |    50 |     8   (0)| 00:00:01 |       |       |
    |   3 |    HASH UNIQUE                           |                              |     2 |   180 |         |             |       |       |
    |   4 |     CONCATENATION                        |                              |       |       |         |             |       |       |
    |   5 |      NESTED LOOPS                        |                              |       |       |         |             |       |       |
    |   6 |       NESTED LOOPS                       |                              |     1 |    90 |     4   (0)| 00:00:01 |       |       |
    |   7 |        PARTITION SYSTEM SINGLE           |                              |     1 |    45 |     2   (0)| 00:00:01 |     1 |     1 |
    |*  8 |         TABLE ACCESS BY LOCAL INDEX ROWID| INT_PART_TABLE_PT            |     1 |    45 |     2   (0)| 00:00:01 |     1 |     1 |
    |*  9 |          INDEX SKIP SCAN                 | SYS117585_INT_PART__PIKEY_IX |     3 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |  10 |        PARTITION SYSTEM SINGLE           |                              |     1 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |* 11 |         INDEX RANGE SCAN                 | SYS117585_INT_PART__PIKEY_IX |     1 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |* 12 |       TABLE ACCESS BY LOCAL INDEX ROWID  | INT_PART_TABLE_PT            |     1 |    45 |     2   (0)| 00:00:01 |     1 |     1 |
    |  13 |      NESTED LOOPS                        |                              |       |       |         |             |       |       |
    |  14 |       NESTED LOOPS                       |                              |     1 |    90 |     4   (0)| 00:00:01 |       |       |
    |  15 |        PARTITION SYSTEM SINGLE           |                              |     1 |    45 |     2   (0)| 00:00:01 |     1 |     1 |
    |* 16 |         TABLE ACCESS BY LOCAL INDEX ROWID| INT_PART_TABLE_PT            |     1 |    45 |     2   (0)| 00:00:01 |     1 |     1 |
    |* 17 |          INDEX SKIP SCAN                 | SYS117585_INT_PART__PIKEY_IX |     3 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |  18 |        PARTITION SYSTEM SINGLE           |                              |     1 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |* 19 |         INDEX RANGE SCAN                 | SYS117585_INT_PART__PIKEY_IX |     1 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |* 20 |       TABLE ACCESS BY LOCAL INDEX ROWID  | INT_PART_TABLE_PT            |     1 |    45 |     2   (0)| 00:00:01 |     1 |     1 |
    |* 21 |   TABLE ACCESS BY USER ROWID             | INT_PART_TABLE               |     1 |   130 |     1   (0)| 00:00:01 | ROWID | ROWID |
    Predicate Information (identified by operation id):
       8 - filter("SYS_P5"."VALUE"='9085802' AND SYS_XMLI_LOC_ISNODE("SYS_P5"."LOCATOR")=1 AND SUBSTRB("VALUE",1,1599)='9085802')
       9 - access("SYS_P5"."PATHID"=HEXTORAW('704E') )
           filter("SYS_P5"."PATHID"=HEXTORAW('704E') )
      11 - access("SYS_P5"."RID"="SYS_P3"."RID" AND "SYS_P3"."PATHID"=HEXTORAW('0BBD')  AND
                  "SYS_P3"."ORDER_KEY"<"SYS_P5"."ORDER_KEY")
           filter(SYS_ORDERKEY_DEPTH("SYS_P3"."ORDER_KEY")+1=SYS_ORDERKEY_DEPTH("SYS_P5"."ORDER_KEY") AND
                  TBL$OR$IDX$PART$NUM("DEV"."INT_PART_TABLE",0,7,65535,"SYS_P3"."RID")=TBL$OR$IDX$PART$NUM("DEV"."INT_PART_TABLE_PT",0,7,65535,ROWI
                  D) AND "SYS_P5"."ORDER_KEY"<SYS_ORDERKEY_MAXCHILD("SYS_P3"."ORDER_KEY"))
      12 - filter(SYS_XMLI_LOC_ISNODE("SYS_P3"."LOCATOR")=1)
      16 - filter("SYS_P5"."VALUE"='144283' AND SYS_XMLI_LOC_ISNODE("SYS_P5"."LOCATOR")=1 AND SUBSTRB("VALUE",1,1599)='144283' AND
                  (LNNVL("SYS_P5"."VALUE"='9085802') OR LNNVL("SYS_P5"."PATHID"=HEXTORAW('704E') ) OR
                  LNNVL(SYS_XMLI_LOC_ISNODE("SYS_P5"."LOCATOR")=1) OR LNNVL(SUBSTRB("VALUE",1,1599)='9085802')))
      17 - access("SYS_P5"."PATHID"=HEXTORAW('704E') )
           filter("SYS_P5"."PATHID"=HEXTORAW('704E') )
      19 - access("SYS_P5"."RID"="SYS_P3"."RID" AND "SYS_P3"."PATHID"=HEXTORAW('0BBD')  AND
                  "SYS_P3"."ORDER_KEY"<"SYS_P5"."ORDER_KEY")
           filter(SYS_ORDERKEY_DEPTH("SYS_P3"."ORDER_KEY")+1=SYS_ORDERKEY_DEPTH("SYS_P5"."ORDER_KEY") AND
                  TBL$OR$IDX$PART$NUM("DEV"."INT_PART_TABLE",0,7,65535,"SYS_P3"."RID")=TBL$OR$IDX$PART$NUM("DEV"."INT_PART_TABLE_PT",0,7,65535,ROWI
                  D) AND "SYS_P5"."ORDER_KEY"<SYS_ORDERKEY_MAXCHILD("SYS_P3"."ORDER_KEY"))
      20 - filter(SYS_XMLI_LOC_ISNODE("SYS_P3"."LOCATOR")=1)
      21 - filter("ITEM_2"=TBL$OR$IDX$PART$NUM("DEV"."INT_PART_TABLE",0,7,65535,"INT_PART_TABLE".ROWID))I asked in one of your other threads if /main/id was unique per XML document.
    If so, you can use a simple function-based index instead of the XMLIndex :
    SQL> drop index int_part_table_uix;
    Index dropped.
    SQL> create index int_part_table_ix1 on int_part_table (
      2    xmlcast(
      3      xmlquery('/main/id' passing XML_MESSAGE returning content)
      4      as varchar2(10)
      5    )
      6  );
    Index created.
    SQL> SELECT xml_message
      2  FROM int_part_table
      3  WHERE XMLCast(
      4          XMLQuery('/main/id' PASSING xml_message RETURNING CONTENT)
      5          AS VARCHAR2(10)
      6        )
      7  IN ('144283', '9085802');
    XML_MESSAGE
    <main>
      <id>144283</id>
    </main>
    <main>
      <id>9085802</id>
    </main>
    Execution Plan
    Plan hash value: 2864653096
    | Id  | Operation                           | Name               | Rows  | Bytes | Cost (%CPU)| Time  | Pstart| Pstop |
    |   0 | SELECT STATEMENT                    |                    |     2 |   236 |     2   (0)| 00:00:01 |       |       |
    |   1 |  INLIST ITERATOR                    |                    |       |       |            |       |  |       |
    |   2 |   TABLE ACCESS BY GLOBAL INDEX ROWID| INT_PART_TABLE     |     2 |   236 |     2   (0)| 00:00:01 |     1 |     1 |
    |*  3 |    INDEX RANGE SCAN                 | INT_PART_TABLE_IX1 |     2 |       |     1   (0)| 00:00:01 |       |       |
    Predicate Information (identified by operation id):
       3 - access(CAST(EXTRACTVALUE(SYS_MAKEXML(0,"SYS_NC00003$"),'/main/id',null,0,0,524293,1073874944) AS
                  varchar2(10)   )='144283' OR CAST(EXTRACTVALUE(SYS_MAKEXML(0,"SYS_NC00003$"),'/main/id',null,0,0,524293,1073874944
                  ) AS varchar2(10)   )='9085802')

  • Error ORA-03113: end-of-file on communication channel (while starting db)

    Hello everybody! :-)
    Looks like a need help with Oracle 11gr2 (RHEL 6 x64). Faced with a problem while starting database:
    sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Dec 7 01:43:45 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 2538741760 bytes
    Fixed Size 2216024 bytes
    Variable Size 1828720552 bytes
    Database Buffers 687865856 bytes
    Redo Buffers 19939328 bytes
    Database mounted.
    ORA-03113: end-of-file on communication channel
    Process ID: 6601
    Session ID: 575 Serial number: 5
    This is logfile (/u01/app/oracle/diag/rdbms/orcldocs1/orcldocs1/alert/log.xml):
    <msg time='2012-12-07T01:52:22.363+04:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='localhost.localdomain' host_addr='127.0.0.1' module='[email protected] (TNS V1-V3)'
    pid='6881'>
    <txt>Errors in file /u01/app/oracle/diag/rdbms/orcldocs1/orcldocs1/trace/orcldocs1_ora_6881.trc:
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 28496896 bytes disk space from 5218762752 limit
    </txt>
    </msg>
    <msg time='2012-12-07T01:52:22.363+04:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='localhost.localdomain' host_addr='127.0.0.1' module='[email protected] (TNS V1-V3)'
    pid='6881'>
    <txt>ARCH: Error 19809 Creating archive log file to &apos;/u01/app/oracle/flash_recovery_area/ORCLDOCS1/archivelog/2012_12_07/o1_mf_1_249_%u_.arc&apos;
    </txt>
    </msg>
    <msg time='2012-12-07T01:52:22.368+04:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='localhost.localdomain' host_addr='127.0.0.1' module='[email protected] (TNS V1-V3)'
    pid='6881'>
    <txt>Errors in file /u01/app/oracle/diag/rdbms/orcldocs1/orcldocs1/trace/orcldocs1_ora_6881.trc:
    ORA-16038: log 3 sequence# 249 cannot be archived
    ORA-19809: limit exceeded for recovery files
    ORA-00312: online log 3 thread 1: &apos;/u01/app/oracle/oradata/orcldocs1/redo03.log&apos;
    </txt>
    </msg>
    <msg time='2012-12-07T01:52:22.368+04:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='localhost.localdomain' host_addr='127.0.0.1' module='[email protected] (TNS V1-V3)'
    pid='6881'>
    <txt>USER (ospid: 6881): terminating the instance due to error 16038
    </txt>
    </msg>
    <msg time='2012-12-07T01:52:23.540+04:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='localhost.localdomain' host_addr='127.0.0.1' module='[email protected] (TNS V1-V3)'
    pid='6881'>
    <txt>Instance terminated by USER, pid = 6881
    </txt>
    </msg>
    How can I resolve it, please advice. Thank you.
    Edited by: user9001403 on 06.12.2012 5:58

    Hi,
    Looks like your archivelog space is exhausted. Increase the db_recovery_file_dest_size size and check.
    SQL>  show parameter db_recovery
    NAME                                 TYPE        VALUE
    db_recovery_file_dest                string      /oracle/flash_recovery_area
    db_recovery_file_dest_size           big integer 3882MRegards,
    Anand.

  • In Lr 3.6 how can I search for filenames ending with a # character ?

    The text search seems to treat the # character in some mysterious way so as to not select the files that have it in their name. I cannot find any explanation for this in the documentation. Is there some other character(s) that I have to put beside the # to make it register as a normal character ?
    My specific problem is that I need to locate a bunch of files in my catalog that have names ending with a # character. I want to rename those files in a way that removes the trailing # but not other # characters that separate key parts of the file names. If I can't do that then I want to select that group of files and produce .xmp files for them (I don't normally use .xmp files) so that I can rename the files outside Lr and import them again complete with all previous tweaks and metadata.
    I dare say that I would not choose to name files this way if I started again but I've got far too many to change now. 
    There are also too many for me to want to rename them individually in the Metadata panel if I can avoid it.
    I'm using Lr 3.6 on Mac OSX 10.6.8
    cheers,
    - Alan

    You guys beat me to the answer, which I discovered more by accident than good management.
    Firstly, I had used the # characters because they looked good in list views such as in Windows Explorer or the Mac Finder. That was from before I got into using Lr and I was trying and using several different programs to manage my photos. Then I found that trailing # characters prevented Lr from recognizing the number at the "end" of the file name and so I wanted to delete them.
    Secondly, I got into the Lr rename facility initially to replace what I did with Downloader Pro before switching from Windows to Mac and subsequently found that there is no way to delete a trailing character, but it helped establish in my mind that to Lr the "filename" was just the first part of the name before the full stop and the extension (e.g. .cr2 or .nef or .jpg). Try it - there is a "filename" token for setting up a naming structure that ignores the extension and its full stop.
    This was further reinforced in Library Grid View where the filename and the extension are separated and the extension is not displayed.
    So having used F2 (rename) before I got around to playing with the text search I was set up for failure. Looking for {filename ends with #} or {filename ends with #.} failed because it found nothing as none of my files had a # or #. after the filename extension, and looking for {filename contains #} also failed because it found all of my files instead of just those with the trailing #. I wrongly thought that Lr had trouble seeing a # in the text search.
    Now I have been able to find and select all files with a trailing # in the base part of the filename by looking for {filename contains #.} and generate current .xmp files for them. Then I went outside Lr and used a utility file renamer to get rid of the offending # for the image files and the .xmp files in bulk. Then I re-synchronized the folder(s) in Lr to import those renamed files back into Lr along with all of the metadata, and get rid of the old files from the catalog. Had those files been a part of a collection or stack then I suspect that membership of the collection or stack would have been lost but it kept the keywords, ratings, labels, and image tweaks. Then I got rid of the .xmp files again because I prefer to work without them (less clutter and less chance of other software separating them from the image files).
    So much easier than doing it the hard way
    Thanks for your help.
    - Alan

  • FILE_to_RFC  (Premature end of file)

    Hello,
    I'm trying to setup a FILE_to_RFC connection.
    Let me explain what I want to do .
    External systems sends files which should linked to SAP documents that users can later see with FB03.
    This can be done by function module ARCHIV_CREATE_SYNCHRON_META or similar, but only this is remote-enabled.
    Here an example:
    External system sends for e.g.  3 files. All files are located in file-system.
    1. file :  file-aaa.pdf
    2. file:   file-bbb-pdf
    3. file:   upload.txt
    Content of third file:  
    company-code, SAP-document number, year, file-name 
    0400..................6800004711...................2008..file-aaa.pdf
    0400.................48000004712..................2009, file-bbb.pdf
    FILE-Sender-channel is polling for  the file  "upload.txt".  This file will convert from text to XM by Adapter, so far ok. .
    RFC-Receiver-channel so far ok.  Using  imported RFC function module
    Test Message-Mappng : OK    (  MT_INVOICES  -->  ARCHIV_CREATE_SYNCHRON_META )
    Test.Operation-Maping:  OK
    But the process failed with following errors: , File "upload.txt" has been archived but no other activities.
    ==============================================================================
    SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_MT_INVOICES_to_ARCHIV_CREATE_SY~</SAP:P1>
      <SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>
      <SAP:P3>on: Cannot create target element /ns1:ARCHIV_CREAT</SAP:P3>
      <SAP:P4>E_SYNCHRON_META/AR_OBJECT. Values missing in queu~</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_MT_INVOICES_to_ARCHIV_CREATE_SY; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns1:ARCHIV_CREATE_SYNCHRON_META/AR_OBJECT. Values missing in queu</SAP:Stack>
    Test-Result of configuration in the Integration Builder:
    ======================================
    Runtime exception occurred during application mapping com/sap/xi/tf/_MM_MT_INVOICES_to_ARCHIV_CREATE_SY~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Premature end of file.
    Maybe somebody can help here ?

    The payload is following: I imported this into the test area.
    <?xml version="1.0" encoding="utf-8" ?>
        <MT_INVOICES>
          <Recordset>
              <ROW>
                   <TEXT1>EFLOW</TEXT1>
                   <TEXT2>FI_DOCUMENTS</TEXT2>
                   <SAP_DOCUMENT>4300005878</SAP_DOCUMENT>
                   <COMPANY_CODE>0401</COMPANY_CODE>
                   <YEAR>2005</YEAR>
                   <FILE_NAME>file-1.gif</FILE_NAME>
                   <FILE_TYPE>GIF</FILE_TYPE>
            </ROW>
         </Recordset>
      </MT_INVOICES>
    Below the XSD schema of the  data type
    <xsd:complexType name="DT_INVOICES">
          <xsd:annotation>
             <xsd:documentation xml:lang="EN">
             Scanned invoices of eflow system
             </xsd:documentation>
          </xsd:annotation>
          <xsd:sequence>
             <xsd:element name="Recordset">
                <xsd:complexType>
                   <xsd:sequence>
                      <xsd:element name="ROW" maxOccurs="unbounded">
                         <xsd:complexType>
                            <xsd:sequence>
                               <xsd:element name="TEXT1" type="xsd:string" />
                               <xsd:element name="TEXT2" type="xsd:string" />
                               <xsd:element name="SAP_DOCUMENT" type="xsd:string" />
                               <xsd:element name="COMPANY_CODE" type="xsd:string" />
                               <xsd:element name="YEAR" type="xsd:string" />
                               <xsd:element name="FILE_NAME" type="xsd:string" />
                               <xsd:element name="FILE_TYPE" type="xsd:string" />
                            </xsd:sequence>
                         </xsd:complexType>
                      </xsd:element>
                   </xsd:sequence>
                </xsd:complexType>
             </xsd:element>
    So I see here no difference !.

  • "End of File" error 4 when trying to use Advanced TDMS Palette to create a circular file buffer

    I'm using the Advanced TDMS palette to create an on-disk circular buffer. I was able to successfully implement the buffer for a single channel of data.
    However, when I try to write multiple channels of data, I continuously get "End of File Encountered" error 4. I am pre-allocating 60,000 data points for each channel using the "TDMS Set Channel Information" function.
    I am able to (1) Set Next Write Position and (2) perform an Asynchronous Write to the first channel. But when I try to Set Next Write Position to the second channel, I immediately get an error 4.
    The examples have not been helpful as none of them write to different channels in sequence.
    Attached is an example project of what I'm trying to do, coded in 2013SP1.
    Sorry about the file hierarchy, the project is located in the ZIP file here:
    Workspaces\V12000\_V12000 Common Labview Code\Named WF Array\Named WF Array.lvproj
    http://linkd.in/mikele
    Attachments:
    Named WF Array Project.zip ‏1500 KB

    I looked into your project and found that the error comes from Set Next Write Position because the "offset" passed in is out of range. In fact, for continueous logging, you don't need to put the Set Next Write Position in front of the write. Remove this function and you will find your VI can run successfully without throwing out any errors.

  • End of File Fetch Hangs from Cobol

    Hi,
    I am fetching records from a cursor in cobol. When I fetch the end of file, this last fetch takes a minute to complete. The status of the last fetch is what we expect, and the process completes well, but we can't figure why it takes a minute.
    Running this similar cursor and fetch in a PL/SQL code is working without an issue. Can anyone suggest where to look next?
    Thanks in advance. Code is attached.
    SELECT statement (ST00-STATEMENT):
    SELECT /*+ index ( GALLEY_12 GALLEY_12_PK) */ GL_GALLEY_FILE_KEY, GL_PRODUCT_CODE, GL_SECTION_CODE, GL_ISSUE_YEAR, NVL(GL_LANGUAGE_CODE,' '), NVL(GL_SUB_HEADING_CODE,' '), NVL(GL_SUB_SUB_HEADING_CODE,' '), NVL(GL_SUB_SUB_SUB_HEAD_CODE,' '), NVL(GL_LOCALITY_ID,0), NVL(GL_RELATED_HEADING_CODE,' '), NVL(GL_RECORD_TYPE,' '), NVL(GL_CONTENT_CODE,0), NVL(GL_CAPTION_LEVEL,0), NVL(GL_INDENT_LEVEL,0), NVL(GL_LAST_ELEMENT_IN_G_G,' '), NVL(GL_STATUS_CODE,' '), NVL(GL_TRANSACTION_CODE ,' '), NVL(GL_STP_KEY,' '), NVL(GL_UDAC_CODE,' '), NVL(GL_LISTING_TYPE_IND ,' '), NVL(GL_FAMILY_SPACE_CODE ,' '), NVL(GL_FATHER_UDAC,' '), NVL(GL_UPDATE_TYPE ,' '), NVL(GL_OPERATOR_ID ,0), NVL(GL_UPDATE_DATE,0), NVL(GL_ANALYZE_CODE ,' '), NVL(GL_LOCK_INDICATOR ,' '), NVL(GL_GALLEY_WIDTH ,0), NVL(GL_GALLEY_DEPTH ,0), NVL(FRAME_STYLE ,' '), NVL(FRAME_COLOR ,' '), NVL(FRAME_FILL_PERCENTAGE ,0), NVL(FILL_COLOR ,' '), NVL(TEXT_BLOCK_LEFT_MARGIN ,0), NVL(TEXT_BLOCK_RIGHT_MARGIN,0), NVL(TEXT_BLOCK_TOP_MARGIN ,0), NVL(TEXT_BLOCK_BOTTOM_MARGIN ,0), NVL(GL_DESUPPRESSED_GALLEY_NO ,' '), NVL(GL_CENTERED_SYMBOL,' '), NVL(GL_CENTER_SYM_H_OFFST ,0), NVL(GL_CENTER_SYM_V_OFFST ,0), NVL(GL_BOOK_APPEARANCE_IND ,' '), NVL(GL_HEADING_CODE ,' '), NVL(GL_HEADING_NUMBER ,' '), NVL(GL_AD_SOURCE ,0), NVL(AD_TYPE ,' '), NVL(AD_ID ,' '), NVL(GL_ANCHOR_MATCH_IND ,' '), NVL(GL_ANCHORED_GL_NUMBER ,' '), NVL(GL_CUSTOMER_ID ,0), NVL(GL_MAIN_ITEM_ID ,0), NVL(GL_COLOR ,' '), NVL(TN_NPA ,' '), NVL(TN_COP ,' '), NVL(TN_LINE_NO ,' '), NVL(GL_TM_SORT_NAME ,' '), NVL(GL_ROTATE_ANGLE ,0), NVL(GL_LISTED_NAME ,' '), NVL(GL_ACTUAL_HEADING_CODE ,' '), NVL(GL_UPDATE_TIME ,0), NVL(GL_SENIORITY_DATE ,0), NVL(GL_CONT_REPT_FILLER_ID ,' '), NVL(GL_NM_HLGHT_COLOR ,' '), NVL(ATN_NPA ,' '), NVL(ATN_COP ,' '), NVL(ATN_LINE_NO ,' '), NVL(GL_EXTRACT_BYTE_ID, ' '), NVL(GL_FRAME_OPEN_IND ,' '), NVL(GL_NYPS_INDICATOR ,' '), NVL(GL_CMR_NUMBER ,0), NVL(GL_CLIENT_NUMBER ,0), NVL(GL_SPLIT_VERSION ,' '), NVL(GL_TN_INDICATOR ,' '), NVL(GL_AD_PAGE_SIDE ,' '), NVL(GL_NUM_OF_IMAGES ,0), NVL(GL_SEQUENCE_OF_IMAGE ,0), NVL(GL_LISTING_ID ,0), NVL(GL_DATA_LENGTH ,0), NVL(GL_LOGICAL_LINE,' ') FROM GALLEY_12 WHERE GL_GALLEY_FILE_KEY > :a1 AND GL_PRODUCT_CODE = :a2 AND GL_SECTION_CODE = :a3 AND GL_ISSUE_YEAR = :a4 AND ROWNUM < 000000060 ORDER BY GL_GALLEY_FILE_KEY
    PREPARE:
    EXEC SQL PREPARE s_start
    FROM :ST00-STATEMENT
    END-EXEC.
    DECLARE:
    EXEC SQL
    DECLARE c_start
    CURSOR FOR s_start
    END-EXEC.
    OPEN CURSOR:
    EXEC SQL OPEN c_start
    USING
    :SQ01-GL-GALLEY-FILE-KEY,
    :SQ01-GL-PRODUCT-CODE,
    :SQ01-GL-SECTION-CODE,
    :SQ01-GL-ISSUE-YEAR
    END-EXEC
    FETCH:
    EXEC SQL
    FETCH c_start
    INTO
    :SQ01-GL-GALLEY-FILE-KEY,
    :SQ01-GL-PRODUCT-CODE,
    :SQ01-GL-SECTION-CODE,
    :SQ01-GL-ISSUE-YEAR,
    :SQ01-GL-LANGUAGE-CODE ,
    :SQ01-GL-SUB-HEADING-CODE ,
    :SQ01-GL-SUB-SUB-HEADING-CODE ,
    :SQ01-GL-SUB-SUB-SUB-HEAD-CODE ,
    :SQ01-GL-LOCALITY-ID,
    :SQ01-GL-RELATED-HEADING-CODE ,
    :SQ01-GL-RECORD-TYPE ,
    :SQ01-GL-CONTENT-CODE,
    :SQ01-GL-CAPTION-LEVEL,
    :SQ01-GL-INDENT-LEVEL,
    :SQ01-GL-LAST-ELEMENT-IN-G-G ,
    :SQ01-GL-STATUS-CODE ,
    :SQ01-GL-TRANSACTION-CODE ,
    :SQ01-GL-STP-KEY ,
    :SQ01-GL-UDAC-CODE ,
    :SQ01-GL-LISTING-TYPE-IND ,
    :SQ01-GL-FAMILY-SPACE-CODE ,
    :SQ01-GL-FATHER-UDAC ,
    :SQ01-GL-UPDATE-TYPE ,
    :SQ01-GL-OPERATOR-ID,
    :SQ01-GL-UPDATE-DATE,
    :SQ01-GL-ANALYZE-CODE ,
    :SQ01-GL-LOCK-INDICATOR,
    :SQ01-GL-GALLEY-WIDTH,
    :SQ01-GL-GALLEY-DEPTH,
    :SQ01-FRAME-STYLE ,
    :SQ01-FRAME-COLOR ,
    :SQ01-FRAME-FILL-PERCENTAGE,
    :SQ01-FILL-COLOR ,
    :SQ01-TEXT-BLOCK-LEFT-MARGIN,
    :SQ01-TEXT-BLOCK-RIGHT-MARGIN,
    :SQ01-TEXT-BLOCK-TOP-MARGIN,
    :SQ01-TEXT-BLOCK-BOTTOM-MARGIN,
    :SQ01-GL-DESUPPRESSED-GALLEY-NO ,
    :SQ01-GL-CENTERED-SYMBOL ,
    :SQ01-GL-CENTER-SYM-H-OFFST,
    :SQ01-GL-CENTER-SYM-V-OFFST,
    :SQ01-GL-BOOK-APPEARANCE-IND ,
    :SQ01-GL-HD-CODE ,
    :SQ01-GL-HEADING-NUMBER ,
    :SQ01-GL-AD-SOURCE,
    :SQ01-GL-AD-TYPE ,
    :SQ01-GL-AD-ID ,
    :SQ01-GL-ANCHOR-MATCH-IND ,
    :SQ01-GL-ANCHORED-GL-NUMBER ,
    :SQ01-GL-CUSTOMER-ID,
    :SQ01-GL-MAIN-ITEM-ID,
    :SQ01-GL-COLOR ,
    :SQ01-TN-NPA ,
    :SQ01-TN-COP ,
    :SQ01-TN-LINE-NO ,
    :SQ01-GL-TM-SORT-NAME ,
    :SQ01-GL-ROTATE-ANGLE,
    :SQ01-GL-LISTED-NAME ,
    :SQ01-GL-ACTUAL-HEADING-CODE ,
    :SQ01-GL-UPDATE-TIME,
    :SQ01-GL-SENIORITY-DATE,
    :SQ01-GL-CONT-REPT-FILLER-ID ,
    :SQ01-GL-NM-HLGHT-COLOR ,
    :SQ01-ATN-NPA ,
    :SQ01-ATN-COP ,
    :SQ01-ATN-LINE-NO ,
    :SQ01-GL-EXTRACT-BYTE-ID ,
    :SQ01-GL-FRAME-OPEN-IND ,
    :SQ01-GL-NYPS-INDICATOR ,
    :SQ01-GL-CMR-NUMBER,
    :SQ01-GL-CLIENT-NUMBER,
    :SQ01-GL-SPLIT-VERSION ,
    :SQ01-GL-TN-INDICATOR ,
    :SQ01-GL-AD-PAGE-SIDE ,
    :SQ01-GL-NUM-OF-IMAGES,
    :SQ01-GL-SEQUENCE-OF-IMAGE,
    :SQ01-GL-LISTING-ID,
    :SQ01-GL-DATA-LENGTH,
    :SQ01-GL-LOGICAL-LINE
    END-EXEC.

    Running this similar cursor and fetch in a PL/SQL
    code is working without an issue. Can anyone suggest
    where to look next? Well if the PL/SQL code works ok and the COBOL code doesn't how about looking in a Cobol forum?

  • Error - Premature end of file.

    Hi,
    I am running a scenario involviong File Sender Adapter. I am not able to get the payload.
    I am getiing the following error - Premature end of file.
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_EXTD_EX_CustomerReturnData_to_C~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Premature end of file.</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    Has anyone encountered such kind of error?
    Regards,
    Neeraj

    Satish,
    Yes I am using content conversion.
    Document Name - MT_CustomerReturnData
    Document Namespace - given
    Recordset Name - recordset
    Recordset Structure - Header,1,Record,*
    Recordset Sequence - Ascending
    Key Field Name - Key
    Key Field Type - String (Case-Insensitive)
    Header.fieldSeparator '|'
    Header.fieldNames Key,ProtocolVersion,CustomerCode,ProductionBatchNumber,Period,ProductionSite,DeliveryCode,CardType,FromBox,ToBox,DateReturnFileCreated,QuantityOfRecords,FixedString
    Header.endSeparator 'nl'
    Header.keyFieldValue 'H'
    Record.fieldSeparator '|'
    Record.fieldNames Key,CardID,PinCode,InfoCode
    Record.keyFieldValue 'R'
    ignoreRecordsetName true

  • Processing files in Sequence using FTP Adapter

    Hi Experts,
    I have searched several forums but i am not clear on  how to process the files using FTP Adapter based on Timestamp.
    To process the files in sequence i.e, FIFO using FTP Adapter
    i have the files with file name customer and timestamp :  customer<yyyyMMddHHmmss>
    there are around 50 files in the FTP server llike this.
    I need to process these files acording to the timestamp and place the files in same processing sequence in the receiver end using the file adapter.
    If i specify the parametes in sender FTP Adapter as
    Qos= EOIO
    Queue name = ACCOUNT
    Whether these parameters would do the processing in sequence according to the Timestamp?
    Suppose if the queue ID for Inbound(SMQ2) is XBTI0_ACCOUNT then whether it will be the same for Outbound(SMQ1)?
    Kindly suggest me how to process the files in sequence according to the Timestamp using FTP Adapter
    Please reply..
    Thanks
    Sai

    Hi Shabarish,
    But this would require one more additional channel to process
    So i think it will take more time to process.
    Let me clarify my question once again.
    I need to Pick the files from FTP server based on their TimeStamp and in sequence.
    the file names are like this Customer<YYYYMMDDHHmmSS>.
    suppose i have 3 files as
    Customer20050413044534
    Customer20050414053430
    Customer20050315034533
    So i need to pick these files in this order and place the files in the same order to the receiver end(File Adapter)
    Customer20050315034533
    Customer20050413044534
    Customer20050414053430.
    As i am using FTP sender adapter i cannot use processing sequence "By Date".
    please suggest me on this.
    Thanks
    Sai.

  • Premature end of file Problem in Mail-Adapter by using StrictXml2PlainBean

    Hello Experts,
    I tried a simple File to Mail scenario with the following test message and received the expected attachment:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_TEST_FlatMessage xmlns:ns0="urn:lynx.de:pi:test:bw_extractor">
         <elemente>
              <Kundennummer>4711</Kundennummer>
              <RechnungsNr>0001</RechnungsNr>
              <Umsatz>234,67</Umsatz>
              <Anzahl>34</Anzahl>
              <Versand>12,00</Versand>
              <PosNr>0001</PosNr>
         </elemente>
         <elemente>
              <Kundennummer>4711</Kundennummer>
              <RechnungsNr>0002</RechnungsNr>
              <Umsatz>1900,25</Umsatz>
              <Anzahl>100</Anzahl>
              <Versand>50</Versand>
              <PosNr>0002</PosNr>
         </elemente>
    </ns0:MT_TEST_FlatMessage>
    Everything is fine. Now I want to transform the message in a CSV-Attachment and joined the Module
    1     AF_Modules/StrictXml2PlainBean     Local Enterprise Bean     0
    as first entry in the sequence with the following configuration:
    Key  Parameter                          Value
    0     addHeaderLine                fromXML
    0      elemente.endSeparator      \r\n
    0     elemente.fieldSeparator        ;
    0     singleRecordType                elemente
    But now I the adapter gets the error:  Premature end of file
    What did I wrong?

    >
    Dirk Koch wrote:
    > as first entry in the sequence with the following configuration:
    >
    > Key  Parameter                          Value
    > 0     addHeaderLine                fromXML
    > 0      elemente.endSeparator      \r\n
    > 0     elemente.fieldSeparator        ;
    > 0     singleRecordType                elemente
    >
    >
    > But now I the adapter gets the error:  Premature end of file
    >
    > What did I wrong?
    try
    0      elemente.endSeparator      'nl'

  • Premature end of file failure in Proxy-SFTP scenario

    Hi All,
    We had this asych. scenario working until, we got a request to send field names in the payload.
    In the receiver communication channel, under Module tab I've defined as below:
    Processing Sequence
    1     AF_Modules/StrictXml2PlainBean     Local Enterprise Bean     0
    Module configuration:
    Module Key                 Parameter Name              Parameter value
    0                                  addHeaderLine                 fromXML
    0                                  dataRec.fieldSeparator     |
    0                                  singleRecordType             dataRec
    Now when we try to send data its failing with the below message:
    Starting strict XML to plain text conversion
    2011-09-28 12:16:26 Error Adapter Framework caught exception: Premature end of file.
    2011-09-28 12:16:26 Error Delivering the message to the application using connection SFTP_http://seeburger.com/xi failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: org.xml.sax.SAXParseException: Premature end of file..
    2011-09-28 12:16:26 Information The message status was set to WAIT.
    Please can anyone help with this? Am I missing something here?
    Thanks,
    Priya.

    check out this link. it might help you..
    File Content Conversion Error in PI 7.1 (file to Proxy)

  • ORA-03113: end-of-file on communication channel in Toad

    Hi,
    When i am running any commands from SQL Plus i am not getting the Error while logged in a s sys as sysdba
    But the same command while running in Toad using sys as sysdba I am getting the Error as :ORA-03113: end-of-file on communication channel.
    The Database does not occured any Error during Start up its mounted and opened
    Kindly any help will be needful for me.
    Thanks and Regards

    Hi,
    I checked the Alert log file in the bdump directory and its giving as:
    Hi,
    I checked the Alert log file in the bdump directory and its giving as:
    Sun Mar 7 13:43:31 2010
    Setting recovery target incarnation to 1
    Sun Mar 7 13:43:31 2010
    Successful mount of redo thread 1, with mount id 3004982143
    Sun Mar 7 13:43:31 2010
    Database mounted in Exclusive Mode
    Completed: ALTER DATABASE MOUNT
    Sun Mar 7 13:43:31 2010
    ALTER DATABASE OPEN
    Sun Mar 7 13:43:31 2010
    Thread 1 opened at log sequence 199
    Current log# 1 seq# 199 mem# 0: /oracle/oradata/testdb/redo01.log
    Successful open of redo thread 1
    Sun Mar 7 13:43:31 2010
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    Sun Mar 7 13:43:31 2010
    SMON: enabling cache recovery
    Sun Mar 7 13:43:31 2010
    Successfully onlined Undo Tablespace 1.
    Sun Mar 7 13:43:31 2010
    SMON: enabling tx recovery
    Hex dump of (file 1, block 52484) in trace file /oracle/admin/testdb/bdump/testdb_smon_3460.trc
    Corrupt block relative dba: 0x0040cd04 (file 1, block 52484)
    Bad check value found during buffer read
    Data in bad block:
    type: 6 format: 2 rdba: 0x0040cd04
    last change scn: 0x0000.0012d539 seq: 0x1 flg: 0x06
    spare1: 0x0 spare2: 0x0 spare3: 0x0
    consistency value in tail: 0xd5390601
    check value in block header: 0x62e3
    computed block checksum: 0x600
    Reread of rdba: 0x0040cd04 (file 1, block 52484) found same corrupted data
    Sun Mar 7 13:43:31 2010
    Errors in file /oracle/admin/testdb/bdump/testdb_smon_3460.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01578: ORACLE data block corrupted (file # 1, block # 52484)
    ORA-01110: data file 1: '/oracle/oradata/testdb/system01.dbf'
    Sun Mar 7 13:43:31 2010
    Database Characterset is AL32UTF8
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    QMNC started with pid=14, OS id=3474
    Sun Mar 7 13:43:32 2010
    db_recovery_file_dest_size of 2048 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Sun Mar 7 13:43:33 2010
    Completed: ALTER DATABASE OPEN
    Sun Mar 7 13:44:22 2010
    Errors in file /oracle/admin/test/udump/testdb_ora_3956.trc:
    ORA-07445: exception encountered: core dump [ttcclr()+1770] [SIGSEGV] [Address not mapped to object] [0x14] [] []
    Sun Mar 7 13:44:31 2010
    Errors in file /oracle/admin/test/udump/testdb_ora_3958.trc:
    ORA-07445: exception encountered: core dump [ttcclr()+1770] [SIGSEGV] [Address not mapped to object] [0x12] [] []
    Sun Mar 7 13:53:26 2010
    Errors in file /oracle/admin/test/udump/testdb_ora_3960.trc:
    ORA-07445: exception encountered: core dump [ttcclr()+1770] [SIGSEGV] [Address not mapped to object] [0x14] [] []
    Sun Mar 7 14:12:09 2010
    Errors in file /oracle/admin/test/udump/testdb_ora_3994.trc:
    ORA-07445: exception encountered: core dump [ttcclr()+1770] [SIGSEGV] [Address not mapped to object] [0x1A] [] []

  • Generating next value in a custom 2 character sequence

    I am working on a customer project for creating a web portal that needs to write data back to an ancient legacy backend mainframe system.  I have never used sql server sequences before but I believe that is what I will need to use.  
    Each vendor in this application has a char(3) vendor code field.  Each transaction a vendor does is identified by a char(2) transaction code field.  The char(2) transaction code field for the legacy system is what I am trying to generate.  
    This transaction code field is 2 character alpha-numeric sequence.  I need to create a store proc to give me the next available transaction code for that vendor.  The sequence got numbers 0-9 then letters A-Z as follows:
    00,01,02....0A,0B...0Y,0Z,10,12....ZZ
    In the stored proc to get me the next available transaction code for a vender, I need to take the 3 character vendor code as in input parameter, then check the vendor transactions table to see which transaction codes exist and return the next one from the
    sequence to use next.
    Here is a very basic table def. and some sample data:
    CREATE TABLE vendor_trans
    vendor_cd char(3),
    trans_cd char(2)
    INSERT INTO [dbo].[vendor_trans]     ([vendor_cd]     ,[trans_cd])     VALUES     ( 'ABC' ,'00' )
    GO
    INSERT INTO [dbo].[vendor_trans]     ([vendor_cd]     ,[trans_cd])     VALUES     ( 'ABC' ,'01' )
    GO
    INSERT INTO [dbo].[vendor_trans]     ([vendor_cd]     ,[trans_cd])     VALUES     ( 'ABC' ,'02' )
    GO
    INSERT INTO [dbo].[vendor_trans]     ([vendor_cd]     ,[trans_cd])     VALUES     ( 'ABC' ,'04' )
    GO
    INSERT INTO [dbo].[vendor_trans]     ([vendor_cd]     ,[trans_cd])     VALUES     ( 'ABC' ,'0A' )
    GO
    INSERT INTO [dbo].[vendor_trans]     ([vendor_cd]     ,[trans_cd])     VALUES     ( 'ABC' ,'0C' )
    GO

    Just create a scalar function that will give you the next character sequence.
    Then use it on the max transaction code for the given vendor, to get their next code.
    IF EXISTS (SELECT * FROM dbo.sysobjects WHERE ID = OBJECT_ID('dbo.funNextCode') AND XTYPE IN ('FN', 'IF', 'TF'))
    DROP FUNCTION dbo.funNextCode
    GO
    CREATE FUNCTION dbo.funNextCode (@Code char(2))
    RETURNS char(2)
    AS
    BEGIN
    DECLARE @NewCode char(2)
    SELECT @NewCode = CASE WHEN RIGHT(@Code,1) != 'Z'
    THEN LEFT(@Code,1)
    ELSE CHAR(CASE LEFT(@Code,1) WHEN '9' THEN 64
    WHEN 'Z' THEN 47
    ELSE ASCII(LEFT(@Code,1))
    END + 1)
    END
    + CHAR(CASE RIGHT(@Code,1) WHEN '9' THEN 64
    WHEN 'Z' THEN 47
    ELSE ASCII(RIGHT(@Code,1))
    END + 1)
    RETURN @NewCode
    END
    GO
    -- UNIT TEST funNextCode
    DECLARE @TableOfCodes TABLE (idx int IDENTITY(1,1), Code char(2))
    DECLARE @Code char(2) = 'ZZ'
    ,@Count int = 0
    WHILE @Count < ((36 * 36) + 1)
    BEGIN
    SELECT @Code = dbo.funNextCode(@Code)
    INSERT @TableOfCodes SELECT @Code
    SELECT @Count = @Count + 1
    END
    SELECT * FROM @TableOfCodes ORDER BY idx
    --SELECT * FROM @TableOfCodes ORDER BY Code
    -- Using funNextCode with vendors
    DECLARE @VendorTransactions TABLE (VendorCode char(3), TransCode char(2))
    INSERT @VendorTransactions VALUES ('ABC', '00'), ('ABC', '01'), ('ABC', '02')
    ,('ABC', '04'), ('ABC', '0A'), ('ABC', '0C')
    DECLARE @VendorCode char(3)
    ,@LastCode char(2)
    SELECT @VendorCode = 'ABC'
    -- Get the last code for the given vendor
    SELECT @LastCode = MAX(TransCode)
    FROM @VendorTransactions
    WHERE VendorCode = @VendorCode
    -- If no code exists, then set it so funNextCode will generate the starting code as '00'
    SELECT @LastCode = ISNULL(@LastCode, 'ZZ')
    SELECT dbo.funNextCode(@LastCode) as [NextCode]

Maybe you are looking for

  • Isight not working after power went out in house

    Something was making my serrate bracket to be thrown in my basement making the power to go out, and after that my isight does not work any more. My macbook pro was plugged into a power strip but i dont think it has a serg protector on it. I have trie

  • Error code 2155348010 windows server 2008

     How to solve this error code. I have WD 2 TB hard disk in my environment its give error 2155348010 and reconfigured some many times. Please tell me solutions on this. 

  • How do I print out a vector of objects?

    Hi, I am having trouble printing out the contents of my vector. Can somebody please help me out. Im trying to create a vector of objects. I keep getting output like this: There are 5 total classes 5 ClassObject@13f5d07 Here is my code: //Test.java im

  • Firefox.exe is an unregistered application in Windows XP. What's up?

    I am using a "registry cleaner" which reports that the .pdf file type association references an unregistered application "firefox.exe" Should I tell the cleaner to "delete this erroneous value" or is it not a problem?

  • Best Modem for BT ADSL?

    I'm trying to find the best equipment for a bad performing ADSL line (1-2mbps). Originally it was 0.9mb download, using a D-Link 320 modem, but using a TalkTalk brand D-Link router (DSL-2780), it has jumped up to 1.6mb. I then bought a Draytek Vigor