Recent Posts | - July, 2024-7,(1)
- May, 2024-5,(2)
- May, 2023-5,(1)
- February, 2023-2,(1)
- November, 2022-11,(1)
- July, 2022-7,(2)
- March, 2022-3,(1)
- November, 2021-11,(2)
- August, 2021-8,(2)
- July, 2021-7,(2)
- June, 2021-6,(1)
- May, 2021-5,(1)
- March, 2021-3,(1)
- February, 2021-2,(2)
- January, 2021-1,(7)
- December, 2020-12,(3)
- March, 2020-3,(2)
- February, 2020-2,(1)
- December, 2019-12,(2)
- November, 2019-11,(1)
- October, 2019-10,(1)
- September, 2019-9,(1)
- August, 2019-8,(1)
- May, 2019-5,(1)
- April, 2019-4,(2)
- March, 2019-3,(2)
- December, 2018-12,(1)
- November, 2018-11,(4)
- July, 2018-7,(1)
- May, 2018-5,(3)
- April, 2018-4,(2)
- February, 2018-2,(3)
- January, 2018-1,(3)
- November, 2017-11,(2)
- August, 2017-8,(1)
- June, 2017-6,(3)
- May, 2017-5,(5)
- February, 2017-2,(1)
- December, 2016-12,(1)
- October, 2016-10,(2)
- September, 2016-9,(1)
- August, 2016-8,(1)
- July, 2016-7,(1)
- March, 2016-3,(2)
- February, 2016-2,(3)
- December, 2015-12,(5)
- November, 2015-11,(5)
- September, 2015-9,(1)
- August, 2015-8,(2)
- July, 2015-7,(1)
- March, 2015-3,(2)
- February, 2015-2,(1)
- December, 2014-12,(4)
- July, 2014-7,(2)
- June, 2014-6,(2)
- May, 2014-5,(3)
- April, 2014-4,(3)
- March, 2014-3,(1)
- December, 2013-12,(2)
- November, 2013-11,(1)
- July, 2013-7,(1)
- June, 2013-6,(2)
- May, 2013-5,(1)
- March, 2013-3,(3)
- February, 2013-2,(3)
- January, 2013-1,(1)
- December, 2012-12,(3)
- November, 2012-11,(1)
- October, 2012-10,(1)
- September, 2012-9,(1)
- August, 2012-8,(1)
- July, 2012-7,(6)
- June, 2012-6,(1)
- April, 2012-4,(1)
- March, 2012-3,(3)
- February, 2012-2,(3)
- January, 2012-1,(4)
- December, 2011-12,(3)
- October, 2011-10,(3)
- September, 2011-9,(1)
- August, 2011-8,(10)
- July, 2011-7,(2)
- June, 2011-6,(7)
- March, 2011-3,(2)
- February, 2011-2,(3)
- January, 2011-1,(1)
- September, 2010-9,(1)
- August, 2010-8,(2)
- June, 2010-6,(1)
- May, 2010-5,(1)
- April, 2010-4,(3)
- March, 2010-3,(2)
- February, 2010-2,(3)
- January, 2010-1,(1)
- December, 2009-12,(3)
- November, 2009-11,(3)
- October, 2009-10,(2)
- September, 2009-9,(5)
- August, 2009-8,(3)
- July, 2009-7,(9)
- June, 2009-6,(2)
- May, 2009-5,(2)
- April, 2009-4,(9)
- March, 2009-3,(6)
- February, 2009-2,(4)
- January, 2009-1,(10)
- December, 2008-12,(5)
- November, 2008-11,(5)
- October, 2008-10,(13)
- September, 2008-9,(10)
- August, 2008-8,(7)
- July, 2008-7,(8)
- June, 2008-6,(12)
- May, 2008-5,(14)
- April, 2008-4,(12)
- March, 2008-3,(17)
- February, 2008-2,(10)
- January, 2008-1,(16)
- December, 2007-12,(6)
- November, 2007-11,(4)
|
|
|
Blog posts for the month of November,2008.
|
|
| Remote Execution of an SSIS Package | 11/21/2008 10:14:06 AM |
Recently I ran across an interesting problem where we had to kick off an SSIS Package on a remote server, i found the following to help with this:
I tried psexec and it's great. A thing of beauty. Simple, clean and it just works.
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
Here is a batch file that that uses it to execute an SSIS package on a remote server:
@echo off echo Enter Username set /p UserName= psexec \\10.20.30.40 -u %UserName% -e dtexec /sql "\Maintenance Plans\SSIS_Package_Demo" pause exit
The only problem with psexec is that you have to run it using a username and password with full administrative rights on the operating system of the server where SQL Server 2005 and the SSIS packages reside.
That's not a minor problem in any type of secure envirnoment.
It was a deal-killer for us.
However, rexec is a similar utility that authenticates the user name on the remote computer before executing the specified command.
http://technet.microsoft.com/en-us/library/bb490989(TechNet.10).aspx#
The rexec client is included with Windows 2000/XP/Vista, but they do not come with a rexecd daemon to provide the service.
Winsock does have a 3rd party (non-free) rexecd Windows daemon, however...
http://www.denicomp.com/rexecdnt.htm
...and when you use it "programs are executed on the Windows system in the security context of the user specified in the rexec command."
Here is a command line that runs the same package:
rexec 10.20.30.40 -l username dtexec /sql "\Maintenance Plans\SSIS_Package_Demo"
There are no simple, secure ways to remotely execute SQL Server 2005 SSIS packages short of purchasing extra SQL Server licenses.
A remote execution service like rexecd is an absolute necessity for running SSIS packages. It's well worth the $44.95 license fee.
|
| SSIS - Oracle to SQL Numeric | 11/18/2008 3:03:50 PM |
SSIS, Oracle, SQL and 64 BIT - NOT Perfect together !
Recently ran into an issue where we use SSIS to pull data from Oracle and issues with converting a Oracle Numeric data type to SQL Server. This did not go well, final corrections seemed ok, until we deployed them.
There are several solutions to this problem, it seems that having the right drivers of course helps, and so does casting / converting the data while brining it in from Oracle.
I found a great blog entry on this, i've copied it below (as great links often disappear), and also the link:
http://blogs.microsoft.co.il/blogs/bei/archive/2008/10/18/ssis-64bit-using-oracle-provider.aspx
SSIS 64bit – Using Oracle Provider
Hello everyone, running an Oracle Provider over a 64 bit system could be a pain in the… The purpose of this document is to explain the main issues running an SSIS solution using Oracle as a data source under 64bit. This document would explain the problems. Offer solution and work around procedures.
Symptoms: When dealing with Oracle as a data-source we face two known issues: 1. The case of the Numeric Type Casting: Oracle uses a data –type named numeric for numerical data. the numeric data type usually requires setting precision format e.g. numeric(18,2). While the OLEDB Provider can handle the numeric type. It does so only when precision is set.when facing a meta-data of type numeric where precision wasn't set. an exception is thrown requires us to use casting within the Oracle query. This is not to terrible if you have single table/query. But try to imagine maintaining hundreds of queries ?
2. Provider Data rate: The purpose of 64bit hardware is to accelerate the performance. Using a 32 bit provider on a 64bit hardware limit the performance of the package. (OLEDB Provider uses COM objects and x86 type system).
Solution Scenario:
The Following solution would handle both issues. The proposed solution is to download and setup a 64 bit generic provider. The only question is which provider and what scenario ?
Prepare Step: Remove Previous Oracle Client and or Installations
1. Using Oracle Install to remove all Oracle objects (including ROOT)
2. Remove specific Oracle Assemblies from GAC: Look under %WindowsDir% for the Assembly folder and remove all Oracle specific Assemblies (Mainly Oracle Policy and Oracle Data Provider). beware not to remove Microsoft generic assemblies (System.* or Policy..Microsoft) 3. Remove Oracle Registry Entries4. Delete Oracle Folder (remaining items).
Phase 1: Upgrading to 10g (64bit) 10.2.0.3 - Provider The following phase would increase your provider throughput and allow you to execute a 64bit calls to the Oracle Hardware, However it wouldn't solve your Numeric casting issue. This step is supported by two 64bit Hardware schema:
1. For x64 base Hardware: Download and Install the specific provider for x64. http://www.oracle.com/technology/software/tech/windows/odpnet/64-bit/index.html
2. For IA64 based Hardware (Both IA64 and Itanium 2): Download and install the specific Itanium provider. http://www.oracle.com/technology/software/tech/windows/odpnet/64-bit/index.html
Remark: Keep in mind that specific Itanium Processors, such as Montecito requires additional patch offered on the same link!.
Phase 2: Establish an Oracle Connection 1. Use your Oracle DBA to establish your TNS_ADMIN Settings and set your "tnsnames.ora" file. 2. Use the Registry to set a TNS_LANG with equivalent settings as Oracle Server.
Phase 3: Upgrading to Oracle Data Access Components (ODAC) 11g - 11.1.0.6.21 This phase would solve the need to cast the SQL query to support the numeric data-type. By using the Oracle Managed Provider for .NET. a Package can be developed without the need to cast the numeric field. Performance Test shows and estimated throughput of 1Milion rows per minute. Important Remarks: 1. Do not remove previous version of 10.2.0.3 provider! 2. This phase only applies to x64 Type System. No Itanium Support at this time!! Itanium users, would have to solve the numeric casting problem using casting at the sql origin.
Users of the x64 hardware, please download and install the following component: Oracle 11g ODAC and Oracle Developer Tools for Visual Studio
http://www.oracle.com/technology/software/tech/dotnet/utilsoft.html
Phase 4: Establish an Oracle Connection Since the 11g ODAC usually setup an additional Oracle Root , we need to establish additional Oracle Setting for the additional Oracle 11g Root. 1. Use your Oracle DBA to establish your TNS_ADMIN Settings and set your "tnsnames.ora" file. 2. Use the Registry to set a TNS_LANG with equivalent settings as Oracle Server.
3. The Registry Setting for the 11g provider , would appear under the WOW64 entry within the registry. Which Provider To Choose:
Using the SSIS designer within visual studio, be sure to choose the following provider: Oracle Data Provider for .NETPlease do not be mistaken with the Oracle Client Provider for .NET which is a Microsoft generic provider!!!!!Q. I can't see the Oracle Data Provider For .NET within the List ?A. Please do the following:
- Download the
Oracle 11g ODAC and Oracle Developer Tools for Visual Studio for x86 (32 bit) and extract the assemblies files.
Using the GAC utility to register assemblies
Go to machine.config of the 64bit which could be located at: %%WindowsDir%\Microsoft.NET\Framework\x64\v2.0.50727\Config And look for the Oracle Data Provider which is located in the "<system.data>" section. Copy the settings (alter to match the public key of the x86 assemblies) to the machine.config file of the x86 settings.
restart the server
Do not forget to execute SSIS package using either SQL Server Job (Execute SSIS package step), or by using the dtexec command line. Have fun,
Eran
|
| Putting in the ceiling | 11/17/2008 2:57:26 PM |
| 1 day, 2 windows, 1 door | 10/31/2008 1:28:16 PM |
| Completing the outside walls | 11/2/2008 1:31:48 PM |
The outside walls are basically completed, clean'er up, trim it up, insulate it up, caulk, caulk and more caulk...
|
|
Blog Home
|
|
|