Oracle建库错误的排除
一次Oracle建库错误的排除,无法在指定的范围内为以下进程分配端口解决 前几天安装Oracle数据库。按照说明配置Linux环境,安装rpm,然后先安装10.2.0.1安装包,完了之后又安装10.2.0.4补丁,最后打em补
一次Oracle建库错误的排除,无法在指定的范围内为以下进程分配端口解决
前几天安装Oracle数据库。按照说明配置Linux环境,安装rpm,然后先安装10.2.0.1安装包,,完了之后又安装10.2.0.4补丁,最后打em补丁。到这一切正常,我开始用dbca创建数据库,结果报错误如下:
1
严重: 无法在指定的范围内为以下进程分配端口: JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
2
有关详细资料, 请参阅 /home/oracle/app/oracle/product/10.2.0/db_1/cfgtoollogs/dbca/orcl/emConfig.log 中的日志文件。
昏死,第一次遇到这种情况。通过netstat折腾了半天端口,都没有找到问题所在,整个系统新安装根本就没有使用5000这个端口段的程序。
又去网上查找答案,结果搜索到的都是因为emca配置出错的,但是我按照网上写的emca指令删除配置都报错。此外还发现,不但em创建失败,执行lsnrctl status,监听程序也不对。host这里居然是空的,而且status自己无法停下来。故此怀疑和em无关,而是更早的问题。
最后没辙了,从头开始一个一个配置文件和安装手册及安装好的另外一台服务器对比。最后发现新安装这台Linux服务器的hosts有问题,127.0.0.1除了对应localhost外,没有对应服务器的主机名。
修改hosts文件之后,重新运行dbca成功。
这次安装数据库,被日志和网上的信息误导了。特在此分享,希望大家在安装Oracle的时候少走弯路。

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

Table of Contents Solution 1 Solution 21. Delete the temporary files of Windows update 2. Repair damaged system files 3. View and modify registry entries 4. Turn off the network card IPv6 5. Run the WindowsUpdateTroubleshooter tool to repair 6. Turn off the firewall and other related anti-virus software. 7. Close the WidowsUpdate service. Solution 3 Solution 4 "0x8024401c" error occurs during Windows update on Huawei computers Symptom Problem Cause Solution Still not solved? Recently, the web server needs to be updated due to system vulnerabilities. After logging in to the server, the update prompts error code 0x8024401c. Solution 1

The retention period of Oracle database logs depends on the log type and configuration, including: Redo logs: determined by the maximum size configured with the "LOG_ARCHIVE_DEST" parameter. Archived redo logs: Determined by the maximum size configured by the "DB_RECOVERY_FILE_DEST_SIZE" parameter. Online redo logs: not archived, lost when the database is restarted, and the retention period is consistent with the instance running time. Audit log: Configured by the "AUDIT_TRAIL" parameter, retained for 30 days by default.

The function in Oracle to calculate the number of days between two dates is DATEDIFF(). The specific usage is as follows: Specify the time interval unit: interval (such as day, month, year) Specify two date values: date1 and date2DATEDIFF(interval, date1, date2) Return the difference in days

The Oracle database startup sequence is: 1. Check the preconditions; 2. Start the listener; 3. Start the database instance; 4. Wait for the database to open; 5. Connect to the database; 6. Verify the database status; 7. Enable the service (if necessary ); 8. Test the connection.

The amount of memory required by Oracle depends on database size, activity level, and required performance level: for storing data buffers, index buffers, executing SQL statements, and managing the data dictionary cache. The exact amount is affected by database size, activity level, and required performance level. Best practices include setting the appropriate SGA size, sizing SGA components, using AMM, and monitoring memory usage.

The INTERVAL data type in Oracle is used to represent time intervals. The syntax is INTERVAL <precision> <unit>. You can use addition, subtraction, multiplication and division operations to operate INTERVAL, which is suitable for scenarios such as storing time data and calculating date differences.

To find the number of occurrences of a character in Oracle, perform the following steps: Get the total length of a string; Get the length of the substring in which a character occurs; Count the number of occurrences of a character by subtracting the substring length from the total length.

The method of replacing strings in Oracle is to use the REPLACE function. The syntax of this function is: REPLACE(string, search_string, replace_string). Usage steps: 1. Identify the substring to be replaced; 2. Determine the new string to replace the substring; 3. Use the REPLACE function to replace. Advanced usage includes: multiple replacements, case sensitivity, special character replacement, etc.
