Wednesday, April 16, 2008

Configuring http protocol for Vmware ESX Server 3.5 Plug in for OEM

Both ESX Server 3.5 and VirtualCenter 2.5 handle connections to Web-based services, including the API and the Managed Object Browser (MOB), through an Http Reverse Proxy service. This service has its own
configuration file, proxy.xml, that can be modified to support HTTP connections to the ESX Server. See the ESX Server 3 Configuration Guide for complete details. Figure 2-1 shows a proxy.xml file that has been
modified to support HTTP for both the MOB and the SDK.

To modify the Web proxy service on ESX Server 3.5 to support HTTP
1 Log in to the service console as the root user.
2 Change directories to /etc/vmware/hostd.
3 Use a text editor to open the proxy.xml file.
4 Navigate to the list of endpoints in the file (identified by the tag) that contains settings for
the Web service supporting the SDK. The nested tags may look something like this:
...

<_type>vim.ProxyService.NamedPipeServiceSpec
httpsWithRedirect
/var/run/vmware/proxy-sdk
/sdk

...
5 Change the accessMode to httpAndHttps. Alternatively, to completely disable HTTPS, you can set to httpOnly.
6 Optionally, change the setting for the MOB as well.
7 Save your settings and close the file.
8 Restart the vmware-hostd process by entering the following command:
service mgmt-vmware restart




<_type>vim.ProxyService.NamedPipeServiceSpec
httpAndHttps
/var/run/vmware/proxy-sdk
/sdk

Tuesday, April 15, 2008

Error encounter while installing 10gr2 RAC on RHEL 5

If you encounter below error while installing 10gr2 RAC on RHEL5, follow the url guide :-

Error:-Error while running the root.sh, error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

Remove the LD_ASSUME_KERNEL=2.4.19

URL :-
http://www.loveunix.cn/html/44/59044-13085.html
http://blog.360.yahoo.com/blog-sWxKwVc0YarVsfeFmtf3gg--?cq=1&p=45



Error:-
The given interface(s), "eth0" is not public. Public interfaces should be used to configure virtual IPs.

URL :-
http://surachart.blogspot.com/2006/03/given-interfaces-eth0-is-not-public.html
and also read this
http://www.oracledba.ca/blogs/index.php?blog=1&p=47&more=1&c=1&tb=1&pb=1


conclusion use the vipca. to configure the rac1 vip.

Thursday, April 10, 2008

Sql server not connecting to port 1433 in windows 2003

The combination of Windows 2003 and SQL 2000 no SP will caused that the TCP port 1433 is not listen by the sql server,
To resolved this install the SQL 2000 Sp3. Then reenable the tcp via the SQL server network utility

Monday, April 07, 2008

Cursor Movement Error in SQL Developer

If you encounter cursor movement error while in SQL Developer, try to changed the settings as in this link
http://www.jroller.com/agileanswers/entry/cursor_movement_in_oracle_s

Thursday, March 20, 2008

Errror in Upgrading Oracle Enterprise Manager to Release 3

It's a headache in patching the OEM10g to release 3. More than twice failed when it is updating the repository.

Once the SYSMAN.EMD_MAINTENANCE package error and the upgrade repository failed. Even if manually recreate the database encounter problem when dropping the sysman user.
as in metalink note 433419.1

more emrepmgr.log.839830.errors
9287: ORA-04021: timeout occurred while waiting to lock object SYSMAN.EMD_MAINTE
NANCE
90232: Warning: Package Body created with compilation errors.
491120: ORA-04063: package body "SYSMAN.EMD_MAINTENANCE" has errors
491121: ORA-06508: PL/SQL: could not find program unit being called
491122: ORA-06512: at line 3
530335: ORA-04063: package body "SYSMAN.EMD_MAINTENANCE" has errors
530336: ORA-06508: PL/SQL: could not find program unit being called
530337: ORA-06512: at "SYSMAN.JOB_SUMM_INS_TRIGGER2", line 91
530338: ORA-04088: error during execution of trigger 'SYSMAN.JOB_SUMM_INS_TRIGGE
R2'
530339: ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 10924
530340: ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 650
530341: ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 7987
530342: ORA-04063: package body "SYSMAN.EMD_MAINTENANCE" has errors
530343: ORA-06508: PL/SQL: could not find program unit being called
530344: ORA-06512: at "SYSMAN.JOB_SUMM_INS_TRIGGER2", line 91
530345: ORA-04088: error during execution of trigger 'SYSMAN.JOB_SUMM_INS_TRIGGE
R2'
530346: ORA-06512: at line 95
559591: ORA-04063: package body "SYSMAN.EMD_MAINTENANCE" has errors
559592: ORA-06508: PL/SQL: could no


Error in dropping the sysman.
SQL*Plus: Release 10.1.0.4.0 - Production on Thu Mar 20 16:32:17 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> DROP USER sysman CASCADE;
DROP USER sysman CASCADE
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 5
ORA-04031: unable to allocate 4000 bytes of shared memory ("shared
pool","select /*+ rule */ bucket, e...","Typecheck heap","seg:kggfaAllocSeg")

Finally after few times, and hint from my senior dba .. we need to do the installation checklist before installing.. It's strange that the release notes didn't highlight this..

The metalink note is
422061.1, Installation Checklist for EM 10g Grid Control 10.2.0.x to 10.2.0.3 OMS and Repository Upgrades. Part of it is shown below:-

To speed up the data migration part, a couple of maintenance tasks should be performed on the repository prior to the upgrade.
NOTE: All the statements below should be run as the 'SYSMAN' user (Repository owner).

1. Run the partition maintenance routines
In order to run the partition maintenance routines, the OMS's will have to be stopped.
After all the OMS's have been shutdown, perform the following steps:
    SQL> EXEC emd_maintenance.remove_em_dbms_jobs;

SQL> ALTER SYSTEM SET job_queue_processes=0 SID='*';
SQL> EXEC emd_maintenance.partition_maintenance;
SQL> ALTER SYSTEM SET job_queue_processes=10 SID='*';
SQL> EXEC emd_maintenance.submit_em_dbms_jobs;

2. Clean up all pending-delete ECM snapshots
Delete all pending-delete ECM snapshots, by running these two PL/SQL routines:

    DECLARE

pcb_params MGMT_PURGE_CALLBACK_PARAMS :=
MGMT_PURGE_CALLBACK_PARAMS(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
BEGIN
ecm_ct.DELETE_SNAPSHOTS(pcb_params);
END;
/

DECLARE
pcb_params MGMT_PURGE_CALLBACK_PARAMS :=
MGMT_PURGE_CALLBACK_PARAMS(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
BEGIN
ecm_ct.DELETE_HOST_CONFIG_SNAPSHOTS(pcb_params);
END;
/

3. After running all the cleanup, make sure the statistics on all the repository tables are accurate and up-to-date. Run this procedure to analyze the statistics on the repository tables:
    SQL> EXEC emd_maintenance.analyze_emd_schema('SYSMAN');

Remember to install the patch required before proceeding, mine is
Patch 4329444 SKIP SCAN OF COMPRESSED INDEX ON INDEX-ORGANIZED TABLE (IOT) GIVES WRONG RESULTS














Wednesday, March 12, 2008

SQL server Maintainance - reindexing the database

To reindex the database, 1 is to use the maintenance plan, 2 manually reindex the database based on the reindex statistics

http://blogs.digineer.com/blogs/larar/archive/2006/08/16/smart-index-defrag-reindex-for-a-consolidated-sql-server-2005-environment.aspx

Monday, March 10, 2008

Oracle 10g instance client - unable to connect protocol adapter error

After installing the 10g instant client if there is an protocol adapter error appear even when the tnsnames.ora is properly configured it could be that the tns_admin is not properly register.


You can simply add "String Value" in registry and it should solve your problem. Perform this and see if it works.

Start->Run->Regedit
In the registry goto
HKEY_LOCAL_MACHINE->Software->Oracle->RightClick and add String Value and Name it TNS_ADMIN and give it the value of your correct Network Files.
For example if your TNSNAMES.ORA and SQLNET.ORA files are located under C:\oracle\product\10.2.0\client_1\network\admin then you should specify this value for TNS_ADMIN.