C# code stored in Oracle

Has anyone heard of the following?
http://www.oracle.com/goto/newsletters/netdev/0409/idc_interop-pdf.html?msgid=7590204
An interesting capability first introduced in Oracle Database 10g is the ability to run
.NET code as Oracle stored procedures. It is common knowledge that much
enterprise application code continues to be developed and maintained in database
stored procedures. Stored procedures provide a declarative (SQL) and thus highly
compact and productive approach to development with the added benefit of a much
lower impedance mismatch factor between database objects and types and
application code objects and types. Thus, much of the business logic of many
important applications was developed, mostly during the era of preapplication server
client/server architectures when the network inefficiencies of putting code on the
client were prohibitive. The emergence of standardized SQL in the late 1980s and
early 1990s provided an easy and productive alternative, but writing application code
in SQL is a skill that seems to be increasingly lost to the more procedurally oriented
world of application developers. What’s more, the set of tools and capabilities (e.g.,
version, configuration, and project management) were largely absent for this type of
code, at least in anything resembling an integrated manner. Thus, to retain the
benefits of code that is tightly coupled to the database and provide languages more
familiar to the typical application developer, a desire emerged to support stored
procedures in multiple languages. Oracle was early to the game in the mid-1990s with
Java stored procedures, and then with SQL Server 2005, Microsoft began to integrate
the .NET Common Language Runtime (CLR) with the SQL Server stored procedure
engine. Not to be outdone, Oracle invested in similar engineering skills to additionally
support CLR stored procedures in the Oracle database. Today this capability is
available in the form of Oracle Database Extensions for .NET. While the jury is out on
whether such capabilities, for any database, will become mainstream approaches to
application development, there are applications that are simultaneously database and
algorithmically intensive in an intertwined fashion that can benefit greatly from them.
Thus Oracle has continued to maintain this capability and further supports it with the
deployment mechanism in the Oracle Developer Tools profiled earlier.This majority of this article focused on running Oracle in a Windows Server environment. Would that be required to run C# code, as mentioned above?
Thanks,
--=Chuck

Maybe I should've waited before I posted. We're adopting .NET (WinForms) as our primary Development environment, and this was a feature I'd never heard of. Turns out, we're running Oracle on LINUX, so this doesn't work for us without changing O/S's.
Maybe my question should have been ...
For those who have worked with procedures stored in Oracle, written in C# or VB, has it worked well for you? Or is it a relatively underutilized feature? I'm asking, because I am always a proponent of writing business rule logic in PL/SQL in the database tier, but our Applications Manager is concerned that it's tougher to find job applicants with PL/SQL skills - than with C#/VB skills. So he likes the code in a middle tier. This would seem to be the best of both worlds (even if you went to yet another Application Development platform, like ColdFusion, which, since it interacts with the db, it would in-turn also call this C# code).
--=Chuck

Similar Messages

  • Extracting Tiff files stored into Oracle 8.1.7 as Long Raw

    I have around 1 million tiff images stored into Oracle 8.1.7. The field type is Long Raw. The frontend used to store images into the database is SQL Windows 5 from Gupta Corporation, now called Centura. I guess the images are stored in binary format in the database. I need to extract these images at the OS level. Each Rec_no contains one tiff file in database. The table structure is as follows:
    Rec_no Number(8)
    image Long Raw
    My goal is to convert these tiff files to JPG files so that my web application written in ASP.Net can use them and show in IE. The files are required to be converted to jpg as IE does not have native support for showing the tiff files(I hope I am not wrong in this assumption). Can i convert these tiffs to jpg directly inside the oracle database??? or i need to extract them first, save at OS level, convert them and then write back to the database?? Pls give code examples if possible. I plan to migrate the database also from 8i to 10g shortly and this is one of the migration taks. Thanks in advance...
    Ravinder Hooda

    I have around 1 million tiff images stored into Oracle 8.1.7. The field type is Long Raw. The frontend used to store images into the database is SQL Windows 5 from Gupta Corporation, now called Centura. I guess the images are stored in binary format in the database. I need to extract these images at the OS level. Each Rec_no contains one tiff file in database. The table structure is as follows:
    Rec_no Number(8)
    image Long Raw
    My goal is to convert these tiff files to JPG files so that my web application written in ASP.Net can use them and show in IE. The files are required to be converted to jpg as IE does not have native support for showing the tiff files(I hope I am not wrong in this assumption). Can i convert these tiffs to jpg directly inside the oracle database??? or i need to extract them first, save at OS level, convert them and then write back to the database?? Pls give code examples if possible. I plan to migrate the database also from 8i to 10g shortly and this is one of the migration taks. Thanks in advance...
    Ravinder Hooda

  • Code sample using Oracle Provider

    Hi Is any got code sample using Oracle Provider with aspnet app

    Assuming your stored procedure is returning a REF CURSOR, it cannot be done. Oracle's REF CURSORS are read only constructs.
    Justin

  • Reading an XML file stored in Oracle

    Is it possible to read an xml file stored in Oracle via Oracle methods?

    If by "read" you mean "read as text", then you can just select the document as a CLOB and return it.
    If by "read" you mean "read and parse", then you can use the Oracle XML Parser for PL/SQL to parse the CLOB into a DOM structure.
    My Building Oracle XML Applications book has lots of examples of doing this, but especially in chapter 5, "Processing XML with PL/SQL".
    Steve Muench
    Development Lead, Oracle XSQL Pages Framework
    Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
    Author, Building Oracle XML Applications
    null

  • Running Oracle 9i client code against an Oracle 10g install on PC

    On Unix I am able to run Oracle 9i client code against an Oracle 10g install by setting ORACLE_HOME to the Oracle 10g install location and then creating a symbolic link (example: ln -fs libclntsh.so.10.1 libclntsh.so.9.0).
    On PC (in particular XP SP2) I want to do something similar without using "junctions" or "junction points". Is there a way to set an environment variable or ini file to have my 9i client code point to the right libraries? I keep getting an error saying that my client code will not run due to "orasql9.dll" not being found. The "orasql10.dll" is installed on my machine.
    Any assistance would be appreciated.

    You might want to check metalink doc,
    Client / Server / Interoperability Support Between Different Oracle Versions
    Doc ID: Note:207303.1
    Even your application built on 9i, doesn't mean it will not work with 10g database. From what I can see, running 9i executable under 10g installation to create mixed blood breed will do more harm than good. Not only it's not supported but also the outcome is unpredictable.

  • Problem to reproject data stored in Oracle through GeoServer

    Good morning
    I am currently trying to reproject some GIS data into the Antarctic Polar Stereographic projection. (see http://nsidc.org/data/atlas/epsg_3031.html)
    This GIS data to be reprojected has been stored into Oracle (Oracle locator) through mapBuilder or Spatial Console with no specified SRS.
    By default, in my GeoServer, the data is marked as having the SRS:4326 in order to calculate the geographical extension.
    When sending a request to my Geographical server (Geoserver 1.6.3) in order to reproject the data into the Antarctic projection (SRS:3031), i got a white page which means that the projection has not been done correctly.
    My URL to generate this map is: ..?service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3031&format=image/gif&width=1000&height=1000&bbox=-12400000,-12400000,12400000,12400000&layers=fifao:fa_areas
    I know this URL is corrrect because it works perfectly when the data is stored in a shapefile format or in a table in PostGIS but not when it points to a table in Oracle.
    So i would tend to think that the problem is at Oracle level.
    Moreover, i tried to specify some SRS when loading a shapefile in Oracle through MapBuilder or Spatial Console and the result is the same or even worst.
    In fact the GIS data stored in a table generated by MapBuilder with a 4326 SRS, can only be seen partially.
    If anyone could help me understanding why data stored in Oracle can not be reprojected while it works for other GeoDatabase or formats, i would be very grateful?
    Could it be related to the media i used to load shapefile? The fact that i have only a locator license?
    Many thanks in advance for your help and i hope it is clear enough.
    Sylvain

    Good morning
    I am currently trying to reproject some GIS data into the Antarctic Polar Stereographic projection. (see http://nsidc.org/data/atlas/epsg_3031.html)
    This GIS data to be reprojected has been stored into Oracle (Oracle locator) through mapBuilder or Spatial Console with no specified SRS.
    By default, in my GeoServer, the data is marked as having the SRS:4326 in order to calculate the geographical extension.
    When sending a request to my Geographical server (Geoserver 1.6.3) in order to reproject the data into the Antarctic projection (SRS:3031), i got a white page which means that the projection has not been done correctly.
    My URL to generate this map is: ..?service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3031&format=image/gif&width=1000&height=1000&bbox=-12400000,-12400000,12400000,12400000&layers=fifao:fa_areas
    I know this URL is corrrect because it works perfectly when the data is stored in a shapefile format or in a table in PostGIS but not when it points to a table in Oracle.
    So i would tend to think that the problem is at Oracle level.
    Moreover, i tried to specify some SRS when loading a shapefile in Oracle through MapBuilder or Spatial Console and the result is the same or even worst.
    In fact the GIS data stored in a table generated by MapBuilder with a 4326 SRS, can only be seen partially.
    If anyone could help me understanding why data stored in Oracle can not be reprojected while it works for other GeoDatabase or formats, i would be very grateful?
    Could it be related to the media i used to load shapefile? The fact that i have only a locator license?
    Many thanks in advance for your help and i hope it is clear enough.
    Sylvain

  • Getting attributes from a XML File, stored in Oracle

    Hello,
    my problem is the following
    I have a xml file that looks like that:
    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
    <root path="H:\musik">
    <directory name="Bj�rk - Homogenic" path="H:\musik\Bj�rk - Homogenic">
    <file album="Homogenic" artist="Bjoerk" comment=""
    completename="Bjoerk - Hunter" genre="Techno"
    name="01 - Hunter.mp3"
    path="H:\musik\Bj�rk - Homogenic\01 - Hunter.mp3"
    title="Hunter" year="1997"/>
    <file album="Homogenic" artist="Bjoerk" comment=""
    completename="Bjoerk - Joga" genre="" name="02 - Joga.mp3"
    path="H:\musik\Bj�rk - Homogenic\02 - Joga.mp3" title="Joga" year="1994"/>
    </directory>
    <directory name="Blank & Jones - In Da Mix" path="H:\musik\Blank & Jones - In Da Mix">
    <file album="In da Mix" artist="Blank & Jones" comment=""
    completename="Blank & Jones - On a journey (Intro)"
    genre="Dance" name="01 - On a journey (Intro).mp3"
    path="H:\musik\Blank & Jones - In Da Mix\01 - On a journey (Intro).mp3"
    title="On a journey (Intro)" year="1999"/>
    <file album="In da Mix" artist="Blank & Jones" comment=""
    completename="Blank & Jones - Cream" genre="Dance"
    name="02 - Cream.mp3"
    path="H:\musik\Blank & Jones - In Da Mix\02 - Cream.mp3"
    title="Cream" year="1999"/>
    </directory>
    </root>
    This file I have stored in Oracle as table of XML Type.
    Now I have build a little Java Programm, that displays the XML File like the File structure in the Windows Explorer.
    I want, when I choose a file in the File structure, that the ID3 Informations like album artist a.s.o. can be displayed. My problem is, I couldn't get these informations e.g. in an array from the database. Any suggestions how I could realize this in Java?
    Thx for any comments
    Max

    Try this:
    select extract(xmltypefieldname, '//xpath/field@attribute').getStringVal() from yourtable where yourwhereclause
    You can also select elements that match certain attributes by using a predicate such as field[@attr = myval][@attr2 = myval2]...
    Hope this helps.

  • Can we wrap the code written in Oracle Forms

    Can we wrap the code written in Oracle Forms or in Reports..........
    Edited by: user12889416 on 3/01/2011 21:08

    Usually you simply ship the compiled sources to your customers if you want to hide your code. There's no way to wrap the code within the fmb or rdf files.
    Regards
    Marcus

  • Accesss Files Stored in Oracle Files from Forms

    I am attempting to access the files that are stored in Oracle Files (oracle collaboration suite) from an Oracle Forms.
    To be more specific I am would like to implement a solution to access Files from Custom Form in Oracle Application(11i).
    Any suggestions/thoughts in this regard is very much appreciated.
    Pavan

    Hi we are on a project similar to this, basically you have two options:
    a) Use Java-Importer to include the necessary classes to interact with IFS (e.g. rename, delete or get informations about documents).
    b) Use a servlet to get files out-of and into IFS.
    Because we had to do a lot of "loading" and we didn't want to run a round at client side to sign our forms jar files we decided to use method b).
    Regards,
    Ingo

  • How to make code standardization in oracle 10 in sql/pl-sql

    if any body helps to handle how to make code standaridazation in oracle 10g in sql/pl-sql.

    refer tis link and get download..
    http://www.itap.purdue.edu/ea/data/standards/plsql.cfm

  • Problem by startup Oracle 8i!!And Error Code: ORA 01034-ORACLE not available!!

    Hello all!
    I need urgent help!!
    I'm trying to start Oracle 8.1.6 i on Solaris 8. But there are lot of error:
    1. During initialising the database with dbassist, the error Code Error Codes: ORA 01034-"ORACLE not available" and ORA-01012-"not logged on" were shown.
    2. I'm trying to start Oracle 8i on Sun Solaris 8 by typing svrmgrl-connect interal-startup. But the following was shown on by screen:
    passau% svrmgrl
    Oracle Server Manager Release 3.1.6.0.0 - Production
    Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved.
    Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    SVRMGR> connect internal
    Connected.
    SVRMGR> startup
    LRM-00109: could not open parameter file '?/dbs/[email protected]'
    ORA-01078: failure in processing system parameters
    Please help me!!
    My e-mail Adress: [email protected]

    I am pretty sure this has to do with the SGA..
    what you may have to do is adjust you
    system file
    Here the values for /etc/system file: for more info look under
    Oracle specific parameters (documetation) set shmsys:shminfo_shmmax=122496729 set semsys:seminfo_semmap=150 set semsys:seminfo_semopm=100 set semsys:seminfo_semvmx=12767 set semsys:seminfo_semmni=200 set semsys:seminfo_semmns=200 set semsys:seminfo_semmsl=200 set semsys:seminfo_semmnu=200 set semsys:seminfo_semume=100 set shmsys:shminfo_shmmin=100 set shmsys:shminfo_shmmni=100 set shmsys:shminfo_shmseg=100
    good luck
    [email protected]
    null

  • Data objects and code objects in oracle application

    Hi,
    can any one please help me out with following question?
    1. what are data objects and code objects in oracle apps and why is that difference?
    2. How does the objects gets created in Oracle Applications, like during the installation which part is responsible for creating objects and after the installtion later point of time, how the new objects gets created in oracle applications?
    3. what are the ways to find out if my 11i application is OATM enabled ?
    Thanks in advance

    Hello,
    I managed to find answer for question 1, yet to find answer for 2 and 3.
    Answer for question 1 --
    Data objects : store and access business data (tables, indexes, sequences, index-organized tables, etc);
    Code objects : process data objects but them don't contains business data (functions, procedures, packages, views, synonyms);
    Now, here i have a question - under which objects queues are considered ?

  • JSP Code to connect Oracle 10g Database

    Can some give the JSP code for connecting Oracle 10g database

    hi
    First u have to get ojdbc1.4.jar file ,,,, it is the driver for the oracle
    then use the following code :
    import java.sql.*;
    import java.util.*;
    public class connectionBean
         Connection con;
         Statement statement;
         connectionBean()
              try
            Class.forName("oracle.jdbc.driver.OracleDriver");
            con = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:Xe","hr","hr");
            statement=con.createStatement();
              catch(Exception cnfe){     }
         public void testMethod()throws  SQLException{
              ResultSet rs=statement.executeQuery("select * from COUNTRIES");
              while(rs.next())
              System.out.print(rs.getString(1));
         public static void main (String args[])throws  SQLException
              connectionBean cb=new connectionBean();
              cb.testMethod();
    }hope this will help
    Good luck
    Mohammed

  • XML queries... Change the code from using Oracle db into MS SQL

    Hi, I am a new begginer in this field. I came accross to an article that focuses in Oracle's XSU approach.
    Currently, i am trying to convert the java code from using Oracle db to MSSQL db. The code has shown below:
    import javax.naming.*;
    import javax.sql.*;
    import java.sql.*;
    import oracle.xml.sql.query.*;
    public class testxml
         public static void main(String args[]) throws SQLException, NamingException
         String tabName = "emp";
         int maxRows = 3;
         Context ctx = new InitialContext ();
         DataSource ds = (DataSource) ctx.lookup ("MyOra");
         Connection conn = ds.getConnection ();
    OracleXMLQuery qu = new OracleXMLQuery (
    conn, "select EMPNO, ENAME from " + tabName);
    qu.setMaxRows (maxRows);
    qu.setRowsetTag ("EMPLOYERS");
    qu.setRowTag ("PERSON");
    String xmlString = qu.getXMLString();
    System.out.println (xmlString);
    conn.close ();
    Currently, i am having difficulties to change the "bold" area that uses Oracle into MS SQL as my current application is using MS SQL as the database.
    Please help and need more advices from all of you. Thank You

    I resolved this issue myself. For the answer please message me.

  • Quiz code JSP to Oracle

    about Quiz code JSP to Oracle Database im taking thesis right now i need some idea regarding this matter...

    Hi,
    IF you are looking for some quiz questions on jsp you can check the link below.
    http://java.sun.com/developer/Quizzes/jsp/
    or tell us what are you trying to do..
    Regards,
    Vijay.B

Maybe you are looking for

  • My iTunes on my phone is not working?

    I updated my software on my iPhone 4 and now when I click the iTunes app it loads for a few seconds then exits its self automatically. Has anyone has this problem and is there a way of fixing it? I have turned my phone on and off but dont know what e

  • Taken Aback- touchscreen issue

    I have enjoyed and supported this company's products and services for some time. So, today when I inquired with tech support about my touchscreen issue (non working band of the screen ..the 456 area on the dialpad)...I was taken aback at the very lea

  • How to do data level security on users based on region

    Hello guys I currently have created a report with dashboard prompt on column "state" with a default value "CA" Now, the requirement is to perform data level security on this report, so different users based out of different state will log in to the d

  • Do you resize your photos first before placing on front page?

    i am working on a new site. When I clear my cache and view the site, it seems to take quite a few seconds before everything loads. There are only three small images with 10px borders around each. Would it be best to resize these images in PS prior to

  • Why is there an error 107 SSL connection when using parental controls and accessing webmail?

    All browsers (Safari, Firefox, Chrome) do not allow my parentally controlled child to access gmail accounts. Putting the gmail website address in the permitted websites doesn't make them accessible.