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

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.

  • 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'

  • Rename the Company Name in test company

    I did the backup then restore database from SQL Server. I noticed the test company has same Company Name only the Database Name is different from Original Database Name.  
    Can I rename the Company Name to distinguish with the Original Database now?  I get confused when I did some testing not even to users.
    Thanks,

    Not only you can, buhttps://forums.sdn.sap.com/post!reply.jspa?threadID=1175227#t also you must.  Otherwise you or other people will be confused sooner or later.  It is very easy to change company name.

  • How to check the host name or rename the host name in Enterprise Manager

    Hello,
    How do i check the host name or rename the host name in Enterprise Manager for Oracle 11g?
    Regards,
    Ming Man

    there is a shell script called chgip or something
    like that is there . I used it for IAS. I beleive the
    same is there for database too
    Rajesh AlexIf there is, I have not been able to find it.
    Off the top of my head, changing the host name involves at least the following (others feel free to add on):
    For listener and connectivity
    - listener.ora
    - tnsnames.ora (on all clients as well)
    - potentially ldap.ora (on all clients as well)
    - init.ora parameter LOCAL_LISTENER
    For admin using Enterprise Manager (starting 10g)
    - the contents of the sysman schema
    - the directory name of the OEM agent directory
    - the directory name of the OEM OC4J config directory
    - various config files in the OEM OC4J config directory
    Oracle provides the emca to handle this last set.
    In addition, the following refer to hosts that are [probably] not local
    - init parameter REMOTE_LISTENER (usually just points to a tnsnames.ora entry naming remote hosts)
    - init parm SMTP_OUT_SERVER
    Again, adding to the list might be interesting.

  • How to modify the database name

    Hi people
    Im a developer and it's the first time that I use the Xe version of oracle. I need to modify the database name but I don't know how to make this. Im finding the commands but I don't meet this.
    Anyone can help me?
    Thanks
    Best Regards

    Hi,
    XE is XE is XE ... ;-)
    If you'd like to rename it you may get a database license for at least a STANARD EDITION ONE database, upgrade your XE to SE-ONE and then rename your database.
    But (as it has been noted before) for obvious reasons there's no way to rename an XE database to something else :-)
    Kind regards
    Mike

  • Passing the database name as a PL/SQL procedure parameter

    How do I pass the name of the database as a parameter to a procedure?
    If dbs is the variable name to which I pass the database name as shown in the example,
    CREATE OR REPLACE PROCEDURE Extract_gl_acct_Tbl(dbs varchar2)
    and I use dbs in the code as follows,
    SELECT ACCOUNT,
    SETID
    FROM SYSADM.PS_GL_ACCOUNT_TBL@dbs
    It gives me an error saying 'ORA-04054: database link DBS does not exist'.

    You will need to use dynamic SQL to handle this:
    create or replace ...
    is
    type rc is ref cursor;
    v_rc rc;
    begin
    open v_rc for 'select ... from sysadm.ps_gl_account_tbl@' || dbs;
    fetch v_rc into ... -- some variables
    -- if multiple rows, you'll need to do the fetch in a loop and exit when v_rc%notfound.
    close v_rc;
    end;

  • You do not have sufficient access privileges to rename the iten "name"

    Hi,
    I want to rename my short name in my powerbook and I can't, it shows me You do not have sufficient access privileges to rename the iten "name".
    can somebody help me pls

    You cannot properly change the short name of your account in the Finder; you need to use this application to do it, or change the short name to the desired name in the NetInfo Manager, which is in the /Applications/Utilities/ folder. Your short name is stored in several places in the NetInfo Manager; these are parts of the information for your user account and a few groups.
    If there are no administrator accounts on the machine, use these instructions to add administrator access to one of your accounts.
    (14100)

  • How to rename the column name in oracle 8i?

    hi,
    Does anyone know how to rename the column name in oracle 8i?My method was drop the relationship key first then delete the old column,finally add the new column.
    Thanks for your replay.
    jing

    There is no facilty to rename a column name in Oracle 8i. This is possible from Oracle 9.2 version onwards.
    For you task one example given below.
    Example:-
    Already existed table is ITEMS
    columns in ITEMS are ITID, ITEMNAME.
    But instead of ITID I want ITEMID.
    Solution:-
    step 1 :- create table items_dup
    as select itid itemid, itemname from items;
    step 2 :- drop table items;
    step 3 :- rename items_dup to items;
    Result:-
    ITEMS table contains columns ITEMID, ITEMNAME

  • Changing the Database Name

    Hi Gurus
    I am using oracle 10g on Windows platform. The issue is I need to change my database name. When i gone through the Oracle docs I found there is an utility called 'DBNEWID' . But not getting a clear cut idea. Since my DB is So critical anybody please tell me the exact steps to change the DB-Name.
    Thanks & Cheers
    Antony

    Changing Only the Database Name
    C:\>SQLPLUS/NOLOG
    SQL*Plus: Release 10.1.0.2.0 - Production on Tue Aug 22 10:54:38 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> CONN / AS SYSDBA
    Connected.
    SQL> SELECT DBID,NAME FROM V$DATABASE;
    DBID NAME
    1230404613 DB01
    SQL> SHUTDOWN IMMEDIATE;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Must be : Take Whole Database Backup (Oracle Recommended)
    Otherwise u lost ur database.
    SQL> STARTUP MOUNT;
    ORACLE instance started.
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145488364 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 524288 bytes
    Database mounted.
    --Go Command Prompt
    DBNEWID UTILITY >>>NID ( OS Path : d:\oracle\product\10.1.0\db_1\bin\nid)
    C:\>SET ORACLE_SID=DB01
    C:\>NID TARGET=SYS/ORACLE@DB01 DBNAME=ORADB01 SETNAME=YES
    DBNEWID: Release 10.1.0.2.0 - Production
    Copyright (c) 2001, 2004, Oracle. All rights reserved.
    Connected to database DB01 (DBID=1230404613)
    Connected to server version 10.1.0
    Control Files in database:
    D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL01.CTL
    D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL02.CTL
    D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL03.CTL
    Change database name of database DB01 to ORADB01? (Y/[N]) => Y
    Proceeding with operation
    Changing database name from DB01 to ORADB01
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL01.CTL - modified
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL02.CTL - modified
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL03.CTL - modified
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\SYSTEM01.DBF - wrote new name
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\UNDOTBS01.DBF - wrote new nam
    e
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\SYSAUX01.DBF - wrote new name
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\USERS01.DBF - wrote new name
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\TEMP01.DBF - wrote new name
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL01.CTL - wrote new
    name
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL02.CTL - wrote new
    name
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL03.CTL - wrote new
    name
    Instance shut down
    Database name changed to ORADB01.
    Modify parameter file and generate a new password file before restarting.
    Succesfully changed database name.
    DBNEWID - Completed succesfully.
    Set the DB_NAME initialization parameter in the initialization parameter file (PFILE) to the new database name.
    Note:
    The DBNEWID utility does not change the server parameter file (SPFILE). Therefore, if you use SPFILE to start your Oracle database, you must re-create the initialization parameter file from the server parameter file, remove the server parameter file, change the DB_NAME in the initialization parameter file, and then re-create the server parameter file.
    ---Create New Password File
    cmd>orapwd file=d:\oracle\product\10.1.0\db_1\database\pwddb01.ora password=oracle entries=5
    SQL> STARTUP PFILE=D:\Oracle\product\10.1.0\Db_1\database\initdb01.ora
    ORACLE instance started.
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145488364 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 524288 bytes
    Database mounted.
    Database opened.
    SQL> select dbid,name from v$database;
    DBID NAME
    1230404613 ORADB01
    Note:
    After Change DB Name Take Whole Database bkp.
    Note: If i am missing some step or write wrong step plz. correct me.
    Before doing this refer documentation.
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/dbnewid.htm
    thanx
    Message was edited by:
    user526020
    null

  • How to Rename the Dashboard name

    Hi,
    How to change/rename the dashboard name.
    Thanks,
    Malli

    Hi,
    Go to setting>administration>Manage Presentation Catalog>Presentation_catalog_name>portal(Check show hidden items checkbox otherwise it wont be visible)>Dashboardname
    Click on second icon from left .You can update the dashboard name there.
    Regards,
    Sandeep

  • How to Rename the technical name and description of an infocube?

    Hi,
    How to Rename the technical name and description of an infocube?
    Thanx in advance,
    Ravi.

    Ravi,
    You cant change the Technical name of the cube but you can change the description of the Cube. If you want to have a Cube with the same properties and with different Techname and Description better you do copy from the base cube and rename as per your requirement.
    Regards,
    Gattu.

  • Renaming the Standard Names in a BSP

    Hi All,
    I just wanted to know, if we can rename the standard names in a BSP application's. For Eg: a cfolder module is getting implemented to a automotive sector. so, i want to rename the standard names like competative scenario to Dealer Network
    Attached file for your reference.
    If possible, please explain me the steps, as i am not a Portal nor a BSP Knowledged.
    Rgs,
    Ravi

    Hi All,
    I just wanted to know, if we can rename the standard names in a BSP application's. For Eg: a cfolder module is getting implemented to a automotive sector. so, i want to rename the standard names like competative scenario to Dealer Network
    Attached file for your reference.
    If possible, please explain me the steps, as i am not a Portal nor a BSP Knowledged.
    Rgs,
    Ravi

  • How to know the database name?

    I have installed oracle 10g and developer suite.. I am trying to create forms now.
    But its error out: TNS: could not resolve the connect identifier specified!!!
    I forgot the Data base name.. How can I know the database name??
    Thanks in Advance!!!!!!!!!!

    I have installed oracle 10g and developer suite.. I'm sorry, but you are going to have be more specific as what you installed!
    If you installed Oracle Database 10g Express Edition then it is not (by default) configured to allow a connection through SQL*Plus. It is primarily configured to open a connection through the "Go To Database Homepage" url/link in the Start Menu => Oracle Database 10g Express Edition => Go To Database Homepage. In order to connect to the database from SQL*Plus (which is included with Oracle Developer Suite 10g) you will need to run the Net Configuration Assistant to configure your TNSNAMES.ora and SQLNET.ora files. Go to Start Menu => Oracle - DevSuiteHome1 => Configuration and Migration Tools => Net Configuration Assistant to run the assistant. After you run the assistant, test to make sure can connect through SQL*Plus before you attempt to connect through Forms.
    Hope this helps,
    Craig...

  • Rename the column names in Embedded BPM Worklist

    Hi,
    I have embedded the BPM worklist in ADF Page.
    My requirement is to rename the column names in the task list.
    For example, the column 'state' should be renamed as 'Status' and the column 'from User' should be renamed as 'From'.
    Is there any possibility to achieve this? Please let me know.
    Regards,
    Tamil

    See if the solution in this post helps -
    Re: Customize workspaceAlso , its better to post these questions in the BPM forum -
    Business Process Management SuiteEdited by: Sudipto Desmukh on Apr 27, 2012 8:57 AM

Maybe you are looking for

  • SOAP Adapter = Webservice???

    Hi, I have created a service using the SOAP Adapter. My question is now: Is this service a webservice. If yes, how would I be able to obtain the related WSDL? The outbound interface is accessed by the following URL: http://myserver/XISOAPAdapter/Mess

  • How to pass idoc parameters in a validation script? (10gR3 site studio)

    Obviously idoc won't work in the actual validation script, so I'd like to use it to generate the parameters to pass to a custom function. If I add <!--$siteId--> as a parameter in design mode, it'll be added as: &lt;!--$siteId--&gt; which doesn't wor

  • About odc:tabbedPanel in Websphere 5.1.2

    Hi, We are using the IBM Websphere studio 5.1.2 for JSF, and one of the component for Tabbed panel is <odc:tabbedPanel> It displays all the tabs in one row. Did any of you figure out, how to display table in more than 1 row. Thank You, srigold.

  • Placing zeros in the excel file

    Just a quick question, when I tried to use "write file" component of transactions to append data (eg. 00012345) to .csv file, Excel automatically converted it from "00012345" to "12345" .  but i unable to display as '00012345'.in the excel file. can

  • Communication between two windows

    Hi, I have a form to store student's personal information. In the middle of the form I have a link named "upload image". When click this link, a new window will pop out for user to upload up to 6 files. I use JSPSmartUpload to upload image, which wor