ORA-01503 ORA-01115 ORA-01110 ORA-27091ORA-27067

Hi ,
I am making a copy of our production database which is on a linux server to my
testserver on windows server 2003
1. copy the datafiles from a coldbackup to my testserver
2. run the scricpt ad@sql
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "ADWTEST1" RESETLOGS ARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 5
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 'C:\DATABASE\REDO1\REDO01.LOG' SIZE 100M,
GROUP 2 'C:\DATABASE\REDO2\REDO02.LOG' SIZE 100M
-- STANDBY LOGFILE
DATAFILE
'C:\ORACLE\ORADATA\ADWTEST\ADW1SYSTEM01.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1DATA01A.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1DATA01B.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1DATA01C.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1DATA01D.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1DATA01E.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1DATA01F.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1DATA01G.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1DATA01H.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1INDEX01A.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1INDEX01B.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1INDEX01C.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1INDEX01D.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1INDEX01E.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1INDEX01F.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1INDEX01G.DBF',
'C:\ORACLE\ORADATA\ADWTEST\ADW1UNDO01.DBF',
'C:\ORACLE\ORADATA\ADWTEST\REPOSITORY1A.DBF'
CHARACTER SET WE8MSWIN1252
Than i got the following message
CREATE CONTROLFILE SET DATABASE "ADWTEST1" RESETLOGS ARCHIVELOG
FEHLER in Zeile 1:
ORA-01503: CREATE CONTROLFILE nicht erfolgreich
ORA-01115: EA-Fehler beim Lesen von Block aus Datei (Block Nr. 1)
ORA-01110: Datendatei : 'C:\ORACLE\ORADATA\ADWTEST\ADW1SYSTEM01.DBF'
ORA-27091: skgfqio: E/A kann nicht in Queue gestellt werden
ORA-27067: skgfdisp: Puffergro?e ungultig
OSD-04026: Ung+ltiger Parameter +bergeben.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Please review Oracle Metalink Document: ORA-01503 ORA-01160 ORA-01110 while creating controlfile: Doc ID: Note:265265.1
https://metalink.oracle.com/metalink/plsql/f?p=130:14:6577327622142824597::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,265265.1,1,0,1,helvetica
and
Oracle Metalink Document: ORA-01503 And (ORA-01160 ORA-01110) Or (ORA-01565 ORA-27406) Doc ID: Note:1077033.6.
https://metalink.oracle.com/metalink/plsql/f?p=130:14:6577327622142824597::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,1077033.6,1,0,1,helvetica
Please also mention your database version (4 digits).
Adith

Similar Messages

  • ORA-01503 and ORA-01110 Errors while running adcfgclone.pl dbTier

    Hi,
    I am working on R12 on IBM AIX as I am cloning from one system to another I am facing some errors while running adcfgclone.pl for database tier.
    Following is the log from the adcfgclone.pl as it fails;
    Creating the control file for CLONE_test database ...
    SQL*Plus: Release 11.1.0.7.0 - Production on Mon Sep 6 10:32:43 2010
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORA-32006: USER_DUMP_DEST initialization parameter has been deprecated
    ORA-32006: BACKGROUND_DUMP_DEST initialization parameter has been deprecated
    ORACLE instance started.
    Total System Global Area 1068937216 bytes
    Fixed Size                  2160600 bytes
    Variable Size             427821096 bytes
    Database Buffers          624951296 bytes
    Redo Buffers               14004224 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "CLONE"
    *+
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01159: file is not from same database as previous files - wrong database id
    ORA-01110: data file 22: '/u04/oracle/proddata/applsysx01.dbf'
    alter database open resetlogs
    *+
    ERROR at line 1:
    ORA-01507: database not mounted
    alter tablespace TEMP add tempfile '/u03/oracle/proddata/temp01.dbf' REUSE
    *+
    ERROR at line 1:
    ORA-01109: database not open
    ALTER DATABASE RENAME GLOBAL_NAME TO "CLONE.testcom.com"
    *+
    ERROR at line 1:
    ORA-01109: database not open
    ORA-01507: database not mounted
    ORACLE instance shut down.
    Connected to an idle instance.
    ORA-32006: USER_DUMP_DEST initialization parameter has been deprecated
    ORA-32006: BACKGROUND_DUMP_DEST initialization parameter has been deprecated
    ORACLE instance started.
    Total System Global Area 1068937216 bytes
    Fixed Size                  2160600 bytes
    Variable Size             427821096 bytes
    Database Buffers          624951296 bytes
    Redo Buffers               14004224 bytes
    ORA-03113: end-of-file on communication channel
    Process ID: 1278120
    Session ID: 1105 Serial number: 3
    ERROR:
    ORA-03114: not connected to ORACLE
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    Connected.
    ORA-01031: insufficient privileges
    ERROR:
    ORA-01012: not logged on
    ERROR:
    ORA-01012: not logged on
    ERROR:
    ORA-01012: not logged on
    ERROR:
    ORA-01012: not logged on
    ERROR:
    ORA-01012: not logged on
    ERROR:
    ORA-01012: not logged on
    Disconnected
    exit_code=1
    Checking for errors ...
    The database has not been successfully created. Shutting down the instance ...
    SQL*Plus: Release 11.1.0.7.0 - Production on Mon Sep 6 10:33:12 2010
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Disconnected
    +.end std out.+
    +.end err out.+
    I have checked the log for preclone from the source machine but there are no errors. Below are the last lines of preclone log file
    Zip2 - Completed native zipping sh -c "cd /u02/oracle/proddb/10.2.0/appsutil/out/PROD_testcom/; zip  -q  -y /u02/oracle/proddb/10.2.0/appsutil/clone/data/stage/adcrdb.zip -@ ; echo ERRORCODE = $? ERRORCODE_END"
    Done...
    +#############################################################+
    StageDBTier Finished at Tue Aug 31 16:50:19 GMT03:00 2010+
    Status: Completed Successfully
    +#############################################################+
    Please advice.
    Regards

    Hi user:
    1. Yes the database and lsnr were closed as the tar files were created. So, i assume thate there are no any oracle session avalibale when you copy files from source to target
    2. Yes I would also like to mention that it already had an old instance. So this is just a new clone. So, i mention you have valid entery on /etc/hosts file
    3. Please can you describe what permissions as from root user it was done as
    chown -R oratest:dba <db tier folders> If your target user is oratest than syntax seems correct, did you copy oracle_home too from source to target and this home owner is oratest again right?
    Regard
    Helios

  • ORA-01503 and ORA-01200

    I have a big problem.Can anyoane help me?
    I had accidentaly delete all my database, i had recover the files with a recover tool but not the control files.
    Now i whant to recreate the controlfiles with the script:
    CREATE CONTROLFILE SET DATABASE "TEST" RESETLOGS NOARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 2336
    LOGFILE
    GROUP 1 'D:\...' SIZE 100M,
    GROUP 2 'D:\...' SIZE 100M,
    GROUP 3 'D:\...' SIZE 100M,
    DATAFILE
    'D:\....',
    'D:\....',
    'D:\....',
    CHARACTER SET UTF8
    AND I RECEIVE :
    ERROR AT LINE 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01200: actual file size of 2621140 is smaller than corect size of 262144 blocks
    ORA-01110: data file 7 : 'D:\....'
    I dont have any bkp. :(
    Can anyone help me?
    Thanks and excuze my english

    Hi..
    From metalink:--
    >
    Error: ORA 1200
    Text: actual file size of <num> is smaller than correct size of <num> blocks
    Cause: The size of the file, as returned by the operating system, is smaller
    than the size of the file as indicated in the file header and the
    control file.
    Somehow the file has been truncated.
    Action: Restore a good copy of the datafile from a backup and perform recovery
    as needed.
    >
    Anand

  • ORA-01503: CREATE CONTROLFILE failed

    Hello.
    I'm trying to install an ORACLE EBS 11i on an Oracle Linux Release 5 Update 5 Media Pack v1 for x86 (32 bit) from stage.
    The process is going great until the "Creating the database controlfile..." step. It crashes there.
    I've looked in the log file and this is what I can find:
    ORACLE_HOME : /u01/oracle/visdb/9.2.0
    ORACLE_SID : VIS
    TWO_TASK :
    PATH : /u01/oracle/visdb/9.2.0/Apache/perl/bin:/u01/oracle/visdb/9.2.0/bin:/usr/bin:/usr/sbin:/u01/oracle/visdb/9.2.0/jre/1.4.2/bin:/usr/ccs/bin:/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/bin:/u01/Stage11i/startCD/Disk1
    /rapidwiz/unzip/Linux:/usr/bin:/usr/local/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
    LD_LIBRARY_PATH : /u01/oracle/visdb/9.2.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/oracle/visdb/9.2.0/ctx/lib
    Executable : /u01/oracle/visdb/9.2.0/bin/sqlplus
    The log information will be written to
    /u01/oracle/visdb/9.2.0/appsutil/log/VIS_ebs/adcrdb_VIS.txt
    Creating the control file for VIS_ebs database ...
    SQL*Plus: Release 9.2.0.5.0 - Production on Wed Feb 23 17:28:54 2011
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 581506616 bytes
    Fixed Size 452152 bytes
    Variable Size 402653184 bytes
    Database Buffers 167772160 bytes
    Redo Buffers 10629120 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "VIS"
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file '/u01/oracle/visdata/tx_data11.dbf'
    ORA-27046: file size is not a multiple of logical block size
    Additional information: 1
    alter database open resetlogs
    ERROR at line 1:
    ORA-01507: database not mounted
    alter tablespace TEMP add tempfile '/u01/oracle/visdata/tmp1.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    ALTER DATABASE RENAME GLOBAL_NAME TO "VIS.gdmelectronics.com"
    ERROR at line 1:
    ORA-01109: database not open
    ORA-01507: database not mounted
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 581506616 bytes
    Fixed Size 452152 bytes
    Variable Size 402653184 bytes
    Database Buffers 167772160 bytes
    Redo Buffers 10629120 bytes
    ORA-00205: error in identifying controlfile, check alert log for more info
    BEGIN dbms_backup_restore.zeroDbid(0); END;
    ERROR at line 1:
    ORA-00210: cannot open the specified controlfile
    ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 3284
    ORA-06512: at line 1
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 581506616 bytes
    Fixed Size 452152 bytes
    Variable Size 402653184 bytes
    Database Buffers 167772160 bytes
    Redo Buffers 10629120 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "VIS"
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file '/u01/oracle/visdata/tx_data11.dbf'
    ORA-27046: file size is not a multiple of logical block size
    Additional information: 1
    alter database open resetlogs
    ERROR at line 1:
    ORA-01507: database not mounted
    alter tablespace TEMP add tempfile '/u01/oracle/visdata/tmp1.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    Is there something I'm doing wrong ?
    How do I create a new control file and use it ?
    I don't know if I gave needed information. If you need more details, please ask and I will try to provide them.
    Thank you and regards,
    Sorin Miroiu

    Hi schavali.
    Thanks for the quick reply.
    I've checked and that file doesn't exists.
    [root@ebs ~]# ls /u01/oracle/visdata/
    apps_ts_tx_interface.dbf media1.dbf owa1.dbf summary2.dbf sys4.dbf tx_data1.dbf tx_data8.dbf tx_idx4.dbf undo02.dbf
    archive1.dbf media2.dbf portal.dbf summary3.dbf sys5.dbf tx_data2.dbf tx_data9.dbf tx_idx5.dbf undo03.dbf
    archive2.dbf media3.dbf queues1.dbf summary4.dbf sys6.dbf tx_data3.dbf tx_idx10.dbf tx_idx6.dbf undo04.dbf
    ctx1.dbf mobile01.dbf queues2.dbf summary5.dbf sys7.dbf tx_data4.dbf tx_idx11.dbf tx_idx7.dbf
    log1.dbf nologging1.dbf reference1.dbf sys1.dbf tmp1.dbf tx_data5.dbf tx_idx1.dbf tx_idx8.dbf
    log2.dbf odm.dbf reference2.dbf sys2.dbf tx_data10.dbf tx_data6.dbf tx_idx2.dbf tx_idx9.dbf
    log3.dbf olap.dbf summary1.dbf sys3.dbf tx_data11.dbf tx_data7.dbf tx_idx3.dbf undo01.dbf
    For some reason it stops at tx_data9.dbf.
    I will try to start the install all over again and comeback with feedback.
    I think I will redo the DB stage as well.
    Regards,
    Sorin Miroiu

  • ORA-06502:Numeric or value error ORA-01403: No data found --6502

    Dear All
    I am using Forms 10g.
    I am calling a report from my form.
    but when i am calling then it is showing this error:
    ORA-06502:Numeric or value error ORA-01403: No data found --6502
    My code is in Print Button :
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    plid ParamList;
    vParamValue number;
    BEGIN
    plid := Get_parameter_List('tmp');
    IF NOT Id_Null(plid) THEN
    Destroy_parameter_List( plid );
    END IF;
    plid := Create_parameter_List('tmp');
    Add_Parameter(PLid, 'P_Block', Text_Parameter, :block_query.item_block);
    Add_Parameter(PLid, 'P_Category', Text_Parameter, :block_query.item_category);
    Add_Parameter(PLid, 'P_Dept', Text_Parameter, :block_query.item_dept);
    Add_Parameter(PLid, 'P_sub_Category', Text_Parameter, :block_query.item_sub_category);
    Add_Parameter(PLid, 'P_FLOOR', Text_Parameter, :block_query.item_floor);
    Add_Parameter(PLid, 'P_IP', Text_Parameter, :block_query.item_ip);
    Add_Parameter(PLid, 'P_Room', Text_Parameter, :block_query.item_room);
    Add_Parameter(PLid, 'P_Userid', Text_Parameter, :block_query.item_usr_id);
    Add_Parameter(PLid, 'PARAMFORM', Text_Parameter, 'NO');
    repid := FIND_REPORT_OBJECT('rp_report');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_oracleapps_eHOpeAS');
    v_rep := RUN_REPORT_OBJECT(repid,plid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')      
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
    '||'server=rep_oracleapps_eHOpeAS');
    Exception
         When others then
         message(Sqlerrm||'-'||sqlcode);
    End;
    Edited by: Sandip Mohapatra on Feb 8, 2010 12:44 AM

    hi
    u can write for all no problem.
    here is an example please modify it with u r requirements.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    plid ParamList;
    vParamValue number;
    BEGIN
    plid := Get_parameter_List('tmp');
    IF NOT Id_Null(plid) THEN
    Destroy_parameter_List( plid );
    END IF;
    plid := Create_parameter_List('tmp');
    add_parameter(plid,'P_code',text_parameter,to_char(:hr.employee_code));
    add_parameter(plid,'P_name',text_parameter,to_char(:hr.name));
    add_parameter(plid,'P_fname',text_parameter,to_char(:hr.fname));
    add_parameter(plid,'P_gender',text_parameter,to_char(:hr.gender));
    add_parameter(plid,'P_married',text_parameter,to_char(:hr.marital_status));
    add_parameter(plid,'P_job',text_parameter,to_char(:hr.job));
    add_parameter(plid,'P_sal',text_parameter,to_char(:hr.sal));
    add_parameter(plid,'P_dob',text_parameter,to_char(:hr.dob));
    add_parameter(plid,'P_country',text_parameter,to_char(:hr.country));
    add_parameter(plid,'P_nationality',text_parameter,to_char(:hr.nationality));
    add_parameter(plid,'P_address',text_parameter,to_char(:hr.address));
    add_parameter(plid,'p_imagecode',text_parameter,to_char(:images.employee_code));
    Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
    repid := FIND_REPORT_OBJECT('REPORT6');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'NORMAL');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
    v_rep := RUN_REPORT_OBJECT(repid,plid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://sarah:8890/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver&P_code='||:hr.employee_code||'&P_name'
    ||:hr.name ||'&P_fname'|| :hr.fname  ||'&P_gender'||:hr.gender||'&P_married'||:hr.marital_status||'&P_job'||:hr.job||'&P_sal'||:hr.sal||'&P_dob'||:hr.dob||
    '&p_country'||:hr.country||'&p_natioanlity'||:hr.nationality||'&p_address'||:hr.address||'&p_image'||:images.employee_code||'&paramform=no','_SELF');
    END;sarah

  • Report suddenly showing ORA-20001: Error fetching column value: ORA-06502:

    Hi,
    Some reports in my applications are suddenly showing:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    instead iof the data they used to show.
    In my development system I can fix this by:
    1. changing the column alias in my sql
    select 'a' alias1 from dual becomes
    select 'a' alias2 from dual
    2. SAVE CHANGES
    3. change column alias back to original
    select 'a' alias2 from dual becomes
    select 'a' alias1 from dual
    4. reorder columns back to original in the 'report attributes' tab
    alias1 is now at the bottom of my colum list - i just bounce it up to column 4 using the up arrows
    5. SAVE CHANGES
    then everything starts working OK again.
    There seems to be nothing wrong with my sql as I can make it works on a new page or after I run the above steps, so I guess something is breaking somewhere but I cannot work out what.
    Has anyone else seen this? Does anyone know the cause? Does anyone have a fix for this that does not involve the above steps (plus redeployment to prodcution and all the work that involves)?
    I am seeing this on version 2.3 and 3.0.
    Thanks,
    Martin

    Hi Scott,
    I think this is want you want (sorry it's not easy to read):
    wp.suite_id - Database Column NUMBER - Report Column Based on LOV
    wp.project_id - Database Column NUMBER - Report Column Based on LOV
    wp.application_order wp_order - Database Column NUMBER - Report Column Standard
    lpad(wp.work_package_id,5,'0')||' - '||wp.name wp_name - Database Column NUMBER/VARCHAR2 - Report Column Standard
    pt.application_order pt_order - Database Column NUMBER - Report Column Standard
    pt.name pt_name - Database Column VARCHAR2 - Report Column Standard
    substr(pt.description,1,30) description - Database Column VARCHAR2 - Report Column Standard
    pt.application_tier - Database Column VARCHAR2 - Report Column Based on LOV
    pt.application_method - Database Column VARCHAR2 - Report Column Based on LOV
    pt.TECH_LEAD_ID - Database Column NUMBER - Report Column Based on LOV
    This report has no link columns and no derived columns.
    Regards,
    Martin

  • Migration from 9i to 11g Transparent Gateway results in a) ORA-12704: character set mismatch b) ORA-02070: database ... does not support SYS_OP_C2C in this context

    Migration from 9i to 11g Transparent Gateway results in a) ORA-12704: character set mismatch b) ORA-02070: database ... does not support SYS_OP_C2C in this context
    What Transparent Gateway (TG) 11g configuration steps prevent the following errors?:
    a) ORA-12704: character set mismatch
    b) ORA-02070: database <DB_link_name> does not support SYS_OP_C2C in this context
    Hints:
    The current 9i TG works with the existing views and packages.  These same db objects will not compile using the new 11g TG.
    The db objects are on an Oracle 10g database linked to an SQL Server 2008 R2 database.
    Since the 9i TG works I assume a configuration to the 11g TG will get it working same as before.  But what...
    Is is something controlled by these parameters?  (Sorry, I don't know how this stuff works.  I'm the application developer.  My DBAs setup the Transparent Gateways.):
      Parameters in the Gateway Startup Shell script:
        ORA_NLS33
        NLS_LANG
      Parameters in the initsid.ora file:
        HS_LANGUAGE
        HS_NLS_DATE_FORMAT
        HS_NLS_DATE_LANGUAGE
    I'm avoiding the known workaround to refactor the VIEWS and PACKAGES to contain CAST() statements to explicitly match the data types.  A server side fix to the 11g TG is preferred. 
    Sample code:
    a) ORA-12704: character set mismatch
       ... is caused by SQL that works with my 9i TG but not with my 11g TG.  It's a snippit from my view that won't compile:
                      select status_code                  -- Oracle VARCHAR2(30)
                      from   ora_app_interfaces
                     UNION
                      select "StatusCode" as status_code  -- SQL Server NVARCHAR(30)
                      from   SqlAppInterfaces
       Example workaround that I'm avoiding:
                      select status_code
                      from   ora_app_interfaces
                     UNION
                      select CAST("StatusCode" as VARCHAR(30)) as status_code
                      from   SqlAppInterfaces
    b) ORA-02070: database <DB_link_name> does not support SYS_OP_C2C in this context
       A line of code in the procedure that compiles correctly but fails to execute:
               -- Insert into SQL Server from Oracle
               insert into PatientMedRecNum ( 
                  "PatID",         -- SQL Server INT
                  "MedRecNum",     -- SQL Server NVARCHAR(11)
                  "Hospital")      -- SQL Server NVARCHAR(30)
               values (
                  pi_pat_id,       -- Oracle NUMBER
                  pi_med_rec_num,  -- Oracle VARCHAR2
                  pi_hospital);    -- Oracle VARCHAR2
    I'd guess the errors are caused by the TG's implicit conversion between the Oracle VARCHAR2 and the SQL Server NVARCHAR... but this works fine on the 9i TG... how do I set it up to work on the 11g TG? 
    Thanks!

    Trace of 11g TG... generating errors due to lack of automatic mapping from SQL NVARCHAR to Oracle NVARCHAR, where the previous 9g TG mapped from SQL NVARCHAR to Oracle VARCHAR2.
    Oracle Corporation --- MONDAY    SEP 22 2014 13:35:08.186
    Heterogeneous Agent Release
    11.2.0.4.0
    Oracle Corporation --- MONDAY    SEP 22 2014 13:35:08.186
    Version 11.2.0.4.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "UCS2"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "FALSE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "TRUE"
    setting HS_FDS_QUOTE_IDENTIFIER to default of "TRUE"
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    setting HS_FDS_ARRAY_EXEC to default of "TRUE"
    Exiting hgosdip, rc=0
    ORACLE_SID is "xxxDEV"
    Product-Info:
      Port Rls/Upd:4/0 PrdStat:0
    Agent:Oracle Database Gateway for MSSQL
    Facility:hsa
    Class:MSSQL, ClassVsn:11.2.0.4.0_0019, Instance:xxxDEV
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=1000
    HOCXU_DB_CSET=178
    HS_LANGUAGE not specified
    rc=1239980 attempting to get LANG environment variable.
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2014/09/22-13:35:08
    RC=-1 from HOSGIP for "PATH"
    Setting PATH to "C:\oracle\product\11.2.0\tg_2\dg4msql\driver\lib"
    Exiting hgolofn, rc=0 at 2014/09/22-13:35:08
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2014/09/22-13:35:08
    Entered hgolgon at 2014/09/22-13:35:08
    reco:0, name:abaccess, tflag:0
    Entered hgosuec at 2014/09/22-13:35:08
    uencoding=UTF16
    Entered shgosuec at 2014/09/22-13:35:08
    Exiting shgosuec, rc=0 at 2014/09/22-13:35:08
    shgosuec() returned rc=0
    Exiting hgosuec, rc=0 at 2014/09/22-13:35:08
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    HOSGIP for "HS_FDS_DEFAULT_OWNER" returned "dbo"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2014/09/22-13:35:08
    HS_FDS_CONNECT_INFO = "sqlserverxxx/sqlinstancexxx/SQL_Server_2008_xxx_DEV"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2014/09/22-13:35:08
    dsn: sqlserverxxx/sqlinstancexxx/SQL_Server_2008_xxx_DEV, name:xxx_admin
    optn:
    Entered hgocip at 2014/09/22-13:35:08
    dsn:sqlserverxxx/sqlinstancexxx/SQL_Server_2008_xxx_DEV
    Exiting hgocip, rc=0 at 2014/09/22-13:35:08
    Entered shgogohn at 2014/09/22-13:35:08
    ohn is 'OraGtw11g_home2'
    Exiting shgogohn, rc=0 at 2014/09/22-13:35:08
    RC=-1 from HOSGIP for "HS_FDS_ENCRYPT_SESSION"
    using 0 as default value for "HS_FDS_ENCRYPT_SESSION"
    RC=-1 from HOSGIP for "HS_FDS_VALIDATE_SERVER_CERT"
    using 1 as default value for "HS_FDS_VALIDATE_SERVER_CERT"
    Entered hgocont_OracleCsidToIANA at 2014/09/22-13:35:08
    Returning 2252
    Exiting hgocont_OracleCsidToIANA at 2014/09/22-13:35:08
    Exiting hgogenconstr, rc=0 at 2014/09/22-13:35:08
    Entered hgopoer at 2014/09/22-13:35:08
    hgopoer, line 231: got native error 5701 and sqlstate 01000; message follows...
    [Oracle][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Changed database context to 'Xxx_XXX_DEV'. {01000,NativeErr = 5701}[Oracle][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Changed language setting to us_english. {01000,NativeErr = 5703}
    Exiting hgopoer, rc=0 at 2014/09/22-13:35:08
    hgocont, line 2764: calling SqlDriverConnect got sqlstate 01000
    Entered hgolosf at 2014/09/22-13:35:08
    Exiting hgolosf, rc=0 at 2014/09/22-13:35:08
    DriverName:HGmsss23.dll, DriverVer:07.01.0093 (B0098, U0065)
    DBMS Name:Microsoft SQL Server, DBMS Version:10.00.2531
    Exiting hgocont, rc=0 at 2014/09/22-13:35:08 with error ptr FILE:hgocont.c LINE:2764 ID:SQLDriverConnect
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 128 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2014/09/22-13:35:08
    Entered hgoulcp at 2014/09/22-13:35:08
    Entered hgowlst at 2014/09/22-13:35:08
    Exiting hgowlst, rc=1 at 2014/09/22-13:35:08
    SQLGetInfo returns Y for SQL_PROCEDURES
    SQLGetInfo returns 0x1f for SQL_OWNER_USAGE
    TXN Capable:2, Isolation Option:0xf
    SQLGetInfo returns 128 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 128 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 134 for SQL_MAX_PROCEDURE_NAME_LEN
    HOSGIP returned value of "TRUE" for HS_FDS_QUOTE_IDENTIFIER
    SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
    13 instance capabilities will be uploaded
    capno:1992, context:0x0001ffff, add-info:        0
    capno:3042, context:0x00000000, add-info:        0, translation:"42"
    capno:3047, context:0x00000000, add-info:        0, translation:"57"
    capno:3049, context:0x00000000, add-info:        0, translation:"59"
    capno:3050, context:0x00000000, add-info:        0, translation:"60"
    capno:3066, context:0x00000000, add-info:        0
    capno:3067, context:0x00000000, add-info:        0
    capno:3068, context:0x00000000, add-info:        0
    capno:3069, context:0x00000000, add-info:        0
    capno:3500, context:0x00000001, add-info:       91, translation:"42"
      capno:3501, context:0x00000001, add-info:       93, translation:"57"
    capno:3502, context:0x00000001, add-info:      107, translation:"59"
    capno:3503, context:0x00000001, add-info:      110, translation:"60"
    Exiting hgoulcp, rc=0 at 2014/09/22-13:35:08
    Entered hgouldt at 2014/09/22-13:35:08
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2014/09/22-13:35:08
    Entered hgobegn at 2014/09/22-13:35:08
    tflag:0 , initial:1
    hoi:0x12ee18, ttid (len 32) is ...
      xxx
      xxx
    tbid (len 10) is ...
      0: 09000F00 0FAC1E00 010A [..........]
    Exiting hgobegn, rc=0 at 2014/09/22-13:35:08
    Entered hgodtab at 2014/09/22-13:35:08
    count:1
      table: XXX_INTERFACE
    Allocate hoada[0] @ 0000000005F58270
    Entered hgopcda at 2014/09/22-13:35:08
    Column:1(InterfaceID): dtype:2 (NUMERIC), prc/scl:20/0, nullbl:0, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:2(TableName): dtype:-9 (WVARCHAR), prc/scl:30/0, nullbl:0, octet:60, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:3(TableID): dtype:4 (INTEGER), prc/scl:10/0, nullbl:0, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:4(StatusCode): dtype:-9 (WVARCHAR), prc/scl:30/0, nullbl:0, octet:60, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:5(StatusTimestamp): dtype:93 (TIMESTAMP), prc/scl:23/3, nullbl:0, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:6(InterfaceLog): dtype:-9 (WVARCHAR), prc/scl:400/0, nullbl:1, octet:800, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    The hoada for table XXX_INTERFACE follows...
    hgodtab, line 1073: Printing hoada @ 0000000005F58270
    MAX:6, ACTUAL:6, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN)
    DTY NULL-OK  LEN  MAXBUFLEN   PR/SC  CST IND MOD NAME
      3 DECIMAL N         22         22 20/  0    0   0   0 InterfaceID
    12 VARCHAR N         60         60 128/ 30 1000   0 440 TableName
      4 INTEGER N          4 4   0/  0    0   0   0 TableID
    12 VARCHAR N         60         60 128/ 30 1000   0 440 StatusCode
    91 DATE N         16         16 0/  0    0   0   0 StatusTimestamp
    12 VARCHAR Y        800        800 129/144 1000   0 440 InterfaceLog
    Exiting hgodtab, rc=0 at 2014/09/22-13:35:08
    Entered hgodafr, cursor id 0 at 2014/09/22-13:35:08
    Free hoada @ 0000000005F58270
    Exiting hgodafr, rc=0 at 2014/09/22-13:35:08
    Entered hgotcis at 2014/09/22-13:35:08
    Calling SQLStatistics for XXX_INTERFACE
    IndexType=SQL_TABLE_STAT: cardinality=0
    IndexType=1: PK_XXX_Interface
    IndexType=3: IX_TableID
    IndexType=3: IX_TableName
    Calling SQLColumns for dbo.SQL_app_INTERFACE
    #1 Column "InterfaceID": dtype=2, colsize=20, decdig=0, char_octet_length=0, cumulative avg row len=15
    #2 Column "TableName": dtype=-9, colsize=30, decdig=0, char_octet_length=60, cumulative avg row len=60
    #3 Column "TableID": dtype=4, colsize=10, decdig=0, char_octet_length=0, cumulative avg row len=64
    #4 Column "StatusCode": dtype=-9, colsize=30, decdig=0, char_octet_length=60, cumulative avg row len=109
    #5 Column "StatusTimestamp": dtype=93, colsize=23, decdig=3, char_octet_length=0, cumulative avg row len=125
    #6 Column "InterfaceLog": dtype=-9, colsize=400, decdig=0, char_octet_length=800, cumulative avg row len=725
    3 Index(es) found:
      Index: PK_XXX_Interface, type=1, ASCENDING, UNIQUE, cardinality=0
    #1 Column 1: InterfaceID
      Index: IX_TableID, type=3, ASCENDING, NON-UNIQUE, cardinality=0
    #1 Column 3: TableID
      Index: IX_TableName, type=3, ASCENDING, NON-UNIQUE, cardinality=0
    #1 Column 2: TableName
    Exiting hgotcis, rc=0 at 2014/09/22-13:35:08

  • ORA-01000: maximum open cursors exceeded ORA-06512

    Hi,
    An exception error ccurred as below while trying to map a column.
    Exception oracle.apps.bne.exception.BneSQLException: SQL Exception in BneFlex.validateSegs: java.sql.SQLException: ORA-01000: maximum open cursors exceeded ORA-06512: at "APPS.FND_MESSAGE", line 525 ORA-06512: at "APPS.FND_MESSAGE", line 565 ORA-06512: at "APPS.FND_MESSAGE", line 654 ORA-06512: at "APPS.FND_MESSAGE", line 766 ORA-06512: at "APPS.FND_MESSAGE", line 741 ORA-06512: at "APPS.FND_FLEX_KEYVAL", line 324 ORA-06512: at line 1 occurred trying to map column: Expense Account.
    In alert log file:
    Errors in file /vol01/oracle/SIT/db/tech_st/10.2.0/admin/SIT_sit/udump/sit_ora_7
    04744.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-01000: maximum open cursors exceeded
    Thanks
    Edited by: userpat on Aug 15, 2010 5:32 AM

    Hi,
    The issue is different this time after restarting application and database find below.
    An exception occured trying to map a column
    Exception java.lang.ArrayIndexOutOfBoundsException:Array index out of range:1
    occured trying to map column:Category
    in bne.log
    8/18/10 12:08 PM AJPRequestHandler-ApplicationServerThread-2 ERROR BneP
    arentMenuResolver.getMenuItem() MENU 101:BUDGET_NOTE - Menu item excluded becaus
    e IntegratorAppId and Code does not match that of the Top-Most Menu Item or curr
    ent Integrator: 140:FA_MASS_ADDITIONSThe same error is reported in Note: 954462.1 (which is referenced above).
    And also let me clear one doubt. v$open_cursors view is used for what?. The total number of count v$open_cursors is 60,000 whereas the parameter is defined only 2000 in the Instance.Cursors Remain Open (in V$OPEN_CURSOR View) after being Closed [ID 1020427.102]
    Monitoring Open Cursors & Troubleshooting ORA-1000 Errors [ID 76684.1]
    V$OPEN_CURSOR
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2008.htm#REFRN30166
    Thanks,
    Hussein

  • Java.sql.SQLException: ORA-01000: maximum open cursors exceeded ORA-06512:

    Please help me for resolving this Error.
    I got This Error while Web Load TEsting.
    java.sql.SQLException: ORA-01000: maximum open cursors exceeded ORA-06512: at "IADMIN.ADM_ADMIN_ISMART_PCK", line 269 ORA-06512: at line 1

    I also faced similar problem - and solved as following:
    java.sql.PreparedStatement pStmt = null;
    ResultSet rs, rs_opr;
    try {
         query = "select ..."
         pStmt = conn.prepareStatement (query); // first instance of the PreparedStatement
         pStmt.setInt (1, rq_count);
         pStmt.setString (2, rqid);
         rs = pStmt.executeQuery ();
         if (rs.next()) {
              plant_nm = rs.getString("PLANT_NM");
         rs.close();
         pStmt.close(); // this was done only at the last time (added here and solved)
         query = "select ..."
         pStmt = conn.prepareStatement (query); // second instance of the PreparedStatement
         pStmt.setInt (1, rq_count);
         pStmt.setString (2, rqid);
         rs = pStmt.executeQuery ();
         if (rs.next()) {
              Var2 = rs.getString("Vari1ble_2");
         rs.close();
         pStmt.close(); // this was done only at the last time (added here and solved)
         query = "select ..."
         pStmt = conn.prepareStatement (query); // third instance of the PreparedStatement
         pStmt.setInt (1, rq_count);
         pStmt.setString (2, rqid);
         rs = pStmt.executeQuery ();
         if (rs.next()) {
              Var3 = rs.getString("Variable_3");
         rs.close();
         pStmt.close(); // this was done only here -- added 2 times as above
    }

  • ORA-02289 (10: 10): PL/SQL: ORA-02289: sequence does not exist

    Hi,
    I want to run a trigger on SCOTT account.But wheni try to run it.I am getting ' ORA-02289 (10: 10): PL/SQL: ORA-02289: sequence does not exist'.PLease help out

    Sequence FUNCTION_SEQ does not exist...
    Pease run
    Select * from user_objects
    where object_type='SEQUENCE'
    and object_name='FUNCTION_SEQ'In order to see that this object doesnt exist on your schema...
    Maybe you are trying to use sequence in different schema... Check it out too
    Select * from all_objects
    where object_type='SEQUENCE'
    and object_name='FUNCTION_SEQ'And if you has access to DBA_ views check this too...
    Select * from dba_objects
    where object_type='SEQUENCE'
    and object_name='FUNCTION_SEQ'If you need such sequence please give us an example of values you need and will provide a sequence creation script for you..

  • ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value

    I have an application made in devlopment which is working fine and i jsut migrated it to production but when i am running one of the page in the app in production it si throwing this error "ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small"... this report is ment for generating report.
    Now what i have done, i compared both dev and prod environment but i have not found and changes except this one. In the page of both the application in dev and prod under shared component under under template the region of breadcrum and report region is showing in different position. i dont think it a problem because of that i am facing problem.
    If anybody have idea how could i recitfy the prbs i will be highly thankful to you
    Regards
    Adi

    friends i have seen where the error is coming but i am unable to trace out how to increase the size of lov which i have made.
    when i am taking display as select list(named lov) it is throwing me the error "ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small" but if i am taking display as "popup lov(named lov)" under tablular form element under one of the column in the report, it is working properly. but not shwoing the report the way we want it to show. For that reason i want to increase the size of the love which i have made.

  • 11.5.10.2 to R12.1.1 upgrade : ORA-20000: Oracle Error Rebuild1= -904 - ORA-00904: "TAB"."USER_PROP": invalid identifier

    EBS version : 11.5.10.2
    DB version : 11.2.0.3
    OS version : AIX 6.1 (64 bit)
    As a part of 11.5.10.2 to R12.1.1 upgrade, while applying merged 12.1.1 upgrade driver(u6678700.drv), I got below error :
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ATTENTION: All workers either have failed or are waiting:
    FAILED: file ECXQBKUP.sql on worker 1.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Worker 1 log:
    ========================================
    Start time for file is: Mon Aug 05 2013 10:54:29
    sqlplus -s APPS/***** @/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql/ECXQBKUP.sql &un_apps &pw_apps &un_fnd
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    declare
    ERROR at line 1:
    ORA-20000: Oracle Error Rebuild1= -904 - ORA-00904: "TAB"."USER_PROP": invalid
    identifier
    ORA-06512: at line 46

    I tried fix inside 12.0.6 Patch 6728000 Fails On Ecxqbkup.Sql (Doc ID 760122.1) but getting same error :
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:51:44 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXQBKUP.sql apps apps applsys
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
      select count(*) into in_cnt from ecx_inqueue
    ERROR at line 26:
    ORA-06550: line 26, column 36:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 26, column 3:
    PL/SQL: SQL Statement ignored
    drix10:/home/appltest>sqlplus '/as sysdba'
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Aug 6 11:47:38 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exec dbms_aqadm.drop_queue_table( queue_table=> 'APPS.ECX_INQUEUE',force=>true);
    PL/SQL procedure successfully completed.
    SQL> exec dbms_aqadm.drop_queue_table( queue_table=> 'APPS.ECX_OUTQUEUE',force=>true);
    PL/SQL procedure successfully completed.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:52:07 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXINQ.sql
    Enter value for 4: system
    Enter value for 5: manager
    Connected.
    Enter value for 1: apps
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Enter value for 2: apps
    Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:53:38 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXGINQ.sql
    Enter value for 4: system
    Enter value for 5: manager
    Connected.
    Enter value for 1: apps
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Enter value for 2: apps
    Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:54:04 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXOUTQ.sql
    Enter value for 4: system
    Enter value for 5: manager
    Connected.
    Enter value for 1: apps
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Enter value for 2: apps
    Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps @ECXQBKUP.sql apps apps applsys
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:54:26 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    declare
    ERROR at line 1:
    ORA-20000: Oracle Error Rebuild1= -904 - ORA-00904: "TAB"."USER_PROP": invalid
    identifier
    ORA-06512: at line 46
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options

  • ORA-01810: format code appears twice ORA-02063: preceding line from PULSARL

    Hi ,
    I am running this query
    select distinct to_char(a.USAGEDATE, 'dd/mm/yyyy hh:mm'),round((a.avgifoutoctets * a.numberofrows / (a.avgdeltatime * a.numberofrows) * 8 / 1000 ), 2)as avginoctetrate from vware.vhourlyrtgusageextract a ,vware.rtginterface b where a.id = b.ID and a.id = 125555 and a.USAGEDATE >= TO_CHAR(TO_DATE('2011-05-22 11:40:47', 'yyyy-MM-dd HH:mm:ss')) and a.USAGEDATE < TO_CHAR(TO_DATE('2011-05-29 11:40:47', 'yyyy-MM-dd HH:mm:ss')) and a.IFDESCRIPTION = 'Serial1/0' order by 1
    I am getting this exception
    ORA-01810: format code appears twice ORA-02063: preceding line from PULSARL
    Could anybody please tell me what is the issue ??

    Hi,
    The issue is:
    SQL> select TO_DATE ( '2011-05-29 11:40:47', 'yyyy-MM-dd HH:mm:ss') from dual;
    select TO_DATE ( '2011-05-29 11:40:47', 'yyyy-MM-dd HH:mm:ss') from dual
    ERROR at line 1:
    ORA-01810: format code appears twiceYou are using MM twice. MM means two digit months. You probably mean MI for minutes for the last one:
    SQL> select TO_DATE ( '2011-05-29 11:40:47', 'yyyy-MM-dd HH:mi:ss') from dual;
    TO_DATE(
    11-05-29
    SQL>Note that you have same mistake in your to_char as well, only this does not fail.
    The ORA-02063 just tells you that the error came from a different server, PULSARL, which means you must be selecting across a database link.
    Btw, what does this mean:
             AND a.usagedate >=
                   TO_CHAR (TO_DATE ( '2011-05-22 11:40:47', 'yyyy-MM-dd HH:mm:ss'))Why are you converting a string into DATE and then back into string? - What data type is usagedate?
    Regards
    Peter

  • What is ora.oc4j service,why does my ora.oc4j service was OFFLINE

    Hi,
    Install oracle11g R2 RAC to window2008 64bit
    The present situation,all of services was online,but target and status of ora.oc4j was OFFLINE
    What is ora.oc4j service and how can I resolve this issue.
    thank you.

    Hi all,
    We have 11.2.0.2 set up running on AIX servers and we dont have exadata installed still its showing ORA.OC4J ONLINE ?
    Can anyone please explain. Below is the output :
    fcsprt@HBFCPRDDB1:/home/fcsprt/scripts$
    fcsprt@HBFCPRDDB1:/home/fcsprt/scripts$ uname -a
    AIX HBFCPRDDB1 1 6 00F62D884C00
    fcsprt@HBFCPRDDB1:/home/fcsprt/scripts$
    fcsprt@HBFCPRDDB1:/home/fcsprt/scripts$ crsctl stat res -t
    NAME TARGET STATE SERVER STATE_DETAILS
    Local Resources
    ora.ARCHDG.dg
    ONLINE ONLINE hbfcprddb1
    ONLINE ONLINE hbfcprddb2
    ora.DATADG.dg
    ONLINE ONLINE hbfcprddb1
    ONLINE ONLINE hbfcprddb2
    ora.FLASHDG.dg
    ONLINE ONLINE hbfcprddb1
    ONLINE ONLINE hbfcprddb2
    ora.LISTENER.lsnr
    ONLINE ONLINE hbfcprddb1
    ONLINE ONLINE hbfcprddb2
    ora.OCRDG.dg
    ONLINE ONLINE hbfcprddb1
    ONLINE ONLINE hbfcprddb2
    ora.asm
    ONLINE ONLINE hbfcprddb1
    ONLINE ONLINE hbfcprddb2 Started
    ora.gsd
    OFFLINE OFFLINE hbfcprddb1
    OFFLINE OFFLINE hbfcprddb2
    ora.net1.network
    ONLINE ONLINE hbfcprddb1
    ONLINE ONLINE hbfcprddb2
    ora.ons
    ONLINE ONLINE hbfcprddb1
    ONLINE ONLINE hbfcprddb2
    Cluster Resources
    ora.LISTENER_SCAN1.lsnr
    1 ONLINE ONLINE hbfcprddb1
    ora.LISTENER_SCAN2.lsnr
    1 ONLINE ONLINE hbfcprddb2
    ora.LISTENER_SCAN3.lsnr
    1 ONLINE ONLINE hbfcprddb2
    ora.cvu
    1 ONLINE ONLINE hbfcprddb2
    ora.fcprdfcr.db
    1 ONLINE ONLINE hbfcprddb1 Open
    2 ONLINE ONLINE hbfcprddb2 Open
    ora.fcprdfcr.fcprodnode1.svc
    1 ONLINE ONLINE hbfcprddb1
    ora.fcprdfcr.fcprodnode2.svc
    1 ONLINE ONLINE hbfcprddb2
    ora.hbfcprddb1.vip
    1 ONLINE ONLINE hbfcprddb1
    ora.hbfcprddb2.vip
    1 ONLINE ONLINE hbfcprddb2
    ora.oc4j
    1 ONLINE ONLINE hbfcprddb2
    ora.scan1.vip
    1 ONLINE ONLINE hbfcprddb1
    ora.scan2.vip
    1 ONLINE ONLINE hbfcprddb2
    ora.scan3.vip
    1 ONLINE ONLINE hbfcprddb2
    fcsprt@HBFCPRDDB1:/home/fcsprt/scripts$

  • How to avoid: ORA-01403 no data found AND ORA-00001

    Hi,
    below my code:
    CREATE TABLE TAB_TO_EM
      EM_NUMBER           VARCHAR2(32),
      NAME_FIRST       VARCHAR2(32),
      NAME_LAST        VARCHAR2(32),
      MAILBOX            VARCHAR2(32)
    ALTER TABLE TAB_TO_EM
    ADD (CONSTRAINT PK_EM_NUMBER PRIMARY KEY (EM_NUMBER));
    CREATE TABLE EM
      EM_ID            VARCHAR2(32),
      EM_NUMBER           VARCHAR2(32),
      NAME_FIRST       VARCHAR2(32),
      NAME_LAST        VARCHAR2(32),
      EMAIL            VARCHAR2(32)
    ALTER TABLE EM
    ADD (CONSTRAINT PK_EM_ID PRIMARY KEY (EM_ID));THE PRIMARY KEY EM_ID COMES FROM THE TAB_TO_EM TABLE LINKED IN THIS WAY:
    NAME_LAST||'_'||SUBSTR(NAME_FIRST,1,3)||'_'||SUBSTR(EM_NUMBER,-2)
    I created this procedure to insert a new EM_NUMBER into EM table:
    CREATE OR REPLACE PROCEDURE INS_NEW_RECORD IS
    ERR_NUM                          NUMBER;
    ERR_MSG                          VARCHAR2(300);
    V_COUNT                          NUMBER;
    V_EM_ID                          VARCHAR2(64);
          CURSOR A IS
          SELECT A.EM_NUMBER, A.NAME_FIRST, A.NAME_LAST, A.MAILBOX
          FROM TAB_TO_EM A;
    BEGIN
          FOR CUR_A IN A
      LOOP
                 SELECT COUNT(*)
                 INTO V_COUNT
                 FROM EM2 B
                 WHERE B.EM_NUMBER=CUR_A.EM_NUMBER;
                 IF V_COUNT = 0 THEN
                 -- here insert a new record
                              INSERT INTO EM2 (EM_ID, EM_NUMBER, NAME_FIRST,NAME_LAST, EMAIL)
                              VALUES (CUR_A.NAME_LAST||'_'||SUBSTR(CUR_A.NAME_FIRST,1,3)||SUBSTR(CUR_A.EM_NUMBER,-2),
                              CUR_A.EM_NUMBER, CUR_A.NAME_FIRST,CUR_A.NAME_LAST, CUR_A.MAILBOX);
                 END IF;
      END LOOP;
    END INS_NEW_RECORD;Example of my table:
    Insert into TAB_TO_EM
       (EM_NUMBER, NAME_FIRST, NAME_LAST, MAILBOX)
    Values
       ('22333', 'AAAA', 'BBBB', 'XXXX');
    Insert into TAB_TO_EM
       (EM_NUMBER, NAME_FIRST, NAME_LAST, MAILBOX)
    Values
       ('11222', 'AAAA', 'BBBB', 'XXXX');
    Insert into TAB_TO_EM
       (EM_NUMBER, NAME_FIRST, NAME_LAST, MAILBOX)
    Values
       ('00122', 'AAAA', 'BBBB', 'XXXX');
    commit;
    execute INS_NEW_RECORD;
    ORA-00001: ORA-00001: unique constraint violated (PK_EM_ID)
    ORA-06512: a "INS_NEW_RECORD", line 25
    ORA-06512: a line 2I tried to modify my procedure:
    CREATE SEQUENCE AFM.SEQ_EM_ID
      START WITH 1
      MAXVALUE 999999999999999999999999999
      MINVALUE 1
      NOCYCLE
      NOCACHE
      ORDER;
    IF V_COUNT = 0 THEN
           --verify duplicate pkey
                 SELECT (NAME_LAST||'_'||SUBSTR(NAME_FIRST,1,3)||SUBSTR(EM_NUMBER,-2))
                 INTO V_EM_ID
                 FROM EM B
                 WHERE (NAME_LAST||'_'||SUBSTR(NAME_FIRST,1,3)||SUBSTR(EM_NUMBER,-2)) = (CUR_A.NAME_LAST||'_'||SUBSTR(CUR_A.NAME_FIRST,1,3)||SUBSTR(CUR_A.EM_NUMBER,-2))
                 AND ROWNUM=1;
                 IF V_EM_ID = (CUR_A.NAME_LAST||'_'||SUBSTR(CUR_A.NAME_FIRST,1,3)||SUBSTR(CUR_A.EM_NUMBER,-2)) THEN
                          INSERT INTO EM2 (EM_ID, EM_NUMBER, NAME_FIRST,NAME_LAST, EMAIL)
                          VALUES (CUR_A.NAME_LAST||'_'||SUBSTR(CUR_A.NAME_FIRST,1,3)||SUBSTR(CUR_A.EM_NUMBER,-2)||'_'||SUBSTR ('000' || SEQ_EM_ID.NEXTVAL, -3),
                          CUR_A.EM_NUMBER, CUR_A.NAME_FIRST,CUR_A.NAME_LAST, CUR_A.MAILBOX);
                 ELSE
                              INSERT INTO EM2 (EM_ID, EM_NUMBER, NAME_FIRST,NAME_LAST, EMAIL)
                              VALUES (CUR_A.NAME_LAST||'_'||SUBSTR(CUR_A.NAME_FIRST,1,3)||SUBSTR(CUR_A.EM_NUMBER,-2),
                              CUR_A.EM_NUMBER, CUR_A.NAME_FIRST,CUR_A.NAME_LAST, CUR_A.MAILBOX);
                 END IF;
          END IF;
    execute INS_NEW_RECORD;
    ORA-01403 no data foundI'd like to create a stored procedure with these conditions:
    IF em_id is duplicate insert new em_id= (CUR_A.NAME_LAST||'_'||SUBSTR(CUR_A.NAME_FIRST,1,3)||SUBSTR(CUR_A.EM_NUMBER,-2)||'_'||SUBSTR ('000' || SEQ_EM_ID.NEXTVAL, -3)
    ELSE em_id= (CUR_A.NAME_LAST||'_'||SUBSTR(CUR_A.NAME_FIRST,1,3)||SUBSTR(CUR_A.EM_NUMBER,-2)
    How can I write my procedure correctly?
    Thanks in advance!

    1) What are you expecting this piece of code to do?
                 SELECT COUNT(*)
                 INTO V_COUNT
                 FROM EM B
                 WHERE B.EM_NUMBER=CUR_A.EM_NUMBER;My answer would be that i expect it to do nothing (unless i've misunderstood what you're doing up until now). You are making a new type of key in the EM table by frankensteining data elements from your tab_to_em table, so i would expect that code to always return 0. By the way, that's what we have a dup_val_on_index catch for, no need to read the table, you try your insert, if you dup a value, you take appropriate action.
    I guess the best way to proceed based on what you've provided would be 2 SQL statements.
    1) insert records where you cannot find a match in the target table
    2) insert records where you CAN find a match in the target table
    INSERT INTO EM (EM_ID, EM_NUMBER, NAME_FIRST,NAME_LAST, EMAIL)
    select
      A.NAME_LAST||'_'||SUBSTR(A.NAME_FIRST,1,3)||SUBSTR(A.EM_NUMBER,-2),
      A.EM_NUMBER,
      A.NAME_FIRST,
      A.NAME_LAST,
      A.MAILBOX
    from tab_to_em a
    where not exists
      select null
      from em b
      where b.NAME_LAST||'_'||SUBSTR(b.NAME_FIRST,1,3)||SUBSTR(b.EM_NUMBER,-2) = a.em_number
    INSERT INTO EM (EM_ID, EM_NUMBER, NAME_FIRST,NAME_LAST, EMAIL)
    select
      A..NAME_LAST||'_'||SUBSTR(A..NAME_FIRST,1,3)||SUBSTR(A..EM_NUMBER,-2)'_'||SUBSTR ('000' || SEQ_EM_ID.NEXTVAL, -3),
      A.EM_NUMBER,
      A.NAME_FIRST,
      A.NAME_LAST,
      A.MAILBOX
    from tab_to_em a
    where exists
      select null
      from em b
      where b.NAME_LAST||'_'||SUBSTR(b.NAME_FIRST,1,3)||SUBSTR(b.EM_NUMBER,-2) = a.em_number
    );This comes with the caveat that what you are doing is a REALLY bad idea. Really really really bad idea.
    The baddies are
    1) your choice for a 'primary key'
    2) using a sequence and then substring it
    3) this is from a business perspective, storing the same person multiple times!
    Now, i don't know your system or requirements, but i am speaking in general terms here, this seems like a all around bad idea and i would suggest you revisit the design.

Maybe you are looking for

  • Java Help For Apple Widget Program

    I'm working on a Apple Widget and I have a question for the JS part of it. I want multiple elements to fade out when the widget loads up, I can get one element to fade out, but how do I get multiple elements to fade out on the same onLoad event. Here

  • OT: Apple Wireless Advice

    Holy cow, I didn't realize Internet connections had become so complex! I had a simple dial-up connection until fairly recently, when I finally equipped my Dell computer with a DSL connection through QWest. Though it works fine, I swore the day I set

  • 3GS Bricks Itself After 4.2 Update

    Have a 3GS, previously running iOS 4.1. Upgraded to 4.2 today. Upgrade appeared to work fine. Was playing with the phone and its potential new features (what there are of them) and it just shut itself off. And it won't turn back on. Anyone else havin

  • Incorrect decimal places in function "TEXT_CONVERT_XLS_TO_SAP"

    When I upload a excel file into inner table used function "TEXT_CONVERT_XLS_TO_SAP". The type of inner table field is "P"(decimals 2),and the value of corresponding field in excel is "0.77",but it become "77.00" in inner table after upload. Then I de

  • Can't publish to iTunes

    There are no arrows beside my playlists on iTunes (6.0.4) so I can't publish or share them. My preferences DO specify "Show links to Music Store" but I still don't see arrows next to my playlists. I have unchecked the "Show links" box, restarted, and