OWB 11.2, ODBC to SQL Server - metadata import problem
Hi All,
We are using Oracle on 64-bin linux and sql server 2000. We also using OWB11.2 both on Windows and Linux.
We installed open source ODBC on linux (freeTDS) and created dblink to sql server – connection works just fine and we can retrieve data from sql server using standard tools like TOAD, SQLDeveloper, or sqlplus. But when I create ODBC module in OWB11.2 and try to import metadata (tables) from sql server I have the following error:
SQL Exception
SQL Exception
Persistent Layer Error:SQL Exception..
Class Name: CacheMediator.
Method Name: getSQLResult.
Persistent Layer Error Message: ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[FreeTDS][SQL Server]Procedure 'sp_columns' expects parameter '@table_name', which was not supplied. {42000,NativeErr = 201}
ORA-00604: error occurred at recursive SQL level 1
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[FreeTDS][SQL Server]Procedure 'sp_columns' expects parameter '@table_name', which was not supplied. {42000,NativeErr = 201}
ORA-06512: at "SYS.HS$_DDTF_SQLCOLUMNS", line 84
ORA-06512: at line 1
ORA-02063: preceding 7 lines from OWB_604
. (etc)
When connected to sql server using the account used in dblink I can execute sp_columns without any trouble so it’s not a security issue.
Did anybody experience the similar problem?
BTW we successfully used similar technique for Sybase as a source and Oracle (10.2) as a target using OWB 10.2 a few years ago.
Any help is appreciated,
Thanks,
Alex
Hi Alex
It may be a problem with the ODBC driver for the queries executed to import the catalog metadata. Sometimes you get drivers that 'seem' to work for querying the data but for access the metadata to reverse engineer problems arise. Are you using the latest greatest version of the ODBC driver? If logging was turned on in the client (see here ) probably would be able to get the last query fired at the gateway and this would be the culprit.
One alternative option is to use a remote database gateway agent (now possible in 11g) on the Windows machine, which you can then access from your linux host.
Cheers
David
Similar Messages
-
SQL Server 2012 Import-Module 'sqlps' breaks the "Test-Path" PowerShell cmdlet
I've run into something that is "very" frustrating with the new SQL Server 2012 PowerShell module. When I Import the module, it breaks the "Test-Path" cmdlet when trying to test a UNC path to a directory.
For example:
"Test-Path -path \\server\dirname" returns true as expected before the sqlps module is imported. But after you import the SQL Server module "Import-Module 'sqlps' –DisableNameChecking" the same Test-Path
now returns false.
If I run the following in Windows PowerShell ISE I see the following results:
Test-Path -path "\\server\directoryname"
Import-Module 'sqlps' –DisableNameChecking
Test-Path -path "\\server\directoryname"
True
False
Anyone have any idea what's going on?
UPDATE: after more testing, it looks like the problem happens with any cmdlet that references a UNC. The New-Item has the same problem. Before importing 'sqlps', New-Item is able to create a directory at the UNC path specified, but ater importing
'sqlps', the New-Item fails.
Thanks!Hi Mikea730,
Sqlps.exe doesn't take advantage of a couple of these nice PowerShell V2 cmdlets without doing a bit of configuring in your environment.
Please refer to the following references to make some configuration in your server
http://www.maxtblog.com/2010/11/denali-get-your-sqlpsv2-module-set-to-go/
http://www.simple-talk.com/sql/database-administration/practical-powershell-for-sql-server-developers-and-dbas-%E2%80%93-part-1/
http://sev17.com/2010/07/making-a-sqlps-module/
Thanks,
TechNet Subscriber Support
If you are
TechNet Subscription user and have any feedback on our support quality, please send your feedback
here.
Iric Wen
TechNet Community Support -
Hi everyone,
I am new to SQL server....I am learning C# programming using visual studio 2013 . And I want to learn SQL database language to create and practice C# database project....My computer meets all the hardware requirement for SQL installation (i.e. My computer
has window 7 OS , 80 GB freen HD and 6 GB RAM. ) Therefore I download Microsoft SQL server express 2012 try to install it in my computer (which already has visual studio).
But during installation of SQL server I have problem ...it says
the server doesn't respond in timely fashion. When I research about it everyone were saying uninstall sql and reinstall again. I uninstall and re install but still having same problem...
The database engine also not installed displaying same error.
I don't know how can i install sql server 2012 to use with visual studio in same computer.
Can somebody please help with SQL installation please ?
It will be great help.
Many thanks in advance
regards
rashHi
my summary file is :
Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2146232832
Start time: 2015-04-06 11:34:18
End time: 2015-04-06 19:04:46
Requested action: Install
Setup completed with required actions for features.
Troubleshooting information for those features:
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 DQ: 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.
Next step for IS: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
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 AS: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Machine Properties:
Machine name: RASHA-VAIO
Machine processor count: 4
OS version: Windows 7
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 2008 SQLEXPRESS MSSQL10.SQLEXPRESS Database Engine Services 1033
Express Edition 10.1.2531.0 No
SQL Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS SQL Server Replication 1033
Express Edition 10.1.2531.0 No
Package properties:
Description: Microsoft SQL Server 2012 Service Pack 1
ProductName: SQL Server 2012
Type: RTM
Version: 11
SPLevel: 0
Installation location: E:\x64\setup\
Installation edition: Enterprise
Product Update Status:
None discovered.
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: false
AGTSVCACCOUNT: NT Service\SQLSERVERAGENT
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Manual
ASBACKUPDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Config
ASDATADIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Data
ASLOGDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Log
ASPROVIDERMSOLAP: 1
ASSERVERMODE: TABULAR
ASSVCACCOUNT: NT Service\MSSQLServerOLAPService
ASSVCPASSWORD: <empty>
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: RASHA-VAIO\RASHA
ASTEMPDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Temp
BROWSERSVCSTARTUPTYPE: Disabled
CLTCTLRNAME: MAIN
CLTRESULTDIR: C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\ResultDir\
CLTSTARTUPTYPE: Manual
CLTSVCACCOUNT: NT Service\SQL Server Distributed Replay Client
CLTSVCPASSWORD: <empty>
CLTWORKINGDIR: C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\WorkingDir\
COMMFABRICENCRYPTION: 0
COMMFABRICNETWORKLEVEL: 0
COMMFABRICPORT: 0
CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20150406_112342\ConfigurationFile.ini
CTLRSTARTUPTYPE: Manual
CTLRSVCACCOUNT: NT Service\SQL Server Distributed Replay Controller
CTLRSVCPASSWORD: <empty>
CTLRUSERS: RASHA-VAIO\RASHA
ENABLERANU: false
ENU: true
ERRORREPORTING: false
FEATURES: SQLENGINE, REPLICATION, FULLTEXT, DQ, AS, RS, RS_SHP, RS_SHPWFE, DQC, BIDS, CONN, IS, BC, SDK, BOL, SSMS, ADV_SSMS, DREPLAY_CTLR, DREPLAY_CLT, SNAC_SDK, MDS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: NT Service\MSSQLFDLauncher
FTSVCPASSWORD: <empty>
HELP: false
IACCEPTSQLSERVERLICENSETERMS: false
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: MSSQLSERVER
INSTANCENAME: MSSQLSERVER
ISSVCACCOUNT: NT Service\MsDtsServer110
ISSVCPASSWORD: <empty>
ISSVCSTARTUPTYPE: Automatic
MATRIXCMBRICKCOMMPORT: 0
MATRIXCMSERVERNAME: <empty>
MATRIXNAME: <empty>
NPENABLED: 0
PID: *****
QUIET: false
QUIETSIMPLE: false
ROLE: <empty>
RSINSTALLMODE: FilesOnlyMode
RSSHPINSTALLMODE: SharePointFilesOnlyMode
RSSVCACCOUNT: NT Service\ReportServer
RSSVCPASSWORD: <empty>
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: SQL
SQLBACKUPDIR: <empty>
SQLCOLLATION: Latin1_General_CI_AS
SQLSVCACCOUNT: NT Service\MSSQLSERVER
SQLSVCPASSWORD: <empty>
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: RASHA-VAIO\RASHA
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\20150406_112342\ConfigurationFile.ini
Detailed results:
Feature: Management Tools - Complete
Status: Passed
Feature: Client Tools Connectivity
Status: Passed
Feature: Client Tools SDK
Status: Passed
Feature: Client Tools Backwards Compatibility
Status: Passed
Feature: Management Tools - Basic
Status: Passed
Feature: SQL Server Data Tools
Status: Passed
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: 0x80004005
Error description: The service did not respond to the start or control request in a timely fashion.
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=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Data Quality Services
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: 0x80004005
Error description: The service did not respond to the start or control request in a timely fashion.
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=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
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: 0x80004005
Error description: The service did not respond to the start or control request in a timely fashion.
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=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
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: 0x80004005
Error description: The service did not respond to the start or control request in a timely fashion.
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=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Master Data Services
Status: Passed
Feature: Distributed Replay Client
Status: Passed
Feature: Distributed Replay Controller
Status: Passed
Feature: Integration 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 Integration Services
Component error code: 0x84BB0001
Error description: The service did not respond to the start or control request in a timely fashion.
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=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Data Quality Client
Status: Passed
Feature: Reporting Services - Native
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 Reporting Services
Component error code: 0x84BB0001
Error description: The service did not respond to the start or control request in a timely fashion.
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=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Analysis 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 Analysis Services
Component error code: 0x80131600
Error description: The service could not be started. Reason: The service did not respond to the start or control request in a timely fashion.
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=0x88A466B0%400x857354B0&EvtType=0x88A466B0%400x857354B0
Feature: Reporting Services - SharePoint
Status: Passed
Feature: Reporting Services Add-in for SharePoint Products
Status: Passed
Feature: SQL Browser
Status: Passed
Feature: Documentation Components
Status: Passed
Feature: SQL Writer
Status: Passed
Feature: SQL Client Connectivity
Status: Passed
Feature: SQL Client Connectivity SDK
Status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20150406_112342\SystemConfigurationCheck_Report.htm
I hope it will help you to figure out ...i dont know how to solve this issue ..i have un install and re install more than 5 times.
thank you -
Issue while importing table from oracle to sql server using import and export wizard
Hi All,
I am trying to populate oracle table to sql server using import export wizard and i am getting the below error.the table is allready present in the database but still it throwing error like table doesn't exists.
Could not connect source component.
Error 0xc0202009: Source - JOB_ACTION_HISTORY [1]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
Error 0xc02020e8: Source - JOB_ACTION_HISTORY [1]: Opening a rowset for ""FLXUSER"."JOB_ACTION_HISTORY"" failed. Check that the object exists in the database.
(SQL Server Import and Export Wizard)
Kindly help me out
Thanks in advanceHi Snehasis,
Please check whether the table name in the Oracle database has lower case letters. The table name should be exactly correct.
In addition, the issue might be related to the Oracle driver. What provider/driver do you use? If you use Microsoft OLE DB Provider for Oracle, you can try the
Oracle OLE DB Provider. If you use Enterprise or Developer edition of SSIS 2008 or higher, you can also try the
Microsoft Connectors for Oracle by Attunity. The Oracle OLE DB Provider and Microsoft Connectors for Oracle are proved to have better performance.
Regards,
Mike Yin
TechNet Community Support -
Failed to create Database Link in OWB 9.2 for remote SQL Server
Hi,
I have to create Database link for connecting to SQL server in a different machine.I am using OWB 9.2 and XP.
Dataserver is the machine name which is running SQL Server
I included follwing lines in TNSNAMES.ORA file
hsodbc.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = dataserver)(PORT = 1433)
(CONNECT_DATA = (SID=hsodbc.world)
(HS =OK)
I included follwing lines in Listener.ORA file
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dataserver)(PORT = 1433)
(SID_DESC=
(SID_NAME=hsodbc.world)
(ORACLE_HOME=C:\ora92)
(PROGRAM=hsodbc)
I included follwing lines in inithsodbc.ORA file
HS_FDS_CONNECT_INFO = testdsn
HS_FDS_TRACE_LEVEL = 0
While creating new database link I gave the follwing values
DB Link Name : Mylink
SQL * Net Connect String: hsodbc
User Name: sa
password:<my password>
Then clicked "Create and Test" button to get the follwing error message
Testing...
Failed.
ORA-12154 TNS:could not resolve service name
*Cause: The service name specified is not defined correctly in the TNSNAMES.ORA file
*Action: Make the following checks and correct the error:
- Verify that a TNSNAMES.ORA file exists on your repository server
in the proper place and is accessible. See the operating
system specific manual for details on the required name and location.
- Check to see that the service name exists in one of the
TNSNAMES.ORA files and add it if necessary.
- Make sure there are no syntax errors in the file.
Particularly look for unmatched parentheses or stray characters.
Any error in a TNSNAMES.ORA file makes it unusable. See
Chapter 4 in the SQL*Net V2 Administrator's Guide. If possible,
regenerate the configuration files using the Oracle Network Manager.
Is there anything wrong in my configuration. Please help me in getting out of this problem.
Thanks in advance
AndyHi Mark,
Thanks Mark.I did the changes in the specified .ora file but now it shows a different error message.
The error is
Testing...
Failed.
Cwm Error Message: SQL Exception
Cwm Error: SQL Exception
Class Name: CacheMediator
Method Name: getDDEntryFromDB
Repository Error Message: ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from MYLINK
Query: select 1 from dual@MyLink
I got the same error when i tried manually in sql plus.
Please help me in getting out of thid problem
Thanks in advance
Andy -
OWB 9.2 Sourcing from SQL Server 8.0
I looked at the PDF for sourcing from EXCEL and have a couple of questions with regards to sourcing from SQL server 8.0:
1. Do you need SQL ODBC driver installed to source from
SQL Databases?
2. Where does one get this driver?
3. How does one install this driver?You can get the document you are looking for on http://www.oracle.com/technology/products/warehouse/pdf/Cases/case3.pdf .
You should definitely have an ODBC driver for the SQL Server. Oracle provides the Oracle part wit the database ("generic connectivity"). Not sure about SQL server - I believe MSFT provides them free, if not you should purchase one.
Regards:
Igor -
ODBC for SQL Server through FORMS 6
Does a way exist of through the forms6 acessando oracle 8i to record data in a bank SQL Server 7 of Microsoft... do I marry yes, as it would be the instruction?
nullCheck your DSN, I am using Jdbc-Odbc bridge to open connection to MS-SQLServer. Using System DSN, Check usrname and password. My connection looks like this.
public Connection getDbConnection(String dbdriver,String url,String user,String passwd){
Connection dbconn = null;
try {
Class.forName(dbdriver);
dbConn = DriverManager.getConnection(url,user,passwd);
}catch(ClassNotFoundException e){
System.err.println(e.getMessage());
}catch(SQLException sqle){
handleSQLException(sqle);
}catch(Exception e){
System.err.println(e.getMessage());
return dbconn; -
Define ODBC to sql server express 2008 on AZURE VM
Hello,
I defined virtual machine in AZURE with windows server 2008.
I installed SQL SERVER 2008 R2 SP2 Express on the virtual machine.
My goal is to connect from access 2010 to the SQL Server.
I defined endpoint: TCP, public port:57500, private port:1433
I defined an inbound rule in VM firewall: port 1433 opened for the database engine
I defined sql server to allow network login.
I am trying to define ODBC connection but it does not work.
I use the following settings in ODBS form:
Server: VM DNS Name (like: XXX.cloudapp.net),57500
Login ID: login name to SQL Server
Password: password to SQL Server
Can you help me with the correct settings so I will be able to connect to SQL Server?
Thank you for your helpHello,
Which error message did you received when connect to SQL Server Express instance with OBDC?
Please verify you had did the following configuration:
1.Make sure that TCP/IP is enabled for SQL Server Express in SQL Configuration Manager.
2. Configure SQL Server to listen on the TCP protocol 1433.
3. Configure SQL Server with mixed mode authentication and the login you used is valid.
Reference:http://msdn.microsoft.com/en-us/library/windowsazure/dn133152.aspx
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
CR-11.5/ODBC-Changing SQL-Server Database in same instance
I'm using CR 11.5 against SQL-Server 2005. In the same SQL-Server default instance, I have both Demo and Production databases. I've used both the SQL-Server Native ODBC driver, and the OLE/ADO driver as a trial. Some of my reports have used the standard Table selection method to generate the SQL; others have needed a Command script due to embedded subqueries.
My problem is getting a Demo reports changed over to Production reports. If I make up an original Demo ODBC connection against the Demo database, and then make up a new Production ODBC connection against the same instance but against the Production database, the Data Source will change over to the newly named ODBC connection, but the Database remains pointed at the previous Demo database despite the new ODBC connection telling it to do otherwise.
This seems particularly troublesome with the standard Table reports as the the new connection Database properties have to be changed to Production as well as the Database properties for every single table.
Also, is it possible to use just one ODBC connection and force the change by changing the default database from Demo to Production and updating the data?
Am I missing something here?
Thanks!Set location and then Verify the data
-
OGG-00868 SQL Server 2008 has problem with ODBC in the EXTRACT process
Hello Everyone
I want to replicate tables between MS SQLServer 2008 and Oracle 10g
I have Windows XP / MS SQLServer 2008 and Oracle Database 10g R 10.2.0.1.0 running on Red Hat Linux
I followed the steps from the white paper (http://www.oracle.com/technetwork/articles/datawarehouse/oracle-sqlserver-goldengate-460262.html)
and Installed Oracle Golden Gate Version 11.2.1.0.1 (for Linux) and the Version 11.2.1.0.1 32bits (for Windows XP)
I followed all steps of the white paper without problem and I could do the initial load in
the Oracle Database from SQL Server sucessfully.
But when I tried to set and start the Extract process from SQL SERVER
a error was generated in the file c:\gg\dirrpt\MSEXT.rpt and the process is ABENDING
GGSCI > info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT STOPPED MSEXT 00:00:00 03:22:29
2013-08-25 11:59:41 ERROR OGG-00868 Executing statement for select operation Database error 213 ([Microsoft][SQL Server Native Client 10.0][SQL Server]Column name or number of supplied values does not match table definition.
[Microsoft][SQL Server Native Client 10.0][SQL Server]DBCC execution completed. If DBCC printed error messages, contact your system administrator.
[Microsoft][SQL Server Native Client 10.0][SQL Server]Column name or number of supplied values does not match table definition.
[Microsoft][SQL Server Native Client 10.0][SQL Server]DBCC execution completed. If DBCC printed error messag).
2013-08-25 11:59:41 ERROR OGG-01668 PROCESS ABENDING.
If somebody has a clue or faced something similar please let me how could solve it.
Thanks
JuanHello mb_ogg,
Yes, I had created a Data Source HR Driver= SQL Server (second Tab System DSN) and I also had tried with
the driver SQL Server Native Client 10.0 but I faced the same error.
The database by default is EMP
Below is my configuration
Microsoft SQL Server ODBC Driver Version 03.85.1117
Data Source Name: HR
Data Source Description:
Server: JUAN-XP
Database: EMP
Language: (Default)
Translate Character Data: Yes
Log Long Running Queries: No
Log Driver Statistics: No
Use Integrated Security: Yes
Use Regional Settings: No
Prepared Statements Option: Drop temporary procedures on disconnect
Use Failover Server: No
Use ANSI Quoted Identifiers: Yes
Use ANSI Null, Paddings and Warnings: Yes
Data Encryption: No
I also clicked on the button "Test Data Source" with the below messages:
Microsoft SQL Server ODBC Driver Version 03.85.1117
Running connectivity tests...
Attempting connection
Connection established
Verifying option settings
Disconnecting from server
TESTS COMPLETED SUCCESSFULLY!
Then I went to Database Properties (Right Click) /Oprtion and Recovery model field has Full value
I also made a Backup (Backup Type = Full)
The Backups was made to Disk: C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup\EMP.bak
Today I repeated the same steps and I got the same error (I Copied at the end):
I also have the follow question:
Is necessary define the location of the backup of MS SQL Server to say to GG where it can get it?
GSCI (juan-xp) 1> DBLOGIN SOURCEDB HR
2013-08-27 21:16:32 INFO OGG-03036 Database character set identified as win
dows-1252. Locale: en_US.
2013-08-27 21:16:32 INFO OGG-03037 Session character set identified as wind
ows-1252.
Successfully logged into database.
GGSCI (juan-xp) 3> ADD TRANDATA HRSCHEMA.EMP
Logging of supplemental log data is enabled for table hrschema.emp
GGSCI (juan-xp) 4> EDIT PARAMS DEFGEN
GGSCI (juan-xp) 5> exit
C:\gg>defgen paramfile c:\gg\dirprm\defgen.prm
Oracle GoldenGate Table Definition Generator for SQL Server
Version 11.2.1.0.2 OGGCORE_11.2.1.0.2T3_PLATFORMS_120724.2205
Windows (optimized), Microsoft SQL Server on Jul 25 2012 03:37:58
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
Starting at 2013-08-27 21:18:23
Operating System Version:
Microsoft Windows XP Professional, on x86
Version 5.1 (Build 2600: Service Pack 2)
Process id: 3236
** Running with the following parameters **
defsfile c:\gg\dirdef\emp.def
Source Context :
SourceModule : [defgen.main]
SourceID : [defgen/defgen.c]
SourceFunction : [create_defgen_file]
SourceLine : [808]
2013-08-27 21:18:23 ERROR OGG-00037 DEFSFILE file c:\gg\dirdef\emp.def alrea
dy exists.
2013-08-27 21:18:23 ERROR OGG-01668 PROCESS ABENDING.
C:\gg>defgen paramfile c:\gg\dirprm\defgen.prm
Oracle GoldenGate Table Definition Generator for SQL Server
Version 11.2.1.0.2 OGGCORE_11.2.1.0.2T3_PLATFORMS_120724.2205
Windows (optimized), Microsoft SQL Server on Jul 25 2012 03:37:58
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
Starting at 2013-08-27 21:19:03
Operating System Version:
Microsoft Windows XP Professional, on x86
Version 5.1 (Build 2600: Service Pack 2)
Process id: 3312
** Running with the following parameters **
defsfile c:\gg\dirdef\emp.def
sourcedb hr
2013-08-27 21:19:05 INFO OGG-03036 Database character set identified as win
dows-1252. Locale: en_US.
2013-08-27 21:19:05 INFO OGG-03037 Session character set identified as wind
ows-1252.
table hrschema.emp;
Retrieving definition for hrschema.emp
Definitions generated for 1 table in c:\gg\dirdef\emp.def
C:\gg>ggsci
Oracle GoldenGate Command Interpreter for SQL Server
Version 11.2.1.0.2 OGGCORE_11.2.1.0.2T3_PLATFORMS_120724.2205
Windows (optimized), Microsoft SQL Server on Jul 25 2012 02:57:42
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
GGSCI (juan-xp) 1> start manager
MGR is already running.
GGSCI (juan-xp) 2> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
GGSCI (juan-xp) 3> ADD EXTRACT MSEXT, TRANLOG, BEGIN NOW
EXTRACT added.
GGSCI (juan-xp) 4> ADD RMTTRAIL /u01/app/oracle/gg/dirdat/ms, EXTRACT MSEXT
RMTTRAIL added.
GGSCI (juan-xp) 5> EDIT MSEXT
ERROR: Invalid command.
GGSCI (juan-xp) 6> edit params msext
GGSCI (juan-xp) 7> START EXTRACT MSEXT
Sending START request to MANAGER ('GGSMGR') ...
EXTRACT MSEXT starting
GGSCI (juan-xp) 8> show all
Parameter settings:
SET SUBDIRS ON
SET DEBUG OFF
Current directory: C:\gg
Using subdirectories for all process files
Editor: notepad
Reports (.rpt) C:\gg\dirrpt
Parameters (.prm) C:\gg\dirprm
Replicat Checkpoints (.cpr) C:\gg\dirchk
Extract Checkpoints (.cpe) C:\gg\dirchk
Process Status (.pcs) C:\gg\dirpcs
SQL Scripts (.sql) C:\gg\dirsql
Database Definitions (.def) C:\gg\dirdef
GGSCI (juan-xp) 9> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT STOPPED MSEXT 00:00:00 00:02:34
GGSCI (juan-xp) 10> EDIT MSEXT
Report MSEXT.rpt with same error
Oracle GoldenGate Capture for SQL Server
Version 11.2.1.0.2 OGGCORE_11.2.1.0.2T3_PLATFORMS_120724.2205
Windows (optimized), Microsoft SQL Server on Jul 25 2012 03:49:54
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
Starting at 2013-08-27 21:30:26
Operating System Version:
Microsoft Windows XP Professional, on x86
Version 5.1 (Build 2600: Service Pack 2)
Process id: 2452
Description:
** Running with the following parameters **
2013-08-27 21:30:26 INFO OGG-03035 Operating system character set identified as windows-1252. Locale: en_US, LC_ALL:.
EXTRACT MSEXT
SOURCEDB HR
2013-08-27 21:30:28 INFO OGG-03036 Database character set identified as windows-1252. Locale: en_US.
2013-08-27 21:30:28 INFO OGG-03037 Session character set identified as windows-1252.
TRANLOGOPTIONS MANAGESECONDARYTRUNCATIONPOINT
RMTHOST OCM, MGRPORT 7809
RMTTRAIL /u01/app/oracle/gg/dirdat/ms
TABLE HRSCHEMA.EMP;
2013-08-27 21:30:28 INFO OGG-01815 Virtual Memory Facilities for: COM
anon alloc: MapViewOfFile anon free: UnmapViewOfFile
file alloc: MapViewOfFile file free: UnmapViewOfFile
target directories:
C:\gg\dirtmp.
CACHEMGR virtual memory values (may have been adjusted)
CACHESIZE: 1G
CACHEPAGEOUTSIZE (normal): 4M
PROCESS VM AVAIL FROM OS (min): 1.57G
CACHESIZEMAX (strict force to disk): 1.41G
Database Version:
Microsoft SQL Server
Version 10.00.1442
ODBC Version 03.52.0000
Driver Information:
SQLSRV32.DLL
Version 03.85.1117
ODBC Version 03.52
Source Context :
SourceModule : [ggvam.param]
SourceID : [../gglib/ggvam/cvamparams.cpp]
SourceFunction : [com_goldengate_vam::validateIfSqlServer]
SourceLine : [1955]
2013-08-27 21:30:28 ERROR OGG-00868 Executing statement for select operation Database error 213 ([Microsoft][ODBC SQL Server Driver][SQL Server]Column name or number of supplied values does not match table definition.
[Microsoft][ODBC SQL Server Driver][SQL Server]DBCC execution completed. If DBCC printed error messages, contact your system administrator.
[Microsoft][ODBC SQL Server Driver][SQL Server]Column name or number of supplied values does not match table definition.
[Microsoft][ODBC SQL Server Driver][SQL Server]DBCC execution completed. If DBCC printed error messages, contact your system admi).
2013-08-27 21:30:28 ERROR OGG-01668 PROCESS ABENDING.
Thanks
Juan -
Owb 9.0.4 with SQL Server source
Hello,
I'm trying to use a SQL Server table as my source (approx. 2M rows) but I only need to pull the current period (approx. 5K rows). My performance is HORRIBLE across the transparent gateway/dblink but I'm not sure if this is the gateway itself or the code.
I've placed a filter in my mapping, but it would seem this is not effective on the initial recordset at the source, but it get's applied once the recordset has been brought over to my target warehouse. Is there a way to force this to occur at the source with some configuration setting changes?
The difference is seconds for a generic ODBC query to pull this recordset down vs. over an hour for my mapping to execute. (Even still, this seems excessive for 2 M rows to me). Anyone have any advice for me?
Regards,
PaulMy dblink used the tranparent gateway not the generic ODBC setup. On further digging, It looks like I need to use 'target only' based runtime 'modes' exclusively, which is not the default. These are the config settings, runtime parameters, where your choices are 'set based', 'row based', 'set based (target only)', 'set based failover to row based', and 'set based failover to row based(target only)'.
Based on the program flow, if I choose one of the target only methods, the package fetches rows from my source using a where clause (using Cursor FLTR_c), but otherwise the where clause is not generated (using cursor HC_tblActiveDaily_c) see cursor declarations below.
However, it seems that this doesn't buy me very much time... My dba told me the cursors declaration itself causes the rows to be populated from my source, which in my case means either way, I'm pulling every single record from the database, even though I'm only using the one with the where clause in it.
Is there a patch for this behavior? If I'm understanding the implications of this cursor declaration, it seems highly inefficent to me.
-- "HC_tblActiveDaily_c" Cursor declaration
CURSOR "HC_tblActiveDaily_c" IS
SELECT
/*+ NO_MERGE */
"HC_tblActiveDaily_JXNSQL01"."AcctgUnit" "AcctgUnit",
"HC_tblActiveDaily_JXNSQL01"."CreateDate" "CreateDate",
"HC_tblActiveDaily_JXNSQL01"."DateAdded" "DateAdded",
"HC_tblActiveDaily_JXNSQL01"."Department" "Department",
"HC_tblActiveDaily_JXNSQL01"."DeptName" "DeptName",
"HC_tblActiveDaily_JXNSQL01"."Division" "Division",
"HC_tblActiveDaily_JXNSQL01"."Employee" "Employee",
"HC_tblActiveDaily_JXNSQL01"."FicaNbr" "FicaNbr",
"HC_tblActiveDaily_JXNSQL01"."First_Name" "First_Name",
"HC_tblActiveDaily_JXNSQL01"."Hire_Date" "Hire_Date",
"HC_tblActiveDaily_JXNSQL01"."JobCodeDesc" "JobCodeDesc",
"HC_tblActiveDaily_JXNSQL01"."Job_Code" "Job_Code",
"HC_tblActiveDaily_JXNSQL01"."Last_Name" "Last_Name",
"HC_tblActiveDaily_JXNSQL01"."Process_Level" "Process_Level",
"HC_tblActiveDaily_JXNSQL01"."Status" "Status",
"HC_tblActiveDaily_JXNSQL01"."SubAccount" "SubAccount",
"HC_tblActiveDaily_JXNSQL01"."WorkState" "WorkState",
"HC_tblActiveDaily_JXNSQL01"."term_date" "term_date",
ROWNUM "ROWNUM_ALIAS$$$"
FROM "dbo"."HC_tblActiveDaily"@"INTERGRATION"@"JXNSQL01" "HC_tblActiveDaily_JXNSQL01" ;
-- "FLTR_c" Cursor declaration
CURSOR "FLTR_c" IS
SELECT
/*+ DRIVING_SITE("HC_tblActiveDaily_JXNSQL01") */
"HC_tblActiveDaily_JXNSQL01"."AcctgUnit" "ACCTGUNIT",
"HC_tblActiveDaily_JXNSQL01"."CreateDate" "CREATEDATE",
"HC_tblActiveDaily_JXNSQL01"."DateAdded" "DATEADDED",
"HC_tblActiveDaily_JXNSQL01"."Department" "DEPARTMENT",
"HC_tblActiveDaily_JXNSQL01"."DeptName" "DEPTNAME",
"HC_tblActiveDaily_JXNSQL01"."Division" "DIVISION",
"HC_tblActiveDaily_JXNSQL01"."Employee" "EMPLOYEE",
"HC_tblActiveDaily_JXNSQL01"."FicaNbr" "FICANBR",
"HC_tblActiveDaily_JXNSQL01"."First_Name" "FIRST_NAME",
"HC_tblActiveDaily_JXNSQL01"."Hire_Date" "HIRE_DATE",
"HC_tblActiveDaily_JXNSQL01"."JobCodeDesc" "JOBCODEDESC",
"HC_tblActiveDaily_JXNSQL01"."Job_Code" "JOB_CODE",
"HC_tblActiveDaily_JXNSQL01"."Last_Name" "LAST_NAME",
"HC_tblActiveDaily_JXNSQL01"."Process_Level" "PROCESS_LEVEL",
"HC_tblActiveDaily_JXNSQL01"."Status" "STATUS",
"HC_tblActiveDaily_JXNSQL01"."SubAccount" "SUBACCOUNT",
"HC_tblActiveDaily_JXNSQL01"."WorkState" "WORKSTATE",
"HC_tblActiveDaily_JXNSQL01"."term_date" "TERM_DATE",
ROWNUM "ROWNUM_ALIAS$$$"
FROM "dbo"."HC_tblActiveDaily"@"INTERGRATION"@"JXNSQL01" "HC_tblActiveDaily_JXNSQL01" WHERE( TRUNC ( "HC_tblActiveDaily_JXNSQL01"."DateAdded" ) = TRUNC ( (HC_CYC_ACTIVES_MAP."CONST_ACT_AS_OF_DATE") ) ); -
Extract the data from SQL Server and Import into Oracle
Hi,
I would like to run a daily job that will export the table data from SQL server table (it will be only one or two table) and Import back into Oracle table (it might one or two table tables).
Could you please guide me that how can i do this using either sql server or oracle?
We have oracle 9.2 and sql server 2005.
Normally i do from flat file which is generated by source destination nand i dump into oracle using sql*loader but this time I have to directly extract/export the data from MS Sql server and load into Oracle table, mostly it will reload so i might doing any massaging data during the load.
If you show me the detail approach, it will be really appreciated.
I have access to Sql server but i don't how to use sql server to do this or using oracle as a daily job even becuase have to schedule the job for this as it will be a daily job.
Thanks,
poratipsUnless you can find an open source ODBC driver for SQL Server that runs on Solaris (and I wouldn't be overly hopeful there) Heterogeneous Services would require that you license something-- a third party ODBC driver, a new Oracle instance, or an Oracle Transparent Gateway.
As I stated below, you could certainly use SQL Server's ETL tool, DTS. Oracle's ETL tools would require additional licensing since you're just on 9.2. You could also write a small application (Java or otherwise) that connected to both databases and transferred the data. If you're particularly enterprising, you could load the SQL Server Type 4 JDBC driver into Oracle's JVM and write a Java stored procedure that connected to the SQL Server database via JDBC, but that's a pretty convoluted approach.
Justin -
SQL Server 2012: Import and Export Wizard - Exporting Multiple Result Sets at Once?
I'm working in SQL Server 2012 trying to export some data from our database into an Excel file. My SQL statement has two separate Select statements. They are not joined by a union. When I Execute them inside of SQL Server Management Studio, with Results
set to go to a Grid, I get two result sets back. Two full tables of data.
However, when I use the Import and Export Wizard, the Excel sheet only has the first set of data.
What do I need to do to have it so both result sets show up in the excel file?Why cant use merge them using union/union all if intention is to get them to same sheet? Is it like the metadata is different so that they cant be merged to single sheet?
If that being the case you need to do it in two steps.
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 -
Server 2008 with SQL server 2003 installation problem in SAP 8.8 in clint
Hello Sir
I want to install clint for SAP B1 8.8 and we have windows server 2008 with sql server 2005
when i install the clint i got one error in DI API installation that licence server name and port number is not available.
Please tell me the complete process to install 8.8. clint with which supporting software i have to install in clint machine.
and what things i have to check in server for installation .
Please kindly reply ASAP.
Thanks
Vaibhav KothariHi,
every question / issue you should know, is descripted in the following manual, please read it and follow the installation instruction manual:
https://websmp201.sap-ag.de/~sapidb/011000358700000150922010E.zip
Regards Steffen -
SSRS 2012, SQL Server 2012. Problem with changing database
Hi all!
I have a problem with changing database for SSRS.
I have a SSRS 2012 and SQL Server 2012. These programs is on WIndows Server 2012.
I need to link SSRS to the new database instance. For this I run SSRS Configeration Manager, open tab Database, click Change Database. Then I choose option "Choose an existing report server database", click Next, write the server name, test
connection (it's successed) and push Next again. Then I see this error message:
Error
The feature: "Using other editions of SQL Server for report data sources and/or the report server database" is not supported in this edition of Reporting Services.
OK
I'm confused, cause I have compatible versions of programs and THIS error.
Please, help me.
Thanks.Hi Kirill,
From the error message, we can know that the issue may be caused by incorrect editions of SQL Server for report data sources are used as the Report Server Database.
When creating a report server database, please be aware that not all editions of SQL Server can be used to host the database. So we should make sure that we have used the correct database as the
Report Server Database. For more details, please refer to the “Report Server Database Server Edition Requirements” section in the following document:
http://technet.microsoft.com/en-us/library/cc645993.aspx
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
hi. My mp3 player has been charged for all night and the green is still blinking. I do not know why. I do not know how can transfer mp3 tracks from my computer to mp3 player.
-
Please help with my ipod Touch
My Ipod touch is stuck on the "slide to unlock screen''. It won't let me slide to unlock. It slides about a quarter of the way and then stops. I've tried restarting it, upgrading it, restoring it, and nothing happened. I don't know what else to do.
-
Internal order "settlement rule" change
Dear Gurus, I would like to change "settlement rule" in internal oder which has been used since go-live under ECC6.0. I go to KO02, keyin 'order number' ,enter and click on "settlement rule" button to update. but profitability segment line just displ
-
How to link to another page in same application?
I think I have a brain fog right now. Cause I can't figure this out. I would like to link to another page in the same application by way of just an arbitrary word in a paragraph. I am not trying to pass any values. I am not using a button or a text i
-
Ways to show only the non-end dated portofolio manager.
Hi All, I have a fund raising application (Raiser's edge), and I have to show each donor along with his/her primary portfolio manager. Each donor could have more than one manager but there could be only two current manager (primary & secondary). If