服务器是Oracle
Database 11g企业版版本11.1.0.7.0 – 64位
滴水&重新创建数据库对我来说是一个选择.但我正在寻找需要更少时间的东西.
在客户端tnsnames.ora中分配名称的另一个选项很容易出错,因为它们不是集中管理的.
与下降时间相比在sql-Server上创建数据库,创建新Oracle数据库所需的时间过长.
此外,在sql-Server上,您可以重命名sql-Server实例. [通常,您重命名运行sql-Server的服务器,并且在重命名服务器之前会遇到一些问题].
Since 9i dbnewid utility (nid) can be used to change database name (and DBID if required). If database name being changed only then resetlogs is not required: 1. startup database in mount mode shutdown immediate startup mount 2. run nid to change database name: nid target=sys/syspassword@dbtns dbname=newname setname=YES 3. shutdown and start database in mount mode: shutdown immediate startup mount 4. change db_name in spfile (or in pfile editing the file): alter system set db_name=newname scope=spfile; 5. recreate password file: orapwd file=orapwnewname password=syspassword 6. startup the database startup 7. post rename steps: change SID in listener.ora correct tnsnames.ora remove old trace directories change /etc/oratab (UNIX) or rename windows service using oradim