2012年12月25日 星期二

Red Hat RHEL OS下載區




RHEL 5.9 beta
 https://rhn.redhat.com/rhn/software/channel/downloads/Download.do?cid=6007

RHEL 5.9 beta iso
https://content-web.rhn.redhat.com/rhn/isos/rhel-5.9/md5sum/575712c4ef59ac5a8243526f51684370/rhel-server-5.9-x86_64-dvd.iso?__gda__=1356509956_22b82d254ba4e6fd39eb6ae0febe1ddf&ext=.iso
RHEL 5.8 iso
https://content-web.rhn.redhat.com/rhn/isos/rhel-5.8-beta/md5sum/c89e04c0ca5f831fb0a3c8601c494fa3/rhel-server-5.8-x86_64-dvd.iso?__gda__=1356509416_c4d7a604b5fa7e271eab968a02e718be&ext=.iso

https://access.redhat.com/knowledge/docs/Red_Hat_Enterprise_Linux/

gs35 on RHEL 5.8

[gs34@rhel133 scripts]$ sh install.sh install
started on  2012-12-26 11:27:34
1. Getting eBao App Lib... succeeded

2. Configuring eBao GeneralSystem... succeeded

   Configure weblogic runtime parameters... succeeded
The Weblogic Server is started!

3. Deploying eBao GeneralSystem... succeeded

4. Stopping Application Server... succeeded

5. Starting Application Server... succeeded

6. Starting Batch Server... succeeded

7. Deploying eBao PAR File... succeeded

Installation successfully
Finished on  2012-12-26 11:33:07
[1]+  Done                    nohup sh startWebLogic.sh  (wd: ~/Oracle/Middleware/user_projects/domains/base_domain)
(wd now: ~/INSTALL/gs35/scripts)
[gs34@rhel133 scripts]$ cd ..

2012年12月19日 星期三

log

root@10.144.82.159's password:
Last login: Thu Dec 13 20:19:57 2012 from 10.144.82.147
[root@rhel159 ~]# cd $DOMAIN_HOME/EBAO_HOME/app_config
[root@rhel159 app_config]# ls -l
total 788
-rw-r--r--  1 gs34 ebaoinstall  8002 Nov  2 16:39 agent.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:47 agent.esb.Config
-rw-r--r--  1 gs34 ebaoinstall   603 Nov  2 16:39 APILib_Cust.xml
-rw-r--r--  1 gs34 ebaoinstall  4919 Nov  2 16:38 APILib.xml
-rw-r--r--  1 gs34 ebaoinstall   421 Nov  2 16:39 BeanLib_Cust.xml
-rw-r--r--  1 gs34 ebaoinstall  1019 Nov  2 16:39 BeanLib.xml
-rw-r--r--  1 gs34 ebaoinstall   184 Nov  2 16:39 cactus.properties
-rw-r--r--  1 gs34 ebaoinstall  3659 Nov  2 16:38 CommonPartyAPILib.xml
-rw-r--r--  1 gs34 ebaoinstall   898 Nov  2 16:38 component_conf.properties
drwxr-xr-x  2 gs34 ebaoinstall  4096 Nov  2 16:39 customization
drwxr-xr-x  3 gs34 ebaoinstall  4096 Nov  2 16:39 default
-rw-r--r--  1 gs34 ebaoinstall   334 Nov  2 16:38 dms_class_definition.xml
-rw-r--r--  1 gs34 ebaoinstall   458 Nov  2 16:38 dms.properties
-rw-r--r--  1 gs34 ebaoinstall   646 Nov  2 16:38 dms-toolbar-config.xml
-rw-r--r--  1 gs34 ebaoinstall  4880 Nov  2 16:38 ebaoesb-properties.xml
-rw-r--r--  1 gs34 ebaoinstall   172 Nov  2 16:39 eBao-plugins-state.properties
-rw-r--r--  1 gs34 ebaoinstall  2179 Nov  2 16:38 ebaopubcertkeystore
drwxr-xr-x  3 gs34 ebaoinstall  4096 Nov  2 16:38 ems
-rw-r--r--  1 gs34 ebaoinstall  2299 Nov  2 16:39 endoWebService.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:47 endoWebService.esb.Config
-rw-r--r--  1 gs34 ebaoinstall   837 Nov  2 16:39 exBodyFoot.xslt
-rw-r--r--  1 gs34 ebaoinstall   290 Nov  2 16:39 filters.xml
-rw-r--r--  1 gs34 ebaoinstall   742 Nov  2 16:39 function.xml
-rw-r--r--  1 gs34 ebaoinstall  1152 Nov  2 16:38 gcsEndo.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:47 gcsEndo.esb.Config
-rw-r--r--  1 gs34 ebaoinstall  3126 Nov  2 16:38 gcsFinance.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:46 gcsFinance.esb.Config
-rw-r--r--  1 gs34 ebaoinstall  1154 Nov  2 16:38 gcsNcd.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:46 gcsNcd.esb.Config
-rw-r--r--  1 gs34 ebaoinstall  5769 Nov  2 16:39 gcsPolicy.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:47 gcsPolicy.esb.Config
-rw-r--r--  1 gs34 ebaoinstall   944 Nov  2 16:38 gcsProduct.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:46 gcsProduct.esb.Config
-rw-r--r--  1 gs34 ebaoinstall  1255 Nov  2 16:38 gcsRIClaim.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:46 gcsRIClaim.esb.Config
-rw-r--r--  1 gs34 ebaoinstall  8395 Nov  2 16:38 generalclaim.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:47 generalclaim.esb.Config
-rw-r--r--  1 gs34 ebaoinstall 12843 Nov  2 16:38 GiEndorsement.xpdl
-rw-r--r--  1 gs34 ebaoinstall 15336 Nov  2 16:38 GINewBizWorkflow.xpdl
-rw-r--r--  1 gs34 ebaoinstall   207 Nov  2 16:39 global.properties
-rw-r--r--  1 gs34 ebaoinstall  1238 Nov  2 16:39 gspub.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:46 gspub.esb.Config
-rw-r--r--  1 gs34 ebaoinstall    34 Nov  2 16:39 hibernate.properties
-rw-r--r--  1 gs34 ebaoinstall    83 Nov  2 16:38 InterceptorFilter.cfg.xml
-rw-r--r--  1 gs34 ebaoinstall  1615 Nov  2 16:38 interest-display-rule.xml
-rw-r--r--  1 gs34 ebaoinstall  1903 Nov  2 16:39 juddi.properties
-rw-r--r--  1 gs34 ebaoinstall   620 Nov  2 16:38 ldap.properties
-rw-r--r--  1 gs34 ebaoinstall   424 Nov  2 16:38 log4j.properties
drwxr-xr-x  3 gs34 ebaoinstall  4096 Nov  2 16:38 META-INF
drwxr-xr-x 55 gs34 ebaoinstall  4096 Nov  2 16:38 microWorkflow
-rw-r--r--  1 gs34 ebaoinstall 14967 Nov  2 16:39 mocktree.xm
-rw-r--r--  1 gs34 ebaoinstall 14967 Nov  2 16:39 mocktree.xml
-rw-r--r--  1 gs34 ebaoinstall 15729 Nov  2 16:39 MotorClaim.xpdl
-rw-r--r--  1 gs34 ebaoinstall  8171 Nov  2 16:39 party.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:46 party.esb.Config
-rw-r--r--  1 gs34 ebaoinstall 28745 Nov  2 16:39 policy.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:47 policy.esb.Config
-rw-r--r--  1 gs34 ebaoinstall  1515 Nov  2 16:38 policyWebService.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:47 policyWebService.esb.Config
-rw-r--r--  1 gs34 ebaoinstall  1474 Nov  2 16:39 printWebService.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:46 printWebService.esb.Config
-rw-r--r--  1 gs34 ebaoinstall 10970 Nov  2 16:38 productWebService.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:47 productWebService.esb.Config
drwxr-xr-x 19 gs34 ebaoinstall  4096 Nov  2 16:39 report
-rw-r--r--  1 gs34 ebaoinstall  4964 Nov  2 16:38 repository.xml
-rw-r--r--  1 gs34 ebaoinstall  1501 Nov  2 16:39 searchPolicyWebService.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:47 searchPolicyWebService.esb.Config
drwxr-xr-x  2 gs34 ebaoinstall  4096 Nov  2 16:39 sp-standalone
-rw-r--r--  1 gs34 ebaoinstall   529 Nov  2 16:38 testng.xml
-rw-r--r--  1 gs34 ebaoinstall 10501 Nov  2 16:39 test.xpdl
-rw-r--r--  1 gs34 ebaoinstall  1428 Nov  2 16:39 uic_conf.properties
-rw-r--r--  1 gs34 ebaoinstall    35 Nov  2 16:39 uiconfig.properties
-rw-r--r--  1 gs34 ebaoinstall  9338 Nov  2 16:39 user.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:46 user.esb.Config
-rw-r--r--  1 gs34 ebaoinstall   443 Nov  2 16:38 velocity.properties
-rw-r--r--  1 gs34 ebaoinstall  1033 Nov  2 16:38 weblogic-application.xml
drwxr-xr-x  4 gs34 ebaoinstall  4096 Nov  2 16:37 workflow
-rw-r--r--  1 gs34 ebaoinstall  7523 Nov  2 16:39 workflow.esb
drwxr-----  2 gs34 ebaoinstall  4096 Nov  2 16:46 workflow.esb.Config
drwxr-xr-x  4 gs34 ebaoinstall  4096 Nov  2 16:38 xsd
[root@rhel159 app_config]#

How do I uninstall Java for Linux ? JDK

How do I uninstall Java for Linux ?


This article applies to:
  • Platform(s): Red Hat Linux, SUSE Linux, Oracle Linux, Oracle Enterprise Linux, SLES
  • Browser(s): Firefox
  • Java version(s): 6.0, 7.0

The uninstall process consists of:
  1. Java Plug-in Uninstall
  2. Java Uninstall
Java Plug-in Uninstall: Mozilla browser
If you are going to reinstall Java, you don't need to uninstall Java Plug-in. Just use the -f option for ln when creating a new symbolic link.
Example: ln -f /usr/lib/mozilla/plugins/libnpjp2.so

If you want to completely remove Java from your Linux box, the procedure of removing the symbolic link is described below.
  1. Open Terminal Window
  2. Log in as the super user
  3. Type: rm /usr/lib/mozilla/plugins/libnpjp2.so
  4. You will be prompted to remove symbolic link:
    rm: /usr/lib/mozilla/plugins/libnpjp2.so ?
  5. Type: Y
Java Uninstall
There are two ways to uninstall Java. Please use the method that you used when you installed Java. For example, if you used RPM to install Java, then use the RPM uninstall method.

  • RPM uninstall
    Note: If you have RPM on your Linux box, you should first find out if Java is already installed using RPM. If Java is not installed using RPM, you should skip reading.
    1. Open Terminal Window
    2. Login as the super user
    3. Try to find jre package by typing: rpm -qa
    4. If RPM reports a package similar to jre-<version>-fcs, then Java is installed with RPM.

      Note: Normally, you do not need to uninstall Java with RPM, because RPM is able to uninstall the old version of Java when installing a new version! You may skip reading, unless you want to remove Java permanently.
    5. To uninstall Java, type: rpm -e jre-<version>-fcs
  • Self-extracting file uninstall
    1. Find out if Java is installed in some folder. Common locations are /usr/java/jre_<version> or /opt/jre_nb/jre_<version>/bin/java/
    2. When you have located the folder, you may delete folder.
      Warning: You should be certain that Java is not already installed using RPM before removing the folder.
    3. Type: rm -r jre<version>
      For example: rm -r jre1.6.0

2012年12月18日 星期二

3.5安裝步驟

[self@ebao352 base_domain]$ nohup sh startWebLogic.sh &
[1] 3737
[self@ebao352 base_domain]$ nohup: appending output to ‘nohup.out’

[self@ebao352 base_domain]$ cd $INSTALL_HOME/scripts
[self@ebao352 scripts]$ sh install.sh install
started on  2012-12-19 13:31:23
1. Getting eBao App Lib... succeeded

2. Configuring eBao GeneralSystem... succeeded

   Configure weblogic runtime parameters... succeeded
The Weblogic Server is started!

3. Deploying eBao GeneralSystem... succeeded

4. Stopping Application Server... succeeded

5. Starting Application Server... succeeded

6. Starting Batch Server... succeeded

7. Deploying eBao PAR File... succeeded

Installation successfully
Finished on  2012-12-19 13:35:11
[1]+  Done                    nohup sh startWebLogic.sh  (wd: ~/ebao35/domains/base_domain)
(wd now: ~/installed/ebao35/scripts)
[self@ebao352 scripts]$

一種簡單觀察OS之監控工具

http://pkgs.repoforge.org/dstat/
[root@gs35db ebao]# rpm -Uvh dstat-0.7.2-1.el5.rfx.noarch.rpm
警告:dstat-0.7.2-1.el5.rfx.noarch.rpm: 表頭 V3 DSA 簽名:NOKEY, key ID 6b8d79e6
正在準備…             ########################################### [100%]
   1:dstat                  ########################################### [100%]
[root@gs35db ebao]#dstat -cdlmnpsy
Terminal width too small, trimming output.
----total-cpu-usage---- -dsk/total- ---load-avg--- ------memory-usage----->
usr sys idl wai hiq siq| read  writ| 1m   5m  15m | used  buff  cach  free>
  0   0  95   4   0   0| 167k   15k|   0    0    0| 142M 31.9M  321M 1514M>
  0   1  98   0   1   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0   168k|   0    0    0| 142M 31.9M  321M 1514M>
  0   1  99   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0  99   0   1   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   1  99   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0  99   0   1   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0   168k|   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   1  99   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0  99   0   0   1|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0  99   0   1   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   0 100   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>
  0   1  99   0   0   0|   0     0 |   0    0    0| 142M 31.9M  321M 1514M>

2012年12月14日 星期五

Unistall Oracle Database

rm -f /etc/oratab
rm -rf $ORACLE_HOME
rm -rf $ORACLE_BASE
rm -f /usr/local/bin/coraenv
rm -f /usr/local/bin/dbhome
rm -f /usr/local/bin/oraenv

2012年12月13日 星期四

oracle create user

drop user gsuser cascde;
drop user gsreaduser cascde;
drop user gsappuser cascde; 
drop role gs_read_role cascde;
drop role gs_app_role cascde;
CREATE USER gsuser IDENTIFIED BY gsuserpwd DEFAULT TABLESPACE GS_342_INIT_TBS TEMPORARY TABLESPACE GS_342_INIT_TBS_TMP profile DEFAULT quota unlimited on GS_342_INIT_TBS;
grant select on SYS.DBA_CONSTRAINTS to gsuser;
grant select on SYS.DBA_CONS_COLUMNS to gsuser;
grant select on SYS.DBA_DATA_FILES to gsuser;
grant select on SYS.DBA_OBJECTS to gsuser;
grant select on SYS.DBA_ERRORS to gsuser;
grant select on SYS.DBA_SOURCE to gsuser;
GRANT SELECT ON SYS.DBA_SEQUENCES to gsuser;  
grant select on SYS.DBA_SYNONYMS to gsuser;
grant select on SYS.DBA_TABLESPACES to gsuser;
grant select on SYS.DBA_TAB_COLUMNS to gsuser;
grant select on SYS.DBA_TAB_PRIVS to gsuser;
grant execute on SYS.DBMS_FLASHBACK to gsuser;
grant select on SYS.V_$MYSTAT to gsuser;
grant select on SYS.V_$PROCESS to gsuser;
grant select on SYS.V_$SESSION to gsuser;
grant select on sys.pending_trans$ to gsuser;
grant select on sys.dba_2pc_pending to gsuser;
grant select on sys.dba_pending_transactions to gsuser;
grant execute on sys.dbms_system to gsuser;
grant execute on sys.dbms_lock to gsuser;
grant execute on sys.dbms_lob to gsuser;
grant connect to gsuser;
grant javadebugpriv to gsuser;
grant javasyspriv to gsuser;
grant java_admin to gsuser;
grant alter session to gsuser;
grant create any synonym to gsuser;
grant drop any synonym to gsuser;
grant create cluster to gsuser;
grant create database link to gsuser;
grant create materialized view to gsuser;
grant create procedure to gsuser;
grant create sequence to gsuser;
grant create session to gsuser;
grant create table to gsuser;
grant create trigger to gsuser;
grant create type to gsuser;
grant create view to gsuser;
grant debug connect session to gsuser;
grant execute any procedure to gsuser;
CREATE USER gsreaduser IDENTIFIED BY gsreaduserpwd DEFAULT TABLESPACE GS_342_INIT_TBS TEMPORARY TABLESPACE GS_342_INIT_TBS_TMP profile DEFAULT;
create role gs_read_role;
grant alter session to gs_read_role;
grant create session to gs_read_role;
grant gs_read_role to gsreaduser;
CREATE USER gsappuser IDENTIFIED BY gsappuserpwd DEFAULT TABLESPACE GS_342_INIT_TBS TEMPORARY TABLESPACE GS_342_INIT_TBS_TMP profile DEFAULT;
create role gs_app_role;
grant gs_read_role to gs_app_role;
grant gs_app_role to gsappuser;
grant DBA to gsuser with admin option;

Oracle Ports for Network Services

Oracle Ports for Network Services

  • An asterisk * in the Notes field indicates that the ports are IANA registered.
Service TCP UDP Notes
sql*net 66 66 * Oracle SQL*NET. I think this is legacy. I haven't seen it used.
SQL*Net 2 1521 1521 Probably the most common Oracle port. Not registered to Oracle, IANA registered for ncube-lm, nCube License Manager.
SQL*Net 1 1525 1525 * Registered as orasrv. No longer used?
listener port 1526 1526 1526 is also a popular Oracle listener port, but it is also not IANA registered. In the IANA list, it is pdap-np, Prospero Data Access Prot non-priv.
tlisrv 1527 1527 *
coauthor 1529 1529 *
Oracle Remote Data Base 1571 1571 * rdb-dbs-disp
oraclenames 1575 1575 * Default and officially registered listening port for client connections to an Oracle Names server using TCP/IP or TCP/IP with SSL. Deprecated in 9i and above, you're supposed to use LDAP instead.
Oracle Net8 Cman 1630 1630 * oraclenet8cman. Default and officially registered listening port for client connections to Oracle Connection Manager
oracle-em1 1748 1748 *
oracle-em2 1754 1754 *
Oracle-VP2 1808 1808 *
Oracle-VP1 1809 1809 *
Oracle Net8 CMan Admin 1830 1830 * net8-cman. Default and officially registered listening port for administrative commands to Oracle Connection Manager
oracle?
2005 * registered as "berknet" for 2005 TCP, oracle for 2005 UDP
Oracle GIOP 2481 2481 * giop
Oracle GIOP SSL 2482 2482 * giop-ssl
Oracle TTC 2483 2483 * ttc. Oracle may use this port to replace 1521 in future.
Oracle TTC SSL 2484 2484 * ttc-ssl.
OEM Agent 3872 3872 * oem-agent
Oracle RTC-PM port 3891 3891 * rtc-pm-port
Oracle dbControl Agent 3938 3938 * dbcontrol_agent

Although incomplete, this is a pretty good article on the mess that is Oracle ports: Connecting with Oracle: Oracle Ports.
I also got some information from these copies of Oracle documentation Oracle9i Net Services Reference Guide Release 2 (9.2) and Oracle Database Net Services Reference Guide 10g Release 1 (10.1)
The Oracle Technology Network (OTN) should provide all the information you need, but I find it difficult to locate things there.

Oracle 9iAS TCP/IP Ports

9iAS is a port nightmare. A typical install may have dozens of ports open. Many of the ports are not IANA-registered.
The document Oracle® Collaboration Suite Installation and Configuration Guide Release 2 Default Port Numbers and Port Ranges was the best reference I could find to the many many Oracle ports used. I have only listed the HTTP parts in the table below.
Service default TCP Notes
Oracle HTTP Server SSL or Oracle9iAS Web Cache HTTP Listen SSL 4443 This port is IANA-registred for "Pharos".
Oracle HTTP Server SSL 4444 The HTTP server SSL will move to 4444 if the Web Cache is running on 4443. This port is IANA-registered for "KRB524".
Oracle HTTP Server non-SSL or Oracle9iAS Web Cache HTTP Listen non-SSL 7777 This port is IANA-registered for "cbt" by cs.ucl.ac.uk
Oracle HTTP Server non-SSL 7778 The HTTP server will move to 7778 if the Web Cache is running on 7777. This port is IANA-registered for "Interwise".

Summary

For the HTTP web server bits, Oracle likes to use 7777, 7778 and 7779. For SSL ("secure" encrypted communications, you may know it as HTTPs) they like to use 4443, 4444, 4445, 4446. These ports are already IANA assigned for other things.
An important security point that you should be aware of is that by default Oracle will create a helpful Ports page on your 9iAS server, listing all the ports it has assigned for everything. The URL will be /portlist Locally on your system, there will also be a file $ORACLE_HOME/install/portlist.ini listing all the port assignments made.
I link to the IANA list on my main TCP/IP ports page.

/etc/sysconfig/iptables

常用的 iptables 服務參數
 /etc/rc.d/init.d/iptables start           //啟動 iptables 服務
                           stop            //停止 iptables 服務
                           restart         //重新啟動 iptables 服務
                           status          //查看目前 iptables 規則
                           save            //將目前規則存入 iptables 設定檔
規則語法如下 [-io 網路介面] [-p 協定] [-m 模組] [-s 來源] [-d 目的地] [-j 政策]
    -i 網路介面:-i 為 in 網路介面就填 eth0... (用於 PREROUTING、INPUT、FORWARD)
    -o 網路介面:-o 為 out 網路介面就填 eth0... (用於 POSTROUTING、OUTPUT、FORWARD)
    -m 模組:state、mac、limit、owner、multiport...
    -p 協定:tcp、upd、icmp...
    -s 來源:可為 IP Address、IP 網段、網域名稱
        --sport:指定封包來源 Port、Port Range (配合 -p tcp、-p udp)
    -d 目的地:可為 IP、IP 網段、網域名稱
        --dport:指定封包目的地 Port、Port Range (配合 -p tcp、-p udp)
    -j 政策 / 目標:ACCEPT、DROP、REJECT、SNAT、DNAT、MASQUERADE、REDIRECT、RETURN...

Hyper-V Guest RHEL 6.3找不到 /dev/cdrom時

insmod /lib/modules/$(uname -r)/kernel/drivers/ata/ata_piix.ko

2012年12月12日 星期三

Oracle 11.2.01



# 11.2.0.1 Create the new groups and users.
groupadd oinstall
groupadd dba
groupadd oper
groupadd asmadmin
useradd -g oinstall -G dba,oper,asmadmin oracle
passwd oracle
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
/etc/sysctl.conf
fs.suid_dumpable = 1
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
[root@gs35db Oracle 11g]# /sbin/sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
fs.suid_dumpable = 1
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
[root@gs35db Oracle 11g]# /sbin/sysctl -a | grep net.core.wmem_max
net.core.wmem_max = 1048586
[root@gs35db Oracle 11g]#
/etc/security/limits.conf
oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile  4096
oracle              hard    nofile  65536
oracle              soft    stack   10240
# From Oracle Linux 5 DVD
cd /mnt/cdrom/Server
rpm -Uvh binutils-2.*
rpm -Uvh compat-libstdc++-33*
rpm -Uvh compat-libstdc++-33*.i386.rpm
rpm -Uvh elfutils-libelf*
rpm -Uvh gcc-4.*
rpm -Uvh gcc-c++-4.*
rpm -Uvh glibc-2.*
rpm -Uvh glibc-common-2.*
rpm -Uvh glibc-devel-2.*
rpm -Uvh glibc-headers-2.*
rpm -Uvh ksh*
rpm -Uvh libaio-0.*
rpm -Uvh libaio-devel-0.*
rpm -Uvh libgomp-4.*
rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh libstdc++-devel-4.*
rpm -Uvh make-3.*
rpm -Uvh sysstat-7.*
rpm -Uvh unixODBC-libs*
rpm -Uvh unixODBC-2.*
rpm -Uvh unixODBC-devel-2.*
rpm -Uvh numactl-devel-*
/etc/selinux/config
SELINUX=disabled
mkdir -p /home/oracle/oracledb/u01/app/oracle/product/11.2.0/db_1
chown -R oracle:oinstall /home/oracle/oracledb/u01
chmod -R 775 /home/oracle/oracledb/u01
/home/oracle/.bash_profile
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_HOSTNAME=gs35db; export ORACLE_HOSTNAME
ORACLE_UNQNAME=gs35db; export ORACLE_UNQNAME
ORACLE_BASE=/home/oracle/oracledb/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=gs35db; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
開始安裝
./runInstaller 
 

vi /etc/sysconfig/iptables
/etc/rc.d/init.d/iptables restart
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1158 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1521 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
https://10.144.82.137:1158/em/console

2012年12月10日 星期一

eBao APP開/關機

eBao APP關機
su root
netstat -an|grep 80
sh ${APACHE_HOME}/bin/apachectl stop
sh ${EBAO_HOME}/applications/batch/bin/batch_manage.sh stop
sh ${DOMAIN_HOME}/bin/stopWebLogic.sh
netstat -an|grep 7001
eBao APP開機
su root
nohup sh ${DOMAIN_HOME}/startWebLogic.sh &
netstat -an|grep 7001
nohup sh ${EBAO_HOME}/applications/batch/bin/batch_manage.sh start &
nohup sh ${APACHE_HOME}/bin/apachectl start &
netstat -an|grep 80

App Installation successfully

[self@ebao35 scripts]$ sh install.sh install
started on  2012-12-11 11:29:57
1. Getting eBao App Lib... succeeded

2. Configuring eBao GeneralSystem... succeeded

   Configure weblogic runtime parameters... succeeded
1
The Weblogic Server is started!

3. Deploying eBao GeneralSystem... succeeded

4. Stopping Application Server... succeeded

5. Starting Application Server... succeeded

6. Starting Batch Server... succeeded

7. Deploying eBao PAR File... succeeded

Installation successfully
Finished on  2012-12-11 11:32:21
[self@ebao35 scripts]$

.bash_profile

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
 . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/usr/lib/oracle/11.2/instantclient_11_2

export PATH
export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/instantclient_11_2
export TNS_ADMIN=/usr/lib/oracle/11.2/instantclient_11_2/tns
SQLPATH=/usr/lib/oracle/11.2/instantclient_11_2
export SQLPATH
NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export NLS_LANG

APACHE_HOME=/usr/local/apache2
export APACHE_HOME
WL_HOME=/home/gs34/Oracle/Middleware/wlserver_10.3
export WL_HOME
DOMAIN_HOME=/home/gs34/Oracle/Middleware/user_projects/domains/base_domain
export DOMAIN_HOME
INSTALL_HOME=${DOMAIN_HOME}/INSTALL/gs34
export INSTALL_HOME

EBAO_HOME=${DOMAIN_HOME}/EBAO_HOME
export EBAO_HOME

EBAO_TMP_HOME=${DOMAIN_HOME}/EBAO_TMP_HOME
export EBAO_TMP_HOME

EBAO_ARCH_HOME=${DOMAIN_HOME}/EBAO_ARCH_HOME
export EBAO_ARCH_HOME

EXT_LIB_HOME=${EBAO_HOME}/share_lib
export EXT_LIB_HOME


BATCH_HOME=${EBAO_HOME}/applications/batch/bin
export BATCH_HOME

EBAO_CLASSPATH=${EBAO_HOME}/share_lib:${EBAO_HOME}/applications:${EBAO_HOME}/applications/export_tool:${EBAO_HOME}/applications/export_tool/export_lib::${EBAO_HOME}/applications/batch/lib:${EBAO_HOME}/EAR_FILE:${EBAO_HOME}/app_config:${EBAO_HOME}/:${EBAO_HOME}/applications/batch/lib:${DOMAIN_HOME}/applications/insurance/web/WEB-INF/lib/
export EBAO_CLASSPATH

#JAXP="-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.xpath.XPathFactory=org.apache.xpath.jaxp.XPathFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema=org.apache.xerces.jaxp.validation.XMLSchemaFactory -Djavax.xml.datatype.DatatypeFactory=org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl"
#export JAXP



#CLASSPATH=${INSTALL_HOME}/EBAO_HOME/share_lib
#export CLASSPATH

CLASSPATH="${CLASSPATH}:${CLASSPATHSEP}:${EBAO_CLASSPATH}"
export CLASSPATH

unset USERNAME

httpd.conf

#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See  for detailed information.
# In particular, see 
# 
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so 'log/access_log'
# with ServerRoot set to '/www' will be interpreted by the
# server as '/www/log/access_log', where as '/log/access_log' will be
# interpreted as '/log/access_log'.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "/usr/local/apache2"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the 
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule dbd_module modules/mod_dbd.so
LoadModule dumpio_module modules/mod_dumpio.so
LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule include_module modules/mod_include.so
LoadModule filter_module modules/mod_filter.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule log_forensic_module modules/mod_log_forensic.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule ident_module modules/mod_ident.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule version_module modules/mod_version.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so



#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon




# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
#  definition.  These values also provide defaults for
# any  containers you may define later in the file.
#
# All of these directives may appear inside  containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin you@example.com

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80
ServerName 10.144.82.159:80

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/usr/local/apache2/htdocs"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#

    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all


#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#

    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all



#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#

    DirectoryIndex index.html


#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#

    Order allow,deny
    Deny from all
    Satisfy All


#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a 
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a 
# container, that host's errors will be logged there and not here.
#
#ErrorLog "logs/error_log"
ErrorLog "|/usr/local/apache2/bin/rotatelogs /usr/local/apache2/logs/error.log%Y%m%d 50M"


#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn


    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a 
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per- access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    #CustomLog "logs/access_log" common
 CustomLog "|/usr/local/apache2/bin/rotatelogs /usr/local/apache2/logs/access.log_%Y%m%d 50M" common
    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    #CustomLog "logs/access_log" combined



    #
    # Redirect: Allows you to tell clients about documents that used to 
    # exist in your server's namespace, but do not anymore. The client 
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a  section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts. 
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"




    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock logs/cgisock


#
# "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#

    AllowOverride None
    Options None
    Order allow,deny
    Allow from all


#
# DefaultType: the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain


    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig conf/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml


#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
#MIMEMagicFile conf/magic

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# MaxRanges: Maximum number of Ranges in a request before
# returning the entire resource, or one of the special
# values 'default', 'none' or 'unlimited'.
# Default setting is to accept 200 Ranges.
#MaxRanges unlimited

#
# EnableMMAP and EnableSendfile: On systems that support it, 
# memory-mapping or the sendfile syscall is used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted 
# filesystems or if support for these functions is otherwise
# broken on your system.
#
#EnableMMAP off
#EnableSendfile off

# Supplemental configuration
#
# The configuration files in the conf/extra/ directory can be 
# included to add extra features or to modify the default configuration of 
# the server, or you may simply copy their contents here and change as 
# necessary.

# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf

# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf

# Language settings
#Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
#Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#

SSLRandomSeed startup builtin
SSLRandomSeed connect builtin


LoadModule weblogic_module modules/mod_wl_22.so

 WebLogicHost 10.144.82.159
 WebLogicPort 7001
 WLTempDir /usr/local/apache2/temp
 ConnectRetrySecs 6
 ConnectTimeoutSecs 120
 MatchExpression /


RewriteEngine On
# Rule for disable TRACE
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
# Rule for rewrite directory access to 404 response
RewriteRule ^.*$ /404 [L]

Apache 2.2.23安裝

[root@ebao35 httpd-2.2.23]# pwd
/home/self/installed/Apache/httpd-2.2.23
[root@ebao35 httpd-2.2.23]# mkdir /usr/local/Apache2
[root@ebao35 httpd-2.2.23]# export APACHE_HOME=/usr/local/Apache2
[root@ebao35 httpd-2.2.23]# ./configure --prefix=${APACHE_HOME} --with-expat=builtin --enable-so --enable-mods-shared=all --enable-rule=SHARED_CORE --enable-modules=rewrite --enable-ssl
[root@ebao35 httpd-2.2.23]# make
[root@ebao35 httpd-2.2.23]# make install
[root@ebao35 httpd-2.2.23]# cd ${APACHE_HOME}/bin
[root@ebao35 httpd-2.2.23]# ./apachectl start

2012年12月6日 星期四

安裝 WebLogic 10.3.5版64位元


[self@ebao35 WebLogic 10.3.5]$ java -jar -D64 wls1035_generic.jar

無法建立 GUI,預設進入主控台模式。

Extracting 0%....................................................................................................100%

<-------------------- Oracle Installer - WebLogic 10.3.5.0 ------------------->

歡迎:

-------

此安裝程式將引導您完成 WebLogic 10.3.5.0 的安裝。請輸入 "Next" 或按 "Enter"

繼續下一個提示。如果您想變更之前輸入的資料,則請輸入 "Previous"。您可以透過輸入 "Exit" 隨時結束安裝程式。

輸入 [結束][下一步]>

<-------------------- Oracle Installer - WebLogic 10.3.5.0 ------------------->

JDK 選擇 (* 表示 Oracle 提供的 VM):

------------------------------------------

將安裝所選的 JDK。  若已安裝, 則會在命令碼字串替代中使用預設值。

   1|新增本機 JDK

   2|/usr/java/jdk1.6.0_35[ ]

   *預估安裝所需空間大小: 667.4 MB

輸入 1 新增,或輸入 >= 2 切換選擇  或 [結束][上一步][下一步]> 2

<-------------------- Oracle Installer - WebLogic 10.3.5.0 ------------------->

JDK 選擇 (* 表示 Oracle 提供的 VM):

------------------------------------------

將安裝所選的 JDK。  若已安裝, 則會在命令碼字串替代中使用預設值。

   1|新增本機 JDK

   2|/usr/java/jdk1.6.0_35[x]

   *預估安裝所需空間大小: 667.4 MB

輸入 1 新增,或輸入 >= 2 切換選擇  或 [結束][上一步][下一步]>

<-------------------- Oracle Installer - WebLogic 10.3.5.0 ------------------->

選擇產品安裝目錄:

-------------------------

Middleware 本位目錄: [/home/self/Oracle/Middleware]

產品安裝目錄:

   1|WebLogic Server: [/home/self/Oracle/Middleware/wlserver_10.3]

   2|Oracle Coherence: [/home/self/Oracle/Middleware/coherence_3.6]

輸入要選取的索引編號 或 [結束][上一步][下一步]>

<-------------------- Oracle Installer - WebLogic 10.3.5.0 ------------------->

將安裝下列產品和 JDK:

-----------------------------

    WebLogic Platform 10.3.5.0

    |_____WebLogic Server

    |    |_____Core Application Server

    |    |_____Administration Console

    |    |_____Configuration Wizard and Upgrade Framework

    |    |_____Web 2.0 HTTP Pub-Sub Server

    |    |_____WebLogic SCA

    |    |_____WebLogic JDBC Drivers

    |    |_____Third Party JDBC Drivers

    |    |_____WebLogic Server Clients

    |    |_____WebLogic Web Server Plugins

    |    |_____UDDI and Xquery Support

    |    |_____Evaluation Database

    |_____Oracle Coherence

         |_____Coherence Product Files

    *預估安裝所需空間大小: 667.5 MB

輸入 [結束][上一步][下一步]>

2012/12/10 下午 03:09:08 java.util.prefs.FileSystemPreferences$2 run

資訊: Created user preferences directory.

<-------------------- Oracle Installer - WebLogic 10.3.5.0 ------------------->

正在安裝檔案

0%          25%          50%          75%          100%

[------------|------------|------------|------------]

[***************************************************]

正在執行字串替代...

<-------------------- Oracle Installer - WebLogic 10.3.5.0 ------------------->

正在設定 OCM...

0%          25%          50%          75%          100%

[------------|------------|------------|------------]

[***************************************************]

正在建立網域...

<-------------------- Oracle Installer - WebLogic 10.3.5.0 ------------------->

安裝完成

恭喜您! 安裝完成。

按 [Enter] 繼續或者鍵入 [結束]>

<-------------------- Oracle Installer - WebLogic 10.3.5.0 ------------------->

清除程序正在進行中...

[self@ebao35 WebLogic 10.3.5]$cd /home/self/Oracle/Middleware/wlserver_10.3/common/bin
[self@ebao35 bin]$ cd /home/self/Oracle/Middleware/wlserver_10.3/common/bin
[self@ebao35 bin]$ ./config.sh
無法建立 GUI,預設進入主控台模式。





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

歡迎:
-------

在建立和擴充網域之間選擇。依據您的選擇, 組態精靈將引導您完成產生新網域或擴充現有網域的步驟。

 ->1|新增 WebLogic 網域
    |    在您的專案目錄中建立 WebLogic 網域。

   2|擴充現有的 WebLogic 網域
    |    使用此選項將新元件新增至現有網域,並修改組態設定。





輸入要選取的索引編號 或 [結束][下一步]> 1





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

選取網域來源:
-------------------

選取建立網域的來源,您可以透過選取 所需的元件或從現有網域樣板清單選取
來建立網域。

 ->1|選擇 Weblogic Platform 元件
    |    您可以選擇網域要支援的 Weblogic 元件。

   2|選擇自訂樣板
    |    如果您要使用現有樣板,請選擇此選項, 這可以是使用樣板製作器建
    |立的自訂樣板。





輸入要選取的索引編號 或 [結束][上一步][下一步]> 1





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

應用程式樣板選擇:
-------------------------



    可用的樣板
    |_____Basic WebLogic Server Domain - 10.3.4.0 [wlserver_10.3]x
    |_____Basic WebLogic SIP Server Domain - 10.3.4.0 [wlserver_10.3] [2]
    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.4.0 [wlserver_10.3] [3]
    |_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.4.0 [wlserver_10.3] [4]



輸入與括號中完全相同的號碼以切換選擇 或 [結束][上一步][下一步]> 1





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

應用程式樣板選擇:
-------------------------



    可用的樣板
    |_____Basic WebLogic Server Domain - 10.3.4.0 [wlserver_10.3]x
    |_____Basic WebLogic SIP Server Domain - 10.3.4.0 [wlserver_10.3] [2]
    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.4.0 [wlserver_10.3] [3]
    |_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.4.0 [wlserver_10.3] [4]


    ** 輸入無效,無法選取


輸入與括號中完全相同的號碼以切換選擇 或 [結束][上一步][下一步]>





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

編輯網域資訊:
-------------------

    | Name |    Value    |
   _|______|_____________|
   1| *名稱: | base_domain |




輸入以下內容的值 "名稱" 或 [結束][上一步][下一步]>





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

為此網域選取目標網域目錄:
-------------------------------------

    "目標位置" = [輸入新的值或使用預設值 "/home/self/Oracle/Middleware/user_projects/domains"]




輸入新的值 目標位置 或 [結束][上一步][下一步]> /home/self/ebao35/domains        




<--------------------------- Fusion Middleware 組態精靈 -------------------------->

組態管理程式使用者名稱和密碼:
-------------------------------------------

建立一個指派管理員角色的使用者。 此使用者是用於啟動開發模式伺服器的預設管理員。

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|          *名稱:           |                weblogic                 |
   2|     *User password:     |                                         |
   3| *Confirm user password: |                                         |
   4|           描述:           | This user is the default administrator. |

使用上方的值或選取其他選項:
    1 - 修改 "名稱"
    2 - 修改 "User password"
    3 - 修改 "Confirm user password"
    4 - 修改 "描述"




輸入要選取的選項號碼 或 [結束][上一步][下一步]> 2





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

組態管理程式使用者名稱和密碼:
-------------------------------------------

建立一個指派管理員角色的使用者。 此使用者是用於啟動開發模式伺服器的預設管理員。

    "*User password:" = []




輸入新的值 *User password: 或 [結束][重設][接受]> 123456





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

組態管理程式使用者名稱和密碼:
-------------------------------------------

建立一個指派管理員角色的使用者。 此使用者是用於啟動開發模式伺服器的預設管理員。

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|          *名稱:           |                weblogic                 |
   2|     *User password:     |               **********                |
   3| *Confirm user password: |                                         |
   4|           描述:           | This user is the default administrator. |

使用上方的值或選取其他選項:
    1 - 修改 "名稱"
    2 - 修改 "User password"
    3 - 修改 "Confirm user password"
    4 - 修改 "描述"
    5 - 捨棄變更




輸入要選取的選項號碼 或 [結束][上一步][下一步]> 3





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

組態管理程式使用者名稱和密碼:
-------------------------------------------

建立一個指派管理員角色的使用者。 此使用者是用於啟動開發模式伺服器的預設管理員。

    "*Confirm user password:" = []




輸入新的值 *Confirm user password: 或 [結束][重設][接受]> 123456





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

組態管理程式使用者名稱和密碼:
-------------------------------------------

建立一個指派管理員角色的使用者。 此使用者是用於啟動開發模式伺服器的預設管理員。

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|          *名稱:           |                weblogic                 |
   2|     *User password:     |               **********                |
   3| *Confirm user password: |               **********                |
   4|           描述:           | This user is the default administrator. |

使用上方的值或選取其他選項:
    1 - 修改 "名稱"
    2 - 修改 "User password"
    3 - 修改 "Confirm user password"
    4 - 修改 "描述"
    5 - 捨棄變更




輸入要選取的選項號碼 或 [結束][上一步][下一步]>





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

網域模式組態:
-------------------

為此網域啟用開發或生產模式。

 ->1|開發模式

   2|生產模式




輸入要選取的索引編號 或 [結束][上一步][下一步]>





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

Java SDK 選擇:
----------------

 ->1|Sun SDK 1.6.0_35 @ /usr/java/jdk1.6.0_35
   2|其他 Java SDK




輸入要選取的索引編號 或 [結束][上一步][下一步]>





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

選取選擇性組態:
----------------------

   1|管理伺服器 [ ]
   2|受管理伺服器、叢集和機器 [ ]
   3|RDBMS 安全儲存 [ ]



輸入要選取的索引編號 或 [結束][上一步][下一步]> 1





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

選取選擇性組態:
----------------------

   1|管理伺服器 [x]
   2|受管理伺服器、叢集和機器 [ ]
   3|RDBMS 安全儲存 [ ]



輸入要選取的索引編號 或 [結束][上一步][下一步]> 2





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

選取選擇性組態:
----------------------

   1|管理伺服器 [x]
   2|受管理伺服器、叢集和機器 [x]
   3|RDBMS 安全儲存 [ ]



輸入要選取的索引編號 或 [結束][上一步][下一步]>





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

設定管理伺服器:
----------------------

每個 WebLogic Server 網域都必須有一個管理伺服器。 管理伺服器用來執行管理工作。

    |       Name       |        Value        |
   _|__________________|_____________________|
   1|       *名稱:       |     AdminServer     |
   2| *Listen address: | All Local Addresses |
   3|   Listen port:   |        7001         |
   4|    SSL 監聽連接埠:    |         N/A         |
   5|     啟用 SSL:      |        false        |

使用上方的值或選取其他選項:
    1 - 修改 "名稱"
    2 - 修改 "Listen address"
    3 - 修改 "Listen port"
    4 - 修改 "啟用 SSL"




輸入要選取的選項號碼 或 [結束][上一步][下一步]>





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

設定受管理伺服器:
-------------------------

為受管理伺服器新增或刪除組態資訊。典型的生產環境都具有一個或多個 受管理伺服器。每個
受管理伺服器都是 WebLogic Server 的執行處理,承載企業應用程式。

    | 名稱* | Listen address* | Listen port | SSL 監聽連接埠 | 啟用 SSL |
   _|_____|_________________|_____________|___________|________|




輸入名稱用於新的  或 [結束][上一步][下一步]>





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

設定叢集:
-------------

為叢集新增或刪除組態資訊。叢集事由多個一起運作的伺服器執行處理組成, 以提高擴展性和可靠性。

    | 名稱* | 叢集訊息傳遞模式 | 多點傳播位址 | 多點傳播連接埠 | 叢集位址 |
   _|_____|__________|________|_________|______|




輸入名稱用於新的 叢集 或 [結束][上一步][下一步]>





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

設定機器:
-------------

新增或刪除機器。一部機器可承載一個或多個 WebLogic Server 執行處理。 管理伺服器和節點管理程式使用此機器定義來啟動遠端伺服器。

    | 名稱* | 節點管理程式監聽位址 | 節點管理程式監聽連接埠 |
   _|_____|____________|_____________|




輸入名稱用於新的 機器 或 [結束][上一步][下一步]>





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

設定 Unix 機器:
-------------------

新增或刪除機器。一部機器可承載一個或多個 WebLogic Server 執行處理。 管理伺服器和節點管理程式使用此機器定義來啟動遠端伺服器。

    | Name |
   _|______|




輸入名稱用於新的 Unix 機器 或 [結束][上一步][下一步]>





<--------------------------- Fusion Middleware 組態精靈 -------------------------->

正在建立網域...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


**** 網域建立成功! ****


[self@ebao35 bin]$

Dragon_V1.0.0.0.B24.04 Deploy successfully.



CentOS/RHEL 安裝 jdk-6u35-linux-x64-rpm.bin

[root@ebao35 jdk6]# su root
[root@ebao35 jdk6]# chmod 777 jdk-6u35-linux-x64-rpm.bin
[root@ebao35 jdk6]# ./jdk-6u35-linux-x64-rpm.bin
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
  inflating: jdk-6u35-linux-amd64.rpm
  inflating: sun-javadb-common-10.6.2-1.1.i386.rpm
  inflating: sun-javadb-core-10.6.2-1.1.i386.rpm
  inflating: sun-javadb-client-10.6.2-1.1.i386.rpm
  inflating: sun-javadb-demo-10.6.2-1.1.i386.rpm
  inflating: sun-javadb-docs-10.6.2-1.1.i386.rpm
  inflating: sun-javadb-javadoc-10.6.2-1.1.i386.rpm
正在準備…             ########################################### [100%]
   1:jdk                    ########################################### [100%]
Unpacking JAR files...
        rt.jar...
        jsse.jar...
        charsets.jar...
        tools.jar...
        localedata.jar...
        plugin.jar...
        javaws.jar...
        deploy.jar...
Installing JavaDB
正在準備…             ########################################### [100%]
   1:sun-javadb-common      ########################################### [ 17%]
   2:sun-javadb-core        ########################################### [ 33%]
   3:sun-javadb-client      ########################################### [ 50%]
   4:sun-javadb-demo        ########################################### [ 67%]
   5:sun-javadb-docs        ########################################### [ 83%]
   6:sun-javadb-javadoc     ########################################### [100%]

Java(TM) SE Development Kit 6 successfully installed.

Product Registration is FREE and includes many benefits:
* Notification of new versions, patches, and updates
* Special offers on Oracle products, services and training
* Access to early releases and documentation

Product and system data will be collected. If your configuration
supports a browser, the JDK Product Registration form will
be presented. If you do not register, none of this information
will be saved. You may also register your JDK later by
opening the register.html file (located in the JDK installation
directory) in a browser.

For more information on what data Registration collects and
how it is managed and used, see:
http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html

Press Enter to continue.....


Done.
[root@ebao35 jdk6]#

[root@ebao35 jdk6]# rpm -qa | grep java
sun-javadb-demo-10.6.2-1.1
sun-javadb-common-10.6.2-1.1
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
sun-javadb-core-10.6.2-1.1
sun-javadb-javadoc-10.6.2-1.1
sun-javadb-client-10.6.2-1.1
sun-javadb-docs-10.6.2-1.1
[root@ebao35 jdk6]# rpm -qa | grep jdk
jdk-1.6.0_35-fcs
[root@ebao35 jdk6]#
[root@ebao35 jdk6]# ll /usr/java
總計 4
lrwxrwxrwx 1 root root   16 12月  7 14:38 default -> /usr/java/latest
drwxr-xr-x 7 root root 4096 12月  7 14:38 jdk1.6.0_35
lrwxrwxrwx 1 root root   21 12月  7 14:38 latest -> /usr/java/jdk1.6.0_35

[root@ebao35 jdk6]# alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_35/bin/java 2
[root@ebao35 jdk6]#
[root@ebao35 jdk6]# alternatives --config java

有 2 程式提供 'java'。

  選擇        指令
-----------------------------------------------
*+ 1           /usr/lib/jvm/jre-1.4.2-gcj/bin/java
   2           /usr/java/jdk1.6.0_35/bin/java

請輸入以保留目前的選擇[+],或輸入選擇號碼:2
[root@ebao35 jdk6]#
[root@ebao35 jdk6]# java -version
java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10)
Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode)
[root@ebao35 jdk6]#
完成^_^

GS_Dragon_V1.0.0.0.initDB successful


JDK url

http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html
Apache HTTP沒有用JDK來開發
JDK 32, JDK 64不需要裝二套
簡單說 32bit機器裝 JDK 32位元,
64位元機器裝 JDK64位元
oracle client與JDK無關
oracle client 32或 oracle client 64
jdbc:thin(type4)
jdbc:oci (type2)

JAVA--OCI

開機自動 mount硬碟 /etc/fstab

/etc/fstab檔
/dev/sdc5                   /home/self/installed   ext4   defaults     2 2
/dev/sdb5                   /home/self/ebao35      ext4   defaults     2 2
[root@ebao35 init.d]# mount -a
[root@ebao35 init.d]# df
檔案系統               1K-區段      已用     可用 已用% 掛載點
/dev/mapper/VolGroup00-LogVol00
                       3967680   3150340    612540  84% /
/dev/sda1               101086     12869     82998  14% /boot
tmpfs                  1028308         0   1028308   0% /dev/shm
/dev/sdc5            131077668    192056 124227260   1% /home/self/installdb
/dev/sdb5            131077668    192056 124227260   1% /home/self/ebao35
[root@ebao35 init.d]#

ORA-00959: tablespace 'GS_342_INIT_TBS' does not exist

initial_db_2012-12-04_17-46-57.log
IMP-00003: ORACLE error 959 encountered
ORA-00959: tablespace 'GS_342_INIT_TBS' does not exist
. . importing table          "T_CLM_INTERFACE_DEF"          8 rows imported
. . importing table          "T_CLM_INTERFACE_LOG"          0 rows imported
. . importing table      "T_CLM_INTERFACE_SERVICE"          8 rows imported
. . importing table          "T_CLM_INVESTIGATION"          0 rows imported
. . importing table                   "T_CLM_ITEM"          0 rows imported
. . importing table               "T_CLM_ITEM_HIS"          0 rows imported
IMP-00017: following statement failed with ORACLE error 959:
 "CREATE TABLE "T_CLM_LETTER" ("LETTER_ID" NUMBER(10, 0) NOT NULL ENABLE, "TA"

ORA-29857: 網域索引和 (或) 次要物件存在於表格空間中

刪除 tablespace時出現 ORA-29857: 網域索引和 (或) 次要物件存在於表格空間中 ORA-29857: domain indexes and/or secondary objects exist in the tablespace
$sqlplus "/as sysdba"
SQL> select owner||','||index_name||','||table_owner from all_indexes where index_type='DOMAIN';
OWNER||','||INDEX_NAME||','||TABLE_OWNER
GSUSER,IDX_PTY_INDI_P_NAME,GSUSER
GSUSER,IND_PTY_ORG__CTXCAT,GSUSER

SQL>drop user gsuser cascade;
User droped.
SQL>drop tablespace GS_342_INIT_TBS including contents cascade constraints;
Tablespace dropped.

2012年12月5日 星期三

Create a Basic Cluster

 (15 minutes) 

Skills Learned

At the end of this exercise, you will be able to:
·         Create a cluster of managed servers
·         Start clustered servers

Problem Statement

The Dizzyworld system architects have determined that the Dizzyworld applications will benefit from a highly available environment which will load balance requests to different servers.  This will make the Dizzyworld applications more reliable to employees and customers in case of server failure.  It will also allow more processing capabilities for times when application traffic is heavier than usual.

Design

Overview

In this lab you will create a cluster of three servers, dizzy1, dizzy2 and dizzy3.  This cluster will eventually host your Dizzyworld applications but for now you want to confirm that they start properly and join the cluster.

Specifications

Figure 13 presents the cluster architecture...


Figure 13. Dizzyworld Cluster Architecture


Table 26 Variables
File Name
Example
<STUDENT>
(Windows) c:\student\course_wls10_sysadmin
(Linux) /usr/student/course_wls10_sysadmin
<WORK_HOME>
(Windows) <STUDENT>\work
(Linux) <STUDENT>/work
<LAB_HOME>
(Windows) <STUDENT>\labs\labXX
(Linux) <STUDENT>/labs/labXX

Instructions

            1.   
Set up the exercise by opening a command prompt using prompt.cmd (Windows) or ./prompt.sh (Linux) found in <STUDENT>\bin. Change to the <LAB_HOME> directory and type:

ant setup_exercise

Note:  To continue working on the current exercise, use ant continue_exercise to start the HRDatabase and AdminServer. Using ant setup_exercise will overwrite your existing work.
            2.   
If already running, shut down dizzy1, dizzy2 and dizzy3 managed servers.  If not already open, start a web browser and navigate to http://localhost:7001/console.  Log in as:

Username: system
Password: weblogic

Create a new cluster with the following properties:

Name: dizzyworldCluster
Multicast Address: 239.192.0.0 (default)
Multicast Port: (refer to instructor)
Servers: dizzy1, dizzy2, dizzy3
            3.   
Start dizzy1, dizzy2 and dizzy3.  Watch each server as it tries to synchronize with other servers in the cluster and as it finally joins the cluster.  During startup of the servers, if prompted, enter the following:

Username: system
Password: weblogic
            4.   
(Optional): To set up the solution for this lab, open a command prompt using prompt.cmd (Windows) or ./prompt.sh (Linux) found in <STUDENT>\bin directory. Change to the <LAB_HOME> directory and type:

ant setup_solution

Detailed Instructions

Set up the exercise
        1.1        
Open a prompt using prompt.cmd (Windows) or ./prompt.sh (Linux) in <STUDENT>\bin.

        1.2        
Change to the <LAB_HOME> directory.

        1.3        
Type the following command:

ant setup_exercise

Note:  To continue working on the current exercise, use ant continue_exercise to start the HRDatabase and AdminServer. Using ant setup_exercise will overwrite your existing work.

Create a cluster
        2.1        
If already running, shut down dizzy1, dizzy2 and dizzy3 managed servers.
        2.2        
If not already open, start a web browser and navigate to http://localhost:7001/console.  Log in as:

Username: system
Password: weblogic
        2.3        
Navigate to dizzyworld à Environment à Clusters.  Lock the console, if necessary.
        2.4        
Create a new cluster with the following properties:

Name: dizzyworldCluster
Messaging Mode: Multicast
Multicast Address: 239.192.0.0 (default)
Multicast Port: (refer to instructor)

Click OK.
        2.5        
Go back into the dizzyworldCluster and navigate to the Configuration à Servers tab.
        2.6        
Add the existing servers dizzy1, dizzy2 and dizzy3 to the cluster.
        2.7        
Activate your changes.
        2.8        
Navigate to dizzyworld à Environment à Servers and view the list of servers.  Note that dizzy1, dizzy2 and dizzy3 are now part of the dizzyworldCluster.
Start the clustered servers
        3.1        
Using the previously opened prompt, navigate to <WORK_HOME>\domains\dizzyworld\bin.
        3.2        
Start the dizzy1 server by typing the following in the prompt:

(Windows) start startManagedWebLogic.cmd dizzy1
(Linux)  xterm –T dizzy1 –e ./startManagedWebLogic.sh dizzy1 &
        3.3        
If prompted, enter the following:

Username: system
Password: weblogic
        3.4        
Watch the server start up in the prompt window.  At some point you should see it start listening for cluster announcement and waiting to synchronize with other servers in the cluster.  As the other servers have not started yet; there is nothing for it to synchronize with yet.

<Notice> <Cluster> <BEA-000138> <Listening for announcements from cluster dizzyworldCluster on 239.192.0.0:7011.>

<Notice> <Cluster> <BEA-000133> <Waiting to synchronize with other running members of dizzyworldCluster.>
        3.5        
Finally, you should see that it has successfully joined the cluster.  You will see something like:

<Notice> <Cluster> <BEA-000102> <Joining cluster dizzyworldCluster on 239.192.0.0:7011>
        3.6        
Start the dizzy2 server by typing the following in the prompt window:

(Windows) start startManagedWebLogic.cmd dizzy2
(Linux) xterm –T dizzy2 –e ./startManagedWebLogic.sh dizzy2 &
        3.7        
If prompted, enter the following:

Username: system
Password: weblogic
        3.8        
Watch the server start up in the prompt window.  As one of the servers in the cluster is already started, dizzy2 will synchronize with dizzy1 and will download the cluster JNDI tree.

<Notice> <Cluster> <BEA-000133> <Waiting to synchronize with other running members of dizzyworldCluster.>
        3.9        
Finally, start the dizzy3 server and watch it synchronize with the other servers in the cluster and finally join the cluster.
(Optional) Setup Solution, if unable to complete lab.
        4.1        
To set up the solution for this lab, open a command prompt using prompt.cmd (Windows) or ./prompt.sh (Linux) found in <STUDENT>\bin directory. Change to the <LAB_HOME> directory and type:

ant setup_solution