Database Buffers 188743680 bytes
Redo Buffers 6291456 bytes
Database mounted.
Database opened.
SQL> select instance from v$thread;
INSTANCE
--------------------------------------------------------------------------------
orcl1
SQL> select name from v$database;
NAME
---------
ORCL
SQL> show parameter instance_name
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
instance_name string orcl1
SQL> show parameter db_name
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_name string orcl
三、修改数据库名为 orcl1
1、切换归档日志,备份控制文件
SQL> alter system switch logfile;
System altered.
SQL> alter database backup controlfile to trace resetlogs;
Database altered.
备份控制文件生成的 trace 文件内容如下:
oracle@db10g:orcl1$pwd
/u01/app/oracle/admin/orcl/udump
oracle@db10g:orcl1$cat orcl1_ora_7189.trc
/u01/app/oracle/admin/orcl/udump/orcl1_ora_7189.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1
System name: Linux
Node name: db10g
Release: 2.6.18-194.el5
Version: #1 SMP Tue Mar 16 21:52:39 EDT 2010
Machine: x86_64
Instance name: orcl1
Redo thread mounted by this instance: 1
Oracle process number: 15
Unix process pid: 7189, image: oracle@db10g (TNS V1-V3)
*** ACTION NAME:() 2016-05-24 11:20:52.560
*** MODULE NAME:(sqlplus@db10g (TNS V1-V3)) 2016-05-24 11:20:52.560
*** SERVICE NAME:(SYS$USERS) 2016-05-24 11:20:52.560
*** SESSION ID:(159.3) 2016-05-24 11:20:52.560
DBRM(kskinitrm) cpu_count (fudge enabled): old(0) -> new(1)
kwqmnich: current time:: 3: 20: 52
kwqmnich: instance no 0 check_only flag 1
kwqmnich: initialized job cache structure
*** 2016-05-24 11:26:40.398
-- The following are current System-scope REDO Log Archival related
-- parameters and can be included in the database initialization file.
--
-- LOG_ARCHIVE_DEST=''
-- LOG_ARCHIVE_DUPLEX_DEST=''
--
相关文档
评论