× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Paul,

I do a similar Save of libraries and restore to libraries on a different LPAR.
I haven't run into the stored procedure issue, but the Xlib LF issue.
In order for the Xlib LF to restore correctly, I have to restore to the same library name, and rename the libraries afterwards.

Did you ever try restoring to the same library?

I'd like to know more about the external stored procedure issue.
We don't use them, but our primary 3rd party product does, I think.

1) How can you identify if you have "external stored procedures"?

2) What object type are they?

Paul

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jim Oberholtzer
Sent: Wednesday, January 04, 2017 7:52 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: SAVLIB/RSTLIB and external stored procedures

Rob is correct about the system catalogs being your friend, and sure call it in, but I highly doubt you're going to get the responses you expect.

Stored procedures have been a problem with Save/Restore for some time and are the chief source of pain in migrations and HA environments. I tell all of my customers to have a plan to recreate stored procedures as part of the DR plan, and usually have special procedures for them in an HA environment.
Due to the way PowerHA does things it normally does not have an issue with them, nor do a couple of the other vendors but they are still the focal point of most of the recovery problems

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Rob Berendt
Sent: Wednesday, January 04, 2017 6:41 AM
To: Midrange Systems Technical Discussion
Subject: Re: SAVLIB/RSTLIB and external stored procedures

First, I would test this.
Second, I would open a ticket if it didn't work.
Third, I would eschew manual lists and I would look at the system catalog to create an automated list on a periodic basis. SYSPROCS, SYSFUNCS, etc.


Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From: Paul Bailey <PabloMotte+Midrange@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 01/04/2017 07:37 AM
Subject: Re: SAVLIB/RSTLIB and external stored procedures
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>



We're just starting with using stored procedures and are getting worried
that we'd have to maintain a list of stored procedures that need to be
manually re-created in a Disaster Recovery situation. Surely SAVLIB/RSTLIB
should be able to handle this by itself?.

On 4 January 2017 at 11:35, DrFranken <midrange@xxxxxxxxxxxx> wrote:

We ran into the same thing with a migration recently. It does not
restore
them as desired. In our case it was one time and the developer said:
There
are three, I'll recreate them. We did not investigate further.

- Larry "DrFranken" Bolhuis

www.Frankeni.com
www.iDevCloud.com - Personal Development IBM i timeshare service.
www.iInTheCloud.com - Commercial IBM i Cloud Hosting.

On 1/4/2017 6:08 AM, Paul Bailey wrote:

Hi,

Does SAVLIB save external stored procedures? And does RSTLIB restore
them
to a different library?

I have a procedure created with:



CREATE PROCEDURE LIVEFIL/GETNEWCLAIMNUMBER(OUT REFERENCE INTEGER )

LANGUAGE RPGLE NOT DETERMINISTIC NO SQL EXTERNAL NAME

LIVEPGM/TR1406 PARAMETER STYLE GENERAL

Every night I save library LIVEFIL out to a tape. Much later in the
night
I
also restore LIVEFIL from that tape into library CLAIMFIL (after
completely
removing the older CLAIMFIL). Every morning the above procedure does
not
exist in CLAIMFIL. LIVEFIL and CLAIMFIL are not "schema", just plain
libraries.

With backup procedures of other DBMSs (e.g. MariaDB) all procedure and
table definitions are saved with the data backups, and on restore to a
new
database anything missing is recreated automatically.


-Paul.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.