Friday, December 31, 2010

DB Wizard for Oracle on Windows 2008R2 64-bit

A year ago, I was testing the DB Wizard 8.50 for Oracle on Linux. It was painful, and really has not been successful as I would expect. Right now, I’d like to see how the DB Wizard is working on Windows 2008R2 64-bit within the latest Peopletools version, 8.51.
As I said in the linked article above, DB Wizard is not my cup of tea, it is configuring all by default which you do not necessarily want for a production system and it requires the Peopletools installation on your DB server which again you do not necessarily want for a production system. But over the years, I noticed a lot of people are trying to use it because they are not DBA and just want to get a working Peoplesoft application to be able to learn Peoplecode, and/or functional features (without taking care of all the admin settings). So, I think a nice proper tool to build a DEMO database would be very nice in such cases.

Unfortunately, it is not ready yet. First of all, Peopletools 8.5x are certified only on 64-bit OS, however on Windows it needs the 32-bit Oracle librairies, and we’ll see that cause some troubles for the DB Wizard. A full 64-bit application would be much much more easier to manage.

If you did not installed the 32-bit client, you’ll most likely receive the following error (the well known “missing or invalid version of SQL library PSORA”) :
DBWizard851_W2k8_035
So, I installed Oracle 11.2.0.2 64-bit database software in one Oracle home, then 11.2.0.2 32-bit client software in an other one.

Created the init.ora file with the minimum required :
DBWizard851_W2k8_002 
And password file as well :
DBWizard851_W2k8_003
Start the listener :
DBWizard851_W2k8_006
Update the tnsnames.ora in both Oracle home (server/client) :
DBWizard851_W2k8_007
Then start the DBWizard utility (%PS_HOME%\setup\PsMpDbInstall\setup.bat), and it looks very handy and straightforward :
DBWizard851_W2k8_008
DBWizard851_W2k8_009DBWizard851_W2k8_010DBWizard851_W2k8_011
DBWizard851_W2k8_012DBWizard851_W2k8_013
On the screen below, I was wondering if I should put the 32-bit client for sqlplus, but no, it won’t work (I tested it), same for the Oracle home, it should be the 64-bit database software installation path directory.
DBWizard851_W2k8_014
DBWizard851_W2k8_015DBWizard851_W2k8_016DBWizard851_W2k8_017
DBWizard851_W2k8_018 DBWizard851_W2k8_019DBWizard851_W2k8_020
DBWizard851_W2k8_021
And now start the process :
DBWizard851_W2k8_022
Before going further, you can check if the service is created as well as the database’s datafiles (such as SYSTEM, SYSAUX, UNDO, TEMP…).     
DBWizard851_W2k8_023DBWizard851_W2k8_030
Everything works fine, service is created, database is created, datafiles are there. Even the xxddl.sql script is executed properly and all the Peoplesoft tablespaces are created.
DBWizard851_W2k8_025
But it failed down on the last step, the call of psdmtx to load the database !
DBWizard851_W2k8_036DBWizard851_W2k8_037
The logfile is not very useful, is it ?
DBWizard851_W2k8_038
However, when I run it from DOS command prompt, dbsetup.dms call is working fine :
DBWizard851_W2k8_042     
I was out of luck to make it working through DB Wizard.
Well, the dbsetup.dms creates the proper dms to load the database manually, but I’d be happy if it did it by itself. You can run it from DOS command prompt, or through DataMover GUI :
DBWizard851_W2k8_043
And do not worry if it stated “not responded”, that’s perfectly normal…

Well, once more, disappointing tool. Unless someone has suggestion how to make it working ?

Have fun,

Nicolas.

Peoplesoft OVM FSCM9.1

Earlier in September the Peoplesoft OVM FSCM9.1 template has been released, announced here.
It’s now time to see how it is working after the HCM9.1, PS9.1 and CRM9.1 templates.

It is available on http://edelivery.oracle.com/linux – check for the templates 64bits, : Peoplesoft VM Templates for FSCM 9.1 Release Media Pack v1 for x86 (64 bit).
There are two templates, one for the database, one for the app/batch/PIA.

I’ll skip all the steps regarding Oracle VM Manager, Oracle VM Server configuration, uncompress and import of the template since this is the same exercise I did last year for HCM9.1, please if you want to know more, have a look to the tutorial on the top-right of the main blog page. I’ll start the description below from the starting of the new VM.

1. The database server

Select the VM and click on “Power On” 
PSOVM_FSCM91_024 
Then on console (be fast otherwise it will be configured as DHCP that you certainly don’t want).
PSOVM_FSCM91_025
PSOVM_FSCM91_026
PSOVM_FSCM91_027
Give all what it needs, IP address and so on :
PSOVM_FSCM91_028
Here below, (as usual on Peoplesoft template, I do not know if that’s the same for all Oracle template containing database software), we got the CSS error (this step takes quite a while). Whether it fails that is not an issue for the next steps  :
PSOVM_FSCM91_029
It continues, give the database name, it will create new controlfiles.
PSOVM_FSCM91_030PSOVM_FSCM91_031  
It is finished for the database server.
Few notes :
1.1 I choose the database to start on server boot, but it won’t (same for all previous templates).
[root@psovmfscmdb ~]# more /etc/oratab
orcl:/u01/app/oracle/product/11.1.0/db_1:N

1.2 Note, the service is your_db_name.us.oracle.com :
[oracle@psovmfscmdb ~]$ lsnrctl status

LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 25-NOV-2010 03:37:23

Copyright (c) 1991, 2008, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=psovmfscmdb)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.1.0.7.0 - Production
Start Date                25-NOV-2010 03:09:30
Uptime                    0 days 0 hr. 27 min. 53 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/product/11.1.0/db_1/log/diag/tnslsnr/psovmfscmdb/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=psovmfscmdb)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "F91TMPLT.us.oracle.com" has 1 instance(s).
  Instance "F91TMPLT", status READY, has 1 handler(s) for this service...
Service "F91TMPLT_XPT.us.oracle.com" has 1 instance(s).
  Instance "F91TMPLT", status READY, has 1 handler(s) for this service...
Service "XDB.us.oracle.com" has 1 instance(s).
  Instance "F91TMPLT", status READY, has 1 handler(s) for this service...
The command completed successfully

1.3 SYSADM’s password is in upper case :
[oracle@psovmfscmdb ~]$ export ORACLE_SID=F91TMPLT
[oracle@psovmfscmdb ~]$ sqlplus sysadm/sysadm

SQL*Plus: Release 11.1.0.7.0 - Production on Thu Nov 25 03:37:52 2010

Copyright (c) 1982, 2008, Oracle.  All rights reserved.

ERROR:
ORA-01017: invalid username/password; logon denied

Enter user-name:
[oracle@psovmfscmdb ~]$ sqlplus sysadm/SYSADM

SQL*Plus: Release 11.1.0.7.0 - Production on Thu Nov 25 03:37:59 2010

Copyright (c) 1982, 2008, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>

1.4 Language installed is only English :
SQL> select language_cd from pslanguages where installed=1;

LANGUAGE_CD
------------
ENG

1.5 The default profile of SYSADM and PEOPLE users expires password the 08-JAN-2011, uou should change it to avoid future issues :  
SQL> select username,account_status,expiry_date,profile
from   dba_users
where username in ('PEOPLE','SYSADM') ;
  2    3
USERNAME                       ACCOUNT_STATUS
------------------------------ --------------------------------
EXPIRY_DATE        PROFILE
------------------ ------------------------------
PEOPLE                         OPEN
08-JAN-11          DEFAULT

SYSADM                         OPEN
08-JAN-11          DEFAULT

SQL> alter profile default limit
failed_login_attempts unlimited
password_life_time unlimited
password_lock_time unlimited
password_grace_time unlimited; 

Profile altered.

SQL> select username,account_status,expiry_date,profile
from   dba_users
where username in ('PEOPLE','SYSADM') ;  2    3

USERNAME                       ACCOUNT_STATUS
------------------------------ --------------------------------
EXPIRY_DATE        PROFILE
------------------ ------------------------------
PEOPLE                         OPEN
                   DEFAULT

SYSADM                         OPEN
                   DEFAULT

SQL>

2. The App/Batch/PIA server :

Select the VM and click on “Power On”
PSOVM_FSCM91_032 
Then on console (be fast otherwise it will be configured as DHCP that you certainly don’t want). 
PSOVM_FSCM91_033
PSOVM_FSCM91_034
PSOVM_FSCM91_035
Give all what it needs, IP address and so on :
PSOVM_FSCM91_037PSOVM_FSCM91_038
Here, we can see an OS audit message with access denied. Despite that message, everything will be done
successfully.
PSOVM_FSCM91_039PSOVM_FSCM91_040
After AppServer and Batch server started, it is now time for MicroFocus (optional - 30-days trial license). It is quite new in template for that option during deployment. Thanks to Peoplesoft team for that, that safe a lot of time and pain (see how I did for HCM when it was not available here
PSOVM_FSCM91_043
Once it is done, PIA deployment :
PSOVM_FSCM91_045PSOVM_FSCM91_046PSOVM_FSCM91_047
And you also can configure posting reports repository :
PSOVM_FSCM91_048PSOVM_FSCM91_049PSOVM_FSCM91_050
Done.
It has again been greatly improved compared to the first template released earlier in 2009 (HCM). Looks like many of the remarks have been taken in account. Thanks to the team for that.

Now, connect to the front end application :
PSOVM_FSCM91_054
Since I’m not using any DNS server, but instead working on IP address, I change the reports repository (if you do so, bounce the Batch server) :
PSOVM_FSCM91_057PSOVM_FSCM91_058  
Report are now posting properly :
PSOVM_FSCM91_060
And test programs COBOL run successfully :
PSOVM_FSCM91_061

Note : you’ll get some OS audit warning like for CRM, you can read the footnote here how you can get rid of them.

We have now a complete working Peoplesoft  solution relatively easy to install. Probably a good idea to go further within messaging between all those templates now. Maybe something to do for next year !

Have fun,

Nicolas.