dbTalk Databases Forums  

Restoring basic program

comp.databases.pick comp.databases.pick


Discuss Restoring basic program in the comp.databases.pick forum.



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

Default Restoring basic program - 04-02-2006 , 04:58 PM






Guys, last month I asked for your help in restoring the compiled file
for a basic program that we mistakingly compiled and the found out the
source on our machine was not used to compile this version. Thus we
needed to restore the original obj file back.

Well, I have not been able to restore this from our backup (which I
know works) and the boss has put my backside on the line telling me I
need to restore this application in the next day or so OR ELSE.

The program is called CBP CONTRACTMAKER. From your previous help, I
tried to do the restore as follows:

Logged into the account (
SET-DEVICE 5
SEL-RESTORE DICT CBP CONTRACTMAKER (O
Restore from F)ull/Account, I)ncremental or T)ransaction log (f/i/t):F
account name on tape:MATAM
file nameICT CBP

.... runs through list of files ...

Restore from incremental save tape (y/n)? n
Restore from transaction log tape (y/n)? n
[992] 0 item(s) have been restored

So for some reason it is not finding the DICT item on tape. I know it
is there, as this is the same filesave that was originally used to
install the system when we moved releases in October.

What am I doing wrong ? I need help. (Warning, my pick experience is
novice).

Matt

PS: System is RHEL4 + D3/Linux 7.4.2


Reply With Quote
  #2  
Old   
Steve Lancour
 
Posts: n/a

Default Re: Restoring basic program - 04-02-2006 , 05:06 PM






Matt Hyne wrote:

Quote:
Guys, last month I asked for your help in restoring the compiled file
for a basic program that we mistakingly compiled and the found out the
source on our machine was not used to compile this version. Thus we
needed to restore the original obj file back.

Well, I have not been able to restore this from our backup (which I
know works) and the boss has put my backside on the line telling me I
need to restore this application in the next day or so OR ELSE.

The program is called CBP CONTRACTMAKER. From your previous help, I
tried to do the restore as follows:

Logged into the account (
SET-DEVICE 5
SEL-RESTORE DICT CBP CONTRACTMAKER (O
Restore from F)ull/Account, I)ncremental or T)ransaction log (f/i/t):F
account name on tape:MATAM
file nameICT CBP

... runs through list of files ...

Restore from incremental save tape (y/n)? n
Restore from transaction log tape (y/n)? n
[992] 0 item(s) have been restored

So for some reason it is not finding the DICT item on tape. I know it
is there, as this is the same filesave that was originally used to
install the system when we moved releases in October.

What am I doing wrong ? I need help. (Warning, my pick experience is
novice).

Matt

PS: System is RHEL4 + D3/Linux 7.4.2

Matt,

Are you sure the CBP file is in the MATAM account? Can you post here
the contents of the MATAM account's MD entry for CBP? (From TCL in the
MATAM account, "ED MD CBP" <return>, then "P" <return> to list the
contents, then "EX" <return> to get back out to TCL. Paste here the
lines displayed after you typed "P" and <return>).

Steve Lancour


Reply With Quote
  #3  
Old   
(latimerp)
 
Posts: n/a

Default Re: Restoring basic program - 04-02-2006 , 05:23 PM



If you have the disk space you could restore the whole account.
This would answer all questions. If it's not a Q-pointer the
object should be functional with a *CATALOG* command to a
Q-Pointer to the object code in the new account. This is of
course a *quick* solution and would require cleanup.

Patrick, <;=)


Steve Lancour wrote:
Quote:
Matt Hyne wrote:

Guys, last month I asked for your help in restoring the compiled file
for a basic program that we mistakingly compiled and the found out the
source on our machine was not used to compile this version. Thus we
needed to restore the original obj file back.

Well, I have not been able to restore this from our backup (which I
know works) and the boss has put my backside on the line telling me I
need to restore this application in the next day or so OR ELSE.

The program is called CBP CONTRACTMAKER. From your previous help, I
tried to do the restore as follows:

Logged into the account (
SET-DEVICE 5
SEL-RESTORE DICT CBP CONTRACTMAKER (O
Restore from F)ull/Account, I)ncremental or T)ransaction log (f/i/t):F
account name on tape:MATAM
file nameICT CBP

... runs through list of files ...

Restore from incremental save tape (y/n)? n
Restore from transaction log tape (y/n)? n
[992] 0 item(s) have been restored

So for some reason it is not finding the DICT item on tape. I know it
is there, as this is the same filesave that was originally used to
install the system when we moved releases in October.

What am I doing wrong ? I need help. (Warning, my pick experience is
novice).

Matt

PS: System is RHEL4 + D3/Linux 7.4.2


Matt,

Are you sure the CBP file is in the MATAM account? Can you post here
the contents of the MATAM account's MD entry for CBP? (From TCL in the
MATAM account, "ED MD CBP" <return>, then "P" <return> to list the
contents, then "EX" <return> to get back out to TCL. Paste here the
lines displayed after you typed "P" and <return>).

Steve Lancour

Reply With Quote
  #4  
Old   
Matt Hyne
 
Posts: n/a

Default Re: Restoring basic program - 04-02-2006 , 05:50 PM



Ok, I had a win. I found out the CBP was an alias (pointer), so I use
the real name CLEVELAND.BP and I managed to restore the file.

However, when I run CONTRACTMAKER it still runs the wrong version (not
the version restored).

Is there something I have to do to get D3 to see that I have put a new
object file on disk ?

Matt


Reply With Quote
  #5  
Old   
Matt Hyne
 
Posts: n/a

Default Re: Restoring basic program - 04-02-2006 , 05:53 PM



| Can you post here the contents of the MATAM account's MD entry for
CBP?

:ED MD CBP
top
..P
001 Q
002 CC.MASTER
003 CBP

I'm not sure what CC.MASTER is ?


Reply With Quote
  #6  
Old   
Mark Brown
 
Posts: n/a

Default Re: Restoring basic program - 04-02-2006 , 06:00 PM



CC.MASTER is an account where the file CBP lives.

Try this:

SET-DEVICE 5
SEL-RESTORE DICT CBP CONTRACTMAKER (O
Restore from F)ull/Account, I)ncremental or T)ransaction log (f/i/t):F
account name on tape:CC.MASTER
file nameICT CBP

Mark Brown


"Matt Hyne" <matt (AT) hyne (DOT) com> wrote

Quote:
| Can you post here the contents of the MATAM account's MD entry for
CBP?

:ED MD CBP
top
.P
001 Q
002 CC.MASTER
003 CBP

I'm not sure what CC.MASTER is ?




Reply With Quote
  #7  
Old   
(latimerp)
 
Posts: n/a

Default Re: Restoring basic program - 04-02-2006 , 06:02 PM



Matt Hyne wrote:

Quote:
| Can you post here the contents of the MATAM account's MD entry for
CBP?

:ED MD CBP
top
.P
001 Q
002 CC.MASTER
003 CBP

I'm not sure what CC.MASTER is ?

If is the Account. CBP is th4e source file.
Pray the Account has not been DX'd

Patrick <;=)


Reply With Quote
  #8  
Old   
(latimerp)
 
Posts: n/a

Default Re: Restoring basic program - 04-02-2006 , 06:03 PM



Matt Hyne wrote:

Quote:
Ok, I had a win. I found out the CBP was an alias (pointer), so I use
the real name CLEVELAND.BP and I managed to restore the file.

However, when I run CONTRACTMAKER it still runs the wrong version (not
the version restored).

Is there something I have to do to get D3 to see that I have put a new
object file on disk ?

Matt

CATALOG FILE PROGRAM


Reply With Quote
  #9  
Old   
Mike Wooding
 
Posts: n/a

Default Re: Restoring basic program - 04-03-2006 , 04:39 AM



"Matt Hyne" <matt (AT) hyne (DOT) com> wrote

Quote:
Ok, I had a win. I found out the CBP was an alias (pointer), so I use
the real name CLEVELAND.BP and I managed to restore the file.

However, when I run CONTRACTMAKER it still runs the wrong version (not
the version restored).

Is there something I have to do to get D3 to see that I have put a new
object file on disk ?

Matt
From TCL in the MATAM account use:

COMPILE CBP CONTRACTMAKER

Followed by (for the sake of completeness only)

CATALOG CBP CONTRACTMAKER

If that doensn't work, it would seem that the replacement source still isn't
in situ.

Hope that helps.

With Kindest Regards

Mike Wooding




Reply With Quote
  #10  
Old   
REBROWN
 
Posts: n/a

Default Re: Restoring basic program - 04-03-2006 , 06:25 AM



If you compile you will overwrite the newly restored object code.

Richard

<snip>
Quote:
From TCL in the MATAM account use:

COMPILE CBP CONTRACTMAKER

Followed by (for the sake of completeness only)

CATALOG CBP CONTRACTMAKER

If that doensn't work, it would seem that the replacement source still
isn't
in situ.

Hope that helps.

With Kindest Regards

Mike Wooding





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 - 2013, Jelsoft Enterprises Ltd.