ORA-02070: Error when updating a SQL Server table thru an Oracle View

I have a SQL Server table TIMESHEET which contains a number of VARCHAR and NUMERIC columns plus a DATETIME column.
Only the DATETIME column is giving me trouble.
On the ORACLE side I have a view which selects from the SQL Server table but in order to get the SELECT to work, I had to either put a CAST or TO_DATE function call around the DATETIME field
Below is the relevant part of the 2 view definitions I have tried
create view TIMESHEET as
SELECT
"TsKeySeq" as TS_KEY_SEQ,
"EmployeeNo" as EMPLOYEE_NO,
CAST("PeriodEnding" AS DATE) as PERIOD_ENDING,
. . . (more columns - not relevant)
FROM [email protected];
An update to the view generates this message
ORA-02070: database OLEMSQLPSANTDAS6 does not support CAST in this context
create view TIMESHEET as
SELECT
"TsKeySeq" as TS_KEY_SEQ,
"EmployeeNo" as EMPLOYEE_NO,
TO_DATE("PeriodEnding") as PERIOD_ENDING,
. . . (more columns - not relevant)
FROM [email protected];
An update to the view generates this message
ORA-02070: database OLEMSQLPSANTDAS6 does not support TO_DATE in this context
If I don't include either the TO_DATE() or CAST() then I get
Select Error: ORA-28527: Heterogeneous Services datatype mapping error
ORA-02063:preceding line from OLEMSQLSANTDAS6
Does anyone have any idea how to update a SQL Server DATETIME column thru an ORACLE view?

You can't cast accross heterogenious databases and there is no need to. HSODBC treats SQL Server DATETIME column as DATE. For example, I have SQL Server table:
CREATE TABLE [Ops].[T_JobType](
     [JobType] [varchar](50) NOT NULL,
     [JobDesc] [varchar](200) NULL,
     [InsertDt] [datetime] NOT NULL CONSTRAINT [InsertDt_00000006]  DEFAULT (getdate()),
     [InsertBy] [varchar](128) NOT NULL CONSTRAINT [InsertBy_00000006]  DEFAULT (user_name()),
     [LastUpdated] [datetime] NOT NULL CONSTRAINT [LastUpdated_00000006]  DEFAULT (getdate()),
     [LastUpdatedBy] [varchar](128) NOT NULL CONSTRAINT [LastUpdatedBy_00000006]  DEFAULT (user_name()),
CONSTRAINT [T_JobType_PK] PRIMARY KEY CLUSTERED
     [JobType] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 100) ON [DATA01FG]
) ON [DATA01FG]Now on Oracle side I do:
SQL> desc "Ops"."T_JobType"@pbods
Name                                      Null?    Type
JobType                                   NOT NULL VARCHAR2(50)
JobDesc                                            VARCHAR2(200)
InsertDt                                  NOT NULL DATE
InsertBy                                  NOT NULL VARCHAR2(128)
LastUpdated                               NOT NULL DATE
LastUpdatedBy                             NOT NULL VARCHAR2(128)
SQL> select "InsertDt" from "Ops"."T_JobType"@pbods;
InsertDt
18-AUG-08
09-OCT-08
22-OCT-09
18-AUG-08
19-NOV-08
SQL> SY.

Similar Messages

  • ORA-02070: Error when updating an informix table through orcl view using HS

    Hello!
    I faced the following problem:
    I have a table in informix, and i want to reach this table through Oracle infromix gateway (Heterogenous Services). I succeeded to set up the gateway, and I created an Oracle view for my table in informix. It is working fine, I can query and modify data, except the following case: If I run the query (from SQL Developer) "UPDATE oracle_view SET float_field = '1.1' WHERE record_id = 1 AND float_field = '1.2'", I receive the following error:
    "SQL Error: ORA-02070: database database_link does not support TO_NUMBER in this context.
    *Cause: The remote database does not support the named capability in the context in which it is used.
    *Action: Simplify the SQL statement."
    If I modify the query as "UPDATE oracle_view SET float_field = '1.1' WHERE record_id = 1", it is running without any error messages. I found, that to_number is not supported by Oracle HS gateway, but I do not use explicitly the to_number Oracle function! But I must use the above version, because of concurrent users.
    Does anybody have an idea how I could get rid of the implicit call of to_number?
    Thanks, Gyula

    user11229789 wrote:
    Yes, float_field is a numeric-type field, which is a 8-byte FLOAT in informix. This field gets automatically FLOAT datatype in the Oracle view, and can not be modified. record_id is some integer unique id field.Well, as the float_field is numeric it makes sense that the SQL issued from Oracle treats it as numeric, so leaving out the quotes can only be the correct thing to do. If you introduce quotes then you are providing strings and the HS is having to do a convertion to numeric (hence where the TO_NUMBER would have been coming into the initial issue.
    If I try the update query without '-s you suggested, like this: "UPDATE oracle_view SET float_field = 1.1 WHERE record_id = 1 AND float_field = 1.2" , i receive the following error message:
    SQL Error: ORA-28534: "Heterogeneous Services preprocessing error"
    *Cause:    One of the things that the Heterogeneous Services can do is
    to preprocess parts of SQL statements that contain implicit
    coercions or calls to explicit coercion functions like TO_CHAR
    TO_NUMBER or TO_DATE. For example, it could convert a call to
    TO_DATE to a bind variable, pre-evaluate the TO_DATE function
    call and pass the resulting value to the non-Oracle system as
    the bind value. This behavior is controlled by some coercion
    related capabilities. If the capabilities are set incorrectly,
    the HS could encounter errors when it attempts to do the
    preprocessing. If it does then this error will be signaled.
    *Action:   The capability table settings are controlled by the agent
    vendor and can be modified by the DBA. Contact your DBA and
    agent vendor and get the correct set of capabilities installed.I can't see why the HS would be trying to do any coercion of anything except to perhaps convert the parts of the where clause to bind variables and pass the actual values in. Does it work ok without the "AND float_field = 1.2" ? If so, I'm guessing there's some configuration issue of the HS required to get it to deal with the floats.... perhaps in the capability settings as the error message "action" indicates.

  • I get one or the other error when i install SQL server 2012 SP1 in my Lab server

    I get multiple errors when i install SQL server 2012 SP1 In my lab server.
    Not sure why i keep getting different errors all the time when i install SQL server 2012 & 2012 SP1.
    Below are error codes, screen shots and also a log of the error.
    1.  Eror code 0X84B40000
    Also dint understand any thing from this article related to the above error 
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/5b6cc928-0db8-4fe4-a5d3-21672225f0ca/i-get-error-code-0x84b40000-when-trying-to-install-sql-server-mgmt-studio-to-an-existing-sql?forum=sqlexpress
    2. Eror code 0x851A001A
    Can any one plz help as i always get one or the other error.
    ====================================
    Screen shot: 
    Please note the below screen shot has given the error code 0x851A001A which is same in case of failure of all the other features which have failed during this installation. Hence i have uploaded only one screen shot.
    2. Log file content.
    =================================
    Overall summary:
      Final result:                  Failed: see details below
      Exit code (Decimal):           -2061893606
      Start time:                    2014-05-04 21:15:35
      End time:                      2014-05-04 21:51:45
      Requested action:              Install
    Setup completed with required actions for features.
    Troubleshooting information for those features:
      Next step for RS:              Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Next step for SQLEngine:       Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Next step for FullText:        Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Next step for Replication:     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
    Machine Properties:
      Machine name:                  SERVER1
      Machine processor count:       2
      OS version:                    Windows Server 2008 R2
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                    Feature                
                     Language             Edition              Version         Clustered 
      SQL Server 2012      MSSQLSERVER          MSSQL11.MSSQLSERVER            Database Engine Services                 1033      
              Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012      MSSQLSERVER          MSSQL11.MSSQLSERVER            SQL Server Replication                   1033      
              Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012      MSSQLSERVER          MSSQL11.MSSQLSERVER            Full-Text and Semantic Extractions for Search 1033                
    Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012      MSSQLSERVER          MSSQL11.MSSQLSERVER            Data Quality Services                    1033    
                Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012      MSSQLSERVER          MSAS11.MSSQLSERVER             Analysis Services                        1033  
                  Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012      MSSQLSERVER          MSRS11.MSSQLSERVER             Reporting Services - Native              1033        
            Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Management Tools - Basic  
                  1033                 Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Management Tools - Complete  
               1033                 Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Client Tools Connectivity  
                 1033                 Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Client Tools Backwards Compatibility
        1033                 Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Client Tools SDK      
                      1033                 Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Integration Services    
                    1033                 Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Reporting Services - SharePoint
                                                       11.0.2100.60    No        
    Package properties:
      Description:                   Microsoft SQL Server 2012 Service Pack 1
      ProductName:                   SQL Server 2012
      Type:                          RTM
      Version:                       11
      SPLevel:                       0
      Installation location:         F:\x64\setup\
      Installation edition:          Enterprise
    Product Update Status:
      None discovered.
    User Input Settings:
      ACTION:                        Install
      ADDCURRENTUSERASSQLADMIN:      false
      AGTSVCACCOUNT:                 ms\sql
      AGTSVCPASSWORD:                *****
      AGTSVCSTARTUPTYPE:             Automatic
      ASBACKUPDIR:                   Backup
      ASCOLLATION:                   Latin1_General_CI_AS
      ASCONFIGDIR:                   Config
      ASDATADIR:                     Data
      ASLOGDIR:                      Log
      ASPROVIDERMSOLAP:              1
      ASSERVERMODE:                  MULTIDIMENSIONAL
      ASSVCACCOUNT:                  <empty>
      ASSVCPASSWORD:                 <empty>
      ASSVCSTARTUPTYPE:              Automatic
      ASSYSADMINACCOUNTS:            <empty>
      ASTEMPDIR:                     Temp
      BROWSERSVCSTARTUPTYPE:         Disabled
      CLTCTLRNAME:                   <empty>
      CLTRESULTDIR:                  <empty>
      CLTSTARTUPTYPE:                0
      CLTSVCACCOUNT:                 <empty>
      CLTSVCPASSWORD:                <empty>
      CLTWORKINGDIR:                 <empty>
      COMMFABRICENCRYPTION:          0
      COMMFABRICNETWORKLEVEL:        0
      COMMFABRICPORT:                0
      CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140504_204851\ConfigurationFile.ini
      CTLRSTARTUPTYPE:               0
      CTLRSVCACCOUNT:                <empty>
      CTLRSVCPASSWORD:               <empty>
      CTLRUSERS:                     <empty>
      ENABLERANU:                    false
      ENU:                           true
      ERRORREPORTING:                true
      FEATURES:                      SQLENGINE, REPLICATION, FULLTEXT, RS
      FILESTREAMLEVEL:               0
      FILESTREAMSHARENAME:           <empty>
      FTSVCACCOUNT:                  NT Service\MSSQLFDLauncher$SCOM
      FTSVCPASSWORD:                 <empty>
      HELP:                          false
      IACCEPTSQLSERVERLICENSETERMS:  true
      INDICATEPROGRESS:              false
      INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
      INSTALLSHAREDWOWDIR:           C:\Program Files (x86)\Microsoft SQL Server\
      INSTALLSQLDATADIR:             <empty>
      INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
      INSTANCEID:                    SCOM
      INSTANCENAME:                  SCOM
      ISSVCACCOUNT:                  NT AUTHORITY\Network Service
      ISSVCPASSWORD:                 <empty>
      ISSVCSTARTUPTYPE:              Automatic
      MATRIXCMBRICKCOMMPORT:         0
      MATRIXCMSERVERNAME:            <empty>
      MATRIXNAME:                    <empty>
      NPENABLED:                     0
      PID:                           *****
      QUIET:                         false
      QUIETSIMPLE:                   false
      ROLE:                          <empty>
      RSINSTALLMODE:                 DefaultNativeMode
      RSSHPINSTALLMODE:              DefaultSharePointMode
      RSSVCACCOUNT:                  NT Service\ReportServer$SCOM
      RSSVCPASSWORD:                 <empty>
      RSSVCSTARTUPTYPE:              Automatic
      SAPWD:                         <empty>
      SECURITYMODE:                  <empty>
      SQLBACKUPDIR:                  <empty>
      SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
      SQLSVCACCOUNT:                 ms\sql
      SQLSVCPASSWORD:                *****
      SQLSVCSTARTUPTYPE:             Automatic
      SQLSYSADMINACCOUNTS:           MS\Gautam, MS\SCOM Users
      SQLTEMPDBDIR:                  <empty>
      SQLTEMPDBLOGDIR:               <empty>
      SQLUSERDBDIR:                  <empty>
      SQLUSERDBLOGDIR:               <empty>
      SQMREPORTING:                  false
      TCPENABLED:                    1
      UIMODE:                        Normal
      UpdateEnabled:                 true
      UpdateSource:                  MU
      X86:                           false
      Configuration file:            C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140504_204851\ConfigurationFile.ini
    Detailed results:
      Feature:                       Reporting Services - Native
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x851A001A
      Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
      Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred during the setup process of the feature.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x851A001A
      Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
      Feature:                       Full-Text and Semantic Extractions for Search
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x851A001A
      Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
      Feature:                       SQL Server Replication
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x851A001A
      Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
      Feature:                       SQL Browser
      Status:                        Passed
      Feature:                       SQL Writer
      Status:                        Passed
    Rules with failures:
    Global rules:
    Scenario specific rules:
    Rules report file:               C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140504_204851\SystemConfigurationCheck_Report.htm

    Sorry about the error in the path, but you find the files that's the main thing.
    Indeed it is a certificate problem:
    2014-05-04 21:47:43.56 spid12s Error: 17190, Severity: 16, State: 1.
    2014-05-04 21:47:43.56 spid12s Initializing the FallBack certificate failed with error code: 1, state: 20, error number: 0.
    2014-05-04 21:47:43.56 spid12s Unable to initialize SSL encryption because a valid certificate could not be found, and it is not possible to create a self-signed certificate.
    2014-05-04 21:47:43.57 spid12s Error: 17182, Severity: 16, State: 1.
    2014-05-04 21:47:43.57 spid12s TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property.
    2014-05-04 21:47:43.57 spid12s Error: 17182, Severity: 16, State: 1.
    2014-05-04 21:47:43.57 spid12s TDSSNIClient initialization failed with error 0x80092004, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Cannot find object or property.
    2014-05-04 21:47:43.57 spid12s Error: 17826, Severity: 18, State: 3.
    2014-05-04 21:47:43.57 spid12s Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
    2014-05-04 21:47:43.57 spid12s Error: 17120, Severity: 16, State: 1.
    2014-05-04 21:47:43.57 spid12s SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
    I've recall that I've tried to help people with this error before, but I'm sure they were able to sort it out.
    Anyway, this blog post,
    http://blogs.msdn.com/b/sqljourney/archive/2012/10/09/sql-2008-service-fails-to-come-online-with-a-valid-certificate-could-not-be-found-and-it-is-not-possible-to-create-a-self-signed-certificate.aspx
    suggests the issue is a corrupted user profile, and you should try to use a different service account.
    This blog also seems to have a simple solution, but I cannot vouch for that it will work:
    http://www.beejblog.com/2012/02/sql-server-solved-unable-to-initialize.html
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Export data from MS sql server table to an oracle table

    I need to move data from a sql server table to an oracle table and when ever the sql server table is updated it needs to automatically update the oracle table. Is there procedure to do this or do I migrate the data once and set up a trigger on the sql server table to update the oracle table? If the trigger is the answer how do I do that?

    You might want to check out Oracle's heterogeneous services functionality if you haven't done so already. Here are a few links:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/toc.htm
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/majfeat.htm#sthref74
    Also, consulting the Oracle streams manual may be helpful -- particularly Chapter 5.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14228/toc.htm
    Perhaps someone who is more familiar with SQL Server could provide a more helpful answer.

  • Error when upgrading from SQL Server 2005 to SQL Server 2014

    Hello everyone,
    Could you help me, i have an error when i try to upgrade my SQL Server 2005 Enterprise Edition to SQL Server 2014 Enterprise Edition,
    All of prerequisits are available and i dont have a problem,
    before the end of migration process, i have this error: The group name could not be found (0x84BB0001)
    File log:
    Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred during the setup process of the feature.
      Next Step:                     The upgrade process for SQL Server failed. To continue the upgrade process, use the following information to resolve the error. Next, uninstall SQL Server by using this
    command line: setup /q /action=uninstall /instanceid=MSSQLSERVER /features=SQLENGINE,FULLTEXT,REPLICATION. Then, run SQL Server Setup again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x84BB0001
      Error description:             The group name could not be found.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x0AD059E6%400x3FAAA006&EvtType=0x0AD059E6%400x3FAAA006
      Feature:                       Full-Text and Semantic Extractions for Search
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     The upgrade process for SQL Server failed. To continue the upgrade process, use the following information to resolve the error. Next, uninstall SQL Server by using this
    command line: setup /q /action=uninstall /instanceid=MSSQLSERVER /features=SQLENGINE,FULLTEXT,REPLICATION. Then, run SQL Server Setup again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x84BB0001
      Error description:             The group name could not be found.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x0AD059E6%400x3FAAA006&EvtType=0x0AD059E6%400x3FAAA006
      Feature:                       SQL Server Replication
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     The upgrade process for SQL Server failed. To continue the upgrade process, use the following information to resolve the error. Next, uninstall SQL Server by using this
    command line: setup /q /action=uninstall /instanceid=MSSQLSERVER /features=SQLENGINE,FULLTEXT,REPLICATION. Then, run SQL Server Setup again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x84BB0001
      Error description:             The group name could not be found.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x0AD059E6%400x3FAAA006&EvtType=0x0AD059E6%400x3FAAA006
    Best regards,
    Guiga Hafedh

    There are more detailed logs for the various components. The one of interesting is the one for the engine or possibly the one for full-text.
    These logs are extremely verbose, and the errors are rarely crystal clear, but at least give them a try. If you have problems, find a place to upload them (Dropbox, Skrydrive etc), so that we can look.
    The closest at hand is that "group" that cannot be found is an AD group.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • SQL Server table capture using Oracle SQL Developer

    Hello,
    I need to know how to set up the Oracle SQL Developer to captuer SQL Server table with correct field precision. For some reason, all NVARCHAR field precision sizes are the double of the original precision size after capturing the table.
    Example:
    SQL Server table 'A' with the following field:
    name NVARCHAR( 50)
    after table capture becomes:
    name NVARCHAR2(100)
    which is double of the original precision.
    Any feed back or input is greatly appreciated.
    Thank you.
    Message was edited by:
    qa2537

    i'm sorry
    --tsql correction
    merge into md_columns m
    using(
    select md_col.precision as prec, md_col.column_name,md_col.rowid as row_id
    FROM md_schemas md_s
    join md_tables md_tab on md_tab.schema_id_fk = md_s.id
    join md_catalogs md_cat on md_cat.id = md_s.catalog_id_fk
    inner join md_connections con on md_cat.connection_id_fk=con.id
    join md_columns md_col on md_col.table_id_fk = md_tab.id
    where --md_s.created_on = (select max(created_on) from md_catalogs)
    con.name like '%(corr%)'
    and md_col.column_type in ('nchar','nvarchar')
    ) merge_clause on (m.rowid = merge_clause.row_id)
    when matched then update set m.precision = merge_clause.prec/2
    that works, as long as you don't forget to commit like i did....
    hope it helps

  • Error when DBLOGIN into SQL Server

    Hi,
    I'm using Oracle GoldenGate for SQL Server. I successfully created a DNS ODBC connection to SQL Server and named it as HRSQLSRV.
    When I tried to use DBLOGIN command in gg, I got the following:
    E:\ggs>GGSCI
    Oracle GoldenGate Command Interpreter for SQL Server
    Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230
    Windows (optimized), Microsoft SQL Server on Apr 23 2012 06:55:51
    Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
    GGSCI (server5) 1> dblogin sourcedb HRSQLSRV
    Source Context :
      SourceModule            : [ggdb.mssql.util]
      SourceID                : [../gglib/ggdbmssql/mssqlutil.c]
      SourceFunction          : [MSSQLCollation::getProperties]
      SourceLine              : [1818]
    2012-08-29 11:28:28  ERROR   OGG-00868  Fetching error for select operation Data
    base error 0 ([Microsoft][SQL Server Native Client 10.0]Invalid cursor state
    2012-08-29 11:28:28  ERROR   OGG-01668  PROCESS ABENDING.
    E:\ggs>The database is SQL Server 2008 R2 in Windows 2003 32-bit.
    Thanks in advance.

    Finally, I got the solution:
    Control Panel ->Regional and Language Options-> Advanced-> Language for non-Unicode programs-> from the drop list of languages, I selected the English (United States)-> Reboot the box
    I also removed any Keyboard added to Windows other than the US English one.

  • ODBC Error when migrating from SQL Server 2008 to SQL Anywhere 12

    Hello community,
    i have the following requirement:
    I need to migrate a Database with some Demo data into a SQL Anywhere 12 Database. The SQL Anywhere 12 Database is part of the SAP BusinessObjects Enterprise XI 3.1 SP7 installation and came with the same as OEM Product.
    The Environment looks like the following:
    DB1 is a MS SQL Server 2008 R2 64 Bit running on Windows Server 2008 R2 64 Bit.
    DB2 is the SAP BusinessObjects Enterprise XI 3.1 SP7 installation with the shipped SQL Anywhere 12 (12.0.1.3873) Database running on SLES 11.3 64 Bit
    CL1 is my Windows 7 64 Bit Client where Sybase Central is installed in 64 Bit. On CL1 i have a 64 Bit System ODBC Connection connecting to DB1 successfully.
    Basically i followed the following (pretty straight forward) tutorial:
    Migrating a SQL Server Database to SQL Anywhere White Paper-Technical: Mobile Enterprise, Database Management iAnywhere …
    When i want to test the connection from inside Sybase Central (During the migration process) i receive the following error:
    From inside Sybase Central my connection looks as follows:
    And from the ODBC Manager the connection looks as follows:
    Personally i found is strange that the Sybase ODBC Driver Manager drops the error. I would expect that the MS SQL ODBC Driver Manager pops the error it its related to the ODBC DSN to DB1.
    Any ideas?
    Thanks and Regards
    -Seb.

    Hi Sebastian,
    The data from the SQL Server database must be migrated to an existing SQL Anywhere database.  Could you please tell me where this SQL Anywhere database resides and how are you connecting to it?
    The error message is saying that the connection to the SQL Anywhere remote database server is failing, as opposed to the connection to the SQL Server database.

  • JBO-26030 and ORA-00054 error when updating a certain row

    I have a page that saves data when you leave a cell in a table. Everything seems to work fine, but when you get to some cells the JBO-26030 error pops up and then no matter what you do you can't ever save anything on that cell. You can close everything down and reopen and change other cells, but when you go back to that cell the error message always pops up. I think it's mainly happening on the cell that is a drop down with 3 values (P, F, and NT). P is the value and key for the drop down.
    Then when I go into the database through Toad I try to change the value just so see what happens and that's when I get the ORA-00054: resource busy and acquire with NOWAIT specified error. This again only happens when editing that row.
    Any help is appreciated...Thanks!
    Edited by: user10942416 on Aug 6, 2009 6:16 AM

    This error is caused when the block property 'DML returning values' equals YES. This property was introduced as of forms 6. What does it do ? As per the on-line help of Forms, "A database update or insert action may initiate server-side triggers that cause alterations or additional changes in the data. In Release 6, when using an Oracle8 database server, Forms uses the DML Returning clause to immediately bring back any such changes. When this property is set to Yes, Forms will automatically update the client-side version of the data, and the user will not need to re-query the database to obtain the changed values". When this property is switched to yes the generated insert/update statement will contain the 'returning clause' and this clause is causing the error.
    As far as I have tested, the only way at present, to get rid of this error is to set 'DML returing values' to NO. So, not to use this functionality.
    See also:
    http://support.oracle.co.uk/metalink/plsql/ml2_documents.showFrameDocument?p_database_id=NOT&p_id=143395.1
    Please respond if this solution works for you.
    Greets,
    Guido Zeelen

  • Incomplete data or ORA-28528 errors when accesing an Informix Server

    We have configured a dblink to an Informix Server. We are using UnixODBC + Informix CSDK on a RHEL 4 x86_64.
    After running several queries we have seen 3 different situations:
    A. The result of the query is correct.
    B. The result is incomplete. The table may have 24 rows, but the output shows only 13. However, Oracle receives 24 rows, as it's shown at the end of the output.
    C. Error about datatype conversion.
    SQL> select * from "centros"@test_informix2;
    ERROR:
    ORA-28528: Heterogeneous Services datatype conversion error
    ORA-02063: preceding line from TEST_INFORMIX2
    dg4odbc output when performing a select with incomplete results as described in situation B
    Oracle Corporation --- TUESDAY AUG 11 2009 16:12:02.321
    Heterogeneous Agent Release
    11.1.0.6.0
    Oracle Corporation --- TUESDAY AUG 11 2009 16:12:02.321
    Version 11.1.0.6.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "4"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQ
    LStatistics"
    Exiting hgosdip, rc=0
    ORACLE_SID is "test_informix2"
    Product-Info:
    Port Rls/Upd:6/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.1.0.6.0_0006, Instance:test_informix2
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=31
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=31
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2009/08/11-16:12:02
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/lib/libodbc.so"
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLAllocHandle
    symbol_peflctx=0x9893c70d
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLBindCol
    symbol_peflctx=0x9893c873
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLBindParameter
    symbol_peflctx=0x9893d2e4
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLCancel
    symbol_peflctx=0x9893ec84
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLDescribeParam
    symbol_peflctx=0x98949f10
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLDisconnect
    symbol_peflctx=0x9894a5c8
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLEndTran
    symbol_peflctx=0x9894d4d4
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLExecute
    symbol_peflctx=0x9894f17c
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLFetch
    symbol_peflctx=0x9894fd04
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLFreeHandle
    symbol_peflctx=0x98951fc9
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLFreeStmt
    symbol_peflctx=0x98951fec
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLGetData
    symbol_peflctx=0x989541dc
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLGetEnvAttr
    symbol_peflctx=0x98957fa8
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLGetFunctions
    symbol_peflctx=0x989583c4
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLMoreResults
    symbol_peflctx=0x9895ab28
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLNumResultCols
    symbol_peflctx=0x9895bad8
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLParamData
    symbol_peflctx=0x9895bedc
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLPutData
    symbol_peflctx=0x9895e908
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLRowCount
    symbol_peflctx=0x9895ee78
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLSetEnvAttr
    symbol_peflctx=0x98961458
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLSetDescRec
    symbol_peflctx=0x98961230
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLColAttribute
    symbol_peflctx=0x9893f4ec
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLColumns
    symbol_peflctx=0x989416e4
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLConnect
    symbol_peflctx=0x98947014
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLDescribeCol
    symbol_peflctx=0x989494f0
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLDriverConnect
    symbol_peflctx=0x9894b337
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLExecDirect
    symbol_peflctx=0x9894e9e2
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLForeignKeys
    symbol_peflctx=0x98950bdc
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLGetConnectAttr
    symbol_peflctx=0x989524ab
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLGetDiagField
    symbol_peflctx=0x989567f3
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLGetDiagRec
    symbol_peflctx=0x989576e5
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLGetInfo
    symbol_peflctx=0x98959083
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLGetStmtAttr
    symbol_peflctx=0x989593e3
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLGetTypeInfo
    symbol_peflctx=0x9895a548
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLPrepare
    symbol_peflctx=0x9895c9c6
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLPrimaryKeys
    symbol_peflctx=0x9895d13e
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLProcedureColumns
    symbol_peflctx=0x9895d938
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLProcedures
    symbol_peflctx=0x9895e19a
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLSetConnectAttr
    symbol_peflctx=0x9895f1fc
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLSetStmtAttr
    symbol_peflctx=0x989634a8
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLSetDescField
    symbol_peflctx=0x98960e5a
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLStatistics
    symbol_peflctx=0x98965ed6
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Entered hgolofns at 2009/08/11-16:12:02
    libname=/usr/local/lib/libodbc.so, funcname=SQLTables
    symbol_peflctx=0x98967014
    hoaerr:0
    Exiting hgolofns at 2009/08/11-16:12:02
    Exiting hgolofn, rc=0 at 2009/08/11-16:12:02
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    Exiting hgoinit, rc=0 at 2009/08/11-16:12:02
    Entered hgolgon at 2009/08/11-16:12:02
    reco:0, name:informix, tflag:0
    Entered hgosuec at 2009/08/11-16:12:02
    Exiting hgosuec, rc=0 at 2009/08/11-16:12:02
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using informix as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2009/08/11-16:12:02
    HS_FDS_CONNECT_INFO = "test_informix2"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2009/08/11-16:12:02
    dsn:test_informix2, name:informix
    optn:
    ##>Connect Parameters (len=43)<##
    ## DSN=test_informix2;
    #! UID=informix;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2009/08/11-16:12:02
    DriverName:iclis09b.so, DriverVer: 3.50.0000 3.50.U
    DBMS Name:Informix, DBMS Version:07.31.0000 UD5
    Exiting hgocont, rc=0 at 2009/08/11-16:12:02
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 18 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2009/08/11-16:12:02
    Entered hgoulcp at 2009/08/11-16:12:02
    Entered hgowlst at 2009/08/11-16:12:02
    Exiting hgowlst, rc=0 at 2009/08/11-16:12:02
    SQLGetInfo returns " for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns N for SQL_COLUMN_ALIAS
    Exiting hgoulcp, rc=0 at 2009/08/11-16:12:02
    Entered hgouldt at 2009/08/11-16:12:02
    Exiting hgouldt, rc=0 at 2009/08/11-16:12:02
    Entered hgobegn at 2009/08/11-16:12:02
    tflag:0 , initial:1
    hoi:0xbfffe688, ttid (len 21) is ...
    00: 54534554 3135352E 36616133 2E332E37 [TEST.5513aa67.3.]
    10: 36352E33 34 [3.564]
    tbid (len 10) is ...
    0: 00030003 00000234 0104 [....4.....]
    Exiting hgobegn, rc=0 at 2009/08/11-16:12:02
    Entered hgodtab at 2009/08/11-16:12:02
    count:1
    table: agentes
    Entered hgopcda at 2009/08/11-16:12:02
    Column:1(cod_agent): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2009/08/11-16:12:02
    Entered hgopcda at 2009/08/11-16:12:02
    Column:2(desc_agent): dtype:12 (VARCHAR), prc/scl:50/0, nullbl:0, octet:50, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2009/08/11-16:12:02
    The hoada for table agentes follows...
    hgodtab, line 577: Printing hoada @ 0x6c0b90
    MAX:2, ACTUAL:2, BRC:1, WHT=6
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    1 CHAR N 2 2 0/ 0 0 0 0 cod_agent
    12 VARCHAR N 50 50 0/ 0 0 0 0 desc_agent
    Exiting hgodtab, rc=0 at 2009/08/11-16:12:02
    Entered hgodafr, cursor id 0 at 2009/08/11-16:12:02
    Exiting hgodafr, rc=0 at 2009/08/11-16:12:02
    Entered hgotcis at 2009/08/11-16:12:02
    Calling SQLStatistics for agentes
    IndexType=SQL_TABLE_STAT: cardinality=24
    New Index:353_1379, type=3, ASCENDING, UNIQUE, cardinality=24
    ordinal position = 1
    Calling SQLColumns for informix.agentes
    Column "cod_agent": dtype=1, colsize=2, decdig=0, char_octet_length=2, cumulative avg row len=2
    Column "desc_agent": dtype=12, colsize=50, decdig=0, char_octet_length=50, cumulative avg row len=39
    Exiting hgotcis, rc=0 at 2009/08/11-16:12:02
    Entered hgopars, cursor id 1 at 2009/08/11-16:12:02
    type:0
    SQL text from hgopars, id=1, len=55 ...
    00: 454C4553 41205443 63222E31 615F646F [SELECT A1."cod_a]
    10: 746E6567 31412C22 6564222E 615F6373 [gent",A1."desc_a]
    20: 746E6567 52462022 22204D4F 6E656761 [gent" FROM "agen]
    30: 22736574 204131 [tes" A1]
    Exiting hgopars, rc=0 at 2009/08/11-16:12:02
    Entered hgoopen, cursor id 1 at 2009/08/11-16:12:02
    hgoopen, line 83: NO hoada to print
    Exiting hgoopen, rc=0 at 2009/08/11-16:12:02
    Entered hgodscr, cursor id 1 at 2009/08/11-16:12:02
    Entered hgopcda at 2009/08/11-16:12:02
    Column:1(cod_agent): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2009/08/11-16:12:02
    Entered hgopcda at 2009/08/11-16:12:02
    Column:2(desc_agent): dtype:12 (VARCHAR), prc/scl:50/0, nullbl:0, octet:50, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2009/08/11-16:12:02
    hgodscr, line 506: Printing hoada @ 0x6c08f8
    MAX:2, ACTUAL:2, BRC:100, WHT=5
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    1 CHAR N 2 2 0/ 0 0 0 0 cod_agent
    12 VARCHAR N 50 50 0/ 0 0 0 0 desc_agent
    Exiting hgodscr, rc=0 at 2009/08/11-16:12:02
    Entered hgoftch, cursor id 1 at 2009/08/11-16:12:02
    hgoftch, line 117: Printing hoada @ 0x6c08f8
    MAX:2, ACTUAL:2, BRC:100, WHT=5
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    1 CHAR N 2 2 0/ 0 0 0 0 cod_agent
    12 VARCHAR N 50 50 0/ 0 0 0 0 desc_agent
    SQLBindCol: column 1, cdatatype: 1, bflsz: 3
    SQLBindCol: column 2, cdatatype: 1, bflsz: 51
    SQLFetch: row: 1, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 1, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 1, column 2, bflsz: 51, bflar: 16
    SQLFetch: row: 1, column 2, bflsz: 51, bflar: 16
    SQLFetch: row: 2, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 2, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 2, column 2, bflsz: 51, bflar: 26
    SQLFetch: row: 2, column 2, bflsz: 51, bflar: 26
    SQLFetch: row: 3, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 3, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 3, column 2, bflsz: 51, bflar: 33
    SQLFetch: row: 3, column 2, bflsz: 51, bflar: 33
    SQLFetch: row: 4, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 4, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 4, column 2, bflsz: 51, bflar: 35
    SQLFetch: row: 4, column 2, bflsz: 51, bflar: 35
    SQLFetch: row: 5, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 5, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 5, column 2, bflsz: 51, bflar: 6
    SQLFetch: row: 5, column 2, bflsz: 51, bflar: 6
    SQLFetch: row: 6, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 6, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 6, column 2, bflsz: 51, bflar: 5
    SQLFetch: row: 6, column 2, bflsz: 51, bflar: 5
    SQLFetch: row: 7, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 7, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 7, column 2, bflsz: 51, bflar: 27
    SQLFetch: row: 7, column 2, bflsz: 51, bflar: 27
    SQLFetch: row: 8, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 8, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 8, column 2, bflsz: 51, bflar: 26
    SQLFetch: row: 8, column 2, bflsz: 51, bflar: 26
    SQLFetch: row: 9, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 9, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 9, column 2, bflsz: 51, bflar: 34
    SQLFetch: row: 9, column 2, bflsz: 51, bflar: 34
    SQLFetch: row: 10, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 10, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 10, column 2, bflsz: 51, bflar: 32
    SQLFetch: row: 10, column 2, bflsz: 51, bflar: 32
    SQLFetch: row: 11, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 11, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 11, column 2, bflsz: 51, bflar: 31
    SQLFetch: row: 11, column 2, bflsz: 51, bflar: 31
    SQLFetch: row: 12, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 12, column 1, bflsz: 3, bflar: 2
    SQLFetch: row: 12, column 2, bflsz: 51, bflar: 22
    SQLFetch: row: 12, column 2, bflsz: 51, bflar: 22
    SQLFetch: row: 13, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 13, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 13, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 13, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 14, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 14, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 14, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 14, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 15, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 15, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 15, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 15, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 16, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 16, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 16, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 16, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 17, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 17, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 17, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 17, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 18, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 18, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 18, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 18, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 19, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 19, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 19, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 19, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 20, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 20, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 20, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 20, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 21, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 21, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 21, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 21, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 22, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 22, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 22, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 22, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 23, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 23, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 23, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 23, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 24, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 24, column 1, bflsz: 3, bflar: 0
    SQLFetch: row: 24, column 2, bflsz: 51, bflar: 0
    SQLFetch: row: 24, column 2, bflsz: 51, bflar: 0
    24 rows fetched
    Exiting hgoftch, rc=0 at 2009/08/11-16:12:02
    Entered hgoftch, cursor id 1 at 2009/08/11-16:12:02
    hgoftch, line 117: Printing hoada @ 0x6c08f8
    MAX:2, ACTUAL:2, BRC:24, WHT=5
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    1 CHAR N 2 2 0/ 0 0 0 0 cod_agent
    12 VARCHAR N 16 50 0/ 0 0 0 0 desc_agent
    0 rows fetched
    Exiting hgoftch, rc=1403 at 2009/08/11-16:12:02
    Entered hgoclse, cursor id 1 at 2009/08/11-16:12:04
    Exiting hgoclse, rc=0 at 2009/08/11-16:12:04
    Entered hgodafr, cursor id 1 at 2009/08/11-16:12:04
    Exiting hgodafr, rc=0 at 2009/08/11-16:12:04
    Entered hgocomm at 2009/08/11-16:12:04
    keepinfo:0, tflag:1
    00: 54534554 3135352E 36616133 2E332E37 [TEST.5513aa67.3.]
    10: 36352E33 34 [3.564]
    tbid (len 10) is ...
    0: 00030003 00000234 0104 [....4.....]
    cmt(0):
    Entered hgocpctx at 2009/08/11-16:12:04
    Exiting hgocpctx, rc=0 at 2009/08/11-16:12:04
    Exiting hgocomm, rc=0 at 2009/08/11-16:12:04
    Entered hgolgof at 2009/08/11-16:12:04
    tflag:1
    Exiting hgolgof, rc=0 at 2009/08/11-16:12:04
    Entered hgoexit at 2009/08/11-16:12:04
    Exiting hgoexit, rc=0 at 2009/08/11-16:12:04
    Any idea or hint would be really appreciated!
    Thanks!

    Ok. Bad news.
    There is an unpublished bug 799360 UNSUPPORTED INFORMIX RELEASE ERROR RUNNING DG4IFMX 11.1.
    To workround the problem, choose either of the following:
    1. Apply fix for unpublished Bug 6799360 when it becomes available.
    2. Upgrade Informix to 9.4 or 10 as the problem does not happen with these versions.
    3. Use 10.2 TG4Informix until a fix for the 11g DG4Informix is available.
    None of them are valid if you don't have any control of the Informix databases and if your Oracle database is in 64 bits (tg4informix not availabe for 64 bits).

  • Oracle 10gr2 rac, ora-12545 error when configured in shared server mode

    Hi i have fresh installation on two node rac on linux, with oracle 10gr2. It is running successfully, when i configure it in shared server mode and try to connect from client it gives error ora_12545:
    I have referred the oracle metalink notes and configured the local_listener as well as the remote_listener,
    still it is giving the error. I am able to tnsping all the entries on tnsnames.ora,
    i m also able to ping the hostnames,
    It connects most of the times succeessfully but some times it gives the error.
    how to solve this problem,
    please help me

    Basically this error means you misspelled the hostname or typed a wrong IP Address.
    Oracle Error :: TNS-12545+
    Connect failed because target host or object does not exist
    Cause
    The address specified is not valid, or the program being connected to does not exist.
    Action
    Ensure the ADDRESS parameters have been entered correctly; the most likely incorrect parameter is the node name. Ensure that the executable for the server exists (perhaps "oracle" is missing.) If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the host name to a numeric IP address and try again.
    I suggest you to check the dispatcher instance parameter.
    ~ Madrid
    http://hrivera99.blogspot.com

  • ORA-12154 error when logging into SQL*Plus

    I installed Oracle 10g (10.2.0.3.0) server on a Hyper-V virtual machine running Windows Server 2008 Enterprise as a standalone server. I did a software only install and then ran the Database Configuration Assistant to create a database. I also ran the Oracle Net Configuration Assistant to configure the Listener, Naming Methods, and Local Net Service Name. I ran the test in the Net Configuration Assistant and it was successful after I changed the login credentials to use the SYSTEM account and password. TNSPING of the net service name is successful. I can also successfully connect to the database via Enterprise Manager using the SYSTEM account and password. What I can NOT do is connect locally to the database via SQL*Plus (either through the gui or command line). I get the following error:
    ERROR:
    ORA-12154: TNS: Could not resolve the connect identifier specified
    I've checked and double-checked the LISTENER.ORA, SQLNET.ORA, and TNSNAMES.ORA files. They all seem correct to me, especially since I used the configuration assistants to create them.
    Anyone have an idea what might be wrong or what I can check next? Any help would be appreciated!
    Thanks!

    They all seem correct to me, especially since I used the configuration assistants to create them. Garbage In, Garbage Out.
    Since Oracle throws an error, I strongly suspect you are mistaken.
    Simply put, you are using something like "@REMOTE" someplace & somehow and the error indicates SQL*Net does not know to what @REMOTE refers.
    How many systems are involved, names, OS version, etc?
    post connection string & post contents of tnsnames.ora file.

  • Error when updating data in a form based in a view

    Hi:
    i have 5 tables for enterprise data (telephone, fax and so on). i want to create a form based in all those tables, so i create a view over all the 5 tables and create the form. but when calling the portlet and trying to alter (update, insert, etc.) the data i get this error. Seems that i missed to do something with my tables but i don't know what does that non key-preserved thing mean.The error is the following:
    Error: Cannot link to the module: 1901051912 ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-16062)
    An unexpected error occurred: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-16016)
    An unexpected error occurred: ORA-01445: cannot select ROWID from a join view without a key-preserved table-SELECT ROWID, IDBASE,NOMBRE,NOMBRE_FISCAL,NOTAS,BAJA,RETENCION,PREVISION_PAGOS,IVA,CIF,ID_DIRECCION,IDBASE_DIRECCION,CALLE,NUMERO,PISO,MANO,CODIGO_POSTAL,CIUDAD,ID_TELEFONO_EMP,IDBASE_TELEMP,TELEFONO_EMPRESA,ID_FAX_,IDBASE_FAXEMP,FAX,ID_EMAIL_EMP,IDBASE_EMAILEMP,E_MAIL FROM PTSS.A_VISTA where IDBASE=1 ORDER BY ROWID ASC (WWV-16016)
    Any help will be welcomed.
    Thanks in advance.
    Regards. Urko.

    You cannot update, insert, or delete records from a form that's based on a view. That is because rowid is not in the view, so it cannot lock records.

  • How to improve the updating a sql server table with another table in Oracle

    Hi there.
    I am trying to do the next updating in SSIS
    UPDATE S
    SET
    S.COLUMN_A = OT.COLUMN_A,
    S.COLUMN_B = OT.COLUMN_B
    FROM 
    SQLT1 S INNER JOIN ORACLET1  OT ON
    S. COLUMN_C = OT.COLUMN_C
    This is what I am doing:
    I am taking the Oracle data with the ODBC Source like this.
    Select column_A, column_B, column_C
    from OracleT1
    The thing is, the Oracle table has millions of registers and this updating is taking a lot. But I am not sure if it is maybe because of the design of the update query.
    I wonder is if there is another way to design this query or improve the performance of this task.
    Thanks a lot.

    Yes
    Use a OLEDB destination instead and save the records to a staging table
    Then use a subsequent Execute sql task and do the set based update in it as below
    UPDATE t
    SET COLUMN_A = s.COLUMN_A,
    COLUMN_B = s.COLUMN_B
    FROM SQLT1 t
    INNER JOIN stagingTable s
    ON s.COLUMN_C = t.COLUMN_C
    This would be much faster as its set based
    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

  • HTMLDB Newbie: ORA-01658 error when creating new app or table from sprdsht

    Hey there. I'm new to HTML DB and trying to create a new app (or even a new table) from a simple spreadsheet. I've tried both comma and tab delimited, but get the same error message every time. This is in my workspace on htmldb.oracle.com.
    "ORA-20001: create_table error: ORA-20001: Excel load run ddl error: ORA-01658: unable to create INITIAL extent for segment in tablespace FLOW_693"

    Scott,
    Thanks, but I don't think that's the problem. My workspace is 100Mb, and it's almost empty. I can install & run sample apps just fine, but not create a new app from a spreadsheet. The spreadsheet is small, to: nine columns and about 50 rows.
    Any ideas?

Maybe you are looking for

  • Variable value for IP Revaluation

    Hi Experts, I would like to run a revaluation function (with a button in workbook - IP). Variable is on the key-figure. The situation is strange: - click on the button with planning function call  - nothing happened - then when I click on change vari

  • Invalid http response: HTTP/1.1 200

    Hi gurus! I have a problem with an asynchronous interface. We are calling a Webservice which we don't need any response. In sxmb_moni it's OK, but in our RWB we see it as failed, with this entry:  invalid http response: HTTP/1.1 200. I have search in

  • MemoPad & Tasks not available

    I have just had to re-install my device os and my carrier installed v5.0 for me. On connecting it to my pc to reconfigure the organizer sync I could not set up the memopad sync nor the tasks as these modules are not installed. Previously I would have

  • Error in EJB deployment (Cannot CreateProcess)

    Hi, I have a WebAs 6.40 SP11(J2EE Engine & ABAP Engine) and NDS 2.0.11 installed on a Windows 2000 server and i am trying to deploy an EJB Application (the Car-Rental Tutorial. When I try to deploy the application onto J2EE engine, the deploy aborts

  • Need information on "Flash local storage" please

    Does anyone know about "Flash local storage"? Where is it? what sort of data can be stored there? how you see it and delete it? Friend wanted me to check out Pandora and reading through their FAQs I found this interesting tidbit. Note that Flash Loca