CSV to oracle giving error

I am pulling from a csv file and loading into oracle...however when i execute the interface it is giving me the following error.
7000 : null : java.sql.SQLException: File \\pa-dfs02\Departments\xx\xx\xxxx\/xxxxx.csv already exists
xxxxx.csv is my source file.
The details are:
LKM--File to SQL
IKM--SQL Control Append
Flow COntrol-NO
Truncate Target Table-YES
hmmm im trying to pull from a file and load into oracle so i wonder why it is saying this. Note tht I have several other files in this model that I am pulling from and they load fine into oracle. I cant seem to understand why it is happening just for this file.
I tried creating the interface in another folder...Created another data server and tried running the interface...all giving the same issue...i cant seem to understand what the problem is with this file.
ANY HELP would be sincerely appreciated.
Thanks!!!!

The following commands succeed in Operator:
1 - Loading - SS_0 - Drop work table
2 - Loading - SS_0 - Create work table
This is where it fails:
3 - Loading - SS_0 - Load data
In the description tab of the above
Loading Query Plan:
select     ATTENDEE_ID     C1_ATTENDEE_ID,
     LAST_NAME     C2_LAST_NAME,
     FIRST_NAME     C3_FIRST_NAME,
     EMAIL     C4_EMAIL,
     PARENT_ID     C5_PARENT_ID,
     DATE_CREATE     C6_DATE_CREATE
from      TABLE
/*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=ATTENDEESSNP$CRLOAD_FILE=\\pa-dfs02\Departments\Sales\PRI\Files to Load in ODI\MyLearn_src\/PRI_prod_mylearn_attendees.csvSNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=2CSNP$CRFILE_SEP_LINE=0D0ASNP$CRFILE_FIRST_ROW=1SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=ATTENDEE_IDSNP$CRTYPE_NAME=STRINGSNP$CRORDER=1SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CRACTION_ON_ERROR=0SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=LAST_NAMESNP$CRTYPE_NAME=STRINGSNP$CRORDER=2SNP$CRLENGTH=255SNP$CRPRECISION=255SNP$CRACTION_ON_ERROR=0SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=FIRST_NAMESNP$CRTYPE_NAME=STRINGSNP$CRORDER=3SNP$CRLENGTH=255SNP$CRPRECISION=255SNP$CRACTION_ON_ERROR=0SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=EMAILSNP$CRTYPE_NAME=STRINGSNP$CRORDER=4SNP$CRLENGTH=255SNP$CRPRECISION=255SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=PARENT_IDSNP$CRTYPE_NAME=STRINGSNP$CRORDER=5SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CRACTION_ON_ERROR=0SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=PCENTRAL_IDSNP$CRTYPE_NAME=STRINGSNP$CRORDER=6SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CRACTION_ON_ERROR=0SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=DATE_CREATESNP$CRTYPE_NAME=STRINGSNP$CRORDER=7SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CRACTION_ON_ERROR=0SNP$CR$$SNPS_END_KEY*/
Default Query plan:
insert into PRI_ODI_STG.C$_0WC_ATTENDEE_DS
     C1_ATTENDEE_ID,
     C2_LAST_NAME,
     C3_FIRST_NAME,
     C4_EMAIL,
     C5_PARENT_ID,
     C6_DATE_CREATE
values
     :C1_ATTENDEE_ID,
     :C2_LAST_NAME,
     :C3_FIRST_NAME,
     :C4_EMAIL,
     :C5_PARENT_ID,
     :C6_DATE_CREATE
Exact Error Message:
7000 : null : java.sql.SQLException: File \\pa-dfs02\Departments\Sales\PRI\Files to Load in ODI\MyLearn_src\/PRI_prod_mylearn_attendees.csv already exists
java.sql.SQLException: File \\pa-dfs02\Departments\Sales\PRI\Files to Load in ODI\MyLearn_src\/PRI_prod_mylearn_attendees.csv already exists
     at com.sunopsis.jdbc.driver.file.d.h.a.a(a.java)
     at com.sunopsis.jdbc.driver.file.g.a(g.java)
     at com.sunopsis.jdbc.driver.file.w.executeQuery(w.java)
     at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
     at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
     at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
     at com.sunopsis.dwg.cmd.e.i(e.java)
     at com.sunopsis.dwg.cmd.g.y(g.java)
     at com.sunopsis.dwg.cmd.e.run(e.java)
     at java.lang.Thread.run(Thread.java:595)

Similar Messages

  • Top N query giving error for oracle 8.0.6

    Dear All,
    We are executing this query SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM (SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM PMBPITS.PITS_UNITY WHERE STATUS = '01' ORDER BY PMTIMESTAMP) WHERE ROWNUM < 20
    on oracle 8.0.6 but this is giving the following error
    ora - 00907 missing right parenthesis error
    1. Is it that in the inner select we cannot use order by and where clause together.
    2. We also found that if we remove order by from inner select then the query is not giving error
    pls help . points will be awarded

    Hi,
    what ever the Aman said is correct. You check this is supported in 8.1.5, SQL allows you to embed the ORDER BY clause in a subquery and place the ROWNUM condition in the top-level query;
    'Top-N query' is a ORACLE 8i feature which is supported in SQL. However,
    Bug:855720 states the following:
    "PL/SQL does not support top-N queries (ORDER BY in SUBSELECT/SUBQUERY
    or VIEW. Since this feature is available in SQL, but not in PL/SQL,
    it has been logged as a Bug that will be fixed in 8.1.6."
    - Pavan Kumar N

  • DATAEXPORT to sql server is giving error

    Hi,
    I am using DATAEXPORT to export data to SQL tables but its giving error:
    MY TABLE:
    USE SBC;
    Create table TEST
         Period nchar(20),
         HSP_Rates nchar(20),
         Years nchar(10),
         Currency nchar(5),
         Scenario nchar(20),
         ICP nchar(20),
         [Co.] nchar(20),
         Version nchar(20),
         Product nchar(20),
         Entity nchar(30),
    Account nchar(50),
         Data numeric(18, 5)
    Created this order based on export taken on file
    **My Script:**
    SET DATAEXPORTOPTIONS
         DataExportLevel "ALL";
         DATAEXPORTCOLFORMAT ON;
         DataExportOverwriteFile ON;
         DataExportDecimal 4;
    DATAEXPORTCOND ("HSP_InputValue" <> #MISSING And "HSP_InputValue" <> 0);
    FIX (@REMOVE(@RELATIVE ("Balance_Sheet",0),"CY_Earnings"),"Per7","HSP_InputValue","FY12","Local","MY12 Budget", @RELATIVE ("ICP Top",0),@RELATIVE ("Co Total",0),Working,@RELATIVE (PODS,0),@RELATIVE ("Entity",0));
    /*DATAEXPORT "File" "," "D:\Test.txt"*/
    DATAEXPORT "DSN" "TEST" "Test" "admin" "XXXXXX";
    ENDFIX;
    Output when exported to File:
    "Per7"
    "HSP_InputValue","FY12","Local","MY12 Budget","No IC","Co 100","Working","ALLEZ","100-1050","Subs_Cash",500000.046
    "HSP_InputValue","FY12","Local","MY12 Budget","No IC","Co 100","Working","AirFreight","100-1050","Subs_Cash",534324.370
    ERROR IN LOGS:
    [Fri Feb 03 01:10:20 2012]Local/SBC///15796/Info(1013210)
    User [admin@Native Directory] set active on database [SBC]
    [Fri Feb 03 01:10:20 2012]Local/SBC/SBC/admin@Native Directory/2208/Info(1013091)
    Received Command [Calculate] from user [admin@Native Directory]
    [Fri Feb 03 01:10:20 2012]Local/SBC/SBC/admin@Native Directory/2208/Info(1013167)
    Received Command [Calculate] from user [admin@Native Directory] using [Test.csc]
    [Fri Feb 03 01:10:20 2012]Local/SBC/SBC/admin@Native Directory/2208/Info(1021004)
    Connection String is generated
    [Fri Feb 03 01:10:20 2012]Local/SBC/SBC/admin@Native Directory/2208/Info(1021041)
    Connection String is [DSN=SBC;UID=...;PWD=...;]
    [Fri Feb 03 01:10:20 2012]Local/SBC/SBC/admin@Native Directory/2208/Info(1021000)
    Connection With SQL Database Server is Established
    [Fri Feb 03 01:10:20 2012]Local/SBC/SBC/admin@Native Directory/2208/Info(1021013)
    ODBC Layer Error: [21S01] ==> [[Microsoft][ODBC SQL Server Driver][SQL Server]Column name or number of supplied values does not match table definition.]
    [Fri Feb 03 01:10:20 2012]Local/SBC/SBC/admin@Native Directory/2208/Info(1021014)
    ODBC Layer Error: Native Error code [213]
    [Fri Feb 03 01:10:20 2012]Local/SBC/SBC/admin@Native Directory/2208/Error(1012085)
    Unable to export data to SQL table [Test]. Check the Essbase server log and the system console to determine the cause of the problem.
    [Fri Feb 03 01:10:20 2012]Local/SBC/SBC/admin@Native Directory/2208/Info(1021002)
    SQL Connection is Freed
    [Fri Feb 03 01:10:20 2012]Local/SBC/SBC/admin@Native Directory/2208/Warning(1080014)
    Transaction [ 0xb0006( 0x4f2b885c.0xd4e40 ) ] aborted due to status [1012085].
    [Fri Feb 03 01:10:20 2012]Local/SBC/SBC/admin@Native Directory/2208/Info(1012579)
    Total Calc Elapsed Time for [Test.csc] : [0.022] seconds
    I have tried using SQL Drivers for ODBC connection as well as Wire protocol driver.
    Please assist asap.
    Regards,
    Vinit

    Chawla,
    Fixed in 9.3.3, Check out this, their are few more bugs fixed related to DataExport.
    http://docs.oracle.com/cd/E10530_01/doc/epm.931/esb_93300_readme.pdf
    8404516 Calculator.The DATAEXPORTCOND calculation command clashes with the FIX
    command.
    8913164 Calculator. Data exports that use DATAEXPORTCOND do not always export all
    the data expected because not all conditions are taken into account within the
    DATAEXPORTCOND statement
    8988310 Calculator. When exporting data using the DATAEXPORT command from a
    duplicate outline that contains a shared hierarchy, the exported data contains the
    shared member, not the prototype Etc..
    Cheers...!!
    Rahul S.

  • When i created procedure for error_log its giving errors:

    please give a solution for below procedure...
    just check the procedure its giving errors ... rec is not an identifier in loop in the procedure....
    Step 1:
    Create a table MAP_ERROR_LOG.
    Script:
    CREATE TABLE MAP_ERROR_LOG
    ERROR_SEQ NUMBER,
    MAPPING_NAME VARCHAR2(32 BYTE),
    TARGET_TABLE VARCHAR2(35 BYTE),
    TARGET_COLUMN VARCHAR2(35 BYTE),
    TARGET_VALUE VARCHAR2(100 BYTE),
    PRIMARY_TABLE VARCHAR2(100 BYTE),
    ERROR_ROWKEY NUMBER,
    ERROR_CODE VARCHAR2(12 BYTE),
    ERROR_MESSAGE VARCHAR2(2000 BYTE),
    ERROR_TIMESTAMP DATE
    TABLESPACE DW_OWNER_DATA
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 80K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    Step 2:
    Create a sequence MAP_ERROR_LOG_SEQ
    CREATE SEQUENCE MAP_ERROR_LOG_SEQ START WITH 1 INCREMENT BY 1
    Step 3:
    Create a procedure PROC_MAP_ERROR_LOG through OWB.
    In this i have used 3 cursor, first cursor is used to check the count of error messages for the corresponding table(WB_RT_ERROR_SOURCES).
    The second cursor is used to get the oracle error and the primary key values.
    The third cursor is used for get the ORACLE DBA errors such as "UNABLE TO EXTEND THE TABLESPACE" for this type errors.
    CREATE OR REPLACE PROCEDURE PROC_MAP_ERROR_LOG(MAP_ID VARCHAR2) IS
    --initialize variables here
    CURSOR C1 IS
    SELECT COUNT(RTA_IID) FROM OWB_REP.WB_RT_ERROR_SOURCES
    WHERE RTA_IID =( SELECT MAX(RTA_IID) FROM OWB_REP.WB_RT_AUDIT WHERE RTA_PRIMARY_TARGET ='"'||MAP_ID||'"');
    V_COUNT NUMBER;
    CURSOR C2 IS
    SELECT A.RTE_ROWKEY ERR_ROWKEY,SUBSTR(A.RTE_SQLERRM,1,INSTR(A.RTE_SQLERRM,':')-1) ERROR_CODE,
    SUBSTR(A.RTE_SQLERRM,INSTR(A.RTE_SQLERRM,':')+1) ERROR_MESSAGE,
    C.RTA_LOB_NAME MAPPING_NAME,SUBSTR(B.RTS_SOURCE_COLUMN,(INSTR(B.RTS_SOURCE_COLUMN,'.')+1)) TARGET_COLUMN,
    B.RTS_VALUE TARGET_VALUE,C.RTA_PRIMARY_SOURCE PRIMARY_SOURCE,C.RTA_PRIMARY_TARGET TARGET_TABLE,
    C.RTA_DATE ERROR_TIMESTAMP
    FROM OWB_REP.WB_RT_ERRORS A,OWB_REP.WB_RT_ERROR_SOURCES B, OWB_REP.WB_RT_AUDIT C
    WHERE C.RTA_IID = A.RTA_IID
    AND C.RTA_IID = B.RTA_IID
    AND A.RTA_IID = B.RTA_IID
    AND A.RTE_ROWKEY =B.RTE_ROWKEY
    --AND RTS_SEQ =1
    AND B.RTS_SEQ IN (SELECT POSITION FROM OWB_REP.ALL_CONS_COLUMNS A, OWB_REP.ALL_CONSTRAINTS B
    WHERE A.TABLE_NAME = B.TABLE_NAME
    AND A.CONSTRAINT_NAME = B.CONSTRAINT_NAME
    AND A.TABLE_NAME =MAP_ID
    AND CONSTRAINT_TYPE ='P')
    AND A.RTA_IID =(
    SELECT MAX(RTA_IID) FROM OWB_REP.WB_RT_AUDIT WHERE RTA_PRIMARY_TARGET ='"'||MAP_ID||'"');
    CURSOR C3 IS
    SELECT A.RTE_ROWKEY ERR_ROWKEY,SUBSTR(A.RTE_SQLERRM,1,INSTR(A.RTE_SQLERRM,':')-1) ERROR_CODE,
    SUBSTR(A.RTE_SQLERRM,INSTR(A.RTE_SQLERRM,':')+1) ERROR_MESSAGE,
    C.RTA_LOB_NAME MAPPING_NAME,SUBSTR(B.RTS_SOURCE_COLUMN,(INSTR(B.RTS_SOURCE_COLUMN,'.')+1)) TARGET_COLUMN,
    B.RTS_VALUE TARGET_VALUE,C.RTA_PRIMARY_SOURCE PRIMARY_SOURCE,C.RTA_PRIMARY_TARGET TARGET_TABLE,
    C.RTA_DATE ERROR_TIMESTAMP
    FROM OWB_REP.WB_RT_ERRORS A,OWB_REP.WB_RT_ERROR_SOURCES B, OWB_REP.WB_RT_AUDIT C
    WHERE C.RTA_IID = A.RTA_IID
    AND A.RTA_IID = B.RTA_IID
    AND A.RTE_ROWKEY =B.RTE_ROWKEY
    AND A.RTA_IID =(
    SELECT MAX(RTA_IID) FROM OWB_REP.WB_RT_AUDIT WHERE RTA_PRIMARY_TARGET ='"'||MAP_ID||'"');
    -- main body
    BEGIN
    DELETE DW_OWNER.MAP_ERROR_LOG WHERE TARGET_TABLE ='"'||MAP_ID||'"';
    COMMIT;
    OPEN C1;
    FETCH C1 INTO V_COUNT;
    IF V_COUNT >0 THEN
    FOR REC IN C2
    LOOP
    INSERT INTO DW_OWNER.MAP_ERROR_LOG
    (Error_seq ,
    Mapping_name,
    Target_table,
    Target_column ,
    Target_value ,
    Primary_table ,
    Error_rowkey ,
    Error_code ,
    Error_message ,
    Error_timestamp)
    VALUES(
    DW_OWNER.MAP_ERROR_LOG_SEQ.NEXTVAL,
    REC.MAPPING_NAME,
    REC.TARGET_TABLE,
    REC.TARGET_COLUMN,
    REC.TARGET_VALUE,
    REC.PRIMARY_SOURCE,
    REC.ERR_ROWKEY,
    REC.ERROR_CODE,
    REC.ERROR_MESSAGE,
    REC.ERROR_TIMESTAMP);
    END LOOP;
    ELSE
    FOR REC IN C3
    LOOP
    INSERT INTO DW_OWNER.MAP_ERROR_LOG
    (Error_seq ,
    Mapping_name,
    Target_table,
    Target_column ,
    Target_value ,
    Primary_table ,
    Error_rowkey ,
    Error_code ,
    Error_message ,
    Error_timestamp)
    VALUES(
    DW_OWNER.MAP_ERROR_LOG_SEQ.NEXTVAL,
    REC.MAPPING_NAME,
    REC.TARGET_TABLE,
    REC.TARGET_COLUMN,
    REC.TARGET_VALUE,
    REC.PRIMARY_SOURCE,
    REC.ERR_ROWKEY,
    REC.ERROR_CODE,
    REC.ERROR_MESSAGE,
    REC.ERROR_TIMESTAMP);
    END LOOP;
    END IF;
    CLOSE C1;
    COMMIT;
    -- NULL; -- allow compilation
    EXCEPTION
    WHEN OTHERS THEN
    NULL; -- enter any exception code here
    END;

    Yah i got the solution...
    scrip is
    Step 1:
    Create a table MAP_ERROR_LOG.
    Script:
    CREATE TABLE MAP_ERROR_LOG
    ERROR_SEQ NUMBER,
    MAPPING_NAME VARCHAR2(32 BYTE),
    TARGET_TABLE VARCHAR2(35 BYTE),
    TARGET_COLUMN VARCHAR2(35 BYTE),
    TARGET_VALUE VARCHAR2(100 BYTE),
    PRIMARY_TABLE VARCHAR2(100 BYTE),
    ERROR_ROWKEY NUMBER,
    ERROR_CODE VARCHAR2(12 BYTE),
    ERROR_MESSAGE VARCHAR2(2000 BYTE),
    ERROR_TIMESTAMP DATE
    TABLESPACE DW_OWNER_DATA
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 80K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    Step 2:
    Create a sequence MAP_ERROR_LOG_SEQ
    CREATE SEQUENCE MAP_ERROR_LOG_SEQ START WITH 1 INCREMENT BY 1
    Step 3:
    Create a procedure PROC_MAP_ERROR_LOG through OWB.
    In this i have used 3 cursor, first cursor is used to check the count of error messages for the corresponding table(WB_RT_ERROR_SOURCES).
    The second cursor is used to get the oracle error and the primary key values.
    The third cursor is used for get the ORACLE DBA errors such as "UNABLE TO EXTEND THE TABLESPACE" for this type errors.
    CREATE OR REPLACE PROCEDURE PROC_MAP_ERROR_LOG(MAP_ID VARCHAR2) IS
    --initialize variables here
    CURSOR C1 IS
    SELECT COUNT(RTA_IID) FROM OWB_REP.WB_RT_ERROR_SOURCES1
    WHERE RTA_IID =( SELECT MAX(RTA_IID) FROM OWB_REP.WB_RT_AUDIT1 WHERE RTA_PRIMARY_TARGET ='"'||MAP_ID||'"');
    V_COUNT NUMBER;
    CURSOR C2 IS
    SELECT A.RTE_ROWKEY ERR_ROWKEY,SUBSTR(A.RTE_SQLERRM,1,INSTR(A.RTE_SQLERRM,':')-1) ERROR_CODE,
    SUBSTR(A.RTE_SQLERRM,INSTR(A.RTE_SQLERRM,':')+1) ERROR_MESSAGE,
    C.RTA_LOB_NAME MAPPING_NAME,SUBSTR(B.RTS_SOURCE_COLUMN,(INSTR(B.RTS_SOURCE_COLUMN,'.')+1)) TARGET_COLUMN,
    B.RTS_VALUE TARGET_VALUE,C.RTA_PRIMARY_SOURCE PRIMARY_SOURCE,C.RTA_PRIMARY_TARGET TARGET_TABLE,
    C.RTA_DATE ERROR_TIMESTAMP
    FROM OWB_REP.WB_RT_ERRORS1 A,OWB_REP.WB_RT_ERROR_SOURCES1 B, OWB_REP.WB_RT_AUDIT1 C
    WHERE C.RTA_IID = A.RTA_IID
    AND C.RTA_IID = B.RTA_IID
    AND A.RTA_IID = B.RTA_IID
    AND A.RTE_ROWKEY =B.RTE_ROWKEY
    --AND RTS_SEQ =1
    AND B.RTS_SEQ IN (SELECT POSITION FROM ALL_CONS_COLUMNS A, ALL_CONSTRAINTS B
    WHERE A.TABLE_NAME = B.TABLE_NAME
    AND A.CONSTRAINT_NAME = B.CONSTRAINT_NAME
    AND A.TABLE_NAME =MAP_ID
    AND CONSTRAINT_TYPE ='P')
    AND A.RTA_IID =(
    SELECT MAX(RTA_IID) FROM OWB_REP.WB_RT_AUDIT1 WHERE RTA_PRIMARY_TARGET ='"'||MAP_ID||'"');
    CURSOR C3 IS
    SELECT A.RTE_ROWKEY ERR_ROWKEY,SUBSTR(A.RTE_SQLERRM,1,INSTR(A.RTE_SQLERRM,':')-1) ERROR_CODE,
    SUBSTR(A.RTE_SQLERRM,INSTR(A.RTE_SQLERRM,':')+1) ERROR_MESSAGE,
    C.RTA_LOB_NAME MAPPING_NAME,SUBSTR(B.RTS_SOURCE_COLUMN,(INSTR(B.RTS_SOURCE_COLUMN,'.')+1)) TARGET_COLUMN,
    B.RTS_VALUE TARGET_VALUE,C.RTA_PRIMARY_SOURCE PRIMARY_SOURCE,C.RTA_PRIMARY_TARGET TARGET_TABLE,
    C.RTA_DATE ERROR_TIMESTAMP
    FROM OWB_REP.WB_RT_ERRORS A,OWB_REP.WB_RT_ERROR_SOURCES1 B, OWB_REP.WB_RT_AUDIT C
    WHERE C.RTA_IID = A.RTA_IID
    AND A.RTA_IID = B.RTA_IID
    AND A.RTE_ROWKEY =B.RTE_ROWKEY
    AND A.RTA_IID =(
    SELECT MAX(RTA_IID) FROM OWB_REP.WB_RT_AUDIT WHERE RTA_PRIMARY_TARGET ='"'||MAP_ID||'"');
    -- main body
    BEGIN
    DELETE DW_OWNER.MAP_ERROR_LOG WHERE TARGET_TABLE ='"'||MAP_ID||'"';
    COMMIT;
    OPEN C1;
    FETCH C1 INTO V_COUNT;
    IF V_COUNT >0 THEN
    FOR REC IN C2
    LOOP
    INSERT INTO DW_OWNER.MAP_ERROR_LOG
    (Error_seq ,
    Mapping_name,
    Target_table,
    Target_column ,
    Target_value ,
    Primary_table ,
    Error_rowkey ,
    Error_code ,
    Error_message ,
    Error_timestamp)
    VALUES(
    DW_OWNER.MAP_ERROR_LOG_SEQ.NEXTVAL,
    REC.MAPPING_NAME,
    REC.TARGET_TABLE,
    REC.TARGET_COLUMN,
    REC.TARGET_VALUE,
    REC.PRIMARY_SOURCE,
    REC.ERR_ROWKEY,
    REC.ERROR_CODE,
    REC.ERROR_MESSAGE,
    REC.ERROR_TIMESTAMP);
    END LOOP;
    ELSE
    FOR REC IN C3
    LOOP
    INSERT INTO DW_OWNER.MAP_ERROR_LOG
    (Error_seq ,
    Mapping_name,
    Target_table,
    Target_column ,
    Target_value ,
    Primary_table ,
    Error_rowkey ,
    Error_code ,
    Error_message ,
    Error_timestamp)
    VALUES(
    DW_OWNER.MAP_ERROR_LOG_SEQ.NEXTVAL,
    REC.MAPPING_NAME,
    REC.TARGET_TABLE,
    REC.TARGET_COLUMN,
    REC.TARGET_VALUE,
    REC.PRIMARY_SOURCE,
    REC.ERR_ROWKEY,
    REC.ERROR_CODE,
    REC.ERROR_MESSAGE,
    REC.ERROR_TIMESTAMP);
    END LOOP;
    END IF;
    CLOSE C1;
    COMMIT;
    -- NULL; -- allow compilation
    EXCEPTION
    WHEN OTHERS THEN
    NULL; -- enter any exception code here
    END;

  • Migrating from crystal report 8.5 to 10.0 giving error

    migrating from crystal report 8.5 to 10.0 giving error
    I am working in migrating my cr application to 10th ver from the existing 8.5 where we have to explicitly make a query in query builder and then attach it. I was using dsn in ms odbc for oracle driver to connect the DB. Now in 10.0 i have removed the query file created using 8.5 query builder and trying to write directly to command editor. the report as stand alone is working fine. but when i try to generate the pdf using my vb application then on .export option it is giving error as "Logon failed.
    Details: 01S00:[Microsoft][ODBC driver for Oracle]Invalid connection string attribute". i think the problem might be with cddb_oracle.dll or crdb_oracle.dll file as i am using a evaluation version of crystal report 10. as input to dsn i am providing

    migrating from crystal report 8.5 to 10.0 giving error
    I am working in migrating my cr application to 10th ver from the existing 8.5 where we have to explicitly make a query in query builder and then attach it. I was using dsn in ms odbc for oracle driver to connect the DB. Now in 10.0 i have removed the query file created using 8.5 query builder and trying to write directly to command editor. the report as stand alone is working fine. but when i try to generate the pdf using my vb application then on .export option it is giving error as "Logon failed.
    Details: 01S00:[Microsoft][ODBC driver for Oracle]Invalid connection string attribute". i think the problem might be with cddb_oracle.dll or crdb_oracle.dll file as i am using a evaluation version of crystal report 10. as input to dsn i am providing

  • Migrating from crystal report 8.5 to 10.0 giving error 01S00:error

    migrating from crystal report 8.5 to 10.0 giving error
    I am working in migrating my cr application to 10th ver from the existing 8.5 where we have to explicitly make a query in query builder and then attach it. I was using dsn in ms odbc for oracle driver to connect the DB. Now in 10.0 i have removed the query file created using 8.5 query builder and trying to write directly to command editor. the report as stand alone is working fine. but when i try to generate the pdf using my vb application then on .export option it is giving error as "Logon failed.
    Details: 01S00:[Microsoft][ODBC driver for Oracle]Invalid connection string attribute". i think the problem might be with cddb_oracle.dll or crdb_oracle.dll file as i am using a evaluation version of crystal report 10. as input to dsn i am providing
    1.dsn
    2.usid
    3.database
    4.password
    what else is missing . plz help.....

    Well, you can migrate, you can not upgrade (semantics I suppose). E.g.; the RDC was deprecated in CR XI r1 and retired in CR 2008. Thus there is no way for you to upgrade to version 12 of the RDC as there is no such thing. So, from here, you have two options: migrate / port the app to .NET, or Java SDKs.
    Re. RDC, see my blog here:
    /people/ludek.uher/blog/2008/10/20/report-designer-component--past-present-future
    For porting the app to .NET, see this article:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0eb394f-931e-2b10-3b82-9413bfc3f457
    Ludek

  • Procedure giving error with collections

    H, i wrote a procedure in which i am using collections to out a some data.Its giving error. Below is format of procedure:
    Create or replace procabc(a in type_a, b in number, c out type_b)
    begin
    for i in 1....a.count loop
    for j in (select num from abc) loop
    if (num = 'condition1') then
    c(i) := num;
    elsif (num = 'condition2') then
    c(i) := num;
    elsif (num = 'condition3') then
    c(i) := num;
    else
    dbms_output.put_line('not matching');
    end if;
    end loop;
    end loop;
    end;
    In above code input a and output c are type which i had created.
    how to out my values in out parameter c...its executing ..i am getting print but its not storing in out parameter c which is type. what i need to do..even i had initialised the collection also tried c.event before storing..still wont work..can anyone help me???

    Megha Verma wrote:
    version is oracle 10g...i dont want to use cursors....You already are.
    for j in (select num from abc) loop
    1 loop is there because i am passing a array as input and i need all values from query whose output depends on that.You're passing an array, but you aren't using it anywhere!!!
    for i in 1....a.count loopa is not referenced in any subsequent code.
    second loop is to execute the query and get the data and store it in a collection. and return it to ut parameter...what i need to add values to my collection....Yes, and it's extremely inefficient (if it's even correct, seeing my previous comment about not using the collection you pass in anywhere).
    >
    c is out parameter and is a type(i had created).
    simply i want to know how to add values to it while i get my data when loop executes....it prints my valus...just tell how to add it to collections and return it as out parameter.Sadly it's not that simple. Simple to correct technically yes, but your entire process seems to be flawed so i really think you should revisit that. Or post sufficient information to have us help you in an actually helpful manner.

  • Giving error in update query

    This is my update query in oracle but it is giving error:
    Update (select NM.Nominal_Amount,NM.Number_of_Units,NM.Current_Spot,NM.Published_Spot,NM.Strike_Price
    from note_master NM ,
    (     select NORM.Note_Master_ID, NORM.Asset, NORM.Currency , 50 as Spot_Price_Calc,      NVL(TOADD.NA,0) As NA, NVL(TOADD.NS,0)
    As NS, NVL(TOADD.NA_P,0) As NA_P, NVL(TOADD.NS_P,0) As NS_P, NVL(TOADD.SA,0) As SA,      (50 * (NORM.Strike_Price_Per/100)) as
    rike_Price_Calc,      (Case When UPPER(NORM.Misc2) = 'Q' THEN (NORM.No_Of_Shares * 50 * (NORM.Strike_Price_Per/100)) Else
    NORM.Nominal_Amount End )as Nominal_Amount_Calc,     (Case When UPPER(NORM.Misc2) ='N' THEN (NORM.Nominal_Amount /( 50 * (NORM.Strike_Price_Per/100)))
    Else NORM.No_Of_Shares End )as NO_Of_Shares_Calc,     (Case When UPPER(NORM.Misc2) = 'Q' THEN (NORM.No_Of_Shares * 50 * (NORM.Strike_Price_Per/100) * NORM.Issue_Price )/100
    Else (NORM.Nominal_Amount * NORM.Issue_Price )/100 End )as Settlement_Amt_Calc     from      (          select Note_Master_Id, MIN(Spot_Price) as Spot_Price, Min(Strike_Price) as
    Strike_Price, SUM(Nominal_Amount) as Nominal_Amount, SUM(No_Of_Shares) as No_Of_Shares , MIN(Issue_Price) as Issue_Price, MIN(Asset) as Asset, MIN(Currency) as Currency,
    MIN(Strike_Price_Per) as Strike_Price_Per, MIN(Misc2) as Misc2      from      (          Select Note_Master_Id, Spot_Price, Strike_Price, Nominal_Amount, No_Of_Shares, Issue_Price, Asset,
    Currency , Strike_Price_Per,Misc2      from Sample_ADF_FinIQ_Common.Note_Order_RM      Where Order_Status_Flag = 'YYYYYYNNNNNNNNNN'      And RO_ID = 'R000000002'     ) NORM      Group by Note_Master_Id     ) NORM
    Left Outer JOIN Sample_ADF_FinIQ_Common.RATESSPOTBIDASK RSBA     On RSBA.PairCode = (NORM.Asset )          Left Outer JOIN      (     select Note_Master_ID,sum(Nominal_Amount)
    as NA, sum(No_Of_Shares) as NS, sum(NominalAmt_Pending) as NA_P, sum(NoOfShares_Pending) as NS_P,sum(Settlement_Amt) as SA      from Note_Order_RM     
    Where RO_ID <> 'R000000002'     group by Note_Master_ID ) TOADD     On TOADD.Note_Master_ID = NORM.Note_Master_ID ) RESULT1 where NM.Note_Master_ID = RESULT1.Note_Master_ID )
    set      Price_Updated_YN = 'Y'           ,
    Nominal_Amount = RESULT1.NA + RESULT1.Nominal_Amount_Calc          , Number_Of_Units = RESULT1.NS + RESULT1.NO_Of_Shares_Calc          ,
    Current_Spot = RESULT1.Spot_Price_Calc           , Published_Spot = RESULT1.Spot_Price_Calc           , Strike_Price = RESULT1.Strike_Price_Calc
    where NM.Note_Master_ID = RESULT1.Note_Master_ID;
    error :
    rror at Command Line:17 Column:105
    Error report:
    SQL Error: ORA-00904: "RESULT1"."STRIKE_PRICE_CALC": invalid identifier
    00904. 00000 - "%s: invalid identifier"
    can anybody help.
    Thanks

    Still one more typo problem exists in you sql stament , equal to(=) operator is missing in your original statement look below
    original
    Where RO_ID 'R000000002'     group by Note_Master_ID ) TOADD     On TOADD.Note_Master_ID = NORM.Note_Master_ID ) RESULT1 where NM.Note_Master_ID = RESULT1.Note_Master_ID )
    set Price_Updated_YN = 'Y'
    modified
    Where RO_ID='R000000002'     group by Note_Master_ID ) TOADD     On TOADD.Note_Master_ID = NORM.Note_Master_ID ) RESULT1 where NM.Note_Master_ID = RESULT1.Note_Master_ID )
    set Price_Updated_YN = 'Y' Ok, once try with this code, some syntax prob i modified it.
    Update (select NM.Nominal_Amount,NM.Number_of_Units,NM.Current_Spot,NM.Published_Spot,NM.Strike_Price
    from note_master NM ,
    (     select NORM.Note_Master_ID, NORM.Asset, NORM.Currency , 50 as Spot_Price_Calc, NVL(TOADD.NA,0) As NA, NVL(TOADD.NS,0)
    As NS, NVL(TOADD.NA_P,0) As NA_P, NVL(TOADD.NS_P,0) As NS_P, NVL(TOADD.SA,0) As SA, (50 * (NORM.Strike_Price_Per/100)) as
    Strike_Price_Calc, (Case When UPPER(NORM.Misc2) = 'Q' THEN (NORM.No_Of_Shares * 50 * (NORM.Strike_Price_Per/100)) Else
    NORM.Nominal_Amount End )as Nominal_Amount_Calc,     (Case When UPPER(NORM.Misc2) ='N' THEN (NORM.Nominal_Amount /( 50 * (NORM.Strike_Price_Per/100)))
    Else NORM.No_Of_Shares End )as NO_Of_Shares_Calc,     (Case When UPPER(NORM.Misc2) = 'Q' THEN (NORM.No_Of_Shares * 50 * (NORM.Strike_Price_Per/100) * NORM.Issue_Price )/100
    Else (NORM.Nominal_Amount * NORM.Issue_Price )/100 End )as Settlement_Amt_Calc     from (      select Note_Master_Id, MIN(Spot_Price) as Spot_Price, Min(Strike_Price) as
    Strike_Price, SUM(Nominal_Amount) as Nominal_Amount, SUM(No_Of_Shares) as No_Of_Shares , MIN(Issue_Price) as Issue_Price, MIN(Asset) as Asset, MIN(Currency) as Currency,
    MIN(Strike_Price_Per) as Strike_Price_Per, MIN(Misc2) as Misc2 from (      Select Note_Master_Id, Spot_Price, Strike_Price, Nominal_Amount, No_Of_Shares, Issue_Price, Asset,
    Currency , Strike_Price_Per,Misc2 from Sample_ADF_FinIQ_Common.Note_Order_RM Where Order_Status_Flag = 'YYYYYYNNNNNNNNNN' And RO_ID = 'R000000002'     ) NORM Group by Note_Master_Id     ) NORM
    Left Outer JOIN Sample_ADF_FinIQ_Common.RATESSPOTBIDASK RSBA     On RSBA.PairCode = (NORM.Asset )      Left Outer JOIN (     select Note_Master_ID,sum(Nominal_Amount)
    as NA, sum(No_Of_Shares) as NS, sum(NominalAmt_Pending) as NA_P, sum(NoOfShares_Pending) as NS_P,sum(Settlement_Amt) as SA from Note_Order_RM     
    Where RO_ID 'R000000002'     group by Note_Master_ID ) TOADD     On TOADD.Note_Master_ID = NORM.Note_Master_ID ) RESULT1 where NM.Note_Master_ID = RESULT1.Note_Master_ID )
    set Price_Updated_YN = 'Y' ,
    Nominal_Amount = RESULT1.NA + RESULT1.Nominal_Amount_Calc      , Number_Of_Units = RESULT1.NS + RESULT1.NO_Of_Shares_Calc      ,
    Current_Spot = RESULT1.Spot_Price_Calc , Published_Spot = RESULT1.Spot_Price_Calc , Strike_Price = RESULT1.Strike_Price_Calc
    where NM.Note_Master_ID = RESULT1.Note_Master_ID;Edited by: darkStargate on Dec 8, 2011 7:42 PM

  • MRP giving error message

    MRP giving error message
    1) No rows in Item Master
    2) Bill Level generation failed
    However Item master is well defined.
    need help urgently.
    Thanx in advance.
    Deven

    Dear Dinesh,
    I allready checkd my item its active & inventory item. What do u mean by inactive_ind flag not set up right, can u giv me some idea on that setup.
    by the way i allready raise SR for this. & oracle had suggestd me a patch.

  • Adstpall.sh and adstrtal.sh scripts is giving error in R12

    Team,
    I am trying to start and stop the services using adstpall.sh and adstrtal.sh but its giving error.
    -bash-3.00$ sh adstpall.sh
    You are running adstpall.sh version 120.10.12010000.4
    Enter the APPS username: apps
    Enter the APPS password:
    adstpall.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
    USAGE: adstpall.sh <appsusername/appspassword>
    adstpall.sh <applications_username/applications_password> -secureapps
    adstpall.sh -nodbchk
    adstpall.sh: exiting with status 1
    -bash-3.00$ sh adstrtal.sh
    You are running adstrtal.sh version 120.15.12010000.3
    Enter the APPS username: apps
    Enter the APPS password:
    adstrtal.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
    USAGE: adstrtal.sh <appsusername/appspassword>
    adstrtal.sh <applications_username/applications_password> -secureapps
    adstrtal.sh -nodbchk
    adstrtal.sh: exiting with status 1
    But I am able to login to DB with the same.
    -bash-3.00$ sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Sat Mar 26 09:29:27 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select name from v$database;
    NAME
    R1212112
    SQL> select banner from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Autoconfig on the Apps tier and Db tier is completing successfully without any issues.
    COuld you please help me in rectifying the issue.

    Hi Srini,
    I tried the below but It didnt work:
    /slot/ems6596/appmgr/inst/apps/r1212112_rws60007rems/admin/scripts
    -bash-3.00$ adstpall.sh apps/apps
    You are running adstpall.sh version 120.10.12010000.4
    adstpall.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
    USAGE: adstpall.sh <appsusername/appspassword>
    adstpall.sh <applications_username/applications_password> -secureapps
    adstpall.sh -nodbchk
    adstpall.sh: exiting with status 1
    -bash-3.00$ adstpall.sh
    You are running adstpall.sh version 120.10.12010000.4
    Enter the APPS username: apps
    Enter the APPS password:
    adstpall.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
    USAGE: adstpall.sh <appsusername/appspassword>
    adstpall.sh <applications_username/applications_password> -secureapps
    adstpall.sh -nodbchk
    adstpall.sh: exiting with status 1
    Any help into this.

  • IMAP giving error in notification mailer setup.

    Name : Workflow Notification Mailer
    Outbound EMail Account (SMTP)
    * Server Name = exsrv.domainname
    Inbound EMail Account (IMAP)
    Inbound Processing = checked
    Server Name = exsrv.domainname
    Username = testmailer
    Password = ********
    Reply-To Address = testmailer@domainname
    IN THE ABOVE SETTINGS SMTP IS SUCCESSFUL BUT IMAP IS GIVING ERROR 'UNABLE TO MAKE NETWORK CONNECTION'.
    I HAVE TWO QUESTIONS PLEASE,
    WHY THIS ERROR APPEARING?
    WHAT IS THE USE OF IMAP? CAN THE NOTIFICATION MAILER BE CONFIGURED ONLY BY SMTP SETTINGS?
    PLEASE ADVICE.

    Sami,
    Please refer the extract from the ML doc
    *[Workflow Mailer Notification: IMAP is not processing inbound messages|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=371730.1]*
    When ever a leave request is created and submitted ,an e-mail notification is sent to the
    preparer and approver, When the mail notification is actioned by the approver like Approving the leave request >or rejecting That means a outbound process is what as name suggest whenever any notification is send to the user from the application and inbound is the reply/action which is received back in the application.
    What will happen if I don't set the IMAP for inbound processing?You simply won't get the replies/action summary from the users.
    Thanks,
    Anchorage :)

  • ODISqlUnload giving Error

    I am using ODISqlUnload for unloading data to text file using following command.
    OdiSqlUnload -FILE=D:\SAP\Filename.txt -DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%> "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" "-FILE_FORMAT=FIXED" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    "-QUERY=select 'FAILURE',nvl(substr(substr( PACKAGE_NAME||',', 1, instr(PACKAGE_NAME,',')-1 ),7),'Error Due to missing scenario or Any other unlogged error') ,to_char(sysdate,'DD-mm-yyyy HH24:MI:SS') from error_messages"
    But it is giving strange error. as
    java.lang.IllegalArgumentException: Could not load JDBC driver class []
         at oracle.odi.jdbc.datasource.DriverManagerDataSource.setDriverClassName(DriverManagerDataSource.java:159)
         at oracle.odi.jdbc.datasource.DriverManagerDataSource.<init>(DriverManagerDataSource.java:92)
         at com.sunopsis.dwg.tools.SqlUnload.actionExecute(SqlUnload.java:298)
         at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:273)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3185)
    But at the same time i am using same command in another procedure as
    OdiSqlUnload -FILE=D:\SAP\RBSIT_#SAP_Filename.txt -DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%> "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" "-FILE_FORMAT=FIXED" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    SELECT * FROM ompodi.start_record
    which is running fine.
    Why this would be occurring??
    Help appreciated.
    Edited by: MaheshGx on Feb 23, 2012 1:51 PM

    IT WAS GIVING ERROR BECAUSE IN SOURCE COMMAND I HAVENT SPECIFIED SOURCE TECNHOLOGY AND LOGICAL SCHEMA.
    ALSO IN ABOVE COMMAND THERE IS NO NEED TO WRITE QUERY WORD EXPLICITELY.
    SO IT SHOULD BE AS
    OdiSqlUnload -FILE=D:\Patrol\kaname2alert.txt -DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%> "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" "-FILE_FORMAT=FIXED" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    select 'FAILURE ',trim(nvl(substr(substr( PACKAGE_NAME||',', 1, instr(PACKAGE_NAME,',')-1 ),7),'Error Due to missing scenario or Any other unlogged error')) Package_Name,to_char(FAILURE_TIMESTAMP,'DD-mm-yyyy HH24:MI:SS') Execution_Time from <%=odiRef.getSchemaName("OMP","W")%>.ERROR_MESSAGES order by failure_timestamp desc
    HOPE IT WOULD HELP SOMEONE.
    SO POSTING IT.

  • OdiSqlUnload giving error for network location specified

    Hi,
    I have been trying to use OdiSqlUnload tool to create text files on Network machine.
    But it is giving following error
    oracle.odi.oditools.OdiToolInvalidParameterException: Error while setting parameters on tool
         at com.sunopsis.dwg.function.SnpsFunctionBase.getCoreOdiTool(SnpsFunctionBase.java:607)
    So as per error it is saying parameters specified are incorrect.
    Let me also paste for you Code i have used.
    OdiSqlUnload -FILE= \\10.161.102.182\Interfaces\OMP\BUR\snd\RBSIT_#SAP_Filename.txt -DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%> "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" "-FILE_FORMAT=FIXED" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    SELECT * FROM ompodi.start_record
    As here i have specified network location, does it mean i cannot create files on ntwork machine directly?
    If so then is there any way to move files to network machine location from host computer?
    Also i would like to know any tool for deleting files , preferably network location.
    Thanks and Regards,
    Mahesh

    IT WAS GIVING ERROR BECAUSE IN SOURCE COMMAND I HAVENT SPECIFIED SOURCE TECNHOLOGY AND LOGICAL SCHEMA.
    ALSO IN ABOVE COMMAND THERE IS NO NEED TO WRITE QUERY WORD EXPLICITELY.
    SO IT SHOULD BE AS
    OdiSqlUnload -FILE=D:\Patrol\kaname2alert.txt -DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%> "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" "-FILE_FORMAT=FIXED" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    select 'FAILURE ',trim(nvl(substr(substr( PACKAGE_NAME||',', 1, instr(PACKAGE_NAME,',')-1 ),7),'Error Due to missing scenario or Any other unlogged error')) Package_Name,to_char(FAILURE_TIMESTAMP,'DD-mm-yyyy HH24:MI:SS') Execution_Time from <%=odiRef.getSchemaName("OMP","W")%>.ERROR_MESSAGES order by failure_timestamp desc
    HOPE IT WOULD HELP SOMEONE.
    SO POSTING IT.

  • When we execute Package it is giving Error..!

    Hi,
    I want to know how to email through SQL*Plus in Oracle 10g. I found some packages from oracle site, but it is for only 8i. Then also i tryed to executed that package, but it is giving error as follows:
    SQL> Execute demo_mail.mail('[email protected]','[email protected]','test subject','
    test message');
    BEGIN demo_mail.mail('[email protected]','[email protected]','test subject','test me
    ERROR at line 1:
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 97
    ORA-06512: at "SYS.UTL_SMTP", line 139
    ORA-06512: at "RAVI.DEMO_MAIL", line 240
    ORA-06512: at "RAVI.DEMO_MAIL", line 118
    ORA-06512: at "RAVI.DEMO_MAIL", line 104
    ORA-06512: at line 1
    Is there any way to solve this error. Why this error is coming. Through this site i got this:
    http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
    For oracle 10g, we can use this package or any other packages to run this in Oracle 10g.
    Can any one suggest me...!
    Thank u..!
    Ravi

    Hi,
    Thank u for u r reply. In my system IIS is already installed
    In Add or Remove Programs->Add/Remove Wndows Components
    Checked the IIS check box.
    In Internet Information Service (IIS) option and clicked on Details button
    The SMTP Service is checked.
    And i am executing this package in client machine. I am using Oracle 10g. What more required for this to run this.
    Thank u..!
    Ravi

  • Passing parameaters giving error

    Hi All,
    I have requirement to add custom OAF page .
    In customer online i have added one custom page all standard page have left navigation menu so same menu i have included into my page when i am clicking any link it is giving error it is not taking parameter
    Function definition is like bellow
    OA.jsp?page=/oracle/apps/imc/ocong/party/organization/webui/ImcOrgOverview;ImcPartyId={@ImcPartyId}&ImcPartyName={@ImcPartyName}
    for each like it is taking parameater like ImcPartyId={@ImcPartyId}&ImcPartyName={@ImcPartyName}
    i have created one VO and added this as attributes in my custom page but it is not picking .
    I have manually pas this values as parameter from previous page even though it is not picking .
    when i try to print those values in next page it is displaying ={@ImcPartyId} and {@ImcPartyName}
    not getting values.
    can any one guide me how to pass this values from my custom page.
    Thanks in advance...
    Regards,
    Sridhar.

    Read the OAF tutorial. There is a seciton which shows you how to generate a SEARCH, CREATE, DRILLDOWN, and UPDATE page. I think it's under tutorial toolbox lessons.
    There is a section which shows you how to pass the parameters between the SEARCH and DRILLDOWN pages. The tutorial is monumental in explaining how to develop OAF pages.
    From tutorial...
    Step 4.1 Configure the EmpName Item as a Link
    When the user selects an Employee Name link, the Details page should display. As part of this GET request, we also want to:
    Add employeeNumber and employeeName parameters to the URL. These parameter values should be sourced from the EmployeeSummaryVO1 attributes EmployeeId and EmployeeName respectively.
    Indicate that the EmpSearchPG's application module instance should be retained when the EmpDetailsPG renders so these pages can share the same root application module.
    Indcate that breadcrumbs should display in the EmpDetailsPG.
    To achieve this, select the EmpName item in the ResultsTable region and set the Destination URI property to:
    OA.jsp?page=/<yourname>/oracle/apps/ak/employee/webui/EmpDetailsPG&employeeNumber={@EmployeeId}&employeeName={@EmployeeName}&retainAM=Y&addBreadCrumb=Y
    At runtime, the OA Framework substitutes the current row's view instance attribute values for the tokens inside the curly braces. So, for example, &employeeNumber={@EmployeeId} becomes &emloyeeNumber=1234.

Maybe you are looking for

  • Itunes 8 not compatible with 1st generation ipod shuffle

    I have had a **** of a time tonight trying to get my ipod shuffle working with itunes 8 and finally gave up after trying to restore it via itunes 8 which totally screwed it up because it wouldn't finish the restore so I had to unplug the ipod. Got a

  • Soundcard settings for old DOS games??? I have an Audig

    I have a Soundblaster Audigy 2 card in my computer, and I want to play some old DOS games. I'm wondering what settings I need to use with it to play these games. I remember how it was back then with the games, but now that things have changed, I am c

  • ABAP proxy to Stored procedure on MySQL sync

    Hi, I have one question regarding above scenario. Scenario is like this: user will run sync scenario from some ABAP report, which will connect to PI through ABAP proxy, execute some stored procedure on MySQL server, get data back and update some Z-ta

  • Impossible to clear a waveform inside a cluster...​? LabVIEW quirk?

    I want to erase the chart history of a chart inside of a cluster. This seems apparently impossible to do. The code takes two minutes to see what I'm talking about--sorry no predone LabVIEW code. Create cluster Create waveform chart in cluster Create

  • IE7 and FF2 auto crash/close when surfing java websites

    HELP! My Internet Explorer 7.0.5730.11 and my FireFox 2.0 both crash when I just click on any website that has Java. The browsers just closes themselves without any warning or error pop-ups. I recently (2weeks ago) did a clean install of WinXP home S