OCCI VS 2008 & OCCI 11.1.0.6.0  Performance Problem

I have been using VS C++ 2003 in combination with the oracle instant client 10.2.0.4 in our tool. We now moved to VS C++ 2008 (Express Edition) and oracle instant client 11.1.0.6.0 as listed at
[http://www.oracle.com/technology/tech/oci/occi/occidownloads.html]
I noticed a significant performance change for even simple queries on using the 11.1.0.6.0 client.
Does anybody else noticed any performance problems with the 11.1.0.6.0 client libraries for VS C++9(VS 2008) 32 bit?
I made a small test program which just connects to the db instance and makes a simple select and afterwards iterate through the result and calculate count by just incrementing. Following is the output of the same program, first with the 11.1.0.6.0 client and afterwards with the 10.2.0.4.0 client.
Testing OCCI
Using Oracle Client:Oracle 11.1.0.6.0
Connected to Server lsy_ext.world
Version :Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production
beginning select :select * from schedule
Current time and date: Tue Mar 17 13:05:27 2009
Select finished:select * from schedule
Current time and date: Tue Mar 17 13:05:31 2009
beginning iteration through result
Current time and date: Tue Mar 17 13:05:31 2009
iteration finished
Current time and date: Tue Mar 17 13:05:31 2009
Total Data for
select * from schedule
Count = 578
beginning select :select * from leg
Current time and date: Tue Mar 17 13:05:31 2009
Select finished:select * from leg
Current time and date: Tue Mar 17 13:05:36 2009
beginning iteration through result
Current time and date: Tue Mar 17 13:05:36 2009
iteration finished
Current time and date: Tue Mar 17 13:05:48 2009
Total Data for
select * from leg
Count = 981011
Testing OCCI
Using Oracle Client:Oracle 10.2.0.4.0
Connected to Server lsy_ext.world
Version :Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production
beginning select :select * from schedule
Current time and date: Tue Mar 17 13:04:03 2009
Select finished:select * from schedule
Current time and date: Tue Mar 17 13:04:03 2009
beginning iteration through result
Current time and date: Tue Mar 17 13:04:03 2009
iteration finished
Current time and date: Tue Mar 17 13:04:03 2009
Total Data for
select * from schedule
Count = 578
beginning select :select * from leg
Current time and date: Tue Mar 17 13:04:03 2009
Select finished:select * from leg
Current time and date: Tue Mar 17 13:04:03 2009
beginning iteration through result
Current time and date: Tue Mar 17 13:04:03 2009
iteration finished
Current time and date: Tue Mar 17 13:04:15 2009
Total Data for
select * from leg
Count = 981011
Apparently, each select statement takes round about 5 seconds with the 11 client libraries. Does anybody has an explanation for this?
beginning select :select * from schedule
Current time and date: Tue Mar 17 13:05:*27* 2009
Select finished:select * from schedule
Current time and date: Tue Mar 17 13:05:*31* 2009
Thank you
Benny
Edited by: bennyvar on Mar 18, 2009 12:25 PM

I started visual studio with logging turned on. Here are the results from the log file:
<entry>
<record>60</record>
<time>2008/01/18 19:14:09.974</time>
<type>Information</type>
<source>Microsoft Visual Studio</source>
<description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
<guid>{D601BB95-E404-4A8E-9F24-5C1A462426CE}</guid>
</entry>
<entry>
<record>61</record>
<time>2008/01/18 19:14:11.026</time>
<type>Warning</type>
<source>Microsoft Visual Studio Appid Stub</source>
<description>CheckPackageSignature failed; invalid Package Load Key</description>
<guid>{D601BB95-E404-4A8E-9F24-5C1A462426CE}</guid>
</entry>
<entry>
<record>62</record>
<time>2008/01/18 19:14:11.056</time>
<type>Information</type>
<source>Microsoft Visual Studio</source>
<description>Begin package load [Oracle Developer Tools for Visual Studio .NET]</description>
<guid>{D601BB95-E404-4A8E-9F24-5C1A462426CE}</guid>
</entry>
<entry>
<record>63</record>
<time>2008/01/18 19:14:16.273</time>
<type>Error</type>
<source>Microsoft Visual Studio</source>
<description>SetSite failed for package [Oracle Developer Tools for Visual Studio .NET]</description>
<guid>{D601BB95-E404-4A8E-9F24-5C1A462426CE}</guid>
<hr>80004005 - E_FAIL</hr>
</entry>
<entry>
<record>64</record>
<time>2008/01/18 19:14:16.313</time>
<type>Error</type>
<source>Microsoft Visual Studio</source>
<description>End package load [Oracle Developer Tools for Visual Studio .NET]</description>
<guid>{D601BB95-E404-4A8E-9F24-5C1A462426CE}</guid>
<hr>80004005 - E_FAIL</hr>
</entry>

Similar Messages

  • Performance problems on a Oracle 11G with Windows 2008 64bits.

    Hi everyone,
    I have noticed that our db is going low and low every week. My server has 16GB RAM and 10GB are dedicated to the Oracle database, this is a 11.2.0.1 with Windows 2008 R2 SP1 64bits. I like to know acording to the nexts values what you guys recommend to adjust in the init.ora:
    orcl.__db_cache_size=5402263552
    orcl.__java_pool_size=33554432
    orcl.__large_pool_size=33554432
    orcl.__pga_aggregate_target=3657433088
    orcl.__sga_target=6878658560
    orcl.__shared_io_pool_size=0
    orcl.__shared_pool_size=1308622848
    orcl.__streams_pool_size=33554432
    *.memory_target=10511974400
    *.open_cursors=5000
    *.optimizer_mode='RULE'
    *.processes=300
    Acording to the memory target on how values can be increased the processes, pga_agregate_target, etc.
    Also we have problems related to the bug Bug 9593134 that “Connections to Oracle 11g are slow and can take anywhere from 10 seconds to 2 minutes.” there is a fix on linux by removing the dns names on it but anyone have experience on windows platforms?
    Thanks for all and sorry for my english.
    Regards.
    Arturo.

    Regarding the long connection times, have you tried using network packet capture software (such as Wireshark) to determine what the client computer is doing when a connection attempt is initiated?
    The Oracle Database time model statistics, along with the system wide wait events may help you diagnose the non-connection related performance issues (you should not just look at the statistics, but instead capture the current values, wait a period of time, capture the statistics again, and compare the changes in the statistic values). A statspack report might also help you - but a 10046 trace at level 8 or 12 is more appropriate if you are able to identify a couple of sessions that experience performance problems.
    I do not suggest just blindly modifying parameters, although I am curious to know:
    * Why the session level parameter OPEN_CURSORS is set to 5000 - do you expect a single session to hold open 5,000 cursors?
    * Why are you using the deprecated RULE based optimizer?
    * Why is the MEMORY_TARGET parameter used when the SGA_TARGET and PGA_AGGREGATE target are specified?
    Charles Hooper
    http://hoopercharles.wordpress.com/
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • MS SQL Server 2008 performance problem

    We use TopLink 10.1.3.5 to connect to MS SQL Server 2008.
    What we are seeing is that when a query is being run by TopLink a lot of cursors open up and remain open. Our database CPU usage goes up and it affects the whole application.
    Our DBA took a look at it and said the database shows FETCH_APICURSOR* being used for select statements.
    Is there a way to tell TopLink not to use cursors for queries?
    Thanks.

    Can you pin point a particular TopLink query tied to the " FETCH_APICURSOR* " call in the app and post how it is being created?
    My guess is that the application is specifying the TopLink query object to return a cursor or stream and not closing it in all cases, or keeping them open for a long period - did you say they were leaking, or is it just that a large number are open at a time leading to performance problems?
    This streams+cursors are described in the TopLink docs here
    http://docs.oracle.com/cd/E21764_01/web.1111/b32441/qryadv.htm#CJGJBHGJ
    or the 10g docs here:
    http://sqltech.cl/doc/oas10gR3/web.1013/b13593/qryadv010.htm
    If this is the case, you might want to use a different strategy such as pagination instead of cursors, described here:
    http://docs.oracle.com/cd/E17904_01/web.1111/b32441/optimiz.htm#CHDIBGFE
    Best Regards,
    Chris

  • HT4628 My new macbook air does not get as good wifi reception as my old 2008 macbook.  Is anyone else having this problem?

    I just bought a 2012 Macbook Air with 2.0 processor, 8GB Ram 256GB harddrive, and it is SLOWER than my old 2008 macbook online.  Anyone else have this problem?

    This is the itunes forum.
    You are not addressing Apple here at all.

  • Access violation after changing from OCCI 10g to OCCI 11g

    I am moving my program from OCCI 10g and Visual Studio 2005 (VC8) to OCCI 11g and Visual Studio 2008 (VC9). I have downloaded the new instant client and SDK files (11.2.0.1), and everything builds OK. Using OCCI 11g, my program can write a spatial table to our Oracle Spatial 10g database, but when I try to read the data back, I get an access violation reading a spatial object (SDO_GEOMETRY). I am able to read the spatial table I created using OCCI 11g successfully using an earlier version of my application that uses Instant Client 10g.
    I used OTT from 10g to create the class that wraps SDO_GEOMETRY. I tried generating new code from OTT in 11g, but the result matched the code generated in 10g.
    The crash happens in a call to oracle::occi::ResultSet::GetObject(), and the top method in the call stack that has source code is:
    // Note: this is part of the object wrapper generated by OTT.
    void SdoGeometryBase::readSQL(void ctxOCCI_)
    SdoGeometryBase *objOCCI_ = new(ctxOCCI_) SdoGeometryBase(ctxOCCI_);
    oracle::occi::AnyData streamOCCI_(ctxOCCI_); <--- Access violation happens on this call.
    This happens on the first attempt to read an SDO_GEOMETRY object.
    Has anyone run into a similar problem?
    Thanks,
    Bob

    I am bumping this thread in hopes that someone might have run into this same problem or be able to give me some suggestions as to how to go about solving it. My program can connect to the database and query the list of tables or other non-spatial data, but when I try to read an SDO_GEOMETRY object I get the crash described below. The crash happens on both Windows XP and Windows 7. As far as I can tell, I am using the latest instant client and SDK files for Oracle 11g.
    Were there any changes between 10g and 11g that would force me to change my code?
    Thanks,
    Bob

  • 30 M rows in SQL Server 2008 R2- View or Table for faster performance

    Hello,
    I am creating a SSRS 2008 report that currently is using a view. It's a view made out of one table and is not indexed.
    There are 70 some columns that I am displaying in the report with 10 or so parameters that I am passing through a procedure from SSRS to SQL Server.
    When the report runs in Server or in development mode, the report gets out of memory error - which could be a totally different issue as it is trying to bring in a  couple million rows amd runs for 15- 20 mins.. and errors out.
    My question is if it is sourcing a single table, will a view be better with the right index or a table with index.
    Clustered, non clustered? Any suggestions or input would be greatly appreciated.
    Thank You.

    What is the exact error message?
    In SSRS you can use a stored procedure with parameters as data source. You can use a query in the sp, you don't need a view.
    >it is trying to bring in a  couple million rows amd runs  20 mins.. and errors out.
    Indexing not likely to help you. You have a huge return set problem.
    Kalman Toth Database & OLAP Architect
    SELECT Query Video Tutorial 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Windows 2008 R2 Folder assign permission "Read and Write" problem with *.doc file

    Hello All,
    I am a new one here,
    I am sorry for any mistakes and also my english is so poor.
    M Brother company runing Windows 2008 R2 as Active Directory...
    We have folder Name: Admin
    and in this folder, there are alot documents files as : *.doc, *.dwg, *.txt etc.....
    All user accesing to these files and they can open to edit and save...
    One day my brother want me to set Admin folder for all users just"Read and Write.." mean they still can open files to edit and save... but can't delete..
    I did success with this..
    But only one thing happen.. when they open *.doc file to edit and attempting to save, the message alert" access denide " and they can only "SAVE AS"...We don't want "Save as"
    Could you show me how can we fix error with *.doc file while they trying to save? because it allow only save as.. but other files as *.text file or *.dwg they can save without problem..
    Could expert here ever face this issues and fix by yourself, please share me with this..
    Please help me..
    Best regards,

    Hi,
    Office programs are specific. They will create a temp file when edit, then the temp file will be deleted when close. So Delete permission is needed for users to saving Office files like Excel/Word.
    For more detaile information, please refer to the thread below:
    Special Permissions - User cannot save files
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/721fb2f1-205b-46e5-a3dc-3029e5df9b5b/special-permissions-user-cannot-save-files
    Best Regards,
    Mandy 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Windows 2008 64-bit and Microsft ODBC for Oracle problem

    Hello,
    I am trying to create ODBC connection to Oracle 9i Database on remote server. I am using Windows 2008 64-bit but it is not showing Microsoft ODBC Driver for Oracle. Could any one suggest what to do?\\
    Thanks

    GQ wrote:
    Hello,
    I am trying to create ODBC connection to Oracle 9i Database on remote server. I am using Windows 2008 64-bit but it is not showing Microsoft ODBC Driver for Oracle. Could any one suggest what to do?\\
    ThanksInstall the Oracle client and use the Oracle driver. You're going to need it whether you use the MS driver or Oracles. ODBC drivers do not work apart from the client of the underlying database product.
    When you do the install, you will need to do a custom install and specifically select for the Windows components.

  • MacPro 2008 after Mountain Lion update has major sleep problems

    I have a 2008 MacPro with 2 2.8 quad-core xeon processors, 6 gigs of ram, and an Nvidia GeForce 8800GT graphics card.  On Wednesday, I updated my Mac to Mountain Lion and subsequently found one minor improvement and one major problem.  The one improvement is that sleep now works again automatically, if my MacPro is idle for a while (prior to this, I had to push the power button to put it in sleep mode).  The major problem is that after a while in sleep mode, the fans activate and don't stop and the Mac becomes unresponsive, forcing a hard shut down.  Although I assume that this is unrelated, just in case, the only other additional change this this week is that I got a Time Capsule.  Any ideas or suggestions about what to do are much appreciated.

    Power nap and mac compatibles
    By crispin. Original by Lionel - 28/07/2012 08:02:00 CEST - Category: Laptop
    Here's a little feedback on Power nap, one of the new features brought by Leo. Let's start with what Apple says about:
    When your Mac goes to sleep, it continues to work with Power Nap. It regularly updates Mail, Contacts, Calendar, Reminders, Notes, Photo feeds, Find My Mac and Documents in the Cloud. Connected to a power source, your Mac will download the software updates and performs backups with Time Machine. During all these updates, the system sounds are silent and no light, no fan will be triggered, so nothing will disturb you. And barely awake, your Mac is ready to go.
    It must be added to this information: Power Nap requires a Mac laptop with flash storage. May rneed an updated firmware.
    In fact, Apple has proposed specific updates for the MacBook Air in 2011 and 2012 and for the MacBook Pro Retina. However, as related by OWC, other Mac are compatible such as the MacBook Air 2010 13 "(not 11"). It is possible that this is the case with other Macs with SSD, but it will need to be checked case by case.

  • MacPro 2008 up to 10.9.3 - USB performance drop

    I have a vanilla early 2008 8-core Mac Pro with 8GB of RAM and about 500 GB of HD.
    I use it exclusively for software defined radio, which is an application that in my instance, transfers a lot of data to the computer via USB from a device called an SDR-IQ (by RFSPACE.) Very little outgoing data is involved, it's almost all in the device to computer direction. Data rates involved range from 200 kB/sec to 800 kB/sec, depending on the bandwidth selected in my application.
    I was previously using OSX 10.6.8, and everything worked fine at all data rates.
    I upgraded to 10.9.3, and now I get a few seconds of data transfer and correct operation, and then there is either a data stall or a significantly diminished transfer rate,  -- and that's the end of that. This happens at all data rates including the slowest.
    Running the same application, but with a unit that transfers the same amount of data, and also at all the higher rates, over TCP/ethernet, there is no problem. This establishes that 10.9 is not slowing down my actual application; instead it seems to be a problem specifically related to USB. I do have access to the source code which is handling the USB transfer, but there's nothing in it that was previously broken, and nothing stands out to me as something that is being done wrong, funny or in any way that would otherwise would raise suspicion.
    I know of one change Apple made between 10.6 and 10.9 that breaks USB compatibility; it was the addition of a serial kernal module for the FTDI chip which effectively blocks the direct access library and completely breaks anything that tries to talk to the FTDI chip in the (previously) standard manner. This must be unloaded, and I have done so:
         sudo kextunload -b com.apple.driver.AppleUSBFTDI
    At this point, software like mine that uses the FTDI chip works again, but as I said, it's very slow and/or stalls during data transfer.
    Anyone know of any hints, tips, or hopefully outright fixes?

    Ok, found it. Mavericks has this "app nap" thing. The software uses a server that talks to the SDR-IQ via USB, then re-encapsulates that data as a standard TCP stream at fairly high rates. The SDR receive software receives and interprets that stream.
    "App nap" takes windowed applications that are not at the "front" of OSX's GUI and interferes with their processing such that they don't get the cycles they need to run normally; that's exactly what was happening to the USB-to-TCP server. It was getting "put to sleep" in the middle of doing it's time-critical work, the TCP output stream would stall, and SdrDx in turn would suffer a data famine.
    The solution is to right click on the application icon and select "show info", then checkmark the "ignore app nap" or similar nomenclature. I did this for both the server and SdrDx, because there are *many* times when SdrDx is receiving but is not the front application, and it may not be making any sound, either, which is apparently one of the (few) things the app nap "feature" looks at to see if it is ruining your day.
    So if you get weird USB (or other) speed issues under Mavericks, first thing to try is turn off App Nap. That's a by-default-on OSX feature that is not nearly smart enough to do what it does to applications. Thank goodness Apple provided a way to turn it off!

  • Server 2008 - Safari Beta 3 crashes on launch: DEP problem?

    On Server 2008 (Standard, June CTP, x84), Safari Beta 3 crashes as soon as it is launched. My guess is that it's a Data Execution Protection (DEP) problem, because the error text and icon are similar to those involving DEP violations.
    Has anyone encountered this behavior - or solved it?
    Details:
    1. I actually did solve it, using some combination of adding Safari-related dll's to the DllNXOptions Registry key, and using the latest nightly build of WebKit.dll. Unfortunately, I can't replicate my success.
    2. When Safari is launched, the Menu bar and URL bar are displayed; then the error message appears.

    Update 2: this can be fixed by logging on as another user (User2) and deleting the profile of the user (User1) for whom Safari won't launch.
    When User1 logs on again, a new profile is created; Safari launches and runs properly under the new profile.
    At the time I noticed the problem, only User1 had logged on. As a guess, I logged on remotely as User2 - Safari launched and ran properly. That suggested that something about User1's original profile was the cause.

  • I get three beeps when I start my 2008 15" MBP. I'm thinking RAM problem. Is it possible to buy RAM for my (ahem) vintage model?

    I Get three beeps when I start my MBP. It's an old model 2008 15". I think I need to buy new RAM. Is RAM available for these older models?

    RAM is available from OWC and Crucial, the best sources of Mac compatible RAM.
    Ciao.
    Take out the RAM modules and clean the contacts.  Reinstall them making certain that they are well seated.
    If the tones come on again, test by installing each module in each bay to determine if the module or the bay is faulty.

  • Calling web service from SQL 2008 error: System.Security.HostProtectionException: Attempted to perform an operation that was forbidden by the CLR host.

    Hi, 
    Im trying to use web service in c# sql database project. when running stored procedure, in which the web service should be called, im getting this error:
    System.TypeInitializationException: The type initializer for 'System.ServiceModel.ClientBase`1' threw an exception. ---> System.Security.HostProtectionException: Attempted to perform an operation that was forbidden by the CLR host.
    at System.ServiceModel.DiagnosticUtility.GetUtility()
    at System.ServiceModel.DiagnosticUtility.get_Utility()
    at System.ServiceModel.ClientBase`1..cctor()
    The protected resources (only available with full trust) were:
    All
    The demanded resources were:
    Synchronization, ExternalThreading
    --- End of inner exception stack trace ---
    at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
    at System.ServiceModel.ClientBase`1..ctor()
    at UMGClient..ctor()
    at UMG_StoredProcedures.spUMG_ProcessEmail(SqlInt64 cid_request)
    Here is the code:
    using System;
    using System.Data;
    using System.Data.SqlClient;
    using System.Data.SqlTypes;
    using Microsoft.SqlServer.Server;
    using CredexDB.Workflow;
    using System.Collections.Generic;
    using CredexDB.umgwcftest;
    public partial class UMG_StoredProcedures
    /// <summary>
    /// </summary>
    /// <param name="bankDate"></param>
    /// <param name="stateCategory"></param>
    [Microsoft.SqlServer.Server.SqlProcedure]
    public static void spUMG_ProcessEmail( SqlInt64 cid_request )
    SqlConnection conn = new SqlConnection("Context Connection=true;");
    conn.Open();
    try
    SqlContext.Pipe.Send("A");
    UMGClient umgcl = new UMGClient();
    SqlContext.Pipe.Send("B");
    UMGwcf.SoapExchangeMailMessage email = new UMGwcf.SoapExchangeMailMessage();
    string[] names = new string[1];
    names[0] = "[email protected]";
    email.To = names;
    email.Subject = "Test UmgWcf";
    email.MessageBody = "Testovacia správa - ľľššččťťťýéáí";
    email.From = "[email protected]";
    email.Priority = 20;
    email.Sender = 1;
    email.DoNotArchive = false;
    email.EncryptAndSign = false;
    //long ret = umgcl.SendMailMessage(email);
    catch (Exception e)
    SqlContext.Pipe.Send("C");
    SqlContext.Pipe.Send(e.ToString());
    finally
    SqlContext.Pipe.Send("D");
    conn.Close();
    private static void execSql(string sql, SqlConnection conn)
    new SqlCommand(sql, conn).ExecuteNonQuery();
    The error occurs at this row:
    UMGClient umgcl = new UMGClient();
    Here is the UMG class:
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(Namespace="vub.sk/UMGwcf", ConfigurationName="IUMG")]
    public interface IUMG
    [System.ServiceModel.OperationContractAttribute(Action="vub.sk/UMGwcf/IUMG/SendMailMessage", ReplyAction="vub.sk/UMGwcf/IUMG/SendMailMessageResponse")]
    long SendMailMessage(UMGwcf.SoapExchangeMailMessage message);
    [System.ServiceModel.OperationContractAttribute(Action="vub.sk/UMGwcf/IUMG/ResendEmailMessage", ReplyAction="vub.sk/UMGwcf/IUMG/ResendEmailMessageResponse")]
    long ResendEmailMessage(long emailid);
    [System.ServiceModel.OperationContractAttribute(Action="vub.sk/UMGwcf/IUMG/GetEmailById", ReplyAction="vub.sk/UMGwcf/IUMG/GetEmailByIdResponse")]
    UMGwcf.SoapDeliveredMailMessage GetEmailById(long emailid);
    [System.ServiceModel.OperationContractAttribute(Action="vub.sk/UMGwcf/IUMG/SendSMSMessage", ReplyAction="vub.sk/UMGwcf/IUMG/SendSMSMessageResponse")]
    long SendSMSMessage(UMGwcf.SoapSMSMessage smsmessage);
    [System.ServiceModel.OperationContractAttribute(Action="vub.sk/UMGwcf/IUMG/GetSMSById", ReplyAction="vub.sk/UMGwcf/IUMG/GetSMSByIdResponse")]
    UMGwcf.SoapDeliveredSMSMessage GetSMSById(long smsid);
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public interface IUMGChannel : IUMG, System.ServiceModel.IClientChannel
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public partial class UMGClient : System.ServiceModel.ClientBase<IUMG>, IUMG
    public UMGClient()
    public UMGClient(string endpointConfigurationName) :
    base(endpointConfigurationName)
    public UMGClient(string endpointConfigurationName, string remoteAddress) :
    base(endpointConfigurationName, remoteAddress)
    public UMGClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
    base(endpointConfigurationName, remoteAddress)
    public UMGClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
    base(binding, remoteAddress)
    public long SendMailMessage(UMGwcf.SoapExchangeMailMessage message)
    return base.Channel.SendMailMessage(message);
    public long ResendEmailMessage(long emailid)
    return base.Channel.ResendEmailMessage(emailid);
    public UMGwcf.SoapDeliveredMailMessage GetEmailById(long emailid)
    return base.Channel.GetEmailById(emailid);
    public long SendSMSMessage(UMGwcf.SoapSMSMessage smsmessage)
    return base.Channel.SendSMSMessage(smsmessage);
    public UMGwcf.SoapDeliveredSMSMessage GetSMSById(long smsid)
    return base.Channel.GetSMSById(smsid);
    the CLR where created as follows:
    ALTER DATABASE XXXX SET TRUSTWORTHY ON;
    CREATE ASSEMBLY [System.ServiceModel]
    FROM 'C:\ttrojcak\System.Runtime.Serialization.dll'
    WITH PERMISSION_SET = UNSAFE
    CREATE ASSEMBLY [System.ServiceModel]
    FROM 'C:\ttrojcak\System.ServiceModel.dll'
    WITH PERMISSION_SET = UNSAFE
    the message window shows warnings:
    Warning: The Microsoft .NET Framework assembly 'system.servicemodel, version=3.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.web, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=x86.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.drawing, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.directoryservices, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.directoryservices.protocols, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.enterpriseservices, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=x86.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.runtime.remoting, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.runtime.serialization.formatters.soap, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.design, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.windows.forms, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'accessibility, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.drawing.design, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.web.regularexpressions, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.serviceprocess, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.configuration.install, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.identitymodel, version=3.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.messaging, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'system.identitymodel.selectors, version=3.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    Warning: The Microsoft .NET Framework assembly 'microsoft.transactions.bridge, version=3.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
    creating store procedure:
    EXEC sp_executesql N'
    CREATE PROCEDURE [spUMG_ProcessEmail]
    @cid_request bigint
    AS
    EXTERNAL NAME [CredexDB].[UMG_StoredProcedures].[spUMG_ProcessEmail]'
    IF (@@ERROR = 0)
    BEGIN
    DECLARE @procSchema sysname
    DECLARE @procName sysname
    SELECT @procSchema = SCHEMA_NAME(schema_id), @procName = name
    FROM sys.objects
    WHERE object_id = OBJECT_ID(N'[spUMG_ProcessEmail]')
    EXEC sp_addextendedproperty 'AutoDeployed', N'yes',
    'SCHEMA', @procSchema,
    'PROCEDURE', @procName
    EXEC sp_addextendedproperty 'SqlAssemblyFile', N'UMG\UMG.cs',
    'SCHEMA', @procSchema,
    'PROCEDURE', @procName
    EXEC sp_addextendedproperty 'SqlAssemblyFileLine', 95,
    'SCHEMA', @procSchema,
    'PROCEDURE', @procName
    END
    Any tips? 
    Thank you

    and this moves me to another problem. the stored procedure spUMG_ProcessEmail is unable to find and read app.config
    stored procedure is unable to read app.config. it is necesary to rewrite the xml config into c# code:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <system.serviceModel>
    <bindings>
    <basicHttpBinding>
    <binding name="BasicHttpBinding_IUMG" closeTimeout="00:01:00"
    openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
    allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
    maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
    messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
    useDefaultWebProxy="true">
    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
    maxBytesPerRead="4096" maxNameTableCharCount="16384" />
    <security mode="None">
    <transport clientCredentialType="None" proxyCredentialType="None"
    realm="" />
    <message clientCredentialType="UserName" algorithmSuite="Default" />
    </security>
    </binding>
    </basicHttpBinding>
    </bindings>
    <client>
    <endpoint address="http://umgwcftest/UMGwcf.svc" binding="basicHttpBinding"
    bindingConfiguration="BasicHttpBinding_IUMG" contract="IUMG"
    name="BasicHttpBinding_IUMG" />
    </client>
    </system.serviceModel>
    </configuration>
    and the rewrited code:
    BasicHttpBinding myBinding = new BasicHttpBinding();
    myBinding.Name = "BasicHttpBinding_IUMG";
    myBinding.CloseTimeout = new TimeSpan(00, 01, 00);
    myBinding.OpenTimeout = new TimeSpan(00, 01, 00);
    myBinding.ReceiveTimeout = new TimeSpan(00, 10, 00);
    myBinding.CloseTimeout = new TimeSpan(00, 01, 00);
    myBinding.AllowCookies = false;
    myBinding.BypassProxyOnLocal = false;
    myBinding.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard;
    myBinding.MaxBufferSize = 65536;
    myBinding.MaxBufferPoolSize = 524288;
    myBinding.MaxReceivedMessageSize = 65536;
    myBinding.MessageEncoding = WSMessageEncoding.Text;
    myBinding.TextEncoding = System.Text.Encoding.UTF8;
    myBinding.TransferMode = TransferMode.Buffered;
    myBinding.UseDefaultWebProxy = true;
    myBinding.ReaderQuotas.MaxDepth = 32;
    myBinding.ReaderQuotas.MaxStringContentLength = 8192;
    myBinding.ReaderQuotas.MaxArrayLength = 16384;
    myBinding.ReaderQuotas.MaxBytesPerRead = 4096;
    myBinding.ReaderQuotas.MaxNameTableCharCount = 16384;
    myBinding.Security.Mode = BasicHttpSecurityMode.None;
    myBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
    myBinding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None;
    myBinding.Security.Transport.Realm = "";
    myBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;
    myBinding.Security.Message.AlgorithmSuite = System.ServiceModel.Security.SecurityAlgorithmSuite.Default;
    EndpointAddress endPointAddress = new EndpointAddress(new Uri("http://umgwcftest/UMGwcf.svc"));
    SqlContext.Pipe.Send("2");
    UMGClient umgcl = new UMGClient(myBinding, endPointAddress);
    after that, I got another error and it's solution is here:
    error and solution
    So I got it finaly working 

  • Calling SQL*Loader from OCCI

    Hi All,
    I need to access SQL*Loader from C++.
    I know there is an interface for OCI to access SQL*Loader.
    I also know there is a gnu project of a c++ wrapper to the OCI-SQL*Loader interface (odpd).
    According to the OCCI documentation it is just a C++ facade of OCI (with some goodies like thread managing , etc.).
    I want to know the following:
    1. How can I operate OCI from OCCI?
    2. Are there are source samples of operating OCI from OCCI or even better operating OCI SQL*Loader interface from OCCI?
    3. Are there are any known (/unknown :-) ) problems with either OCCI access to OCI or OCI interface itself to the SQL*Loader?
    Thanks,
    Arik

    Hi,
    If you have a OCCI application and you want to interoperate with OCI, you can retrieve the underlying OCI handles from OCCI objects and write OCI code.
    e.g :-
    //with Environment env, Connection conn OCCI objects
    OCIEnv *ocienv = env->getOCIEnv();
    OCISvcCtx *ocisvc = conn->getOCISvcCtx();
    //use OCI calls
    OCIError *errhp;
    OCIHandleAlloc (ocienv, &errhp, OCI_HTYPE_ERROR,...);
    OCIHandleAlloc (ocienv, &dpctx, OCI_HTYPE_DIRPATH_CTX,..);
    err = OCIDirPathLoadStream(...);
    OCCI does not have a direct path API at present.
    Thanks.

  • When OCCI will support GNU GCC v3.3.2?

    When OCCI will support GNU GCC v3.3.2?
    Would like to know when Oracle will release OCCI
    to support GCC 3.2 or newer version GCC.
    I plan to estimate OCCI on GCC 3.2.* for Solaris and Linux to help us make
    decision when will deploy OCCI solution to our customers to resolve
    Java application performance issue.
    Do any Oracle staff advice it?
    Thanks!
    Senthil

    If it is RedHat Linux AS3.0/4.0, OCCI 10.2 is supported with gcc3.2.3 only. It may be supported with gcc3.4.3 in future.

Maybe you are looking for

  • How to compuile many .java files in a labyrynth of directories?

    I dowloaded a source code that I can't still compile !!! I don't use Java in my life :) There are only empty directories following one after another at the end of each there is a single .java file. There are alot of directories and it is supposed tha

  • How to set date column to current date by default in form

    Hi, I have some forms in which users need to enter todays date..Is there any way I can set this filed to current date to avoid errors inc ase users dont enter the date. Shravanthi

  • KODO on Weblogic 10.0 MP1

    Hi, I am running an application on Weblogic 10.0 MP1. The application uses KODO.The use case of my problem is simple. There is a stateless session bean which has a transaction envelope of REQUIRED. One of its method, inserts a row into DB(Oracle) usi

  • Language Problem after 10.5.7 Update

    Hi, i´ve installed the 10.5.7 Update successfully. But after the Update my login screen language is chanced to english instead of my own language german. How can I change the language setting for the login screen?

  • Can I revoke DEBUG Privilege ?

    In a database, We have a (customization) schema, say XYZ & Oracle APPS schema. The business logic are processed in XYZ then process (call) to Oracle side using API on XYZ schema, say create Oracle Order. The XYZ's API will call the package on APPS. M