Tuesday, March 20, 2012
Data pump.... and SQL Backup....
and data load (using DTS). What happens if the full back is running on SQL
Server and at the same time the data is being pumped using a DTS package?
Any advice? SQL 2K.
Thank you,
Alwin
It depends. If your data pump is rapidly adding data, it is possible that
the log could fill before the backup is complete. Be sure to have "enough"
space in the transaction log while the full backup is taking place.
Tom
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
..
"Alwin Twain" <ATwain@.hotmail.com> wrote in message
news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
Currently I am not considering the overlapping duration of database backup
and data load (using DTS). What happens if the full back is running on SQL
Server and at the same time the data is being pumped using a DTS package?
Any advice? SQL 2K.
Thank you,
Alwin
|||A full backup will actually do a mini log backup when it completes the full.
It marks in the log when it starts the full backup and when it ends. Then
it grabs any committed trans from the log in between that time and includes
that in the full backup file. So as long as the DTS finished before the
full backup finished it will be included when you restore it. If it didn't
finish in time but you did get another log backup after it finished you can
recover that as well.
Andrew J. Kelly SQL MVP
"Alwin Twain" <ATwain@.hotmail.com> wrote in message
news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
> Currently I am not considering the overlapping duration of database backup
> and data load (using DTS). What happens if the full back is running on SQL
> Server and at the same time the data is being pumped using a DTS package?
> Any advice? SQL 2K.
> Thank you,
> Alwin
>
|||Thank you for the reply.
"Tom Moreau" <tom@.dont.spam.me.cips.ca> wrote in message
news:eN669HzuFHA.460@.TK2MSFTNGP15.phx.gbl...
> It depends. If your data pump is rapidly adding data, it is possible that
> the log could fill before the backup is complete. Be sure to have
"enough"
> space in the transaction log while the full backup is taking place.
> --
> Tom
> ----
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
> SQL Server MVP
> Columnist, SQL Server Professional
> Toronto, ON Canada
> www.pinpub.com
> .
> "Alwin Twain" <ATwain@.hotmail.com> wrote in message
> news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
> Currently I am not considering the overlapping duration of database backup
> and data load (using DTS). What happens if the full back is running on SQL
> Server and at the same time the data is being pumped using a DTS package?
> Any advice? SQL 2K.
> Thank you,
> Alwin
>
Data pump.... and SQL Backup....
and data load (using DTS). What happens if the full back is running on SQL
Server and at the same time the data is being pumped using a DTS package?
Any advice? SQL 2K.
Thank you,
AlwinIt depends. If your data pump is rapidly adding data, it is possible that
the log could fill before the backup is complete. Be sure to have "enough"
space in the transaction log while the full backup is taking place.
--
Tom
----
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
.
"Alwin Twain" <ATwain@.hotmail.com> wrote in message
news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
Currently I am not considering the overlapping duration of database backup
and data load (using DTS). What happens if the full back is running on SQL
Server and at the same time the data is being pumped using a DTS package?
Any advice? SQL 2K.
Thank you,
Alwin|||A full backup will actually do a mini log backup when it completes the full.
It marks in the log when it starts the full backup and when it ends. Then
it grabs any committed trans from the log in between that time and includes
that in the full backup file. So as long as the DTS finished before the
full backup finished it will be included when you restore it. If it didn't
finish in time but you did get another log backup after it finished you can
recover that as well.
--
Andrew J. Kelly SQL MVP
"Alwin Twain" <ATwain@.hotmail.com> wrote in message
news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
> Currently I am not considering the overlapping duration of database backup
> and data load (using DTS). What happens if the full back is running on SQL
> Server and at the same time the data is being pumped using a DTS package?
> Any advice? SQL 2K.
> Thank you,
> Alwin
>|||Thank you for the reply.
"Tom Moreau" <tom@.dont.spam.me.cips.ca> wrote in message
news:eN669HzuFHA.460@.TK2MSFTNGP15.phx.gbl...
> It depends. If your data pump is rapidly adding data, it is possible that
> the log could fill before the backup is complete. Be sure to have
"enough"
> space in the transaction log while the full backup is taking place.
> --
> Tom
> ----
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
> SQL Server MVP
> Columnist, SQL Server Professional
> Toronto, ON Canada
> www.pinpub.com
> .
> "Alwin Twain" <ATwain@.hotmail.com> wrote in message
> news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
> Currently I am not considering the overlapping duration of database backup
> and data load (using DTS). What happens if the full back is running on SQL
> Server and at the same time the data is being pumped using a DTS package?
> Any advice? SQL 2K.
> Thank you,
> Alwin
>sql
Data pump.... and SQL Backup....
and data load (using DTS). What happens if the full back is running on SQL
Server and at the same time the data is being pumped using a DTS package?
Any advice? SQL 2K.
Thank you,
AlwinIt depends. If your data pump is rapidly adding data, it is possible that
the log could fill before the backup is complete. Be sure to have "enough"
space in the transaction log while the full backup is taking place.
Tom
----
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
.
"Alwin Twain" <ATwain@.hotmail.com> wrote in message
news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
Currently I am not considering the overlapping duration of database backup
and data load (using DTS). What happens if the full back is running on SQL
Server and at the same time the data is being pumped using a DTS package?
Any advice? SQL 2K.
Thank you,
Alwin|||A full backup will actually do a mini log backup when it completes the full.
It marks in the log when it starts the full backup and when it ends. Then
it grabs any committed trans from the log in between that time and includes
that in the full backup file. So as long as the DTS finished before the
full backup finished it will be included when you restore it. If it didn't
finish in time but you did get another log backup after it finished you can
recover that as well.
Andrew J. Kelly SQL MVP
"Alwin Twain" <ATwain@.hotmail.com> wrote in message
news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
> Currently I am not considering the overlapping duration of database backup
> and data load (using DTS). What happens if the full back is running on SQL
> Server and at the same time the data is being pumped using a DTS package?
> Any advice? SQL 2K.
> Thank you,
> Alwin
>|||Thank you for the reply.
"Tom Moreau" <tom@.dont.spam.me.cips.ca> wrote in message
news:eN669HzuFHA.460@.TK2MSFTNGP15.phx.gbl...
> It depends. If your data pump is rapidly adding data, it is possible that
> the log could fill before the backup is complete. Be sure to have
"enough"
> space in the transaction log while the full backup is taking place.
> --
> Tom
> ----
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
> SQL Server MVP
> Columnist, SQL Server Professional
> Toronto, ON Canada
> www.pinpub.com
> .
> "Alwin Twain" <ATwain@.hotmail.com> wrote in message
> news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
> Currently I am not considering the overlapping duration of database backup
> and data load (using DTS). What happens if the full back is running on SQL
> Server and at the same time the data is being pumped using a DTS package?
> Any advice? SQL 2K.
> Thank you,
> Alwin
>
Data Pump Failing
I did not see a forum for the SQL Server 2000 DTS.
I have a flat file feeding a table via a data pump. The table is only used by this process. It will run for about 30minutes and then fail. The message in the history does not give any detail on why it is failing. Below is the message I get and if I rerun the job it works fine. Anyone help me please.
Date 07/23/2007 6:00:02 AM
Log Job History (Daily: Load EOL from MVS1 (First Run))
Step ID 1
Server PIT-CS-M608
Job Name Daily: Load EOL from MVS1 (First Run)
Step Name Daily: Load tblCaseMasterSched
Duration 00:28:05
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message
Executed as user: PIT-CS-M608\SYSTEM. ...rt: DTSStep_DTSActiveScriptTask_1 DTSRun OnFinish: DTSStep_DTSActiveScriptTask_1 DTSRun OnStart: DTSStep_DTSExecuteSQLTask_1 DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_1 DTSRun OnStart: DTSStep_DTSDataPumpTask_1 DTSRun OnProgress: DTSStep_DTSDataPumpTask_1; 1000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 1000 DTSRun OnProgress: DTSStep_DTSDataPumpTask_1; 2000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 2000 DTSRun OnProgress: DTSStep_DTSDataPumpTask_1; 3000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 3000 DTSRun OnProgress: DTSStep_DTSDataPumpTask_1; 4000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 4000 DTSRun OnProgress: DTSStep_DTSDataPumpTask_1; 5000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 5000 DTSRun OnProgress: DTSStep_DTSDataP... Process Exit Code 1. The step failed.
http://groups.google.com/group/microsoft.public.sqlserver.dts?lnk=srg
Data Pump
what approach i should take...help me out plsSet up a DTS package to send the data from SQL Server to Oracle.
Create a scheduled job to run the package every five minutes.|||In SQL Server 2000 replication can solve your problem but I do not know about SQL Server 7.0.
Blindman's idea is easy & will be work for you...|||I can't recommend that anybody include DTS packages as part of any long-term solution now that SQL Server 2005 no longer supports them.|||I can't recommend that anybody include DTS packages as part of any long-term solution now that SQL Server 2005 no longer supports them.I suppose that by the strictest definition that is true, but I tend to think of SSIS (http://msdn.microsoft.com/SQL/bi/integration/default.aspx) as being the descendant of DTS.
-PatP|||Descendent, bastard child, unholy spawn, however you want to call it...|||Descendent, bastard child, unholy spawn, however you want to call it...So, how do you really feel about SSIS? You don't have to hold back, we understand. ;)
-PatP|||select @.Functionality/@.Documentation
----
Msg 8134, Level 16, State 1, Line 1
Divide by zero error encountered.
Saturday, February 25, 2012
Data Migration
We have a de-normalized database that is currently fed from Siebel
(CRM). We want to pump in data from Pivotal but there is a slight
problem.
We used the Siebel Table=E2=80=99s identity column for PK in each
corresponding table (contact, account, etc). The record is then pushed
to our Data Warehouse and used for the corresponding dimension=E2=80=99s PK.
My original thought was to simply multiply Pivotal=E2=80=99s identity column
by something like 100,000,000 in the ETL and just pump the data in.
After taking my first look at Pivotal, I noticed that Pivotal does not
use identity columns. Pivotal uses a binary field to uniquely identify
each record.
This is a real mess and I get to be the one to fix it! =EF=81=8C.
We have several cubes and reports in production so I want to try and
minimize the overall impact.
Can you guys help me out with damage control and point me in the right
direction?I don't see a problem. You should be able to generate a new surrogate
key on insert, either in the ETL process or when you load the
dimension. In fact it's conventional practice always to allocate new
surrogate keys in the data warehouse. Of course the surrogate should
never be the only key in a dimension so there should be no problem
uniquely identifying the data row. But maybe I misunderstood what you
are asking.
David Portas
SQL Server MVP
--|||You are going to have to change how your keys are generated, and stop using
the Siebel key in your own DB.
Suggest generating new surrogate keys in your DB for Both Siebel and
Pivotal, and keep the key "mapping" in a separate table,
Create Table KeyMap (SiebelPK Integer Null, PivotalPK Binary(xx) Null,
NewPK Primary Key Identity Integer Not Null)
And then Populate it with all the current existing Siebel records to start
off with:
Set Identity_Insert KeyMap On
Insert KeyMap(SiebelKey, NewPK)
Select Distinct SiebelKey, SiebelKey
From ExistingTable
Change your import process to insert into the key map first, then use
created Identity for the insert into the rest of your data tables...
"daveg.01@.gmail.com" wrote:
> Can I get some advice guys?
> We have a de-normalized database that is currently fed from Siebel
> (CRM). We want to pump in data from Pivotal but there is a slight
> problem.
> We used the Siebel Table’s identity column for PK in each
> corresponding table (contact, account, etc). The record is then pushed
> to our Data Warehouse and used for the corresponding dimension’s PK.
>
> My original thought was to simply multiply Pivotal’s identity column
> by something like 100,000,000 in the ETL and just pump the data in.
> After taking my first look at Pivotal, I noticed that Pivotal does not
> use identity columns. Pivotal uses a binary field to uniquely identify
> each record.
> This is a real mess and I get to be the one to fix it! ?.
> We have several cubes and reports in production so I want to try and
> minimize the overall impact.
> Can you guys help me out with damage control and point me in the right
> direction?
>|||Oh, DOn;t forget to turn off Identity_Insert after you insert all the
existing Siebel Records...
Set Identity_Insert KeyMap Off
"daveg.01@.gmail.com" wrote:
> Can I get some advice guys?
> We have a de-normalized database that is currently fed from Siebel
> (CRM). We want to pump in data from Pivotal but there is a slight
> problem.
> We used the Siebel Table’s identity column for PK in each
> corresponding table (contact, account, etc). The record is then pushed
> to our Data Warehouse and used for the corresponding dimension’s PK.
>
> My original thought was to simply multiply Pivotal’s identity column
> by something like 100,000,000 in the ETL and just pump the data in.
> After taking my first look at Pivotal, I noticed that Pivotal does not
> use identity columns. Pivotal uses a binary field to uniquely identify
> each record.
> This is a real mess and I get to be the one to fix it! ?.
> We have several cubes and reports in production so I want to try and
> minimize the overall impact.
> Can you guys help me out with damage control and point me in the right
> direction?
>|||Oh, Don't Forget to tuen off the Identity_Insert after you insert all the
existing Siebel Records..
Set Identity_Insert KeyMap Off
"daveg.01@.gmail.com" wrote:
> Can I get some advice guys?
> We have a de-normalized database that is currently fed from Siebel
> (CRM). We want to pump in data from Pivotal but there is a slight
> problem.
> We used the Siebel Table’s identity column for PK in each
> corresponding table (contact, account, etc). The record is then pushed
> to our Data Warehouse and used for the corresponding dimension’s PK.
>
> My original thought was to simply multiply Pivotal’s identity column
> by something like 100,000,000 in the ETL and just pump the data in.
> After taking my first look at Pivotal, I noticed that Pivotal does not
> use identity columns. Pivotal uses a binary field to uniquely identify
> each record.
> This is a real mess and I get to be the one to fix it! ?.
> We have several cubes and reports in production so I want to try and
> minimize the overall impact.
> Can you guys help me out with damage control and point me in the right
> direction?
>|||Thanks for the suggestion!
It sounds like that is exacally what I need to do.