Hurriyet

23 Temmuz 2014 Çarşamba

Oracle E-Business Suite: Cancelling or Closing Workflow Notification - Workflow Kapatma veya İptal Etme


There is a PL\SQL Script that can cancel or close workflow notifications through its API.   The script below has 2 parameters (recepient_role and close_type). The workflows can be closed or cansel with the script below according to its close type value.

 declare   
  -- declare Cursor   
  cursor get_notif is select * from wf_notifications where recipient_role='&UserName' and status='OPEN';  
  -- Local variables here  
  i integer      number(10):=1;  
  notification_type  varchar2(10):= '&nType';  
 begin  
  dbms_output.put_line('Executing Procedure');  
  -- open cursor to check open notifications which needs to be closed  
  for c_get_notif in get_notif  
   loop  
   begin  
   
   -- Check notificaiton type (close or cancel)  
   -- CLOSE - This will close information notifications only, all action required notification will not be close  
   -- CANCEL - This will cancel notification, action required notification such as Approve/Reject will be cancelled and cannot be rollback, users will not be able to take actiion on such notification later  
   if upper(notification_type)='CLOSE' then  
    wf_notification.Close(c_get_notif.notification_id, c_get_notif.recipient_role);  
    i:=i+1;  
   elsif upper(notification_type)='CANCEL' then  
    wf_notification.cancel(c_get_notif.notification_id, c_get_notif.recipient_role);  
    i:=i+1;  
   end if;  
     
   exception  
    when others then  
    null;  
   end;  
   end loop;  
     
   commit;  
   dbms_output.put_line(to_char(i)||' records effected');  
   dbms_output.put_line('Procedure Executed Successfully');  
 end;

Why This Is Important?

It is because if these workflows are not cleaned, they can cause some serious queue. That is to say it will prevent  the other mails from going out or in.

Reference:

1-http://maqappsfusion.blogspot.com.tr/2013/05/close-or-cancel-workflow-notification.html

Oracle Fusion Middleware: Oracle Business Intelligence 11g Start/Stop Services And Servers

In Oracle Business Intelligence 11g starting and stoping servers can be done from the shortcuts. The following image shows us from where we can set the shortcut.


Below is the output of how they look on the desktop.


After the installation of OBIEE, these should be set in order to have a more compact system. The executables that are called are located in the Oracle Instance Home(Example: C:\oracle\obiee\instance\instance1\bifoundation_domain\OracleBIApplication )


Starting and Stopping Servers One by One:

Sometimes it takes too long to stop and start all the services when all we have to do is to stop just one service. When this is the case we could always run cmds and then start and stop the servers one by one.
That is to say if there is a specific problem, we will be to act according to it.

Three Steps: There are 3 servers that we must start and stop if we had only installed Oracle BI. If we have Oracle BI Apps installed, then there must be an ODI server that should be deployed.

1-Starting Weblogic Server: To do that we first send a cmd file shortcut to our desktop.


Then we specifiy the location for which command line should start from, in the start in section just like below, by right clicking to command line and from there clicking on the properties
.
For weblogic server we could write in "Start in" topic :C:\oracle\obiee\user_projects\domains\bifoundation_domain\bin. Which shows that it is in the Domain home. After setting this and clicking Ok, we should be able to go directly into the directory we want.  Then we enter "startWebLogic.cmd"



2-Starting Managed Server(BI_Server1):

For BI Server, the configuration steps are exactly the same as the above. Bu for command wise, we enter startManagedWebLogic.cmd bi_server1


 3- Starting OPMN:

To start opmn, we will set the instance home for the directory to start in which is in this case C:\oracle\obiee}instances\instance1\bin\ . Then to start the OPMN we issue the "opmctl.bat startall"


Service Startup Order of the OBIEE 11g:

1- Weblogic
2- BI_Server
3- OPMN

Service Stop Order of the OBIEE 11g:

1- OPMN
2- BI_Server
3- Weblogic

21 Temmuz 2014 Pazartesi

Oracle Fusion Middleware: How to find Oracle Weblogic Server Version? - Oracle Weblogic Server Versiyonu Nasıl Bulınur?

To find out  the WebLogic Server Version, we may go to  registry.xml in MIDDLEWARE_HOME
We open registry.xml and search for “component name=”WebLogic Server”” version=”10.3.5.0″ (variable version next to this will tell you weblogic version.

For example ours was 10.3.5.0.

Oracle E-Business Suite: Concurrent Requests Performance History - Concurrent Request'lerle ilgili İstatistik Performans Bilgisi

Query About Performance Statistics of Concurrent Requests:

This query gives us the count of  daily run concurrents. In addition to that their daily running duration, average running hours and pending hours are also shown. That's how we could diagnose if there had been wrong with the system. In case there was a problem, we could easily detect and investigate the problem on that day or period.

 SELECT TO_CHAR(TRUNC(ACTUAL_START_DATE),'DD-MON-YY DY') STARTDATE,  
 COUNT(*) COUNT, ROUND(SUM(ACTUAL_COMPLETION_DATE - ACTUAL_START_DATE) * 24, 2) RUNNING_HOURS,  
 ROUND(AVG(ACTUAL_COMPLETION_DATE - ACTUAL_START_DATE) * 24, 2) AVG_RUNNING_HOURS,  
 ROUND(SUM(ACTUAL_START_DATE - REQUESTED_START_DATE) * 24, 2) PENDING_HOURS,  
 ROUND(AVG(ACTUAL_START_DATE - REQUESTED_START_DATE) * 24, 2) AVG_PENDING_HOURS  
 FROM APPLSYS.FND_CONCURRENT_PROGRAMS P,APPLSYS.FND_CONCURRENT_REQUESTS R  
 WHERE R.PROGRAM_APPLICATION_ID = P.APPLICATION_ID  
 AND R.CONCURRENT_PROGRAM_ID = P.CONCURRENT_PROGRAM_ID  
 AND R.STATUS_CODE IN ('C','G')  
 AND TRUNC(ACTUAL_COMPLETION_DATE) > TRUNC(SYSDATE-6)  
 AND TO_CHAR(TRUNC(ACTUAL_START_DATE),'DD-MON-YY DY') IS NOT NULL  
 GROUP BY TRUNC(ACTUAL_START_DATE)   
 ORDER BY TRUNC(ACTUAL_START_DATE) ASC;


Reference:

1-http://dbavandana.blogspot.com.tr/2013/06/concurrent-manager-queries.html

Oracle E-Business Suite: Concurrent Programs Under Queue - Sırada Bekleyen İşlemler, Concurrentlar

Concurrent Programs Under Queue:

The query given below can show us the queries that are on hold, waiting to be executed. There could be a condition on the number of concurrents waiting and in the end if this number is too much, a mail can be sent to the administrator to check if something is wrong.

select user_CONCURRENT_PROGRAM_NAME "PROGRAM NAME",concurrent_queue_name "QUEUE NAME", priority,decode(phase_code,'P','Pending') "PHASE",   
 decode(status_code,'A','Waiting','B','Resuming','C','Normal','D','Cancelled','E','Error','F',  
 'Scheduled','G','Warning','H','On Hold','I','Normal','M','No Manager','Q','Standby','R','Normal','S',  
 'Suspended','T','Terminating','U','Disabled','W','Paused','X','Terminated','Z','Waiting') "   
 NAME", status_code,count(*) from   
 fnd_concurrent_worker_requests   
 where phase_code='P' and hold_flag!='Y'   
 and requested_start_date<=sysdate  
 and concurrent_queue_name<> 'FNDCRM'  
 and concurrent_queue_name<> 'GEMSPS'  
 group by   
 user_CONCURRENT_PROGRAM_NAME,  
 concurrent_queue_name,priority,phase_code,status_code  
 order by count(*) desc;  


Referans:

1- http://dbavandana.blogspot.com.tr/2013/06/concurrent-manager-queries.html

Oracle E-Business Suite: How to hide the Apps password while applying a patch? - Apps kullanıcısı şifresini gizlemek

In Oracle EBS to hide our passwords while applying our patches, we could use "flags=hidepw" .Thus we could prevent our machine from writing the password information in the log files.

> adpatch flags=hidepw

In order to make sure it is always applied, we could define an alias.

The real importance of this matter is that if we could draw some attention to this matter, we could look for ways to hide our passwords in other commands and subjects.

14 Temmuz 2014 Pazartesi

Oracle Fusion Middleware: Oracle Configuration Manager - OCM - What is OCM?

What is Oracle Configuration Manager?

OCM is a  tool to monitor our Oracle system to provide correct information to us and to Oracle Support.

How to obtain OCM?

OCM can be downloaded as a patch. From Oracle Support Page, we click on Patches and Updates and we  do a simple search of the Patch "5567658".

How to install OCM?

To install it, we have to run cmd as an administrator. Then we change our directory to the directory of OCM and run setupCCR.exe.

For Fusion Middleware:
For fusion middleware OCM is already configured and placed under fmw_home/utils. It is also stated under the topic "2.4.9 Fusion MiddleWare and Fusion Applications" .

 Link is given below:
"http://docs.oracle.com/cd/E49269_01/doc.12/e48361/ch2_preinstall.htm"


References:

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=200946853606923&id=369619.1&_afrWindowMode=0&_adf.ctrl-state=zutsf9dfd_4 - Doc ID: 369619.1

OCM Documentation Site: http://www.oracle.com/technetwork/documentation/ocm-092152.html

Oracle Fusion Middleware: Running RDA - Remote Diagnostic Agent(RDA) - RDA Çalıştırmak

RDA is a utility to be used to gather information that will aid in problem diagnostics. When we open an SR to Oracle, they will surely be requesting RDA analysis. This will surely shorten the duration for Oracle to provide a solution to the present error. Besides collecting logs is an integral part of chores that is requested by Oracle Support Team.

It is also a great to document what is on our system and how it is formed. It can be run against any number of Oracle tool such Oracle Database, Hyperion, Oracle BIEE and etc...

Once it is installed, rda.sh is run and it starts to gather information. Then the information can be put into Oracle Support(Metalink)

I also had an other article about RDA for EBS diagnostic purposes.

Below, supported products are listed for RDA.

Products Supported

RDA collects information that is useful for diagnosing issues related to the following Supported Oracle products
  • OLAP Products (Express Server, Financial Analyzer, and Demand Planning Server)
  • Oracle Application Server (iAS 1.0.2.x/9.0.x/10.1.2.x/10.1.3.x,10.1.4.x,WebLogic Server (WLS) Release 9.x and 10.x,11g (WLS), HTTP Server,WebCache,J2EE/OC4J)
  • Oracle Billing and Revenue Management products
  • Oracle BPEL Process Manager
  • Oracle Collaboration Suite (Email Server,Calendar,Discussions,Content Services,Workspaces,WebClient,and Wireless)
  • Oracle Data Integrator
  • Oracle Developer (Forms and Reports)
  • Oracle Ebusiness Suite 11i and 12
  • Oracle Enterprise Content
  • Oracle Enterprise Single Sign-on
  • Oracle Enterprise performance management (Hyperion) products
  • Oracle Guardian
  • Oracle Identity Management products
  • Oracle JDBC/PRO *C/ODBC and other development client related information
  • Oracle Management Server and Intelligent Agent (Grid Server, Agent Server, DB Control)
  • Oracle Networking products
  • Oracle RAC Cluster (Single/Multiple Nodes, Automatic Storage Management, Oracle Cluster File System, Data Guard)
  • Oracle RDBMS Server (Standard and Enterprise Editions)
  • Oracle Retail (Retek)
  • Oracle SQL*Plus/iSQL*Plus
  • Oracle TimesTen In-Memory Database
  • Oracle Universal Archive (11g)
  • PeopleSoft
  • Siebel
How To Download?

First we have to download the RDA.zip which can be accessed using the link in the References section.
RDA is also shipped with multiple Oracle products, for instance: Oracle Fusion Middleware, Oracle Communications Billing and Revenue Management, Oracle Configuration Manager, RAC and DB.

For example in Oracle Fusion Middleware it comes under the $MW_HOME/oracle_common/rda. To check if we have a proper installation of Oracle RDA we need to go to RDA Home and execute "rda.cmd -cv" in a Windows Environment which will control the directories. 

The result will be in the "output" directory. The required information can be started from index.html page.

References:

Oracle Support RDA -
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=180849391182810&id=314422.1&_afrWindowMode=0&_adf.ctrl-state=lo7kefmoz_115 - Doc ID 314422.1

https://support.oracle.com/epmos/faces/DocContentDisplay?_afrLoop=190383470244444&id=1498376.1&_afrWindowMode=0&_adf.ctrl-state=15trm3fo54_88
 - Doc ID:1498376.1