13.07.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Set up the database serverThe ITSOBank sample, like any other enterprise application, requires adatabase.1. Create a user in the operating system with the username: dbuser andpassword: password. this user will perform the database access for thesample application, using server authentication.2. Install the DB2 UDB Server on the database server machine.3. Stop all the DB2 services and daemons, you can use the command: db2stop.4. Open a console, go to the DB2 UDB Client install directory, then go to thejava12 directory there. Execute usejdbc2.bat (on Windows) or usejdbc2.sh (onUNIX) to switch to JDBC 2.5. Start the database server; you can use the command: db2start.6. Open a console for DB2 command execution, and run the followingcommand:db2 -vf itsobank.sqlNote: in the previous commands, the following assumptions were made:► The database instance is called DB2.► db2admin user is the database administrator and the password ispassword.►►There is a user called dbuser with the password password, this user will beused for the database connection in the datasource.Database administrator rights are granted for the database user, which isnot the best practice but the easiest for our purposes.In case you have any problems setting up the server, refer to the official productdocumentation of <strong>IBM</strong> DB2 UDB.Set up the database clientIf the application server is running separately from the database server, thedatabase client has to be installed on the application server’s machine. It isoptional to have the application server separate, but it is recommended.Note where you can download the DB2 client:ftp://ftp.software.ibm.com/ps/products/db2/fixes/english-usAppendix A. Sample application 451

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!