Home Database Mysql Tutorial 修改share server参数导致数据库启动失败

修改share server参数导致数据库启动失败

Jun 07, 2016 pm 03:05 PM
server share Revise parameter start up lead to database

修改share server参数导致数据库启动失败 在学习共享服务时,修改配置参数时,不小心犯了错误,呵呵,以下是修复过程。 1、修改 SQL alter system set dispatchers=(protocol=tcp)(dispatchers=2) scope=spfile; 不小心写成了 SQL alter system set dis

修改share server参数导致数据库启动失败

 

在学习共享服务时,修改配置参数时,不小心犯了错误,呵呵,以下是修复过程。

1、修改

   SQL> alter  system set dispatchers=‘(protocol=tcp)(dispatchers=2)’ scope=spfile;

 不小心写成了
 
    SQL> alter  system set dispatchers=‘(protocol=tcp)9dispatchers=2)’ scope=spfile;

2、重启instance 时失败
 
  SQL> startup force

    提示:dipatchers 参数错误

  启动失败,应该是spfile文件出现了错误,spfile是二进制文件不能用编辑器直接修改,所以想用init参数文件来启动

3、在$ORACLE_HOME/dbs 下却发现没有initorac.ora 文件

  # strings spfileorac.ora  >  orac.txt
  # vi orac.txt
  # cp  orac.txt  initorac.ora

   将9dispatchers=2) 改成 (dispatchers=2)

4、因为instance启动时先调用spfile,然后才是pfile ,所以

  # mv spfileorac.ora  spfileorac.ora.bak

5、然后再启动instance ,这时会从pfile来启动
   SQL> startup nomount
   SQL> alter database  mount;
   SQL> alter database  open;

6、重新从pfile来生成spfile 
      SQL> create spfile  from pfile ;

7、重启instance,查看启动参数文件信息

   13:44:39 SYS@orac>startup
ORACLE instance started.

Total System Global Area  167772160 bytes
Fixed Size                  1218316 bytes
Variable Size              71305460 bytes
Database Buffers           92274688 bytes
Redo Buffers                2973696 bytes
Database mounted.
Database opened.
13:45:05 SYS@orac>show parameter pfile;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
spfile                               string      /u01/app/oracle/product/10.2.0
                                                 /db_1/dbs/spfileorac.ora
13:45:28 SYS@orac>select program from v$process;

至此,修复系统成功!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to change the personal name in the group on DingTalk_How to modify the personal name in the group on DingTalk How to change the personal name in the group on DingTalk_How to modify the personal name in the group on DingTalk Mar 29, 2024 pm 08:41 PM

How to change the personal name in the group on DingTalk_How to modify the personal name in the group on DingTalk

Ubisoft share falls to 10-year low after disappointing launch of Star Wars: Outlaws Ubisoft share falls to 10-year low after disappointing launch of Star Wars: Outlaws Sep 07, 2024 am 06:30 AM

Ubisoft share falls to 10-year low after disappointing launch of Star Wars: Outlaws

How does Go language implement the addition, deletion, modification and query operations of the database? How does Go language implement the addition, deletion, modification and query operations of the database? Mar 27, 2024 pm 09:39 PM

How does Go language implement the addition, deletion, modification and query operations of the database?

How to modify the address location of published products on Xianyu How to modify the address location of published products on Xianyu Mar 28, 2024 pm 03:36 PM

How to modify the address location of published products on Xianyu

Ubisoft shares fall to 10-year low after disappointing launch of Star Wars: Outlaws Ubisoft shares fall to 10-year low after disappointing launch of Star Wars: Outlaws Sep 08, 2024 am 06:36 AM

Ubisoft shares fall to 10-year low after disappointing launch of Star Wars: Outlaws

C++ function parameter type safety check C++ function parameter type safety check Apr 19, 2024 pm 12:00 PM

C++ function parameter type safety check

Detailed tutorial on establishing a database connection using MySQLi in PHP Detailed tutorial on establishing a database connection using MySQLi in PHP Jun 04, 2024 pm 01:42 PM

Detailed tutorial on establishing a database connection using MySQLi in PHP

How does Hibernate implement polymorphic mapping? How does Hibernate implement polymorphic mapping? Apr 17, 2024 pm 12:09 PM

How does Hibernate implement polymorphic mapping?

See all articles