Oraoledb.oracle

This Oracle drives removes the formatting in the stored procedures, functions, triggers, ... (DDL) using .sql files. Everything is displayed on one line, which becomes a problem for maintenance afterwards. The work-around is to use the Oracle ODBC driver or the Microsoft OLEDB Provider (MSDAORA) for Oracle. However We cannot use the Microsoft oledb provider (MSDAORA) due to the fact that this one in not supported by Oracle for the 9i platform.
Can somebody help use out... which specific fix of 9i client fixes this 'formatting' issue

Please post this question on OraOLEDB discussion forum.

Similar Messages

  • OraOLEDB.Oracle generates error when retreiving a table with anydata col

    Hi,
    I use OraOLEDB.Oracle to connect from VB6 to oracle, and ADODB recordsets.
    I have a procedure that returns a table (using a cursor), the table has a column of type sys.anydata.
    I get this error: ROW-00004: Invalid column datatype
    I have to mention that it works excelent for anything that does not contain sys.anydata.
    I use Oracle 9.2.
    Thanks in advance,
    pesq

    I tried your solution, but it didn't work. I get an error (incorrect column number):
    Caused by: java.sql.SQLException: Niepoprawny indeks kolumny
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
    at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterInternal(OracleCallableStatement.java:121)
    at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:283)
    at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:363)
    at (...).Row$1.createCallableStatement(Row.java:82)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:836)
    ... 69 more
    The code is following:
                        String query = "BEGIN insert into movement (doc_number) values ('abc') returning id into :?; END;";
                        OracleCallableStatement cs = (OracleCallableStatement) c.prepareCall(query);
                        cs.registerOutParameter(1, OracleTypes.NUMBER);
                        cs.execute();
                        LOG.debug("result:"+ cs.getInt(1));
    I used Oracle database 10.2.0.1 with jdbc thin driver ojdbc14.jar. Could you point out your configuration?
    Regards,
    Rafal Rusin
    www.mimuw.edu.pl/~rrusin

  • Classic ASP - "ORA-01722: invalid number" using OraOLEDB.Oracle driver

    I am working on doing some maintenance updates to a Classic ASP website, and I need to be able to run an insert/update statement for putting values into a lookup table. I am currently running into an "ORA-01722: invalid number" error when trying to use ADO and bind variables for my insert statement.
    Below is an example of a table that I am having problems with:
    CREATE TABLE "MATMGR"."TEST_SWING_TABLE"
    (     "TABLE1_ID" NUMBER(4,0) NOT NULL ENABLE,
         "TABLE2_ID" NUMBER(4,0) NOT NULL ENABLE,
         CONSTRAINT "TEST_SWING_TABLE_PK" PRIMARY KEY ("TABLE1_ID", "TABLE2_ID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    Here is some snippet code of the basic functionality I am trying to get to work:
    ''START CODE''
    Dim connDb, cmdDoseInsert
    Set connDb = Server.CreateObject("ADODB.Connection")
    connDb.CursorLocation = adUseClient ' Setup to return RecordSet
    connDb.ConnectionString = "Provider=OraOLEDB.Oracle;Data Source={host};User ID={user id};Password={password}"
    connDb.Open()
    Set cmdDoseInsert = Server.CreateObject("ADODB.command")
    Set cmdDoseInsert.ActiveConnection = connDb
    cmdDoseInsert.CommandType = adCmdText
    cmdDoseInsert.NamedParameters = true ' Set the command object to use named parameters
    cmdDoseInsert.Prepared = true
    cmdDoseInsert.CommandTimeout = 0
    cmdDoseInsert.CommandText = "INSERT INTO TEST_SWING_TABLE (TABLE1_ID, TABLE2_ID) VALUES (:P_TABLE1_ID, :P_TABLE2_ID)"
    cmdDoseInsert.Prepared = true
    cmdDoseInsert.Parameters.Append cmdDoseInsert.CreateParameter("P_TABLE1_ID", adNumeric, adParamInput)
    cmdDoseInsert.Parameters.Append cmdDoseInsert.CreateParameter("P_TABLE2_ID", adNumeric, adParamInput)
    '... START: While Looping
         cmdDoseInsert.Parameters(0).Value = {some numeric value}
         cmdDoseInsert.Parameters(1).Value = {some numeric value}
         cmdDoseInsert.Execute
    '... END: Looping
    ''END CODE''
    What I have been able to find out so far is that there is some type of issue with numeric values getting translated right when sending two and retrieving from Oracle in ASP. So, does anyone have any thoughts on how to resolve this as I would like to use parameterized SQL to improve application performance?
    I am connecting to a developmental server running Oracle 9.2

    Ok, in my slightly larger example I found out that for what ever reason my named parameters are not being enforced, and so I had to make sure that the parameters were in the same order as they appeared in the SQL. To be on the save side, I did this when they were added as well as when I was assigning values to them.
    Can anyone tell me if this is an Oracle issue or a ASP issue?

  • The operation could not be performed because OLE DB provider "OraOLEDB.Oracle" for linked server ...

    Our setup is that we have two databases; a SQL Server 2008 database and an Oracle database (11g). I've got the oracle MTS stuff installed and the Oracle MTS Recovery Service is running. I have DTC configured to allow distributed transactions. All access to the Oracle tables takes place via views in the SQL Server database that go against Oracle tables in the linked server.
    (With regard to DTC config: Checked-> Network DTC Access, Allow Remote Clients, Allow Inbound, Allow Outbound, Mutual Authentication (tried all 3 options), Enable XA Transactions and Enable SNA LU 6.2 Transactions. DTC logs in as NT AUTHORITY\NetworkService)
    Our app is an ASP.NET MVC 4.0 app that calls into a number of WCF services to perform database work. Currently the web app and the WCF service share the same app pool (not sure if it's relevant, but just in case...)
    Some of our services are transactional, others are not.
    Each WCF service that is transactional has the following attribute on its interface:
    [ServiceContract(SessionMode=SessionMode.Required)]
    and the following attribute on the method signatures in the interface:
    [TransactionFlow(TransactionFlowOption.Allowed)]
    and the following attribute on every method implementations:
    [OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete = true)]
    In my data access layer, all the transactional methods are set up as follows:
    using (IDbConnection conn = DbTools.GetConnection(_configStr, _connStr))
    using (IDbCommand cmd = DbTools.GetCommand(conn, "SET XACT_ABORT ON"))
    cmd.ExecuteNonQuery();
    using (IDbCommand cmd = DbTools.GetCommand(conn, sql))
    ... Perform actual database work ...
    Services that are transactional call transactional DAL code. The idea was to keep the stuff that needs to be transactional (a few cases) separate from the stuff that doesn't need to be transactional (~95% of the cases).
    There ought not be cases where transactional and non-transactional WCF methods are called from within a transaction (though I haven't verified this and this may be the cause of my problems. I'm not sure, which is part of why I'm asking here.)
    As I mentioned before, in most cases, this all works fine.
    Periodically, and I cannot identify what initiates it, I start getting errors. And once they start, pretty much everything starts failing for a while. Eventually things start working again. Not sure why... This is all in a test environment with a single user.
    Sometimes the error is:
    Unable to start a nested transaction for OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLSERVERNAME". A nested transaction was required because the XACT_ABORT option was set to OFF.
    This message, I'm guessing is happening when I have non-transactional stuff within transactions, as I'm not setting XACT_ABORT in the non-transactional code (that's totally doable, if that will fix my issue).
    Most often, however, the error is this:
    System.Data.SqlClient.SqlException (0x80131904): The operation could not be performed because OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLSERVERNAME" was unable to begin a distributed transaction.
    Now, originally we only had transactions on SQL Server tables and that all worked fine. It wasn't until we added transaction support for some of the Oracle tables that things started failing. I know the Oracle transactions work. And as I said, most of the time, everything is just hunky dorey and then sometimes it starts failing and keeps failing for a while until it decides to stop failing and then it all works again.
    I noticed that our transactions didn't seem to have a DistributedIdentifier set, so I added the EnsureDistributed() method from this blog post: http://www.make-awesome.com/2010/04/forcibly-creating-a-distributed-net-transaction/
    Instead of a hardcoded Guid (which seemed to cause a lot of problems), I have it generating a new Guid for each transaction and that seems to work, but it has not fixed my problem. I'm wondering if the lack of a DistribuedIdentifier is indicative of some other underlying problem. I've never dealt with an environment quite like this before, so I'm not sure what is "normal".
    I've also noticed that the DistributedIdentifier doesn't get passed to WCF. From the client, I have a DistributedIdentifier and a LocalIdentifier in Transaction.Current.TransactionInformation. In the WCF server, however there is only a LocalIdentifier set and it is a different Guid from the client side (which makes sense, but I would have expected the DistributedIdentifier to go across).
    So I changed the wait the code above works and instead, on the WCF side, I call a method that calls Transaction.Current.EnlistDurable() with the DummyEnlistmentNotification class from the link above (though with a unique Guid for each transaction instead of the hardcoded guid in the link). I now havea  DistributedIdentifier on the server-side, but it still doesn't fix the problem.
    It appears that when I'm in the midst of transactions failing, even after I shut down IIS, I'm unable to get the DTC service to shutdown and restart. If I go into Component Services and change the security settings, for example, and hit Apply or OK, after a bit of a wait I get a dialgo that says, "Failed ot restart the MS DTC serivce. Please examine the eventlog for further details."
    In the eventlog I get a series of events:
    1 (from MSDTC): "The MS DTC service is stopping"
    2 (From MSSQL$SQLEXPRESS): "The connection has been lost with Microsoft Distributed Transaction Coordinator (MS DTC). Recovery of any in-doubt distributed transactions
    involving Microsoft Distributed Transaction Coordinator (MS DTC) will begin once the connection is re-established. This is an informational
    message only. No user action is required."
    -- Folowed by these 3 identical messages
    3 (from MSDTC Client 2): 'MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system GCOVA38.'
    4 (from MSDTC Client 2): 'MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system GCOVA38.'
    5 (from MSDTC Client 2): 'MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system GCOVA38.'
    6 (From MSDTC 2): MSDTC started with the following settings: Security Configuration (OFF = 0 and ON = 1):
    Allow Remote Administrator = 0,
    Network Clients = 1,
    Trasaction Manager Communication:
    Allow Inbound Transactions = 1,
    Allow Outbound Transactions = 1,
    Transaction Internet Protocol (TIP) = 0,
    Enable XA Transactions = 1,
    Enable SNA LU 6.2 Transactions = 1,
    MSDTC Communications Security = Mutual Authentication Required, Account = NT AUTHORITY\NetworkService,
    Firewall Exclusion Detected = 0
    Transaction Bridge Installed = 0
    Filtering Duplicate Events = 1
    This makes me wonder if there's something maybe holding a transaction open somewhere?

    The statement executed from the sql server. (Installed version sql server 2008 64 bit standard edition SP1 and oracle 11g 64 bit client), DTS enabled
    Below is the actual sql statement issued
    SET XACT_ABORT ON
    BEGIN TRAN
    insert into XXX..EUINTGR.UPLOAD_LWP ([ALTID]
              ,[GRANT_FROM],[GRANT_TO],[NO_OF_DAYS],[LEAVENAME],[LEAVEREASON],[FROMHALFTAG]
              ,[TOHALFTAG] ,[UNIT_USER],[UPLOAD_REF_NO],[STATUS],[LOGINID],[AVAILTYPE],[LV_REV_ENTRY])
              values('IS2755','2010-06-01',
    '2010-06-01','.5',     'LWOP'     ,'PERSONAL'     ,'F',     'F',     'EUINTGR',
    '20101',1,1,0,'ENTRY')
    rollback TRAN
    OLE DB provider "ORAOLEDB.ORACLE" for linked server "XXX" returned message "New transaction cannot enlist in the specified transaction coordinator. ".
    Msg 7391, Level 16, State 2, Line 3
    The operation could not be performed because OLE DB provider "ORAOLEDB.ORACLE" for linked server "XXX" was unable to begin a distributed transaction.
    Able to execute the above statement successfully without using transaction.We need to run the statement with transaction.

  • Ms sql server linked server with OraOLEDB.Oracle provider session handling

    Hi everyone!!
    Here's my situation:
    I have a MS SQL Server 2008 R2 with a linked server to Oracle via OraOLEDB.Oracle provider.
    I use a .net application to open a connection to my sql-server, execute a select that collects data through the linked-server-connection from the oracle database and after that I close to connection to the sql.
    It does work so far,
    but when I start my application, exit it proberly and start it again it seems that i get the same session as before (which is for some reasons very bad).
    Is that the right/normal behavior?
    Is there any way to avoid that?!
    How does the OraOLEDB.Oracle provider handle the sessions if used in/as a linked server?
    thanks and greetings,
    exoc
    Edited by: 944414 on Jul 4, 2012 5:43 AM

    Hii Rouann,
    Does the error occur when you call the stored procedure from SSIS package and map SSIS variables to the parameters in the stored procedure? Can you run the store procedure from SSMS properly? If you can run the stored procedure from SSMS, the issue seems
    to occur due to the date format mismatch between the SSIS variables and the parameters in the stored procedure.
    If you cannot run the stored procedure from SSMS as well, the issue should occur due to the incorrect data conversion within the store procedure itself as Tom mentioned.
    Regards,
    Mike Yin
    TechNet Community Support

  • Calling stored procedure from VB using OraOLEDB.Oracle

    I have a simple stored procedure with two parameters:
    PROCEDURE Test1(
         pOutRecords OUT tCursorRef,
         pIdNumber IN NUMBER);
    where tCursorRef is REF CURSOR.
    (This procedure is part of a package with REF CURSOR declared in there)
    And I have two database schemas: AppOwner and AppUser.
    The above stored procedure is owned by AppOwner, but I have to execute this stored procedure from AppUser schema. I have created a private synonym and granted the neccessary privileges for AppUser schema to execute the package in the AppUser schema.
    When I ran the above procedure from VB using ADO and OraOLEDB.Oracle.1 driver, I got the following error when connecting to the AppUser schema:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'TEST1'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    but when I was connecting to the AppOwner schema, everything is running correctly without errors.
    Also, when I switch to the microsoft MSDAORA.1 driver, I can execute the above procedure without any problems even when connecting to the AppUser schema.
    I got this error only when I am trying to execute a stored procedure with an output parameter. All other procedures with only input parameters have no problems at all.
    Do you know the reason for that? Thanks!

    This forum is meant for discussions about OTN content/site and services.
    Questions about Oracle products and technologies will NOT be answered in this forum. Please post your product or technology related questions in the appropriate product or technology forums, which are monitored by Oracle product managers.
    Product forums:
    http://forums.oracle.com/forums/index.jsp?cat=9
    Technology forums:
    http://forums.oracle.com/forums/index.jsp?cat=10

  • The OraOledb.Oracle is not registered on the local machine.

    Hi Everyone,
    I am having Windows XP operating system with Service pack 2 on my computer. I also using Microsoft.Net 2003 & Oracle 9.x for creating a client-server Application. I installed the Oracle provider from OraWin9204.exe which i was downloaded from the Oracle's site. But I am getting the above mentioned problem "The OraOledb.Oracle is not registered on the local machine", while i m executing the open method of the Connection object of ADO.NET. I also checked the permission on ora92 (ORACLE HOME DIRECTORY) folder and gave full control to my username. But the problem remains same.
    Can anybody have any idea? Please help me on [email protected]
    Thanx
    Rahul Ratnaker

    make manual registration of following file.
    [oracle_Home]\ora92\bin\OraOLEDB.dll
    Enjoy
    Rahul Ratnaker

  • 'OraOLEDB.Oracle' provider is not registered - ODAC 11.1.0.6.10 Beta2

    Hello,
    I have installed the ODAC 11.1.0.6.10 Beta2 and when working with ASPX pages that use OraOleDB, it raises the following error:
    Additional information: The 'OraOLEDB.Oracle' provider is not registered on the local machine.
    Do I have to do something else to set the OraOleDB registered? during the installation I selected to install all the components of the Odac (except the MTS service). This app was working fine whith a previos previous intallation of the ODAC 10.2.02.20. (to try the new version, I uninstalled the previous version)
    Thanks.

    Hello Buddie, how you doing?
    I just solved my problem.
    Verifying which DLL were missing through OraOleDB.dll, using the tool "Dependency Walker", I downloaded and put them into the respective directories. I'm going to show you.
    Must be aware you needn't overwrite any DLL.
    In my scenario, having Oracle Client 8.1.7.0, the missing dll are following below:
    %ORACLE_HOME%\bin :
    - OraOLEDButl.dll
    - OraOLEDBrst.dll
    - OraOLEDBgmr.dll
    - OraOLEDBpus.dll
    - OraOLEDBus.dll
    %WINDIR%\system32\ :
    - DWMAPI.dll
    - WINHTTP.dll
    - GDIPLUS.dll
    Just make sure the OraOleDB.dll registering is complain to the tree DLL dependencies.
    I hope it can help you.
    Igor Monteiro.

  • OraOLEDB.Oracle Provider Not Found- Windows 7 64 bit Excel 2010 32-bit Help

    Currently, I have an excel 2010 application that users on Windows XP 32 bit are using to connect to an Oracle 32-bit database and extract data back into Excel. Each time they open the Excel file, the VBA code automatically creates a new connection using Provider =ORA.OLEDB.Oracle Provider. All users using the Excel file have installed Oracle 9.2.1 run-time client on their machine. All of that works well currently for over 100+ users on Windows XP 32-bit
    Starting very shortly our company is moving to Windows 7 64-bit. We acquired a test PC with Windows 7 64-bit and Excel 2010 32-bit. We tried to install Oracle 9.0.2 run-time client but we couldn't connect to the database ( even with Sql Plus). We therefore downloaded Oracle 10g 10.2.04 Run-time client. With this installed, we were able to connect to via SQL Plus to the database. However, using the same Excel file and the following same VBA code.
    Set cn = New ADODB.Connection
    cn.Open ThisWorkbook.getDBCon()
    Public Function getDBCon()
    getDBCon = "Provider=OraOLEDB.Oracle;" & _
    "Data Source=MyOracleDB;" & _
    "User Id=" & getDBUser() & ";Password=" & getDBPss()
    End Function
    I get a "Provider Not Found error". The VBA code and file work perfect in XP 32-bit. It seems going over to Windows 64-bit has caused issues with the file's macro. I am looking for help assessing if I have more of an Oracle Client issue or a Microsoft ADO issue. Any input would be greatly appreciated. Thank You.

    @damorgan
    Yea agreed with Excel to Oracle comment. This is due to issues with global implementation of an ERP system and the disconnets between IT and Business. Therefore the business intelligence tables in oracle are most easily pulled and acted on by novice PC users via Excel. In the business, Excel is the standard tool novice non-IT people feel comfortable in to share and act on data. Most of these users have no IT knowledge whatsoever, so we create buttons and filters for them to query and then massage in Excel as they see fit.
    Having said that, still wondering if it's a ADO or Oracle Client issue. This is something beyond my knowledge. I wouldn't imagine it's the Visual Basic issue since this same file works in Windows XP. I am not in the position to just scrap Excel as the business relies on this in production and I am the only support. What could 64 bit vs 32 bit differences be having here? Thank You.

  • Cannot get data of the row from OLE DB provider "OraOLEDB.Oracle" for linked server

    I have created a stored procedure in SQL Server for a report that uses parameters.  In the report I am linking an Oracle table.  I use a subquery like this to query the Oracle table:  (select * from openquery(oracle_linked_server, 'select
    partno, description from oracletable')).  If I run the subquery it works fine every time.  The linked server uses an oracle account which has access to the oracle table.  When I first created the Stored Procedure it worked fine for me.  When
    I test the report, it worked fine.  Then I asked another user to test it and it broke with the below error message.  
    OLE DB provider "OraOLEDB.Oracle" for linked server "XXXX_ORACLE" returned message "ORA-01403: no data found".
    Msg 7346, Level 16, State 2, Procedure usp_report_XXXXXX, Line 15
    Cannot get the data of the row from the OLE DB provider "OraOLEDB.Oracle" for linked server "XXXX_ORACLE".
    Now when I try the report or the stored procedure, I get the same error.  I tested the oracle subquery in the stored procedure and it still works.  The report uses a service account to execute the stored procedure.
    I am using SQL Server 2012 Developer Edition 64 bit (11.0.5058) Management Studio to develop the stored procedure.  The SQL Server I am accessing and running the stored procedure is SQL Server 2008R2 Developer Edition 64bit (10.50.2550).  The user
    that tested the report for me has SQL Server 2008R2 but that shouldn't matter since he is running the report in Internet Explorer.
    What is changing that it works for a while and then stops?
    Fred
    Fred Schmid

    I found the answer.  It was in the query.  I put the TRIM statement on the part# field in the Oracle subquery and took the LTRIM function out of the ON clause that joined my SQL Server table with the Oracle linked server table.  Now everything
    works.  The query looks like this:
    SQL_Server_Table sst
    LEFT OUTER JOIN
    (SELECT * FROM OPENQUERY(OracleLinkedServer, 'SELECT TRIM(partNo) AS partNo, partDesc FROM OracleTable')) ols
    ON sst.partNo = ols.partNo
    Thanks for pointing me in the right direction.
    Fred Schmid

  • OraOLEDB.Oracle versus msdaora provider for adParamInputOutput

    I'm currently using Microsoft OLE DB for Oracle provided with MDAC2.8 to execute stored procedures in an ASP page. My vbscript procedure contains an adParamInputOutput parameter (see code below - prm pio_session_id). Everything works fine. I pass a value to my SP and get a new value in return. The parameter is declared as in out in my oracle stored procedure
    But as soon as I want to use Oracle Provider for OLE DB (9.2.0.4), I get the following error:
    OraOLEDB error '80040e14'
    ORA-06502: PL/SQL: numeric or value error ORA-06512: at line 1.
    When I set the prm direction to adParamOutput, everything goes well !!.
    Any idea why this behaviour ?
    My environment is: Windows server 2003 with IIS6.0 and Oracle 9.2.0.4.
    Code:
    dim objConnection
    dim objCommand
    dim connectstring
    'Microsoft driver
    connectstring = "Provider=msdaora;Persist Security Info=true;User ID=userid;Password=pwd;Data Source=mydatasource"
    'Oracle driver
    connectstring = "Provider=OraOLEDB.Oracle;Persist Security Info=true;User ID=userid;Password=pwd;Data Source=mydatasource"
    set ObjConnection = Server.CreateObject("ADODB.Connection")
    ObjConnection.ConnectionString = connectstring
    ObjConnection.CursorLocation = adUseClient
    ObjConnection.ConnectionTimeout = 30
    ObjConnection.Errors.Clear
    ObjConnection.Open     
    Set objCommand = Server.CreateObject("ADODB.Command")
    objCommand.ActiveConnection = objConnection
    objCommand.CommandType = adCmdStoredProc
    objCommand.CommandText = "outage$reporting.processReporting"
    objCommand.Parameters.Append objCommand.CreateParameter ("RETURN_VALUE", adInteger, adParamReturnValue)
    objCommand.Parameters.Append objCommand.CreateParameter ("@user", adVarChar, adParamInput, 6, p_user)
    objCommand.Parameters.Append objCommand.CreateParameter ("@report_type", adInteger, adParamInput, , p_report_type)
    objCommand.Parameters.Append objCommand.CreateParameter ("@week_start", adVarChar, adParamInput, 10, p_week_start)
    objCommand.Parameters.Append objCommand.CreateParameter ("@week_end", adVarChar, adParamInput, 10, p_week_end)
    objCommand.Parameters.Append objCommand.CreateParameter ("@lvl", adInteger, adParamInput, , p_lvl)
    objCommand.Parameters.Append objCommand.CreateParameter ("@loc", adInteger, adParamInput, , p_loc)
    objCommand.Parameters.Append objCommand.CreateParameter ("@agree_type", adInteger, adParamInput, , p_agree_type)
    objCommand.Parameters.Append objCommand.CreateParameter ("@edit_seq", adInteger, adParamInput, , p_edit_seq)
    objCommand.Parameters.Append objCommand.CreateParameter ("@session_id", adInteger, adParamInputOutput, , pio_session_id)
    objCommand.Parameters.Append objCommand.CreateParameter ("@reviewed_data", adInteger, adParamOutput, , po_reviewed_data)
    objCommand.Parameters.Append objCommand.CreateParameter ("@err_msg", adVarChar, adParamOutput, 4000)
    objCommand.Execute, , adExecuteNoRecords

    did you get the solution for the above. If yes plz. let me know the problem what it is? As i am facing the same problem.

  • Linked Server :: OLE DB provider "OraOLEDB.Oracle" for linked server "ABC" returned message "New transaction cannot enlist in the specified transaction coordinator. ".

    Hello All,
    As mentioned in title, i am stuck up with that articular error from last three days,
    i have following scenario, my SQL server 2008, my oracle 10g are on both same machine with OS Windows Server 2008.
    the following error generated on my management studio when i execute my procedure written in my SQL server. Following is original source code snippet after error massage.
    OLE DB provider "OraOLEDB.Oracle" for linked server "ORCL" returned message "New transaction cannot enlist in the specified transaction coordinator. ".
    Msg 50000, Level 16, State 2, Procedure PROC_MIGRATE_MST_FRM_ORA_SQLSERVER, Line 43
    The operation could not be performed because OLE DB provider "OraOLEDB.Oracle" for linked server "ORCL" was unable to begin a distributed transaction.
    BEGIN TRY
    -- MIGRATION OF PR_COMPANY_MH START
    BEGIN TRANSACTION T1
    PRINT 'mILAN NNNNNNNNN 11'
    INSERT INTO PROD.PR_COMPANY_MH
    SELECT * FROM OPENQUERY(ORCL, 'SELECT * FROM PR_COMPANY_MH WHERE SQL_FLG = ''N'' ')
    PRINT 'mILAN NNNNNNNNN 12'
    UPDATE OPENQUERY(ORCL, 'SELECT SQL_FLG FROM PR_COMPANY_MH WHERE SQL_FLG = ''N''')
    SET SQL_FLG = 'Y'
    --EXECUTE ('UPDATE PROD.PR_COMPANY_MH SET SQL_FLG = ''Y'' ') AT [ORCL]
    PRINT 'mILAN NNNNNNNNN 13'
    COMMIT TRANSACTION T1
    -- MIGRATION OF PR_COMPANY_MH END
    END TRY
    BEGIN CATCH
    PRINT 'mILAN NNNNNNNNN 14'
    ROLLBACK TRANSACTION T1
    PRINT 'mILAN NNNNNNNNN 15'
    SELECT
    @ErrorNumber = ERROR_NUMBER(),
    @ErrorSeverity = ERROR_SEVERITY(),
    @ErrorState = ERROR_STATE(),
    @ErrorLine = ERROR_LINE(),
    @ErrorProcedure = ISNULL(ERROR_PROCEDURE(), '-');
    PRINT 'mILAN NNNNNNNNN 16'
    SELECT @ErrorMessage = ERROR_MESSAGE();
    RAISERROR (@ErrorMessage, @ErrorSeverity, @ErrorState, @ErrorNumber, @ErrorProcedure)
    PRINT 'mILAN NNNNNNNNN 17'
    END CATCH
    this perticular part is raising that error, and i had tried every configuartion on my local machine related to MS DTC.
    When i remove my transaction code, its work just fine no exception raise, but when i use then i.e. BEGIN TRAN, COMMITE TRAN, AND ROLLBACK TRAN. its giving me error, other wise its fine.
    Please Help or disscus or suggest why my transaction base code is not woking????
    thanks in advance.
    Regards,
    Milan

    Sorry again, I am new on any kind of forum, so i am learning now, following is the error massage generated by SQL Server. and its not
    an architecture problem, i had just included my complete architecture to be more informative while asking for the solution or suggestion. My real problem is T-SQL, i think and its related to Distributed queries raise in SQL Server in Oracle Link Server.
    OLE DB provider "OraOLEDB.Oracle"
    for linked server "ORCL" returned message "New transaction cannot enlist in the specified transaction coordinator. ".
    Msg 50000, Level 16, State 2, Procedure PROC_MIGRATE_MST_FRM_ORA_SQLSERVER,
    Line 43
    The operation could not be performed because OLE
    DB provider "OraOLEDB.Oracle" for linked server "ORCL" was unable to begin a distributed transaction.

  • OraOLEDB.Oracle provider create connections (sessions).

    Hi all,
         I have Link server between oracle and MSSQL with following versions,
    Oracle – 10G
    MSSQL – SQL Server 2008 R2
    Link server provider=N'OraOLEDB.Oracle'
    After created link server then without actually doing any queries or anything oracle side create 100 or 120 connections (sessions) from this SQL server to oracle server. Any idea on this?
    Thanks
    Tharindu Dhaneenja

    Alright, so it's not that. It's possible the OLE DB provider isn't installed, depending on how you installed the Oracle client.
    This link has a little windows script that can list all the known OLE DB providers. That should tell you if its installed and SSIS isn't finding it, or if it's not installed at all. http://www.motobit.com/help/regedit/sa117.htm

  • OraOLEDB.Oracle Provider

    Hi. I have tried posting this inquiry in SQL forums but without a response so far so I am hoping someone here can help me out. Forgive me if this post isn't appropriate for this forum.
    I am trying to add a linked Oracle Server to our MSSQL 2005 server but am missing the OraOLEDB.Oracle Provider under Server Objects -> Linked Servers -> Providers in the Object Explorer. (Not really relevant in an Oracle Forum I suppose)
    Anyway, I have also considered using a simple OPENROWSET command to attach to the Oracle Instance but unfortunately one of the parameters required is the name of the Provider for the connection which puts me back at square one for resolution.
    I seemed to have recalled some time back having downloaded the Oracle Driver for MSSQL but I can't for the life of me find the location I got it from before or if it is still available.
    Does anyone know where I can get the driver or where I can get explicit instructions for installing the driver on SQL Server??? I don't want to install the entire Oracle Client just to acquire the 1 driver I need to accomplish my task.
    ANY input or suggestions at all would be greatly appreciated.

    OraOLEDB.Oracle driver is available in the Oracle client installation (you can either choose an administrator option or custom option during install).
    Get hold of a Oracle client setup of version of your choice from http://www.oracle.com/technology/software/index.html

  • The 'ORAOLEDB.ORACLE' provider is not registered on the local machine.

    Sir,
    I am having my oracle 11g 64 bit database in RHEL linux 64 bit server. My Visual Studio .Net 2008 64 bit application is running in server having Windows server 2008 64 bit OS and oracle 11.2.0.2.0 client 64 bit.
    When I try to connect the database through the oracle client its working fine and I am able to connect through the development mode of visual studio 2008. But when I try to run in the IIS the following error is coming:
    The 'ORAOLEDB.ORACLE' provider is not registered on the local machine.
    Kindly help me
    Thanks in advance
    n v r

    This is not an Oracle database problem, never mind a database server language (PL/SQL or SQL) problem.
    The problem you've described is with a Microsoft product, Visual Studio 2008. The server you refer to is Microsoft IIS. The error you list is an error with a Microsoft proprietary technology called OLEDB (part of Microsoft's <i>Component Object Model</i>).
    Just where does Oracle PL/SQL and SQL languages, the subject matter of this forum, feature in your problem with Microsoft proprietary technology?

  • OraOLEDB.Oracle GetRecordSet() throw "ORA-00907: missing right parenthesis"

    Hi,
    I am unfortunately working on an old VB6 app that is constructing a huge (11902 characters) ad-hoc SQL statement which is then passed to the GetRecordSet() method of my DBConnection. The app is using the OraOLEDB.Oracle provider. When the GetRecordSet() method is executed, however, I get the following error:
    ORA-00907: missing right parenthesis
    Now I have grabbed the contents of the string that is passed in to the GetRecordSet() function and have thoroughly examined it and there are no missing parens. Additionally, I am able to execute the select statement in Oracle SQL Developer as well as SQL*Plus, withou difficulty. So I am sure that the string is syntactically correct.
    I am beginning to suspect that something fishy is happening in the provider - perhaps the string is too long and it is getting truncated somewhere?
    Can anyone out there help me out?
    Thanks, Steve

    maybe the conversion you are trying to do is not valid especially in the first one into binary(1).
    check out the conversion table for CAST operator in the SQL REFERENCE of the documentation.

Maybe you are looking for

  • How many memory slots on mac mini 2010?

    I have a Mac Mini 2.4 (mid-2010) I bought used with 4GB of RAM. The previous owner upgraded from the standard 2GB. I have the chance to get 2X more 2GB cards that are compatible. I am curious if I can do that. Are there 4 memory card slots? Or would

  • Quicktime will not play in safari

    When I try to play quicktime video from a website in Safari, I get the message plugin failure.  I have checked that the quicktime plugin is installed, restarted my computer. Any suggestions?

  • Is it possible to hear yourself on the mic in real time?

    i know some recording devices that do this. when you make a noise into the mic, the sound goes right into your headphones. i figure it would be useful if i could do that, but i'm not sure if i can on garageband. if i can, please let me know. thanks a

  • Hi, I have a Beolit12, which stutters using airplay with my Imac

    Hi Everyone I hope some can please help I have a Bang & Olufsen Beolit 12, which plays perfectly using Airplay from Ipad and Iphone 5, but stutters every 30 seconds or so from my Imac Any ideas please!!!!!!

  • Can't Input East Asian Language Into Page

    Hello all, I'm using an older version of Dreamweaver (4) but it appears to have the capability to input East Asian (Japanese) language into the page. I have my computer set up to read and write in Japanese. I have Dreamweaver set up to allow asian ch