Renaming a database

Is there anyway to rename a database using Oracle 9i on Linux?
Thanks

You can also use the nid utility. This is from windows, there should be one on linux aswell - check the documentation on how to use it.
C:\>nid
DBNEWID: Release 9.2.0.1.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved
Keyword Description (Default)
TARGET Username/Password (NONE)
DBNAME New database name (NONE)
LOGFILE Output Log (NONE)
REVERT Revert failed change NO
SETNAME Set a new database name only NO
APPEND Append to output log NO
HELP Displays these messages NO

Similar Messages

  • Can we rename the database name in oracle 10g

    Hi,
    Can we rename the database name in oracle 10g.
    Please help

    Yes as already said, using DBNEWID Utility can renamed the database name.
    You can also take a look at the Oracle Metalink Note:429674.1 (Which was written by me) - Subject: How We Used the Oracle DBNEWID Utility to Change the Database Name
    Regards,
    Sabdar Syed.

  • How to rename a database

    Hello Gurus,
    Due to some reason I need to rename my database.Can anybody tell me how to rename a database.
    Secondly,What should be the criteria to fix the size of archive log.i.e.What should we keep in mind while deciding the size of archive log?
    Thanx

    For the first question:
    http://www.google.co.uk/search?hl=en&q=oracle+rename+database&btnG=Google+Search&meta=
    With regards to the archive logs, these are needed to recover your backed up datafiles. So, what you keep is largely determined by your backup strategy. Check out:
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14220/backrec.htm#sthref2338

  • Rename of database

    how can database be renamed. i m using oracle10g.

    Hi
    How does it work in case of rac instances. I guess it does not changes because it is the datbase name we are changing and database name is the same for rac/non-rac. How about the instance names though? Is there anything that we need to be aware when changing instance names? The reason I ask is we have _ in our instance name and database name and I want to remove the _.
    I can use the nid tool to rename the database. For the instance name, I should just change the init.ora and recreate password file (actually this should be done for db name change and not really instance name change).
    Anything else that need to be changed ?
    MSK

  • How can i rename my database  ???

    hi,
    can any body can help me rename my database ...???
    - chetan

    CHETAN YADAV wrote:
    hi,
    can any body can help me rename my database ...???
    - chetanTo changing database name you have to use create controlfile set database statement.Perform below steps.
    Consider that we have database which name is "TEST"
    1.Backup controlfile to trace
    C:\Documents and Settings\chinar>set ORACLE_SID=TEST
    C:\Documents and Settings\chinar>sqlplus "sys/sm as sysdba"
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Aug 26 11:33:04 2010
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select name from v$database;
    NAME
    TEST
    SQL> alter database backup controlfile to trace as 'c:\c.txt' reuse;
    Database altered.2.Edit your pfile change db_name=NEWTEST and remove your old all controlfiles,otherwise you will get an error,shutdown your database.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup  nomount pfile='D:\oracle\product\10.2.0\admin\TEST\pfile\init
    .ora.76201010739'
    ORACLE instance started.
    Total System Global Area  138412032 bytes
    Fixed Size                  1288172 bytes
    Variable Size              62916628 bytes
    Database Buffers           67108864 bytes
    Redo Buffers                7098368 bytes
    SQL> CREATE CONTROLFILE SET DATABASE "NEWTEST" RESETLOGS
      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\TEST\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO03.LOG'  SIZE 50M
    11  DATAFILE
    12    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.DBF',
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSAUX01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USERS01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\EXAMPLE01.DBF';
    Control file created.
    SQL> alter database open resetlogs;
    Database altered.
    SQL>
    SQL> select name from v$database;
    NAME
    NEWTEST
    SQL>

  • Rename a database

    I have a windows 10g database I am trying to rename and I am stuck on the creation of the new control file. *Could some please advise me how you execute the sql to create the new control file. Steps done so fare a documented below.
    Thanks a lot! Kathie
    1)Created a new pfile and edited it replacing (old db) name with (new db) name.
    Renamed new pfile so it included the (new db) name.
    2)Copied 10.2.0/admin/old db/= as 10.2.0/admin/(new db)
    Deleted all files in new dump directories.
    3)Copied oradata/old db/.. files to oradat/new db/..files
    (this included ctl files and redo logs)
    I plan to delelet the oradata/old db/= after successfull rename.
    4)USING SQLPLUS IN MOUNT state: alter database backup controlfile to trace;
    Edited trace file replacing old db with new db and removing header and footer info.
    Renamed trace file CR_CONTROL.SQL
    5)I added new (db name) to tnsnames.ora file.
    6)Put database in nomount state.
    Set environment variable to (new db) name on windows server.
    Started a new cmd session to pickup the new oracle sid.
    7)PROBLEMS HERE>>>>>>>>>>>>>>>>>>
    Had to set oracle_sid back to (old db) using command line to get signed on to sql.
    Then ran the script @e:oracle/product/10.2.0/admin/udump/cr_control.sql
    Errors:
    "CREATE CONTROL FILE FAILED"
    "DATABASE NAME (NEW DB) DOES NOT MACHE PARAMETER DBNAME=(OLD DB)"
    I renamed the old db init.ora files and spfile - no luck.
    I renamed the old and new oradata/db/contorl files - no luck.
    help:)

    Daljit, thanks for your help! I hate to ask for such specifics but I am hung up on how I get signed on to sql while pointing at the correct sid. .
    Will this work?
    set envirnonment variable to new sid.
    set sid on command line to old sid.
    sign on to sqlplus using old sid.
    startup database nomound using new db's pfile.
    execute: oradmin -new -sid %ORACLE_SID% -INTPWD XXXXXX -STARTMODE M;
    (The %oracle_sid% will be replaced with the correct sid????)
    Check service and now using same sql session run cr_control.sql to create new control files.

  • Error while renaming Search databases

    followed below steps to rename search dbs.
    http://blogs.technet.com/b/wbaer/archive/2013/12/18/how-to-rename-search-service-application-databases-on-the-same-server.aspx
    But getting error while pointing to new renamed DB. Please advice
    $SearchService | Set-SPEnterpriseSearchServiceApplication -
    DatabaseName SSA -DatabaseServer SPDEV
    Set-SPEnterpriseSearchServiceApplication : The remote procedure call failed.
    (Exception from HRESULT: 0x800706BE)
    At line:1 char:18
    + $SearchService | Set-SPEnterpriseSearchServiceApplication -DatabaseName SSA
    -Dat ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidData: (Microsoft.Offic...viceApplication:
       SetSearchServiceApplication) [Set-SPEnterpriseSearchServiceApplication], C
      OMException
        + FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.SetSearchS
       erviceApplication

    did you stop the Search service Application before staring the process. 
    Are you on the SharePoint Server? try to Run the SharePoint powershell console as Administrator.
    Also make sure the account under which you are running powershell having the rights on the new Databases.
    try this one and see if you can get the searchservices application name:
    $SearchService = Get-SPEnterpriseSearchServiceApplication <SearchServiceApplicationName> 
    $SearchService
    here is the technet for the same process.
    http://technet.microsoft.com/en-us/library/jj219654(v=office.15).aspx
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How to rename oracle9i database in windows 2000

    Hi All,
    I am trying to rename an oracle database on windows 2000. I am having some issues...can anyone help me how to fix it.
    Trace file is created from existing database (ORCLDB) using alter database backup controlfile to trace
    and the following steps are followed....
    Modify (and optionally rename) the created trace file:
    Find the line reading # Set #2. RESETLOGS case
    Remove all lines above this line.
    Change the line containing the database name from CREATE CONTROLFILE REUSE DATABASE "ORA9" RESETLOGS NOARCHIVELOG
    to
    CREATE CONTROLFILE SET DATABASE "CAT" RESETLOGS NOARCHIVELOG
    Note, in my case, the database is running in noarchive log mode. The corresponding line reads ARCHIVELOG otherwise.
    Remove the line reading RECOVER DATABASE USING BACKUP CONTROLFILE.
    Remove lines starting with #.
    the edited .trc file is saved as rename.sql
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "NEWORCLDB" RESETLOGS NOARCHIVELOG
    -- SET STANDBY TO MAXIMIZE PERFORMANCE
    MAXLOGFILES 16
    MAXLOGMEMBERS 2
    MAXDATAFILES 30
    MAXINSTANCES 1
    MAXLOGHISTORY 454
    LOGFILE
    GROUP 1 'd:\oracle\databases\redo1.ora' SIZE 100M,
    GROUP 2 'd:\oracle\databases\redo2.ora' SIZE 100M,
    GROUP 3 'd:\oracle\databases\redo3.ora' SIZE 100M
    -- STANDBY LOGFILE
    DATAFILE
    'd:\oracle\datafile\system.dbf',
    'd:\oracle\datafile\undo.dbf',
    'd:\oracle\datafile\data.dbf'
    CHARACTER SET WE8ISO8859P1
    ALTER DATABASE OPEN RESETLOGS;
    ALTER TABLESPACE TEMP ADD TEMPFILE 'd:\oracle\Ora90\databases\temp.dbf'
    SIZE 104857600 REUSE AUTOEXTEND OFF;
    shutdown the ORCLDB databas from windows services
    Moved the old control file to other location
    The database name are changed in the new initneworcldb.ora
    Bcaz there is no SVRMGRL in 9i....How do i connect ??
    Which instance should i connect?
    I tried from c:\>sqlplus "/ as sysdba"
    Its asking for username and password?
    Which username/password@instnace should i login?
    What is the username and password....should i give for username....while funning sqlplus " / as sysdba"
    Thanks,
    Message was edited by:
    user444626

    As you said added the entry in the sqlnet.ora file
    sqlnet.authentication_services=(NTS)
    C:\>ORADIM -NEW -SID newdb -SRVC OracleServicenewdb -STARTMODE a
    C:\>set ORACLE_SID=NEWDB
    C:\>SQLPLUS /NOLOG
    SQL*Plus: Release 9.0.1.0.1 - Production on Fri Dec 9 20:28:18 2005
    (c) Copyright 2001 Oracle Corporation. All rights reserved.
    SQL> @C:\CR_CONTROL.SQL
    ORA-01031: insufficient privileges
    SP2-0734: unknown command beginning "STANDBY LO..." - rest of line ignored.
    SP2-0640: Not connected
    SP2-0734: unknown command beginning "Recovery i..." - rest of line ignored.
    SP2-0734: unknown command beginning "or if the ..." - rest of line ignored.
    SP2-0640: Not connected
    Media recovery complete.
    SP2-0734: unknown command beginning "All logs n..." - rest of line ignored.
    SP2-0640: Not connected
    SP2-0734: unknown command beginning "Database c..." - rest of line ignored.
    SP2-0640: Not connected
    SQL>
    Message was edited by:
    user444626

  • 10g Rename Offline Database Object Broken

    I am trying to rename an offline database object. I opened the editor on the object, updated its name and the names of a few of its foreign keys. At first, it appeared to work. The object in the Navigator had the new name, and when I opened a diagram containing the object, all the new names appeared correctly. I saved everything, closed the IDE and reopened it (which is usually the way I get TopLink to correctly identify my changes). When I reopened the IDE, my offline db objects were back to their old names. I tried renaming them again, and this time when I hit the save icon, I got the following error:
    Local Exception Stack:
    Exception [TOPLINK-6004] (Oracle9iAS TopLink - Release 2 (9.0.4.0) (Build 030612)): oracle.toplink.exceptions.QueryException
    Exception Description: The object [MWTable[30B652] (AVEGA.USER_DIMENSION_SELECTIONS)], of class
    [class oracle.toplink.workbench.model.db.MWTable], with identity hashcode (System.identityHashCode()) [3,192,402],
    is not from this UnitOfWork object space, but the parent session's.  The object was never registered in this UnitOfWork,
    but read from the parent session and related to an object registered in the UnitOfWork.  Ensure that you are correctly
    registering your objects.  If you are still having problems, you can use the UnitOfWork.validateObjectSpace() method to
    help debug where the error occurred.  For more information, see the manual or FAQ.
         at oracle.toplink.exceptions.QueryException.backupCloneIsOriginalFromParent(QueryException.java:152)
         at oracle.toplink.publicinterface.UnitOfWork.getBackupClone(UnitOfWork.java:1505)
         at oracle.toplink.publicinterface.UnitOfWork.calculateChanges(UnitOfWork.java:426)
         at oracle.toplink.publicinterface.UnitOfWork.getChanges(UnitOfWork.java:1560)
         at oracle.toplink.workbench.ui.WorkbenchSession.saveProject(WorkbenchSession.java:675)
         at oracle.toplink.addin.persistence.MWJDeveloperPersistence.save(MWJDeveloperPersistence.java:226)
         at oracle.toplink.tsceditor.persistence.PersistenceManager.save(PersistenceManager.java:1047)
         at oracle.toplink.addin.manager.MWJDeveloperMediator.saveMWProjectFor(MWJDeveloperMediator.java:394)
         at oracle.toplink.addin.node.MWProjectNode.save(MWProjectNode.java:345)
         at oracle.ide.cmd.SaveAllCommand.saveAll(SaveAllCommand.java:64)
         at oracle.ide.cmd.SaveAllCommand.doit(SaveAllCommand.java:118)
         at oracle.ide.CommandProcessor.invoke(CommandProcessor.java:376)
         at oracle.ide.CommandProcessor.invoke(CommandProcessor.java:112)
         at oracle.ide.Ide.handleEvent(Ide.java:1884)
         at oracle.ide.addin.BaseController.handleEvent(BaseController.java:99)
         at oracle.ideimpl.navigator.NavigatorController.handleEvent(NavigatorController.java:133)
         at oracle.ide.IdeAction.performAction(IdeAction.java:829)
         at oracle.ide.IdeAction$1.run(IdeAction.java:781)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)What do I need to do to safely rename an offline database object?

    Hi John,
    Thank you for taking the time to reporting this problem that you have encountered. The exception you have listed below is the result of changes not being communicated correctly between your offline database object modeling diagram and the TopLink Mapping Editor. We have addressed this problem and the solution will be available for you in the next JDeveloper release. For the meantime, your best bet would be to make any necessary changes to your database model prior to mapping those tables. I know that this is not exactly ideal, but it will ensure that you do not encounter this problem. I hope this helps and let me know if I can provide you with any additional information.
    Thanks,
    John Bracken
    Toplink Development Team

  • How to rename a Database - 10g

    Hello Experts,
    Can anyone please provide me all steps to rename a stand alone database. Any pointers would be of much help.
    Thanks

    D:\>NID
    DBNEWID: Release 10.2.0.1.0 - Production on Thu Jan 5 13:11:53 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Keyword Description (Default)
    TARGET Username/Password (NONE)
    DBNAME New database name (NONE)
    LOGFILE Output Log (NONE)
    REVERT Revert failed change NO
    SETNAME Set a new database name only NO
    APPEND Append to output log NO
    HELP Displays these messages NO

  • Rename the database name

    I am installed oracle10g on widows-xp and i am created database my database name is orcl2
    now i want to change the database name orcl2 to orcl1
    i am following these steps...
    1)SHUTDOWN IMMEDIATE
    2)STARTUP MOUNT
    3)% nid TARGET=SYS/password@orcl1 DBNAME=orcl2 SETNAME=YES
    4)SHUTDOWN IMMEDIATE
    5)Set the DB_NAME initialization parameter in the initialization parameter file to the new database name.
    6)Create a new password file.
    7)STARTUP
    but i got an error at #3 ie
    SP2-0734:unknown command ignoring '% nid....
    and
    tell me how to create new password file
    and
    i have another doubt ie
    Are these steps applicable for all Oracle versions? or is there any specific version these steps compatible?
    could you please help me
    Thanks
    Rakesh

    Hi
    create a new password file by
    orapwd utility
    Usage: orapwd file=<fname> password=<password> entries=<users> force=<y/n>
    where
    file - name of password file (mand),
    password - password for SYS (mand),
    entries - maximum number of distinct DBA and force - whether to overwrite existing file (opt),
    OPERs (opt),
    There are no spaces around the equal-to (=) character.
    Thanks
    Kuljeet Pal Singh

  • DB can not open after renaming the database name

    Hi all,
    I wanted to change the db name so i created new controlfile with trace and set it as.I have created controlfile successfully,my db opened successfully but when i shut it down and again tried it to open i saw below error message
    CREATE CONTROLFILE SET DATABASE "db2" RESETLOGS NOARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\REDO01.LOG' SIZE 50M,
    GROUP 2 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\REDO02.LOG' SIZE 50M,
    GROUP 3 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\REDO03.LOG' SIZE 50M
    -- STANDBY LOGFILE
    DATAFILE
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\SYSTEM01.DBF',
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\UNDOTBS01.DBF',
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\SYSAUX01.DBF',
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\USERS01.DBF',
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB2.DBF',
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB21.DBF',
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB211.DBF',
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB212.DBF',
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB213.DBF',
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB214.DBF',
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB215.DBF'
    CHARACTER SET WE8MSWIN1252;
    ALTER DATABASE OPEN RESETLOGS;
    SQL> @e:\creatdbdb2.sql;
    Control file created.
    Database altered.
    SQL> select file_name from dba_data_files;
    FILE_NAME
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB215.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB214.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB213.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB212.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB211.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB21.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\DB2.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\USERS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\SYSAUX01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\UNDOTBS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\db2\SYSTEM01.DBF
    11 rows selected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 612368384 bytes
    Fixed Size 1250428 bytes
    Variable Size 222301060 bytes
    Database Buffers 381681664 bytes
    Redo Buffers 7135232 bytes
    Database mounted.
    ORA-00313: open failed for members of log group 2 of thread 1
    ORA-00312: online log 2 thread 1:
    'C:\ORACLE\PRODUCT\10.2.0\DB_3\DATABASE\LOG2db2.ORA'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.

    my database is opening file now....but i have one Q i have already created init.ora for db2 database as initdb2.ora and given all controlfile location same....but why i was facing the issue? my olde initdb2.ora as below
    db_cache_size=436207616
    java_pool_size=4194304
    large_pool_size=4194304
    shared_pool_size=159383552
    streams_pool_size=0
    background_dump_dest='e:/db2/bdump'
    compatible='10.2.0.1.0'
    control_files='e:\db2\control01.ctl','e:\db2\control02.ctl','e:\db2\control03.ctl'
    core_dump_dest='e:\db2\cdump'
    db_block_size=8192
    db_file_multiblock_read_count=16
    db_name='db2'
    #db_recovery_file_dest='e:\db2\flash_recovery_area'
    db_recovery_file_dest_size=2147483648
    dispatchers='(PROTOCOL=TCP) (SERVICE=db2XDB)'
    job_queue_processes=10
    log_archive_format='ARC%S_%R.%T'
    open_cursors=300
    pga_aggregate_target=203423744
    processes=150
    remote_login_passwordfile='EXCLUSIVE'
    sga_target=612368384
    undo_management='AUTO'
    undo_tablespace='UNDOTBS1'
    user_dump_dest='e:\db2\udump'

  • Can I rename a physical Standby database without having to recreate?

    Hi all,
    One of my DBA's created a new standby database yesterday. He was supposed to create the standby database with a unique name from the primary system, but he didn't. So right now, DataGuard is running and replicating, and the standby has the exact same database name as primary.
    I'd like to get this configured the way we had planned, to rename the standby database to something unique. I see Metalink Doc ID 15390.1, showing how to rename a database, but I'm not sure if this is possible in the standby environment? Has anyone ever done this? Anything different that needs to be accounted for, in the physical standby DB?
    I'm on 10.2.0.3, on Windows 2003.
    Any help/advice is appreciated!!
    Thanks,
    Brad

    Dear TheBlakester,
    You have to write it on the spfile and bounce the database. You should also have to change the log_archive_config parameter with the new standby db_unique_name.
    From the online Oracle documentation;
    For example, if the DB_UNIQUE_NAME parameter has not been defined on either database, the following SQL statements might be used to assign a unique name to each database.
    Execute this SQL statement on the primary database:
    SQL> ALTER SYSTEM SET DB_UNIQUE_NAME='CHICAGO' SCOPE=SPFILE;
    Execute this SQL statement on the standby database:
    SQL> ALTER SYSTEM SET DB_UNIQUE_NAME='BOSTON' SCOPE=SPFILE;
    Step 4   Verify that the LOG_ARCHIVE_CONFIG database initialization parameter has been defined on the primary and standby database and that its value includes a DG_CONFIG list that includes the DB_UNIQUE_NAME of the primary and standby database.
    For example, if the LOG_ARCHIVE_CONFIG parameter has not been defined on either database, the following SQL statement could be executed on each database to configure the LOG_ARCHIVE_CONFIG parameter:
    SQL> ALTER SYSTEM SET
      2> LOG_ARCHIVE_CONFIG='DG_CONFIG=(CHICAGO,BOSTON)';After than that it is better for you to check following items just in case;
    v$archived_log
    v$dataguard_status
    Data Guard log file & Alert.log file.Hope That Helps.
    Ogan

  • How do I rename an XE database on a Windows 2003 Server?

    Ok. I'm attempting to rename a freshly installed XE database on a Windows 2003 Server. It looks like there is no getting around the fact that the database gets named "XE" during installation. Because there could potentially be multiple installations of XE in my organization, I thought it'd be a good idea to disambiguate the installations by renaming them to match their function. In this particular case, I'd like to rename the database to "CTXMGMT". It will be a data repository for our Citrix farm administration programs.
    Here is what I've performed thus far:
    1. Installed Oracle 10g XE on one of our Windows 2003 Server, Standard Edition machines.
    2. Verified that the installation was performed correctly by making sure the 'Database Home Page' loads correctly through Internet Explorer, and by performing a few Select statements on the database (i.e. select name from v$database;)
    * * I then began following instructions from this document (http://www.utexas.edu/its/unix/reference/oracledocs/v92/B10501_01/server.920/a96652/ch14.htm#1004735) to rename the database. Note: I'm only trying to change the name of the database, not the ID.
    3. Shutdown the database
    4. Opened the database in MOUNT mode
    5. Ran the NID utility. Here's the actual input/output to/from the NID utility:
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>nid target=sys/manager@xe DBNAME=CTXMGMT SETNAME=YES
    DBNEWID: Release 10.2.0.1.0 - Production on Mon Jul 10 15:55:10 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to database XE (DBID=2476560070)
    Connected to server version 10.2.0
    Control Files in database:
    C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
    Change database name of database XE to CTXMGMT? (Y/[N]) => Y
    Proceeding with operation
    Changing database name from XE to CTXMGMT
    Control File C:\ORACLEXE\ORADATA\XE\CONTROL.DBF - modified
    Datafile C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\UNDO.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\USERS.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\TEMP.DBF - wrote new name
    Control File C:\ORACLEXE\ORADATA\XE\CONTROL.DBF - wrote new name
    Instance shut down
    Database name changed to CTXMGMT.
    Modify parameter file and generate a new password file before restarting.
    Succesfully changed database name.
    DBNEWID - Completed succesfully.
    6. After running the NID utility from a separate DOS Window, I attempt to shutdown the newly renamed database from the first DOS Window I used in steps 3 & 4 from above (i.e. to shutdown the database and then start it in MOUNT mode) but I receive this error:
    ORA-03113: end-of-file on communication channel
    This is somewhat expected since the SQL*Plus connection in this window probably had "the bottom pulled out from under it" when the database was renamed.
    However at this point I'm unsure about what state the database is in. Is it down? Is it up? Logic would sort of dictate that the database was left in the MOUNT state, which is the state it was in when the database name was changed. However, the only way I'm able to get back in to the database is by doing the following
    a. Opened a new DOS window
    b. entered "set ORACLE_HOME=C:\oraclexe\app\oracle\product\10.2.0\server"
    c. entered "set ORACLE_SID=XE"
    d. entered " sqlplus "/ as sysdba" "
    e. at SQL> prompt, entered "startup"... which produces:
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1287016 bytes
    Variable Size 92277912 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 2904064 bytes
    ORA-01103: database name 'CTXMGMT' in control file is not 'XE'
    SQL>
    From here I don't know what to do. According to the ORA-01103 error message, it looks like I need to change the database name in the control file to "CTXMGMT", but I'm not sure how I should go about that. The control file is a binary file, so I can't just open it up with Notepad and type in a new database name.
    I suspect that even once that is done that the listener.ora (and maybe the tnsnames.ora file?) will have to be edited to include the new "CTXMGMT" name, but I'm not sure how exactly those files should look to incorporate the new database name.
    Also, would the names of services have to be changed in Windows as well? (i.e. Would the Windows service named "OracleServiceXE" have to be renamed to "OracleServiceCTXMGMT" ?)
    In short, I really just need to know how to rename an XE database on Windows appropriately. The steps described above represent as far as I've gotten. If I'm going about it incorrectly could someone shed some light on the correct steps to follow? The more detailed the better. Thanks.
    - Gary

    Okay, I've....
    1) Reinstalled XE, to start from scratch
    2) Went in to SQL*Plus, did a "create pfile from spfile;"
    3) Shutdown the database
    4) Started it up in MOUNT mode
    5) Ran NID, to change the database name from 'XE' to 'CTXMGMT'
    6) Shutdown the database again
    7) Edited the pfile to change the database name (i.e. "db_name='CTXMGMT'")
    8) Started up the database
    And that worked! So that's good... but now my question is:
    How do I change the SID for the database? Currently, the instance name for the database is still 'XE'....
    SQL> select instance_name
    2 from v$instance;
    INSTANCE_NAME
    xe
    I'd like it so a connection could be made to the database with the tnsnames.ora file looking like this:
    CTXMGMT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(Host = rodin)(Port = 1521))
    (CONNECT_DATA = (SID = CTXMGMT))
    Could someone explain how to get the database to this state? Thanks.
    - Gary

  • How to Rename Oracle 11g Database in the Linux

    I want to Rename Database.How I must do this problem.Please help me
    Edited by: 850512 on Apr 7, 2011 1:18 AM
    Edited by: 850512 on Apr 7, 2011 1:22 AM

    850512 wrote:
    Step by step pleaseBefore you proceed any further, you need to define the real problem you are trying to solve. "renaming" a database may or may not be the appropriate solution - not to mention that "rename the database" could mean several things and we don't know your definition of that phrase.

Maybe you are looking for

  • I dont have a credit card to register in itunes store what should i do?

    I dont have a credit card to register in itunes store what should i do? there is no NONE option when selecting the credit card so i cannot download any app on my itouch

  • Is the time column in VA05 the time the sales order created?

    i have added a time column in VA05. May i know whether it is the time the sales order is created? How do i know if it it the created time? Need to know the sales order created time, for example at 7:00. Thank you

  • Variables for Topic Titles

    Hi all, In Robohelp, the Fields and Variables function only contains some variables relating to Date, Time. With the topic headings, I want to add them automatically to each topic by inserting them as a variable in the master page, and then apply thi

  • Urgent: Video deleted

    Hi, I need help with something that happened just an hour ago. FCp seems to have deleted all the videos that were in the timeline, without my knowledge. After some hair pulling moments, i have concluded that all the video have been deleted. Let me te

  • Help Solving PDE

    HI All, I m trying to solve the attached equation, but I am not able to crack it in LV. I would really appreciate some help. Attachments: Eqn.png ‏9 KB