You can upgrade an existing UltraLite database or schema with either the Upgrade Database Wizard or the Upgrade Old Database utility (ulunloadold).
Upgrade Database Wizard Choose the wizard if you want to be guided through the process and have help choosing available properties/options.
ulunloadold utility Choose the utility if you have either of the following requirements:
To upgrade an existing UltraLite database to version 11.0.0 (Sybase Central)
Carry out the standard precautions for upgrading software, including backing up the database. See Important upgrade precautions.
From the Start menu, choose Programs » SQL Anywhere 11 » Sybase Central.
Upgrade your database by choosing Tools » UltraLite 11 » Upgrade Database.
The Upgrade Database Wizard appears. Before continuing ensure you have decided:
A new UltraLite 11.0.0 database Choose this option to create the database and connect to it.
An existing UltraLite 11.0.0 database Choose this option if you already have already created a new database and you want to apply the schema of the old database to the new database.
Choose your upgrade source by selecting the appropriate option:
An Old Database Browse for an UltraLite database (*.udb or *.pdb).
An Old Schema File Browse for an UltraLite schema file (*.usm).
Connect to the file you selected and then click Next.
Choose your output destination:
New Database You must create a new database file and set the database properties you require. Follow the instructions in the wizard.
Use An Already Connected Database You can choose a connected database from the list provided for you.
Use An Existing Database That You Are Not Connected To Click Database to open the Connect window and connect to the existing UltraLite 11.0.0 database.
Follow the instructions of the wizard to make additional choices relating to your output destination. If you had trusted root certificates included in your previous version of UltraLite, ensure you add them back into the new UltraLite database.
Click Finish to upgrade the database.
If you had users in the previous version of the UltraLite database, and if you do not see them in the new database you have created, remember to add them. See Working with UltraLite users.
To upgrade an existing UltraLite database to version 11.0.0 (command line)
Carry out the standard precautions for upgrading software, including backing up the database. See Important upgrade precautions.
Ensure that the 11.0.0 version of UltraLite utilities are ahead of older UltraLite utilities in your system path. See Using the utilities.
Run the Unload Old Database utility (ulunloadold) to create an XML intermediary file using the following syntax:
ulunloadold -c "connection-string" [ options ] xml-file |
Ensure that you have:
All other options are optional.
For more information about supported options for the ulunloadold utility, see UltraLite Unload Old Database utility (ulunloadold).
Execute the Load XML to Database utility (ulload) to reload the XML into a new or existing UltraLite database.
If you are loading the XML into a new database, the -c connection-string option sets the connection parameters for that database (for example, the UID and PWD required to authenticate the UltraLite user).
The -o [ extended-options ] you specify depend on whether or not you are changing the characteristics/properties of the database (for example, changing a case-sensitive database to a case-insensitive database).
For a complete reference, see UltraLite Load XML to Database utility (ulload).
For example, upgrading an UltraLite 8.0.x schema file named dbschema8.usm into an existing UltraLite version 11.0.0 database named db.udb with an intermediary XML file named dbschema.xml requires the following two commands:
ulunloadold -c schema_file=dbschema8.usm dbschema.xml |
ulload -c DBF=db.udb dbschema.xml |
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |