Member since Apr 21, 2009, follows 1 people, 2 public groups, 29 public bookmarks (201 total).
More »
Tags
More »
Recent Bookmarks and Annotations
- untitled on 2009-05-23
- MFFA - Free blogger,joomla,drupal,wordpress templates and web development resources on 2009-05-23
- RINL - MT(T) Recruitment on 2009-05-13
- Indian Administrative Services, List of Civil Services on 2009-05-13
- ::Welcome to Employment News ::| Govt. Jobs, Jobs in India, Vacancy in Govt. Sector, Career in Govt. Sector on 2009-05-13
- Pauls Online Notes : Calculus I - Integrals on 2009-05-04
- chemical bonding - Google Video on 2009-04-26
- Dense exercises on the Behance Network on 2009-04-26
-
DB2 Basics: Cloning DB2 Databases Using Redirected Restore on 2009-04-23
-
- Issue the RESTORE DATABASE command with the REDIRECT option.
- Use the SET TABLESPACE CONTAINERS command to define table space containers for the restored database (DB2 needs to know where you want the table spaces to reside on the target system.)
- Issue the RESTORE DATABASE command again, this time specifying the CONTINUE option.
database restore operation uses a database backup image to recreate a database. If you want to clone a database from one machine to another, the simplest way is to restore the database from a backup image. The file system paths used by the database are also contained within the backup image. Therefore, unless the file systems and the physical devices that are referenced by the database on the source system are set up exactly the same way on the target system, you will need to perform a redirected restore operation.
A redirected restore operation consists of a two-step database restore process with an intervening table space container definition step:
It is important to remember that the entire redirected restore operation must be invoked from the same session; otherwise, SQL0900N is returned and the restore operation fails. One way to ensure that this does not happen is to create and run a script that contains all three parts of the redirected restore procedure.
The following example shows you exactly how to successfully perform a redirected restore operation on Windows operating systems or on UNIX-based systems. Instead of restoring a backup image from another server, I will show you how to restore a backup image from a different instance. The principle is the same, and the details are identical.
The source instance for the Windows example is called PROD. The target instance is called MYINST. The existing database on PROD that is going to be restored (created) on MYINST is called MOVIES. The MOVIES database is located on drive D.
The source instance for the UNIX example is called prod. The target instance is called myinst.
-
set DB2INSTANCE=PROD
db2start
db2 backup db movies
-
-
Working with DB2 stored procedures in Delphi 2005 on 2009-04-23
-
Before we actually start, I'll explain what a stored procedure is, and why you would want to use them in the first place. A stored procedure can be seen as one or more SQL commands that already reside at the database server, prepared and ready to be executed. They often contain parameters, and calling a stored procedure consists of filling the parameters with the required values and then executing a CALL to the stored procedure. Apart from being written in SQL, a stored procedure can also be written in other languages, like C/C++ or Java. In order to write a SQL stored procedure, you need to have a C compiler on your development machine. For a Java stored procedure, you need the JDK (which is already installed with DB2 itself, so that's generally easier).
-
he IBM DB2 SAMPLE database includes a number of sample Tables, Views, and stored procedures. For readers who haven't worked with Delphi 2005 in combination with the IBM DB2 UDB SAMPLE database before, here are the steps to connect to the IBM DB2 UDB SAMPLE database:
Start Delphi 2005 Enterprise (or higher), and go to the Data Explorer. Here, you'll see the list of available connections to databases, like DB2, SQL Server, InterBase, Sybase, and so. Select the DB2 connection, and right-click on it to modify the connection in order to connect to the IBM DB2 UDB SAMPLE database. (See Figure 1 for my settings.)
-
More »
Groups
-
Oracle_DBA - SQL_DBA - Developer
3 members, 1 items
All things related to oracle dba, SQL Server, DBA, pl/sql, developing and APEX
-
The Database Choppers
2 members, 4 items
I Have 2 year Experience with the databases i have worked on Oracle,DB2 I am Certified Associate on both this Technologies.
karri somasekhar reddy follows 1 people
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo