Total System Global Area 1258287416 bytes
Fixed Size 9027896 bytes
Variable Size 620756992 bytes
Database Buffers 620756992 bytes
Redo Buffers 7745536 bytes
SQL> show parameter db_name
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
db_name string orcl
SQL> show parameter instance_name
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
instance_name string orcl
SQL> show parameter db_uni
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
db_unique_name string orcl
SQL> show parameter service_name
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
service_names string orcl
SQL> alter system set db_name=sztech scope=spfile;
系统已更改。
4.直接打开,不需要使用resetlogs,因为没有修改DBID
SQL> shutdown immediate;
ORA-01507: ??????
ORACLE 例程已经关闭。
SQL> startup mount;
ORACLE 例程已经启动。
Total System Global Area 1258287416 bytes
Fixed Size 9027896 bytes
Variable Size 620756992 bytes
Database Buffers 620756992 bytes
Redo Buffers 7745536 bytes
数据库装载完毕。
SQL> alter database open;
数据库已更改。
SQL> show parameter db_name
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
db_name string SZTECH
SQL> show parameter service_name
NAME TYPE VALUE
------------------------------------ ---------------------- -----------------------------
service_names string SZTECH
SQL> show parameter instance_name
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
instance_name string orcl
SQL> select open_mode from v$database;