*.background_dump_dest='/u01/app/oracle/admin/orcl/bdump'
*.compatible='10.2.0.5.0'
*.control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/or
adata/orcl/control02.ctl','/u01/app/oracle/oradata/orcl/control03.ctl'
*.core_dump_dest='/u01/app/oracle/admin/orcl/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='orcl'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=94371840
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=283115520
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u01/app/oracle/admin/orcl/udump'
3、确认数据库使用 pfile 文件启动
SQL> startup
ORACLE instance started.
Total System Global Area 285212672 bytes
Fixed Size 2095704 bytes
Variable Size 125830568 bytes
Database Buffers 150994944 bytes
Redo Buffers 6291456 bytes
Database mounted.
Database opened.
SQL> show parameter pfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string
4、干净的关闭数据库
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
5、修改参数文件名为 init_orcl1.ora
oracle@db10g:orcl$mv initorcl.ora initorcl1.ora
6、修改 oracle 用户环境变量 ORACLE_SID=orcl1
oracle@db10g:orcl1$pwd
/home/oracle
oracle@db10g:orcl$echo $ORACLE_SID
orcl
oracle@db10g:orcl$source .bash_profile
oracle@db10g:orcl1$echo $ORACLE_SID
orcl1
7、创建新实例使用的密码文件 orapworcl1
oracle@db10g:orcl1$orapwd file=orapworcl1 password=oracle entries=10
oracle@db10g:orcl1$ls
hc_orcl.dat initdw.ora init.ora initorcl1.ora lkORCL orapworcl orapworcl1
snapcf_orcl.f spfileorcl.ora.bak
8、启动数据库验证当前实例名已经修改为 orcl1
SQL> startup
ORACLE instance started.
Total System Global Area 285212672 bytes
Fixed Size 2095704 bytes
Variable Size 88081832 bytes
评论