Deploying Code Through using OLEDB

I'm currently writting an application for my company that is a code repository for the multiple PL/SQL packages that we get for our systems. I was thinking that it would be rather great if I could deploy code from this application into any of the systems that need the code. However, I wasn't sure if I was capable of doing this through ADO. The main reason being that most of the PL/SQL Packages that we get have &Variable information that needs to be Addressed.
I know that the COMMAND object is pretty powerful when using the adCmdText so that you can run PL/SQL blocks, but wasn't sure how it handles variables. Also didn't know if I needed to go throught the hassle of generating a window to input all variable information before I run it through the COMMAND object. However I was hoping for something like SQL*Plus where you get prompted for all the variables before it compiles. Didn't think that type of thing existed, but figured it wouldn't hurt to ask.
Just wondering if people out there had any experience with this and may offer suggestions. Any help at all would be great.
-- Enoch

Hi Vinod,
We can specify the settings for migrating the users and policy in ear deployment profile. And weblogic-applicaiton.xml code after unzipping ear is here. I think it has the required settings mentioned in link given. Still when we depploy ear through console ... users are not migrated.
+<?xml version = '1.0' encoding = 'windows-1252'?>+
+<weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.1/weblogic-application.xsd" xmlns="http://xmlns.oracle.com/weblogic/weblogic-application">+
+<xml>+
+<parser-factory>+
+<saxparser-factory>oracle.xml.jaxp.JXSAXParserFactory</saxparser-factory>+
+<document-builder-factory>oracle.xml.jaxp.JXDocumentBuilderFactory</document-builder-factory>+
+<transformer-factory>oracle.xml.jaxp.JXSAXTransformerFactory</transformer-factory>+
+</parser-factory>+
+</xml>+
+<application-param>+
+<param-name>jps.credstore.migration</param-name>+
+<param-value>OVERWRITE</param-value>+
+</application-param>+
+<application-param>+
+<param-name>jps.policystore.migration</param-name>+
+<param-value>OVERWRITE</param-value>+
+</application-param>+
+<listener>+
+<listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener</listener-class>+
+</listener>+
+<listener>+
+<listener-class>oracle.mds.lcm.weblogic.WLLifecycleListener</listener-class>+
+</listener>+
+<listener>+
+<listener-class>oracle.security.jps.wls.listeners.JpsApplicationLifecycleListener</listener-class>+
+</listener>+
+<library-ref>+
+<library-name>adf.oracle.domain</library-name>+
+</library-ref>+
+<library-ref>+
+<library-name>oracle.jsp.next</library-name>+
+</library-ref>+
+</weblogic-application>+
Thanks,
Rajdeep

Similar Messages

  • Issue while deploying code that uses OIM api: OIMClient

    We are trying to deploy a war file with some java code that interfaces with OIM by using the OIMClient api. Note that we have all the spring jars needed and it works fine on Tomcat. Our production env is on weblogic, and when we deploy the war file on weblogic it deploys fine. But when we test some of the web pages, we get the following error:
    ]] Root cause of ServletException.
    java.lang.NoClassDefFoundError: org/springframework/jndi/JndiTemplate
    at oracle.iam.platform.OIMClient.<init>(OIMClient.java:83)
    Truncated. see log file for complete stacktrace
    >
    The class file is available in a jar called spring-context with the same package structure: org.springframework.jndi.jnditemplate. I wonder why it cannot find the definition for that class. I also tried removing these jars from the war file and adding them to the domain's lib dir. I still end up with the same exception.
    Appreciate all the help I can get.
    Edited by: 958829 on Sep 12, 2012 11:01 PM

    Good one. I just threw every single spring jar the webapp needed into the domain's lib. I did not declare them as "provided" though. and it worked. I bet going into console/deployment and adding the jars individually would've worked too. Thanks mate. Cheers !

  • Deploy wsp through Power Shell- start stop SP admin service and run execadmsvcjobs command using power shell

    Hi,
     Can anyone pls point me any link/ src code  for  deplyoing wsp using power shell. I know I can deploy it through Add-spsolution and install-spsolution, the issue is that, it will give   "status - stuck in deploying scheduled..."
    and i need to restart the sharepoint services - services.msc --> SP administration and timer services - and then i need to run the exceadmsvcjobs command to deploy / update the wsp  successfully in solution store.
    i mean, whats the power shell equivalent of these tasks. or anyone has already scripted these.
    if i elaborate little bit, would like to know how to automatically Retract, Remove, Add and Deploy SharePoint 2010 WSP Solution Files with PowerShell

    ok, i have found  the same :
     here its : hope this will help someone.
    function wait4timer($solutionName)
    $solutionName ="TestingWSP.wsp"
    $solution = Get-SPSolution | where-object {$_.Name -eq $solutionName}
    if ($solution -ne $null)
    Write-Host "Waiting to finish soultion timer job" -ForegroundColor Green
    while ($solution.JobExists -eq $true )
    Write-Host "Please wait...Either a Retraction/Deployment is happening" -ForegroundColor DarkYellow
    sleep 5
    Write-Host "Finished the solution timer job" -ForegroundColor Green
    try
    # Get the WebApplicationURL
    $MyWebApplicationUrl = "http://srvr:21778/";
    # Get the Solution Name
    $MywspName = "TestingWSP.wsp"
    # Get the Path of the Solution
    $MywspFullPath = "D:\myWorkspace\TestingWSP.wsp"
    # Try to get the Installed Solutions on the Farm.
    $MyInstalledSolution = Get-SPSolution | Where-Object Name -eq $MywspName
    # Verify whether the Solution is installed on the Target Web Application
    if($MyInstalledSolution -ne $null)
    if($MyInstalledSolution.DeployedWebApplications.Count -gt 0)
    wait4timer($MywspName)
    # Solution is installed in atleast one WebApplication. Hence, uninstall from all the web applications.
    # We need to unInstall from all the WebApplicaiton. If not, it will throw error while Removing the solution
    Uninstall-SPSolution $MywspName -AllWebApplications:$true -confirm:$false
    # Wait till the Timer jobs to Complete
    wait4timer($MywspName)
    Write-Host "Remove the Solution from the Farm" -ForegroundColor Green
    # Remove the Solution from the Farm
    Remove-SPSolution $MywspName -Confirm:$false
    sleep 5
    else
    wait4timer($MywspName)
    # Solution not deployed on any of the Web Application. Go ahead and Remove the Solution from the Farm
    Remove-SPSolution $MywspName -Confirm:$false
    sleep 3
    wait4timer($MywspName)
    # Add Solution to the Farm
    Add-SPSolution -LiteralPath "$MywspFullPath"
    # Install Solution to the WebApplication
    #Install-SPSolution -Identity <SolutionName> -WebApplication <URLName> [-GACDeployment] [-CASPolicies]
    install-spsolution -Identity $MywspName -WebApplication $MyWebApplicationUrl -GACDeployment #-FullTrustBinDeployment:$true -GACDeployment:$false -Force:$true
    # Let the Timer Jobs get finishes
    wait4timer($MywspName)
    Write-Host "Successfully Deployed to the WebApplication" -ForegroundColor Green
    catch
    Write-Host "Exception Occuerd on DeployWSP : " $Error[0].Exception.Message -ForegroundColor Red
    ref :
    http://www.sharepointpals.com/post/How-to-Deploy-a-SharePoint-2013-Solution-(WSP)-in-the-Farm-using-PowerShell

  • I purchased a digital itunes giftcard through paypal but can't seem to find a 'code' to use to redeem the card. Could someone help me find where that code would be found? I can see the paypal transaction details.

    I purchased a digital itunes giftcard through paypal but can't seem to find a 'code' to use to redeem the card. Could someone help me find where that code would be found? I can see the paypal transaction details. jgm22

    -> iTunes Cards & Codes

  • Trouble creating a Netezza datasource from SharePoint Designer 2010 using OLEDB

    I am trying to create a data source in SharePoint Designer 2010 for connecting to a Netezza database via OLEDB.  If I choose the Microsoft .NET Data Provider for OLEDB and give it the server name, username, and password, I get the following connection
    error:
    Server Error: An error occurred while retrieving the list of Databases from nzprod-vip: The data retrieval service encounterd an error during connection to the data source. Contact the server administrator for more information.
    (The server administrator had no additional information.)
     If I use a custom connection string, specifying the Netezza OLEDB provider,  whose format looks like this (actual database and credentials omitted):
    Provider=NZOLEDB;Password=...;User ID=...;
    Data Source=...;Initial Catalog=...;
    Persist Security Info=True;Port=5480;Logging Level=0;Log Path=nzconnect.log; Optimize for ASCII=True;
    I get the following connection error:
    Server Error: An error occurred while retrieving the list of Databases from nzprod-vip: The Web server cannot connect to the specified data source because the query may contain errors, the data source may be unavailable or configured improperly, or you Web
    site is behind a proxy server or firewall.
    If your Web site is behind a proxy server or firewall, verify that your server administrator has configured the Data Retrieval Services HTTP proxy server setting for Microsoft SharePoint Foundation.
    (We are not behind a proxy server or firewall.)
    The NZOLEDB provider is loaded on the SharePoint server running the SharePoint Data Retrieval Service. I can successfully connect to the Netezza database if I login directly to the SharePoint server and run a Netezza database
    browser that connects via NZOLEDB using the same parameters that are in custom connection string I tried through SharePoint Designer.
    Our SharePoint server configuration has one server for the application services (including the Data Retrieval Service) and two other servers running just SharePoint web services.   (We actually loaded the NZOLEDB driver on all three servers for
    good measure, though we think the server running the Data Retrieval Service would be right one.)
    We do not think SharePoint privileges are a factor, since we had our SharePoint administrator try to connect while running with full access privileges.
    Any help will be much appreciated.

    Hi Ronald,
    i am not quite sure how the OLEDB connect to the netezza, as i heard they also have their own OLEDB, as you mentioned.
    but please have a check this link, perhaps it may help to set up OLEDB in sharepoint designer
    http://office.microsoft.com/en-us/sharepoint-designer-help/add-a-database-as-a-data-source-HA010355745.aspx
    perhaps this link may help you in some way:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/0e4b5e49-49ef-4e6b-9ab8-ac954ab8d0be/how-do-i-add-c-to-webpage-in-sharepoint-designer?forum=sharepointcustomizationlegacy
    http://social.technet.microsoft.com/Forums/en-US/9ac4a7af-6e3f-41d8-8b8e-14b707697e06/c-code-to-connect-netezza-using-oledb-provider?forum=sqlintegrationservices
    http://www.rafael-salas.com/2010/06/ssis-and-netezza-loading-data-using-ole.html#!/2010/06/ssis-and-netezza-loading-data-using-ole.html
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Insert into Microsoft access 2010 Database on sharepoint using OLEDB

    Hi,
    want to insert data into a microsoft access web db using oledb object. but the i am unable to open the database.
        dbLoc = "http://XXXX.com/project/design/Test_Web_DB
        Dim strConnection As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source= " & dbLoc
        Try
                con = New OleDb.OleDbConnection(strConnection)
                If con.State = ConnectionState.Closed Then con.Open()
        Catch ex As OleDbException
               MsgBox("OleDbException: Unable to Open DB")
        End Try
    it always go to the exception. is there any problem with the above code??

    Hey Bala,
    Browsing the link (as shown below) on the browser doesnt open the DB.
    http://XXXX.com/project/design/Test_Web_DB.accdb
    Instead, without ".accdb" works.
    my requirement is something like below, please recommend your suggestion
    1. i have a DB on access 2010, which gets updated on regular basis (currently db is on common location) by different VB.net application client my the network
    2. i want to create various reports out of the data and want them visible available on sharepoint.
    please help
    -Manash

  • Error while deploying ESS through SDM

    Hi,
    While deploying ESS through SDM i got following error for one of the files:
    Starting Deployment of tc/sl.ut.content.erp.xss
    Aborted: development component 'tc/sl.ut.content.erp.xss'/'sap.com'/'MAIN_ERP53PAT_C'/'2433758'/'0', grouped by software component 'SAP_ESS'/'sap.com'/'MAIN_ERP53PAT_C'/'1000.603.0.0.1.20080207103154''/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while deploying ear file ./temp/deploy/work/deploying/tc_sl.ut.content.erp.xss.ear. Reason: None of the available containers recognized the components of application sap.com/tc~sl.ut.content.erp.xss; it is not possible to make deploy.
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment of tc/sl.ut.content.erp.xss finished with Error (Duration 13250 ms)
    Can anyone please tell what exactly the issue could be because of which that particular file is not recognized.
    Thanks & regards,
    Anupreet

    Hi,
    Its always advisable to use JSPM for the installation. Copy all the installable files in the JSPM temp folder and the instalation will be taken care and you don't have to worry about dependencies.
    If you are using SDM make sure that you deploy PCUI_GP component FIRST, then the other components in any order.
    Regards
    Deb

  • How to download files in jsp code {through save dialog}

    can you help me to download files in jsp code {through save dialog}
    i use the following code but it saves the jsp page instead of the downloaded file but with the name of the wanted file to be downloaded
    response.setHeader("Pragma", "public");
    response.setHeader("Cache-Control", "no-cache");
    *** download file
    if((trans !=null)&&(trans.equals("download")) )
    response.setContentType ("application/x-download");
    response.setHeader ("Content-Disposition","attachment;filename=\""+fileName+"\"");
    %>
    <script>
    window.location.href=<%=gallerypath+fileName%>';
    </script>
    <%
    trans="";
    //System.out.print("download : "+fileName );
    //***************************************

    Can you try below code, It should work...
    <%
    String myFileName = request.getParameter("fileName");
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment; filename=\"" + myFileName + "\"");
    String root = "D:/";
    InputStream in = null;
    ServletOutputStream outs = response.getOutputStream();
    try {
    in = new BufferedInputStream
    (new FileInputStream(root + myFileName));
    int ch;
    while ((ch = in.read()) != -1) {
    outs.print((char) ch);
    finally {
    if (in != null) in.close(); // very important
    outs.flush();
    outs.close();
    in.close();
    %>

  • Ejb 2.0 deployment code error with WAS 6.1

    Hi we have recently migrated to WAS 6.1 from 5.1.
    Since then we are facing the below problem.We use ant task to call ejbDeploy.sh to generate deployment code for one of our ejb module.All i did in the ant script was changing the path to ejbdeploy tool from WAS 6.1.However the application is built finally but showing this error in the middle of running the tool.
    If i replace the ejb-jar.xml to version 2.1 it is working fine with no error but as originally the application is coded on ejb 2.0 and here it is showing error.
    I am afraid of changing the dtd version just to avoid this error,also running with the error in the older version would cause any problem in the production later?
    Your help is needed
    Exception:
    {color:#0000ff}o0825.02EJB Deploy configuration directory: /users/users-2/t504625/.eclipse/configurationframework search path: /auto/prod/ver/WAS/610_21/deploytool/itp/plugins
    [exec] org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException: IWAE0007E Could not load resource "META-INF/ejb-jar.xml" in archive "/vobs/glbtrs01/gmm/build/src/java/temp/AppMessaging.jar"
    [exec] Stack trace of nested exception:
    [exec] org.eclipse.emf.common.util.WrappedException: java.net.ConnectException: Connection timed out
    [exec] at org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer.doLoad(EMF2SAXRenderer.java:97)
    [exec] at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.basicDoLoad(TranslatorResourceImpl.java:142)
    [exec] at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900)
    [exec] at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.load(CompatibilityXMIResourceImpl.java:259)
    [exec] at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.load(TranslatorResourceImpl.java:388)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:249)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:264)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:390)
    [exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl.getMofResource(LoadStrategyImpl.java:347)
    [exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.getMofResource(ArchiveImpl.java:731)
    [exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleFileImpl.getDeploymentDescriptorResource(ModuleFileImpl.java:61)
    [exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.preprocessArchives(BatchExtension.java:3681)
    [exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.java:340)
    [exec] at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    [exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    [exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    [exec] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [exec] at java.lang.reflect.Method.invoke(Method.java:585)
    [exec] at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoader.java:476)
    [exec] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:101)
    [exec] at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:106)
    [exec] at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:336)
    [exec] Caused by: java.net.ConnectException: Connection timed out
    [exec] at java.net.PlainSocketImpl.socketConnect(Native Method)
    [exec] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    [exec] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    [exec] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    [exec] at java.net.Socket.connect(Socket.java:507)
    [exec] at java.net.Socket.connect(Socket.java:457)
    [exec] at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
    [exec] at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
    [exec] at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
    [exec] at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
    [exec] at sun.net.www.http.HttpClient.New(HttpClient.java:287)
    [exec] at sun.net.www.http.HttpClient.New(HttpClient.java:299)
    [exec] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
    [exec] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
    [exec] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
    [exec] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
    [exec] at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    [exec] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    [exec] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    [exec] at org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer.doLoad(EMF2SAXRenderer.java:93)
    [exec] ... 26 more {color}

    I am sure all the setup is coorect.
    i even tried the same script with WAS 5.1 ejbDeploy.sh tool and did not face this problem.
    This is what i tried again in WAS 6.1 but with the same result.
    We had two ejb module.
    I replaced dtd to version 2.1 in one module and left the other one with the 2.0
    Then when the ant scripts execute the task ejbDeploy.sh
    for module 1 with dtd 2.1 it shows WAS/deploytool/ipt/ejbdeploy.options not found error and stays for a second and then started building tha module 1 no exception is thrown and then shows the same not found error for module 2 with dtd 2.0 and stays forever until the connection timeout exception is thrown and then started building the module.
    I don't know the cause for the timeout exception when only DTD 2.0 is used.
    Please help.

  • Insertion a record in a table having columns of different charsets using OLEDB

    My development environment -
    Database -> Microsoft SQL Server
    2008 R2
    OS -> Windows Server
    2008 R2
    Database Charset -> Chinese_PRC_CI_AS (Windows
    936)
    Operating System Charset -> Chinese
    Below table is having varchar fields with different charsets.
    create
    table dbo.tcolcs1 (
        c1 int
    not
    null
    primary
    key,
        c2 varchar(30)
    collate SQL_Latin1_General_Cp1_CI_AS ,
        c3 varchar(30)
    collate Chinese_PRC_CI_AS
    I want to insert below record using OLEDB APIs provided by Microsoft. Just for information, character '0x00C4' does not
    belong to Windows 936 codepage.
    insert
    into dbo.tcolcs1
    values (10,
    NCHAR(0x00C4), NCHAR(0x4EBC))
    Code snippet -
    DBPARAMBINDINFO bind_info
    memset(&bind_info,
    0, sizeof(DBPARAMBINDINFO));
    bind_info.pwszDataSourceType = L"DBTYPE_VARCHAR";
    bind_info.wType = DBTYPE_STR;
    I have bound the varchar field with DBTYPE_STR. I can see that my code is not inserting Latin1 character (0x00C4) correctly
    into the table. The code always inserts a blank character into Latin1 column (c2) and 0x4EBC into Chinese column (c3).
    Later, I changed the binding from DBTYPE_STR to DBTYPE_BYTES as below -
    bind_info.pwszDataSourceType = L"DBTYPE_BINARY";
    bind_info.ulParamSize =
    0;              
    bind_info.wType = DBTYPE_BYTES;
    With the above change, I observed that OLEDB is converting hex value to string. It is inserting 0x00C4 as 'C4' and 0x4EBC
    as '4EBC'. I also tried with adding 'AutoTranslate=no' in driver connection string, but it did not help. How can I insert above record with OLEDB in the above table ?
    Thanks in advance.

    Did you try making fields as unicode?
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Newbie question. Trying to set up connection using OLEDB with C++

    I have been able to create a C#.Net program using OLEDB to connect to my Oracle server.
    C++ is a different beast!
    I can't seem to get any traction. What files should I include? What syntax do I use, things of that nature.
    I've been looking for code examples, but it seems that all things OLEDB leads to the use of C# and not C++. I have a MFC .dll written in C++ that I need to modify to use Oracle technology instead of MS SQL Server.
    If anybody can point me in the right direction, it would be greatly appreciated.

    Hi,
    You might take a look at the two samples under "VC++ OLEDB Samples" here:
    http://www.oracle.com/technology/sample_code/tech/windows/ole_db/oledb8/index.html
    They're pretty old, but then again so is OLEDB I guess.
    Regards,
    Mark

  • How to write the CORRECT code to use Application View in WLI8.1

    Hi, guys,
    I try to use the WLI 8.1 released version now. and I deploy a Weblogic MQSeries
    dapter 8.1 on WLI 8.1. And have create a Application view which detail is like
    this:
    ID demo_testadapter_conn110
    Name conn110
    Description connect to MQServer 110 machine
    State Deployed
    Adapter Instance mqdemo_testadapter_conn110__Default
    And I create send/get message services in the defined Application view, and
    they are work because I test the services in WLAI design console.
    Then I try to write client code to use the deployed application view referenced
    by aiuser(adapter).pdf document. And my code is like this :
    Hashtable props = new Hashtable();
    // set the properties
    props.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    props.put(Context.PROVIDER_URL, "t3://localhost:7001");
    props.put(Context.SECURITY_PRINCIPAL, "mqadmin");
    props.put(Context.SECURITY_CREDENTIALS, "weblogic");
    InitialContext initialContext = new InitialContext(props);
    com.bea.wlai.client.ApplicationView appView = new ApplicationView(initialContext,"testadapter_conn110");
    //com.bea.wlai.client.ApplicationView appView = new ApplicationView(initialContext,"mqdemo_testadapter_conn110__Default");
    ConnectionRequestInfoMap map = new ConnectionRequestInfoMap();
    //add ConnectionSpec properties
    //map.put("prop_name","prop_value");
    //put the connectionspec to a EIS
    //appView.setConnectionSpec(map);
    // Create a request document using the definition stored for this
    // Application View at deployment time.
    IDocumentDefinition requestDocumentDef = appView.getRequestDocumentDefinition("sendmsg");
    SOMSchema requestSchema = requestDocumentDef.getDocumentSchema();
    DefaultDocumentOptions options = new DefaultDocumentOptions();
    options.setForceMinOccurs(1);
    options.setRootName("ROOTNAME");
    options.setTargetDocument(DocumentFactory.createDocument());
    IDocument requestDocument = requestSchema.createDefaultDocument(options);
    // Fill in the request with some data. What you fill in depends on
    // the definition of the request document (i.e. its schema)
    requestDocument.setStringInFirst("//ROOT/data/Format","value");
    requestDocument.setStringInFirst("//ROOT/data/Content","this is a test");
    // Invoke the service and retrieve the response document
    IDocument responseDocument = appView.invokeService("sendmsg", requestDocument);
    // Dump the response document out as XML
    //System.out.println("GetSomeData: " + responseDocument.toXML());
    But when I run this code, a jndi exception occured:
    <2003-8-4 ÏÂÎç14ʱ43·Ö20Ãë CST> <Error> <HTTP> <BEA-101017> <[ServletContext(id=8732241,name=rootapp
    ,context-path=/rootapp)] Root cause of ServletException.
    javax.naming.NameNotFoundException: Unable to resolve 'AI_GLOBAL_testadapter_conn110_ApplicationView
    ' Resolved ; remaining name 'AI_GLOBAL_testadapter_conn110_ApplicationView'
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:186)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
    and you can see I set the application view name like "testadapter_conn110" in
    my code, I use "conn110" and also applicaiton ID to try, also occur this excption.
    In the JDK document, the constructor of com.bea.wlai.client.ApplicationView
    showed I should use the 'Name' of the Application View to create a object, but
    it also throw a jndi exception.
    What's the problem ? Hope you guys can help me!!
    Regards,
    shannon

    Shannon,
    Obviously the stack-trace says that u r having some jndi lookup problems...
    just curious check if the JNDI tree of the hosting server (You can check it using
    the admin console) to see if u have your application view is binded.. maybe the
    app view is not binded properly..
    +arvind
    "Shannon Lee" <[email protected]> wrote:
    >
    Hi, guys,
    I try to use the WLI 8.1 released version now. and I deploy a Weblogic
    MQSeries
    dapter 8.1 on WLI 8.1. And have create a Application view which detail
    is like
    this:
    ID demo_testadapter_conn110
    Name conn110
    Description connect to MQServer 110 machine
    State Deployed
    Adapter Instance mqdemo_testadapter_conn110__Default
    And I create send/get message services in the defined Application view,
    and
    they are work because I test the services in WLAI design console.
    Then I try to write client code to use the deployed application view
    referenced
    by aiuser(adapter).pdf document. And my code is like this :
    Hashtable props = new Hashtable();
    // set the properties
    props.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    props.put(Context.PROVIDER_URL, "t3://localhost:7001");
    props.put(Context.SECURITY_PRINCIPAL, "mqadmin");
    props.put(Context.SECURITY_CREDENTIALS, "weblogic");
    InitialContext initialContext = new InitialContext(props);
    com.bea.wlai.client.ApplicationView appView = new ApplicationView(initialContext,"testadapter_conn110");
    //com.bea.wlai.client.ApplicationView appView = new ApplicationView(initialContext,"mqdemo_testadapter_conn110__Default");
    ConnectionRequestInfoMap map = new ConnectionRequestInfoMap();
    //add ConnectionSpec properties
    //map.put("prop_name","prop_value");
    //put the connectionspec to a EIS
    //appView.setConnectionSpec(map);
    // Create a request document using the definition stored for this
    // Application View at deployment time.
    IDocumentDefinition requestDocumentDef = appView.getRequestDocumentDefinition("sendmsg");
    SOMSchema requestSchema = requestDocumentDef.getDocumentSchema();
    DefaultDocumentOptions options = new DefaultDocumentOptions();
    options.setForceMinOccurs(1);
    options.setRootName("ROOTNAME");
    options.setTargetDocument(DocumentFactory.createDocument());
    IDocument requestDocument = requestSchema.createDefaultDocument(options);
    // Fill in the request with some data. What you fill in depends
    on
    // the definition of the request document (i.e. its schema)
    requestDocument.setStringInFirst("//ROOT/data/Format","value");
    requestDocument.setStringInFirst("//ROOT/data/Content","this is a
    test");
    // Invoke the service and retrieve the response document
    IDocument responseDocument = appView.invokeService("sendmsg", requestDocument);
    // Dump the response document out as XML
    //System.out.println("GetSomeData: " + responseDocument.toXML());
    But when I run this code, a jndi exception occured:
    <2003-8-4 ÏÂÎç14ʱ43·Ö20Ãë CST> <Error> <HTTP> <BEA-101017> <[ServletContext(id=8732241,name=rootapp
    ,context-path=/rootapp)] Root cause of ServletException.
    javax.naming.NameNotFoundException: Unable to resolve 'AI_GLOBAL_testadapter_conn110_ApplicationView
    ' Resolved ; remaining name 'AI_GLOBAL_testadapter_conn110_ApplicationView'
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:186)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
    and you can see I set the application view name like "testadapter_conn110"
    in
    my code, I use "conn110" and also applicaiton ID to try, also occur this
    excption.
    In the JDK document, the constructor of com.bea.wlai.client.ApplicationView
    showed I should use the 'Name' of the Application View to create a object,
    but
    it also throw a jndi exception.
    What's the problem ? Hope you guys can help me!!
    Regards,
    shannon

  • How to edit deployment plan through Administration Console in weblogic 9.0?

    hi,<br>
    <p>I need to edit the deployment plan through console. But i'm not able to do so.Everytime i upload an ear file and tired to edit the environment variables or deployment plan through console it gives the message</p>
    <b>"This module is defined with DTD based descriptors and cannot be edited using the console. "</b><br>
    <p>I have been manually editing the deployment plan file so far.<br>
    In earlier versions of weblogic , there was an option to edit the environmental variables. Does weblogic 9.0 support the same? <br>
    I'm not able to find a solution soo far.<br>
    Please guide me. <br></p>
    Thanks<br>
    Smita

    Hi.
    I'm experiencing the same problem, using Weblogic 9.1.
    I have an ear file that contains a war file.
    Previously, the files were in servlet api 2.3 format (with a DTD). I used the DDConverter tool to update the files, and now I can use the console to change parameters for the web application, but I still can't change paramters for the main application: "This module is defined with DTD based descriptors and cannot be edited using the console.".
    Here is the content of the META-INF/application.xml contained in mey ear file:
    <?xml version='1.0' encoding='utf-8'?>
    <application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4">
    <description>Application xxx</description>
    <display-name>xxx</display-name>
    <module>
    <web>
    <web-uri>xxx.war</web-uri>
    <context-root>xxx</context-root>
    </web>
    </module>
    </application>
    Thank you very much for your help.

  • Use OLEDB in Chinese windows Server

    Hello..
    I have a problem in using OLEDB in Chinese windows system.
    If i write sql statement that include Chinese Language in ASP code, then I can not return record correctly.
    For example,in case of col1 of table1 is varchar2 type and data inserted chinese language, if i execute query that 'select col1 from table1' then has no problem.
    but i execute 'select col1 from table1 where col1 = 'CHINESE LANGUAGE' then return no record..
    How can i fix it?
    Environment :
    Windows 2000 Advanced Server with SP4
    Web server - IIS 5.x
    MDAC version - 2.53.6200.1
    Oracle version - 8.1.7.4.1
    Oracle Provider for OLE DB - 8.1.7.3.0
    Oracle NLS - AMERICAN_AMERICA.US7ASII

    The characterset is a problem, but it's a common problem.
    Taking a step back and thinking about the problem logically, it should be clear that you shouldn't be able to store Chinese data in a US7ASCII database. A US7ASCII database can store 128 distinct characters, but there are a whole lot more than 128 Chinese characters. If every character in the world could be represented via ASCII, Unicode would have been a pointless exercise.
    Why, then, does it appear to work correctly for you? When the client and the server both have the same NLS language setting, the Oracle networking layer doesn't do any sort of character set conversion-- it just passes the data back and forth as a binary stream. In your case, the client application is, in essence, lying to the database about the type of data it's passing in. In all probability, you really have Big5 encoded data. So long as the retrieving application expects to be getting that same encoding (Big5), and doesn't bother to ask the client what encoding it's actually getting back, everything will appear to work. You're pulling a fast one on the database, but as long as everyone is in on the lie, everything will work.
    The problem comes, however, when other applications believe the lie that the database is telling. When the OLE DB provider retrieves the data, it knows that it's going to want Unicode data. Since the database claims to be storing ASCII data, the Oracle networking layer will attempt to convert the "ASCII" data to Unicode before handing it to the ASP page. Since the data really isn't ASCII, though, the conversion won't work. The same sort of thing would happen if you used some of the Oracle tools like export & import or if you queried the data from an English Windows system that's set up to handle Unicode data.
    At this point, you have corrupt data in the database. You don't have valid Chinese in the database.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com

  • Is this way of deploying code to customers governerd by SAP liscense?

    SAP Transport System: Using Transports to store our code in a transport. When this transport is released, two files are generated in DIR_TRANS in DATA directory and COFILES directory, where the name contains the number-part of the transport request. As these Files can be imported to any other SAP system of the same release,  so my question is deploying code by providing those transports requests to customers/clients, is this practice considered ok or is it governed by any SAP licenses?
    These transports contain our Custom RFCs and Custom Reports
    Please advice

    I have seen this being done. Not sure about Legality. there are some technicle issues if you want to edit those objects in the target system.
    If you get your product certified by SAP, then you can use ABAP Add on Kit & create ABAP Add ON which can be installed on any SAP system.
    insted of Co & Data files you get one SAR file.

Maybe you are looking for

  • Wildcard Certificate

    I'm trying to find out if its possible to use a wildcard certificate on the Lync Edge server's External Interface.   OR maybe a better question would be if i use the wildcard what will break?  Like I've read the auto configuration will not work, etc.

  • I need a script edited so it will enter the intiger a specified number.

    This is a number generating script created by Michel Lemieux and posted here: http://www.quark.com/service/forums/viewtopic.php?t=4176 I need this script to ask for data that would specify the number of times each number should be added to the file.

  • Fast reply please

    If I pull a report in Power point and click the spreadsheet it will put it in Excel (imbedded file). I should be able to move around the spreadsheet by "clicking" the cell I need to change. When I do this it flashes to Excel (plain sheet). It's ok I

  • N80 Web download location/settings

    After the phone somehow 'lost' a 20mb zip file on the phone memory the other day, i thought i'd better look into the settings to avoid this happening again. Firstly i looked on the n80 user manual pdf, which states the following: ...When you start a

  • Itunes Error : "the application iTunes quite unexpectedly

    Everytime i try to open iTunes i after a few seconds of it trying to open get this error every time : The application iTunes quite unexpectedly. Mac OS X and other applications are not affected Click reopen to open the application again. Click Report