su - wcuser ./config_server.sh ./config_client.sh -protocol SSL&
备份操作
su - root cp -i -r IBM IBM.instance cp -i -r IBMIHS IBMIHS.instance
ls /opt/IBM/WebSphere/AppServer/profiles/demo/installedApps/WC_demo_cell/WC_demo.ear/xml/config/wc-server.xml # ls /opt/IBM/WebSphere/CommerceServer70/instances/demo/httplogs/ | wc -l 0 # cat /opt/IBM/WebSphere/CommerceServer70/instances/demo/logs/createInstanceANT.err.log |wc -c 0 # grep error /opt/IBM/WebSphere/CommerceServer70/instances/demo/logs/trace.txt # grep error /opt/IBM/WebSphere/CommerceServer70/instances/demo/logs/messages.txt # cat /opt/IBM/WebSphere/CommerceServer70/logs/WCSconfig.log |wc -l # su - oracle exp wcuser/passw0rd@wcsdb file=/home/oracle/wcuser.dmp
Oracle 部分
create tablespace tablespaceName datafile 'dataFilePath' size 100M reuse autoextend on next 2M maxsize unlimited; create user oracleUser identified by oraclePassword default tablespace tablespaceName; grant create procedure, create session, create synonym, create table, create trigger, create view, create materialized view to oracleUser; ALTER USER oracleUser QUOTA UNLIMITED ON tablespaceName;
cat >> /opt/oracle/product/11.2.0.1/client/network/admin/tnsnames.ora <<EOF WCSDB = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.50)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = wcsdb) ) ) EOF
测试tnsnames.ora
# sqlplus /nolog SQL> conn wcuser/password@wcsdb SQL> select * from site;
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。