dbTalk Databases Forums  

Database is "too old" to unload error

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Database is "too old" to unload error in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jonesy
 
Posts: n/a

Default Database is "too old" to unload error - 08-11-2009 , 10:58 AM






I'm trying to unload a very old Sybase database in order to use it
with the new version 11 but I'm running into a quagmire of SQL errors:

Using unload.exe (version 11.0.1) I receive the following error:
Quote:
Database "dmgr" is too old to be unloaded with this version of DBUNLOAD.
Not the most helpful message... It won't even let me unload the
database schema alone. I naturally tried to use some older versions
of dbunload on the file and received the following results:

Using unload.exe (version 9.0.2) I receive:
Quote:
***** SQL error: Invalid option 'NON_KEYWORDS' -- no PUBLIC setting exists
Using unload.exe (version 7.0.1) I receive:
***** SQL error: User ID 'dbo' does not exist

I'm out of ideas on how to proceed. Does anyone have any
suggestions? Is anyone familiar with this problem? Any suggestions
would be greatly appreciated.

Thanks,

Mike

Reply With Quote
  #2  
Old   
Josh Savill [Sybase]
 
Posts: n/a

Default Re: Database is "too old" to unload error - 08-11-2009 , 12:05 PM






Can you be specific about the age of this database? Do you know the version and build?

--
Joshua Savill
Sybase Inc. - Product Manager


Jonesy wrote:
Quote:
I'm trying to unload a very old Sybase database in order to use it
with the new version 11 but I'm running into a quagmire of SQL errors:

Using unload.exe (version 11.0.1) I receive the following error:
Database "dmgr" is too old to be unloaded with this version of DBUNLOAD.

Not the most helpful message... It won't even let me unload the
database schema alone. I naturally tried to use some older versions
of dbunload on the file and received the following results:

Using unload.exe (version 9.0.2) I receive:
***** SQL error: Invalid option 'NON_KEYWORDS' -- no PUBLIC setting exists

Using unload.exe (version 7.0.1) I receive:
***** SQL error: User ID 'dbo' does not exist

I'm out of ideas on how to proceed. Does anyone have any
suggestions? Is anyone familiar with this problem? Any suggestions
would be greatly appreciated.

Thanks,

Mike

Reply With Quote
  #3  
Old   
Jonesy
 
Posts: n/a

Default Re: Database is "too old" to unload error - 08-11-2009 , 01:53 PM



Josh,

Thanks for the reply.

This is a legacy system so I don't have knowledge of which build was
used to create the DB. I know it was <= 5.0 because Sybase Central
spits out an error to that extent when attempting to open the DB. The
'database_version' field of the 'SYSINFO' table is set to '10', I
dunno if that helps. Is there another way to extract the version?

Thanks in advance,

Mike

On Aug 11, 1:05*pm, "Josh Savill [Sybase]"
<no_spam_jsavill_no_s... (AT) sybase (DOT) com> wrote:
Quote:
Can you be specific about the age of this database? Do you know the version and build?

--
Joshua Savill
Sybase Inc. - Product Manager

Jonesy wrote:
I'm trying to unload a very old Sybase database in order to use it
with the new version 11 but I'm running into a quagmire of SQL errors:

Using unload.exe (version 11.0.1) I receive the following error:
Database "dmgr" is too old to be unloaded with this version of DBUNLOAD.

Not the most helpful message... *It won't even let me unload the
database schema alone. *I naturally tried to use some older versions
of dbunload on the file and received the following results:

Using unload.exe (version 9.0.2) I receive:
****** SQL error: Invalid option 'NON_KEYWORDS' -- no PUBLIC settingexists

Using unload.exe (version 7.0.1) I receive:
* ***** SQL error: User ID 'dbo' does not exist

I'm out of ideas on how to proceed. *Does anyone have any
suggestions? *Is anyone familiar with this problem? *Any suggestions
would be greatly appreciated.

Thanks,

Mike

Reply With Quote
  #4  
Old   
Bruce Hay
 
Posts: n/a

Default Re: Database is "too old" to unload error - 08-11-2009 , 03:02 PM



Normally, the current version of dbunload should be used to unload a database; however, in this case
I would recommend using an older version.

I'm a bit surprised version 9.0.2 did not work. Make sure you are using a current 9.0.2 build,
and do the rebuild as separate steps. If necessary, you could try connecting to the database using a 9.0.2 server
and execute:
set option PUBLIC.Non_keywords=''
then try the unload again.

SQL Anywhere Developer Community:
http://www.sybase.com/developer/libr...ere-techcorner


SQL Anywhere Blog Center: http://www.sybase.com/sqlanyblogs




Jonesy wrote:
Quote:
Josh,

Thanks for the reply.

This is a legacy system so I don't have knowledge of which build was
used to create the DB. I know it was <= 5.0 because Sybase Central
spits out an error to that extent when attempting to open the DB. The
'database_version' field of the 'SYSINFO' table is set to '10', I
dunno if that helps. Is there another way to extract the version?

Thanks in advance,

Mike

On Aug 11, 1:05 pm, "Josh Savill [Sybase]"
no_spam_jsavill_no_s... (AT) sybase (DOT) com> wrote:
Can you be specific about the age of this database? Do you know the version and build?

--
Joshua Savill
Sybase Inc. - Product Manager

Jonesy wrote:
I'm trying to unload a very old Sybase database in order to use it
with the new version 11 but I'm running into a quagmire of SQL errors:
Using unload.exe (version 11.0.1) I receive the following error:
Database "dmgr" is too old to be unloaded with this version of DBUNLOAD.
Not the most helpful message... It won't even let me unload the
database schema alone. I naturally tried to use some older versions
of dbunload on the file and received the following results:
Using unload.exe (version 9.0.2) I receive:
***** SQL error: Invalid option 'NON_KEYWORDS' -- no PUBLIC setting exists
Using unload.exe (version 7.0.1) I receive:
***** SQL error: User ID 'dbo' does not exist
I'm out of ideas on how to proceed. Does anyone have any
suggestions? Is anyone familiar with this problem? Any suggestions
would be greatly appreciated.
Thanks,
Mike

Reply With Quote
  #5  
Old   
Nick Elson [Sybase iAnywhere]
 
Posts: n/a

Default Re: Database is "too old" to unload error - 08-11-2009 , 03:41 PM



I concur with Bruce about it being strange that V9 did not
handle this but since your database is an early V4.0 data store,
maybe you should use the V9 DBUPGRAD.exe utility to
see if that cleans up any ancient history.

I found and older V4 database (only slightly newer than
yours) and once I ran dbupgrade I got past the two errors
you were seeing.

In short do these 3 steps in this order:
1 - V9.0.2 dbupgrad -c "UID=....;DBF=<olddb.db>"
2 - V9.0.2 dbunload -ar -c "UID=....;DBF=<olddb.db>"
3 - V11.0.x dbunload -ar -c ....

and you should be good for the meta-structure problems
you are hitting. You may not even need to do step #2
(untested) going straight to step #3.

CAVEAT: databases that old may have some undetected
corruption in them which can cause steps #2 and #3 to
fail. If you hit a problem of that kind then, doing step #2
as a manual rebuild will be required.

Best of luck



[incidentally the dbo account did not exist until 5.0 and the
non_keywords option was around that same time frame]
"Bruce Hay" <h_a_y_@_i_a_n_y_w_h_e_r_e_d_o_t_c_o_m> wrote

Quote:
Normally, the current version of dbunload should be used to unload a
database; however, in this case
I would recommend using an older version.

I'm a bit surprised version 9.0.2 did not work. Make sure you are using a
current 9.0.2 build,
and do the rebuild as separate steps. If necessary, you could try
connecting to the database using a 9.0.2 server
and execute:
set option PUBLIC.Non_keywords=''
then try the unload again.

SQL Anywhere Developer Community:
http://www.sybase.com/developer/libr...ere-techcorner


SQL Anywhere Blog Center: http://www.sybase.com/sqlanyblogs




Jonesy wrote:
Josh,

Thanks for the reply.

This is a legacy system so I don't have knowledge of which build was
used to create the DB. I know it was <= 5.0 because Sybase Central
spits out an error to that extent when attempting to open the DB. The
'database_version' field of the 'SYSINFO' table is set to '10', I
dunno if that helps. Is there another way to extract the version?

Thanks in advance,

Mike

On Aug 11, 1:05 pm, "Josh Savill [Sybase]"
no_spam_jsavill_no_s... (AT) sybase (DOT) com> wrote:
Can you be specific about the age of this database? Do you know the
version and build?

--
Joshua Savill
Sybase Inc. - Product Manager

Jonesy wrote:
I'm trying to unload a very old Sybase database in order to use it
with the new version 11 but I'm running into a quagmire of SQL errors:
Using unload.exe (version 11.0.1) I receive the following error:
Database "dmgr" is too old to be unloaded with this version of
DBUNLOAD.
Not the most helpful message... It won't even let me unload the
database schema alone. I naturally tried to use some older versions
of dbunload on the file and received the following results:
Using unload.exe (version 9.0.2) I receive:
***** SQL error: Invalid option 'NON_KEYWORDS' -- no PUBLIC setting
exists
Using unload.exe (version 7.0.1) I receive:
***** SQL error: User ID 'dbo' does not exist
I'm out of ideas on how to proceed. Does anyone have any
suggestions? Is anyone familiar with this problem? Any suggestions
would be greatly appreciated.
Thanks,
Mike

Reply With Quote
  #6  
Old   
Jonesy
 
Posts: n/a

Default Re: Database is "too old" to unload error - 08-11-2009 , 03:51 PM



Bruce,

After executing your suggested 'SET' statement, the unload on version
9 worked.

Thanks a million,

Mike

On Aug 11, 4:02*pm, Bruce Hay <h_a_y_@_i_a_n_y_w_h_e_r_e_d_o_t_c_o_m>
wrote:
Quote:
Normally, the current version of dbunload should be used to unload a database; however, in this case
I would recommend using an older version.

I'm a bit surprised version 9.0.2 did not work. Make sure you are using acurrent 9.0.2 build,
and do the rebuild as separate steps. If necessary, you could try connecting to the database using a 9.0.2 server
and execute:
* * * * set option PUBLIC.Non_keywords=''
then try the unload again.

SQL Anywhere Developer Community:http://www.sybase.com/developer/libr...ere-techcorner

SQL Anywhere Blog Center:http://www.sybase.com/sqlanyblogs

Jonesy wrote:
Josh,

Thanks for the reply.

This is a legacy system so I don't have knowledge of which build was
used to create the DB. *I know it was <= 5.0 because Sybase Central
spits out an error to that extent when attempting to open the DB. *The
'database_version' field of the 'SYSINFO' table is set to '10', I
dunno if that helps. *Is there another way to extract the version?

Thanks in advance,

*Mike

On Aug 11, 1:05 pm, "Josh Savill [Sybase]"
no_spam_jsavill_no_s... (AT) sybase (DOT) com> wrote:
Can you be specific about the age of this database? Do you know the version and build?

--
Joshua Savill
Sybase Inc. - Product Manager

Jonesy wrote:
I'm trying to unload a very old Sybase database in order to use it
with the new version 11 but I'm running into a quagmire of SQL errors:
Using unload.exe (version 11.0.1) I receive the following error:
Database "dmgr" is too old to be unloaded with this version of DBUNLOAD.
Not the most helpful message... *It won't even let me unload the
database schema alone. *I naturally tried to use some older versions
of dbunload on the file and received the following results:
Using unload.exe (version 9.0.2) I receive:
****** SQL error: Invalid option 'NON_KEYWORDS' -- no PUBLIC setting exists
Using unload.exe (version 7.0.1) I receive:
* ***** SQL error: User ID 'dbo' does not exist
I'm out of ideas on how to proceed. *Does anyone have any
suggestions? *Is anyone familiar with this problem? *Any suggestions
would be greatly appreciated.
Thanks,
Mike

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.