OpenStaging
VMwareServer2 へ CentOS5.2 を入れたので、 OpenStaging をインストールした。
- JDK
- Tomcat
- http://tomcat.apache.org/
- tar zxvf apache-tomcat-5.5.27.tar.gz
- cp -r apache-tomcat-5.5.27.tar.gz /usr/local/
- vi /etc/profile
- source /etc/profile
- /usr/local/apache-tomcat-5.5.27/bin/startup.sh
- http://localhost:8080/
- /usr/local/apache-tomcat-5.5.27/bin/shutdown.sh
/etc/profile
export JAVA_HOME=/usr/java/jdk1.5.0_16 export CATALINA_HOME=/usr/local/apache-tomcat-5.5.27 export CLASSPATH=.:$CATALINA_HOME/common/lib/servlet-api.jar:/common/lib/jsp-api.jar:
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
- OpenStaging
- http://sourceforge.jp/projects/openstaging/
- Document.zip
- OpenStagingV1.1.2.zip
- SampleData.zip
- unzip Document.zip
- OpenStaging�C���X�g���[�V�����}�j���A��.pdf
- http://sourceforge.jp/projects/openstaging/
-> identified by 'openstaging' with grant option;
-
-
-
- mysql> grant all privileges on openstaging.* to openstaging@'%'
- mysql> grant all privileges on openstaging.* to openstaging@'%'
-
-
-> identified by 'openstaging' with grant option;
SELECT
ORDER_DETAIL.ITEM_ID
,ORDER_DETAIL.CAMPAIGN_ID
,SUPPORT_CENTER_ID
,DATE(ORDERED_TIME) AS ORDER_DATE
,SELLING_PRICE*(100-DISCOUNT_RATE)/100 AS SALES
,COST_PRICE AS COST
FROM
ORDER_UNIT
,ORDER_DETAIL
,ITEM
,CAMPAIGN
WHERE
ITEM.ITEM_ID=ORDER_DETAIL.ITEM_ID
AND ORDER_DETAIL.CAMPAIGN_ID=CAMPAIGN.CAMPAIGN_ID
AND ORDER_DETAIL.ORDER_UNIT_ID=ORDER_UNIT.ORDER_UNIT_ID;
-
-
-
- Table 'ORDER_VIEW' already exists
- インポートされていることを確認
- mysql> show full tables;
-
-
+-----------------------+------------+
| Tables_in_openstaging | Table_type |
+-----------------------+------------+
| CAMPAIGN | BASE TABLE |
| CATEGORY | BASE TABLE |
| CUSTOMER | BASE TABLE |
| DIM_CAMPAIGN | BASE TABLE |
| DIM_ITEM | BASE TABLE |
| DIM_SUPPORT_CENTER | BASE TABLE |
| FACT_ORDER | BASE TABLE |
| ITEM | BASE TABLE |
| ITEM_LOOKUP_ERROR | BASE TABLE |
| ITEM_LOOKUP_TARGET | BASE TABLE |
| ORDER_DETAIL | BASE TABLE |
| ORDER_UNIT | BASE TABLE |
| ORDER_VIEW | VIEW |
| PREFECTURE | BASE TABLE |
| STATUS | BASE TABLE |
| SUB_CATEGORY | BASE TABLE |
| SUPPORT_CENTER | BASE TABLE |
| TARGET_SAMPLE | BASE TABLE |
+-----------------------+------------+