How does one rename a database?
摘自Orafaq
Follow these steps to rename a database:
- Start by making a full database backup of your database (in case you need to restore if this procedure is not working).
- Execute this command from sqlplus while connected to 'SYS AS SYSDBA':
ALTER DATABASE BACKUP CONTROLFILE TO TRACE RESETLOGS;
- Locate the latest dump file in your USER_DUMP_DEST directory (show parameter USER_DUMP_DEST) - rename it to something like dbrename.sql.
- Edit dbrename.sql, remove all headers and comments, and change the database's name. Also change "CREATE CONTROLFILE REUSE ..." to "CREATE CONTROLFILE SET ...".
- Shutdown the database (use SHUTDOWN NORMAL or IMMEDIATE, don't ABORT!) and run dbrename.sql.
- Rename the database's global name:
ALTER DATABASE RENAME GLOBAL_NAME TO new_db_name;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-979127/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Can one rename a database user (schema)?Database
- What is a deadlock and how does one fix deadlock errors?Error
- How to move ASM database files from one diskgroup to anotherASMDatabase
- How to rename an Oracle stored procedureOracle
- How to Rename a Server That Is Not a Data Store ServerServer
- How does a HashMap work in JAVAHashMapJava
- How to Rename Tablespace In Oracle10gOracle
- How to Rename Database/Change DB_NAME or ORACLE_SID/Instance Name-15390.1DatabaseOracle
- How to Quiesce a DatabaseUIDatabase
- Rename Tablespace in Oracle database 10gOracleDatabase
- 【Oracle】How to Rename or Move Datafiles and Logfiles 之二Oracle
- 【Oracle】How to Rename or Move Datafiles and Logfiles 之一Oracle
- How does Guice compare to Spring ?GUISpring
- How does an Electric Motor work? (DC Motor)
- How to Perform a Healthcheck on the DatabaseORMDatabase
- How to enable the flashback database:Database
- How a Database Is Mounted (293)Database
- How to monitor data transaction on one table
- How does SAP freelancer find a project that is not tough?Project
- Database Testing: How to Regression Test a Relational DatabaseDatabase
- How to Perform a Health Check on the DatabaseORMDatabase
- [原創] How to Quiesce a DatabaseUIDatabase
- How a Standby Database Is Mounted (295)Database
- How a Clone Database Is Mounted (296)Database
- How to check Database corrupt BlockDatabaseBloC
- VMS: ALTER TABLESPACE/DATABASE TO RENAME FILES on VMS [ID 9560.1]Database
- Setup Standby Database on One PC(轉)Database
- How to Relink Oracle Database SoftwareOracleDatabase
- How to Shrink Undo Segment In Oracle DatabaseOracleDatabase
- [轉]How to release space from databaseDatabase
- How to drop Oracle RAC database manually?OracleDatabase
- How to purge the Oracle Database Recycle BinOracleDatabase
- How to move progress database to different OSDatabase
- How a Database Is Quiesced (331)DatabaseUI
- FAQ:Field DATABASE does not exist; see long textDatabase
- how to move a MediaWiki wiki from one server to anotherServer
- How does OUI check if the HACMP software is installed? [ID 738574.1]UIACM
- How to use rman backup a noarchivelog databaseHiveDatabase