Search Channels
 for 
 

What Credit Card Should I Get?

Online RSS Preview
(Content viewed with Online RSS Viewer; converting raw RSS feeds into nicely formatted webpages everytime!)
 
 
 
Joords Oracle DBA blog
Show/Hide Channel Info RSS Channel Source Add To My Channels | Hide All Content Show All Content
 
Hide Channel Info Channel Info

Joords Oracle DBA blog
Author : -
Overview : Jos van den Oord Oracle Remote Datamanagement Services
Language : English
Last Updated : 1/29/2012 2:02:41 PM
Website : http://joordsblog.vandenoord.eu/


View Channel View Channel

1. ASM Processes parameter setting is dependent on the number of databases that connect to ASM
Date/Time : 1/20/2012 8:22:00 AM
Direct link : http://joordsblog.vandenoord.eu/2012/01/asmprocesses-parameter-setting-is.html
 
Setting init.oraparameter ASM instance
Use default values sesettings. Only processes parameter may need modification.
Processes parameter setting is dependent on the number of databases that connect to ASM processes= 25 + 15n, where n = # databases connected to ASM.
If max processes is reache on ASM, this indicaties offten on hanging processes of cluster agents or RMAN processes


Back To Top Go To Bottom

2. Oracle Goldengate first acquaintance
Date/Time : 12/5/2011 11:00:00 AM
Direct link : http://joordsblog.vandenoord.eu/2011/12/oracle-goldengate-first-acquaintance.html
 
The Oracle's strategic solution for real time data integration. Oracle GoldenGate provides low-impact capture, routing, transformation, and delivery of transactional data across heterogeneous environments in real time
GoldenGate Quick Start Tutorials from Gavin SoorMa
  1. GoldenGate Concepts and Architecture
  2. Installation on Red Hat Linux with Oracle 11g
  3. Configuring the Manager process
  4. Performing an initial data load
  5. Configuring online change synchronization
  6. Configuring the Data Pump process
  7. Configuring DDL Synchronization
  8. Filtering and Mapping data
  9. Monitoring Goldengate
  10. Performing a zero downtime cross platform database upgrade
  11. Installing the GoldenGate Director and Client
  12. Using the GoldenGate Director and Client
  13. GoldenGate Veridata Installation and Configuration
  14. GoldenGate Veridata Agent Installation and Configuration
  15. Online Change Synchronization with Initial Data Load
  16. Encrypting Data and Passwords
  17. Some other useful GoldenGate Commands – SHELL, OBEY, HISTORY, VERSIONS
  18. Goldengate DDL Synchronization – some more examples
  19. Goldengate – What is supported and what is not supported ….
  20. Performance Tuning using the RANGE function
  21. Customizing GoldenGate using SQLEXEC and GETVAL functions
  22. Using Goldengate EVENTACTIONS and record markers
  23. Using Goldengate TOKENS with the COLMAP clause
  24. Capturing GoldenGate BEFORE Images using GETUPDATEBEFORES
  25. GoldenGate replication with source and target on the same physical host
  26. GoldenGate replication using a data definition file and DEFGEN utility


Back To Top Go To Bottom

3. RAC Configuration Audit Tool - RACcheck
Date/Time : 11/16/2011 1:52:00 AM
Direct link : http://joordsblog.vandenoord.eu/2011/11/rac-configuration-audit-tool-raccheck.html
 

RACcheck

RACcheck is a RAC Configuration Audit tool designed to audit various important configuration settings within a Real Application Clusters (RAC), Oracle Clusterware (CRS), Automatic Storage Management (ASM) and Grid Infrastructure environment.
RAC Configuration Audit Tool audits configuration settings within the following categories:

  • OS kernel parameters
  • OS packages
  • Many other OS configuration settings important to RAC.
  • CRS/Grid Infrastructure
  • RDBMS
  • ASM
  • Database parameters
  • Many other database configuration settings important to RAC.


Information:
RACcheck - RAC Configuration Audit Tool [ID 1268927.1]


Tools:



Back To Top Go To Bottom

4. Oracle Cloud File System - Grid Infrastructure ASM features “ACFS”
Date/Time : 11/1/2011 12:42:00 AM
Direct link : http://joordsblog.vandenoord.eu/2011/11/oracle-cloud-file-system-grid.html
 
Licensing policy for ASM Cluster File System (ACFS), now called Oracle Cloud File Systerm, is free to use in combination with any Oracle RDBMS version. De files must have a relation with the RDBMS, including non-Oracle files related to the RDBMS application. See the citation below

Citation from the Features and Editions page:
A restricted use license to use Oracle Cloud File System is included with all editions of the database specifically for storing Oracle Database-related configuration files, including Oracle Database software binaries and homes, Oracle Database software administrative files, and Oracle Database software diagnostic files. Customers wishing to store their own data files, or non-Oracle Database software files including data files, binaries, administrative files, and diagnostic files, in Oracle Cloud File System must separately license Oracle Cloud File System.


Back To Top Go To Bottom

5. WARNING: Subscription for node down event still pending in Listener log
Date/Time : 10/26/2011 1:55:00 PM
Direct link : http://joordsblog.vandenoord.eu/2011/10/warning-subscription-for-node-down.html
 
In the listener log file you constantly get the following warning message.

WARNING: Subscription for node down event still pending.


The warning messages are related to the Oracle TNS Listener's default subscription to the Oracle Notification  Service (ONS). This subscription to ONS is introduced in Oracle 10g for RAC environment. Listener subscription to ONS is useful to use advanced features like Fast Application Notification events(FAN) , Fast Application Fail over (FAF) and Fast Connection Failover (FCN) in RAC. So in a non-RAC environment subscription to ONS is not needed. So in a standalone system we can disable it and thus avoid warning message.



Solve the WARNING message in the listener log.
Disable subscription for listener to ONS. This can be done by setting the following parameter in the listener.ora.

SUBSCRIBE_FOR_NODE_DOWN_EVENT_{listener_name}=OFF

Where {listener_name} should be replaced with the actual listener name configured in the LISTENER.ORA file.

After that you need to stop and start the listener by,
lsnrctl stop lsnrctl start

Alternatively you can reload the listener if availability is important to you. Do it just by,
lsnrctl reload

This will prevent the messages from being written to the log file.





Back To Top Go To Bottom

6. Point of Interest Oracle GoldenGate
Date/Time : 10/26/2011 1:00:00 PM
Direct link : http://joordsblog.vandenoord.eu/2011/10/point-of-interest-oracle-goldengate.html
 


Back To Top Go To Bottom

7. Oracle performance and Time Measurements Within a Virtual Machine
Date/Time : 10/21/2011 1:27:00 PM
Direct link : http://joordsblog.vandenoord.eu/2011/10/oracle-performance-and-time.html
 
Customers often ask to what extent they can trust performance measurements and timing results of the Oracle database within a virtual machine. To fully understand the performance of applications running in a virtual machine, we can give some general guidance.
 See for the guideance this link Timekeeping In VirtualMachines

The following items on the ESX server is a key element that must be taken in detecting performance problems in databases that run on VMware:

  • Over allocation on CPU, 
  • Resource pools, which for the next ESX cluster is planned (depending on setting, this is a ratio (shares) or a longer warranty (reservation))
  • CPU power management (allowing for lower CPU / clock speed for variable)
  • CPU affinity (linking VMs to CPUs)

The question, given the above points, is actually what is the meaning of performance measurements and numbers in a guest O / S. This applies in my view not only for VMWare, but also for other solutions.VMWare has a document that on pages 20 and 21 has explained , see the link Timekeeping In VirtualMachines

An example, what is the meaning of a statement that 360 seconds CPU is consumed as it is unclear whether the ESX cluster at that time was 100%, or CPU power management is enabled. What is the meaning of a statement that yesterday and before 360 seconds duration time was in seconds and today 720 seconds (while the number of disk and bufferreads equal).
The answer depends on the last points mentioned regarding the settings of ESX.

Back To Top Go To Bottom

8. Twee remedies tegen systeemuitval en datacorruptie [RAC en Data Guard]
Date/Time : 8/5/2011 10:12:00 AM
Direct link : http://joordsblog.vandenoord.eu/2011/08/twee-remedies-tegen-systeemuitval-en.html
 


Back To Top Go To Bottom

9. Right Availability in RAC environment Playing with Oracleclusterware infrastructure components
Date/Time : 7/5/2011 10:02:00 AM
Direct link : http://joordsblog.vandenoord.eu/2011/07/rightavailabilityinracenvironment.html
 


Back To Top Go To Bottom

10. Global Cache Service Processes in a Oracle Cluster (RAC) with Multiple Databases
Date/Time : 5/22/2011 8:13:00 AM
Direct link : http://joordsblog.vandenoord.eu/2011/05/global-cache-service-processes-in.html
 
Creating a cluster with a single pool of storage managed by Oracle ASM provides the infrastructure to manage multiple databases whether they are single instance databases or Oracle RAC databases.

With Oracle RAC databases, you can adjust the number of instances and which nodes run instances for a given database, based on workload requirements. Features such as cluster-managed services allow you to manage multiple workloads on a single database or across multiple databases. It is important to properly manage the capacity in the cluster when adding work. The processes that manage the cluster—including processes both from Oracle Clusterware and database—must be able to obtain CPU resources in a timely fashion and must be given higher priority in the system.



Oracle recommends that the number of real time Global Cache Service Processes (LMSn) on a server is less than or equal to the number of processors. (Note that this is the number of recognized CPUs that includes cores. For example, a dual-core CPU is considered to be two CPUs.).

Consolidating many small databases into a cluster, you may want to reduce the number of LMSn created by the Oracle RAC instance. By default, Oracle Database calculates the number of processes based on the number of CPUs it finds on the server. This calculation may result in more LMSn processes than is needed for the Oracle RAC instance. One LMS process may be sufficient for up to 4 CPUs.To reduce the number of LMSn processes, set the GC_SERVER_PROCESSES initialization parameter minimally to a value of 1. Add a process for every four CPUs needed by the application. In general, it is better to have few busy LMSn processes. Oracle Database calculates the number of processes when the instance is started, and you must restart the instance if you want to change the value.

Back To Top Go To Bottom

11. RMAN Configuration in Data Guard [Archivelog Deletion Policy]
Date/Time : 5/20/2011 9:07:00 AM
Direct link : http://joordsblog.vandenoord.eu/2011/05/rman-configuration-in-data-guard.html
 
Follow these steps to configure RMAN backups in Data Guard environment. When you want to managed the archivelog deletion policy from one centralpoint.

CONFIGURE ARCHIVELOG DELETION POLICY

Possible options :

APPLIED ON STANDBY - enables flash recovery area to delete archivelogs that are applied on mandatory standby.

NONE - enables flash recovery area to delete archivelogs that are backed up to tertiary device and that are obsolete based on the configured backup retention policy. This is the default configuration.

CLEAR - clears the deletion policy and returns the specified configuration to default value. The default value is NONE.


Viewing the Current Deletion Policy

To view the current setting (APPLIED ON STANDBY, CLEAR, NONE) for a database, issue the following query :
SELECT NAME, VALUE FROM V$RMAN_CONFIGURATION WHERE NAME LIKE '%ARCHIVELOG DELETION POLICY%'; 

NAME VALUE
----------------------------- --------------
ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY


You can also find the existing configuration using the RMAN SHOW ARCHIVELOG

DELETION POLICY command:
RMAN> SHOW ARCHIVELOG DELETION POLICY 
RMAN configuration parameters are:
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;

When Backup is taken form the Standby Database.

Issue the following command on the primary database:
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
The following commands should be issued, after connecting to each of the other standby database servers.
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
Reconfiguring the Deletion Policy After a Role Transition

By setting this configuration on each of the other standby databases (where backups are not being taken), it will enable automatic deletion of archived logs on this standby database that have been applied to all other remote standby destinations. By default, this configuration requires that at least one remote destination is set to mandatory. Archived logs are deleted if space in the Flash Recovery Area needs to be reclaimed for new files.

Note: Mandatory standby destination can impact the primary database if the standby destination cannot be reached.

Configure RMAN standby database where backups are taken:

Issue the following command on the physical standby where the backup will be taken.
RMAN> CONFIGURE DELETION POLICY TO NONE;
Specify when the archived logs can be deleted with the CONFIGURE ARCHIVELOG DELETION POLICY COMMAND. Since the logs are backed up at the standby site, you should specified the NONE option for the log deletion policy. This will enable automatic deletion of archived logs on the standby database that are outside of the retention period or that are already backed up to tape, if additional space is needed for new backups or archived logs.

On all the other physical standby databases where backups are note taken and the primary database.
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
Note: That in the event of a switchover or failover, the database role changes and the appropriate CONFIGURE commands must be re-executed on new primary and standby databases.

More Information:


Back To Top Go To Bottom

12. ASM required mirror free space to accommodate disk failures
Date/Time : 5/19/2011 7:59:00 PM
Direct link : http://joordsblog.vandenoord.eu/2011/05/asm-required-mirror-free-space-to.html
 
Blogpost of Joel Goodman Monday, March 28, 2011 28/03/2011

Many ASM administrators have little or no experience with ASM mirroring, because they use External Redundancy for their diskgroups and ASM generally maintains one copy for each AU in this case. Tracking free space within a diskgroup in such a case is simple. Use the following details from view V$ASM_DISKGROUP to examine the redundancy, offline state and free space requirements for mirror recovery:



TOTAL_MB => indicates the total space in the diskgroup FREE_MB => indicates the total free space in the diskgroup REQUIRED_MIRROR_FREE_MB => indicates free space required in the diskgroup to restore redundancy by copying allocation units as described above. USABLE_FILE_MB => indicates how much of the FREE_MB may be safely used whilst leaving enough free space for mirror copy recovery in the case of disk failure TYPE => indicates the redundancy attribute of the diskgroup. OFFLINE_DISKS => indicates how many disks are offline in the diskgroup 

Note: the LSDG command in the ASMCMD utility will provide the same information.

The crucial aspect of administering the diskgroups when ASM mirrors the AUs, is having enough free space to re-copy the AUs when a loss occurs. This is not a concern when external redundancy is used, but it is for normal and high redundancy, and requires that the ASM administrator be aware of the free space needs.

Back To Top Go To Bottom

13. Use Chrome plugin to make Oracle AWR reports (formattter) friendly
Date/Time : 5/2/2011 5:32:00 AM
Direct link : http://joordsblog.vandenoord.eu/2011/05/use-chrome-plugin-to-make-oracle-awr.html
 
Blogpost of Tom Kyte Thursday, April 28, 2011

An "AWR Formatter" written by a friend of mine, Tyler Muth. It's pretty cool - works as a Chrome plugin - and it makes an AWR report a little more 'friendly' to use. It creates hot links for many of the wait events (so you know what they mean) and it summarizes up a lot of stuff - making the AWR report a lot more "interactive". Check it out and give him feedback on it if you have time.
 

Installation:

You can watch a screencast of it in action here.

More information:

  • If you need a “demo” AWR Report , you can download this report


Back To Top Go To Bottom

14. Use Firefox Quick Searches to quickly access Oracle related information: DOCs, SRs, NOTEs, BUGs etc…”
Date/Time : 4/28/2011 5:27:00 AM
Direct link : http://joordsblog.vandenoord.eu/2011/04/use-firefox-quick-searches-to-quickly.html
 
Customize your Firefox to use acronym and contents of mentioned Metalink Note displayed without the need to open Metalink web site. “mn 1269139.1″ (mn was an acronym for Metalink Note) 

How to do this see the blog of  Oleksandr Denysenko's Blog

Back To Top Go To Bottom

15. Patch for Enterprise Manager Database Control 10.2.0.4 Or 10.2.0.5
Date/Time : 4/19/2011 8:30:00 PM
Direct link : http://joordsblog.vandenoord.eu/2011/04/patch-for-enterprise-manager-database.html
 
The Problem
Enterprise Manager Database Control with Oracle Database 10.2.0.4 and 10.2.0.5 " The DBCONSOLE" will not work. The root certificate used to secure communications via the Secure Socket Layer (SSL) protocol will expire on 31-Dec-2010 00:00:00. 


ATTENTION - Enterprise Manager Database Control 10.2.0.4 Or 10.2.0.5 - Patch Required from 31-Dec-2010 onwards [ID 1217493.1]


Solving this problem
If you plan to configure Database Control with either of these Oracle Database releases, Oracle strongly recommends that you apply Patch 8350262 to your Oracle Home installations before you configure Database Control. Configuration of Database Control is typically done when you create or upgrade Oracle Database, or if you run Enterprise Manager Configuration Assistant (EMCA) in standalone mode.

Back To Top Go To Bottom

16. Bug 9981011: VARIOUS ORACLE PROCESSES CONSUMING LARGE QUANTITIES OF FILE DESCIPTORS (NFILES)
Date/Time : 4/19/2011 6:10:00 PM
Direct link : http://joordsblog.vandenoord.eu/2011/04/bug-9981011-various-oracle-processes.html
 

After upgrading to the 10.2.0.5.0 release the database is encounter a file handle leak.  The leak is seen in production and development instances. The leak happens on different processes (emagent and MMNL process are the current ones). 
Test on growing of openfiles:
lsof -p 10140 |wc -l => 600
lsof -p 10140 |wc -l => 759
Now we wait for the sollution of oracle to solve this bug. 
 
The max file limit has been reached so the db will have to be shutdown or the 
process killed, if possible, to free up files.The leak happen over time and manifests itself when the limits are reached as error ORA-27041.
 
The sollotion
VARIOUS ORACLE PROCESSES CONSUMING LARGE QUANTITIES OF FILE DESCIPTORS (NFILES) Patch 9981011. For us we need the Patch download for Oracle 10.2.0.5 on HP-UX Itanium.

This patch is also suitable for a 10.2.0.5.1 home, there are no conflicts with 10.2.0.5.1


Back To Top Go To Bottom

17. Flash Recovery Area backup to disk with RMAN
Date/Time : 3/31/2011 8:19:00 AM
Direct link : http://joordsblog.vandenoord.eu/2011/03/flash-recovery-area-backup-to-disk-with.html
 
Is it possible to do a RMAN backup of the Flash Recovery Area (FRA) to disk. The standard method by RMAN is that this is only possible with the use of a SBT channel/library. The RMAN command 'BACKUP RECOVERY AREA' works only with SBT channels, meaning a tertiary storage such as tape.

Oracle has introduce an emulator for SBT library to do a backup of the FRA to disk. The RMAN disksbt library, which emulates a SBT library (but it writes the backups to a disk location). This disksbt, can be used to test backup the FRA to a disk location



For Example:
RMAN> run { allocate channel dev1 type sbt parms='SBT_LIBRARY=oracle.disksbt, ENV=(BACKUP_DIR=/home/oracle)'; crosscheck backup device type sbt_tape; delete noprompt expired backup; } 


Back To Top Go To Bottom

18. Oracle RDBMS Patch set 11.2.0.2 new behaviour on datafile and Automatic Memory Management
Date/Time : 3/27/2011 9:29:00 PM
Direct link : http://joordsblog.vandenoord.eu/2011/03/oracle-rdbms-patch-set-11202-new.html
 

New Behaviour for datafile:

In patch set 11.2.0.2 a new behaviour for datafile write errors has been implemented.With this release ANY write error to a datafile will cause the instance to abort.

Before 11.2.0.2 those errors usually led to an offline datafile if the database operates in archivelog mode (your production database do, don’t they?!) and the datafile does not belong to the SYSTEM tablespace. Internal discussion found this behaviour not up-to-date and alligned with RAC systems and modern storages.
Therefore it has been changed and a new underscore parameter got introduced.

_DATAFILE_WRITE_ERRORS_CRASH_INSTANCE=TRUE

This is the default setting´and the new behaviour beginning with Oracle 11.2.0.2

If you would like to revert to the pre-11.2.0.2 behaviour you’ll have to set in your init.ora/spfile this parameter to false. But keep in mind that there’s a reason why this has been changed.
More info in MOSC Note: 7691270.8

New Behaviour for Automatic Mamory Management (AMM):

Unfortunately a “new feature” in 11gR2 turns AMM on unless a hidden parameter called _memory_imm_mode_without_autosga is set to FALSE.

This means if you have disabled AMM , upgrades to 11gR2, you can find that AMM has reappeared, even if you think that you have disabled it. [Oracle11gR2 AMM restart]

There is a MOSC note about AMM in 11gR2 that notes that this regression back to AMM is the expected behavior in 11.2 for immediate memory allocation requests and that Oracle added this behavior as a 11gR2 new feature when automatic memory management was disabled.

More info MOSC Note:1269139.1, â€śSGA Re-Sizes Occurring Despite AMM/ASMM Being Disabled(MEMORY_TARGET/SGA_TARGET=0)”

Back To Top Go To Bottom

19. Clusterware References 10g
Date/Time : 3/24/2011 10:50:00 PM
Direct link : http://joordsblog.vandenoord.eu/2011/03/clusterware-references-10g.html
 

Clusterware References;
Pro Oracle Database 10g RAC on Linux

Metalink Notes

259301.1CRS and 10g RAC
This note contains a useful awk script to improve the output of crs_stat -ls
436067.1Windows CRS_STAT script to display long names correctly
309541.1How to start/stop the 10g CRS Clusterware
263897.1How to stop Cluster Ready Services (CRS)
298073.1How to remove CRS auto start and restart for a RAC instance
295871.1How to verify if CRS install is valid
316583.1VIPCA fails complaining that interface is not public
341214.1How to cleanup after a failed (or successful) Oracle Clusterware installation
280589.1How to install Oracle 10g CRS on a cluster where one or more nodes are not to be configured with CRS immediately
357808.1CRS Diagnostics
272331.1CRS 10g Diagnostic Guide
330358.1CRS 10g R2 Diagnostic Collection Guide
331168.1Oracle Clusterware consolidated logging in 10gR2
342590.1CRS logs not being written
357808.1Diagnosability for CRS/EVM/RACG
459694.1Procwatcher: Script to Monitor and Examine Oracle and CRS Processes
289690.1Data Gathering for Troubleshooting RAC and CRS issues
265769.1Troubleshooting CRS Reboots
240001.1Troubleshooting CRS root.sh problems (10g RAC)
239989.110g RAC - Stopping Reboot Loops when CRS problems occur
294430.1CSS Timeout Computation in 10g RAC
284752.110gRAC: Steps to Increase CSS Misscount, Reboottime and Disktimeout
462616.1Reconfiguring the CSS disktimeout of 10gR2 Clusterware for proper LUN failover
293819.1Placement of voting and OCR disk file in 10g RAC
317628.1How to replace a corrupt OCR mirror file
452486.1Moving OCR and Voting Disk to another location
399482.1How to recreate OCR/Voting disk accidentally deleted
358620.1How to recreate OCR/Voting disk in 10gR1/R2 RAC
279793.1How to Restore a Lost Voting Disk in 10g
264847.1How to Configure Virtual IPs for 10g RAC
283684.1How to change interconnect/public interface IP subnet in a 10g cluster
276434.1Modifying the VIP or VIP Hostname of an Oracle 10g Clusterware Node
294336.1Changing the check interval for the Oracle 10g VIP
219361.1Troubleshooting Instance Evictions (ORA-29740)
297498.1Resolving Instance Evictions on Windows platforms
315125.1What to check if the Cluster Synchronization Services daemon (OCSSD) does not start
270512.1Adding a node to a 10g RAC Cluster
269320.1Removing a node from a 10g RAC Cluster
338706.1Cluster Ready Services (CRS) rolling upgrade
399031.1Step-by-step installation of Oracle Clusterware one-off and bundle patches for Oracle 10g
401783.1Changes in Oracle Clusterware after applying 10.2.0.3 Patchset
405820.1Known Issues After Applying 10.2 CRS bundle patches
316817.1Cluster Verification Utility (CLUVFY) FAQ
372358.1 Shared disk check with the Cluster Verification Utility
338924.1 CLUVFY Fails with error - could not find a suitable set of interfaces for VIPs

Bugs

5849200CRS LOGS ARE NOT BEING WRITTEN
5137401OPROCD LOGFILE IS CLEARED AFTER A REBOOT
Fixed in Oracle 10.2.0.4+ and 11.1.0.6+

White Papers

Using Oracle Clusterware to Protect Oracle Application Server Roland Knapp
Using Oracle Clusterware to Protect Third Party Applications Philip Newlan
Using Oracle Clusterware to Protect a Single-Instance Oracle Database Philip Newlan


Back To Top Go To Bottom

20. OEM/OMS 11gR1 problem monitoring the SCAN listener GRID/RAC 11gR2
Date/Time : 3/20/2011 10:59:00 PM
Direct link : http://joordsblog.vandenoord.eu/2011/03/oemoms-11gr1-problem-monitoring-scan.html
 
Regarding to the scan listener is the relocation not being handled correctly by Oracle Enterprise Manager(OEM) 11gR1 (shows target as down after relocate!), Oracle has solved this by the following bugs/fixes:


Apply Patch 10118817 on OMS: BUG 10118817 - SCAN LISTENERS NOT BEING DISPLAYED CORRECTLY IN GC CONSOLE AFTER FAILOVER
(this is a generic platform fix)

Apply Patch 10392806 on AGENT: Bug 10392806: METADATA CHANGES FOR BUG 10118817
(this patch is available on linux x86/x86-64)

Usually after these patches, the fix should work, if all the post install steps, agent patches are applied correctly.
There is one more scenario in the bug 10118817 where in the cluster target metrics in EM "crs_event" and "resource_status" are present in $AGENT_HOME/<host>/sysman/emd/collection/cluster_<ClusterName>.xml. You will have to remove these metrics, as mentioned in the bug.

Keep in mind those patches are conflicing with the PSU 2 patch. There is a request by Oracle to solve this also for the PSU patch 2.If installed the PSU 2 patch you can not use this patch .

Back To Top Go To Bottom

21. Oracle Locator Express - OLE
Date/Time : 3/3/2011 5:04:00 PM
Direct link : http://joordsblog.vandenoord.eu/2011/03/oracle-locator-express-ole.html
 

Oracle Locator Express is a replacement tool for the standard Oracle Home Selector. It sits in the system tray and allows you to easily switch between multiple Oracle Homes with just one click.

Oracle Locator Express is also compatible with Oracle Instant client. What's new in this version: Version 2.0.1 fixes a bug where the version of the Oracle client was displayed incorrectly for a 11gr2 client



Back To Top Go To Bottom

22. Update: UTL_DBWS and Consuming Web services in Oracle
Date/Time : 3/2/2011 7:16:00 PM
Direct link : http://joordsblog.vandenoord.eu/2011/03/update-utldbws-and-consuming-web.html
 
Using UTL_DBWS to make a Database Callout to a Document Style Web service.
Update of the UTL_DBWS – Consuming Web services in Oracle 


First, download the latest copy of the dbwsclient.jar file:

Pre 10g: dbws-callout-utility.zip (10.1.2)
10g: dbws-callout-utility-10R2.zip (10.1.3.0)
10g & 11g latest: dbws-callout-utility-10131.zip (10.1.3.1)
Extract the jar file from the zip file into the $ORACLE_HOME/sqlj/lib directory.

The jar file can be loaded into the SYS schema for everyone to access, or into an individual schema that needs access to the web client.



# Load into the SYS schema.
export PATH=/u01/app/oracle/product/10.2.0/db_1/bin:$PATH cd /u01/app/oracle/product/10.2.0/db_1/sqlj/lib
# 10gR2
loadjava -u sys/password -r -v -f -genmissing -s -grant public dbwsclientws.jar dbwsclientdb102.jar
# 11g
loadjava -u sys/password -r -v -f -genmissing -s -grant public dbwsclientws.jar dbwsclientdb11.jar

# Load into an individual schema.
export PATH=/u01/app/oracle/product/10.2.0/db_1/bin:$PATH cd /u01/app/oracle/product/10.2.0/db_1/sqlj/lib
# 10gR2
loadjava -u scott/tiger -r -v -f -genmissing dbwsclientws.jar dbwsclientdb102.jar
# 11g
loadjava -u scott/tiger -r -v -f -genmissing dbwsclientws.jar dbwsclientdb11.jar

SELECT owner, status, count(*) FROM DBA_OBJECTS   WHERE OBJECT_TYPE='JAVA CLASS'   GROUP BY owner, status;

Execute as sys user
execute dbms_java.grant_permission('DBAPRD4','SYS:java.util.PropertyPermission','http.proxySet','write'); execute dbms_java.grant_permission('DBAPRD4','SYS:java.util.PropertyPermission','http.proxyHost', 'write'); execute dbms_java.grant_permission('DBAPRD4','SYS:java.util.PropertyPermission','http.proxyPort', 'write'); execute dbms_java.grant_permission('DBAPRD4','SYS:java.lang.RuntimePermission', 'accessClassInPackage.sun.util.calendar',''); execute dbms_java.grant_permission('DBAPRD4','SYS:java.lang.RuntimePermission','getClassLoader',''); execute dbms_java.grant_permission('DBAPRD4','SYS:java.net.SocketPermission','*','connect,resolve'); execute dbms_java.grant_permission('DBAPRD4','SYS:java.util.PropertyPermission','*','read,write'); execute dbms_java.grant_permission('DBAPRD4','SYS:java.lang.RuntimePermission','setFactory',''); 

Connect as DBAPRD4 user

CREATE OR REPLACE FUNCTION get_joke RETURN VARCHAR2 AS service_ dbaprd4.utl_dbws.SERVICE; call_ dbaprd4.utl_dbws.CALL; service_qname dbaprd4.utl_dbws.QNAME; port_qname dbaprd4.utl_dbws.QNAME; xoperation_qname dbaprd4.utl_dbws.QNAME; xstring_type_qname dbaprd4.utl_dbws.QNAME; response sys.XMLTYPE; request sys.XMLTYPE; BEGIN service_qname := dbaprd4.utl_dbws.to_qname(null, 'getJoke'); service_ := dbaprd4.utl_dbws.create_service(service_qname); call_ := dbaprd4.utl_dbws.create_call(service_); dbaprd4.utl_dbws.set_target_endpoint_address(call_, 'http://interpressfact.net/webservices/getjoke.asmx'); dbaprd4.utl_dbws.set_property( call_, 'SOAPACTION_USE', 'TRUE'); dbaprd4.utl_dbws.set_property( call_, 'SOAPACTION_URI', 'http://interpressfact.net/webservices/getJoke'); dbaprd4.utl_dbws.set_property( call_, 'OPERATION_STYLE', 'document'); request := sys.XMLTYPE(''||'Excuses-10 '); response :=dbaprd4.utl_dbws.invoke(call_, request); return response.extract('//getJokeResult/child::text()', 'xmlns="http://interpressfact.net/webservices/"').getstringval(); END; /

SELECT get_joke FROM dual; -- # Test webservice address http://interpressfact.net/webservices/getjoke.asmx -- on 11g issue with ACL /* -- Issue with ACL used sys then no issue with acl DBMS_NETWORK_ACL_ADMIN DBMS_NETWORK_ACL_UTILITY ERROR at line 1: ORA-29532: Java call terminated by uncaught Java exception: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: HTTPClient.AuthSchemeNotImplException: NTLM ORA-06512: at "DBAPRD4.UTL_DBWS", line 404 ORA-06512: at "DBAPRD4.UTL_DBWS", line 401 ORA-06512: at "DBAPRD4.GET_JOKE", line 25 */

Solving the security issue in Oracle by setting up an ACL
or use the user sys to execute the function.

BEGIN DBMS_NETWORK_ACL_ADMIN.create_acl ( acl => 'test_acl_file.xml', description => 'A test of the ACL functionality', principal => 'DBAPRD4', is_grant => FALSE, privilege => 'connect', start_date => SYSTIMESTAMP, end_date => NULL); COMMIT; END; / BEGIN DBMS_NETWORK_ACL_ADMIN.assign_acl ( acl => 'test_acl_file.xml', host => '*', lower_port => NULL, upper_port => NULL); COMMIT; END; / BEGIN DBMS_NETWORK_ACL_ADMIN.unassign_acl ( acl => 'test_acl_file.xml', host => '192.168.2.3', lower_port => 80, upper_port => NULL); COMMIT; END; /

An other function with shakespeare phrase
create or replace function get_shakespeare(p_phrase in varchar2) RETURN varchar2 AS l_service utl_dbws.SERVICE; l_call utl_dbws.CALL; l_service_qname utl_dbws.QNAME; l_port_qname utl_dbws.QNAME; l_operation_qname utl_dbws.QNAME; l_string_type_qname utl_dbws.QNAME; l_namespace varchar2(1000); l_retx sys.xmltype; l_xml_string sys.xmltype; Begin l_namespace := 'http://xmlme.com/WebServices'; l_service_qname := sys.utl_dbws.to_qname(l_namespace, 'Shakespeare'); l_service := sys.utl_dbws.create_service(HTTPURITYPE('http://www.xmlme.com/WSShakespeare.asmx?WSDL'), l_service_qname); l_port_qname := sys.utl_dbws.to_qname(l_namespace, 'ShakespeareSoap'); l_operation_qname := sys.utl_dbws.to_qname(l_namespace, 'GetSpeech'); l_call := sys.utl_dbws.create_call(l_service, l_port_qname, l_operation_qname); sys.utl_dbws.set_property(l_call, 'SOAPACTION_USE', 'TRUE'); sys.utl_dbws.set_property(l_call_, 'SOAPACTION_URI', 'http://xmlme.com/WebServices/GetSpeech'); sys.utl_dbws.set_property(l_call_, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/'); sys.utl_dbws.set_property(l_call_, 'OPERATION_STYLE', 'document'); l_string_type_qname := sys.utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string'); sys.utl_dbws.add_parameter(l_call, 'Request', l_string_type_qname, 'ParameterMode.IN'); sys.utl_dbws.set_return_type(l_call, l_string_type_qname); l_xml_string := xmltype('  '||p_phrase||' -- the searche for text -- '); l_retx := sys.utl_dbws.invoke(call_Handle => l_call_,request => l_xml_string); return l_retx.extract('/*').getstringval(); sys.utl_dbws.release_service(l_service); end; /

Examples:
SELECT dbaprd4.get_shakespeare('To be, or not to be') FROM dual; SELECT dbaprd4.get_shakespeare('O Romeo, Romeo! wherefore art thou Romeo') FROM dual; SELECT dbaprd4.get_shakespeare('Let's kill all the lawyers') FROM dual; SELECT dbaprd4.get_shakespeare('Good night sweet prince') FROM dual; 


Back To Top Go To Bottom

23. HP DataProtector supports Oracle ACFS
Date/Time : 2/23/2011 7:16:00 AM
Direct link : http://joordsblog.vandenoord.eu/2011/02/hp-dataprotector-supports-oracle-acfs.html
 
Great Oracle ACFS is now supported by HP Dataprotector. See the Platform and integration support matrix link in this blog

Question

Is it possible to backup Oracle ACFS with HP DATAPROTECTOR. Currently we can't see the mount point that we have created on the system with the HP DATAPROTECTOR GUI. We used  Data Protector 6.11  [dd - Jan 12,2011]

Answer from HP Support

It is Supported with Data Protector 6.11 patches: PHSS_41457 / PHSS_41458 / DPLNX_00136 / DPSOL_00430.

HP Information

HP dataProtector 6.11 - Platform and integration support matrix  date: 11Februari 2011.

Back To Top Go To Bottom

24. Oracle 11.2 Clusterware commands and Deprecated CRS commands 10g
Date/Time : 2/2/2011 6:44:00 AM
Direct link : http://joordsblog.vandenoord.eu/2011/02/oracle-112-clusterware-commands-and.html
 

Deprecated CommandEquivalent 11.2 Command
==========================================
crs_statcrsctl stat resource
crsctl check cssdcrsctl check css
crsctl check crsdcrsctl check crs
crsctl check evmdcrsctl check crs
crs_registercrsctl add resource
crs_unregistercrsctl delete resource
crs_startcrsctl start resource
crs_stopcrsctl stop resource
or crsctl stop cluster
crs_getpermcrsctl getperm resource
crs_profilecrsctl add resource
crs_relocatecrsctl relocate resource
crs_setpermcrsctl setperm resource
crsctl debug logcrsctl set log
or crsctl set trace
crsctl set css votediskcrsctl add css votedisk
crsctl start resourcescrsctl start resource
crsctl stop resourcescrsctl stop resource


Back To Top Go To Bottom

25. Central TNSNAMES.ORA inside RAC using TNS_ADMIN [PRKP-1001 and CRS-0215 errors]
Date/Time : 1/18/2011 4:26:00 AM
Direct link : http://joordsblog.vandenoord.eu/2011/01/central-tnsnamesora-inside-rac-using.html
 
Is it possible to use a central tnsnames.ora on a shared file systems insite a Real Application Server. The answer to the question is YES. If the centralized tnsnames.ora is not correctly setup, it will produce the following errors [PRKP-1001 and CRS-0215 errors] at startup of the database or instance with SRVCTL. When using SQLPLUS to startup the database instance everything works as designed. Why SRVCTL is not working correctly is that, the TNS_ADMIN is not register into the Oracle Cluster Registry for the current database and instances.

The following steps in this blog will explain to you how you can solved the [PRKP-1001 and CRS-0215 errors] at startup of a database or instances by using SRVCTL statement with a centralized tnsnames.ora.

The first step is adding the TNS_ADMIN environment to the user profile where you have placed the tnsnames.ora file. This environment setting will be used by sqlplus.
export TNS_ADMIN=/oravar/oracle/admin 
The TNS_ADMIN environment setting seems not be used by "SRVCTL start -d" statement. Using SRVCTL commando to startup the database or instances will result into an error.
srvctl start database -d JOORDS PRKP-1001 : Error starting instance JOORDS1 on node joords_1 CRS-0215: Could not start resource 'ora.JOORDS.JOORDS1.inst'. PRKP-1001 : Error starting instance JOORDS2 on node joords_2 CRS-0215: Could not start resource 'ora.JOORDS.JOORDS2.inst'. 
What is now the problem that SRVCTL is not using the TNS_ADMIN environment that we have set into the user profile. Looking into the following logfile "$ORACLE_HOME/log/joords_rac1/racg/imon_JOORDS.log" we see the following information related to the error.
SQL> ORA-00119: invalid specification for system parameter LOCAL_LISTENER 2011-01-17 12:13:00.131: [ RACG][1221908800] [20265][1221908800][ora.JOORDS.JOORDS1.inst]: ORA-00132: syntax error or unresolved network name 'LISTENER_JOORDS_1' ORA-01078: failure in processing system parameters SQL> Disconnected 
It seems that the system parameter LOCAL_LISTENER can not be solved, and results in a startup failure of the database or instances.

What is causing this problem.
SRVCTL works from the Oracle Cluster Registry information and does not know the TNS_ADMIN environment setting for the database and instances. Solving this problem is adding the TNS_NAMES environment setting to the Oracle Cluster Registry for the database and instances. The SRVCTL setenv statements to add the attribute TNS_ADMIN to the Oracle Cluster Rergistry have only to be executed from one node only.
srvctl getenv database -d JOORDS srvctl setenv db -d JOORDS -t TNS_ADMIN=/oravar/oracle/network srvctl getenv database -d JOORDS TNS_ADMIN=/oravar/oracle/network srvctl setenv inst -d JOORDS -i JOORDS1 -t TNS_ADMIN=/oravar/oracle/network srvctl setenv inst -d JOORDS -i JOORDS2 -t TNS_ADMIN=/oravar/oracle/network 


Back To Top Go To Bottom