You can unload data from a database to a reload file, a new database, or an existing database using the Unload utility (dbunload) on the command line.
Prérequis
For an unload without a reload, you must have the SELECT ANY TABLE system privilege. For an unload with reload, you must have the SELECT ANY TABLE and SERVER OPERATOR system privileges.
Run the Unload utility (dbunload), and use the -c option to specify the connection parameters.
Option | Action | ||
---|---|---|---|
Unload the entire database |
To unload the entire database to the directory C:\ServerTemp\DataFiles on the server computer:
|
||
Export data only |
Use the -d and -ss options. For example:
|
||
Export schema only |
Use the -n option. For example:
|
The statements required to recreate the schema and/or reload the tables are written to reload.sql in the client's current directory.
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |