Solve the problem that Oracle 10g em cannot be started in win7

Source: Internet
Author: User

The problem is,

Oracle had to be installed some days ago due to learning needs,

However, the downloaded Oracle 9i R1 cannot be installed in my win7 environment,

Since I cannot bear win7 (I don't want to switch back to XP), I installed Oracle 10g R2,

But when I got the Oracle 10 Gb EM (Enterprise Manager) today,

This means that EM cannot be enabled,

Http: // Xiaozhen-PC: 1158/em

The default em is always inaccessible, and I checked the service again,

I found that the dbconsole service was started,

So I don't think this is a service problem,

However, I still force the operating system commandEmctl start dbconsole

To start the Enterprise Manager Console process,

An error is reported, indicating that oracle_sid is not defined. The error message indicates that oracle_sid is not defined,

In this case, Let me define my oracle_sid,

First find the pathD: \ oracle \ product \ 10.2.0 \ db_1 \ productname \ J2EE

The content includes a file

From the above, I can see that my global database is named Oracle (this is entered when the database is created)

So I also set oracle_sid to the global database name,

In the above file, we can know that my machine name is Xiaozhen-PC.

After I set oracle_sid, the system prompts that no directory is found in the preceding directory,

However, there is only oneOC4J_DBConsole_XiaoZhen-PC_Oracle path

WithoutOc4j_dbconsole_localhost_oracle,

So I will set the hostname of Oracle again.

Then I am running the operating system commandEmctl start dbconsoleYou can see that the operation is successful.

Then I access em, that is, http: // Xiaozhen-PC: 1158/em. Now the access is successful,

Make a summary of the above solution,

If Oracle's dbconsole service is started but em is still inaccessible,

It is very likely that the SID and hostname of the database are inconsistent with those defined in your database file,

As a result, access fails,

You can solve this problem by modifying oracle_sid and oracle_hostname !!!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.