<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-34516211.post2796629796757957271..comments</id><updated>2008-05-05T14:39:16.422-07:00</updated><title type='text'>Comments on My SysAd Blog -- Unix: Dump Sybase Database to File</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.mysysad.com/feeds/2796629796757957271/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34516211/2796629796757957271/comments/default'/><link rel='alternate' type='text/html' href='http://www.mysysad.com/2008/02/dump-sybase-database-to-file.html'/><author><name>esofthub</name><uri>http://www.blogger.com/profile/10822058426751039502</uri><email>esofthub@gmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-34516211.post-3764869661334713725</id><published>2008-05-05T11:18:00.000-07:00</published><updated>2008-05-05T11:18:00.000-07:00</updated><title type='text'>A quick tip, if you want to break up a large db to...</title><content type='html'>A quick tip, if you want to break up a large db to multiple files, use the  "stripe on" argument.&lt;BR/&gt;&lt;BR/&gt;dump database yourdb to "/tmp/mydatabase1.dat"&lt;BR/&gt;stripe on "/tmp/mydatabase2.dat"&lt;BR/&gt;...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34516211/2796629796757957271/comments/default/3764869661334713725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34516211/2796629796757957271/comments/default/3764869661334713725'/><link rel='alternate' type='text/html' href='http://www.mysysad.com/2008/02/dump-sybase-database-to-file.html?showComment=1210011480000#c3764869661334713725' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mysysad.com/2008/02/dump-sybase-database-to-file.html' ref='tag:blogger.com,1999:blog-34516211.post-2796629796757957271' source='http://www.blogger.com/feeds/34516211/posts/default/2796629796757957271' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-34516211.post-2077721958749662469</id><published>2008-02-29T02:32:00.000-08:00</published><updated>2008-02-29T02:32:00.000-08:00</updated><title type='text'>Hmmm. I can't say that I agree with you. I have se...</title><content type='html'>Hmmm. I can't say that I agree with you. I have seen on several occasions where people thought they were doing the right thing but in fact they were not. &lt;BR/&gt;&lt;BR/&gt;If a database that is about to be moved has been altered several times then it has to be recreated in exactly the same fashion on the receiving end, otherwise you risk ending up with segments containing both log and data. &lt;BR/&gt;&lt;BR/&gt;The following query will show you exactly how the database is constructed (to be run from the master database):&lt;BR/&gt;&lt;BR/&gt;select size/512, segmap from sysusages where dbid=[database id]&lt;BR/&gt;&lt;BR/&gt;You will need to know your database id (you can find it from running sp_helpdb) and you also need to know that the different segmap numbers mean. For example:&lt;BR/&gt;&lt;BR/&gt;1&gt; select size/512, segmap from sysusages where dbid=4;&lt;BR/&gt;             segmap&lt;BR/&gt; ----------- -----------&lt;BR/&gt;         200           3&lt;BR/&gt;         300           3&lt;BR/&gt;         100           4&lt;BR/&gt;         300           3&lt;BR/&gt;        1000           3&lt;BR/&gt;         500           3&lt;BR/&gt;         500           3&lt;BR/&gt;        1000           3&lt;BR/&gt;&lt;BR/&gt;Here we have a database that has a single log segment that is 100MB (segmap = 4) and several data segments that are a total of 3800MB (segmap = 3). If I want to recreate this database elsewhere then you will be making a mistake if you do this:&lt;BR/&gt;&lt;BR/&gt;create database newdb on data01=3800 log on log01=100 for load&lt;BR/&gt;&lt;BR/&gt;This will guarantee that you will mix and match log and data.&lt;BR/&gt;&lt;BR/&gt;You indicate that you think everybody knows this but my experience is the opposite. I have seen this mistake being done by Sybase admins - even in production sites. &lt;BR/&gt;&lt;BR/&gt;And as a last note, I might add that if you are seeing segmap numbers other than 3 or 4 on a user database then it might mean trouble. But that is another story alltogether....</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34516211/2796629796757957271/comments/default/2077721958749662469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34516211/2796629796757957271/comments/default/2077721958749662469'/><link rel='alternate' type='text/html' href='http://www.mysysad.com/2008/02/dump-sybase-database-to-file.html?showComment=1204281120000#c2077721958749662469' title=''/><author><name>Dabbi</name><uri>http://www.blogger.com/profile/03427511067559246372</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mysysad.com/2008/02/dump-sybase-database-to-file.html' ref='tag:blogger.com,1999:blog-34516211.post-2796629796757957271' source='http://www.blogger.com/feeds/34516211/posts/default/2796629796757957271' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-34516211.post-2367507479385829359</id><published>2008-02-28T08:23:00.000-08:00</published><updated>2008-02-28T08:23:00.000-08:00</updated><title type='text'>dabbi,If I find more time, I might write something...</title><content type='html'>dabbi,&lt;BR/&gt;&lt;BR/&gt;If I find more time, I might write something up in the future. Frankly speaking, I assumed most readers of this blog knows how to create the database on the receiving end.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34516211/2796629796757957271/comments/default/2367507479385829359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34516211/2796629796757957271/comments/default/2367507479385829359'/><link rel='alternate' type='text/html' href='http://www.mysysad.com/2008/02/dump-sybase-database-to-file.html?showComment=1204215780000#c2367507479385829359' title=''/><author><name>esofthub</name><uri>http://www.blogger.com/profile/10822058426751039502</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11633914086874244668'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mysysad.com/2008/02/dump-sybase-database-to-file.html' ref='tag:blogger.com,1999:blog-34516211.post-2796629796757957271' source='http://www.blogger.com/feeds/34516211/posts/default/2796629796757957271' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-34516211.post-3796776392309874950</id><published>2008-02-28T07:58:00.000-08:00</published><updated>2008-02-28T07:58:00.000-08:00</updated><title type='text'>Sybase isn't that bad, but I do agree that you wer...</title><content type='html'>Sybase isn't that bad, but I do agree that you were using the wrong platform. &lt;BR/&gt;&lt;BR/&gt;This is the fastest way to move a database from one Sybase ASE server to another. I would however recommend that you do a writeup of how to create the database on the receiving end since this tip is worthless if it isn't correctly created...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34516211/2796629796757957271/comments/default/3796776392309874950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34516211/2796629796757957271/comments/default/3796776392309874950'/><link rel='alternate' type='text/html' href='http://www.mysysad.com/2008/02/dump-sybase-database-to-file.html?showComment=1204214280000#c3796776392309874950' title=''/><author><name>Dabbi</name><uri>http://www.blogger.com/profile/03427511067559246372</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mysysad.com/2008/02/dump-sybase-database-to-file.html' ref='tag:blogger.com,1999:blog-34516211.post-2796629796757957271' source='http://www.blogger.com/feeds/34516211/posts/default/2796629796757957271' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-34516211.post-8110612685064106503</id><published>2008-02-28T07:20:00.000-08:00</published><updated>2008-02-28T07:20:00.000-08:00</updated><title type='text'>Thanks Noah for the comment. I figured many admins...</title><content type='html'>Thanks Noah for the comment. &lt;BR/&gt;&lt;BR/&gt;I figured many admins have used something similar or maybe something with bcp. I'm curious as what methods others are using or have used in the past.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34516211/2796629796757957271/comments/default/8110612685064106503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34516211/2796629796757957271/comments/default/8110612685064106503'/><link rel='alternate' type='text/html' href='http://www.mysysad.com/2008/02/dump-sybase-database-to-file.html?showComment=1204212000000#c8110612685064106503' title=''/><author><name>esofthub</name><uri>http://www.blogger.com/profile/10822058426751039502</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11633914086874244668'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mysysad.com/2008/02/dump-sybase-database-to-file.html' ref='tag:blogger.com,1999:blog-34516211.post-2796629796757957271' source='http://www.blogger.com/feeds/34516211/posts/default/2796629796757957271' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-34516211.post-9158330076777745366</id><published>2008-02-27T08:33:00.000-08:00</published><updated>2008-02-27T08:33:00.000-08:00</updated><title type='text'>I loathe SyBase, but when I was working for a loca...</title><content type='html'>I loathe SyBase, but when I was working for a local college, I was in charge of the dental lab's new server.  It stored patient records for the dental lab clinic, x-ray images, inventory and billing data.&lt;BR/&gt;&lt;BR/&gt;Windows 2000 with SyBase.  What a winning combo.  That server is one of the few things I hated about that job.&lt;BR/&gt;&lt;BR/&gt;I used a method similar to yours so that we could, likewise, back it up (with TSM).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34516211/2796629796757957271/comments/default/9158330076777745366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34516211/2796629796757957271/comments/default/9158330076777745366'/><link rel='alternate' type='text/html' href='http://www.mysysad.com/2008/02/dump-sybase-database-to-file.html?showComment=1204129980000#c9158330076777745366' title=''/><author><name>Noah</name><uri>http://www.blogger.com/profile/15271155305943176738</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10752488638245685985'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mysysad.com/2008/02/dump-sybase-database-to-file.html' ref='tag:blogger.com,1999:blog-34516211.post-2796629796757957271' source='http://www.blogger.com/feeds/34516211/posts/default/2796629796757957271' type='text/html'/></entry></feed>