2015年5月19日 星期二

[MEGA] CAS 設定檔

下面會出現 2015-05-18 20:48:14,799 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/cas].[cas]] - org.xml.sax.SAXParseException; lineNumber: 121; columnNumber: 39; cvc-complex-type.2.4.a: Invalid content was found starting with element 'action-state'. One of '{"http://www.springframework.org/schema/webflow":on-end, "http://www.springframework.org/schema/webflow":output, "http://www.springframework.org/schema/webflow":exception-handler, "http://www.springframework.org/schema/webflow":bean-import}' is expected. 錯誤 參考 http://stackoverflow.com/questions/23779121/action-state-not-accept-evaluate-tags-spring-web-flow-2-3

2015年5月15日 星期五

[MEGA] ORACLE 帳號密碼過期

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; select username,account_status from dba_users; username account_status MGMT_VIEW OPEN SYS OPEN SYSTEM OPEN HNCBPG OPEN CRM OPEN BAT OPEN DBSNMP EXPIRED SYSMAN EXPIRED OUTLN EXPIRED & LOCKED FLOWS_FILES EXPIRED & LOCKED MDSYS EXPIRED & LOCKED ORDSYS EXPIRED & LOCKED EXFSYS EXPIRED & LOCKED WMSYS EXPIRED & LOCKED user bat -->帳號 by bat --> 密碼 alter user bat identified by bat;

2015年4月29日 星期三

[MEGA] 安裝Weblogic 12.1.1版

[oracle@msigap1 ~]$ java -jar -D64 wls1211_generic.jar Invalid or corrupt jarfile wls1211_generic.jar 表示檔案有損壞,再重新下載上傳 在執行一次 [oracle@msigap1 ~]$ java -jar -D64 wls1211_generic.jar Unable to instantiate GUI, defaulting to console mode. Extracting 0%................................................................... .................................100% <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Welcome: -------- This installer will guide you through the installation of WebLogic 12.1.1.0. Type "Next" or enter to proceed to the next prompt. If you want to change data entered previously, type "Previous". You may quit the installer at any time by typing "Exit". Enter [Exit][Next]>Next <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Choose Middleware Home Directory: --------------------------------- "Middleware Home" = [Enter new value or use default "/home/oracle/Oracle/Middleware"] Enter new Middleware Home OR [Exit][Previous][Next]> /u01/app/oracle/middleware/12.1.1.0/ <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Choose Middleware Home Directory: --------------------------------- "Middleware Home" = [/u01/app/oracle/middleware/12.1.1.0/] Use above value or select another option: 1 - Enter new Middleware Home 2 - Change to default [/home/oracle/Oracle/Middleware] Enter option number to select OR [Exit][Previous][Next]> 1 <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Choose Middleware Home Directory: --------------------------------- "Middleware Home" = [/u01/app/oracle/middleware/12.1.1.0/] Enter new Middleware Home OR [Exit][Previous][Next]> Next <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Choose Middleware Home Directory: --------------------------------- Warning /u01/app/oracle/middleware directory is not empty. Proceed with installation? Enter [Exit][Previous][Next]> Next <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Register for Security Updates: ------------------------------ Provide your email address for security updates and to initiate configuration manager. 1|Email:[cyliu0315@gmail.com] 2|Support Password:[] 3|Receive Security Update:[Yes] Enter index number to select OR [Exit][Previous][Next]> 3 <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Register for Security Updates: ------------------------------ Provide your email address for security updates and to initiate configuration manager. "Receive Security Update:" = [Enter new value or use default "Yes"] Enter [Yes][No]?No <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Register for Security Updates: ------------------------------ Provide your email address for security updates and to initiate configuration manager. "Receive Security Update:" = [Enter new value or use default "Yes"] ** Do you wish to bypass initiation of the configuration manager and ** remain uninformed of critical security issues in your configuration? Enter [Yes][No]? Yes <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Register for Security Updates: ------------------------------ Provide your email address for security updates and to initiate configuration manager. 1|Email:[] 2|Support Password:[] 3|Receive Security Update:[No] Enter index number to select OR [Exit][Previous][Next]> Next <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Choose Install Type: -------------------- Select the type of installation you wish to perform. ->1|Typical | Install the following product(s) and component(s): | - WebLogic Server | - Oracle Coherence 2|Custom | Choose software products and components to install and perform optional |configuration. Enter index number to select OR [Exit][Previous][Next]>Next <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> JDK Selection (Any * indicates Oracle Supplied VM): --------------------------------------------------- JDK(s) chosen will be installed. Defaults will be used in script string-substitution if installed. 1|Add Local Jdk 2|/usr/java/jdk1.6.0_45[x] *Estimated size of installation: 589.7 MB Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> Next <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Choose Product Installation Directories: ---------------------------------------- Middleware Home Directory: [/u01/app/oracle/middleware/12.1.1.0/] Product Installation Directories: 1|WebLogic Server: [/u01/app/oracle/middleware/12.1.1.0/wlserver_12.1] 2|Oracle Coherence: [/u01/app/oracle/middleware/12.1.1.0/coherence_3.7] Enter index number to select OR [Exit][Previous][Next]> Next <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Choose Product Installation Directories: ---------------------------------------- Warning One or more installation directories are not empty. Proceed with installation? Enter [Exit][Previous][Next]> Next <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> The following Products and JDKs will be installed: -------------------------------------------------- WebLogic Platform 12.1.1.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 | |_____Xquery Support | |_____Evaluation Database |_____Oracle Coherence |_____Coherence Product Files *Estimated size of installation: 589.9 MB Enter [Exit][Previous][Next]> Next Apr 29, 2015 12:48:50 PM java.util.prefs.FileSystemPreferences$2 run INFO: Created user preferences directory. <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Installing files.. 0% 25% 50% 75% 100% [------------|------------|------------|------------] [***************************************************] Performing String Substitutions... <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Configuring OCM... 0% 25% 50% 75% 100% [------------|------------|------------|------------] [***************************************************] <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Installing Patches... 0% 25% 50% 75% 100% [------------|------------|------------|------------] [***************************************************] Creating Domains... <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Installation Complete Congratulations! Installation is complete. Press [Enter] to continue or type [Exit]> Enter Press [Enter] to continue or type [Exit]> Enter <-------------------- Oracle Installer - WebLogic 12.1.1.0 -------------------> Clean up process in progress ... 以上安裝完成 接著Create Domain [oracle@msigap1 bin]$ cd /u01/app/oracle/middleware/12.1.1.0/wlserver_12.1/common/bin [oracle@msigap1 bin]$ ./config.sh Unable to instantiate GUI, defaulting to console mode. <------------------- Fusion Middleware Configuration Wizard ------------------> Welcome: -------- Choose between creating and extending a domain. Based on your selection, the Configuration Wizard guides you through the steps to generate a new or extend an existing domain. ->1|Create a new WebLogic domain | Create a WebLogic domain in your projects directory. 2|Extend an existing WebLogic domain | Use this option to add new components to an existing domain and modify |configuration settings. Enter index number to select OR [Exit][Next]> 1 <------------------- Fusion Middleware Configuration Wizard ------------------> Select Domain Source: --------------------- Select the source from which the domain will be created. You can create the domain by selecting from the required components or by selecting from a list of existing domain templates. ->1|Choose Weblogic Platform components | You can choose the Weblogic component(s) that you want supported in |your domain. 2|Choose custom template | Choose this option if you want to use an existing template. This |could be a custom created template using the Template Builder. Enter index number to select OR [Exit][Previous][Next]> 1 <------------------- Fusion Middleware Configuration Wizard ------------------> Application Template Selection: ------------------------------- Available Templates |_____Basic WebLogic Server Domain - 12.1.1.0 [wlserver_12.1]x |_____Basic WebLogic SIP Server Domain - 12.1.1.0 [wlserver_12.1] [2] |_____WebLogic Advanced Web Services for JAX-RPC Extension - 12.1.1.0 [wlserver_12.1] [3] |_____WebLogic Advanced Web Services for JAX-WS Extension - 12.1.1.0 [wlserver_12.1] [4] Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1 <------------------- Fusion Middleware Configuration Wizard ------------------> Application Template Selection: ------------------------------- Available Templates |_____Basic WebLogic Server Domain - 12.1.1.0 [wlserver_12.1]x |_____Basic WebLogic SIP Server Domain - 12.1.1.0 [wlserver_12.1] [2] |_____WebLogic Advanced Web Services for JAX-RPC Extension - 12.1.1.0 [wlserver_12.1] [3] |_____WebLogic Advanced Web Services for JAX-WS Extension - 12.1.1.0 [wlserver_12.1] [4] ** Invalid input, not selectable Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next <------------------- Fusion Middleware Configuration Wizard ------------------> Edit Domain Information: ------------------------ | Name | Value | _|________|_____________| 1| *Name: | base_domain | Enter value for "Name" OR [Exit][Previous][Next]> CKI_TST <------------------- Fusion Middleware Configuration Wizard ------------------> Edit Domain Information: ------------------------ | Name | Value | _|________|_________| 1| *Name: | CKI_TST | Use above value or select another option: 1 - Modify "Name" 2 - Discard Changes Enter option number to select OR [Exit][Previous][Next]>Next <------------------- Fusion Middleware Configuration Wizard ------------------> Select the target domain directory for this domain: --------------------------------------------------- "Target Location" = [Enter new value or use default "/u01/app/oracle/middleware/12.1.1.0/user_projects/domains"] Enter new Target Location OR [Exit][Previous][Next]>Next <------------------- Fusion Middleware Configuration Wizard ------------------> Configure Administrator User Name and Password: ----------------------------------------------- Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers. | Name | Value | _|_________________________|_________________________________________| 1| *Name: | weblogic | 2| *User password: | | 3| *Confirm user password: | | 4| Description: | This user is the default administrator. | Use above value or select another option: 1 - Modify "Name" 2 - Modify "User password" 3 - Modify "Confirm user password" 4 - Modify "Description" Enter option number to select OR [Exit][Previous][Next]>2 <------------------- Fusion Middleware Configuration Wizard ------------------> Configure Administrator User Name and Password: ----------------------------------------------- Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers. "*User password:" = [] Enter new *User password: OR [Exit][Reset][Accept]> welcome1 <------------------- Fusion Middleware Configuration Wizard ------------------> Configure Administrator User Name and Password: ----------------------------------------------- Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers. | Name | Value | _|_________________________|_________________________________________| 1| *Name: | weblogic | 2| *User password: | ******** | 3| *Confirm user password: | | 4| Description: | This user is the default administrator. | Use above value or select another option: 1 - Modify "Name" 2 - Modify "User password" 3 - Modify "Confirm user password" 4 - Modify "Description" 5 - Discard Changes Enter option number to select OR [Exit][Previous][Next]> 3 <------------------- Fusion Middleware Configuration Wizard ------------------> Configure Administrator User Name and Password: ----------------------------------------------- Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers. "*Confirm user password:" = [] Enter new *Confirm user password: OR [Exit][Reset][Accept]> welcome1 <------------------- Fusion Middleware Configuration Wizard ------------------> Configure Administrator User Name and Password: ----------------------------------------------- Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers. | Name | Value | _|_________________________|_________________________________________| 1| *Name: | weblogic | 2| *User password: | ******** | 3| *Confirm user password: | ******** | 4| Description: | This user is the default administrator. | Use above value or select another option: 1 - Modify "Name" 2 - Modify "User password" 3 - Modify "Confirm user password" 4 - Modify "Description" 5 - Discard Changes Enter option number to select OR [Exit][Previous][Next]> Next <------------------- Fusion Middleware Configuration Wizard ------------------> Domain Mode Configuration: -------------------------- Enable Development or Production Mode for this domain. ->1|Development Mode 2|Production Mode Enter index number to select OR [Exit][Previous][Next]> 2 <------------------- Fusion Middleware Configuration Wizard ------------------> Java SDK Selection: ------------------- ->1|Sun SDK 1.6.0_45 @ /usr/java/jdk1.6.0_45 2|Other Java SDK Enter index number to select OR [Exit][Previous][Next]> Next <------------------- Fusion Middleware Configuration Wizard ------------------> Select Optional Configuration: ------------------------------ 1|Administration Server [ ] 2|Managed Servers, Clusters and Machines [ ] 3|RDBMS Security Store [ ] Enter index number to select OR [Exit][Previous][Next]>1 <------------------- Fusion Middleware Configuration Wizard ------------------> Select Optional Configuration: ------------------------------ 1|Administration Server [x] 2|Managed Servers, Clusters and Machines [ ] 3|RDBMS Security Store [ ] Enter index number to select OR [Exit][Previous][Next]> 2 <------------------- Fusion Middleware Configuration Wizard ------------------> Select Optional Configuration: ------------------------------ 1|Administration Server [x] 2|Managed Servers, Clusters and Machines [x] 3|RDBMS Security Store [ ] Enter index number to select OR [Exit][Previous][Next]> Next <------------------- Fusion Middleware Configuration Wizard ------------------> Configure the Administration Server: ------------------------------------ Each WebLogic Server domain must have one Administration Server. The Administration Server is used to perform administrative tasks. | Name | Value | _|__________________|_____________________| 1| *Name: | AdminServer | 2| *Listen address: | All Local Addresses | 3| Listen port: | 7001 | 4| SSL listen port: | N/A | 5| SSL enabled: | false | Use above value or select another option: 1 - Modify "Name" 2 - Modify "Listen address" 3 - Modify "Listen port" 4 - Modify "SSL enabled" Enter option number to select OR [Exit][Previous][Next]>Next <------------------- Fusion Middleware Configuration Wizard ------------------> Configure Managed Servers: -------------------------- Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Server is an instance of WebLogic Server used to host enterprise applications. | Name* | Listen address* | Listen port | SSL listen port | SSL enabled | _|_______|_________________|_____________|_________________|_____________| Enter name for a new OR [Exit][Previous][Next]>Next <------------------- Fusion Middleware Configuration Wizard ------------------> Configure Clusters: ------------------- Add or delete configuration information for clusters. A cluster consists of multiple server instances working together to provide increased scalability and reliability. |Name*|Cluster messaging...|Multicast add...|Multicast ...|Cluster add...| _|_____|____________________|________________|_____________|______________| Enter name for a new Cluster OR [Exit][Previous][Next]> Next <------------------- Fusion Middleware Configuration Wizard ------------------> Configure Machines: ------------------- Add or delete machines. A machine hosts one or more WebLogic Server instances. The Admin Server and Node Manager use this machine definition to start remote servers. | Name* | Node manager listen address | Node manager listen port | _|_______|_____________________________|__________________________| Enter name for a new Machine OR [Exit][Previous][Next]>Next <------------------- Fusion Middleware Configuration Wizard ------------------> Configure Unix Machines: ------------------------ Add or delete machines. A machine hosts one or more WebLogic Server instances. The Admin Server and Node Manager use this machine definition to start remote servers. | Name | _|______| Enter name for a new Unix Machine OR [Exit][Previous][Next]>Next <------------------- Fusion Middleware Configuration Wizard ------------------> Creating Domain... 0% 25% 50% 75% 100% [------------|------------|------------|------------] [***************************************************] **** Domain Created Successfully! ****

2015年4月27日 星期一

[MEGA] SQL Server Express

1. 安裝過程中需要連網路,不然.net framework 4.0網路連線檢查會不通過 設定DNS IP 即可 2. 下載離線版的.net framework 3.5 3. 網路設定參考底下,就可以讓遠端連線,不然預設為本機連線 http://www.dotblogs.com.tw/terrychuang/archive/2012/07/10/73318.aspx?fid=70087 接著測試就成功了~~

2015年4月21日 星期二

[MEGA] Nexus相關資料

預設帳號/密碼:admin/admin123

2015年3月23日 星期一

[MEGA] restart SVN

service svnserve start

2015年3月13日 星期五

[MEGA] install CAS

Download 下載v4.0.0-RC4 執行
mvn clean package -Dmaven.test.skip=true
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Jasig Central Authentication Service .................. SUCCESS [5.278s]
[INFO] Jasig CAS Core ........................................ SUCCESS [18.666s]

[INFO] Jasig CAS Generic Support ............................. SUCCESS [2.357s]
[INFO] Jasig CAS Web Application support ..................... SUCCESS [3.044s]
[INFO] Jasig CAS Web Application ............................. SUCCESS [1.731s]
[INFO] Jasig CAS JDBC Support ................................ SUCCESS [1.578s]
[INFO] Jasig CAS Legacy Support .............................. SUCCESS [1.276s]
[INFO] Jasig CAS LDAP Support ................................ SUCCESS [2.561s]
[INFO] Jasig CAS OpenId Server Support ....................... SUCCESS [9.051s]
[INFO] Jasig CAS RADIUS Support .............................. SUCCESS [37.437s]

[INFO] Jasig CAS SPNEGO/NTLM Support ......................... SUCCESS [15.183s]

[INFO] Jasig CAS Trusted User Support ........................ SUCCESS [0.937s]
[INFO] Jasig CAS X.509 Client Certificate Support ............ SUCCESS [13.538s]

[INFO] Jasig CAS OAuth Server Support ........................ SUCCESS [13.979s]

[INFO] Jasig CAS Client Protocols Support using pac4j ........ SUCCESS [12.442s]

[INFO] Jasig CAS SAML Server and Validation Support .......... SUCCESS [39.917s]

[INFO] Jasig CAS JBoss Cache Integration ..................... SUCCESS [45.341s]

[INFO] Jasig CAS Memcached Integration ....................... SUCCESS [18.470s]

[INFO] Jasig CAS Ehcache Integration ......................... SUCCESS [0.860s]
[INFO] Jasig CAS Restlet Integration ......................... SUCCESS [17.452s]

[INFO] Jasig CAS - Uber WAR .................................. SUCCESS [1.150s]
[INFO] Jasig CAS ClearPass Extension ......................... SUCCESS [7.284s]
[INFO] Jasig CAS Management Web Application .................. SUCCESS [25.639s]

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 minutes 56 seconds
[INFO] Finished at: Fri Mar 13 10:29:31 CST 2015
[INFO] Final Memory: 109M/782M
[INFO] ------------------------------------------------------------------------

產生
cas-4.0.0-RC4\cas-server-webapp\target\cas.war
複製到Tomcat底下

2015年2月26日 星期四

[MEGA LOG]Jenkins安裝

下載Jenkins 下載jenkins.war完成 放到/usr/share/tomcat/webapps server.xml 在Connector需新增URIEncoding="UTF-8" catalina.sh CATALINA_OPTS 增加-DJENKINS_HOME=/usr/share/tomcat/webapps/jenkins/ CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS" -DJENKINS_HOME=/usr/share/tomcat/webapps/jenkins/

2015年2月24日 星期二

[MEGA LOG]Weblogic Silent mode安裝

安裝java server 版本 server-jre-7u76-linux-x64.gz 下載完成,解壓縮到
/usr/java/jdk1.7.0_76
設定方式參考reference
vi + /etc/profile
加入
JAVA_HOME=/usr/java/jdk1.7.0_76
JRE_HOME=/usr/java/jdk1.7.0_76/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export JAVA_HOME JRE_HOME PATH CLASSPATH
執行後生效
[admin@msigap1]source /etc/profile 
[admin@msigap1]echo $PATH
[admin@msigap1 etc]$ echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/java/jdk1.7.0_76/bin:/usr/java/jdk1.7.0_76/jre/bin:/home/admin/.local/bin:/home/admin/bin
***開始安裝Weblogic***
[admin@msigap1 ~]$ java -jar -D64 fmw_12.1.3.0.0_wls.jar
Launcher log file is /tmp/OraInstall2015-02-24_11-01-50AM/launcher2015-02-24_11-01-50AM.log.
Extracting files..............
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 1999.992 MHz    Passed
Checking monitor: must be configured to display at least 256 colors.  DISPLAY environment variable not set.    Failed <<<<
Checking swap space: must be greater than 512 MB.   Actual 4194296 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 12547 MB    Passed

Some system prerequisite checks failed.
You must fulfill these requirements before continuing with the installation.

Continue? (yes [y] / no [n]) [n]
y
You have confirmed that the product can be installed on this platform.
Continuing with the installation.

>>> Ignoring failure(s) of required prerequisite checks.  Continuing...
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2015-02-24_11-01-50AM
DISPLAY is not set.  Please set the DISPLAY environment variable and try again.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
- For csh:                      %% setenv DISPLAY 192.168.1.128:0.0
- For sh, ksh and bash:         $ DISPLAY=192.168.1.128:0.0; export DISPLAY
Use the following command to see what shell is being used:
echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
echo $DISPLAY
- Make sure that client users are authorized to connect to the X Server.
To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
%% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
%% 
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
Typical path for xclock: /usr/X11R6/bin/xclock
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
        at java.awt.Window.(Window.java:535)
        at java.awt.Frame.(Frame.java:420)
        at java.awt.Frame.(Frame.java:385)
        at javax.swing.SwingUtilities$SharedOwnerFrame.(SwingUtilities.java:1757)
        at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1832)
        at javax.swing.JDialog.(JDialog.java:271)
        at javax.swing.JDialog.(JDialog.java:205)
        at javax.swing.JDialog.(JDialog.java:153)
        at oracle.as.install.engine.modules.presentation.ui.common.dialogs.SpecifyInventoryDirectoryDialog.(SpecifyInventoryDirectoryDialog.java:235)
        at oracle.as.install.engine.modules.presentation.ui.common.dialogs.SpecifyInventoryDirectoryDialog.showDialog(SpecifyInventoryDirectoryDialog.java:761)
        at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:616)
Logs are located here: /tmp/OraInstall2015-02-24_11-01-50AM.
[admin@msigap1 ~]$ su - root
Password:
Last login: Tue Feb  3 09:54:14 CST 2015 on pts/0
[root@msigap1 ~]# groupadd -g 1000 oinstall
groupadd: group 'oinstall' already exists
[root@msigap1 ~]# useradd -u 1100 -g oinstall oracle
useradd: user 'oracle' already exists
[root@msigap1 ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: The password fails the dictionary check - it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.
[root@msigap1 ~]# mkdir -p /u01/app/oracle/middleware
[root@msigap1 ~]# chown -R oracle:oinstall /u01
[root@msigap1 ~]# chmod -R 775 /u01/

[root@msigap1 ~]#vi /home/oracle/.bash_profile
# User specific environment and startup programs
MW_HOME=/u01/app/oracle/middleware; export MW_HOME
WLS_HOME=$MW_HOME/12.1.3.0/wlserver; export WLS_HOME
JAVA_HOME=/usr/java/jdk1.7.0_76/; export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH; export PATH
# JDK 7 Requirement
USER_MEM_ARGS="-Xms32m -Xmx200m -XX:MaxPermSize=350m"

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH

[oracle@msigap1 ~]$ java -jar -D64  fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/oracle/response/wls.rsp -invPtrLoc /home/oracle/oraInst.loc
Launcher log file is /tmp/OraInstall2015-02-24_11-59-04AM/launcher2015-02-24_11-59-04AM.log.
Extracting files.........
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 1999.992 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 4194296 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 7042 MB    Passed


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2015-02-24_11-59-04AM
Log: /tmp/OraInstall2015-02-24_11-59-04AM/install2015-02-24_11-59-04AM.log
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Starting check : CertifiedVersions
Expected result: One of enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-11
Actual Result: (Unknown
Check complete. The overall result of this check is: Failed <<<<

Problem: This Oracle software is not certified on the current operating system.
Recommendation: Make sure you are installing the software on the correct platform.
Warning: Check:CertifiedVersions failed.
Starting check : CheckJDKVersion
Expected result: 1.7.0_15
Actual Result: 1.7.0_76
Check complete. The overall result of this check is: Passed
CheckJDKVersion Check: Success.
Validations are enabled for this session.
Verifying data......
[ERROR] Data Insufficient to start Install.
[ERROR] Rule_VDiskSpace_Error
[ERROR] Rule_OHFS_Error
[ERROR] Provide a value for variable ORACLE HOME PATH
[ERROR] Rule_GetOracleHome_Error
[ERROR] Rule_VDiskSpace_Error
[ERROR] Select one and only one Install Type. Any one of the variables SOFTWARE ONLY TYPE,BASIC TYPE or ADVANCED TYPE in Section GENERIC must be set to true.
[ERROR] Rule_CalculateFreeSpace_Error. Aborting Install
Logs are located here: /tmp/OraInstall2015-02-24_11-59-04AM.
https://www.centos.org/forums/viewtopic.php?t=41411
[oracle@msigap1 ~]$  java -jar   fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/oracle/response/wls.rsp -invPtrLoc /home/oracle/oraInst.loc -ignoreSysPrereqs
Launcher log file is /tmp/OraInstall2015-02-24_01-53-40PM/launcher2015-02-24_01-53-40PM.log.
Extracting files.........
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 1999.992 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 4194296 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 3356 MB    Passed


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2015-02-24_01-53-40PM
Log: /tmp/OraInstall2015-02-24_01-53-40PM/install2015-02-24_01-53-40PM.log
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Validations are enabled for this session.
Verifying data......
[ERROR] Data Insufficient to start Install.
[ERROR] Rule_VDiskSpace_Error
[ERROR] Rule_OHFS_Error
[ERROR] Provide a value for variable ORACLE HOME PATH
[ERROR] Rule_GetOracleHome_Error
[ERROR] Rule_VDiskSpace_Error
[ERROR] Select one and only one Install Type. Any one of the variables SOFTWARE ONLY TYPE,BASIC TYPE or ADVANCED TYPE in Section GENERIC must be set to true.
[ERROR] Rule_CalculateFreeSpace_Error. Aborting Install
Logs are located here: /tmp/OraInstall2015-02-24_01-53-40PM.

http://www.cemdogan.com/2014/10/07/weblogic-12-1-3-silent-mode-installation/ http://middlewaresnippets.blogspot.tw/2013/08/weblogic-12c-starting-and-stopping.html 經過以上的錯誤,整理一下 vi /home/oracle/oraInst.loc
inventory_loc=/home/oracle/oraInventory/
inst_group=oinstall
[oracle@msigap1 response]$ vi wls.rsp

[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/u01/app/oracle/middleware/12.1.3.0
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=
#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=
#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true
#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
#Provide the Proxy Host
PROXY_HOST=
#Provide the Proxy Port
PROXY_PORT=
#Provide the Proxy Username
PROXY_USER=
#Provide the Proxy Password
PROXY_PWD=
#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=

# User specific environment and startup programs
MW_HOME=/u01/app/oracle/middleware/12.1.3.0; export MW_HOME
WLS_HOME=$MW_HOME/wlserver; export WLS_HOME
export WL_HOME=$MW_HOME/wlserver/
JAVA_HOME=/usr/java/jdk1.7.0_76/; export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH; export PATH
# JDK 7 Requirement
USER_MEM_ARGS="-Xms32m -Xmx200m -XX:MaxPermSize=350m"
export CONFIG_JVM_ARGS="-Djava.security.egd=file:/dev/./urandom"
PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH
終於成功
[oracle@msigap1 ~]$ java -jar -d64  fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/oracle/response/wls.rsp -invPtrLoc /home/oracle/oraInst.loc -ignoreSysPrereqs
Launcher log file is /tmp/OraInstall2015-02-24_02-55-10PM/launcher2015-02-24_02-55-10PM.log.
Extracting files.........
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 1999.992 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 4194296 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 1489 MB    Passed


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2015-02-24_02-55-10PM
Log: /tmp/OraInstall2015-02-24_02-55-10PM/install2015-02-24_02-55-10PM.log
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Validations are enabled for this session.
Verifying data......
Copying Files...
You can find the log of this install session at:
 /tmp/OraInstall2015-02-24_02-55-10PM/install2015-02-24_02-55-10PM.log
-----------20%----------40%----------60%----------80%--------100%

The installation of Oracle Fusion Middleware 12c WebLogic Server and Coherence 12.1.3.0.0 completed successfully.
Logs successfully copied to /home/oracle/oraInventory/logs.
create domain
[oracle@msigap1 bin]$ pwd
/u01/app/oracle/middleware/12.1.3.0/wlserver/common/bin
[oracle@msigap1 bin] ./commEnv.sh
[oracle@msigap1 bin]$ ./wlst.sh

Initializing WebLogic Scripting Tool (WLST) ...

Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> readTemplate('/u01/app/oracle/middleware/12.1.3.0/wlserver/common/templates/wls/wls.jar')
wls:/offline/base_domain>cd('Servers/AdminServer')
wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','192.168.1.22')
wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 7001)
wls:/offline/base_domain/Server/AdminServer>create('AdminServer','SSL')
Proxy for AdminServer: Name=AdminServer, Type=SSL
wls:/offline/base_domain/Server/AdminServer>cd('SSL/AdminServer')
wls:/offline/base_domain/Server/AdminServer/SSL/AdminServer>set('Enabled', 'True')
wls:/offline/base_domain/Server/AdminServer/SSL/AdminServer>set('ListenPort', 7002)
wls:/offline/base_domain/Server/AdminServer/SSL/AdminServer>cd('/')
wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')
wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic1')
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/u01/app/oracle/middleware/12.1.3.0/user_projects/domains/CKI_DEV_DOMAIN')
wls:/offline/CKI_DEV_DOMAIN/Security/CKI_DEV_DOMAIN/User/weblogic>closeTemplate()
wls:/offline>exit()


Exiting WebLogic Scripting Tool.

[oracle@msigap1 bin]$
cd /u01/app/oracle/middleware/12.1.3.0/user_projects/domains/CKI_DEV_DOMAIN/bin
./startWebLogic.sh & 
./startNodeManager.sh &
http://192.168.1.22:7001/console/
su - root
iptables -I INPUT 1 -i eth0 -p tcp --dport 7001 -j ACCEPT
iptables -I INPUT 1 -i eth0 -p tcp --dport 7002 -j ACCEPT
iptables -I INPUT 1 -i eth0 -p tcp --dport 5556 -j ACCEPT

2015年2月16日 星期一

[MEGA LOG]Tomcat 安裝與設定

官網下載 apache-tomcat-5.5.26.zip
Step 1: Install JDK 1.6 reference download
mkdir /usr/java  
cd /usr/java 
cd /home/admin/
download jdk-6u45-linux-x64-rpm.bin
chmod a+x jdk-6u45-linux-x64-rpm.bin
./jdk-6u45-linux-x64-rpm.bin
cp ~/jdk-6u45-linux-amd64.rpm ./usr/lib/java-1.6.0

chmod a+x jdk-6u45-linux-amd64.rpm
sudo rpm -ivh jdk-6u45-linux-amd64.rpm
設定給使用者設定環境變數
vi ~/.bash_profile
設定給每個使用者設定環境變數
vi /etc/profile 
內容
JAVA_HOME=/usr/java/jdk1.6.0_45
export JAVA_HOME  
PATH=$JAVA_HOME/bin:$PATH
export PATH
echo $JAVA_HOME 
Step 2:Download and Unpack Tomcat Download Tomcat 5.5.26
cd /usr/share
tar -xzf apache-tomcat-5.5.26.tar.gz 
設定CATALINA_HOME
vi /etc/profile.d/script.sh
Step 3: Configure Tomcat to Run as a Service. 在 /etc/init.d新增tomcat檔案
cd /etc/init.d
vi tomcat 
內容
#!/bin/bash  
# description: Tomcat Start Stop Restart  
# processname: tomcat  
# chkconfig: 234 20 80  
JAVA_HOME=/usr/java/jdk1.6.0_45
export JAVA_HOME  
PATH=$JAVA_HOME/bin:$PATH  
export PATH  
CATALINA_HOME=/usr/share/tomcat
  
case $1 in  
start)  
sh $CATALINA_HOME/bin/startup.sh  
;;   
stop)     
sh $CATALINA_HOME/bin/shutdown.sh  
;;   
restart)  
sh $CATALINA_HOME/bin/shutdown.sh  
sh $CATALINA_HOME/bin/startup.sh  
;;   
esac      
exit 0  
修改權限
chmod 755 /etc/init.d/tomcat 
檢查
chkconfig --add tomcat  
chkconfig --level 234 tomcat on
chkconfig --list tomcat  
啟動/停止/重啟
service tomcat start  
service tomcat stop 
service tomcat restart
reference:參考

[MEGA LOG]ORACLE Database改成開機啟動

修改/etc/rc.d/rc.local 檔案內容
su - oracle -c "lsnrctl start"
sleep 5
su - oracle -c "echo startup |sqlplus \"/as sysdba\" "
su - oracle -c "lsnrctl set log_status off"
或 修改/etc/rc.d/rc.local 檔案內容
/home/oracle/startdb.sh << /home/oracle/startdb.log 2 <&1
/home/oracle/startdb.sh內容
#!/bin/bash
echo"######starting oracle##${date +%F\ %H:%M:%S}###"
su - oracle <<eom
source /home/oracle/.bash_profile
lsnrctl start
sqlplus /nolog <<eof
conn / as sysdba
startup
exit
eof
exit
eof
echo"#########################END####################"