Oracle 11g 无法启动的处理方式
Oracle 一般情况都不会无法启动,只有发生异常时才会出现。这时候一般都有提示信息,最常见的就是某个参数找不到,或者连接池/共
Oracle 一般情况都不会无法启动,只有发生异常时才会出现。这时候一般都有提示信息,最常见的就是某个参数找不到,或者连接池/共享池设置太小等等。这个时候你可以这么做:
首先在你的$Oralce_home/admin/orcl/pfile下找到此文件init.orc.xxxxx(后面的数字是系统生成的)
然后查看里面的参数,是不是符合你现在数据库的设定。特别是那些目录的设置。如果不符合,修改为符合的情况,然后进入sqlplus
执行如下语句: create spfile from pfile='$Oralce_home/admin/orcl/pfile/init.ora.xxxx' 这样默认会在你的$ORACLE_HOME/ORADATA/ORCL下创建为orclinit.ora名的文件
或者你想自己重定义spfile 路径: create spfile='xxxx' from pfile='xxx‘;
shutdown immediate;
startup;
成功!
如果是提示无法启动闪回数据库,可先mount数据库,,然后alter system set oracle_flash_back off;
然后再alter database open; ok!
补充:设置SPFILE可以改变Oracle9i启动的搜索路径。在Oracle9i中,请遵循SPFILE搜索的这些步骤:
1. 在缺省的路径下搜索spfile$ORACLE_SID.ora文件。
2. 查找spfile.ora。
3. 以名为init$ORACLE_SID.ora搜索PFILE。
指定SCOPE参数
一旦已经有了一个SPFILE,你就可以使用ALTER SYSTEM命令来改变任一初始化参数。然而,有一个相当重要的SCOPE参数你必须理解。
SCOPE参数具有三个值:SPFILE,MEMORY,以及BOTH。现在让我们看一看每一个值的范例。
Alter system set db_2k_cache_size=100m SCOPE=SPFILE;
如果你想在SPFILE中改变一个参数而不希望影响当前的例子,可以使用ALTER SYSTEM语句中的SCOPE=SPFILE选择。这对于从下一次启动中改变启动非常有好处。
Alter system set db_2k_cache_size=100m SCOPE=MEMORY;
在以上的范例中,SCOPE=MEMORY选择告诉Oracle9i从例子中改变到下一次数据库获得的缺省值。
Alter system set db_2k_cache_size=100m SCOPE=BOTH;
当你指定SCOPE=BOTH,Oralce9i立即执行改变,并永久地使用改变,即使在下一次被数据库使用

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

AI Hentai Generator
Generate AI Hentai for free.

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



InnoDB's full-text search capabilities are very powerful, which can significantly improve database query efficiency and ability to process large amounts of text data. 1) InnoDB implements full-text search through inverted indexing, supporting basic and advanced search queries. 2) Use MATCH and AGAINST keywords to search, support Boolean mode and phrase search. 3) Optimization methods include using word segmentation technology, periodic rebuilding of indexes and adjusting cache size to improve performance and accuracy.

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

Yes, MySQL can be installed on Windows 7, and although Microsoft has stopped supporting Windows 7, MySQL is still compatible with it. However, the following points should be noted during the installation process: Download the MySQL installer for Windows. Select the appropriate version of MySQL (community or enterprise). Select the appropriate installation directory and character set during the installation process. Set the root user password and keep it properly. Connect to the database for testing. Note the compatibility and security issues on Windows 7, and it is recommended to upgrade to a supported operating system.

Full table scanning may be faster in MySQL than using indexes. Specific cases include: 1) the data volume is small; 2) when the query returns a large amount of data; 3) when the index column is not highly selective; 4) when the complex query. By analyzing query plans, optimizing indexes, avoiding over-index and regularly maintaining tables, you can make the best choices in practical applications.

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

The difference between clustered index and non-clustered index is: 1. Clustered index stores data rows in the index structure, which is suitable for querying by primary key and range. 2. The non-clustered index stores index key values and pointers to data rows, and is suitable for non-primary key column queries.

Article discusses strategies for handling large datasets in MySQL, including partitioning, sharding, indexing, and query optimization.
