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 AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

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)

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

The shares of the French video game developer Ubisoft reached a record low on Thursday. At a price of around 15.50 euros per share, the value has plummeted by around 10%. As a result, the company's market capitalization fell below 2 billion euros. In

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

C++ parameter type safety checking ensures that functions only accept values ​​of expected types through compile-time checks, run-time checks, and static assertions, preventing unexpected behavior and program crashes: Compile-time type checking: The compiler checks type compatibility. Runtime type checking: Use dynamic_cast to check type compatibility, and throw an exception if there is no match. Static assertion: Assert type conditions at compile time.

iOS 18 adds a new 'Recovered' album function to retrieve lost or damaged photos iOS 18 adds a new 'Recovered' album function to retrieve lost or damaged photos Jul 18, 2024 am 05:48 AM

Apple's latest releases of iOS18, iPadOS18 and macOS Sequoia systems have added an important feature to the Photos application, designed to help users easily recover photos and videos lost or damaged due to various reasons. The new feature introduces an album called "Recovered" in the Tools section of the Photos app that will automatically appear when a user has pictures or videos on their device that are not part of their photo library. The emergence of the "Recovered" album provides a solution for photos and videos lost due to database corruption, the camera application not saving to the photo library correctly, or a third-party application managing the photo library. Users only need a few simple steps

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

Hibernate polymorphic mapping can map inherited classes to the database and provides the following mapping types: joined-subclass: Create a separate table for the subclass, including all columns of the parent class. table-per-class: Create a separate table for subclasses, containing only subclass-specific columns. union-subclass: similar to joined-subclass, but the parent class table unions all subclass columns.

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

The shares of the French video game developer Ubisoft reached a record low on Thursday. At a price of around 15.50 euros per share, the value has plummeted by around 10%. As a result, the company's market capitalization fell below 2 billion euros. In

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

How to use MySQLi to establish a database connection in PHP: Include MySQLi extension (require_once) Create connection function (functionconnect_to_db) Call connection function ($conn=connect_to_db()) Execute query ($result=$conn->query()) Close connection ( $conn->close())

How to handle database connection errors in PHP How to handle database connection errors in PHP Jun 05, 2024 pm 02:16 PM

To handle database connection errors in PHP, you can use the following steps: Use mysqli_connect_errno() to obtain the error code. Use mysqli_connect_error() to get the error message. By capturing and logging these error messages, database connection issues can be easily identified and resolved, ensuring the smooth running of your application.

Advanced usage of reference parameters and pointer parameters in C++ functions Advanced usage of reference parameters and pointer parameters in C++ functions Apr 21, 2024 am 09:39 AM

Reference parameters in C++ functions (essentially variable aliases, modifying the reference modifies the original variable) and pointer parameters (storing the memory address of the original variable, modifying the variable by dereferencing the pointer) have different usages when passing and modifying variables. Reference parameters are often used to modify original variables (especially large structures) to avoid copy overhead when passed to constructors or assignment operators. Pointer parameters are used to flexibly point to memory locations, implement dynamic data structures, or pass null pointers to represent optional parameters.

See all articles