installing oracle 10g on z/os 1.4 g. tom russell ibm canada ltd. [email protected] mvs oracle...
TRANSCRIPT
Installing Oracle 10g on z/OS 1.4
G. Tom Russell IBM Canada Ltd. [email protected]
MVS Oracle SIG March 31, 2004Redwood Shores, CA
Agenda
• Installation on z/OS 1.4 Flex/ES system– FTP files from CD to USS
• Preparation of z/OS – TCP/IP– X-windows– Java 1.4.1– Define Users and Groups– Define and Format Filesystems– Program Properties Table update– Authorize the libraries
• ./runInstaller
TCP/IP and Telnet
• Telnet connection required to USS– I used PuTTY from Windows
– Telnet from Intel Linux
– TN3270
Login to MVS USS using Telnet
• EZYTE27I login: ibmuser• EZYTE28I ibmuser Password:• IBM• Licensed Material - Property of IBM• 5694-A01 (C) Copyright IBM Corp. 1993, 2001• (C) Copyright Mortice Kern Systems, Inc., 1985, 1996.• (C) Copyright Software Development Group, University of Waterloo, 1989.
• All Rights Reserved.
• U.S. Government users - RESTRICTED RIGHTS - Use, Duplication, or• Disclosure restricted by GSA-ADP schedule contract with IBM Corp.
• IBM is a registered trademark of the IBM Corp.
• IBMUSER:/u/ibmuser: >
X-Windows Server required
• Intel Linux– flexes:/usr/flexes>xhost +
– access control disabled, clients can connect from any host
– flexes:/usr/flexes>
• VNC can be used– Included in Linux distributions
• Cygwin/Xfree86 on a Windows machine
XClock on MVS USS
IBMUSER:/u/ibmuser: >mkdir xclock IBMUSER:/u/ibmuser: >cp
/usr/lpp/tcpip/X11R6/Xamples/clients/xclock/* xclock IBMUSER:/u/ibmuser: >cd xclock IBMUSER:/u/ibmuser/xclock: >make c89 -c -D_ALL_SOURCE -W c,dll xclock.c c89 -c -D_ALL_SOURCE -W c,dll Clock.c c89 -o xclock xclock.o Clock.o /usr/lib/Xaw.x /usr/lib/SM.x
/usr/lib/ICE.x /usr/lib/X11.x
IBMUSER:/u/ibmuser/xclock: >export DISPLAY=192.168.1.100:0.0
IBMUSER:/u/ibmuser/xclock: >xclock
z/OS 1.4 is Pre-requisite
IBMUSER:/u/ibmuser/xclock: >uname -a
OS/390 P390 14.00 03 1245
IBMUSER:/u/ibmuser/xclock: >
Java 1.4.1 Pre-requisite
IBMUSER:/u/ibmuser: >java -version
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
Classic VM (build 1.4.1, J2RE 1.4.1 IBM z/OS Persistent Reusable VM build cm1411-20030930 (JIT enabled: jitc))
IBMUSER:/u/ibmuser: >
Java 1.4.1
• http://www.ibm.com/servers/eserver/zseries/software/java
• FSUMF073 J1.4/bin/libawt.so: user not authorized to restore extended attribute
• created a generic RACF profile BPX.FILEATTR.* in the RACF FACILITY class, and granted the userid access to this profile.
Perl is Pre-requisite
IBMUSER:/u/ibmuser: >perl -v This is perl, v5.6.1 built for os390 Copyright 1987-2001, Larry Wall MVS (OS390) port by Mortice Kern Systems, 1997-1999 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. IBMUSER:/u/ibmuser: >
Make command Pre-requisite
cp /samples/startup.mk /etc/startup.mk
IBMUSER:/u/ibmuser: >make -V
make - Version z/OS Shell and Utilities v1.4
Define Oracle User ID and Groups
//S0 EXEC PGM=IKJEFT01,DYNAMNBR=75,TIME=100,REGION=0M //SYSPRINT DD SYSOUT=* //SYSTSPRT DD SYSOUT=* //SYSTSIN DD * ADDGROUP OINSTALL SUPGROUP(SYS1) OMVS(GID(100)) ADDGROUP ORADBA SUPGROUP(OINSTALL) OMVS(GID(101)) ADDUSER ORACLE DFLTGRP(OINSTALL) AD ORACLE.* UACC(READ) ALU oracle OMVS(HOME('/u/oracle') PROGRAM('/bin/sh') UID(100)) ALU oracle PASSWORD(ORACLE) PERMIT ACCT# CLASS(ACCTNUM) ACCESS(READ) ID(ORACLE) PERMIT ISPFPROC CLASS(TSOPROC) ACCESS(READ) ID(ORACLE) SETROPTS RACLIST(TSOPROC) REFRESH RDEFINE STARTED ORA1NET.** STDATA(USER(oracle)) RDEFINE STARTED ORA1DB.** STDATA(USER(oracle)) SETROPTS RACLIST(STARTED) REFRESH //
Define Filesystems
//S1 EXEC PGM=IDCAMS,REGION=0M //SYSPRINT DD SYSOUT=* DEFINE CLUSTER - (NAME(ZFS.ORACLE) - VOLUMES(ORA001) - MEGABYTES(2500 500) - LINEAR - SHAREOPTIONS(2)) DEFINE CLUSTER - (NAME(ZFS.U.ORACLE) - VOLUMES(ORA001) - MEGABYTES(10 5) - LINEAR - SHAREOPTIONS(2))
Format Filesystems
//S1 EXEC PGM=IOEAGFMT,REGION=0M, // PARM='-aggregate ZFS.ORACLE -compat' //SYSPRINT DD SYSOUT=* //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=* //CEEDUMP DD SYSOUT=* //S2 EXEC PGM=IOEAGFMT,REGION=0M, // PARM='-aggregate ZFS.U.ORACLE -compat' //SYSPRINT DD SYSOUT=* //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=* //CEEDUMP DD SYSOUT=*
Mount Filesystems
IBMUSER:/u/ibmuser: >mount -f ZFS.ORACLE -t ZFS /oracle
IBMUSER:/u/ibmuser: >
IBMUSER:/u/ibmuser: >mount -f ZFS.U.ORACLE -t ZFS /u/oracle
IBMUSER:/u/ibmuser: >
Mount Filesystems - BPXPRMxx
FILESYSTYPE TYPE(ZFS) ENTRYPOINT(IOEFSCM) ASNAME(ZFS)
MOUNT FILESYSTEM('ZFS.ORACLE') TYPE(ZFS) MODE(RDWR) MOUNTPOINT('/oracle') MOUNT FILESYSTEM('ZFS.U.ORACLE') TYPE(ZFS) MODE(RDWR) MOUNTPOINT('/u/oracle')
SCHED00 Member
EDIT ADCD.ZOSV14S.PARMLIB(SCHED00) - 01.01 Columns 00001 00072
Command ===> Scroll ===> HALF011700 PPT PGMNAME(ORARASC) /* PROGRAM NAME */ 011800 NOCANCEL /* NOT CANCELABLE */ 011900 KEY(7) /* PROTECTION KEY 7 FOR DB */ 012000 NOSWAP /* PROGRAM IS NOT SWAPABLE */ 012100 SYST /* SYSTEM TASK, NOT TIMED */ 012200 PPT PGMNAME(ORANET) /* PROGRAM NAME */ 012300 NOCANCEL /* NOT CANCELABLE */ 012400 NOSWAP /* PROGRAM IS NOT SWAPABLE */ 012500 SYST /* SYSTEM TASK, NOT TIMED */
APF Authorize Oracle Libraries
EDIT ADCD.ZOSV14S.PARMLIB(PROG00) - 01.01 Columns 00001 00072Command ===> Scroll ===> HALF000001 APF FORMAT(DYNAMIC) 000002 APF ADD 000003 DSNAME(ORACLE.V1010.AUTHLOAD) VOLUME(ORA001)
SETPROG command to activate
File Names
• User that does the install must have write access to /var/opt/oracle
• High Level Qualifier for Oracle data sets– Catalog pointers may be required
– I used ORACLE.V1010
./runInstaller
IBMUSER:/oracle: >./runInstaller IBMUSER:/oracle: >Starting Oracle Universal Installer... Checking requirements... Checking operating system version: must be 14.00, 15.00 or 16.00. Actual 14.00 Passed Checking the version of Perl: must be 5.004,5.6.1 Perl is version 5.6.1 Passed All requirements met.
The user is root. Oracle Universal Installer cannot continue installation if the user is root.
IBMUSER:/oracle: >