If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > SQL2040N - Database alias parameter is not valid

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-03-04, 01:01
Prashant K Prashant K is offline
Registered User
 
Join Date: Jun 2004
Posts: 8
Restore database from backup file - error code : SQL2040N

I am trying to restore a database using option 'Database -> create -> database from backup' option of Control Center. after filling in the fields for database name, backup device, backup file date & time, i am not able to successfully restore the database. the message displayed is 'SQL2040N - database alias paramater <dbalias> not valid'. I gave the same alias name as that of the database of which the backup was taken.

SQL2040N - says database alias parameter not valid
DB2 version - 4.0

where am i going wrong ?

Regds
Prashant

Last edited by Prashant K; 06-03-04 at 01:23.
Reply With Quote
  #2 (permalink)  
Old 06-03-04, 08:48
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
Explanation

Hi Prashant,

Given below is the explanation of the error.

-----------------------------------------------------
C:\>db2 ? SQL2040N


SQL2040N The database alias parameter "<dbalias>" is not valid
or not specified.

Explanation:

The application calling the Backup or Restore utility has
supplied a database alias parameter that is not valid. The alias
must be 1 to 8 bytes and the characters must be chosen from the
database manager base character set.

User Response:

Reissue the Backup or Restore command with a valid database
alias.
---------------------------------------------------------------------

Try giving a dbalias name which is in between 1-8 characters and I think that should solve your problem
__________________
HTH

Nitin

Ask the experienced rather than the learned
Reply With Quote
  #3 (permalink)  
Old 06-18-04, 08:31
ForSaken ForSaken is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
What a useless reply...

The guy has this error in his face.. We know what the generic HELP says since it comes with the SQL2040N error message we are getting.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On