Modify the Oracle Instance name ORCL to Demo

Source: Internet
Author: User

There are six steps to modifying the Oracle instance name:

1. Sqlplus Username/password as SYSDBA, then create Pfile file from SPFile file: Creation Pfile from SPFile

2, modify the pfile db_name parameter name is demo, and then save it.

3. Create SPFile file based on pfile file creation spfile= ' C:\%oracle_home%\database\spfiletemp.ora ' from pfile= ' c:\%oracle_home%\ Database\initorcl.ora '

4. Then close the database, shutdown immediate--"Rename spfiletemp.ora--" Spfiledemo.ora

5, the creation of control files, then need to be familiar with the database configuration, start Nomount state, startup Nomount

Create Controlfile Reuse Set Database "DEMO" Resetlogs
Maxlogfiles 16
Maxlogmembers 3
Maxdatafiles 100
Maxinstances 8
Maxloghistory 454
LogFile
Group 1 ' C:\app\LPH\oradata\orcl\redo01.log ' size 10m,
Group 2 ' C:\app\LPH\oradata\orcl\redo02.log ' size 10m
DataFile--Location of previous system files
' C:\app\***\oradata\orcl\system01.dbf ',
' C:\app\***\oradata\orcl\sysaux01.dbf ',
' C:\app\***\oradata\orcl\undotbs01.dbf ',
' C:\APP\***\ORADATA\ORCL\USERS01.DBF '
Character Set ZHS16GBK;

6. Open data, ALTER DATABASE open Resetlogs

Error-prone places are three points:

1. The path or name of the log or system file is incorrectly written

2, no start database bit nomount status

3, open the data without adding resetlogs

Modify the Oracle Instance name ORCL to Demo

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.