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>

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 can I quit Microsoft Database Daemon & SyncServicesAgent so that I can update Microsoft word?

    how can I quit Microsoft Database Daemon & SyncServicesAgent so that I can update Microsoft Office for macs?

    JamjarPW wrote:
    I tried all the solutions above, and the many others that are posted on various other forums (involving shift keys, activity monitor, dragging and dropping apps, renaming etc).  None of them worked.  SyncServicesAgent and the Daemon App would reactivate evcery single time, within seconds.
    What worked for me was to start the update installation and get to the point where it require syncservices etc to be closed.  At this point, i DISCONNECTED FROM THE INTERNET.  (I also quit syncservices and the database daemon in Activity Monitor but I don't know if that step was necessary).  Then I went back ot the update installation, clicked continue and it all went fine.
    So the answer seems to be: go offline.
    Good luck
    No, the answer is to quit the MS daemons that are running (database and syncservces), on or offline is not relevant.
    You can't quit the daemons if Office is running, so exit Office first.

  • How can I rename buttons in dialog popup ?

    Hello.
    I want rename buttons "OK", "Cancel" with my names in popups.
    I create new values in domen WDR_POPUP_BUTTON_KIND
    Next enhance interface IF_WD_WINDOW with new attributes:
    CO_BUTTON_CP type WDR_POPUP_BUTTON_KIND
    But i have problem in CL_WDR_INTERNAL_WINDOW->IF_WD_WINDOW~SET_BUTTON_KIND:
      case me->buttons-button_kind.
        when co_buttons_abortretryignore.
          wa_button-button      = co_button_abort.
          wa_button-button_text = cl_wdr_texts=>get_text( '201' ).
          wa_button-tooltip     = cl_wdr_texts=>get_text( '201' ).
          wa_button-is_enabled  = abap_true.
    This code show only predefined type of buttons can use. 
    How can I rename buttons in dialog popup ?

    When you subscribe to button event  you can rename the button
    * Popup
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_window         TYPE REF TO if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      lo_window         = lo_window_manager->create_window(
        window_name          = 'W_POPUP'
        message_display_mode = if_wd_window=>co_msg_display_mode_selected
        button_kind          = if_wd_window=>co_buttons_ok
        message_type         = if_wd_window=>co_msg_type_none
        default_button       = if_wd_window=>co_button_ok
      DATA:  l_api TYPE REF TO if_wd_view_controller.
      l_api = wd_this->wd_get_api( ).
    " subscribe to button event
      lo_window->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_ok
                   BUTTON_TEXT       = u2018Approveu2019 " renaming the button text
                   action_name       = 'ON_OK_POPUP'
                   action_view       = l_api
                   is_default_button = abap_true ).
      lo_window->open( ).
    Radhika

  • How can I rename open PDF files on my android tablet

    How can I rename open files on android tablet

    However, you can rename a file from document browser like this : http://forums.adobe.com/message/4753337

  • I build databases with appleworks over 10 years on my ibook, and continue to add to them. Now I have a macbook pro. How can I translate the databases to a compatible program?

    Over 10 years I have built several databases with Appleworks. Now I have a macbook pro. How can I translate these databases to a 10.6.8 program?

    Thanks Joe, but that won't work. I've finally found a site that answers the question: http://www.wilmut.webspace.virginmedia.com/notes/aw/page1.html
    I can only say that by Apple I have been royally screwed. I'll never buy another mac -- everything I do would simply disappear into cyberspace.

  • How can I use two database in Dataset in SSRS?

    Hi,
    I am using one query to generate my SSRS report. In that query I am using subquery. Now I am pulling data from multiple tales.
    DB used in sub query is different than the rest of the tables DB.(So total I am using 2 DB(Database))
    So I see that in SSRS, I can connect query(In DataSet Properties) to one DATA_SOURCE only, how can I use other database which is I used in sub-query?
    I have to move this SSRS into PROD and I can't hard code that sub-query's DB name in my query.
    Please give me suggestion. Thanks!!
    Vicky

    In SSRS 2008 R2 you can use the Lookup function (http://technet.microsoft.com/en-us/library/ee210531.aspx ) and LookupSet function (http://technet.microsoft.com/en-us/library/ee240819.aspx
    Depending on your security set up, you can reference a table in a second database on the same server using a three part name:  database.schema.table.  This is more likely to work for you if you wrap your SQL command in a stored procedure.
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • How can I rename my pics in Bridge CS5?

    How can I renams my pics in Bridge CS5?

    Here's what is in the Bridge cs5 help pdf file.  (I was not able to find this same help info from clicking help in Bridge cs5).
    Batch rename files
    You can rename files in a group, or batch. When you batch rename files, you can choose the same settings for all the selected files. For other batch-processing tasks, you can use scripts to run automated tasks.
    1  Select the files that you want to rename.
    2  Choose Tools > Batch Rename.
    3  Set the following options:
    Destination Folder
    Place the renamed files in the same folder, move them to another folder, or place copies in another folder. If you choose to put the renamed files in a different folder, click Browse to select the folder.
    New Filenames
    Choose elements from the menus and enter text as appropriate to create new filenames. Click the Plus button [+] or Minus button [-] to add or delete elements.
    •String Substitution
    Allows you to change all or part of a filename to custom text. First, choose what you want to replace: Original Filename replaces the string from the original filename. Intermediate Filename replaces a string that is defined by preceding options in the New Filenames pop-up menus. Use Regular Expression allows you to use regular expressions to find strings based on patterns in filenames. Replace All replaces all substrings that match the pattern in the source string.
    Options
    Select Preserve Current Filename In XMP Metadata to retain the original filename in the metadata. For Compatibility, select the operating systems with which you want renamed files to be compatible. The current operating system is selected by default, and cannot be deselected.
    Preview
    One current and new filename appear in the Preview area at the bottom of the Batch Rename dialog box. To see how all selected files will be renamed, click the Preview button.
    4  (Optional) Select a preset from the Presets menu to renaming with frequently used naming schemes. To save batch rename settings for reuse, click Save.

  • How can I rename my device as it suddenly changed to a series of dashes?

    My device name in ITunes suddenly changed to a series of dashes..How can I rename my device?

    Hello marthadp
    The article below will assist with renaming your device in either iTunes or from within the device itself.
    iTunes and iOS: Change the name of your iPhone, iPad, or iPod
    http://support.apple.com/kb/ht3965
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • How can I rename my iPad 2?

    How can I rename my iPad 2?

    Connect the iPad to your computer and launch iTunes. Double click on the iPad's name on the left side of iTunes under the Devices heading -place your cursor in the name field  - delete the old name and type the new name. Hit return on your keyboard.

  • How can I convert a Database Handle from TestStand to LabVIEW?

    I want to use a Database Handle (already created in TestStand by an Open Database step) in a LabVIEW-VI (called from TestStand) to connect it with the "Connection Reference" input of the "Easy SQL.vi"? If I use a directly connection via the "TestStand - Get Property Value (Number).vi" I get back the error message 4101 in LabVIEW. How can I convert the Database Handle?
    Test Engineering
    digades GmbH
    www.digades.com

    The TestStand database step types use the CVI SQL Toolkit to talk to databases. The handle that you are referencing is an internal memory location and not a actual handle that you can directly use. Currently as implemented the handle that is stored in a numeric TestStand property for the connection and the SQL statement are the handle values returned from the CVI SQL Toolkit. So for the connection handle, you could call the CVI SQL Toolkit function
    DBGetConnectionAttribute (
    int Connection_Handle,
    tDBConnectionAttr Attribute,
    void *Value);
    and get the CVI CAObjHandle reference. With this you could then call the CVI ActiveX function
    CA_GetInterfaceFromObjHandle(
    CAObjHandle Object_Handle,
    const IID *Interface_Id,
    int Force_AddRef,
    void *Inte
    rface_Ptr,
    int *Did_AddRef);
    to get the actual ActiveX interface reference. This would have to be converted into a LabVIEW reference.
    You may want to consider just using LabVIEW to open a new parallel reference only using the toolkit.
    Scott Richardson
    National Instruments

  • How can i recover my database after losing system data file.

    hi everyone,
    how can i recover my database in the following scenario.
    1. offline complete backup taken 2 days ago. database was in archive mode.
    2. today i lost my system data file, and also lost my all archived files.
    3. i started up the database but, the following error was generated.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 135338868 bytes
    Fixed Size 453492 bytes
    Variable Size 109051904 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: 'D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF'
    4. i copied the system data file from backup and wrote the following statement, to recover the database.
    SQL> recover datafile 1;
    ORA-00279: change 2234434 generated at 07/15/2009 10:52:10 needed for thread 1
    ORA-00289: suggestion : C:\B\ARC00051.001
    ORA-00280: change 2234434 for thread 1 is in sequence #51
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    now i don't have any archive file. is there any chance to recover the database ?
    R e g a r d s,
    Asif Iqbal
    Software Engineer,
    Lucky Tex, Karachi,
    Pakistan.

    now i don't have any archive file. is there any chance to recover the database ?If no archive log files are available you can't recover the datafile.You need to have all the archives from the time of offline backup was taken till the system datafile is lost.
    Anand

  • How can i start oracle databases? i am using Oracle 8.1.6 for linux.

    when i run dbstart,it gives me following message:
    Database "ora4cweb" warm started.
    but when i use sqlplus,it says:
    ORA-01034: ORACLE not available
    i made a mistake ,i shutdown my linux before i shutdown oracle databases,how can i start oracle databases now?thanks in advance.

    try it without the scripts...
    login to linux as oracle
    start server manager
    svrmgrl
    connect internal
    startup
    select sysdate from dual;if that works
    exitcheck listener
    lsnrctl
    statif nothing running type
    start
    exitnull

  • HT1789 How can you rename your iPod in iTunes 11?

    How can you rename your iPod in iTunes 11?
    I am using a Mac and an iPod Nano (the old longer one)

    Double-click the name in the device summary screen to get a cursor, and edit the name. In previous versions of iTunes, you could change the name by clicking it once.

  • How can i use Unix database in java?

    How can i use Unix database in Java?
    Message was edited by:
    JPro

    I have not a clue about FoxPro, but the db then is FoxPro and not Unix. The better question would be "How do I connect to FoxPro DB running on Unix with JDBC?".
    My answer to that would be, search the Internet for a JDBC driver.

Maybe you are looking for