修改share server参数导致数据库启动失败
修改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;
至此,修复系统成功!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



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++ 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.

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

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.

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

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())

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.

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.
