Tuesday, October 2, 2018

APPS Login Failed with error HTTP 404


APPS Login Failed with error HTTP 404
           
Applies to:
            Oracle Enterprise Linux – Version: 7
            Oracle EBS R12.1
           
Description:
Oracle EBS Login page going to fail with error “The webpage cannot be found HTTP 404”. I have restart the services but the problem is same. All services started successfully.
Error Log shows the following: $LOG_HOME/ora/10.1.3/j2ee/oacore/oacore_default_group_1/log.xml which reports:
Internal error raised trying to instantiate web-application: html defined in web site OC4J 10g (10.1.3) Default Web Site.
Error compiling :$COMMON_TOP/webapps/oacore/html: Error instantiating compiler: Web service artifact generation failed:java.lang.InstantiationException: IO Error reading WEB-INF/wsdl/wsrp_service.wsdl in $COMMON_TOP/webapps/oacore/html: $ORA_CONFIG_HOME/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/server-wsdl/wsrp_service.wsdl (Permission denied)


Solution:
The problem occurs because the file wsrp_service.wsdl is owned by the ‘root’ user. To fix the problem change the ownership of above file from root to <APPLMGR_USER>
·         Login from root user to change the ownership
·         Chown <APPLMGR_USER>:oinstall $ORA_CONFIG_HOME/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/server-wsdl/wsrp_service.wsdl
·        Login to user <APPLMGR_USER> and start the Middle-Tier services
·        Test the login again it will successful




Your comments, especially which will help us improve the functionality, will be greatly appreciatedJ

Thursday, September 27, 2018

Configure and Send EMAIL from Oracle Database


Configure and Send EMAIL from Oracle Database
           
Applies to:
            Oracle Enterprise Linux – Version: 7
            Oracle Database 11gR2
           
Description:
            How to configure EMAIL from Oracle Database and Send Email from PL/SQL.

Solution:
Following the simple steps to configure EMAIL from Oracle Database:

1.    Connect Oracle Database as sysdba

2.    Install the following two packages:
SQL> @ORACLE_HOME/rdbms/admin/utlmail.sql;
SQL> @ORACLE_HOME/rdbms/admin/prvtmail.plb;

3.    To set SMTP parameter:
SQL> show parameter SMTP_OUT_SERVER;
SQL> Alter system set SMTP_OUT_SERVER=<enter your smtp server address>;
SQL> shutdown immediate;
SQL> startup;
SQL> show parameter SMTP_OUT_SERVER;
If the SMTP_OUT_SERVER parameter is set then you go to next step.

4.    Connect Oracle Database as sysdba

5.    SQL>grant execute on UTL_TCP TO <SCHEMA_NAME>;
SQL> grant execute on UTL_SMTP TO <SCHEMA_NAME>;
SQL> grant execute on UTL_MAIL TO <SCHEMA_NAME>;
SQL> grant execute on DBMS_NETWORK_ACL_ADMIN TO <SCHEMA_NAME>;


6.    Connect to schema which is granted
SQL> connect <SCHEMA_NAME>

7.    Begin
UTL_MAIL.SEND (
sender      =>  ‘dba.admin@pakistan.com’,
recipients  =>    ‘abdul.wahid@pakistan.com’,
subject    =>    ‘TEST EMAIL’,
message     =>    ‘Salam, This EMAIL is sent from Oracle Database’);
end;
/




Your comments, especially which will help us improve the functionality, will be greatly appreciatedJ

Tuesday, September 25, 2018

Unable to Open Oracle EBS forms in Internet Explorer 11 on Windows 10


Oracle EBS Open in Internet Explorer 11 on Windows 10
           
Applies to:
            Oracle Enterprise Linux – Version: 7
            Oracle EBS R12.1.3
           
Description:
            After upgrade Windows 7 to Windows 10 on client end we face the problem,                Oracle EBS login successfully but unable to open the forms.  

Solution:
            Following the steps to configure Internet Explorer 11 for Oracle EBS:
·       Open the Internet Explorer 11 and Navigate to Tools à Compatibility View Settings.  
Then add Domain name in the URL (ex: oraebs.com in vision.oraebs.com) using Add this website option.

·       Now navigate to Tools à Internet Options à Security. Select Internet and click on Custom Level button. Scroll down till end of the options and Disable the option Enable XSS filter.

·       Navigate to Tools à Internet Options à Security. Select Local Intranet and click on Sites button and then click on Advanced button. Enter the EBS URL address and click on Add button.

·       Install Java (JRE) jre-6u30-windows-x64 on client end, as it is compatible for my EBS environment and Java (JDK) version at Server end.

This solution worked for me and I am able to open EBS R12 forms in Internet Explorer version 11 on Windows 10.




Your comments, especially which will help us improve the functionality, will be greatly appreciatedJ



Wednesday, September 19, 2018

Configure YUM Repository from installation DVD


Configure YUM Repository from installation DVD
           
Applies to:
            Oracle Enterprise Linux – Version: 7
           
Description:
            Configuring YUM on OEL 7 from installation DVD

Solution:
Following the steps to configure YUM from installation DVD:
After installation of Oracle Linux 7 configure YUM repository from installation DVD to install other RPMs.
Insert installation DVD of OEL 7 into CD/DVD ROM.

# umount /cdrom
# mount /dev/sr0 /mnt
# cd /etc/yum.repos.d/

Create a new file:
# vi rhel7dvd.repo

Add the following details:
[cdrom]
name=CDROM Repo
baseurl=file:///mnt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

Save the above file

Clear the related caches by yum clean all and subscription-manager:
# yum clean all
# subscription-manager clean

Check whether you can get the packages list from the DVD repo:
# yum list – noplugin
 
If no problem, you will update:
# yum update – noplugin
 
# yum-config-manager --disable ol7_UEKR3
# yum-config-manager --disable ol7_latest
 
# yum update – noplugin



Your comments, especially which will help us improve the functionality, will be greatly appreciatedJ

Tuesday, September 18, 2018

Monitor all DDL Statements at Database Level


Monitor All DDL Statements at Database Level

Applies to:
            Oracle Enterprise Linux – Version: 7
            Oracle Database 11gR2

Description:
            I want to track all DDL statements at Database level.

Solution:
Following the steps to track all DDL statements at Database level:

1-      First to create a Table that store DDL statements

CREATE TABLE DDL_MONITOR_DB
(
  DATE_TIME  DATE,
  DDL_EVENT  VARCHAR2(500),
  OS_USER    VARCHAR2(50),
  MACHINE    VARCHAR2(100)
)

2-      Create a Trigger at Database level to catches all DDL statements

CREATE OR REPLACE TRIGGER DDL_MONITOR
AFTER CREATE OR DROP OR TRUNCATE OR ALTER ON DATABASE
DECLARE

   V_OSUSER   V$SESSION.OSUSER%TYPE;
   V_MACHINE  V$SESSION.MACHINE%TYPE;
   V_IP   VARCHAR2(20);
   V_DATABASE V$PARAMETER.VALUE%TYPE;

BEGIN
      SELECT VALUE INTO V_DATABASE FROM v$parameter WHERE NAME = 'db_name';
                 V_OSUSER  :=SYS_CONTEXT('USERENV','OS_USER');
                 V_MACHINE :=SYS_CONTEXT('USERENV','TERMINAL');
                 V_IP      := SYS_CONTEXT('USERENV','IP_ADDRESS');

INSERT INTO DDL_MONITOR_DB (date_time, ddl_event, os_user, machine)
VALUES (SYSDATE, 'Username: (' || ora_login_user || ')   ' || 'Action: (' || ora_sysevent || ')   ' ||
'Object: (' || ora_dict_obj_owner||'.'||ora_dict_obj_name || ')   ' ||
'Type: (' || ora_dict_obj_type || ')', V_OSUSER, V_IP || ' (' || V_MACHINE || ')');


EXCEPTION WHEN OTHERS THEN NULL;
END;
/


Your comments, especially which will help us improve the functionality, will be greatly appreciatedJ

Friday, August 31, 2018

ORA-10564 Tablespace UNDOTBS1 ORA-01110 ORA-10560


ORA-10564 Tablespace UNDOTBS1 ORA-01110 ORA-10560

Applies to:
            Oracle Enterprise Linux – Version: 7
            Oracle EBS R12

Description:
            After abnormal shutdown of server we face the problem “ORA-10564 Tablespace UNDOTBS1 ORA-01110 data file 7 UNDOTBS01.DBF ORA-10560 block type KTU UNDO BLOCK”. I have restarted all the services of database but the problem is same. I have also restarted the whole machine/server but still the same issue.

Solution:
            After some research I found that recreate the undo tablespace to resolve the issue.
Following the steps to resolve the above issue:

1-      Connect / as sysdba

2-      Create undo tablespace UNDOTBS2 datafile ‘/u01/oracle/oradata/undotbs02.dbf’ size=1G;

3-      Alter system set undo_tablespace = UNDOTBS2;

4-      Shutdown immediate

5-      startup

6-      Drop tablespace UNDOTBS1 including contents and datafiles;

Database is working fine now.



Your comments, especially which will help us improve the functionality, will be greatly appreciatedJ


Thursday, August 30, 2018

Web Application Services adoacorectl.sh failed


EBS R12 Web Application Services adoacorectl.sh failed

Applies to:
            Oracle Enterprise Linux – Version: 7
            Oracle EBS R12

Description:
            Oracle EBS R12 Application services cannot start successfully adoacorectl.sh going to failed. I have restarted all the services of application and database but the problem is same. I have also restarted the whole machine/server but still the same issue. I found in log file that all OC4J services (oacore, oafm, form) going to fail with timeout error.

Solution:
            After some research I found that need to clean out the lock files.
Following the steps to resolve the above issue:
1-      Stop all application services          
$INST_TOP/admin/scripts/adstpall.sh

2-      Remove any .lock files from following folders:
$INST_TOP/ora/10.1.3/j2ee/oacore/persistence/oacore_default_group_1
$INST_TOP/ora/10.1.3/j2ee/oafm/persistence/oafm_default_group_1
$INST_TOP/ora/10.1.3/j2ee/forms/persistence/forms_default_group_1

3-      Also remove the following files if exists:
$COMMON_TOP/cacheLock
$COMMON_TOP/_TldCache

4-      Now Start application services
$INST_TOP/admin/scripts/adstrtall.sh

                   All services going to start successfully.



Your comments, especially which will help us improve the functionality, will be greatly appreciatedJ


How to Extend Swap space on LVM Disk Linux

How to Extend Swap space on LVM Disk Linux   Applies to:             Oracle Database 12.2             Oracle Linux 7 Description: ...