ORA-01506: missing or illegal database name

Hi Gurus/Experts,
I am implementing  dataguard for digaster consideration for my primary database mydb. I have changed some initilization parameter for this implementation and while doing this when I changed a paraneter like below:
SQL> alter system set db_file_name_convert="'/u01/app/oracle/oradata/mydb_un', '/u01/app/oracle/oradata/orcl_un'" scope=spfile;
System altered.
Because this parameter is static so I have restart my database with startup force option. But I am getting belwo error.:
SQL> startup force
ORA-01506: missing or illegal database name
Below is my entries in $ORACLE_HOME/dbs location :
hc_mydb.dat  initmydb.ora  init.ora  lkMYDB  lkMYDB_UN  orapwmydb  spfilemydb.ora
And below is my current pfile entry:
[oracle@localhost dbs]$ more initmydb.ora
mydb.__db_cache_size=67108864
mydb.__java_pool_size=4194304
mydb.__large_pool_size=4194304
mydb.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
mydb.__pga_aggregate_target=171966464
mydb.__sga_target=243269632
mydb.__shared_io_pool_size=0
mydb.__shared_pool_size=155189248
mydb.__streams_pool_size=4194304
*.audit_file_dest='/u01/app/oracle/admin/mydb/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/u01/app/oracle/oradata/mydb/control01.ctl','/u01/app/oracle/flash_recovery_area/mydb/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='mydb'
*.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4294967296
*.db_unique_name='mydb_un'
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=mydbXDB)'
*.log_archive_config='DG_CONFIG=(mydb_un,orcl_un)'
*.log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST REOPEN=8 MAX_FAILURE=4'
*.log_archive_dest_2='SERVICE=orcl delay=10 db_unique_name=orcl_un'
*.memory_target=413138944
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
Please help me to get it relsove and let me know what wrong I did.
Regards,
Michel

Hi Mseberg,
As of now I do not have standby INIT file and one which INIT file which I am showing here that's for my primary database i.e mydb. I would like to let you know I am planning to implement dataguard where mydb would be my primary database ad orcl would be my stabd by database. Before creating standby database I am preparing all initilization parameter in my primary database.
I have started my database with SYSDBA but still getting the same error. Please check below:
[oracle@localhost ~]$ . oraenv
ORACLE_SID = [oracle] ? mydb
The Oracle base for ORACLE_HOME=/u01/home/oracle/product/11.2.0/db_1 is /u01/app/oracle
[oracle@localhost ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Sun Jan 5 00:15:12 2014
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-01506: missing or illegal database name
Regards,
Michel

Similar Messages

  • ORA-01935: missing user or role name

    Hello. I'm trying to change a users password, logged in as SYS. I'm using the script:
    ALTER USER dross IDENTIFIED BY 1111;
    Also tried:
    ALTER USER "dross" IDENTIFIED BY "1111";
    ALTER USER 'dross' IDENTIFIED BY '1111';
    ALTER USER 'dross' IDENTIFIED BY 1111;
    ALTER USER "dross" IDENTIFIED BY 1111;
    Any suggestions on what I could do?

    sb92075 wrote:
    is username 'DROSS' or 'dross'?Makes no difference. If user doesn't exist ALTER USER spits out
    ORA-01918: user 'XXX' does not existnot
    ORA-01935: missing user or role name To get the above error username must be omitted:
    SQL> ALTER USER IDENTIFIED BY XYZ
      2  /
    ALTER USER IDENTIFIED BY XYZ
    ERROR at line 1:
    ORA-01935: missing user or role nameSo ALTER USER statements OP posted doesn't add up with error that is raised. Have a feeling ALTER USER is generated dynamically and somehow username is NULL.
    SY.

  • DB Link , ORA - 02083: illegal database name character '-'

    Hi,
    I work for an integration company and right now we are putting together an application that is moving a small subset of data from one db to another. I have created a db link to move the data. However, when I try to compile the procedure, that moves the data, into the database, the compile fails and I am given the following error:
    ORA-02083: database name has illegal character ‘-‘.
    The instances I’m developing/testing to are on the same machine, which is a Solaris X86 machine and the Oracle version is 8.1.7.
    Now 2 things. If I do a simple query like the one below using SQL*PLUS, the link works fine.
    Select sysdate
    From dual@<dblink_name>;
    The other thing is the domain name does in fact have a ‘-‘ in it, but I have removed the domain name from everyplace I can thing of from Oracle; i.e. tnsnames, init.ora file, etc.
    Does anyone have any ideas?
    Thanks,
    Roger Christophel

    and set this parameter with its correct value.
    DB_DOMAIN
    Parameter type
    String
    Syntax
    DB_DOMAIN = domain_name
    Default value
    There is no default value.
    Parameter class
    Static
    Range of values
    Any legal string of name components, separated by periods and up to 128 characters long (including the periods). This value cannot be NULL.
    Real Application Clusters
    You must set this parameter for every instance, and multiple instances must have the same value.
    In a distributed database system, DB_DOMAIN specifies the logical location of the database within the network structure. You should set this parameter if this database is or ever will be part of a distributed system. The value consists of the extension components of a global database name, consisting of valid identifiers, separated by periods. Oracle Corporation recommends that you specify DB_DOMAIN as a unique string for all databases in a domain.
    This parameter allows one department to create a database without worrying that it might have the same name as a database created by another department. If one sales department's DB_DOMAIN is JAPAN.ACME.COM, then their SALES database (SALES.JAPAN.ACME.COM) is uniquely distinguished from another database with DB_NAME = SALES but with DB_DOMAIN = US.ACME.COM.
    If you omit the domains from the name of a database link, Oracle expands the name by qualifying the database with the domain of your local database as it currently exists in the data dictionary, and then stores the link name in the data dictionary. The characters valid in a database domain name are: alphanumeric characters, underscore (_), and number sign (#).
    See Also:
    Oracle9i Database Performance Tuning Guide and Reference for more information on setting this parameter
    The data dictionary view "GLOBAL_NAME"
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch142.htm#REFRN10036
    Joel Pérez

  • Ora-01506 no database name

    11.2.0.2.0 windows 2008 RAC
    restored a prod rac to a dev rac, need to rename. created a pfile with my db name to my old name, started single instance, ran nid, updated the controlfiles successfully, stopped the database, updated my pfile to have DB_NAME to my new name, started the database, all good.
    Create the spfile on ASM to I can restart my RAC, restart the database (still in single instance on 1 node) , I can see in the alert log its reading the newly created spfile, but I then get an error.
    start my database with pfile with db_name=DPRD
    SQL>  startup force mount pfile='e:\temp\pfiledprd.ora';
    ORACLE instance started.
    Total System Global Area 1.3696E+10 bytes
    Fixed Size                  2266208 bytes
    Variable Size            7147096992 bytes
    Database Buffers         6509559808 bytes
    Redo Buffers               36966400 bytes
    Database mounted.
    SQL> show parameter db_name
    NAME                                 TYPE        VALUE
    db_name                              string      DPRD
    SQL>-- create my spfile, edit a second pfile and jsut have a reference to the spfile in it (if I dont use pfile reference it uses OIRACLE_HOME\database\initDPRD1.ora anyway which is the same file, this way I know for sure its using what I want to. Same thing happens either way.
    SQL> create spfile='+DATA/DPRD/spfileDPRD.ora' from pfile;
    File created.
    SQL> startup force mount pfile='e:\temp\initDPRD1.ora';
    ORA-01506: missing or illegal database name
    SQL> host more e:\temp\initDPRD1.ora
    SPFILE='+DATA/DPRD/spfileDPRD.ora'
    SQL>so question is why isnt my spfile using DB_NAME that I know exists before I create the spfile.
    I verified its using the right spfile by deleting before creating it on ASMCMD. ie, I delete it, run the "create spfile..." and then I see it recreating.

    every days a school day. In this case Im in detention. Hours I spent at this and of course I get the answer 20 minutes after I post the question here.
    the pfile in the default ORACLE_HOME\database has reference to my spfile
    If I run a create spfile from pfile it uses the contents of that pfile, NOT the pfile I started the database with. To use that pfile I need to path the pfile I started it with
    WRONG
    create spfile='+DATA/DPRD/spfileDPRD.ora' from pfile;
    RIGHT
    create spfile='+DATA/DPRD/spfileDPRD.ora' from pfile='e:\temp\pfileDPRD.ora';
    SQL> create spfile='+DATA/DPRD/spfileDPRD.ora' from pfile='e:\temp\pfileDPRD.ora';
    File created.
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup pfile='e:\temp\initDPRD1.ora';
    ORACLE instance started.
    Total System Global Area 1.3696E+10 bytes
    Fixed Size                  2266208 bytes
    Variable Size            7147096992 bytes
    Database Buffers         6509559808 bytes
    Redo Buffers               36966400 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL>
    SQL>

  • ORA-01291:missing logfile when FlashingBack a Primary DB in logical standby

    OS: Solaris 10 and Windows vista
    Oracle version : 10.2.0.4.0 Enterprise Edition and 10.2.0.3.0 Enterprise Edition
    We are getting ORA-01291: missing logfile when FlashingBack a failed Primary DB into logical standby
    We are following Below procedure for failover and flashback in logical standby.
    Primary and standby database name is as below.
    primary db_name primdb
    standby db_name logicdb
    failover
    From primdb:
    shut abort
    From logicdb:
    select applied_scn,newest_scn from dba_logstdby_progress;
    alter database stop logical standby apply;
    alter database activate logical standby database;
    Flashing Back a Failed Primary Database into a Logical Standby Database
    We are following instructions from below link.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/scenarios.htm#i1050060
    SYS@logicdb> SELECT APPLIED_SCN AS FLASHBACK_SCN FROM V$LOGSTDBY_PROGRESS;
    FLASHBACK_SCN
    302330
    1 row selected.
    SYS@logicdb> SELECT file_NAME FROM DBA_LOGSTDBY_LOG WHERE NEXT_CHANGE# > (SELECT VALUE FROM DBA_LOGSTDBY_PARAMETERS
              WHERE NAME = 'STANDBY_BECAME_PRIMARY_SCN') AND FIRST_CHANGE#<=302330;
    FILE_NAME
    /logs/app/oracle/flash_recovery_area/LOGICDB/archivelog2/logicdb_1_12_729695607.arc
    Note: We have copied above mentioned file to primary archive destination i.e. /logs/app/oracle/flash_recovery_area/PRIMDB/archivelog.
    SYS@primdb> startup mount
    ORACLE instance started.
    Total System Global Area 1073741824 bytes
    Fixed Size 2046056 bytes
    Variable Size 264243096 bytes
    Database Buffers 801112064 bytes
    Redo Buffers 6340608 bytes
    Database mounted.
    SYS@primdb> FLASHBACK DATABASE TO SCN 302330;
    Flashback complete.
    SYS@primdb> ALTER DATABASE OPEN RESETLOGS;
    Database altered.
    SYS@primdb> ALTER DATABASE START LOGICAL STANDBY APPLY NEW PRIMARY logicdb;
    Database altered.
    SYS@primdb> select type,high_scn,status from v$logstdby;
    TYPE HIGH_SCN
    STATUS
    COORDINATOR
    ORA-01291: missing logfile
    Primary database init.ora parameters are as below
    *.db_file_name_convert=('/export/oracle/oradata/primdb/','/export/oracle/oradata/logicdb/')
    *.db_name='primdb'
    *.instance_name=primdb
    *.db_unique_name=primdb
    *.service_names=primdb
    *.db_recovery_file_dest='/logs/app/oracle/flash_recovery_area'
    *.fal_client='LOGICDB'
    *.fal_server='PRIMDB'
    *.log_archive_dest_1='LOCATION=/logs/app/oracle/flash_recovery_area/PRIMDB/archivelog/ VALID_FOR=(ONLINE_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=primdb'
    *.log_archive_dest_2='SERVICE=logicdb LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=logicdb'
    *.log_archive_dest_3='LOCATION=/logs/app/oracle/flash_recovery_area/PRIMDB/archivelog2/ VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLES) DB_UNIQUE_NAME=primdb'
    *.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_dest_state_3='DEFER'
    *.log_archive_format='primdb_%t_%s_%r.arc'
    *.log_archive_max_processes=4
    *.log_file_name_convert=('/export/oracle/oradata/primdb/','/export/oracle/oradata/logicdb/')
    *.standby_file_management='AUTO'
    *.log_archive_config='dg_config=(primdb,logicdb)'
    Standby database init.ora parameters are as below
    *.db_file_name_convert=('/export/oracle/oradata/primdb/','/export/oracle/oradata/logicdb/')
    *.db_name='logicdb'
    *.instance_name=logicdb
    *.db_unique_name=logicdb
    *.service_names=logicdb
    *.db_recovery_file_dest='/logs/app/oracle/flash_recovery_area'
    *.fal_client='LOGICDB'
    *.fal_server='PRIMDB'
    *.log_archive_dest_1='LOCATION=/logs/app/oracle/flash_recovery_area/LOGICDB/archivelog/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=logicdb'
    *.log_archive_dest_2='SERVICE=primdb LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=primdb'
    *.log_archive_dest_3='LOCATION=/logs/app/oracle/flash_recovery_area/LOGICDB/archivelog2/ VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLES) DB_UNIQUE_NAME=logicdb'
    *.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='DEFER'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_format='logicdb_%t_%s_%r.arc'
    *.log_archive_max_processes=4
    *.log_file_name_convert=('/export/oracle/oradata/primdb/','/export/oracle/oradata/logicdb/')
    *.log_archive_config='dg_config=(primdb,logicdb)'

    Hi ,
    The error shows it is waiting for the Logfile. The Integrated extract mainly needs of the availability of two things.
    1. Archivelogs.
    2. Trail Files.
    Both should be retained to the needed / required level.
    Please execute the below query and check the status of the Extract / Capture process.
    The below query displays the information of each capture process in a database.,
    COLUMN CAPTURE_NAME HEADING 'Capture|Name' FORMAT A7
    COLUMN PROCESS_NAME HEADING 'Capture|Process|Number' FORMAT A7
    COLUMN SID HEADING 'Session|ID' FORMAT 9999
    COLUMN SERIAL# HEADING 'Session|Serial|Number' FORMAT 9999
    COLUMN STATE HEADING 'State' FORMAT A20
    COLUMN TOTAL_MESSAGES_CAPTURED HEADING 'Redo|Entries|Evaluated|In Detail' FORMAT 9999999
    COLUMN TOTAL_MESSAGES_ENQUEUED HEADING 'Total|LCRs|Enqueued' FORMAT 9999999999
    SELECT c.CAPTURE_NAME,
           SUBSTR(s.PROGRAM,INSTR(s.PROGRAM,'(')+1,4) PROCESS_NAME,
           c.SID,
           c.SERIAL#,
           c.STATE,
           c.TOTAL_MESSAGES_CAPTURED,
           c.TOTAL_MESSAGES_ENQUEUED
      FROM V$STREAMS_CAPTURE c, V$SESSION s
      WHERE c.SID = s.SID AND
            c.SERIAL# = s.SERIAL#;
    Also run this query to check, if the capture is waiting for which logfile.,
    COLUMN CONSUMER_NAME HEADING 'Capture|Process|Name' FORMAT A15
    COLUMN SOURCE_DATABASE HEADING 'Source|Database' FORMAT A10
    COLUMN SEQUENCE# HEADING 'Sequence|Number' FORMAT 99999
    COLUMN NAME HEADING 'Required|Archived Redo Log|File Name' FORMAT A40
    SELECT r.CONSUMER_NAME,
           r.SOURCE_DATABASE,
           r.SEQUENCE#,
           r.NAME
      FROM DBA_REGISTERED_ARCHIVED_LOG r, DBA_CAPTURE c
      WHERE r.CONSUMER_NAME =  c.CAPTURE_NAME AND
            r.NEXT_SCN      >= c.REQUIRED_CHECKPOINT_SCN;
    The above query clearly shows for which logfile the Extract / Capture process is waiting. Check if that logfile is available in your system.
    Regards,
    Veera

  • What's wrong with this sql? ORA-00936: Missing Expression?

    SQL> insert into CHECK_LIST(
    2 CHK_LST_ID,
    3 CHK_LST_NAME,
    4 CHK_LST_DESCR,
    5 CHK_LST_REC,
    6 CHK_LST_FIRST_RUN_DATE,
    7 CHK_LST_START_TIME,
    8 CHK_LST_DSTOP_TIME,
    9 CHK_LST_DWEEK_DAYS_ONLY,
    10 CHK_LST_DEVERY,
    11 CHK_LST_RESP_TYPE,
    12 CHK_LST_RESP_ID,
    13 CHK_LST_WEVERY,
    14 CHK_LST_WMON,
    15 CHK_LST_WTUE,
    16 CHK_LST_WWED,
    17 CHK_LST_WTHU,
    18 CHK_LST_WFRI,
    19 CHK_LST_WSAT,
    20 CHK_LST_WSUN,
    21 CHK_LST_WLOCK_DAYS,
    22 CHK_LST_MCHK_DAY_NUMBER,
    23 CHK_LST_MDAY_NUMBER,
    24 CHK_LST_MDAY_NUMBER_EVERY,
    25 CHK_LST_MTHE,
    26 CHK_LST_MTHE_DAY,
    27 CHK_LST_MTHE_EVERY,
    28 CHK_LST_MLOCK_DAYS,
    29 CHK_LST_YCHK_EVERY,
    30 CHK_LST_YEVERY,
    31 CHK_LST_YMONTH_NUMBER,
    32 CHK_LST_YTHE,
    33 CHK_LST_YTHE_DAY,
    34 CHK_LST_YTHE_DAY_MONTH_NUMBER,
    35 CHK_LST_YLOCK_DAYS,CHK_LST_MANUAL_INIT
    36 )
    37 values(
    38 1,
    39 'Some name here',
    40 'Some description here',
    41 'd',
    42 to_date('2004/01/01 00:00:00','yyyy/mm/dd hh24:mi:ss'),
    43 to_date('1999/12/30 07:00:00','yyyy/mm/dd hh24:mi:ss'),
    44 to_date('1999/12/30 18:00:00','yyyy/mm/dd hh24:mi:ss'),
    45 'Y',
    46 ,
    47 2,
    48 2,
    49 ,
    50 'N',
    51 'N',
    52 'N',
    53 'N',
    54 'N',
    55 'N',
    56 'N',
    57 ,
    58 'N',
    59 ,
    60 ,
    61 ,
    62 ,
    63 ,
    64 ,
    65 'N',
    66 ,
    67 ,
    68 ,
    69 ,
    70 ,
    71 ,
    72 'N'
    73 );
    to_date('1999/12/30 18:00:00','yyyy/mm/dd hh24:mi:ss'),
    ERROR at line 44:
    ORA-00936: missing expression

    SQL> descr check_list
    Name Null? Type
    CHK_LST_ID NUMBER
    CHK_LST_NAME VARCHAR2(255)
    CHK_LST_DESCR CLOB
    CHK_LST_REC VARCHAR2(255)
    CHK_LST_FIRST_RUN_DATE DATE
    CHK_LST_START_TIME DATE
    CHK_LST_DSTOP_TIME DATE
    CHK_LST_DWEEK_DAYS_ONLY VARCHAR2(1)
    CHK_LST_DEVERY NUMBER
    CHK_LST_RESP_TYPE NUMBER
    CHK_LST_RESP_ID NUMBER
    CHK_LST_WEVERY NUMBER
    CHK_LST_WMON VARCHAR2(1)
    CHK_LST_WTUE VARCHAR2(1)
    CHK_LST_WWED VARCHAR2(1)
    CHK_LST_WTHU VARCHAR2(1)
    CHK_LST_WFRI VARCHAR2(1)
    CHK_LST_WSAT VARCHAR2(1)
    CHK_LST_WSUN VARCHAR2(1)
    CHK_LST_WLOCK_DAYS NUMBER
    CHK_LST_MCHK_DAY_NUMBER VARCHAR2(1)
    CHK_LST_MDAY_NUMBER NUMBER
    CHK_LST_MDAY_NUMBER_EVERY NUMBER
    CHK_LST_MTHE NUMBER
    CHK_LST_MTHE_DAY NUMBER
    CHK_LST_MTHE_EVERY NUMBER
    CHK_LST_MLOCK_DAYS NUMBER
    CHK_LST_YCHK_EVERY VARCHAR2(1)
    CHK_LST_YEVERY NUMBER
    CHK_LST_YMONTH_NUMBER NUMBER
    CHK_LST_YTHE NUMBER
    CHK_LST_YTHE_DAY NUMBER
    CHK_LST_YTHE_DAY_MONTH_NUMBER NUMBER
    CHK_LST_YLOCK_DAYS NUMBER
    CHK_LST_MANUAL_INIT VARCHAR2(1)

  • Ora-02084 : database name is missing a component

    hai all,
    i am a newbee to oracle. i am struggling to create a database, any help would be highly appreciated. i have installed Oracle 9i on a RH8.0 system. but while creating database through DBCA, i am getting the error message, "ORA -02084:Oracle database name is missing a component". i ahve gone through the documentation and found that probelm is with ORACLE_SID. i have set all the environment variables(including ORACLE_SID, DB_NAME AND DB_DOMAIN) according to the documentaion and created swap files, temporary space etc.i have set all the environment variables in .bash_profile in ORACLE_HOME.
    i have stopped DBCA and gone through the files. i could see that the database is actually created, with initXXX.ora.441414312 file. but once when i started the database with nomount and checked, i could find the control files missing.
    thanks in advance,
    ramesh.

    Probably you are missing value for db_name (or missing parameter db_name) in parameter file.
    Note you can still create db manualy (without DBCA).

  • Oracle 11G and SqlDataSource: 'ORA-01036: illegal variable name/number'

    [Resolved - http://forums.oracle.com/forums/thread.jspa?messageID=2366331&#2366331]
    I've created a short video to explain my problem with Oracle and SqlDataSource. If you'd rather watch than read, go see the video at http://www.kencox.ca/video/oracelandsqldatasource.html.
    I'm trying to do some extremely simple drag and drop development in Visual Web Developer 2008 with the Oracle 11g database and ODP.NET. According to Oracle, "The data provider can be used with the latest .NET Framework 3.5 version. "
    The SELECT statement works fine, but any attempt to use UPDATE via the SQLDataSource UpdateCommand nets me the infamous 'ORA-01036: illegal variable name/number' error.
    I wouldn't mind using one of my MSDN Support Incidents to have Microsoft take a look at this issue, but I'm not sure the problem is Microsoft's. It seems like Oracle is doing a poor job in its Visual Studio integration.
    Question: Has anyone successfully used an UpdateCommand statement in SQLDataSource against Oracle 11g? If so, let me know!
    Below, you see the entire code as generated in Visual Web Developer 2008. To see it in action, check the video at http://www.kencox.ca/video/oracelandsqldatasource.html.
    Ken
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title>Untitled Page</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
    DataSourceID="SqlDataSource1"
    EmptyDataText="There are no data records to display.">
    <Columns>
    <asp:CommandField ShowEditButton="True" />
    <asp:BoundField DataField="ACCOUNTID" HeaderText="ACCOUNTID"
    SortExpression="ACCOUNTID" />
    <asp:BoundField DataField="ACCOUNTNAME" HeaderText="ACCOUNTNAME"
    SortExpression="ACCOUNTNAME" />
    <asp:BoundField DataField="ACCOUNTLOCATION" HeaderText="ACCOUNTLOCATION"
    SortExpression="ACCOUNTLOCATION" />
    <asp:BoundField DataField="ACCOUNTPHONE" HeaderText="ACCOUNTPHONE"
    SortExpression="ACCOUNTPHONE" />
    <asp:BoundField DataField="ACCOUNTCONTACT" HeaderText="ACCOUNTCONTACT"
    SortExpression="ACCOUNTCONTACT" />
    <asp:BoundField DataField="ACCOUNTWEBSITE" HeaderText="ACCOUNTWEBSITE"
    SortExpression="ACCOUNTWEBSITE" />
    </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
    ConnectionString="<%$ ConnectionStrings:ConnectionString1 %>"
    ProviderName="<%$ ConnectionStrings:ConnectionString1.ProviderName %>"
    SelectCommand="SELECT "ACCOUNTID", "ACCOUNTNAME", "ACCOUNTLOCATION", "ACCOUNTPHONE", "ACCOUNTCONTACT", "ACCOUNTWEBSITE" FROM "ACCOUNTS""
    UpdateCommand="UPDATE ACCOUNTS SET ACCOUNTLOCATION = 'This Place' WHERE (ACCOUNTID = 4)">
    </asp:SqlDataSource>
    </div>
    </form>
    </body>
    </html>//////////using System;
    using System.Collections;
    using System.Configuration;
    using System.Data;
    using System.Linq;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Xml.Linq;
    public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
    Message was edited by:
    kjopc

    Ken,
    One thing to be aware of is Microsoft has produced Visual Studio database tools and data provider for Oracle. In addition, Oracle has produced its own tools. Knowing which products you are using is important because you want to know which company you should be complaining about. :-)
    In your video, you are using all Microsoft tools and data provider, not Oracle's.
    I would recommend using Oracle Developer Tools (ODT) for VS and ODP.NET since these products are much better integrated with .NET and Oracle.
    ODP.NET uses Oracle.DataAccess.Client namespace. System.Data.OracleClient belongs to the MS provider for Oracle, which Mark pointed out. If you drag and drop DB objects using ODT, it will generate ODP.NET code for you (and give you more data source wizard options as well).
    You can download the latest 11g version of ODP.NET and ODT here:
    http://www.oracle.com/technology/software/tech/windows/odpnet/index.html
    These support .NET 3.5 and VS 2008.

  • Help for: ORA-01103: database name PRIMARY in control file is not STANDBY

    Hello all, this will be my first post to the support forum. I'm an associate dba with just 6 months on the job, so if I've forgotten something or not given some infromation that is needed please let me know.
    I've also combed the forums/internet, and some of the answers haven't helped. The Oracle Document ORA-1103 While Mounting the Database Using PFILE [ID 237073.1] says my init.ora file is corrupted, but creating a new init.ora file from the spfile does not help. Neither does just starting from the spfile. I have older copies of the init.ora file and the spfiles that the database was running on previously, so I believe they are good.
    This standby NIRNASD1 has existed previously, I had to refresh the primary NIKNASD2, and then re-instantiate NIRNASD1 after the refresh is complete.
    My env is set correctly, and my ORACLE_SID has been exported to NIRNASD1
    NIKNASD2 = Primary Database
    NIRNASD1 = Secondary/Standby Database
    Goal: Creation of Logical Standby NIRNASD1 after creating Physical Standby from NIKNASD2
    My database versions are 10.2.0.4.0, and the databases are on a Unix server. Both databases are located on separate servers.
    Steps that I have taken:
    I used RMAN to backup our primary database to the staging area:
    $ rman target /
    run {
    backup database
    format '/datatransa/dg_stage/%U'
    include current controlfile for standby;
    sql "alter system archive log current";
    backup archivelog all format '/datatransa/dg_stage/%U';
    I used RMAN to Create Secondary Database utilizing RMAN DUPLICATE command.
    RMAN> run {
    2> allocate auxiliary channel auxdisk device type disk;     
    3> duplicate target database for standby NOFILENAMECHECK;
    4> }
    On Secondary database I started Managed Recovery mode
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    (I used pfile here, thinking that I needed to mount the database to the pfile so that the database would see the change in the dataguard parameters in the init.ora file, the change from logical to physical- I commeneted out the logical and uncommented the physical line)
    # Dataguard Parameters
    For logical standby, change db_name to name of standby database.
    db_name=NIKNASD2 ### for physical, db_name is same as primary
    #db_name=NIRNASD1 ### for logical, db_name is same as unique_name
    SQL> STARTUP MOUNT PFILE = /oraa/app/oracle/product/1020/admin/NIRNASD1/pfile/initNIRNASD1.ora;
    ORACLE instance started.
    Total System Global Area 1577058304 bytes
    Fixed Size 2084368 bytes
    Variable Size 385876464 bytes
    Database Buffers 1174405120 bytes
    Redo Buffers 14692352 bytes
    Database mounted.
    SQL> ALTER DATABASE recover managed standby database using current logfile disconnect;
    I then verified the Data Guard Configuration by using “alter system archive log current;” on the primary database and watching the sequence number change in the secondary database.
    I made sure that:
    •     The primary database was in MAXIMUM PERFORMANCE MODE
    •     Stopped managed recover on the standby database: alter database recover managed standby database cancel;
    •     Built a logical standby data dictionary on the primary database
    •     The db_name in init.ora was changed (this is in our document at my job)
    •     I changed my database name (from physical to logical) in my init.ora pfile (reverse of what I did above)
    # Dataguard Parameters
    For logical standby, change db_name to name of standby database.
    #db_name=NIKNASD2 ### for physical, db_name is same as primary
    db_name=NIRNASD1 ### for logical, db_name is same as unique_name
    I then went to shutdown my standby database and re-start it in a mount exclusive state, which is where I get the ORA-01103 Error (Again I used the pfile, thinking that I needed to tell the database it is now a logical standby):
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> STARTUP EXCLUSIVE MOUNT PFILE = /oraa/app/oracle/product/1020/admin/NIRNASD1/pfile/initNIRNASD1.ora;
    ORACLE instance started.
    Total System Global Area 1577058304 bytes
    Fixed Size 2084368 bytes
    Variable Size 385876464 bytes
    Database Buffers 1174405120 bytes
    Redo Buffers 14692352 bytes
    ORA-01103: database name 'NIKNASD2' in control file is not 'NIRNASD1'
    From what I understand of the process, the name in the control file is correct, I want it to be NIRNASD1. But the database for some reason thinks it should be NIKNASD2. The following are the parts of my init.ora file that include the dataguard parameters:
    # Database Identification
    db_domain=""
    #db_name=NIRNASD1
    #db_unique_name=NIRNASD1
    # File Configuration
    control_files=("/oradba2/oradata/NIRNASD1/control01.ctl", "/oradba3/oradata/NIRNASD1/control02.ctl", "/oradba4/oradata/NIRNASD1/control03.ctl")
    # Instance Identification
    instance_name=NIRNASD1
    # Dataguard Parameters
    #db_name=NIKNASD2 ### for physical, db_name is same as prmary
    db_name=NIRNASD1 ### for logical, db_name is same as unique_name
    db_unique_name=NIRNASD1
    dg_broker_start=TRUE
    db_file_name_convert='NIKNASD2','NIRNASD1'
    log_file_name_convert='NIKNASD2','NIRNASD1'
    log_archive_config='dg_config=(NIRNASD1,NIKNASD2)'
    log_archive_dest_1='LOCATION="/oraarcha/NIRNASD1/" valid_for=(ONLINE_LOGFILES,all_roles) db_unique_name=NIRNASD1'
    #log_archive_dest_2='LOCATION="/oraarcha/NIKNASD2/" valid_for=(standby_logfiles,standby_roles) db_unique_name=NIRNASD1'
    log_archive_dest_2='LOCATION="/oraarcha/NIKNASD2/" valid_for=(standby_logfile,standby_role) db_unique_name=NIRNASD1'
    STANDBY_ARCHIVE_DEST='LOCATION=/oraarcha/NIKNASD2/'
    # Parameters are not needed since this server will NOT become primary
    #log_archive_dest_2='service=NIKNASD2
    # valid_for=(online_logfiles,primary_role)
    # db_unique_name=NIKNASD2'
    fal_server='NIKNASD2'
    fal_client='NIRNASD1'
    I would appreciate any help, or pointing me in the right direction. I'm just missing something. I am reviewing the documents for building a physical and logical standby from oracle. Just not sure where to go from here.
    Thank you
    Edited by: 977917 on Dec 19, 2012 5:49 PM

    First of all, thank you both for answering my post. I've pulled up Mr. Hesse's page and will make it a go-to staple.
    We're in the process of upgrading our databases, but we have 130+ databases and only six Oracle dba's, and I'm one of them. It's a large corporation, and things move at a "slow and tested" pace.
    The pfile parameters listed above are from my secondary/standby database. And I do want to create a logical standby.
    I forgot to mention that we do use DataGuard Broker, but I did not think that would be the cause of why the database was starting up incorrectly, so I did not mention it. My apologies there.
    As far as the db_name, here's my question on that. It's my understanding the the db_name should be the name of the primary database when you are working with a physical standby, but as soon as you convert it to logical, you should change the db_name to the secondary/standby database? Am I correct on that?
    Leading from that, during the process of creating the physical standby and converting the physical standby to the logical standby, should I change the db_name in the secondary/standby database in the spfile and never use the pfile at all? For instance, when I create the physical standby I have to change the db_name in the standby to the PRIMARY database, so that makes me think I should change db_name in the spfile? (If you see above, I changed db_name in the pfile and did a startup pfile)
    This morning I was able to reach out to a fellow DBA (they are were asleep when I posted this last night), and they tried a few things. We had a redirect in the standby directory /oraa/app/oracle/product/1020/dbs folder that looked like this: spfileNIRNASD1.ora -> /oraa/app/oracle/product/1020/admin/NIRNASD1/pfile/spfileNIRNASD1.ora
    She removed the redirect and the startup mount exclusive then worked without the error.
    Thank you again for your help Mr.Quluzade and Mr. Hesse, I appreciate you all taking the time to teach someone new to the craft. I will definitely read up on the link that you sent me.
    Chris Cranford

  • Database name is missing a component....

    I'm doing a 3 server install on Windows 2000 Professional.
    While installing the infrastructure, while it tries to create the database I get the warning "database name is missing a component". I'm never asked to enter a database name, so I'm not sure where I'm going wrong.
    The infrastructure hostname is "in", it's in workgroup "workgroup", and the fully qualified hostname is "in.sdia.com". It's IP address is 192.168.45.10. In the hosts file I added the following line after the default localhost entry:
    192.168.45.10 in.sdia.com in
    In the infrastructure install my instance name is "instance1".
    I can finish the infrastructure install (and it reports it as successful), but I then get the same error doing the information store install, after which it fails on the database creation.
    Any ideas?

    How do you double quote the db name in a single box installation on Windows ? In a single box inst, you do not get the chance to specify the name that is causing the trouble, namely iasd.domainname.in.something. On windows, I tried manually running the same command that, according to logs, was failing, but could not get this to work. I tried all alternatives I could think of (-gdbname iasdb.aaa.in.xxxx.fi / "iasdb.aaa.in.xxxx.fi" / 'iasdb.aaa.in.xxxx.fi' / ""iasdb.aaa.in.xxxx.fi"" / '"iasdb.aaa.in.xxxx.fi"' / "'iasdb.aaa.in.xxxx.fi'") but none of them works. Some quickly spit out an error about an error in the name, while some fail only later with ORA-02084. What should I do ?

  • ORA-01161: database name

    DB 10.2.0.4
    AIX 5.2
    I am trying to make clone.Even I made clone, the database was up but when I saw in the alert log file it was giving continue below error(1) and the size of alert log file was getting increase so I decided to restore missed file and I restored and trying to create control file but this time it is giving below second(2) error.
    1:
    ORA-00376: file 35 cannot be read at this time
    ORA-01111: name for data file 35 is unknown - rename to correct file
    ORA-01110: data file 35: '/vol01/oracle/product/10g/dbs/MISSING00035'
    2:
    SQL> @clone.ctl
    CREATE CONTROLFILE SET DATABASE "dev" RESETLOGS
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01161: database name prod in file header does not match given name of dev
    ORA-01110: data file 35: '/vol01/oracle/index08.dbf'
    Suggest me.

    You could have missed that datafile in create controlfile statement, thats the reason for file naming convention to MISSING
    --okay but now what is the solution. That missing file does not physical exist at error location.                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • External table and error: ORA-01036: illegal variable name/number

    using the following script I get the referenced error:
    create table dol_sch_c_part2
    (DLN NUMBER(14) ,
    PAGE_ID VARCHAR2(20),
    PAGE_SEQ VARCHAR2(20),
    PAGE_ROW_NUM VARCHAR2(20),
    ROW_NUM VARCHAR2(20),
    IMAGE_FORM_ID VARCHAR2(20),
    PROVIDER_TERM_01_NAME VARCHAR2(35),
    PROVIDER_TERM_01_EIN VARCHAR2(9) ,
    PROVIDER_TERM_01_POSITION VARCHAR2(25),
    PROVIDER_TERM_01_STR_ADDRESS VARCHAR2(35),
    PROVIDER_TERM_01_CITY VARCHAR2(20),
    PROVIDER_TERM_01_STATE VARCHAR2(2),
    PROVIDER_TERM_01_ZIP_CODE VARCHAR2(9),
    PROVIDER_TERM_01_PHONE_NUM VARCHAR2(10),
    PROVIDER_TERM_01_TEXT VARCHAR2(250)
    ORGANIZATION EXTERNAL
    ( type oracle_loader
    default directory data_dir
    access parameters
    RECORDS FIXED 510
    FIELDS
    DLN(1:14) char(14),
    PAGE_ID(15:34) char(20) NULLIF PAGE_ID=BLANKS,
    PAGE_SEQ(35:54) char(20) NULLIF PAGE_SEQ=BLANKS,
    PAGE_ROW_NUM(55:74) char(20) NULLIF PAGE_ROW_NUM=BLANKS,
    ROW_NUM(75:94) char(20) NULLIF ROW_NUM=BLANKS,
    IMAGE_FORM_ID(95:114) char(20) NULLIF IMAGE_FORM_ID=BLANKS,
    PROVIDER_TERM_01_NAME(115:149) char(35) NULLIF PROVIDER_TERM_01_NAME=BLANKS,
    PROVIDER_TERM_01_EIN(150:158) char(9) NULLIF PROVIDER_TERM_01_EIN=BLANKS,
    PROVIDER_TERM_01_POSITION(159:183) char(25) NULLIF PROVIDER_TERM_01_POSITION=BLANKS,
    PROVIDER_TERM_01_STR_ADDRESS(184:218) char(35) NULLIF PROVIDER_TERM_01_STR_ADDRESS=BLANKS,
    PROVIDER_TERM_01_CITY(219:238) char(20) NULLIF PROVIDER_TERM_01_CITY=BLANKS,
    PROVIDER_TERM_01_STATE(239:240) char(2) NULLIF PROVIDER_TERM_01_STATE=BLANKS,
    PROVIDER_TERM_01_ZIP_CODE(241:249) char(9) NULLIF PROVIDER_TERM_01_ZIP_CODE=BLANKS,
    PROVIDER_TERM_01_PHONE_NUM(250:259) char(10) NULLIF PROVIDER_TERM_01_PHONE_NUM=BLANKS,
    PROVIDER_TERM_01_TEXT(260:509) char(250) NULLIF PROVIDER_TERM_01_TEXT=BLANKS
    location ('f_dol_sch_c_part2.txt')
    I've tried it with and without the char(*) in the fields section - no change
    thanks

    *** SCRIPT START : Session:GLEN_SELF@RAMBO(8) 8/31/2006 12:16:48 PM ***
    Processing ...
    create or replace directory data_dir as 'c:\dol\'
    create table dol_sch_c_part2
    (DLN NUMBER(14) ,
    PAGE_ID VARCHAR2(20),
    PAGE_SEQ VARCHAR2(20),
    PAGE_ROW_NUM VARCHAR2(20),
    ROW_NUM VARCHAR2(20),
    IMAGE_FORM_ID VARCHAR2(20),
    PROVIDER_TERM_01_NAME VARCHAR2(35),
    PROVIDER_TERM_01_EIN VARCHAR2(9),
    PROVIDER_TERM_01_POSITION VARCHAR2(25),
    PROVIDER_TERM_01_STR_ADDRESS VARCHAR2(35),
    PROVIDER_TERM_01_CITY VARCHAR2(20),
    PROVIDER_TERM_01_STATE VARCHAR2(2),
    PROVIDER_TERM_01_ZIP_CODE VARCHAR2(9),
    PROVIDER_TERM_01_PHONE_NUM VARCHAR2(10),
    PROVIDER_TERM_01_TEXT VARCHAR2(250)
    ORGANIZATION EXTERNAL
    ( type oracle_loader
    default directory data_dir
    logfile 'ext_tab.log'
    access parameters
    RECORDS FIXED 510
    FIELDS
    DLN(1:14),
    PAGE_ID(15:34),
    PAGE_SEQ(35:54),
    PAGE_ROW_NUM(55:74),
    ROW_NUM(75:94),
    IMAGE_FORM_ID(95:114),
    PROVIDER_TERM_01_NAME(115:149),
    PROVIDER_TERM_01_EIN(150:158),
    PROVIDER_TERM_01_POSITION(159:183),
    PROVIDER_TERM_01_STR_ADDRESS(184:218),
    PROVIDER_TERM_01_CITY(219:238),
    PROVIDER_TERM_01_STATE(239:240),
    PROVIDER_TERM_01_ZIP_CODE(241:249),
    PROVIDER_TERM_01_PHONE_NUM(250:259),
    PROVIDER_TERM_01_TEXT(260:509)
    location ('f_dol_sch_c_part2.txt')
    create or replace directory data_dir as 'c:\dol\'
    ORA-01036: illegal variable name/number
    *** Script stopped due to error ***
    *** SCRIPT END : Session:GLEN_SELF@RAMBO(8) 8/31/2006 12:16:49 PM ***

  • Issue in Database trigger for HZ_CUSTOMER_PROFILES PL/SQL: ORA-00936: miss

    Hi
    We are trying to create database trigger on update of table HZ_CUSTOMER_PROFILES when CREDIT_HOLD='Y'
    If this update is done from certain operating unit we are inserting into another custom table when compiling trigger we are getting error as given below
    LINE/COL ERROR
    5/2 PL/SQL: SQL Statement ignored
    17/2 PL/SQL: ORA-00936: missing expression
    SQL> l 5
    5*
    SQL> l 17
    17* COUNTRY,
    Copying code used for creating trigger
    CREATE OR REPLACE TRIGGER "APPS"."SDS_CREDIT_HOLD_ROW"
    BEFORE UPDATE ON HZ_CUSTOMER_PROFILES
    FOR EACH ROW
    WHEN ( new.CREDIT_HOLD='Y')
    BEGIN
    IF FND_PROFILE.VALUE('ORG_ID')=3217 THEN
    INSERT INTO SDS.SDS_CREDIT_HOLD
    (CUSTOMER_NAME,
    CUSTOMER_NUMBER,
    ADDRESS,
    CITY,
    COUNTRY,
    HOLD_BY,
    MAIL_LIST1,
    RESP_VALUE,
    ORG_ID,
    MAIL_LIST2)
    VALUES
    (select rc.customer_name,
    rc.customer_number,
    ra.address1,
    ra.city,
    ra.country,
    fu.user_name,
    fu.email_address,
    TO_NUMBER(FND_GLOBAL.RESP_ID),
    TO_NUMBER(fnd_profile.value('ORG_ID')),
    SDS_EMAIL_ADD_FNC('KAMALAKAR.GUDAPAREDDI,BRIAN.MILLER')
    from HZ_CUSTOMER_PROFILES hcp, ra_site_uses rsa,
    ra_addresses ra, ra_customers rc, fnd_user fu,
    (select distinct site_use_id from HZ_CUST_SITE_USES where site_use_code='BILL_TO'
    and status='A') site_acct
    where hcp.status='A'
    and cust_account_id in (select distinct cust_account_id from HZ_CUSTOMER_PROFILES
    where credit_hold='Y'
    and status='A')
    and hcp.site_use_id=rsa.site_use_id (+)
    and rsa.address_id=ra.address_id (+)
    and rsa.site_use_id= site_acct.site_use_id (+)
    and hcp.cust_Account_id=rc.customer_id
    and hcp.credit_hold='Y'
    and hcp.last_updated_by=fu.user_id
    and hcp.CUST_ACCOUNT_PROFILE_ID=:new.CUST_ACCOUNT_PROFILE_ID
    and hcp.ROWID=:new.ROWID);
    END IF;
    -- commit;
    END SDS_CREDIT_HOLD_ROW;
    tried to search for fix in forums checked all columns in select clause and insert they appear to be fine attaching table structure also for reference
    CREATE TABLE SDS_CREDIT_HOLD
    (CUSTOMER_NAME VARCHAR(50),
    CUSTOMER_NUMBER VARCHAR2(30),
    ADDRESS VARCHAR2(240),
    CITY VARCHAR2(60),
    COUNTRY VARCHAR2(60),
    HOLD_BY VARCHAR2(100),
    MAIL_LIST1 VARCHAR2(240),
    RESP_VALUE NUMBER,
    ORG_ID NUMBER,
    MAIL_LIST2 VARCHAR2(240))
    if any hint for fixing this issue it will be highly appreciated
    Thanks
    Kamalakar.G

    Problem is here:
    WHEN ( new.CREDIT_HOLD='Y')
    Should be using a colon in front of any new or old columns in your PL/SQL and SQL, thus try this:
    WHEN ( :new.CREDIT_HOLD='Y')
    FYI: when using triggers (unless you specify otherwise in the trigger definition itself):
    old values are referenced via :old.column and new values via :new.column

  • ORA-01161: database name ORA10G in file header does not match given name of

    Database: Oracle 10g
    os: windows 2000
    I want to create a new database as same as of a TEST database.
    i have followed the steps below however while create the controlfile i am getting the error ORA-01161
    1.i took the full backup of test system(while databse is normal shutdown)
    2.Prepare new initsid.ora file and change the parameter DN_NAME=newname
    3.prepare new create controlfile script with new database name
    4.startup pfile='initsid.ora' nomount
    5.while executing the controlfile creation script, it gives the error ORA-01161
    how can resolve the problem

    i am already using the REUSE option
    CREATE CONTROLFILE REUSE DATABASE "ora10g1" RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 454
    LOGFILE
    GROUP 1 'C:\ORA10GDB\ORADATA\Backups1\REDO01.LOG' SIZE 10M,
    GROUP 2 'C:\ORA10GDB\ORADATA\Backups1\REDO02.LOG' SIZE 10M,
    GROUP 3 'C:\ORA10GDB\ORADATA\Backups1\REDO03.LOG' SIZE 10M
    -- STANDBY LOGFILE
    DATAFILE
    'C:\ORA10GDB\ORADATA\BACKUPS1\SYSTEM01.DBF',
    'C:\ORA10GDB\ORADATA\BACKUPS1\UNDOTBS01.DBF',
    'C:\ORA10GDB\ORADATA\BACKUPS1\SYSAUX01.DBF',
    'C:\ORA10GDB\ORADATA\BACKUPS1\USERS01.DBF',
    'C:\ORA10GDB\ORADATA\BACKUPS1\EXAMPLE01.DBF',
    'C:\ORA10GDB\ORADATA\BACKUPS1\PLAY01DF.DBF'
    CHARACTER SET WE8MSWIN1252
    Test Database name : ora10g
    New database name :ora10g1
    I am using the same machine to create the new database.

  • 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

Maybe you are looking for

  • Import Basis Support Package 7.00 error

    Hi All, I wanted to apply Basis support package 9 for release 7.00 for our solution manager 4.0 system. When i started, it gave an error in the phase ADDON_CONFLICT? stage.. The message is as below: Phase ADDON_CONFLICTS_?: Explanation of Errors Conf

  • How do I delete all corrupted duplicates from iphoto '09?

    Hello. I am not a computer person so before I say anything, just please don't allow your disdain of me to come through in your replies. Somehow I have 44,000 images in my iPhoto library and I am guessing that half of them are corrupted duplicates (an

  • Server Monitoring Feature Unavailable - CF10 Standard

    Hi, We have recently undergone the process of installing ColdFusion 10 Standard on our new server, and were looking to test performance across the two. Within the ColdFusion Administrator, Server Monitoring>Settings and Server Monitoring>Server Monit

  • Sound Blaster 5.1 Live Ls card with a durabrand home theater sys

    Greetings All I have a sound Blaster 5. Li've Ls card And just bought a durabrand home theater system with a sub wolf and 5 speakers it has a port for pc?s but I all I hear when I plug it into the digital out is very faint sound with a lot of static

  • Updating apps issue (3/26/2015): verified work-around

    If you have the issue where the App Store on your iOS device is displaying an OPEN button rather than an UPDATE button, here is the current work-around. Thanks go to "jguchte2" from the following topic https://discussions.apple.com/thread/6593179?sta