ORA-01504: database name 'DEV1' does not match parameter db_name 'PROD1'

Hi, All -
This is my first time cloning a database. The recovery finished but gave me the following error message. All the parameters in the pfile are set to "DEV1". I believe that the parameter db_name 'PROD1' exists in the control file and causing this error. The control file is under ASM.
How can I change the parameter in the control file and bring the 'DEV1' cloned database up? Also, how can I avoid this issue next time I do a clone?
Thanks in advance!
Oracle 10g Release 2 on RHEL5
Database cloning using RMAN Duplicate > ORA-01504: database name 'DEV1' does not match parameter db_name 'PROD1'
ASMCMD> ls
control01.ctl
current.275.729098001
archive log filename=/u001/dbsvr/dev1/1_131706_653848580.dbf recid=59 stamp=741953991
media recovery complete, elapsed time: 00:09:31
*Finished recover at 01-FEB-11*
contents of Memory Script:
   shutdown clone;
   startup clone nomount ;
executing Memory Script
database dismounted
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area     725614592 bytes
Fixed Size                     2075592 bytes
Variable Size                448791608 bytes
Database Buffers             268435456 bytes
Redo Buffers                   6311936 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "DEV1" RESETLOGS ARCHIVELOG
  MAXLOGFILES     50
  MAXLOGMEMBERS      5
  MAXDATAFILES      100
  MAXINSTANCES     1
  MAXLOGHISTORY     5445
LOGFILE
  GROUP  1 '+DATA3/dev1/datafile/redo01.log' SIZE 100 M ,
  GROUP  2 '+DATA3/dev1/datafile/redo02.log' SIZE 100 M ,
  GROUP  3 '+DATA3/dev1/datafile/redo03.log' SIZE 100 M
DATAFILE
  '+DATA3/dev1/datafile/system01.dbf'
CHARACTER SET WE8ISO8859P1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 02/01/2011 10:30:17
RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE failed
ORA-01504: database name 'DEV1' does not match parameter db_name 'PROD1'
RMAN>
RMAN> **end-of-file**
RMAN>

Respected, Sybrand Bakker -
Thanks for constructive feedback!
Here are the command that I ran.
RMAN> connect target sys/<password>@PROD1
connected to target database: PROD1 (DBID=556212836)
RMAN> connect auxiliary sys/<password>
connected to auxiliary database: DEV1 (not mounted)
RMAN> @rman_dup.sql
rman_dup.sql contains
run {
    allocate auxiliary channel d1 type disk;
set newname for datafile 1 to '+DATA3/dev/datafile/system01.dbf';
set newname for datafile 2 to '+DATA3/dev/datafile/undotbs01.dbf';
set newname for datafile 3 to '+DATA3/dev/datafile/cwmlite01.dbf';
set newname for datafile 4 to '+DATA3/dev/datafile/drsys01.dbf';
set newname for datafile 5 to '+DATA3/dev/datafile/example01.dbf';
set newname for datafile 6 to '+DATA3/dev/datafile/indx01.dbf';
set newname for datafile 7 to '+DATA3/dev/datafile/odm01.dbf';
set newname for datafile 8 to '+DATA3/dev/datafile/tools01.dbf';
set newname for datafile 9 to '+DATA3/dev/datafile/users01.dbf';
set newname for datafile 10 to '+DATA3/dev/datafile/xdb01.dbf';
set newname for datafile 11 to '+DATA3/dev/datafile/cons01.dbf';
set newname for datafile 12 to '+DATA3/dev/datafile/survey01.dbf';
set newname for datafile 13 to '+DATA3/dev/datafile/mem201.dbf';
set newname for datafile 14 to '+DATA3/dev/datafile/cons02.dbf';
set newname for datafile 15 to '+DATA3/dev/datafile/mem202.dbf';
set newname for datafile 16 to '+DATA3/dev/datafile/cater01.dbf';
set newname for datafile 17 to '+DATA3/dev/datafile/users02.dbf';
set newname for datafile 18 to '+DATA3/dev/datafile/mar_data01.dbf';
set newname for datafile 19 to '+DATA3/dev/datafile/sysaux01.dbf';
set newname for datafile 20 to '+DATA3/dev/datafile/streams_tbs_01.dbf';
set newname for datafile 21 to '+DATA3/dev/datafile/users03.dbf';
set newname for tempfile 1 to '+DATA3/dev1/tempfile/temp01.dbf';
  duplicate target database to dev1
  until scn 48712532746
  logfile
   '+DATA3/dev1/datafile/redo01.log' size 100M,
   '+DATA3/dev1/datafile/redo02.log' size 100M,
   '+DATA3/dev1/datafile/redo03.log' size 100M;
}Edited by: CipherDBA on Feb 3, 2011 10:50 AM

Similar Messages

  • 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

  • The SYSVAL table entry for the database version (16) does not match the required version

    We upgraded from Tidal Enterprise Scheduler (TES) 5.31 to 6.1 on fresh Windows x64 2008 R2 servers.  I did a fresh install but our DBA restored a copy of our database from pre-prod which was at 5.31.  I get the error below.  Note, SQL went from 2005 to 2012 during this upgrade.  Do I need to change a value in this table to reflect the SQL change?
    [04/29 12:47:14:198]:TIDAL Enterprise Scheduler: version 6.1.0.133
    [04/29 12:47:14:198]:Java version: 1.8.0
    [04/29 12:47:14:198]:Java Virtual Machine version: 25.0-b70
    [04/29 12:47:14:198]:Start Time : 04/29/14 12:47:14:198
    [04/29 12:47:14:198]:----------------------------------------------------------------------------
    [04/29 12:47:14:198]:Database URL :jdbc:sqlserver://SQL2012-Host:1433;responseBuffering=adaptive
    [04/29 12:47:14:198]:Database Driver :com.microsoft.sqlserver.jdbc.SQLServerDriver
    [04/29 12:47:14:198]:Maximum number of log files = 100
    [04/29 12:47:14:198]:Added a LogFile called 'RegularFile'
    [04/29 12:47:14:198]:LogManager: setting default log
    [04/29 12:47:14:214]:Retrieved a LogFile called 'RegularFile'
    [04/29 12:47:14:495]:MessageBroker: Instantiated TcpTransportServer (URI = tcp://0.0.0.0:6215)
    [04/29 12:47:16:975]:Retrieved a LogFile called 'RegularFile'
    [04/29 12:47:17:272]:The SYSVAL table entry for the database version (16) does not match the required version (23). Shutting down.
    [04/29 12:47:20:282]:
    [04/29 12:47:20:282]:
    [04/29 12:47:20:282]:Shutting down the application

    I had this error last night while applying a patch to 6.0. However in my case the version was 21 versus a required version of 23.
    As far as i know 6.1 is not compatible with the 5 db schema, so you will need an update / migration plan for the db also.

  • The located assembly's manifest definition with name 'openfoundation' does not match the assembly re

    Ok. been working on this for the better part of a day. I am having trouble with the .net web controls. trying to create a simple portlet that populates a text box with values from a 2nd text box when a button is selected. both text boxes are in the same portlet.
    without using the <httpModules> entry in the web.config file the portlet works fine, but it does pop you out of the portal.
    setup: working in a Dev. environment with portal and portlets on the same box.Portal version is 5.0.2.EDK version is 5.0.2.
    error:
    The located assembly's manifest definition with name 'openfoundation' does not match the assembly reference.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileLoadException: The located assembly's manifest definition with name 'openfoundation' does not match the assembly reference.Source Error:An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.Assembly Load Trace:The following information can be helpful to determine why the assembly 'openfoundation' could not be loaded.=== Pre-bind state information ===
    LOG: DisplayName = openfoundation, Version=2.0.9.3152, Culture=neutral, PublicKeyToken=d0e882dd51ca12c5
    (Fully-specified)
    LOG: Appbase = file:///c:/inetpub/wwwroot/netTest
    LOG: Initial PrivatePath = bin
    Calling assembly : dotnetportlet, Version=3.5.0.1, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: Publisher policy file is not found.
    LOG: No redirect found in host configuration file (C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
    LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
    LOG: Post-policy reference: openfoundation, Version=2.0.9.3152, Culture=neutral, PublicKeyToken=d0e882dd51ca12c5
    LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/nettest/9e6689f5/a0d2f067/openfoundation.DLL.
    LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/nettest/9e6689f5/a0d2f067/openfoundation/openfoundation.DLL.
    LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/netTest/bin/openfoundation.DLL.
    WRN: Comparing the assembly name resulted in the mismatch: Minor Version
    Stack Trace:[FileLoadException: The located assembly's manifest definition with name 'openfoundation' does not match the assembly reference.]
       Plumtree.Remote.Portlet.PortletContextFactory.CreatePortletContext(HttpRequest req, HttpResponse resp) +0
       Com.Plumtree.Remote.Transformer.Condition.GatewayedStandardCondition.UseFilter(HttpContext ctx)
       Com.Plumtree.Remote.Transformer.FilterManager.UpdateFilter(HttpContext ctx)
       Com.Plumtree.Remote.Transformer.PTTransformer.BeginRequestHandler(Object sender, EventArgs e)
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.947
    ************************************************************Is there any step by step instructions for setting up and using the .net web controls in Plumtree????
    There doesn't seem to be any information in one spot as to setting up the environment to use the .Net Web Controls. I have had to piece together information from multipule threads to get this far. I.E. there was nothing in any documentation that I have read that required the installation of the VJ# lib's. (that error took me the first half of the day to resolve :-) )
    Thanks for any help,
    Greg************************************************************

    Also, when reviewing the Plumtree_.NET_Web_Controls_InstallLog.log there were 5 nonfatal erros. These error's were:
    Install File: E:\plumtree\ptwc\2.0\bin\assemblies\edk.dll Status: ERROR Additional Notes: ERROR - java.io.FileNotFoundException: E:\plumtree\ptwc\2.0\bin\assemblies\edk.dll (The process cannot access the file because it is being used by another process)
    Install File: E:\plumtree\ptwc\2.0\bin\assemblies\jsregistry.dll Status: ERROR Additional Notes: ERROR - java.io.FileNotFoundException: E:\plumtree\ptwc\2.0\bin\assemblies\jsregistry.dll (The process cannot access the file because it is being used by another process)
    Install File: E:\plumtree\ptwc\2.0\bin\assemblies\log4net.dll Status: ERROR Additional Notes: ERROR - java.io.FileNotFoundException: E:\plumtree\ptwc\2.0\bin\assemblies\log4net.dll (The process cannot access the file because it is being used by another process)
    Install File: E:\plumtree\ptwc\2.0\bin\assemblies\openfoundation.dll Status: ERROR Additional Notes: ERROR - java.io.FileNotFoundException: E:\plumtree\ptwc\2.0\bin\assemblies\openfoundation.dll (The process cannot access the file because it is being used by another process)
    Install File: E:\plumtree\ptwc\2.0\bin\assemblies\Plumtree.WCFilter.dll Status: ERROR Additional Notes: ERROR - java.io.FileNotFoundException: E:\plumtree\ptwc\2.0\bin\assemblies\Plumtree.WCFilter.dll (The process cannot access the file because it is being used by another process)
    When installing the Web Control's do you need to stop any services? I didn't see anything in the install notes about doing this?

  • Pretzel: The located assembly's manifest definition with name 'openfoundation' does not match the

    We have got 5.0.2 Plumtree portal, EDK 5.0.2 and .Net Web Controls 2.1.
    I am trying to call:
    IPortletContext oPortletContext = PortletContextFactory.CreatePortletContext(System.Web.HttpContext.Current.Request, System.Web.HttpContext.Current.Response);
    I have attached the error I am getting. Is this related to Open Foundation version? This is quite urgent because we are in the process of trying to get a demo together for grabbing Activity Rights.
    Server Error in '/portlets/DOJ/JNET/pretzel.clients.doj.reentry' Application.
    The located assembly's manifest definition with name 'openfoundation' does not match the assembly reference.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileLoadException: The located assembly's manifest definition with name 'openfoundation' does not match the assembly reference.Source Error:An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.Assembly Load Trace:The following information can be helpful to determine why the assembly 'openfoundation' could not be loaded.=== Pre-bind state information ===
    LOG: DisplayName = openfoundation, Version=2.0.9.8318, Culture=neutral, PublicKeyToken=d0e882dd51ca12c5
    (Fully-specified)
    LOG: Appbase = file:///E:/Data/HSTPRDAPP01/Inetpub/plumtree/portlets/DOJ/JNET/pretzel.clients.doj.reentry
    LOG: Initial PrivatePath = bin
    Calling assembly : dotnetportlet, Version=3.5.0.1, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: Publisher policy file is not found.
    LOG: No redirect found in host configuration file (C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
    LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
    LOG: Post-policy reference: openfoundation, Version=2.0.9.8318, Culture=neutral, PublicKeyToken=d0e882dd51ca12c5
    LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/portlets_doj_jnet_pretzel.clients.doj.reentry/26128f6f/cfc1837a/openfoundation.DLL.
    LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/portlets_doj_jnet_pretzel.clients.doj.reentry/26128f6f/cfc1837a/openfoundation/openfoundation.DLL.
    LOG: Attempting download of new URL file:///E:/Data/HSTPRDAPP01/Inetpub/plumtree/portlets/DOJ/JNET/pretzel.clients.doj.reentry/bin/openfoundation.DLL.
    WRN: Comparing the assembly name resulted in the mismatch: Minor Version
    Stack Trace:[FileLoadException: The located assembly's manifest definition with name 'openfoundation' does not match the assembly reference.]
       Plumtree.Remote.Portlet.PortletContextFactory.CreatePortletContext(HttpRequest req, HttpResponse resp) +0
       pretzel.clients.doj.reentry.navigation.Page_Load(Object sender, EventArgs e) in \\devnet2\inetpub\doj\reentry\development\pretzel.clients.doj.reentry\navigation.aspx.cs:22
       System.Web.UI.Control.OnLoad(EventArgs e) +67
       System.Web.UI.Control.LoadRecursive() +35
       System.Web.UI.Page.ProcessRequestMain() +750
    Version Information: Microsoft .NET Framework Version:1.1.4322.1031; ASP.NET Version:1.1.4322.947

    I have seen this before after a upgrade of the EDK, found I had to remove the reference in the C# project to the old EDK dll and re add it to the new EDK dll.
    Also noticed that you are using the System.Web.HttpContext.Current fully qualified namespace in the CreatePortletContext() call instead of the usual way of PortletContextFactory.CreatePortletContext(Request, Response) this uses the System.Web.HttpRequest.Page namespace by default.

  • Server name SSL does not match subject of certificate Server-Cert

    Sun Java System Web Server 7.0U1 B06/12/2007 22:13
    We see the following warning in the startup log everytime. We have been ignoring this for awhile now since SSL is working fine and browsers don't complain. But recently we found some mobile browsers are not happy with our SSL pages. So we are thinking this may be the casue.
    warning ( 3256): CORE1251: On HTTP listener http-listener-2, server name SSL does not match subject "www.ourdomain.com" of certificate Server-Cert.
    What does this warning really mean? Do we need to rename the server name "SSL" to match the domain name?
    Thanks

    AFAIK That warning is a result of the fact that the hostname doesn't match the certificate.
    The cert has a Common Name (CN) attribute of the certificate's Subject Name or Subject Alternative Name (SAN) of type DNS name
    should match with the server's DNS name.
    hostname == machines name
    I don't know if we need to change the instances server name as well.
    I will try on my machine and and will let you know.
    Are you sure this warning is the source of your problem? Look at what Joe has written :
    "If most of your users are not getting browsers complaining of a mis-match then this is likely not the source of your mobile device problem."
    Which mobile model and browsers are you getting complains from? We can try testing it here.

  • My eprinter is telling me that my network name (ssid) does not match my access point network name.

    I am using an HP photosmart D110a  ePrinter  with an ipad2 and I have inadvertently altered the network name (ssid) to the point that the wireles network test report says "that the (ssid) does not match my addess point network name (ssid) exactly." What do I do to put things right again?

    Input the correct SSID into the printer and connect.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Free space of mdf and ldf does not match with database free space

    In SSMS i saw file size related properties and found below details for one database.Here values does not match with other properties. Here size of the mdf, ldf and total size matches with other values under each window. But Available free space of mdf and ldf
    if added then it does not equal to Available free space shown in shrink database window and free space shown in database properties. This is true for any database. Why is it so? Please can anyone explain the logic behind this?
    Under database properties:
    Size: 91.31 MB
    Space available:13.40 MB
    Under database file properites:
    mdf size:17 MB
    ldf size:75 MB
    under shrink database:
    currently allocated size:91.31 MB
    Available free space:13.40 MB
    under shrink file-for data file:
    currently allocated size:16.38 MB
    Available free space:12.63 MB
    under shrink file-for log file:
    currently allocated size:74.94 MB
    Available free space:55.62 MB

    Hi,
    Database properties and database shrink show the total (log+data) values. Others show the individual sizes, log and data separately. 
    I hope it helps.
    Janos
    There are 10 type of people. Those who understand binary and those who do not.
    My Blog |
    Hire Me
    This does not answer my question. If you add allocated space of mdf and ldf it equals to database allocated size.But i am asking why this ldf and mdf free space together(when added 55.62+12.63 ) does not equal to database free space?

  • Got JBO-25080: Definition name does not match the file it is loaded from

    We are using jdev 11.1.1.5.0
    We got the following error when running ADF application on Windows 2008 platform
    [2011-08-26T23:57:53.728-05:00] [AdminServer] [WARNING] [] [oracle.adf.controller.faces.lifecycle.Utils] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 87d74ec2641f19b2:21e0e8f6:131ffbcf000:-8000-0000000000000afc,0] [APP: grc863] ADF: Adding the following JSF error message: Definition name: Survey does not match the file in which it is loaded from: oracle.apps.grc.domain.survey.survey[[
    oracle.jbo.NoDefException: JBO-25080: Definition name: Survey does not match the file in which it is loaded from: oracle.apps.grc.domain.survey.survey
         at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:1127)
         at oracle.jbo.mom.DefinitionManager.loadParent(DefinitionManager.java:1353)
         at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:1061)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:562)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:484)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:466)
         at oracle.adf.model.generic.AccessorDefImpl.getStructureDefImpl(AccessorDefImpl.java:217)
    However, we are able to run application fine on linux platform.
    We are aware of the bug https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=8746171
    We changed the UI classes to avoid that issue but we did not change our backend classes.
    Thanks

    Looks like you are an Oracle employee as the link you provided can't be reached from the outside.
    If this is correct, you should use some kind of internal communication to address your problem, as we the normal users don't have access to the internal stuff.
    Timo

  • ORA-01161: database name DEV in file header does not match given name UAT

    This is my cloning process.... I get the following errors.. I also double check with my process and still couldn't find anything.
    SQL> @backup_control.sql
    ORACLE instance started.
    Total System Global Area  479298392 bytes
    Fixed Size                   742232 bytes
    Variable Size             385875968 bytes
    Database Buffers           81920000 bytes
    Redo Buffers               10760192 bytes
    CREATE CONTROLFILE REUSE DATABASE "UAT" NORESETLOGS  ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01161: database name OBS in file header does not match given name of UAT
    ORA-01110: data file 1: '/u01/oracle/uatdata/system01.dbf'
    Any ideas of this error?
    Best Regards,
    Amy

    Please see followings:
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "OBS" RESETLOGS ARCHIVELOG
    -- SET STANDBY TO MAXIMIZE PERFORMANCE
    MAXLOGFILES 16
    MAXLOGMEMBERS 2
    MAXDATAFILES 500
    MAXINSTANCES 1
    MAXLOGHISTORY 2042
    LOGFILE
    GROUP 1 '/u01/oracle/obsdata/log01a.dbf' SIZE 10M,
    GROUP 2 '/u01/oracle/obsdata/log02a.dbf' SIZE 10M,
    GROUP 3 '/u01/oracle/obsdata/log03a.dbf' SIZE 10M,
    GROUP 4 '/u01/oracle/obsdata/log04a.dbf' SIZE 10M
    -- STANDBY LOGFILE
    DATAFILE
    '/u01/oracle/obsdata/system01.dbf',
    '/u01/oracle/obsdata/system02.dbf',
    '/u01/oracle/obsdata/system03.dbf',
    '/u01/oracle/obsdata/system04.dbf',
    '/u01/oracle/obsdata/system05.dbf',
    '/u01/oracle/obsdata/rbs01.dbf',
    '/u01/oracle/obsdata/ctxd01.dbf',
    '/u01/oracle/obsdata/owad01.dbf',
    '/u01/oracle/obsdata/abmd01.dbf',
    '/u01/oracle/obsdata/abmx01.dbf',
    '/u01/oracle/obsdata/akd01.dbf',
    '/u01/oracle/obsdata/akx01.dbf',
    '/u01/oracle/obsdata/alrd01.dbf',
    '/u01/oracle/obsdata/alrx01.dbf',
    '/u01/oracle/obsdata/amsd01.dbf',
    '/u01/oracle/obsdata/amsx01.dbf',
    '/u01/oracle/obsdata/amvd01.dbf',
    '/u01/oracle/obsdata/amvx01.dbf',
    '/u01/oracle/obsdata/apd01.dbf',
    '/u01/oracle/obsdata/apx01.dbf',
    '/u01/oracle/obsdata/applsysd01.dbf',
    '/u01/oracle/obsdata/applsysx01.dbf',
    '/u01/oracle/obsdata/ard01.dbf',
    '/u01/oracle/obsdata/arx01.dbf',
    '/u01/oracle/obsdata/asfd01.dbf',
    '/u01/oracle/obsdata/asfx01.dbf',
    '/u01/oracle/obsdata/asgd01.dbf',
    '/u01/oracle/obsdata/asgx01.dbf',
    '/u01/oracle/obsdata/asod01.dbf',
    '/u01/oracle/obsdata/asox01.dbf',
    '/u01/oracle/obsdata/astd01.dbf',
    '/u01/oracle/obsdata/astx01.dbf',
    '/u01/oracle/obsdata/axd01.dbf',
    '/u01/oracle/obsdata/axx01.dbf',
    '/u01/oracle/obsdata/azd01.dbf',
    '/u01/oracle/obsdata/azx01.dbf',
    '/u01/oracle/obsdata/bend01.dbf',
    '/u01/oracle/obsdata/benx01.dbf',
    '/u01/oracle/obsdata/bicd01.dbf',
    '/u01/oracle/obsdata/bicx01.dbf',
    '/u01/oracle/obsdata/bild01.dbf',
    '/u01/oracle/obsdata/bilx01.dbf',
    '/u01/oracle/obsdata/bimd01.dbf',
    '/u01/oracle/obsdata/bimx01.dbf',
    '/u01/oracle/obsdata/bisd01.dbf',
    '/u01/oracle/obsdata/bisx01.dbf',
    '/u01/oracle/obsdata/bixd01.dbf',
    '/u01/oracle/obsdata/bixx01.dbf',
    '/u01/oracle/obsdata/bomd01.dbf',
    '/u01/oracle/obsdata/bomx01.dbf',
    '/u01/oracle/obsdata/bscd01.dbf',
    '/u01/oracle/obsdata/bscx01.dbf',
    '/u01/oracle/obsdata/cctd01.dbf',
    '/u01/oracle/obsdata/cctx01.dbf',
    '/u01/oracle/obsdata/ced01.dbf',
    '/u01/oracle/obsdata/cex01.dbf',
    '/u01/oracle/obsdata/cnd01.dbf',
    '/u01/oracle/obsdata/cnx01.dbf',
    '/u01/oracle/obsdata/crpd01.dbf',
    '/u01/oracle/obsdata/crpx01.dbf',
    '/u01/oracle/obsdata/csd01.dbf',
    '/u01/oracle/obsdata/csx01.dbf',
    '/u01/oracle/obsdata/cscd01.dbf',
    '/u01/oracle/obsdata/cscx01.dbf',
    '/u01/oracle/obsdata/csdd01.dbf',
    '/u01/oracle/obsdata/csdx01.dbf',
    '/u01/oracle/obsdata/csfd01.dbf',
    '/u01/oracle/obsdata/csfx01.dbf',
    '/u01/oracle/obsdata/cspd01.dbf',
    '/u01/oracle/obsdata/cspx01.dbf',
    '/u01/oracle/obsdata/csrd01.dbf',
    '/u01/oracle/obsdata/csrx01.dbf',
    '/u01/oracle/obsdata/cssd01.dbf',
    '/u01/oracle/obsdata/cssx01.dbf',
    '/u01/oracle/obsdata/cuad01.dbf',
    '/u01/oracle/obsdata/cuax01.dbf',
    '/u01/oracle/obsdata/cufd01.dbf',
    '/u01/oracle/obsdata/cufx01.dbf',
    '/u01/oracle/obsdata/cuid01.dbf',
    '/u01/oracle/obsdata/cuix01.dbf',
    '/u01/oracle/obsdata/cund01.dbf',
    '/u01/oracle/obsdata/cunx01.dbf',
    '/u01/oracle/obsdata/cupd01.dbf',
    '/u01/oracle/obsdata/cupx01.dbf',
    '/u01/oracle/obsdata/cusd01.dbf',
    '/u01/oracle/obsdata/cusx01.dbf',
    '/u01/oracle/obsdata/czd01.dbf',
    '/u01/oracle/obsdata/czx01.dbf',
    '/u01/oracle/obsdata/eaad01.dbf',
    '/u01/oracle/obsdata/eaax01.dbf',
    '/u01/oracle/obsdata/ecd01.dbf',
    '/u01/oracle/obsdata/ecx01.dbf',
    '/u01/oracle/obsdata/ecxd01.dbf',
    '/u01/oracle/obsdata/ecxx01.dbf',
    '/u01/oracle/obsdata/engd01.dbf',
    '/u01/oracle/obsdata/engx01.dbf',
    '/u01/oracle/obsdata/evmd01.dbf',
    '/u01/oracle/obsdata/evmx01.dbf',
    '/u01/oracle/obsdata/fad01.dbf',
    '/u01/oracle/obsdata/fax01.dbf',
    '/u01/oracle/obsdata/femd01.dbf',
    '/u01/oracle/obsdata/femx01.dbf',
    '/u01/oracle/obsdata/fiid01.dbf',
    '/u01/oracle/obsdata/fiix01.dbf',
    '/u01/oracle/obsdata/flmd01.dbf',
    '/u01/oracle/obsdata/flmx01.dbf',
    '/u01/oracle/obsdata/fptd01.dbf',
    '/u01/oracle/obsdata/fptx01.dbf',
    '/u01/oracle/obsdata/frmd01.dbf',
    '/u01/oracle/obsdata/frmx01.dbf',
    '/u01/oracle/obsdata/fvd01.dbf',
    '/u01/oracle/obsdata/fvx01.dbf',
    '/u01/oracle/obsdata/gld01.dbf',
    '/u01/oracle/obsdata/glx01.dbf',
    '/u01/oracle/obsdata/gmad01.dbf',
    '/u01/oracle/obsdata/gmax01.dbf',
    '/u01/oracle/obsdata/gmdd01.dbf',
    '/u01/oracle/obsdata/gmdx01.dbf',
    '/u01/oracle/obsdata/gmed01.dbf',
    '/u01/oracle/obsdata/gmex01.dbf',
    '/u01/oracle/obsdata/gmfd01.dbf',
    '/u01/oracle/obsdata/gmfx01.dbf',
    '/u01/oracle/obsdata/gmid01.dbf',
    '/u01/oracle/obsdata/gmix01.dbf',
    '/u01/oracle/obsdata/gmld01.dbf',
    '/u01/oracle/obsdata/gmlx01.dbf',
    '/u01/oracle/obsdata/gmpd01.dbf',
    '/u01/oracle/obsdata/gmpx01.dbf',
    '/u01/oracle/obsdata/gmsd01.dbf',
    '/u01/oracle/obsdata/gmsx01.dbf',
    '/u01/oracle/obsdata/grd01.dbf',
    '/u01/oracle/obsdata/grx01.dbf',
    '/u01/oracle/obsdata/hrd01.dbf',
    '/u01/oracle/obsdata/hrx01.dbf',
    '/u01/oracle/obsdata/hrid01.dbf',
    '/u01/oracle/obsdata/hrix01.dbf',
    '/u01/oracle/obsdata/hxcd01.dbf',
    '/u01/oracle/obsdata/hxcx01.dbf',
    '/u01/oracle/obsdata/hxtd01.dbf',
    '/u01/oracle/obsdata/hxtx01.dbf',
    '/u01/oracle/obsdata/ibad01.dbf',
    '/u01/oracle/obsdata/ibax01.dbf',
    '/u01/oracle/obsdata/ibed01.dbf',
    '/u01/oracle/obsdata/ibex01.dbf',
    '/u01/oracle/obsdata/ibpd01.dbf',
    '/u01/oracle/obsdata/ibpx01.dbf',
    '/u01/oracle/obsdata/ibud01.dbf',
    '/u01/oracle/obsdata/ibux01.dbf',
    '/u01/oracle/obsdata/ibyd01.dbf',
    '/u01/oracle/obsdata/ibyx01.dbf',
    '/u01/oracle/obsdata/icxd01.dbf',
    '/u01/oracle/obsdata/icxx01.dbf',
    '/u01/oracle/obsdata/iebd01.dbf',
    '/u01/oracle/obsdata/iebx01.dbf',
    '/u01/oracle/obsdata/iemd01.dbf',
    '/u01/oracle/obsdata/iemx01.dbf',
    '/u01/oracle/obsdata/ieod01.dbf',
    '/u01/oracle/obsdata/ieox01.dbf',
    '/u01/oracle/obsdata/iesd01.dbf',
    '/u01/oracle/obsdata/iesx01.dbf',
    '/u01/oracle/obsdata/ieud01.dbf',
    '/u01/oracle/obsdata/ieux01.dbf',
    '/u01/oracle/obsdata/iexd01.dbf',
    '/u01/oracle/obsdata/iexx01.dbf',
    '/u01/oracle/obsdata/igcd01.dbf',
    '/u01/oracle/obsdata/igcx01.dbf',
    '/u01/oracle/obsdata/igfd01.dbf',
    '/u01/oracle/obsdata/igfx01.dbf',
    '/u01/oracle/obsdata/igsd01.dbf',
    '/u01/oracle/obsdata/igsx01.dbf',
    '/u01/oracle/obsdata/igwd01.dbf',
    '/u01/oracle/obsdata/igwx01.dbf',
    '/u01/oracle/obsdata/invd01.dbf',
    '/u01/oracle/obsdata/invx01.dbf',
    '/u01/oracle/obsdata/ipad01.dbf',
    '/u01/oracle/obsdata/ipax01.dbf',
    '/u01/oracle/obsdata/iscd01.dbf',
    '/u01/oracle/obsdata/iscx01.dbf',
    '/u01/oracle/obsdata/jad01.dbf',
    '/u01/oracle/obsdata/jax01.dbf',
    '/u01/oracle/obsdata/jed01.dbf',
    '/u01/oracle/obsdata/jex01.dbf',
    '/u01/oracle/obsdata/jgd01.dbf',
    '/u01/oracle/obsdata/jgx01.dbf',
    '/u01/oracle/obsdata/jld01.dbf',
    '/u01/oracle/obsdata/jlx01.dbf',
    '/u01/oracle/obsdata/jtfd01.dbf',
    '/u01/oracle/obsdata/jtfx01.dbf',
    '/u01/oracle/obsdata/med01.dbf',
    '/u01/oracle/obsdata/mex01.dbf',
    '/u01/oracle/obsdata/mfgd01.dbf',
    '/u01/oracle/obsdata/mfgx01.dbf',
    '/u01/oracle/obsdata/mrpd01.dbf',
    '/u01/oracle/obsdata/mrpx01.dbf',
    '/u01/oracle/obsdata/mscd01.dbf',
    '/u01/oracle/obsdata/mscx01.dbf',
    '/u01/oracle/obsdata/msdd01.dbf',
    '/u01/oracle/obsdata/msdx01.dbf',
    '/u01/oracle/obsdata/msod01.dbf',
    '/u01/oracle/obsdata/msox01.dbf',
    '/u01/oracle/obsdata/mwad01.dbf',
    '/u01/oracle/obsdata/mwax01.dbf',
    '/u01/oracle/obsdata/oed01.dbf',
    '/u01/oracle/obsdata/oex01.dbf',
    '/u01/oracle/obsdata/okcd01.dbf',
    '/u01/oracle/obsdata/okcx01.dbf',
    '/u01/oracle/obsdata/oked01.dbf',
    '/u01/oracle/obsdata/okex01.dbf',
    '/u01/oracle/obsdata/oksd01.dbf',
    '/u01/oracle/obsdata/oksx01.dbf',
    '/u01/oracle/obsdata/okxd01.dbf',
    '/u01/oracle/obsdata/okxx01.dbf',
    '/u01/oracle/obsdata/ontd01.dbf',
    '/u01/oracle/obsdata/ontx01.dbf',
    '/u01/oracle/obsdata/opid01.dbf',
    '/u01/oracle/obsdata/opix01.dbf',
    '/u01/oracle/obsdata/osmd01.dbf',
    '/u01/oracle/obsdata/osmx01.dbf',
    '/u01/oracle/obsdata/otad01.dbf',
    '/u01/oracle/obsdata/otax01.dbf',
    '/u01/oracle/obsdata/ozfd01.dbf',
    '/u01/oracle/obsdata/ozfx01.dbf',
    '/u01/oracle/obsdata/ozpd01.dbf',
    '/u01/oracle/obsdata/ozpx01.dbf',
    '/u01/oracle/obsdata/ozsd01.dbf',
    '/u01/oracle/obsdata/ozsx01.dbf',
    '/u01/oracle/obsdata/pad01.dbf',
    '/u01/oracle/obsdata/pax01.dbf',
    '/u01/oracle/obsdata/pjmd01.dbf',
    '/u01/oracle/obsdata/pjmx01.dbf',
    '/u01/oracle/obsdata/pmid01.dbf',
    '/u01/oracle/obsdata/pmix01.dbf',
    '/u01/oracle/obsdata/pnd01.dbf',
    '/u01/oracle/obsdata/pnx01.dbf',
    '/u01/oracle/obsdata/pod01.dbf',
    '/u01/oracle/obsdata/pox01.dbf',
    '/u01/oracle/obsdata/poad01.dbf',
    '/u01/oracle/obsdata/poax01.dbf',
    '/u01/oracle/obsdata/pomd01.dbf',
    '/u01/oracle/obsdata/pomx01.dbf',
    '/u01/oracle/obsdata/psad01.dbf',
    '/u01/oracle/obsdata/psax01.dbf',
    '/u01/oracle/obsdata/psbd01.dbf',
    '/u01/oracle/obsdata/psbx01.dbf',
    '/u01/oracle/obsdata/pspd01.dbf',
    '/u01/oracle/obsdata/pspx01.dbf',
    '/u01/oracle/obsdata/qad01.dbf',
    '/u01/oracle/obsdata/qax01.dbf',
    '/u01/oracle/obsdata/qpd01.dbf',
    '/u01/oracle/obsdata/qpx01.dbf',
    '/u01/oracle/obsdata/rgd01.dbf',
    '/u01/oracle/obsdata/rgx01.dbf',
    '/u01/oracle/obsdata/rhxd01.dbf',
    '/u01/oracle/obsdata/rhxx01.dbf',
    '/u01/oracle/obsdata/rlad01.dbf',
    '/u01/oracle/obsdata/rlax01.dbf',
    '/u01/oracle/obsdata/rlmd01.dbf',
    '/u01/oracle/obsdata/rlmx01.dbf',
    '/u01/oracle/obsdata/sspd01.dbf',
    '/u01/oracle/obsdata/sspx01.dbf',
    '/u01/oracle/obsdata/vead01.dbf',
    '/u01/oracle/obsdata/veax01.dbf',
    '/u01/oracle/obsdata/vehd01.dbf',
    '/u01/oracle/obsdata/vehx01.dbf',
    '/u01/oracle/obsdata/wipd01.dbf',
    '/u01/oracle/obsdata/wipx01.dbf',
    '/u01/oracle/obsdata/wmsd01.dbf',
    '/u01/oracle/obsdata/wmsx01.dbf',
    '/u01/oracle/obsdata/wpsd01.dbf',
    '/u01/oracle/obsdata/wpsx01.dbf',
    '/u01/oracle/obsdata/wshd01.dbf',
    '/u01/oracle/obsdata/wshx01.dbf',
    '/u01/oracle/obsdata/wsmd01.dbf',
    '/u01/oracle/obsdata/wsmx01.dbf',
    '/u01/oracle/obsdata/xdpd01.dbf',
    '/u01/oracle/obsdata/xdpx01.dbf',
    '/u01/oracle/obsdata/xlad01.dbf',
    '/u01/oracle/obsdata/xlax01.dbf',
    '/u01/oracle/obsdata/xncd01.dbf',
    '/u01/oracle/obsdata/xncx01.dbf',
    '/u01/oracle/obsdata/xnmd01.dbf',
    '/u01/oracle/obsdata/xnmx01.dbf',
    '/u01/oracle/obsdata/xnpd01.dbf',
    '/u01/oracle/obsdata/xnpx01.dbf',
    '/u01/oracle/obsdata/xnsd01.dbf',
    '/u01/oracle/obsdata/xnsx01.dbf',
    '/u01/oracle/obsdata/xtrd01.dbf',
    '/u01/oracle/obsdata/xtrx01.dbf',
    '/u01/oracle/obsdata/applsysd02.dbf',
    '/u01/oracle/obsdata/applsysx02.dbf',
    '/u01/oracle/obsdata/asld01.dbf',
    '/u01/oracle/obsdata/aslx01.dbf',
    '/u01/oracle/obsdata/pvd01.dbf',
    '/u01/oracle/obsdata/pvx01.dbf',
    '/u01/oracle/obsdata/system06.dbf',
    '/u01/oracle/obsdata/itgd01.dbf',
    '/u01/oracle/obsdata/itgx01.dbf',
    '/u01/oracle/obsdata/ipdd01.dbf',
    '/u01/oracle/obsdata/ipdx01.dbf',
    '/u01/oracle/obsdata/eamd01.dbf',
    '/u01/oracle/obsdata/eamx01.dbf',
    '/u01/oracle/obsdata/enid01.dbf',
    '/u01/oracle/obsdata/enix01.dbf',
    '/u01/oracle/obsdata/okrd01.dbf',
    '/u01/oracle/obsdata/okrx01.dbf',
    '/u01/oracle/obsdata/cued01.dbf',
    '/u01/oracle/obsdata/cuex01.dbf',
    '/u01/oracle/obsdata/fted01.dbf',
    '/u01/oracle/obsdata/ftex01.dbf',
    '/u01/oracle/obsdata/msrd01.dbf',
    '/u01/oracle/obsdata/msrx01.dbf',
    '/u01/oracle/obsdata/igid01.dbf',
    '/u01/oracle/obsdata/igix01.dbf',
    '/u01/oracle/obsdata/portal01.dbf',
    '/u01/oracle/obsdata/ahld01.dbf',
    '/u01/oracle/obsdata/ahlx01.dbf',
    '/u01/oracle/obsdata/ahmd01.dbf',
    '/u01/oracle/obsdata/ahmx01.dbf',
    '/u01/oracle/obsdata/aspd01.dbf',
    '/u01/oracle/obsdata/aspx01.dbf',
    '/u01/oracle/obsdata/bivd01.dbf',
    '/u01/oracle/obsdata/bivx01.dbf',
    '/u01/oracle/obsdata/csed01.dbf',
    '/u01/oracle/obsdata/csex01.dbf',
    '/u01/oracle/obsdata/csid01.dbf',
    '/u01/oracle/obsdata/csix01.dbf',
    '/u01/oracle/obsdata/csld01.dbf',
    '/u01/oracle/obsdata/cslx01.dbf',
    '/u01/oracle/obsdata/cugd01.dbf',
    '/u01/oracle/obsdata/cugx01.dbf',
    '/u01/oracle/obsdata/iecd01.dbf',
    '/u01/oracle/obsdata/iecx01.dbf',
    '/u01/oracle/obsdata/imcd01.dbf',
    '/u01/oracle/obsdata/imcx01.dbf',
    '/u01/oracle/obsdata/imtd01.dbf',
    '/u01/oracle/obsdata/imtx01.dbf',
    '/u01/oracle/obsdata/jtmd01.dbf',
    '/u01/oracle/obsdata/jtmx01.dbf',
    '/u01/oracle/obsdata/jtsd01.dbf',
    '/u01/oracle/obsdata/jtsx01.dbf',
    '/u01/oracle/obsdata/okbd01.dbf',
    '/u01/oracle/obsdata/okbx01.dbf',
    '/u01/oracle/obsdata/okid01.dbf',
    '/u01/oracle/obsdata/okix01.dbf',
    '/u01/oracle/obsdata/okod01.dbf',
    '/u01/oracle/obsdata/okox01.dbf',
    '/u01/oracle/obsdata/posd01.dbf',
    '/u01/oracle/obsdata/posx01.dbf',
    '/u01/oracle/obsdata/xnid01.dbf',
    '/u01/oracle/obsdata/xnix01.dbf',
    '/u01/oracle/obsdata/system07.dbf',
    '/u01/oracle/obsdata/system08.dbf',
    '/u01/oracle/obsdata/system09.dbf',
    '/u01/oracle/obsdata/rbs02.dbf',
    '/u01/oracle/obsdata/amfd01.dbf',
    '/u01/oracle/obsdata/amfx01.dbf',
    '/u01/oracle/obsdata/bned01.dbf',
    '/u01/oracle/obsdata/bnex01.dbf',
    '/u01/oracle/obsdata/csmd01.dbf',
    '/u01/oracle/obsdata/csmx01.dbf',
    '/u01/oracle/obsdata/dddd01.dbf',
    '/u01/oracle/obsdata/dddx01.dbf',
    '/u01/oracle/obsdata/domd01.dbf',
    '/u01/oracle/obsdata/domx01.dbf',
    '/u01/oracle/obsdata/egod01.dbf',
    '/u01/oracle/obsdata/egox01.dbf',
    '/u01/oracle/obsdata/ibcd01.dbf',
    '/u01/oracle/obsdata/ibcx01.dbf',
    '/u01/oracle/obsdata/okld01.dbf',
    '/u01/oracle/obsdata/oklx01.dbf',
    '/u01/oracle/obsdata/pjid01.dbf',
    '/u01/oracle/obsdata/pjix01.dbf',
    '/u01/oracle/obsdata/pond01.dbf',
    '/u01/oracle/obsdata/ponx01.dbf',
    '/u01/oracle/obsdata/qotd01.dbf',
    '/u01/oracle/obsdata/qotx01.dbf',
    '/u01/oracle/obsdata/qrmd01.dbf',
    '/u01/oracle/obsdata/qrmx01.dbf',
    '/u01/oracle/obsdata/discoverer01.dbf',
    '/u01/oracle/obsdata/cinvd01.dbf',
    '/u01/oracle/obsdata/cinvx01.dbf',
    '/u01/oracle/obsdata/cpod01.dbf',
    '/u01/oracle/obsdata/cpox01.dbf',
    '/u01/oracle/obsdata/capd01.dbf',
    '/u01/oracle/obsdata/capx01.dbf',
    '/u01/oracle/obsdata/card01.dbf',
    '/u01/oracle/obsdata/carx01.dbf',
    '/u01/oracle/obsdata/cqcd01.dbf',
    '/u01/oracle/obsdata/cqcx01.dbf',
    '/u01/oracle/obsdata/cfndd01.dbf',
    '/u01/oracle/obsdata/cfndx01.dbf',
    '/u01/oracle/obsdata/cgld01.dbf',
    '/u01/oracle/obsdata/cglx01.dbf',
    '/u01/oracle/obsdata/convd01.dbf',
    '/u01/oracle/obsdata/applsysd03.dbf',
    '/u01/oracle/obsdata/applsysx03.dbf',
    '/u01/oracle/obsdata/cwpld01.dbf',
    '/u01/oracle/obsdata/cwplx01.dbf',
    '/u01/oracle/obsdata/csyd01.dbf',
    '/u01/oracle/obsdata/csyx01.dbf',
    '/u01/oracle/obsdata/cpod02.dbf',
    '/u01/oracle/obsdata/csyd02.dbf'
    CHARACTER SET UTF8
    ALTER DATABASE OPEN RESETLOGS;
    DROP tablespace TEMP;
    DROP tablespace TEMPSYN;
    CREATE temporary tablespace TEMP TEMPFILE '/u01/oracle/obsdata/temp01.dbf'
         SIZE 1048576000 REUSE extent management local uniform size 128K;
    CREATE temporary tablespace TEMPSYN TEMPFILE '/u01/oracle/obsdata/tempsyn01.dbf'
         SIZE 1048576000 REUSE extent management local uniform size 128K;
    Edited by: amychan60 on Jun 17, 2009 9:30 PM

  • Database name ORCL in file header does not match given name of

    Hi all,
    DB version is 10.2.0.4
    While doing db cloning..restoring the database..made a mistake of restoring the db to a different running mountpoint database..But in 20 minutes realised that after a while and restarted the clone.
    But that running db went down..trying to recover it shows
    ERROR at line 1:
    ORA-01161: database name ORCL in file header does not match given name of
    PRODhow can i recover it?
    thanks,
    baskar.l

    baskar.l wrote:
    Hi all,
    DB version is 10.2.0.4
    While doing db cloning..restoring the database..made a mistake of restoring the db to a different running mountpoint database..But in 20 minutes realised that after a while and restarted the clone.
    But that running db went down..trying to recover it shows
    ERROR at line 1:
    ORA-01161: database name ORCL in file header does not match given name of
    PRODhow can i recover it?
    thanks,
    baskar.lHi,Baskar.How you clone your database and which command after you got this error.You can resolve this problem with re-create controlfile as(It mean is you actually change your database name):
    C:\Documents and Settings\Administrator>sqlplus "sys/sm as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jun 20 15:34:21 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> startup nomount pfile=D:\oracle\product\10.2.0\admin\SB\pfile\init.ora.5152
    010163530
    ORACLE instance started.
    Total System Global Area  138412032 bytes
    Fixed Size                  1247732 bytes
    Variable Size              62916108 bytes
    Database Buffers           71303168 bytes
    Redo Buffers                2945024 bytes
    SQL> CREATE CONTROLFILE reuse DATABASE "SB1" RESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO03.LOG'  SIZE 50M
    11  DATAFILE
    12    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSTEM01.DBF',
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\UNDOTBS01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSAUX01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\USERS01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\EXAMPLE01.DBF';
    CREATE CONTROLFILE reuse DATABASE "SB1" NORESETLOGS  ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01161: database name SB in file header does not match given name of SB1
    ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSTEM01.DBF'
    SQL> CREATE CONTROLFILE set DATABASE "SB1" RESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO03.LOG'  SIZE 50M
    11  DATAFILE
    12    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSTEM01.DBF',
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\UNDOTBS01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSAUX01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\USERS01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\EXAMPLE01.DBF';
    CREATE CONTROLFILE set DATABASE "SB1" RESETLOGS  ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-00200: control file could not be created
    ORA-00202: control file: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\CONTROL01.CTL'
    ORA-27038: created file already exists
    OSD-04010: <create> option specified, file already exists
    /*remove all controlfile  from D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\ */
    SQL> CREATE CONTROLFILE set DATABASE "SB1" RESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO03.LOG'  SIZE 50M
    11  DATAFILE
    12    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSTEM01.DBF',
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\UNDOTBS01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSAUX01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\USERS01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\EXAMPLE01.DBF';
    Control file created.
    SQL> recover database using backup controlfile until cancel;
    ORA-00279: change 742571 generated at 06/20/2010 15:32:41 needed for thread 1
    ORA-00289: suggestion :
    D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SB1\ARCHIVELOG\2010_06_20\O1_MF_1_1
    1_%U_.ARC
    ORA-00280: change 742571 for thread 1 is in sequence #11
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    D:\oracle\product\10.2.0\oradata\SB\REDO01.LOG
    Log applied.
    Media recovery complete.
    SQL> alter database open resetlogs;
    Database altered.
    SQL> create spfile from pfile;
    File created.
    SQL>In additionally see metalink note
    ORA-01503 ORA-01161 While creating a clone database. [ID 294555.1]
    Edited by: Chinar on Jun 20, 2010 3:52 AM

  • ORA-23327: imported deferred rpc data does not match GLOBAL NAME of ..

    Hi,
    We took an export of a production database in Oracle 9i (9.2.0.7) and created a new database on a test server with Oracle 10g (10.1.0.5)
    The original production database was called DC20 and our new test database is called SD20.
    Looking at the logs after the import we're seeing this error:
    "ORA-23327: imported deferred rpc data does not match GLOBAL NAME of importing db"
    We've looked into it a little and it seems to make sense because the names of the databases are different, and from what we've read, we really didn't need to do a full import including SYSTEM anyway. We also came across a solution telling us:
    "If you are not using Replication on the target database, these errors can be ignored. However, you should subsequently remove all the replication objects by running:
    $ORACLE_HOME/rdbms/admin/catrepr.sql, then catproc.sql"
    What I was wondering was if someone could validate that running these scripts and ignoring the errors will be ok, or if they'll cause us issues further down the line.
    In case its needed, heres my Export parameter file
    "FULL=Y
    DIRECT=Y
    LOG=E:\Exports\DC20\Log\expDC20.LOG
    FILE=E:\Exports\DC20\Data\DC20.DMP"
    and heres my Import parameter file
    "FULL=Y
    COMMIT=Y
    GRANTS=N
    IGNORE=Y
    BUFFER=500000
    FILE=E:\Imports\SD20\data\SD20.dmp
    LOG=E:\imports\SD20\log\impSD20.LOG"
    Thanks for your help!

    Thanks Neil, we did already see this note and added it to our list of possible solutions. After we found this one, we also found the one I quoted, which would seem to be the path of least resistance (it would save a good 10 hours in import time if nothing else).
    However, if we can't do what I'm asking about in my original post however, the note you mentioned will be our next route..

  • ORA-01861 literal does not match format string, ORA-02063preceding line fro

    We have upgraded a client from 8.0.5 to 9.2.03. The following query is called from a report that was built using Cold Fusion5. It worked in 8.0.5, but not 9.2.03. When you run the report you get the errors
    [Oracle][ODBC][Ora]ORA-01861: literal does not match format string ORA-02063: preceding line from FRPE
    Here's the query:
    SELECT x.acct, x.obj, x.offn, x.status, x.asofdate, max( decode( x.func_id, 1, t, null ) ) UOB, max( decode( x.func_id, 12, t, null ) ) COB, max( decode( x.func_id, 24, t, null ) ) Rate_Warning, max( decode( x.func_id, 2, t, null ) ) Sector_Change, max( decode( x.func_id, 2006, t, null) ) FRRFRD , max( decode( x.func_id, 2003, t, null ) ) No_Tcode , max( decode( x.func_id, 2004, t, null) ) No_Sector FROM ( SELECT a.acct, a.func_id, count(*) cnt, 'Fail' t, b.obj, b.offn, b.status,a.asofdate FROM frpfaud@FRPE a, frpair@FRPE b WHERE a.acct=b.acct AND a.asofdate='2008-02-29 00:00:00' AND b.bnk not like 'B%' and b.obj not in ('KL') and b.obj in ('GAF') GROUP BY a.acct, a.func_id,b.obj,b.offn,b.status,a.asofdate) x GROUP BY x.acct, x.obj,x.offn,x.status,x.asofdate
    Now, this query will not work by running straight through SQL worksheet in either the 8.0.5 or 9.2.03 regions. So I guess it has something to do with Cold Fusion- which I know nothing about. Has anyone had any experience using Cold Fusion to issue a query? What would be the cause of the difference between the Oracle versions? That is the only thing that changed.
    Thanks for any input.

    I actually want the date format of DD-MON-YY. Which, from what I understand, is the default format for both Oracle 8.0.5 and 9.2.03. I'm trying to figure out why it is now displaying as 'yyyy-mm-dd hh24:mi:ss'. I could convince the client that the code needs changing if I had evidence that this version of Oracle (9.2.03) used a different default date format. Or if Cold Fusion pulls the date differently. Ughh.
    Here are the database parameters:
    SQL> show parameter nls_date_format
    NAME TYPE VALUE
    nls_date_format string
    select sysdate from dual;
    SYSDATE
    26-FEB-08
    1 row selected.
    select * from nls_session_parameters
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    17 rows selected.
    select * from v$nls_parameters
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_CHARACTERSET WE8MSWIN1252
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    19 rows selected.

  • Why my XML is not loading ?? (ORA-19007: Schema - does not match expected )

    Hi,
    I want to load a XML document in structured XMLType. You can run my code on your database if you have a directory object called LOG_DIR. I am on Oracle 10.1 .
    The schema is a simple example which describe a database table(like it will have 1 or more columns and 0 or more indexes). My schema looks like,
    <xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="Tables" type="Table">
    <xs:annotation>
    <xs:documentation>Table defination</xs:documentation>
    </xs:annotation>
    </xs:element>
    <xs:element name="table_name" type="xs:string"/>
    <xs:complexType name="Table">
    <xs:sequence>
    <xs:element name="Column" type="Column" minOccurs="1"/>
    <xs:element name="Index" type="Index" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Column">
    <xs:annotation>
    <xs:documentation>Column of the table</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="Name" type="xs:string" minOccurs="1"/>
    <xs:element name="Type" type="xs:string" minOccurs="1"/>
    <xs:element name="Capacity" type="xs:decimal" minOccurs="1"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Index">
    <xs:annotation>
    <xs:documentation>Index on the table</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="Name" type="xs:string" minOccurs="1"/>
    <xs:element name="Type" type="xs:string" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    I registered the schema,
    BEGIN
    DBMS_XMLSCHEMA.registerSchema(
    SCHEMAURL => 'tables.xsd',
    SCHEMADOC => bfilename('LOG_DIR','tables.xsd'),
    CSID => nls_charset_id('AL32UTF8')
    END;
    This was successfull, also the following create table was ok,
    CREATE TABLE TMP_XML_TABLES
    file_name VARCHAR2(2000),
    load_date DATE,
    xml_document XMLType
    XMLType COLUMN xml_document
    XMLSchema "http://xmlns.oracle.com/xdb/schemas/TDB/tables.xsd"
    ELEMENT "Tables";
    Now I have a XML document,
    <Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.oracle.com/xdb/schemas/TDB/tables.xsd">
    <table_name>trades</table_name>
    <Column><Name>trade_id</Name><Type>varchar2</Type><Capacity>50</Capacity></Column>
    <Column><Name>source</Name><Type>varchar2</Type><Capacity>100</Capacity></Column>
    <Column><Name>trade_date</Name><Type>date</Type></Column>
    <Column><Name>trader</Name><Type>varchar2</Type><Capacity>200</Capacity></Column>
    <Index><Name>trades_pk</Name><Type>btree</Type></Index>
    <Index><Name>trades_idx1</Name><Type>bitmap</Type></Index>
    </Tables>
    When I am trying to load this, I get the error,
    SQL> INSERT INTO TMP_XML_TABLES
    2 VALUES
    3 ('tables1.xml',
    4 sysdate,
    5 XMLType
    6 (
    7 bfilename('LOG_DIR','tables1.xml'),
    8 nls_charset_id('AL32UTF8')
    9 )
    10 );
    INSERT INTO TMP_XML_TABLES
    ERROR at line 1:
    ORA-19007: Schema - does not match expected tables.xsd.
    Can somebody please explain the cause ???
    Thanks and Regards

    A quick search of the forum for ORA-19007 should have allowed you to find the answer to your problem. Since you XML Schema does not declare a target namespace you need to use the xsi:noNamespaceSchemaLocation tag rather than the schemaLocation tag..
    Also please do not use URLs starting http://xmlns.oracle.com for your schemaLocation hint. If you do no own your own domain I'd suggest example.org...
    Finally please make sure that your XML Instance is valid per your XML Schema before posting. You can do this using tools like JDeveloper or XMLSpy. What should have been a 5 min repsonse took me over 20 mins to work through due to the errors in the XML Schema...
    Anyway here's a working example for you
    SQL>
    SQL>
    SQL> var schemaURL varchar2(256)
    SQL> var schemaPath varchar2(256)
    SQL> --
    SQL> begin
      2    :schemaURL := 'http://xmlns.examples.org/xdb/schemas/TDB/tables.xsd';
      3    :schemaPath := '/public/testcase.xsd';
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SQL> DROP TABLE TMP_XML_TABLES
      2  /
    Table dropped.
    SQL> call dbms_xmlSchema.deleteSchema(:schemaURL,4)
      2  /
    Call completed.
    SQL> declare
      2    res boolean;
      3    xmlSchema xmlType := xmlType(
      4  '<xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="
    tp://xmlns.oracle.com/xdb">
      5     <xs:element name="Tables" xdb:defaultTable="TABLES_TABLE">
      6     <xs:annotation>
      7                     <xs:documentation>Table defination</xs:documentation>
      8             </xs:annotation>
      9             <xs:complexType>
    10                     <xs:complexContent>
    11                             <xs:extension base="Table"/>
    12                     </xs:complexContent>
    13             </xs:complexType>
    14     </xs:element>
    15     <xs:complexType name="Table">
    16             <xs:sequence>
    17                     <xs:element name="table_name" type="xs:string"/>
    18                     <xs:element name="Column" type="Column" maxOccurs="unbounded"/>
    19                     <xs:element name="Index" type="Index" minOccurs="0" maxOccurs="unbounded"/>
    20             </xs:sequence>
    21     </xs:complexType>
    22     <xs:complexType name="Column">
    23             <xs:annotation>
    24                     <xs:documentation>Column of the table</xs:documentation>
    25             </xs:annotation>
    26             <xs:sequence>
    27                     <xs:element name="Name" type="xs:string"/>
    28                     <xs:element name="Type" type="xs:string"/>
    29                     <xs:element name="Capacity" type="xs:decimal"/>
    30             </xs:sequence>
    31     </xs:complexType>
    32     <xs:complexType name="Index">
    33             <xs:annotation>
    34                     <xs:documentation>Index on the table</xs:documentation>
    35             </xs:annotation>
    36             <xs:sequence>
    37                     <xs:element name="Name" type="xs:string"/>
    38                     <xs:element name="Type" type="xs:string" minOccurs="0"/>
    39             </xs:sequence>
    40     </xs:complexType>
    41  </xs:schema>
    42  ');
    43  begin
    44    if (dbms_xdb.existsResource(:schemaPath)) then
    45      dbms_xdb.deleteResource(:schemaPath);
    46    end if;
    47    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    48  end;
    49  /
    PL/SQL procedure successfully completed.
    SQL> begin
      2    dbms_xmlschema.registerSchema
      3    (
      4      :schemaURL,
      5      xdbURIType(:schemaPath).getClob(),
      6      TRUE,TRUE,FALSE,TRUE
      7    );
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> CREATE TABLE TMP_XML_TABLES
      2  (
      3  file_name VARCHAR2(2000),
      4  load_date DATE,
      5  xml_document XMLType
      6  )
      7  XMLType COLUMN xml_document
      8  XMLSchema "http://xmlns.examples.org/xdb/schemas/TDB/tables.xsd"
      9  ELEMENT "Tables"
    10  /
    Table created.
    SQL> insert into TMP_XML_TABLES values ('testcase1.xml',sysdate,xmltype(
      2  '<Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.examples.org/xdb/schemas/T
    /tables.xsd">
      3     <table_name>trades</table_name>
      4     <Column>
      5             <Name>trade_id</Name>
      6             <Type>varchar2</Type>
      7             <Capacity>50</Capacity>
      8     </Column>
      9     <Column>
    10             <Name>source</Name>
    11             <Type>varchar2</Type>
    12             <Capacity>100</Capacity>
    13     </Column>
    14     <Column>
    15             <Name>trade_date</Name>
    16             <Type>date</Type>
    17     </Column>
    18     <Column>
    19             <Name>trader</Name>
    20             <Type>varchar2</Type>
    21             <Capacity>200</Capacity>
    22     </Column>
    23     <Index>
    24             <Name>trades_pk</Name>
    25             <Type>btree</Type>
    26     </Index>
    27     <Index>
    28             <Name>trades_idx1</Name>
    29             <Type>bitmap</Type>
    30     </Index>
    31  </Tables>'))
    32  /
    1 row created.
    SQL> set long 10000 pages 0 lines 160
    SQL> /
    1 row created.
    SQL> select * from TMP_XML_TABLES
      2  /
    testcase1.xml
    21-APR-06
    <Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.examples.org/xdb/schemas/TDB/tab
    s.xsd">
      <table_name>trades</table_name>
      <Column>
        <Name>trade_id</Name>
        <Type>varchar2</Type>
        <Capacity>50</Capacity>
      </Column>
      <Column>
        <Name>source</Name>
        <Type>varchar2</Type>
        <Capacity>100</Capacity>
      </Column>
      <Column>
        <Name>trade_date</Name>
        <Type>date</Type>
      </Column>
      <Column>
        <Name>trader</Name>
        <Type>varchar2</Type>
        <Capacity>200</Capacity>
      </Column>
      <Index>
        <Name>trades_pk</Name>
        <Type>btree</Type>
      </Index>
      <Index>
        <Name>trades_idx1</Name>
        <Type>bitmap</Type>
      </Index>
    </Tables>
    testcase1.xml
    21-APR-06
    <Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.examples.org/xdb/schemas/TDB/tab
    s.xsd">
      <table_name>trades</table_name>
      <Column>
        <Name>trade_id</Name>
        <Type>varchar2</Type>
        <Capacity>50</Capacity>
      </Column>
      <Column>
        <Name>source</Name>
        <Type>varchar2</Type>
        <Capacity>100</Capacity>
      </Column>
      <Column>
        <Name>trade_date</Name>
        <Type>date</Type>
      </Column>
      <Column>
        <Name>trader</Name>
        <Type>varchar2</Type>
        <Capacity>200</Capacity>
      </Column>
      <Index>
        <Name>trades_pk</Name>
        <Type>btree</Type>
      </Index>
      <Index>
        <Name>trades_idx1</Name>
        <Type>bitmap</Type>
      </Index>
    </Tables>Since you are tracking metadata about the documents (name, date loaded) you might want to consider using the XDB repository to load the documents. The folllowing shows how you can do this from SQL and then create a view which contains the metadata and document content. The advantage of this approach is you can now load the documents using FTP or WebDAV.
    SQL> declare
      2    res boolean;
      3    document xmltype := xmltype(
      4  '<Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.examples.org/xdb/schemas/T
    /tables.xsd">
      5     <table_name>trades</table_name>
      6     <Column>
      7             <Name>trade_id</Name>
      8             <Type>varchar2</Type>
      9             <Capacity>50</Capacity>
    10     </Column>
    11     <Column>
    12             <Name>source</Name>
    13             <Type>varchar2</Type>
    14             <Capacity>100</Capacity>
    15     </Column>
    16     <Column>
    17             <Name>trade_date</Name>
    18             <Type>date</Type>
    19     </Column>
    20     <Column>
    21             <Name>trader</Name>
    22             <Type>varchar2</Type>
    23             <Capacity>200</Capacity>
    24     </Column>
    25     <Index>
    26             <Name>trades_pk</Name>
    27             <Type>btree</Type>
    28     </Index>
    29     <Index>
    30             <Name>trades_idx1</Name>
    31             <Type>bitmap</Type>
    32     </Index>
    33  </Tables>');
    34  begin
    35    res := dbms_xdb.createResource('/public/testcase.xml',document);
    36  end;
    37  /
    PL/SQL procedure successfully completed.
    SQL> create or replace view TMP_XML_TABLES_VIEW as
      2  select extractValue(res,'/Resource/DisplayName') FILENAME,
      3         extractValue(res,'/Resource/CreationDate') LOAD_DATE,
      4         object_value XML_DOCUMENT
      5    from RESOURCE_VIEW, TABLES_TABLE t
      6   where extractValue(res,'/Resource/XMLRef')= ref(t)
      7  /
    View created.
    SQL> select * from TABLES_TABLE
      2  /
    <Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.examples.org/xdb/schemas/TDB/tab
    s.xsd">
      <table_name>trades</table_name>
      <Column>
        <Name>trade_id</Name>
        <Type>varchar2</Type>
        <Capacity>50</Capacity>
      </Column>
      <Column>
        <Name>source</Name>
        <Type>varchar2</Type>
        <Capacity>100</Capacity>
      </Column>
      <Column>
        <Name>trade_date</Name>
        <Type>date</Type>
      </Column>
      <Column>
        <Name>trader</Name>
        <Type>varchar2</Type>
        <Capacity>200</Capacity>
      </Column>
      <Index>
        <Name>trades_pk</Name>
        <Type>btree</Type>
      </Index>
      <Index>
        <Name>trades_idx1</Name>
        <Type>bitmap</Type>
      </Index>
    </Tables>
    SQL> select * from TMP_XML_TABLES_VIEW
      2  /
    testcase.xml
    21-APR-06 02.21.37.031000 PM
    <Tables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.examples.org/xdb/schemas/TDB/tab
    s.xsd">
      <table_name>trades</table_name>
      <Column>
        <Name>trade_id</Name>
        <Type>varchar2</Type>
        <Capacity>50</Capacity>
      </Column>
      <Column>
        <Name>source</Name>
        <Type>varchar2</Type>
        <Capacity>100</Capacity>
      </Column>
      <Column>
        <Name>trade_date</Name>
        <Type>date</Type>
      </Column>
      <Column>
        <Name>trader</Name>
        <Type>varchar2</Type>
        <Capacity>200</Capacity>
      </Column>
      <Index>
        <Name>trades_pk</Name>
        <Type>btree</Type>
      </Index>
      <Index>
        <Name>trades_idx1</Name>
        <Type>bitmap</Type>
      </Index>
    </Tables>
    SQL>
    SQL>
    SQL>

  • ORA-01861: literal does not match format string

    Hi Experts,
    Whenever i am running the my procedure in oracle appliactions i am getting this error.
    ORA-01861: literal does not match format string .
    pkg is below:--->
    CREATE OR REPLACE PACKAGE Arc0471_Pending_Crc_Prc_Pkg IS
      --Insert into Custom Table
        PROCEDURE Arc_Insert_Data(P_ORG_ID VARCHAR2, P_BC_CODE VARCHAR2, P_GL_DATE VARCHAR2, P_DB_LINK VARCHAR2);
    END Arc0471_Pending_Crc_Prc_Pkg;
    CREATE OR REPLACE PACKAGE BODY Arc0471_Pending_Crc_Prc_Pkg IS
            PROCEDURE Arc_Insert_Data(P_ORG_ID VARCHAR2, P_BC_CODE VARCHAR2, P_GL_DATE VARCHAR2, P_DB_LINK VARCHAR2)
            IS
              v_val         varchar2(32000);          
              v_cursor1     integer;
              v_cursor2     integer;
              v_returncode  integer;
            BEGIN
           v_val   := ' ';
            v_val :=' INSERT INTO ARC.ARC_CRC_PRC_INVC ';
              v_val := v_val||' (CTA_TRX_NUMBER ,CTA_TRX_DATE ,DUE_DATE ,';
              v_val := v_val||' BILL_TO_CUSTOMER_NO,     BILL_TO_CUSTOMER_NAME ,     BILL_TO_LOCATION ,';
              v_val := v_val||' BILL_TO_ADDRESS ,ORIGINAL_AMOUNT ,APPLIED_AMOUNT , EXCHANGE_RATE     ,';
              v_val := v_val||' INVOICE_CURRENCY_CODE , ACCOUNT_CLASS , GL_DATE  , CTA_CUSTOMER_TRX_ID ,';
              v_val := v_val||' ORG_ID , CREATED_BY , CREATION_DATE ,LAST_UPDATE_BY , LAST_UPDATE_DATE , LAST_UPDATE_LOGIN )';
            v_val := v_val||' SELECT  CTA.TRX_NUMBER ,     CTA.TRX_DATE , APS.DUE_DATE ,';
              v_val := v_val||' HCA.ACCOUNT_NUMBER ,     HP.PARTY_NAME ,     HCSUA.LOCATION ,';
              v_val := v_val||' SUBSTR(HL.ADDRESS1 ||'||''' '''||'|| HL.ADDRESS2 ||'||'''  '''|| '||HL.ADDRESS3||'||'''  '''|| '||HL.ADDRESS4|| '||'''  ''' ||'||HL.PROVINCE||'||'''  '''||'|| HL.CITY ||'||'''  '''||'|| HL.STATE ||'||'''  '''||'|| HL.POSTAL_CODE ||'||'''  '''||'||FTL.TERRITORY_SHORT_NAME,0,1500),';
              v_val := v_val||' APS.AMOUNT_DUE_ORIGINAL , APS.AMOUNT_APPLIED,APS.EXCHANGE_RATE, APS.INVOICE_CURRENCY_CODE, CTLA.ACCOUNT_CLASS,';
              v_val := v_val||' APS.GL_DATE , CTA.CUSTOMER_TRX_ID , CTA.ORG_ID ,FND_GLOBAL.USER_ID ,';
              v_val := v_val||' SYSDATE , FND_GLOBAL.USER_ID , SYSDATE , FND_GLOBAL.LOGIN_ID '  ;  
             v_val := v_val||' FROM ' ;
             v_val := v_val||' AR.RA_CUSTOMER_TRX_ALL CTA,';
              v_val := v_val||' AR.RA_CUST_TRX_TYPES_ALL CTTA,';
              v_val := v_val||' AR.RA_CUST_TRX_LINE_GL_DIST_ALL CTLA,';
              v_val := v_val||' AR.HZ_PARTIES HP,';
              v_val := v_val||' AR.HZ_CUST_ACCOUNTS HCA,';
              v_val := v_val||' AR.HZ_CUST_SITE_USES_ALL HCSUA,';
              v_val := v_val||' AR.HZ_LOCATIONS HL,';
              v_val := v_val||' AR.HZ_PARTY_SITES HPS,';
              v_val := v_val||' AR.AR_PAYMENT_SCHEDULES_ALL APS,';
              v_val := v_val||' AR.HZ_CUST_ACCT_SITES_ALL HCASA,';
              v_val := v_val||' GL.GL_CODE_COMBINATIONS GCC,';
              v_val := v_val||' AR.AR_RECEIVABLE_APPLICATIONS_ALL ARAA,';
              v_val := v_val||' APPLSYS.FND_TERRITORIES_TL FTL ,';
              v_val := v_val||' ONT.OE_TRANSACTION_TYPES_TL'|| P_DB_LINK ||' IND_OTT, ' ;
              v_val := v_val||' ONT.OE_ORDER_HEADERS_ALL'||P_DB_LINK ||'  IND_OH, ';
              v_val := v_val||' AR.RA_CUSTOMER_TRX_ALL'||P_DB_LINK ||' IND_RCTA   ';
             v_val := v_val||' WHERE   CTA.ORG_ID = '||''''|| P_ORG_ID||'''';
             v_val := v_val||' AND   CTTA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
             v_val := v_val||' AND   CTLA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
             v_val := v_val||' AND   HCSUA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
             v_val := v_val||' AND   APS.ORG_ID =  '||''''||P_ORG_ID||'''';
             v_val := v_val||' AND   HCASA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
             v_val := v_val||' AND   CTLA.ACCOUNT_CLASS     =     '||'''REC''';
              v_val := v_val||' AND   CTLA.GL_DATE <= TRUNC(TO_DATE( '||''''||P_GL_DATE||''''||','||'''DD/MM/RRRR HH24:MI:SS'''||'))';
             v_val := v_val||' AND   NVL(ARAA.APPLY_DATE,TO_DATE( '||''''||P_GL_DATE||''''||','||'''DD/MM/RRRR HH24:MI:SS'''||')) <= TRUNC(TO_DATE ('||''''||P_GL_DATE||''''||','||'''DD/MM/RRRR HH24:MI:SS'''||'))';
             v_val := v_val||' AND   TO_DATE(APS.TRX_DATE,'||'''DD-MON-RRRR'''||') >'|| '''02-SEP-2007''' ;
             v_val := v_val||' AND     CTA.CUST_TRX_TYPE_ID    =     CTTA.CUST_TRX_TYPE_ID';
             v_val := v_val||' AND     CTLA.CUSTOMER_TRX_ID     =     CTA.CUSTOMER_TRX_ID';
             v_val := v_val||' AND     HCA.CUST_ACCOUNT_ID     =     CTA.BILL_TO_CUSTOMER_ID';
             v_val := v_val||' AND     HCA.PARTY_ID          =     HP.PARTY_ID';
             v_val := v_val||' AND     HCSUA.SITE_USE_ID     =     CTA.BILL_TO_SITE_USE_ID';
             v_val := v_val||' AND     HL.LOCATION_ID          =     HPS.LOCATION_ID';
             v_val := v_val||' AND     HPS.PARTY_ID          =     HCA.PARTY_ID';
               v_val := v_val||' AND     APS.CUSTOMER_TRX_ID     =     CTLA.CUSTOMER_TRX_ID';
             v_val := v_val||' AND     HCASA.CUST_ACCOUNT_ID     =     HCA.CUST_ACCOUNT_ID';
             v_val := v_val||' AND   HCASA.CUST_ACCT_SITE_ID =HCSUA.CUST_ACCT_SITE_ID';
             v_val := v_val||' AND   HCASA.PARTY_SITE_ID=HPS.PARTY_SITE_ID';
             v_val := v_val||' AND     ARAA.APPLIED_CUSTOMER_TRX_ID(+) = CTA.CUSTOMER_TRX_ID';
             v_val := v_val||' AND   IND_RCTA.TRX_NUMBER = CTA.TRX_NUMBER';
             v_val := v_val||' AND     TO_CHAR(IND_OH.ORDER_NUMBER) = IND_RCTA.CT_REFERENCE';
             v_val := v_val||' AND     IND_OTT.TRANSACTION_TYPE_ID = IND_OH.ORDER_TYPE_ID';
              --v_val := v_val||' AND   ARC.Arc0463_Get_Remng_Amt(APS.TRX_NUMBER,'||''''|| P_GL_DATE||''''||','||'APS.INVOICE_CURRENCY_CODE) <> 0';
             v_val := v_val||' AND   IND_OTT.NAME IN ('||'''D0M RC Imported Sale'''||','||'''D0M RC Indigenous Sale'''||')';
             v_val := v_val||' AND   GCC.CODE_COMBINATION_ID = CTLA.CODE_COMBINATION_ID';
             v_val := v_val||' AND   GCC.SEGMENT1 = '|| ''''||P_BC_CODE||'''';
             v_val := v_val||' AND   HL.COUNTRY = FTL.TERRITORY_CODE';
             v_val := v_val||' AND   FTL.LANGUAGE = USERENV('||'''LANG'''||')';          
                v_cursor1 := dbms_sql.open_cursor;
              dbms_sql.parse(v_cursor1,v_val,DBMS_SQL.NATIVE);
              v_returncode := dbms_sql.execute(v_cursor1);
              dbms_sql.close_cursor(v_cursor1);
         COMMIT;
         EXCEPTION     
                    WHEN DUP_VAL_ON_INDEX THEN
                                    NULL;
                   WHEN OTHERS THEN
                        COMMIT;
                   FND_FILE.PUT_LINE(FND_FILE.OUTPUT, 'IN WHEN OTHERS THEN OF INSERT INTO ARC.ARC_CRC_PRC_INVC'||SQLCODE || ' - ' || SQLERRM);
                -- dbms_output.put_line(sqlcode||sqlerrm);
            END Arc_Insert_Data;
    END Arc0471_Pending_Crc_Prc_Pkg;in above procdure APS.TRX_DATE having the format like this..23/3/2006. in Backend this procedure is working fine ..in toad(version 8.0.0.47). database is 9.0.
    but in oracle apps it is giving error like "literal does not match format string".
    please give me the solution...
    Thanks in ADv...

    Hi,
    It is the Date Data type...There's your problem then; NEVER, EVER, EVER to_date a date!! As you have discovered, it leads to problems when your code is run on different clients due to the different NLS settings they may have. You've been lucky, in other words, that your code has been working at all!
    What to_dating a date does is this:
    to_date(to_char(date_value, <format in NLS_DATE_FORMAT parameter>), <format in NLS_DATE_FORMAT parameter>) You've been lucky because your NLS_DATE_FORMAT has the same format as the data, on your client. On the database, however, it is clearly different.
    Simply remove the to_date from your already-a-date value, and you should find that it works fine.

Maybe you are looking for

  • Can more than one Ipod be used one one computer?

    My sister and I share a computer and each have an Ipod. I have a 30GB and she has a 2GB and we're having problems using the same Itunes. Is there a way for us both to use the same Itunes on the same computer, or do we have to use separate computers t

  • Adobe Print form error: Initialization of the font server module failed.

    Hi all, When trying to open a PDF preview the error below is displayed: "Initialization of the font server module failed." The problem occurs with SAP GUI 7.10 patch 15 and Adobe Reader 9 With SAP GUI 7.10 patch 12 and 13 with Adobe Reader 9 the prob

  • Question about activation

    Hey, i just got my 16gb white iphone 3g and right now i know the servers are over loaded and what not, but when i plug in my iphone it says "NO SIM CARD INSTALLED Insert an unlocked and VALID sim to activate iPhone." but, it has the sim card in there

  • Shift or Adjust All Pages/Content for Print

    Is there a way to shift all content in an entire publication by specified amounts, from one central location or command - as a temporary "effect"? I work with a document containing a set of labels (@70) that print the variable, b&w text portions of p

  • Unable to upload "files" to iTunes, help!

    I recently got a new iPhone and I was able to add 2 mp3s to it that I downloaded off a site I usually do. Now, when I went to upload any more mp3s by "File" "Add File" I am unable to do so. I have looked at other posts and other information is not wo