Monday, July 27, 2009

Accessing Oracle's Web Interface (Oracle Enterprise Manager)

I wanted to access the Oracle Web Interface for administering the database on a Cent OS system. However, I hadn't performed this oracle installation myself so I started by doing:

netstat -a | more

And looking carefully through the list to see if I could spot it but I couldn't!

Eventually I found the answer here. There is a file which contains the Oracle Enterprise Manager URL for each database installed and that file's location is:

$ORACLE_HOME/install/readme.txt

For example:
/home/oracle/app/oracle/product/11.1.0/db_1/install

Here's what mine looked like:
Enterprise Manager Database Control URL - (orcl) :
https://localhost:1158/em

Enterprise Manager Database Control URL - (bbb) :
https://localhost:5501/em

Enterprise Manager Database Control URL - (aaa) :
https://localhost:5500/em

And there you have it! Enjoy!

Monday, June 15, 2009

nmefwmi.exe stopped working and was closed

I installed Oracle 11g last week on my laptop (Windows Vista Business Edition) and had no issues except a reduction in my machine's performance.

However yeseterday windows update wanted to install some updates and one of which was Service Pack 2 which I let it install. Ever since then every 5 minutes I get this error message in a popup:

nmefwmi.exe stopped working and was closed


After doing some searching this is apparently a bug in Oracle 11g that is yet to be resolved by Oracle. I found hearing that strange since the problem only started occuring for me after a windows update.

I found this answer which explains how to fix the issue:

* nmefwimi.exe is Oracle Enterprise Manager process and it is not critical in the sense what when it stops working it will not affect the database.
* nmefwmi.exe process is associated with OracleDBConsoleorcl service.
* Go to Administrative Tools -> Services, stop the service and set the startup type to "Manual".
* When you need to use dbconsole, start the service manually, ignore the error, do what you have to do, and stop it again.

Sunday, May 10, 2009

Update & Documentation Submitted

[Week 31]

These past two weeks I've been very busy with the project and finishing off continuous assessment projects.

I started by looking at my method for generating the JTree. While taking Martin's comments on board I came up with a new method for constructing the tree correctly. This was great as I could then produce correct XPath expressions.

I moved onto to integrating Martin's code for querying. I learned about the SQL packages and classes that come with Java. More specifically which object to instantiate for passing an SQL statement, sending that to the database and collecting the results. This works well now and was a big milestone as I had then achieved all basic functionality with the project.

The meeting with Mark on Thursday was good as he gave some good suggestions on how to improve on what I had done. They were:
- Show before and after times (how my querying performs over eXist)
- Introduce the ability to specify a predicate on a node
- Introduce support for more datasets

I have managed to get basic predicates working. So a user may select a node, e.g. name and actually specify a name.

Martin provided me with lots more datasets. All XML files so I needed to write the schemas for these. I managed to complete this today. I may need to look into support attributes.

Submitted my Technical Specification, User Manual and Sample Code on Friday so good to get all that out of the way. I forgot to attach a print out of this blog, hopefully that will not be a problem. I'll contact GK tomorrow.

That's about it for now. It's time to focus on exams!

Sunday, May 3, 2009

Update on progress with XSOM

[Week 29]

I managed to parse some XML schema files with XSOM, produce a tree and XPath expressions this week so decided it was good time to meet with MOC again.

He informed me that the tree I was producing was not fully correct for the XML schema I was using. Therefore I need to look at my parsing method again and adapt it correctly. If the tree is incorrect then it will produce incorrect XPath expressions. Therefore it is critical that I get this method correct.

We did discuss the next stages in detail and Martin has written code to insert XML documents into a relational database in a specialised way. He also has code to query the relational database. As part of my project specification I do not insert any data into a relational database. I do, however query it. Therefore I will use his Index Builder program to insert some XML documents into the database and integrate his query program with mine so that the XPath expressions produced from my program can be used to query the data.

I have arranged a meeting with MR for Thursday this coming week to go over the project so my next post will discuss how the integration of Martin's code went and the outcome of the meeting with MR.

Sunday, April 19, 2009

Hello to XSOM, bye to Apache XML Schema

[Week 27]

I got a recommendation from a classmate to use XML Schema Object Model (XSOM) for the XML Schema parsing. I've looked into this and I'm glad to say after a few hours of studying the schema and search mailing list archives I'm managing to extract information from files.

I've am now moving on to try and build the tree to visually represent the XML schema.
I had a meeting with MOC on Thursday discussing the general progress of the project and the fact that I'm behind schedule. He encouraged me to continue working on getting the tree built so that a user may then build XPath expressions using my GUI. Once I have this working he suggested that we arrange another meeting to plan the next steps.

This sounds promising so hopefully I can get a fairly generic parsing process in place and the tree working soon.