Feed aggregator

Oracle Open World 2006 - and the last preparations - this time JDev team

Clemens Utschig - Fri, 2006-10-20 15:41
Susan, member of our JDeveloper PM team, created a cool viewlet (and I think she will demo this in real during her session).

It's about BPEL and ESB development in Oracle's JDeveloper - you can be found here.

Enjoy - and even more if you come to see us live at this year's Oracle Open World.

Oracle releases SOA Suite

Clemens Utschig - Fri, 2006-10-20 12:28
Download it from here - and experience our next generation SOA plattform

Oracle on Windows vs. Oracle on Linux

Edward Whalen - Wed, 2006-10-18 12:18
There has been much discussion as to whether Oracle on Windows or Oracle on Linux is a better platform. My opinion has always been that if you are choosing between the two, the platform that better fits into your environment is the better choice. If you are a windows shop and have extensive expertise on Windows and no Linux experience it doesn't make much sense to put a foreign Operating System into your data center. On the other hand, if you are a Unix only shop, and have no in-house Windows expertise, Linux might be a better choice.

In addition, I feel that the way Oracle had developed the Oracle Database Server for Windows using the threading model would turn into an asset once 64-bit Windows is adopted. Remember that 32-bit Oracle on Windows suffers from virtual memory issues that are solved with 64-bit Windows. Thus the liability of using the thread model has turned into an asset (see previous blog).

In order to dispel any rumors or conjecture on whether Windows or Linux works better on the same hardware we recently ran a comparison. This comparison was done using the SwingBench tool. The result of this comparison is provided in a white paper which we have just published on our website. In order to get to this whitepaper follow this link.

Choosing the best OS for your environment involves more than just the performance of the database server. The Oracle Database Server on Windows provides compatibility with Active Directory and your entire integrated environment.

SOA Hints - Episode 3

Clemens Utschig - Tue, 2006-10-17 19:24
In today's note we will discover the steps needed to increase the inactivity timeout of the SingleSignOn - enabled consoles shipped with SOA Suite

Some of you might have already noticed, not using the session for some minutes results in a rerouting to the login page.. and if it happens the first time some ohh, arghhh or other words may follow :D

The SOA related web consoles are ..
  • BPEL Console (http://host:port/BPELConsole)

  • ESB Console (http://host:port/esb/esb/EsbConsole.html)

  • Rule Author (http://host:port/ruleauthor)

  • and the famous Human Worklist(http://host:port/integration/worklistapp)

As all are deployed in the same way, and are JSSO enabled - here are the steps you need to follow, to increase the timeouts of them.
  • 1) Stop your SOA Suite (opmnctl stopall)

  • 2) Depending on your installation your OC4J container holding the apps is either located in $ORACLE_HOME/j2ee/home (basic install) or $ORACLE_HOME/j2ee/oc4j_soa (advanced install), which I refer to $OC4J_HOME from now

  • 3) Go to $OC4J_HOME/config and backup jazn.xml

  • 4) Add a new property called custom.sso.session.timeout inside the <jazn> section, the value is in seconds and should be a multiply of it

  • 5) Step by step now - you are going to reconfigure the consoles

    • BPEL Console

      • Go to $OC4J_HOME/applications/orabpel/console/WEB-INF and backup web.xml

      • Add the following fragment

        inside the <web-app> tags

      • Go to $OC4J_HOME/applications-deployments/orabpel/console and delete orion-web.xml

    • ESB Console

      • Go to $OC4J_HOME/applications/esb-rt/provider-war/WEB-INF and backup web.xml

      • Add the following fragment

        inside the <web-app> tags

      • Go to $OC4J_HOME/application-deployments/esb-rt/provider-war and delete orion-web.xml

    • Rule Author

      • Go to $OC4J_HOME/applications/ruleauthor/ruleauthor/WEB-INF and backup web.xml

      • Add the following fragment

        inside the <web-app> tags

      • Go to $OC4J_HOME/application-deployments/ruleauthor/ ruleauthor/ and delete orion-web.xml

    • Human Worklist

      • Go to $OC4J_HOME/applications/hw_services/worklistapp/ WEB-INF and backup web.xml

      • Add the following fragment

        inside the <web-app> tags

      • Go to $OC4J_HOME/application-deployments/hw_services/ worklistapp and delete orion-web.xml

  • 6) Start your SOA Suite, by opmnctl startall

Voila, the inactivity timeout in YOUR control

Oracle on Windows and NAS Storage

Edward Whalen - Sat, 2006-10-14 07:36

I have been asked the question "Does Oracle support NAS on Windows". Officially Oracle does not support native NAS devices per-se on Windows. I am speaking specifically of the CIFS protocol. This is not true for all platforms; Oracle does support NAS on Unix with NFS, but not on Windows. However, with the introduction of iSCSI Oracle does now support NAS on Windows.

The iSCSI protocol uses embedded SCSI commands within IP packets. This allows for storage to be accessed over the network, but at the same time take advantage of a proven storage protocol. The main benefits of iSCSI is that it is cheaper and potentially easier to use than the fibre channel equivalent.

In June of 2003 Microsoft released the iSCSI initiator and driver for Windows 2003. In addition, Microsoft has qualified a number of storage vendor’s products for use with Windows 2003. At the same time, Microsoft has introduced Windows Storage Server 2003, which allows a Microsoft Server to become the iSCSI NAS.

With iSCSI Oracle on Windows is completely supported as both a stand-alone Oracle database server or an Oracle RAC server. Yes, Oracle does support NAS on Windows.

A first glance at IDS Scheer's ARIS Business Architect - Oracle Business Process Architect

Clemens Utschig - Wed, 2006-10-11 13:32
These days I am attending a training on ARIS' tools, with Oracle colleaques from all around US, tought by IDS and Oracle together. A while ago Oracle oem'ed ARIS tools for its upcoming Business Process Analysis (BPA) Suite, as mentioned in this press release.

This training should be a great opportunity to expand my knowledge on business driven process design. Especially visualization of processes and ownerships seems very important, when evangelizing on the human factor, and impacts from SOA projects on organizations - one of my key interests.

The end of the whole story can be a business process, created by the business, that is transformed into BPEL, and refined by a member of the IT department to get executed.

Aside BPA is one key piece when talking about round trip methodologies, namely Business Process Management (BPM), covering the whole cycle from analysis, through design, simulation, to production and refining, a never ending loop of seeking for business performance excellence.

Oracle Data Mining 10gR2 Code Generation Release Now Available on OTN

Marcos Campos - Tue, 2006-10-10 19:24
I have just received this from Product Management:We are pleased to announce the newOracle Data Mining 10gR2 Code Generation releaseis now available for download (RTM) on OTN.This new ability to go directly from a data analyst building predictive models to having working in-database PL/SQL code for implementing a complete data mining solution is unrivaled in the industry. There is no data Marcoshttp://www.blogger.com/profile/14756167848125664628noreply@blogger.com4
Categories: BI & Warehousing

Debugging PL/SQL from ASP.NET and Visual Studio

Christian Shay - Tue, 2006-10-10 10:15

[Update March 2015: This very popular blog post is quite a bit out of date after 9 years! It is no longer particularly feasible to use only one instance of Visual Studio for PL/SQL and ASP.NET debugging. We now recommend you use two instances of VS along with "External Application Debugging".

To get the latest details on how to use PL/SQL debugging with Visual Studio have a look at the Oracle Developer Tools for Visual Studio (ODT) online help. From Visual Studio, find the ODT help, find the "Oracle PL/SQL Debugger" section, then "PL/SQL Debugging Setup", then go through the"Debugging Setup Checklist". - CS]

Lots of you are using ASP.NET and the Oracle Data Provider for .NET to create web applications that access Oracle. When those applications call a PL/SQL stored procedure, wouldn't it be great to just step right into the PL/SQL and begin debugging with the live parameter values still intact?

As mentioned in my earlier blog entries, we now have a fully integrated PL/SQL debugger built right into Visual Studio which is included with the free Oracle Developer Tools for Visual Studio .NET (ODT).

Today I will explain how to configure Visual Studio and your ASP.NET project to get started debugging your PL/SQL stored procedures, functions and triggers from ASP.NET.

Before I start - a brief word about the way Oracle's PL/SQL debugging architecture works. When you connect from any Oracle 9.2 or later client application, Oracle's client libraries check to see if a ORA_DEBUG_JDWP environment variable is set. If it is, the client passes this environment value along with the connect information (eg Oracle user/pass) to Oracle. This ORA_DEBUG_JDWP variable is set using the following format:

SET ORA_DEBUG_JDWP=host=hostname;port=portnum
where hostname is the machine where the PL/SQL debugger (eg Visual Studio) is located, and portnum is a TCP/IP port it is listening on. When Oracle database receives this information, it immediately attempts to connect to the debugger on the port number specified. If there is no listener running on the port, this connection will fail and an error will be returned to the client.

When you debug directly from Oracle Explorer in Visual Studio (manually typing in the parameter values for a SP and so on) ODT takes care of passing this host and port information for you. ODT also silently starts listening on the port. You aren't even aware that any of this this is happening. This is documented in the online help as "Direct Database Debugging".

Similarly, when you call PL/SQL from .NET code, all you need to do is turn on "Oracle Application Debugging" (a checkbox in the "Tools" menu). The Oracle Application Debugging checkbox sets the environment variable in the Visual Studio process space and starts up the debugger listener, all without the user having to know or care about these details. You just check it, and away you go, debugging from .NET code into PL/SQL and back out again. This is documented in the online help as "Oracle Application Debugging".

When you need to debug PL/SQL from ASP.NET, if you are using the "ASP.NET Development Web Server" which is the default IIS webserver testbed for Visual Studio 2005, things are still pretty simple. You can still use the "Oracle Application Debugging" checkbox, although with a couple very important caveats (see below).

If you have an independent IIS webserver instead, things get just a little bit more complicated. In this case, the IIS Web Server process is technically external to the Visual Studio process. This is no problem since ODT lets you call the SP's you want to debug from ANY external process located on ANY machine, as long as that ORA_DEBUG_JDWP environment variable is set. It just means that you need to set this environment variable yourself and start the listener yourself, rather than relying on ODT to do it for you automatically. This is documented in the online help as "External Application Debugging".

Setup Instructions - Using ASP.NET Development Web Server

Here are the setup Steps for when you are using the ASP.NET Development server (a built in IIS web server for Visual Studio 2005). For most people, this will probably be the way to go:

1) Perform the generic setup steps 1 through 9 from my earlier blog entry and test via Oracle Explorer ("Step Into") that at least Direct Debugging is working. You should skip step #7, which does not apply to ASP.NET projects. As per these steps, the "Oracle Application Debugging" checkbox should be checked, the Options page should be configured and breakpoints should be set.

2) If the ASP Development Server is running (you will see an icon in your toolbar) you need to stop it before you begin debugging to force it be respawned so that it can pick up the Visual Studio environment variables. It's important to note that you need to stop the ASP Development Server every time you check or uncheck the "Oracle Application Debugging" option. You don't need to stop it every single time you run your app though. However, it's important to emphasize that you must stop the ASP Development Server when you are all done with PL/SQL debugging and have unchecked the "Oracle Application Debugging" - if you don't, your code will get connect errors.

3) Begin debugging!

Setup Instructions - Modifying the ASP.NET code

Setup Steps for situations where you are not using the ASP.NET Development Server and it is ok to add some code and rebuild your ASP.NET app:

1) Perform the generic setup steps 1 through 6 from my earlier blog entry and test via Oracle Explorer ("Step Into") that at least Direct Debugging is working.

2) If "Oracle Application Debugging" is checked off under the Tools menu, be sure to uncheck it.

3) Add code to your ASP.NET app to set the environment variable at the process level. You need to do this at a point in the code before a connection is opened. In C# this looks something like:

Environment.SetEnvironmentVariable("ORA_DEBUG_JDWP", "host=mymachine;port=8888", EnvironmentVariableTarget.Process);
4) It's a good idea to add code after the Oracle connection is closed that removes this environment variable. Since here we are setting this environment variable at a process level, it should not interfere with any other Oracle client apps running on your system. However it is important to note that if you do set this environment variable at something other than a process level (eg system level), you must be sure to unset it. All other Oracle apps on your system that see this environment variable will attempt to begin debugging everytime they connect and will get errors.

Environment.SetEnvironmentVariable("ORA_DEBUG_JDWP", "", EnvironmentVariableTarget.Process);
5) Set a breakpoint at some point BEFORE the first Oracle connection is made.

6) Start debugging your ASP.NET application and run to this breakpoint.

7) When the breakpoint hits, choose "Start Oracle External Application Debugger" from the "Tools" menu of Oracle Explorer. Provide it the same port number you gave in the environment variable above (in my case it was "8888"). Obviously your firewall cannot be blocking this port.

8) Set a breakpoint in the PL/SQL (double click on the procedure or function in Oracle Explorer to bring up the editor).

9) Set a breakpoint in your ASP.NET code AFTER the call to the stored procedure or function in ASP.NET to halt once control returns to ASP.NET

10) Begin debugging!

Setup Instructions - No Modification of ASP.NET code

In some cases, you might not wish to modify and rebuild the ASP.NET. So you can't set the ORA_DEBUG_JDWP environment variable in code like we did above. In those cases, you can set a systemwide environment variable and bounce IIS, but this is a bit more tedious:

In the steps above, replace steps 3 and 4 with the following:

3) Set ORA_DEBUG_JDWP as a system environment variable. Go to Control Panel, System and choose the "Advanced" tab. Click on the "Environment Variables" button. Set the value in the section labeled "System Variables". Make sure when you are done with your debugging session to unset this system wide environment variable because as mentioned earlier, it will interfere with other Oracle client applications on your system!

4) Stop and start the IIS Service from the Services Console (Control Panel->Administrative Tools) so that it picks up this environment variable.

....Then proceed with the rest of the steps in the list!

If you have additional questions about PL/SQL debugging, feel free to post to the Oracle Dev Tools forum!

Happy coding!

SOA Hints - Episode 2

Clemens Utschig - Mon, 2006-10-09 16:43
Following up on my Series SOA Hints today I'll shed some light on the new and improved HTTP binding.

As you know, we always offered a way to start a process instance not just via SOAP or the Java API - but also through some kind of REST like binding.

With the release we switched XML parsing to Oracle's XDK and also added some new features to make this again properly working.

1) HTTP post can also have a form posted and not just plain xml (REST) - for this to work you need to specify the following in the header of the http request
content="application/x-www-form-urlencoded; charset=iso-8859-1"

2) A namespace and message part can be specified in the request by using
<input type="hidden" name="msg_part" value="payload">
<input type="hidden" name="namespace" value="http://services.otn.com">
where msg_part maps to the part of the input message type (usually payload) and namespace to the target namespace of the element (as defined in the wsdl).

On a side note, the whole http get works only for not nested elements, in case of complex (=nested) types you have to use POST with fully qualified xml.

SOA Hints - Episode 1

Clemens Utschig - Fri, 2006-10-06 13:42
Over the next weeks I plan to publish tips and tricks around the usage of the upcoming SOA suite, based on questions I see on the forums on OTN.

The first one is about adding properties to bpel.xml (our deployment descriptor) - either on a partnerlink(binding) , as a preference , or configuration .
We strongly recommend to NOT do this in the source view of the file itself, as it could cause sync problems, reflected in loosing them.

Instead use the visual BPEL designer offered. For properties on a partnerlink, simply double-click on it, and choose the properties tab. For process wide preference, click the descriptor icon on the top of the modeler, and add them there.

Sun Calendar in Thunderbird

Siva Doe - Thu, 2006-10-05 06:20

I am using Thunderbird as my email client, as the UI is consistent across all platforms (Solaris/sparc, Linux/x86, Mac/PPC). Till now, it was missing integration with Sun's calendar server. Many times I started up Evolution when I needed to work with meeting appointments.
Now there is a solution (at least for Linux & Mac). Enter Mozilla Lightning. The lightning-wcap.xpi has to be downloaded and using Thunderbird's install tool, installed this addon. After restarting Thunderbird, now I am able to use Thunderbird to my mail as well as calendar client.
Now, what would it make to make a Solaris/sparc, Solaris/x86 equivalent of lightning-wcap.xpi? Any volunteers? I will post more on this later, after attempting for Solaris.


OpenSolaris PPC

Siva Doe - Thu, 2006-10-05 06:04

Wow. It is happening. I am one of the very eager user waiting for a PPC port of OpenSolaris. I just hope I can run the upcoming port in my G3 Powerbook (Pismo) and dump the current Ubuntu Linux PPC and dual boot with OpenSolaris instead.


Oracle XMLDB: Create XML data with ease

Wijaya Kusumo - Mon, 2006-10-02 21:23
It is a fact that we, as software developer, will encounter more and more data in XML format. Either we receive xml data or actually need to produce one for information sharing with other system (web service, legacy system, .net vs Java, etc...). XMLDB of Oracle database (version 9i Release 2 and above) provides us with a convenience data type (XMLType) to store xml data, as well as the full

All good things come to an end

Stefan Roesch - Fri, 2006-09-22 22:33
After a more than seven great years at Oracle Corporation I have decided to resign and pursue new opportunities. In July I started to work for Microsoft Corporation.stefan roeschhttp://www.blogger.com/profile/15182787826739074738noreply@blogger.com0

PL/SQL Debugging OraMag Article

Christian Shay - Wed, 2006-09-13 19:56
Check out Mark Williams' latest article in Oracle Magazine which takes you step by step through PL/SQL Debugging in Visual Studio. It also includes some sample code which you can use to try out PL/SQL debugging yourself!

This sample code shows one of the most compelling uses of this debugger -- stepping seamlessly from .NET code into PL/SQL stored procedures or functions and back out to .NET code while examining real live data as it is being passed in and out. He uses an array parameter type in the stored procedure to show how powerful visual debugging can be -- no more DBMS_OUTPUT's of every element of a 1000 element array... you can just examine the array in the Visual Studio watch window!

Oracle Riddles: What's The Point?

Eric S. Emrick - Sun, 2006-09-10 09:11
I am frequently asked for directions. Sometimes I am not the best to ask and will just be a waste of your time and energy. Other times I am sought exclusively. I try to lead a balanced life. But, hey, I am not perfect. What exactly am I?

Don't Get Caught With Your GUI Down

Eric S. Emrick - Fri, 2006-09-08 22:47
In a recent wave of interviews I was amazed how little prospective DBA candidates knew about user-managed hot backups. Most could give the BEGIN and END backup stuff and convey that it causes more redo to be generated during this time. But, when asked to give a little more of their insight into the mechanics or performance implications, 9 in 10 had plenty to say - just nothing that was correct. 90% could not explain the significance of putting a tablespace in hot backup mode. That is, why do it? Why not just copy the file while the database is open and cooking? Of course, most understood that Oracle needs us to do this so that the backup is "good", but few knew how Oracle went about doing it. Moreover, few knew why the extra redo was generated. And most amazing, nearly all thought the data files were locked and changes were written to the redo logs and reapplied when the END BACKUP command was given. Where are DBA-types reading this? Irrespective, the DBA population is evolving.

I am not basing my opinion on one simple question concerning user-managed backups, but a host of other questions given as mental exercises. What are some of the Oracle wait events? What do they represent? How would you go about troubleshooting systemic response time degradation in your production database? What is extended SQL tracing and why use it? Time after time candidates struggled to give lucid, well thought out responses. A vast majority of responses could be summarized as, "I would go into OEM and check for A or B." I don't have a problem with using OEM, but usually the A’s and B’s had little relevance to the question.

The herd of available DBAs that are able to navigate the database using native SQL to get at critical performance diagnostic information has thinned dramatically. Sometimes I wonder what would happen to some of these shops being supported by some I interview if OEM, Database Control or Grid Control took the night off. When relegated to digging into the database and troubleshooting armed only with a SQL prompt, many appear to be lost. I certainly appreciate what the Oracle GUI database management tools bring to the table. I even like them. My point is, don't throw away your shovel just because you have a snow blower. The day will come when your GUI will fail you and it will be just you and your SQL prompt.

P.S.> Oracle does not lock the content of its data files during the course of a user-managed hot backup. Actually, Oracle only locks one thing, the master checkpoint SCN inside the file header. Some other constructs in the file header stay mutable. Blocks in data files being backed up can be modified as per normal database operation. The changes to blocks are indeed recorded in the redo, but they are not replayed when the END BACKUP is issued. More redo is possible because Oracle must accommodate the potential presence of fractured blocks.

Some updates

Siva Doe - Thu, 2006-09-07 16:55

It has been a long time. Lot of water has passed under the bridge. I have moved to a new team. Part of the Sun Grid team now.
On the localisation front, if you didnt know yet, Tamil is one of the first new locale that made it to OpenSolaris. This effort jumpstarted some colleagues, Raju Alluri and Kesari Mandyam to add locales for Telugu and Kannada. Very soon, we can see OpenSolaris in Indian languages.
I am running into some translation hurdles though. My home system still does not support Solaris (old network card, Compex). So, I thought I will do the translation in Linux (Ubuntu) using gtranslator. None of the Solaris .po file (untranslated) were opening. A 'msgfmt x.po' gave many syntax errors. So, it looks like I have to get my home system with Solaris, soon. (Siva- move your lazy a$$ and get a modern NIC card). Will post you on my progress later (Not so much later, I assure you).

SIG Meeting

Stephen Booth - Thu, 2006-09-07 08:38
I've just gotten the verbal OK from my line manager to attend the Management and Infrastructure SIG meeting on 4th October. Most of the opresentations look like they will be both interesting and useful. My employer is looking to introduce ITIL so the "Can it help me? What are the pitfalls?" presentation could be useful, similarly the DBA/Database ratio presentation is highly relevant to my Stephen Boothhttps://plus.google.com/107526053475064059763noreply@blogger.com0

My Agenda for UKOUG 2006

Stephen Booth - Wed, 2006-09-06 06:38
These are the sessions I'm planning on attending at this year's UKOUG conference:08:00 - 17:45 Registration Open09:15 - 09:30 Introduction by Ronan Miles, UKOUG Chairman 09:30 - 10:30 Opening Technical Keynote: "What's Coming Next?" by Tom Kyte, Oracle10:30 - 11:00 Coffee Break11:00 - 12:00 Accountability for System Performance (introducing Six Sigma quality in Oracle software Stephen Boothhttps://plus.google.com/107526053475064059763noreply@blogger.com0


Subscribe to Oracle FAQ aggregator