ASE 12.5.3以上的版本可以进行跨平台dump/load 。
一.执行的 dbcc checkdb或任何其他dbcc命令来校验数据库运行干净
$ isql -Usa -P -SASE125
1> dbcc checkdb("tec")
2> go
Checking tec: Logical pagesize is 2048 bytes
Checking sysobjects: Logical pagesize is 2048 bytes
The total number of data pages in this table is 32.
Table has 336 data rows.
……………………………………………………….
……………………………………………………….
Checking tgh_jx: Logical pagesize is 2048 bytes
The total number of data pages in this table is 1.
Table has 25 data rows.
Checking gy_con_area: Logical pagesize is 2048 bytes
The total number of data pages in this table is 1.
Table has 17 data rows.
Checking gy_user_work_card_s1: Logical pagesize is 2048 bytes
The total number of data pages in this table is 3.
Table has 106 data rows.
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.
二.使用sp_dboption设置数据为单用户模式
1> use master
2> go
1> sp_dboption tec,"single user",true
2> go
Database option 'single user' turned ON for database 'tec'.
Running CHECKPOINT on database 'tec' for option 'single user' to take effect.
(return status = 0)
三.使用sp_flushstats将内存中存储的统计信息刷新到systabstats系统表。你必须至少等待10秒钟,等待进程完成。
1> use tec
2> go
1> sp_flushstats
2> go
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.
(return status = 0)
四.运行checkpoint命令将所有脏页(自上次写入以来被更新的页)写入到数据库设备。你必须至少等待10秒钟,等待进程完成。
1> checkpoint
2> go
五.运行卸载数据库。
1> use master
2> go
1> dump database tec to "/data_backup/tec0912zm"
2> go
Backup Server session id is: 4. Use this value when executing the
'sp_volchanged' system stored procedure after fulfilling any volume change
request from the Backup Server.
Backup Server: 4.41.1.1: Creating new disk file /data_backup/tec0912zm.
Backup Server: 6.28.1.1: Dumpfile name 'tec0825608D59 ' section number 1
mounted on disk file '/data_backup/tec0912zm'
Backup Server: 4.58.1.1: Data base tec: 14644 kilobytes DUMPED.
Backup Server: 4.58.1.1: Database tec: 36278 kilobytes DUMPED.
Backup Server: 4.58.1.1: Database tec: 57912 kilobytes DUMPED.
…………………………………………………………………………….
Backup Server: 4.58.1.1: Database tec: 585206 kilobytes DUMPED.
Backup Server: 4.58.1.1: Database tec: 586744 kilobytes DUMPED.
Backup Server: 3.43.1.1: Dump phase number 1 completed.
Backup Server: 3.43.1.1: Dump phase number 2 completed.
Backup Server: 3.43.1.1: Dump phase number 3 completed.
Backup Server: 4.58.1.1: Database tec: 586752 kilobytes DUMPED.
Backup Server: 3.42.1.1: DUMP is complete (database tec).
六.取消sp_dboption单用户模式设置
1> sp_dboption tec,"single user",false
2> go
Database option 'single user' turned OFF for database 'tec'.
Running CHECKPOINT on database 'tec' for option 'single user' to take effect.
(return status = 0)
(必须在master 库 更改database options
You must be in the 'master' database in order to change database options.)
七.将dump文件拷贝到windows -ASE 服务器中
1.可使用ftp拷贝
2.也可以使用ftp工具 拷贝
八.将windows-ASE服务器中建设备、建数据库
disk init name = 'webquery_data',
physname = 'c:\sybase\data\webquery_data.dat',
size = '300M',
go
disk init name = 'webquery_log',
physname = 'c:\sybase\data\webquery_log.dat',
size = '90M',
go
九.建数据库
CREATE DATABASE cpy_webquery
ON webquery_data = '300M'
LOG ON webquery_data = '90M'
go
十.Load数据库
load database cpy_webquery from "d:\data_backup\webquery090317.dat"
十一.数据库联机
online database cpy_webqeury
十二.重编译索引
sp_post_xpload
以下为官方文档 原文:
Dump and Load a Database Across Platforms
Adaptive Server Enterprise supports both the big endian and little endian platforms.
Overview
Adaptive Server Enterprise, version 12.5.2, allowed the dump and load of databases across platforms with the same endianness architecture.
With Adaptive Server Enterprise, version 12.5.3, the dump and load databases across platforms can now be done with different endianness architecture. This means that a dump database and load database can be done from a big endian platform to a little endian platform and from a little endian platform to a big endian platform.
A big endian platform is where the most significant byte is with the lowest address. The little endian platform is where, within a given 16 or 32 bit word, bytes at the lower addresses have a lower significance.
There is no syntax change with dump or load database in version 12.5.3. Adaptive Server automatically detects the endian of the database dump file at the time of a load database, then performs the necessary conversions. Loads in an older version, such as 11.9 and 12.0, are also supported. The dump and load can be from 32 bit to 64 bit platforms, and vice versa.
Endian platforms
Platforms supported:
Big endian Solaris 32/64 IBM 32/64 SGI 32/64 HPPA 64 HPIA 64 MAC 32
Little endian Linux 1A 32 Linux 1A 64 NT Sun X86
Dump and load across platforms with the same endian architecture
When dump database and load database are done across platforms with the same endian architecture, user and system data do not require conversions. There are no limitations on operations with the dump and load of a database. Adaptive Server Enterprise supports dump and load processes for transactions and databases across platforms.
Dump and load across platforms with different endian architecture
Dumping a database
Before you run dump database, use the following procedures to move the database to a transactional quiescent status:
1Verify the database runs cleanly by executing dbcc checkdb or any other dbcc command.
2To prevent concurrent updates from open transactions by other processes during the dump database, place the database in a single user mode with sp_dboption.
3Flush statistics to systabstats with sp_flushstats. You must wait for at least ten seconds for the process to complete.
4Run checkpoint against the database to flush updated pages. You must wait for at least ten seconds for the process to complete.
5Run dump database.
Loading a database
Once you load the database, Adaptive Server automatically identifies the endian type on the dump file and performs all necessary conversions during the load database and online database.
Note When Adaptive Server converts the order for the index rows some may be incorrect, you must recreate the indexes after loading the database. See “sp_post_xpload” on page 27 for rebuilding indexes.
Restrictions
•Remote dump transaction and load transaction to or from a back up server are not supported.
•A password protected dump file cannot be loaded across platforms.
•dump transaction and load transaction is not allowed across platforms.
•If you dump database and load database for a parsed XML object, you must parse the text again after the load database is completed.
•You cannot perform the dump database and load database across platforms on Adaptive Servers version earlier than 11.9.
•Embedded data structures stored as binary, varbinary, or image columns are not done because Adaptive Server cannot translate these structures.
•When you dump and load a master database, you must recreate all logins in the syslogins because passwords are incompatible between platforms.
•Reset the password using the command line argument -psa on a master database after the load database is completed.
分享到:
相关推荐
SYBASE 数据库的 DUMP 与 LOAD 操作详解 SYBASE 数据库的 DUMP 与 LOAD 操作是数据库管理员经常需要执行的任务, nhằm确保数据库的安全和可靠性。本文将详细介绍 SYBASE 数据库的 DUMP 与 LOAD 操作的步骤和注意...
### Sybase 12.5.3 跨平台备份与恢复错误解决 #### 概述 Sybase Adaptive Server Enterprise (ASE) 版本 12.5.3 引入了增强的备份与恢复功能,这些功能解决了在不同平台上移动数据库时遇到的问题,即能够从一个...
Sybase提供了多种工具来进行数据备份与恢复,其中最常用的是`dump`和`load`命令。此外,还可以通过Sybase Central等图形化工具进行操作,但通常情况下,命令行方式更为灵活高效。 - **一致性检查**:在进行备份之前...
在 Linux 平台上安装 Sybase 需要一定的技术背景,下面将详细介绍整个安装过程及其相关的配置要点。 #### 一、用户与权限配置 在 Linux 系统上安装 Sybase 数据库前,首先要创建一个专用的用户账户来运行 Sybase ...
本软件能够打开或导出DUMP、MCT、EML、TXT格式文件,支持拖拽打开、自动分析和文件对比。可以将S70导出为S50。MCT文件为文本文件,提供给手机MCT使用。EML文件为文本文件,提供给PM3使用。选中数据转换功能只截取...
### dump文件load后数据库访问不了解决办法 在数据库管理与维护的过程中,经常需要对数据库进行备份与恢复操作。其中,dump文件(也称为备份文件)是数据库备份的一种常见形式,而load则是将备份数据恢复到数据库的...
Dump文件是一种用于记录系统或应用程序在异常崩溃时内存状态的文件,它包含了程序运行时的内存快照,通常用于故障排查和调试。将Dump文件转换为txt文本文件可以帮助开发者更方便地阅读和分析这些数据,寻找可能导致...
JavaCore和HeapDump是两种重要的Java应用程序诊断工具,它们用于理解和优化Java应用程序的性能和内存使用情况。在Java运行环境中,遇到性能问题或者内存泄漏时,开发者通常会借助这类工具来定位问题。 JavaCore,也...
Dump转txt.exe工具
标题中的“TXT-dump互转.zip”表明这是一个关于在TXT文本格式与二进制dump文件之间转换的工具或教程的压缩包。描述中同样提到“TXT-dump互转.zip”,暗示了内容可能包括如何将TXT文件转换为dump文件,反之亦然。标签...
在这个话题中,我们将深入探讨三个与文件操作相关的MySQL函数:`INTO OUTFILE`、`INTO DUMPFILE`和`LOAD_FILE()`,它们在SQL注入攻击中扮演着重要角色。 1. `INTO OUTFILE`: 这个函数用于将查询结果直接导出到一...
dumptxt互转
"Dump/Restore"工具就是针对这些文件系统设计的一套开源备份解决方案。本文将详细讲解dump和restore命令的功能、使用方法以及其在备份和恢复过程中的作用。 "Dump"是一个功能强大的命令行工具,它允许用户对Linux...
DumpTxt互转工具
2. 恢复数据库:load database cwbase1 from cwbase1_dup(直接从设备中恢复)或 load database cwbase1 from 'e:\back\cwbase1.dup'(直接从 dump 文件中恢复)。 3. 在线数据库:online database cwbase1 恢复完成...
标题中的“dump转txt工具”指的是用于将数据库的dump文件转换为文本文件(txt)的程序。在IT领域,数据库的dump通常是一个包含了数据库结构和数据的二进制文件,常用于备份或迁移数据。这样的工具能够帮助用户解析...
密码3333
标题中的“dumptxt转换工具”指的是一个程序或软件,其主要功能是将特定格式的“dump”文件转换成常见的文本文件(txt)。在IT领域,dump文件通常是指系统崩溃时产生的内存转储,或者数据库的备份文件,它们包含了...