Oracle  To MSsql Server

In my new company - we have to run a query from Oralce baed on A GRV created in Oralce application and save to result in Excell and import into MSSQL table. Presently we are doing in manuall daily.
Is there any way i can automate it thru a batch of file or thru a Trigger for every GRV is created in Oralce.
Thanks

A comfortable way would be to skip the Excel export and let the trigger directly populate the data from Oracle to the SQL Server.
This can be done using the Database Gateway for MS SQl Server (=DG4MSQL) as this gateway is able to participate in distributed transactions. Distributed transaction will allow you to manipulate an Oracle table, do a similar transaction at the SQL Server table and then commit your work.
DG4MSQL is not for free, it requires a license.
The gateway for free DG4ODBC is NOT able to participate in distributed transactions. So it would require additional coding as you have to start an autonomous transaction in the trigger all the time that replicates the data to the SQL Serer.

Similar Messages

  • ODBC connectivity between Oracle 11G and MSSQL Server on Solaris 10

    When we were running in 10G, I was able to successfully configure hsodbc using unixODBC and freeTDS to allow for an ODBC connection between Oracle and MSSQL Server.
    A few weeks ago we upgraded to 11G and I've been struggling to get the connectivity (dg4odbc) working.
    In our 10g environment unixODBC and freeTDS were compiled as 32-bit. I have recompiled them as 64-bit and switched over to an 11G listener and I am getting the following error:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    here are my configuration files:
    /usr/local/unixODBC/etc[PPRD]> more odbc.ini
    [ODBC Data Sources]
    identipass = MS SQL Server
    [identipass]
    Driver = /usr/local/freetds/lib/libtdsodbc.so
    Setup = /usr/local/freetds/lib/libtdsodbc.so
    Description = MS SQL Server
    Trace = 1
    TraceFile = /export/home/oracle/ODBC/odbc.trace
    Server = stormwind
    QuoteID = Yes
    AnsiNPW = No
    Database = identipass
    Port = 1433
    TDS_Version = 8.0
    [Default]
    Driver = /usr/local/freetds/lib/libtdsodbc.so
    /usr/local/unixODBC/etc[PPRD]> more odbcinst.ini
    [TDS]
    Description=FreeTDS driver
    Driver=/usr/local/freetds/lib/libtdsodbc.so
    Setup=/usr/local/freetds/lib/libtdsodbc.so
    Trace=Yes
    TraceFile=/tmp/freetds.log
    FileUsage=1
    UsageCount=2
    tnsnames.ora
    identipass =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST = localhost)(PORT = 1522))
    (CONNECT_DATA =
    (SID = identipass)
    (HS = OK)
    listener.ora
    LISTENERODBC =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    SID_LIST_LISTENERODBC=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=identipass)
    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1)
    (ENV="LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/hs/lib")
    (PROGRAM=dg4odbc)
    And finally, output from the trace file:
    /u01/app/oracle/product/11.2.0/db_1/hs/log[PPRD]> more identipass_agt_1381.trc
    Oracle Corporation --- THURSDAY NOV 18 2010 16:00:16.010
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- THURSDAY NOV 18 2010 16:00:16.008
    Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "Debug"
    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_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    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_RSET_RETURN_ROWCOUNT 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"
    HOSGIP returned value of "FALSE" for HS_FDS_SUPPORT_STATISTICS
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLSt
    atistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "identipass"
    Product-Info:
    Port Rls/Upd:1/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:identipass
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=873
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2010/11/18-16:00:16
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/unixODBC/lib/libodbc.so"
    Entered hgolofns at 2010/11/18-16:00:16
    symbol_peflctx=0x7a715450
    hoaerr:0
    Exiting hgolofns at 2010/11/18-16:00:16
    Exiting hgolofn, rc=0 at 2010/11/18-16:00:16
    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 ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2010/11/18-16:00:16
    Entered hgolgon at 2010/11/18-16:00:16
    reco:0, name:identipass, tflag:0
    Entered hgosuec at 2010/11/18-16:00:16
    Exiting hgosuec, rc=0 at 2010/11/18-16:00:16
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using identipass as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2010/11/18-16:00:16
    HS_FDS_CONNECT_INFO = "identipass"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2010/11/18-16:00:16
    dsn:identipass, name:identipass
    optn:
    Entered hgocip at 2010/11/18-16:00:16
    dsn:identipass
    Exiting hgocip, rc=0 at 2010/11/18-16:00:16
    Exiting hgogenconstr, rc=0 at 2010/11/18-16:00:16
    Entered hgopoer at 2010/11/18-16:00:16
    hgopoer, line 233: got native error 0 and sqlstate ; message follows...
    Exiting hgopoer, rc=0 at 2010/11/18-16:00:16
    hgocont, line 2753: calling SqlDriverConnect got sqlstate
    Exiting hgocont, rc=28500 at 2010/11/18-16:00:16 with error ptr FILE:hgocont.c LINE:2772 ID:Something other than invalid authoriza
    tion
    Exiting hgolgon, rc=28500 at 2010/11/18-16:00:16 with error ptr FILE:hgolgon.c LINE:781 ID:Calling hgocont
    Entered hgoexit at 2010/11/18-16:00:16
    Exiting hgoexit, rc=0
    Can anyone help me see what I'm missing?

    Thank you for your response.
    I modified the envs LD_LIBRARY_PATH parameter in my SID_LIST_LISTENERODBC to be:
    (ENV="LD_LIBRARY_PATH=/usr/local/freetds/lib:/usr/local/unixODBC/lib:/u01/app/oracle/product/11.2.0/db_1/lib:/
    u01/app/oracle/product/11.2.0/db_1/hs/lib")
    and bounced the listener, but I'm still getting the same error.
    I do not have a lib64 directory in my Freetds installation, but all the files in the lib directory are 64-bit.
    Here is a listing of my DG4ODBC init file:
    /u01/app/oracle/product/11.2.0/db_1/hs/admin[PPRD]> more initidentipass.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = identipass
    #HS_FDS_TRACE_LEVEL = 0
    HS_FDS_TRACE_LEVEL = Debug
    HS_FDS_SHAREABLE_NAME = /usr/local/unixODBC/lib/libodbc.so
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_LANGUAGE=AMERICAN.AMERICA.WE8ISO8859P15
    # ODBC specific environment variables
    set ODBCINI=/usr/local/unixODBC/etc/odbc.ini
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Thanks for your help with this!
    Catina

  • Hope to convert the MSSQL server 2000 to Oracle 11G

    Hi All
    I've gone through the post
    +"Microsoft SQL Offline Migration - How to ?"+
    Microsoft SQL Offline Migration - How to ?
    and try to convert the MSSQL server 2000 to Oracle 11G. but there are following issue :
    1) Cannot create a row of size 8094 which is greater than the allowable maximum of 8096.? Even after this error it capture the SQL server model.
    2) Then I try to convert the captured model by "Right Click" convert option. It opens 2 tab's (Migration Wizard step6 of 9) "DataType Mapping", "Object Naming" Object Naming is empty tab. How can i fix the naming rule while migrating ?
    3) This will convert the capture model successfully in Oracle 11g but The naming of object like procedure, constraints ,views, indexes etc. Still exceed 30 character rule. I mean the object names are more the 30 character length.
    There should be way to fix the naming standards while migrating or converting the model ?
    Please advice if any
    Thanks

    Hi All
    I've gone through the post
    +"Microsoft SQL Offline Migration - How to ?"+
    Microsoft SQL Offline Migration - How to ?
    and try to convert the MSSQL server 2000 to Oracle 11G. but there are following issue :
    1) Cannot create a row of size 8094 which is greater than the allowable maximum of 8096.? Even after this error it capture the SQL server model.
    2) Then I try to convert the captured model by "Right Click" convert option. It opens 2 tab's (Migration Wizard step6 of 9) "DataType Mapping", "Object Naming" Object Naming is empty tab. How can i fix the naming rule while migrating ?
    3) This will convert the capture model successfully in Oracle 11g but The naming of object like procedure, constraints ,views, indexes etc. Still exceed 30 character rule. I mean the object names are more the 30 character length.
    There should be way to fix the naming standards while migrating or converting the model ?
    Please advice if any
    Thanks

  • Calling MSSQL SERVER STORED PROCEDURE FROM ORACLE STORED PROCEDURE

    Hi Guys,
    I want to call a stored procedure from mssql server 2005 as part of a stored procedure in PL/SQL. How do I go about this? I've already set up the linked servers.

    http://en.allexperts.com/q/Oracle-1451/2008/6/Calling-SQL-Stored-procedure-1.htm
    Does this help?

  • Error, while pushing the data from Oracle to MSSQL.

    Hi,
    I am facing the below error, while pushing the data from Oracle to MSSQL.
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Transparent gateway for MSSQL][Microsoft][ODBC SQL Server Driver][SQL Server]Update or insert of view or function 'View_Name' failed because it contains a derived or constant field.[Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared. (SQL State: 00000; SQL Code: 8180)
    Please suggest me, how to overcome from this.
    Thanks.

    [email protected] wrote:
    Hi,
    I am facing the below error, while pushing the data from Oracle to MSSQL.
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Transparent gateway for MSSQL][Microsoft][ODBC SQL Server Driver][SQL Server]Update or insert of view or function 'View_Name' failed because it contains a derived or constant field.[Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared. (SQL State: 00000; SQL Code: 8180)
    Please suggest me, how to overcome from this.
    Thanks.This is an error from SQL Server being passed back to Oracle so you can see the problem.
    What it is saying is that you are trying to insert (or update) data to a database view and that view contains a column that is either a constant (literal) value or is derived (a calculation, formula or string concatenation etc.).
    As such, you can't insert or update data on that column because it has nowhere to go on the database table(s) that underly the view.

  • 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.

  • SQL Developer 1.5 using MSSQL server 2003

    Hi,
    I just download SQL Developer 1.5 to migrate from MSSQL to Oracle.
    I download and install too jtds1.2.2.jar
    Every time i try to connect my SQLSERVER i get one message " Connect connect to Microsoft SQL Server ..."
    I word on Windows 2003 Server with MSSQL Server 2000 and Oracle 9.2
    Can somebody help me ?

    Can you ping the server, by either hostname or ip address?
    If you can't then you must have the wrong name/address or there are network connectivity issues.
    Can you connect to the SQLServer using sqlserver tools from your PC??
    If not, then perhaps the SQLServer is not configured to accept TCP connections. By default it isn't and only uses named pipes.
    Or perhaps it is not using the default port.
    If you can do the above, the next step is to investigate problems within sqldeveloper.

  • Pulling data from oracle into sql server 2005

    hi,
    these days i am working on sql server 2005 on windows server 2008 64 bit.
    and oracle 10g on 32 bit unix.
    my problem is that when i am pulling data from oracle into sql server it shows me about *500-700 entries less*.
    why this is happening? is it because 32 bit to 64bit? or is it because of different os?

    Akki,
    are you using snapshot or replication from MSSQL? I am doing the same thing, hope to share your experience.
    I am using import/export from MGT studio and pull some data from Oracle database, I am working on how to update the changes on these tables pulled from Oracle.
    Thanks,
    -hank

  • Can I join the oracle and mssql database together?

    Hi,
    Did someone know how to join the table from two different platform database? I need to join oracle table with Mssql table in the select statement. Is possible to do so or any hints out there?
    Thanks
    Daron

    Hi,
    Definitly yes, Oracle and MSSQL are two different products and there are unsupported datatypes exists in MSSQL server. Except few instances, you can go ahead and join in one single query provided if you have database link.
    Cheers!!!!
    Mahesh Ragineni

  • Error when extracting huge table from MSSQL server.

    Hi:
    Under BI 7
    I configured a DB datasouce to retrieve data from a view on MSSQL server.
    It runs well when the data amount is below 5 million rows.
    When the data volumn is over 5M, the datasouce start failed...
    If I use the PREVIEW button in the Datasource maintain page, the system returns
    the message:
    Unknown error while uploading data from the DB table
    Message no. RSDS_ACCESS027.
    Does any expert know how to solve this issue?
    Thanks a lot!!

    Hi Clayton Hung,
    I'm facing exactly the same problem with Oracle.Additionally Errors in source system
    Message no. RSM340.
    Have you found anything?
    Cheers Marco
    [email protected]

  • Transaction logs off on  MSSQL Server-2008

    Hi,
      I want to off the transaction logs in mssql server-2008 like archive mode off in oracle,auto over write on in maxdb database.
    Thanku

    You cannot stop.!
    Please read sql Architecture.
    The transaction log of the SAP database records all changes made to the database. It may never be deleted and must be backed up separately. Transaction log backups save the log files. They are mandatory when you use the Full or Bulk-Logged Recovery Model since they are needed.
    Read this link.
    [http://help.sap.com/saphelp_nwmobile71/helpdata/en/f2/31ad41810c11d288ec0000e8200722/content.htm]
    Thanks,
    Siva

  • SQL TYPE MAPPING for MSSQL SERVER and POSTGRES

    I have deployed an ejb application using weblogic6.1 and Oracle which was successful.The same application i tried to deploy for MSSQL SERVER which failed with the following exception :
    Errors encountered ''The Container-Managed Persistence Entity EJB failed while creating its SQL Type Map. The error was:
    [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'd_sip_salary_earning_1'.',
    'Error encountered while attempting to create Default DBMS Table: 'd_sip_salary_earning_1'. Error Text: '[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Column or parameter #3: Cannot find data type DATE.'.''
    How do i solve the above issue?
    Please someone help me solve this issue.
    Thanks in Advance.
    Regds,
    --Jagan

    Jagan wrote:
    I have deployed an ejb application using weblogic6.1 and Oracle which was successful.The same application i tried to deploy for MSSQL SERVER which failed with the following exception :
    Errors encountered ''The Container-Managed Persistence Entity EJB failed while creating its SQL Type Map. The error was:
    [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'd_sip_salary_earning_1'.',
    'Error encountered while attempting to create Default DBMS Table: 'd_sip_salary_earning_1'. Error Text: '[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Column or parameter #3: Cannot find data type DATE.'.''
    How do i solve the above issue?
    Please someone help me solve this issue.
    Thanks in Advance.
    Regds,
    --JaganMS SQLServer does not have a DATE column type. The column type you want is 'DATETIME' in MS SQLServer.
    If you did not specify the DDL and/or if this is coming from generated code, then show me the full stack trace
    of this exception. If you dont have it, please turn on JDBC logging, and the full SQLException will show up in
    the jdbc log file.
    thanks,
    Joe

  • Not able to get the connection to mssql server thro native sql

    Dear Experts,
               I have created a database connection to mssql server thro DBCO t.code.Am not able to get the connection when i am executing Native SQl for geting connection of mssql server.
    DATA: CON_NAME LIKE DBCON-CON_NAME VALUE 'BIW'.
    EXEC SQL.
      CONNECT TO :con_name AS 'C1'
    ENDEXEC.
    Am always getting sy-subrc = 4. The user name and password i have given in dbcon table having full authorization to access mssql database. I am working SAP ecc 5.0. Also both servers are running in windows.
    could anyone hlep me on this issue.
    Thanks in advance.

    Hello, the submitted error must be analyzed according to the Syntaxis and characteristics of the MSSQL database. See explanation of error.
    http://doc.ddart.net/mssql/sql2000/html/trblsql/tr_reslsyserr_1_1o1i.htm
    Error 156
    Severity Level 15
    Message Text
    Incorrect syntax near the keyword '%.*ls'.
    Explanation
    This error indicates that the syntax of a Transact-SQL statement is incorrect and that the syntax error was detected near the keyword specified in the error message. The most frequent causes for syntax errors are misspellings of Transact-SQL keywords or operators, and specifying the syntax of a Transact-SQL statement in the wrong order.
    One of the more complicated causes for this error may be a compatibility level mismatch for the current database. If the current database has a compatibility level other than 70, Microsoft® SQL Serveru2122 will not recognize any of the keywords that a database with a compatibility level of 70 would recognize.
    Action
    First, check the Transact-SQL statement syntax near the keyword specified in the error message. Because Transact-SQL language syntax can be very complex, SQL Server may incorrectly report the position of the syntax error as later in the Transact-SQL statement than it actually occurred. Second, reexamine the entire Transact-SQL statement that generated the error. Verify the syntax order of the statement.
    Ensure that the database does not have a compatibility level of 65 and has a compatibility level of 70.

  • Trying to move EP 7.0 from one MSSQL server to a different one

    We have created a distributed instance installation of NW2004s/EP7.0.
    We need to move the database instance from one windows server to a second server.  We do not need to move any other portions.
    We shutdown the MSSQL server and copied the files, and brought the database up.  To test I connected to the database using query analyzer, and the user which is defined as SAP<SID>DB (in our case SAPSPPDB) and this worked fine.
    When I adjust the default profile parameter, and the config tool parameter - in the secure store: jdbc/pool/<SID>/URL.  The changes were done after teh database was shutdown and copied.  I get errors afterwards jcontrol fails, online and offline config tool do not open, etc'
    What is the process for moving a MSSQL database from a portal?

    I did it a few times succesfull and this is (my) procedure:
    1. stop the SAP system
    2. detach th DB on the Source server
    3. copy db+log files to the Target server
    4. attach the db on the Target server
    5. repair login/db user account following the steps:
    -  http://support.microsoft.com/kb/274188
    OR
    -  http://blog3.daqureshi.com/archive/2008/12/16/11.aspx
    6. update/change the file usr\sap\<sid>\sys\profile\default.prf
    7. start the configtool and within the keystore change the jdbc connection parameters so that it points to the new DB Server
    8. save this action!!!!
    9. exit and restart the configtool and look if its connecting to the new DB Server
    10. exit the confconfigtool.
    11. start your SAP System
    Good Luck!
    Benjamin Houttuin

  • Password Change on MSSQL Server, now no Connection to Workspace

    Hello,
    our IT-Department changed the password to login to the MSSQL Server. Now i cant login to Workspace or Financial Reporting. The Error message says the the GSM Service on Port 1800 cant be reached. The Services are marked as started.
    I have already used the Configuration Utility and the Service Configurator, there is a tab called database where you can change the login credentials. But i still cant login.
    There is a note below which says:
    Note: Database properties are tied to some startup scripts and configuration files. If you make any changes on these properties you should change those related files per hand.
    Which Files are meant ?
    Where else is the password stored ?
    What else can i do to check if the GSM Service is running ?
    Thx for your help
    I forgot to say we use an 9.2 enviroment on win2k3 servers.
    Edited by: Kevin Kraft on 01.10.2009 08:39

    Hello,
    i talked to support an they gave me the advise to restore the old password to get services running and then do the following steps:
    Changing the Services Repository Database Password
    When you change the password that the services use to access the repository database, the order
    of steps is critical. Carefully read all instructions before performing them.
    Caution!
    Make sure to change the password in Workspace before changing it in the database. If you
    perform the steps in the wrong order, you may lose the ability to run Workspace.
    ➤ To change the repository database password:
    1 From RSC, select Name Service, Repository Service, or Event Service.
    2 Click Show item properties, and select the Storage tab.
    3 Change the password and click OK.
    4 Repeat step 1 through step 3 for all Name Services, Repository Services, and Event Services with the same
    database account, making certain to enter the same password for each one.
    If these services use different database accounts, perform this step only for those that use the
    account whose password you are changing.
    5 Close RSC.
    6 In LSC, click Show host properties, and select the Database tab.
    7 Change the password and click OK.
    This password property (like the other properties on the Database tab) applies to all LSC services
    on the local host, all of which use one database account.
    For more information about LSC, see Chapter 8, “Configuring LSC Services.”
    8 Repeat step 6 and step 7 on every host that contains LSC services, making certain to enter the password
    the same way each time.
    9 If you are using the same database for row-level security, change the password for row-level security from
    the Administer module.
    10 Stop the Reporting and Analysis services.
    11 Change the password in the database, making certain it matches the password entered for Reporting and
    Analysis services.
    12 Restart the services.
    This procedure can also be found in the file hsadmin.pdf which is the Workspace Administration Guide.
    My Problem is the IT-Department cant restore the old password, so i fear i have to reinstall the services :(.
    thx for your help
    Kevin

Maybe you are looking for

  • How do I enable an iPod Touch 5 for disk use?

    Bit of background as to why I wish to do this: I've made a voice memo and I want to get the WAV file from my iPod Touch 5 to my drive. As this apparently necessitates the use of iTunes (Ver. 12.0.1.26) I knew I was in for an interesting time and so i

  • MySQL Varchar not matching Java String

    I am using MySQL 4.0.16 with jdk1.3.1_01 and I have a strange occurance going on with comparing Strings from the mysql database with Strings entered from java, coming from a JTextField. The mysql field in question was created like this:- CREATE TABLE

  • How to create an new administrator with ldif files

    I need another administrator as orcladmin for create an new tree in OID 11g which groups and right must this administrator have?

  • Open qauntities in return order

    Hi All, I need to post a goods issue for a return order based on the idoc data. I have to check the open quantities in the order and have to post the goods issue. Can you please tell me how can I know which line item is open and I know I can post the

  • Strange Business rule behaviour in EAS

    Hi, We are testing some changes to the caches for a planning app. As part of this a number of business rules are be run concurrently to simulate what happens in production. The business rules, with a large data set, are started from EAS, as they are