Вы находитесь на странице: 1из 30

naser@NN-ThinkPad-T430:~$ sudo -s

[sudo] password for naser:


root@NN-ThinkPad-T430:~# ssh -t gw1.t ssh d2.t
Linux d2.t 2.6.32-5-xen-amd64 #1 SMP Fri Feb 15 18:45:30 UTC 2013 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Mar 10 18:35:28 2016 from gw1.t
d2.t:~# mysql -uroot -proot
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 104247139
Server version: 5.1.49-3-log (Debian)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use drama_v3
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+------------------------------------------+
| Tables_in_drama_v3
|
+------------------------------------------+
| Drama_Portal_Stats
|
| MyStatus_Portal_Stats
|
| activity
|
| activity_copy
|
| activity_hst
|
| activity_hst_bak20160125
|
| bookmarks
|
| calendar
|
| char_rating
|
| charging_request
|
| charging_request_20160223
|
| charging_request_renewal
|
| charging_request_renewal_20160223
|
| conf_room
|
| config
|
| discounted_subscriber
|
| drama
|
| drama_active_base_charge_last_two_months |
| drama_cdr_last7
|
| drama_channel
|
| drama_char
|
| drama_content
|
| drama_content_bk
|
| drama_rating
|
| drama_sound_track
|
| drama_subs
|
| drama_survey_base
|
| episode
|

| episode_likes
|
| free_trial_subscriber
|
| freetrial_optins
|
| lahore
|
| live_session
|
| main_menu
|
| nagios
|
| obd_request
|
| obd_subscriber
|
| ost
|
| ost_request
|
| ost_request_before_lanuch_20140513
|
| poll
|
| scheduler_action
|
| scheduler_action_backup
|
| scheduler_actionbk20160310
|
| send_sms
|
| send_sms_20150604
|
| send_sms_20150731
|
| send_sms_20150908
|
| send_sms_20151026
|
| send_sms_20151215
|
| send_sms_20160206
|
| subscriber
|
| subscriber_is_active_0_20160107
|
| subscriber_unsub
|
| unsubs
|
+------------------------------------------+
55 rows in set (0.00 sec)
mysql> select * from charging_request limit 1;
+---------------+-------------+---------------------+-------------+----------+
| requestId
| cellno
| send_dt
| response_dt | response |
+---------------+-------------+---------------------+-------------+----------+
| 1414393378047 | 03459503290 | 2014-10-27 12:02:58 | NULL
| NULL
|
+---------------+-------------+---------------------+-------------+----------+
1 row in set (0.01 sec)
mysql> select * from charging_request limit 10;
+---------------+-------------+---------------------+-------------+----------+
| requestId
| cellno
| send_dt
| response_dt | response |
+---------------+-------------+---------------------+-------------+----------+
| 1414393378047 | 03459503290 | 2014-10-27 12:02:58 | NULL
| NULL
|
| 1414393378050 | 03457639532 | 2014-10-27 12:02:58 | NULL
| NULL
|
| 1414393378066 | 03459534704 | 2014-10-27 12:02:58 | NULL
| NULL
|
| 1414393378069 | 03459536030 | 2014-10-27 12:02:58 | NULL
| NULL
|
| 1414393378072 | 03459536746 | 2014-10-27 12:02:58 | NULL
| NULL
|
| 1414393378079 | 03459566605 | 2014-10-27 12:02:58 | NULL
| NULL
|
| 1414393378082 | 03459567635 | 2014-10-27 12:02:58 | NULL
| NULL
|
| 1414393378085 | 03459567658 | 2014-10-27 12:02:58 | NULL
| NULL
|
| 1414393378329 | 03459462588 | 2014-10-27 12:02:58 | NULL
| NULL
|
| 1414393378332 | 03459817814 | 2014-10-27 12:02:58 | NULL
| NULL
|
+---------------+-------------+---------------------+-------------+----------+
10 rows in set (0.00 sec)
mysql> select * from charging_request_renewal limit 1;
+---------------+-------------+---------------------+-------------+----------+
| requestId
| cellno
| send_dt
| response_dt | response |
+---------------+-------------+---------------------+-------------+----------+
| 1419621577657 | 03403932106 | 2014-12-27 00:19:37 | NULL
| NULL
|

+---------------+-------------+---------------------+-------------+----------+
1 row in set (0.01 sec)
mysql> select * from charging_request_renewal order by send_dt desc limit 1;
+---------------+-------------+---------------------+---------------------+---------+
| requestId
| cellno
| send_dt
| response_dt
| resp
onse |
+---------------+-------------+---------------------+---------------------+---------+
| 1457662317315 | 03644015144 | 2016-03-11 07:11:57 | 2016-03-11 07:11:57 | 1
|
+---------------+-------------+---------------------+---------------------+---------+
1 row in set (0.01 sec)
mysql> select * from charging_request order by send_dt desc limit 1;
+---------------+-------------+---------------------+---------------------+---------+
| requestId
| cellno
| send_dt
| response_dt
| resp
onse |
+---------------+-------------+---------------------+---------------------+---------+
| 1457679414814 | 03432110136 | 2016-03-11 11:56:54 | 2016-03-11 11:56:55 | -100
4
|
+---------------+-------------+---------------------+---------------------+---------+
1 row in set (0.86 sec)
mysql> select count(*) from subscriber where is_active =1 and is_free_trial =tru
e;
+----------+
| count(*) |
+----------+
|
66895 |
+----------+
1 row in set (0.84 sec)
mysql>
mysql>
mysql>
mysql> select is_free_trial,count(*) from subscriber where date(expiry_date) <=
curdate() and date(expiry_date) >= date_sub(curdate(), interval 30 day) and is
_active=1 and date(sub_dt) < curdate() and (date(last_billed_date) != curdate()
or last_billed_date is null) group by 1;
+---------------+----------+
| is_free_trial | count(*) |
+---------------+----------+
|
| 265952 |
| 
|
46235 |
+---------------+----------+
2 rows in set (6.38 sec)
mysql> select count(*) from subscriber where is_free_trial =true;
+----------+
| count(*) |
+----------+
|
66920 |
+----------+
1 row in set (0.39 sec)

mysql> select date(sub_dt),count(*) from subscriber where is_free_trial =true gr


oup by 1;
+--------------+----------+
| date(sub_dt) | count(*) |
+--------------+----------+
| 2016-02-03 |
1042 |
| 2016-02-04 |
778 |
| 2016-02-05 |
471 |
| 2016-02-06 |
868 |
| 2016-02-07 |
794 |
| 2016-02-08 |
644 |
| 2016-02-09 |
857 |
| 2016-02-10 |
624 |
| 2016-02-11 |
1110 |
| 2016-02-12 |
850 |
| 2016-02-13 |
1030 |
| 2016-02-14 |
1209 |
| 2016-02-15 |
1104 |
| 2016-02-16 |
1532 |
| 2016-02-17 |
1899 |
| 2016-02-18 |
1568 |
| 2016-02-19 |
1490 |
| 2016-02-20 |
1300 |
| 2016-02-21 |
1087 |
| 2016-02-22 |
1108 |
| 2016-02-23 |
1688 |
| 2016-02-24 |
2406 |
| 2016-02-25 |
1577 |
| 2016-02-26 |
1689 |
| 2016-02-27 |
1808 |
| 2016-02-28 |
1722 |
| 2016-02-29 |
1276 |
| 2016-03-01 |
4489 |
| 2016-03-02 |
3428 |
| 2016-03-03 |
2392 |
| 2016-03-04 |
2395 |
| 2016-03-05 |
3945 |
| 2016-03-06 |
2830 |
| 2016-03-07 |
4049 |
| 2016-03-08 |
2652 |
| 2016-03-09 |
3776 |
| 2016-03-10 |
3181 |
| 2016-03-11 |
253 |
+--------------+----------+
38 rows in set (0.33 sec)
mysql> select date(sub_dt),count(*) from subscriber where is_free_trial =true an
d last_billed_date is null group by 1;
+--------------+----------+
| date(sub_dt) | count(*) |
+--------------+----------+
| 2016-02-03 |
1042 |
| 2016-02-04 |
778 |
| 2016-02-05 |
471 |
| 2016-02-06 |
868 |
| 2016-02-07 |
794 |
| 2016-02-08 |
644 |
| 2016-02-09 |
857 |
| 2016-02-10 |
624 |

| 2016-02-11 |
1109 |
| 2016-02-12 |
850 |
| 2016-02-13 |
1030 |
| 2016-02-14 |
1209 |
| 2016-02-15 |
1104 |
| 2016-02-16 |
1532 |
| 2016-02-17 |
1899 |
| 2016-02-18 |
1567 |
| 2016-02-19 |
1489 |
| 2016-02-20 |
1300 |
| 2016-02-21 |
1086 |
| 2016-02-22 |
1106 |
| 2016-02-23 |
1687 |
| 2016-02-24 |
2397 |
| 2016-02-25 |
1577 |
| 2016-02-26 |
1688 |
| 2016-02-27 |
1805 |
| 2016-02-28 |
1717 |
| 2016-02-29 |
1272 |
| 2016-03-01 |
4482 |
| 2016-03-02 |
3425 |
| 2016-03-03 |
2392 |
| 2016-03-04 |
2389 |
| 2016-03-05 |
3938 |
| 2016-03-06 |
2826 |
| 2016-03-07 |
4043 |
| 2016-03-08 |
2645 |
| 2016-03-09 |
3770 |
| 2016-03-10 |
3176 |
| 2016-03-11 |
257 |
+--------------+----------+
38 rows in set (1.82 sec)
mysql> select date(sub_dt),count(*) from subscriber where is_free_trial =true an
d last_billed_date is not null group by 1;
+--------------+----------+
| date(sub_dt) | count(*) |
+--------------+----------+
| 2016-02-11 |
1 |
| 2016-02-18 |
1 |
| 2016-02-19 |
1 |
| 2016-02-21 |
1 |
| 2016-02-22 |
2 |
| 2016-02-23 |
1 |
| 2016-02-24 |
9 |
| 2016-02-26 |
1 |
| 2016-02-27 |
3 |
| 2016-02-28 |
5 |
| 2016-02-29 |
4 |
| 2016-03-01 |
7 |
| 2016-03-02 |
3 |
| 2016-03-04 |
6 |
| 2016-03-05 |
7 |
| 2016-03-06 |
4 |
| 2016-03-07 |
6 |
| 2016-03-08 |
7 |
| 2016-03-09 |
6 |
| 2016-03-10 |
5 |
| 2016-03-11 |
3 |
+--------------+----------+

21 rows in set (0.34 sec)


mysql> select count(*) from subscriber where is_free_trial =true and date(sub_dt
) < date_sub(now(),interval 7 day);
+----------+
| count(*) |
+----------+
|
46235 |
+----------+
1 row in set (1.33 sec)
mysql> select min(sub_dt),max(sub_dt), count(*) from subscriber where is_free_tr
ial =true and date(sub_dt) < date_sub(now(),interval 7 day);
+---------------------+---------------------+----------+
| min(sub_dt)
| max(sub_dt)
| count(*) |
+---------------------+---------------------+----------+
| 2016-02-03 01:00:46 | 2016-03-04 23:43:41 |
46235 |
+---------------------+---------------------+----------+
1 row in set (0.32 sec)
mysql> update subscriber set is_free_trial=false where is_free_trial =true and
date(sub_dt) < date_sub(now(),interval 7 day);
Query OK, 46235 rows affected (0.98 sec)
Rows matched: 46235 Changed: 46235 Warnings: 0
mysql> select is_free_trial,count(*) from subscriber where date(expiry_date) <=
curdate() and date(expiry_date) >= date_sub(curdate(), interval 30 day) and is
_active=1 and date(sub_dt) < curdate() and (date(last_billed_date) != curdate()
or last_billed_date is null) group by 1;
+---------------+----------+
| is_free_trial | count(*) |
+---------------+----------+
|
| 312186 |
+---------------+----------+
1 row in set (0.59 sec)
mysql> update subscriber set is_free_trial=false where is_free_trial =true and
date(sub_dt) > date_sub(now(),interval 7 day);Query OK, 20735 rows affected (1.0
6 sec)
Rows matched: 20735 Changed: 20735 Warnings: 0
mysql> select count(*) from subscriber where is_free_trial =true;
+----------+
| count(*) |
+----------+
|
4 |
+----------+
1 row in set (0.91 sec)
mysql> select count(*) from subscriber where is_free_trial =true and date(sub_dt
) > date_sub(now(),interval 7 day);
+----------+
| count(*) |
+----------+
|
4 |
+----------+
1 row in set (0.43 sec)
mysql> select count(*) from subscriber where date(sub_dt) > date_sub(now(),inte
rval 7 day);

+----------+
| count(*) |
+----------+
|
23254 |
+----------+
1 row in set (8.44 sec)
mysql> select * from free_trial_subscriber limit 1;
+-------------+---------------------+---------------------+
| cellno
| dt
| expiry_date
|
+-------------+---------------------+---------------------+
| 03000180119 | 2016-02-10 11:52:44 | 2016-02-17 11:52:44 |
+-------------+---------------------+---------------------+
1 row in set (0.02 sec)
mysql> select count(*) from free_trial_subscriber where dt > date_sub(now(),inte
rval 7 day)';
'> ';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '';
'' at line 1
mysql>
mysql>
mysql> select count(*) from free_trial_subscriber where dt > date_sub(now(),inte
rval 7 day);
+----------+
| count(*) |
+----------+
|
24280 |
+----------+
1 row in set (23.45 sec)
mysql> select count(*),count(distinct cellno) from free_trial_subscriber where d
t > date_sub(now(),interval 7 day);
+----------+------------------------+
| count(*) | count(distinct cellno) |
+----------+------------------------+
|
24282 |
24282 |
+----------+------------------------+
1 row in set (0.44 sec)
mysql> select is_free_trial,count(*) from subscriber where is_active =1 and cell
no in (select cellno from free_trial_subscriber where dt > date_sub(now(),interv
al 7 day));
+---------------+----------+
| is_free_trial | count(*) |
+---------------+----------+
|
|
23912 |
+---------------+----------+
1 row in set (16.99 sec)
mysql> update subscriber is_free_trial=true where is_active =1 and last_billed_
date is null and cellno in (select cellno from free_trial_subscriber where dt >
date_sub(now(),interval 7 day));
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '=true
where is_active =1 and last_billed_date is null and cellno in (select cel' at
line 1
mysql>
mysql>

mysql>
mysql> update subscriber set
lled_date is null and cellno
dt > date_sub(now(),interval
Query OK, 22921 rows affected
Rows matched: 22930 Changed:

is_free_trial=true where is_active =1 and last_bi


in (select cellno from free_trial_subscriber where
7 day));
(6.96 sec)
22921 Warnings: 0

mysql> select count(*) from subscriber where is_free_trial =true and date(sub_dt
) > date_sub(now(),interval 7 day);
+----------+
| count(*) |
+----------+
|
20715 |
+----------+
1 row in set (0.81 sec)
mysql> update subscriber set is_free_trial=false where is_free_trial =true and
date(sub_dt) < date_sub(now(),interval 7 day);
Query OK, 2216 rows affected (1.17 sec)
Rows matched: 2216 Changed: 2216 Warnings: 0
mysql> select count(*) from subscriber where is_free_trial =true and date(sub_dt
) > date_sub(now(),interval 7 day);
+----------+
| count(*) |
+----------+
|
20718 |
+----------+
1 row in set (0.27 sec)
mysql>
mysql>
mysql>
mysql>
mysql>
mysql>
mysql>
mysql>
mysql> select count(*) from subscriber where date(expiry_date) <= curdate() and
date(expiry_date) >= date_sub(curdate(), interval 30 day) and is_active=1 and
date(sub_dt) < curdate() and (date(last_billed_date) != curdate() or last_billed
_date is null) and is_free_trial=false;
+----------+
| count(*) |
+----------+
| 312184 |
+----------+
1 row in set (0.52 sec)
mysql> select count(*) from subscriber where date(expiry_date) <= curdate() and
date(expiry_date) >= date_sub(curdate(), interval 30 day) and is_active=1 and
date(sub_dt) < curdate() and (date(last_billed_date) != curdate() or last_billed
_date is null) and is_free_trial=true;
+----------+
| count(*) |
+----------+
|
2 |
+----------+
1 row in set (0.33 sec)

mysql> select * from subscriber where date(expiry_date) <= curdate() and date
(expiry_date) >= date_sub(curdate(), interval 30 day) and is_active=1 and date(s
ub_dt) < curdate() and (date(last_billed_date) != curdate() or last_billed_date
is null) and is_free_trial=true;
+-------------+---------------------+------+---------------------+-----------+---------+------------------+---------------------+------------------+------------+----------+---------------+--------+------------+----------+--------+--------+
| cellno
| sub_dt
| lang | last_call_dt
| is_active | s
ub_from | last_billed_date | expiry_date
| charging_attempt | charging_d
t | response | is_free_trial | status | is_changed | sub_type | is_mod | is_mode
|
+-------------+---------------------+------+---------------------+-----------+---------+------------------+---------------------+------------------+------------+----------+---------------+--------+------------+----------+--------+--------+
| 03410151769 | 2016-03-09 15:57:53 |
1 | 2016-03-09 15:57:53 | 
| OBD
| NULL
| 2016-03-10 15:57:53 |
2 | NULL
| -1004
| 
| NULL | NULL
| NULL
|
|
|
| 03410359820 | 2016-03-09 16:13:57 |
1 | 2016-03-09 16:13:57 | 
| OBD
| NULL
| 2016-03-10 16:13:57 |
2 | NULL
| -1004
| 
| NULL | NULL
| NULL
|
|
|
+-------------+---------------------+------+---------------------+-----------+---------+------------------+---------------------+------------------+------------+----------+---------------+--------+------------+----------+--------+--------+
2 rows in set (0.88 sec)
mysql> select count(*) from subscriber where date(expiry_date) <= curdate() and
date(expiry_date) >= date_sub(curdate(), interval 30 day) and is_active=1 and
date(sub_dt) < curdate() and (date(last_billed_date) != curdate() or last_billed
_date is null) and is_free_trial=false;
+----------+
| count(*) |
+----------+
| 312184 |
+----------+
1 row in set (0.52 sec)
mysql> select count(*) from subscriber where date(expiry_date) <= curdate() and
date(expiry_date) >= date_sub(curdate(), interval 30 day) and is_active=1 and
date(sub_dt) < curdate() and (date(last_billed_date) != curdate() or last_billed
_date is null) and is_free_trial=true;
+----------+
| count(*) |
+----------+
|
2 |
+----------+
1 row in set (0.33 sec)
mysql> select date(sub_dt),count(*) from subscriber where date(expiry_date) <=
curdate() and date(expiry_date) >= date_sub(curdate(), interval 30 day) and is_
active=1 and date(sub_dt) < curdate() and (date(last_billed_date) != curdate() o
r last_billed_date is null) and is_free_trial=false group by 1;
+--------------+----------+
| date(sub_dt) | count(*) |
+--------------+----------+
| 2014-05-13 |
5 |
| 2014-05-14 |
7 |
| 2014-05-15 |
8 |

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

2014-05-16
2014-05-17
2014-05-18
2014-05-19
2014-05-20
2014-05-21
2014-05-22
2014-05-23
2014-05-24
2014-05-25
2014-05-26
2014-05-27
2014-05-28
2014-05-29
2014-05-30
2014-05-31
2014-06-01
2014-06-02
2014-06-03
2014-06-04
2014-06-05
2014-06-06
2014-06-07
2014-06-09
2014-06-10
2014-06-11
2014-06-12
2014-06-13
2014-06-14
2014-06-15
2014-06-16
2014-06-17
2014-06-18
2014-06-19
2014-06-20
2014-06-21
2014-06-22
2014-06-23
2014-06-24
2014-06-25
2014-06-26
2014-06-27
2014-06-28
2014-06-29
2014-06-30
2014-07-01
2014-07-02
2014-07-03
2014-07-04
2014-07-05
2014-07-06
2014-07-07
2014-07-08
2014-07-09
2014-07-10
2014-07-11
2014-07-12
2014-07-13
2014-07-14
2014-07-15

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

7
35
37
46
57
72
40
49
52
61
41
59
69
67
69
73
73
66
46
55
45
53
43
35
60
74
40
32
56
12
33
39
33
42
42
42
40
40
65
51
33
55
29
38
45
30
21
44
43
26
25
32
26
44
38
40
17
5
11
7

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

2014-07-16
2014-07-17
2014-07-18
2014-07-19
2014-07-20
2014-07-21
2014-07-22
2014-07-23
2014-07-24
2014-07-25
2014-07-26
2014-07-27
2014-07-28
2014-07-29
2014-07-30
2014-07-31
2014-08-01
2014-08-02
2014-08-03
2014-08-04
2014-08-05
2014-08-06
2014-08-07
2014-08-08
2014-08-13
2014-08-15
2014-08-16
2014-08-17
2014-08-18
2014-08-19
2014-08-20
2014-08-21
2014-08-22
2014-08-23
2014-08-24
2014-08-25
2014-08-26
2014-08-27
2014-08-28
2014-08-29
2014-08-30
2014-08-31
2014-09-01
2014-09-02
2014-09-03
2014-09-04
2014-09-05
2014-09-06
2014-09-07
2014-09-08
2014-09-09
2014-09-10
2014-09-11
2014-09-12
2014-09-13
2014-09-14
2014-09-15
2014-09-16
2014-09-17
2014-09-18

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

32
29
25
39
30
42
57
95
82
94
121
107
67
46
61
99
90
42
85
82
95
82
75
32
1
1
2
3
43
17
58
59
70
36
41
34
28
17
9
13
17
12
9
8
19
11
15
18
14
21
16
17
17
21
14
13
17
4
9
7

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

2014-09-19
2014-09-20
2014-09-21
2014-09-22
2014-09-23
2014-09-24
2014-09-25
2014-09-26
2014-09-27
2014-09-28
2014-09-29
2014-09-30
2014-10-01
2014-10-02
2014-10-03
2014-10-04
2014-10-05
2014-10-06
2014-10-07
2014-10-08
2014-10-09
2014-10-10
2014-10-11
2014-10-12
2014-10-13
2014-10-14
2014-10-15
2014-10-16
2014-10-17
2014-10-18
2014-10-19
2014-10-20
2014-10-21
2014-10-22
2014-10-23
2014-10-24
2014-10-25
2014-10-26
2014-10-27
2014-10-28
2014-10-29
2014-10-30
2014-10-31
2014-11-01
2014-11-02
2014-11-03
2014-11-04
2014-11-05
2014-11-06
2014-11-07
2014-11-08
2014-11-09
2014-11-10
2014-11-11
2014-11-12
2014-11-13
2014-11-14
2014-11-15
2014-11-16
2014-11-17

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

1
12
11
11
9
7
9
5
16
10
8
15
10
14
42
26
39
16
39
18
55
46
49
54
40
43
31
52
106
178
19
95
77
140
85
177
129
126
123
142
368
398
338
272
402
222
185
344
254
117
93
164
189
211
306
302
213
242
286
295

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

2014-11-18
2014-11-19
2014-11-20
2014-11-21
2014-11-22
2014-11-23
2014-11-24
2014-11-25
2014-11-26
2014-11-27
2014-11-28
2014-11-29
2014-11-30
2014-12-01
2014-12-02
2014-12-03
2014-12-04
2014-12-05
2014-12-06
2014-12-07
2014-12-08
2014-12-09
2014-12-10
2014-12-11
2014-12-12
2014-12-13
2014-12-14
2014-12-15
2014-12-16
2014-12-17
2014-12-18
2014-12-19
2014-12-20
2014-12-21
2014-12-22
2014-12-23
2014-12-24
2014-12-25
2014-12-26
2014-12-27
2014-12-28
2014-12-29
2014-12-30
2014-12-31
2015-01-01
2015-01-02
2015-01-03
2015-01-04
2015-01-05
2015-01-06
2015-01-07
2015-01-08
2015-01-09
2015-01-10
2015-01-11
2015-01-12
2015-01-13
2015-01-14
2015-01-15
2015-01-16

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

192
276
307
359
340
308
457
270
267
277
248
330
265
247
176
659
74
82
267
269
240
284
297
459
623
551
550
643
739
53
27
684
358
475
796
1165
1141
754
649
951
789
850
916
1201
1036
925
945
1231
933
990
702
725
645
651
664
743
769
747
317
573

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

2015-01-17
2015-01-18
2015-01-19
2015-01-20
2015-01-21
2015-01-22
2015-01-23
2015-01-24
2015-01-25
2015-01-26
2015-01-27
2015-01-28
2015-01-29
2015-01-30
2015-01-31
2015-02-01
2015-02-02
2015-02-03
2015-02-04
2015-02-05
2015-02-06
2015-02-07
2015-02-08
2015-02-09
2015-02-10
2015-02-11
2015-02-12
2015-02-13
2015-02-14
2015-02-15
2015-02-16
2015-02-17
2015-02-18
2015-02-19
2015-02-20
2015-02-21
2015-02-22
2015-02-23
2015-02-24
2015-02-25
2015-02-26
2015-02-27
2015-02-28
2015-03-01
2015-03-02
2015-03-03
2015-03-04
2015-03-05
2015-03-06
2015-03-07
2015-03-08
2015-03-09
2015-03-10
2015-03-11
2015-03-12
2015-03-13
2015-03-14
2015-03-15
2015-03-16
2015-03-17

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

549
310
235
513
696
499
260
568
656
223
623
679
739
324
640
699
446
225
370
560
301
415
225
348
138
121
107
142
125
135
120
430
415
504
1239
1034
902
637
840
862
786
537
90
752
137
628
149
497
514
445
614
519
375
557
260
106
457
383
167
131

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

2015-03-18
2015-03-19
2015-03-20
2015-03-21
2015-03-22
2015-03-23
2015-03-24
2015-03-25
2015-03-26
2015-03-27
2015-03-28
2015-03-29
2015-03-30
2015-03-31
2015-04-01
2015-04-02
2015-04-03
2015-04-04
2015-04-05
2015-04-06
2015-04-07
2015-04-08
2015-04-09
2015-04-10
2015-04-11
2015-04-12
2015-04-13
2015-04-14
2015-04-15
2015-04-16
2015-04-17
2015-04-18
2015-04-19
2015-04-20
2015-04-21
2015-04-22
2015-04-23
2015-04-24
2015-04-25
2015-04-26
2015-04-27
2015-04-28
2015-04-29
2015-04-30
2015-05-01
2015-05-02
2015-05-03
2015-05-04
2015-05-05
2015-05-06
2015-05-07
2015-05-08
2015-05-09
2015-05-10
2015-05-11
2015-05-12
2015-05-13
2015-05-14
2015-05-15
2015-05-16

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

428
167
473
74
287
169
132
370
210
278
296
155
401
529
432
590
278
224
182
385
322
269
415
438
374
292
471
284
260
345
330
471
246
409
398
308
414
403
317
299
329
368
350
380
218
315
248
292
231
328
331
305
207
396
308
313
466
409
354
290

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

2015-05-17
2015-05-18
2015-05-19
2015-05-20
2015-05-21
2015-05-22
2015-05-23
2015-05-24
2015-05-25
2015-05-26
2015-05-27
2015-05-28
2015-05-29
2015-05-30
2015-05-31
2015-06-01
2015-06-02
2015-06-03
2015-06-04
2015-06-05
2015-06-06
2015-06-07
2015-06-08
2015-06-09
2015-06-10
2015-06-11
2015-06-12
2015-06-13
2015-06-14
2015-06-15
2015-06-16
2015-06-17
2015-06-18
2015-06-19
2015-06-20
2015-06-21
2015-06-22
2015-06-23
2015-06-24
2015-06-25
2015-06-26
2015-06-27
2015-06-28
2015-06-29
2015-06-30
2015-07-01
2015-07-02
2015-07-03
2015-07-04
2015-07-05
2015-07-06
2015-07-07
2015-07-08
2015-07-09
2015-07-10
2015-07-11
2015-07-12
2015-07-13
2015-07-14
2015-07-15

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

521
486
493
477
516
555
490
405
427
447
518
537
276
477
224
433
538
323
561
440
174
569
471
462
363
398
272
406
317
372
467
464
388
447
293
508
550
547
449
536
559
553
370
267
523
541
497
359
310
523
504
386
109
298
552
518
522
479
397
395

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

2015-07-16
2015-07-17
2015-07-18
2015-07-19
2015-07-20
2015-07-21
2015-07-22
2015-07-23
2015-07-24
2015-07-25
2015-07-26
2015-07-27
2015-07-28
2015-07-29
2015-07-30
2015-07-31
2015-08-01
2015-08-02
2015-08-03
2015-08-04
2015-08-05
2015-08-06
2015-08-07
2015-08-08
2015-08-09
2015-08-10
2015-08-11
2015-08-12
2015-08-13
2015-08-14
2015-08-15
2015-08-16
2015-08-17
2015-08-18
2015-08-19
2015-08-20
2015-08-21
2015-08-22
2015-08-23
2015-08-24
2015-08-25
2015-08-26
2015-08-27
2015-08-28
2015-08-29
2015-08-30
2015-08-31
2015-09-01
2015-09-02
2015-09-03
2015-09-04
2015-09-05
2015-09-06
2015-09-07
2015-09-08
2015-09-09
2015-09-10
2015-09-11
2015-09-12
2015-09-13

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

507
274
8
210
384
234
251
58
316
445
64
368
245
566
54
488
460
248
684
643
511
29
129
36
447
459
363
38
306
265
407
397
318
390
124
155
145
303
410
152
275
262
412
464
384
300
481
481
437
330
442
331
471
479
380
479
501
388
402
632

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

2015-09-14
2015-09-15
2015-09-16
2015-09-17
2015-09-18
2015-09-19
2015-09-20
2015-09-21
2015-09-22
2015-09-23
2015-09-24
2015-09-25
2015-09-26
2015-09-27
2015-09-28
2015-09-29
2015-09-30
2015-10-01
2015-10-02
2015-10-03
2015-10-04
2015-10-05
2015-10-06
2015-10-07
2015-10-08
2015-10-09
2015-10-10
2015-10-11
2015-10-12
2015-10-13
2015-10-14
2015-10-15
2015-10-16
2015-10-17
2015-10-18
2015-10-19
2015-10-20
2015-10-21
2015-10-22
2015-10-23
2015-10-24
2015-10-25
2015-10-26
2015-10-27
2015-10-28
2015-10-29
2015-10-30
2015-10-31
2015-11-01
2015-11-02
2015-11-03
2015-11-04
2015-11-05
2015-11-06
2015-11-07
2015-11-08
2015-11-09
2015-11-10
2015-11-11
2015-11-12

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

314
387
404
379
392
197
569
514
396
420
109
17
325
357
400
356
728
393
390
375
556
350
467
433
358
424
349
309
345
924
496
35
11
18
10
9
4
12
3
10
6
8
28
11
61
72
168
130
131
157
247
337
310
229
148
118
142
187
239
116

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

2015-11-13
2015-11-14
2015-11-15
2015-11-16
2015-11-17
2015-11-18
2015-11-19
2015-11-20
2015-11-21
2015-11-22
2015-11-23
2015-11-24
2015-11-25
2015-11-26
2015-11-27
2015-11-28
2015-11-29
2015-11-30
2015-12-01
2015-12-02
2015-12-03
2015-12-04
2015-12-05
2015-12-06
2015-12-07
2015-12-08
2015-12-09
2015-12-10
2015-12-11
2015-12-12
2015-12-13
2015-12-14
2015-12-15
2015-12-16
2015-12-17
2015-12-18
2015-12-19
2015-12-20
2015-12-21
2015-12-22
2015-12-23
2015-12-24
2015-12-25
2015-12-26
2015-12-27
2015-12-28
2015-12-29
2015-12-30
2015-12-31
2016-01-01
2016-01-02
2016-01-03
2016-01-04
2016-01-05
2016-01-06
2016-01-07
2016-01-08
2016-01-09
2016-01-10
2016-01-11

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

171
203
216
156
73
146
302
202
234
160
150
133
106
88
241
51
254
236
173
129
83
200
267
306
225
204
1690
735
172
1139
103
1207
595
814
1390
646
431
1039
1092
1170
942
657
1193
1632
1073
885
970
841
111
1220
969
1596
1898
1301
2188
1743
1374
1074
964
1421

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

| 2016-01-12 |
3564 |
| 2016-01-13 |
2117 |
| 2016-01-14 |
1693 |
| 2016-01-15 |
1294 |
| 2016-01-16 |
1341 |
| 2016-01-17 |
1139 |
| 2016-01-18 |
1345 |
| 2016-01-19 |
3618 |
| 2016-01-20 |
2588 |
| 2016-01-21 |
1842 |
| 2016-01-22 |
1173 |
| 2016-01-23 |
999 |
| 2016-01-24 |
1290 |
| 2016-01-25 |
1124 |
| 2016-01-26 |
4222 |
| 2016-01-27 |
3078 |
| 2016-01-28 |
1507 |
| 2016-01-29 |
1562 |
| 2016-01-30 |
989 |
| 2016-01-31 |
945 |
| 2016-02-01 |
976 |
| 2016-02-02 |
2626 |
| 2016-02-03 |
2667 |
| 2016-02-04 |
1776 |
| 2016-02-05 |
1181 |
| 2016-02-06 |
2019 |
| 2016-02-07 |
1788 |
| 2016-02-08 |
1450 |
| 2016-02-09 |
2200 |
| 2016-02-10 |
1658 |
| 2016-02-11 |
2567 |
| 2016-02-12 |
1926 |
| 2016-02-13 |
2066 |
| 2016-02-14 |
2450 |
| 2016-02-15 |
2256 |
| 2016-02-16 |
3174 |
| 2016-02-17 |
3512 |
| 2016-02-18 |
2975 |
| 2016-02-19 |
2769 |
| 2016-02-20 |
2194 |
| 2016-02-21 |
1745 |
| 2016-02-22 |
1735 |
| 2016-02-23 |
2827 |
| 2016-02-24 |
3750 |
| 2016-02-25 |
2321 |
| 2016-02-26 |
2543 |
| 2016-02-27 |
2079 |
| 2016-02-28 |
2003 |
| 2016-02-29 |
1450 |
| 2016-03-01 |
4567 |
| 2016-03-02 |
3744 |
| 2016-03-03 |
2708 |
| 2016-03-04 |
2600 |
| 2016-03-05 |
267 |
| 2016-03-06 |
126 |
| 2016-03-07 |
255 |
| 2016-03-08 |
140 |
| 2016-03-09 |
289 |
| 2016-03-10 |
352 |
+--------------+----------+

662 rows in set (0.64 sec)


mysql> select count(*) from subscriber where date(expiry_date) <= curdate() and
date(expiry_date) >= date_sub(curdate(), interval 30 day) and is_active=1 and
date(sub_dt) < curdate() and (date(last_billed_date) != curdate() or last_billed
_date is null) and is_free_trial=true;
+----------+
| count(*) |
+----------+
|
2 |
+----------+
1 row in set (0.31 sec)
mysql>
mysql> desc subscriber_unsub;
+--------------+--------------+------+-----+---------+----------------+
| Field
| Type
| Null | Key | Default | Extra
|
+--------------+--------------+------+-----+---------+----------------+
| id
| int(11)
| NO | PRI | NULL
| auto_increment |
| cellno
| varchar(15) | NO |
| NULL
|
|
| sub_dt
| datetime
| YES |
| NULL
|
|
| lang
| int(11)
| YES |
| NULL
|
|
| last_call_dt | datetime
| YES |
| NULL
|
|
| unsub_dt
| datetime
| YES |
| NULL
|
|
| sub_from
| varchar(10) | YES |
| IVR
|
|
| unsub_from | varchar(100) | YES |
| NULL
|
|
+--------------+--------------+------+-----+---------+----------------+
8 rows in set (0.00 sec)
mysql> select * from subscriber where date(expiry_date)=date_sub(curdate(), inte
rval 1 day) and is_free_trial=true;
+-------------+---------------------+------+---------------------+-----------+---------+------------------+---------------------+------------------+------------+----------+---------------+--------+------------+----------+--------+--------+
| cellno
| sub_dt
| lang | last_call_dt
| is_active | s
ub_from | last_billed_date | expiry_date
| charging_attempt | charging_d
t | response | is_free_trial | status | is_changed | sub_type | is_mod | is_mode
|
+-------------+---------------------+------+---------------------+-----------+---------+------------------+---------------------+------------------+------------+----------+---------------+--------+------------+----------+--------+--------+
| 03410151769 | 2016-03-09 15:57:53 |
1 | 2016-03-09 15:57:53 | 
| OBD
| NULL
| 2016-03-10 15:57:53 |
2 | NULL
| -1004
| 
| NULL | NULL
| NULL
|
|
|
| 03410359820 | 2016-03-09 16:13:57 |
1 | 2016-03-09 16:13:57 | 
| OBD
| NULL
| 2016-03-10 16:13:57 |
2 | NULL
| -1004
| 
| NULL | NULL
| NULL
|
|
|
+-------------+---------------------+------+---------------------+-----------+---------+------------------+---------------------+------------------+------------+----------+---------------+--------+------------+----------+--------+--------+
2 rows in set (0.97 sec)
mysql> select * from subscriber where date(expiry_date)=date_sub('2016-03-12', i
nterval 1 day) and is_free_trial=true;
Empty set (0.49 sec)
mysql> select count(*) from subscriber where is_free_trial =true;

+----------+
| count(*) |
+----------+
|
20742 |
+----------+
1 row in set (0.25 sec)
mysql> select date(expiry_date),count(*) from subscriber where is_free_trial =tr
ue group by 1;
+-------------------+----------+
| date(expiry_date) | count(*) |
+-------------------+----------+
| 2016-03-10
|
2 |
| 2016-03-12
|
3939 |
| 2016-03-13
|
2826 |
| 2016-03-14
|
4043 |
| 2016-03-15
|
2645 |
| 2016-03-16
|
3772 |
| 2016-03-17
|
3177 |
| 2016-03-18
|
338 |
+-------------------+----------+
8 rows in set (0.30 sec)
mysql> select date(sub_dt),date(expiry_date),count(*) from subscriber where is_f
ree_trial =true group by 1,2;
+--------------+-------------------+----------+
| date(sub_dt) | date(expiry_date) | count(*) |
+--------------+-------------------+----------+
| 2016-03-05 | 2016-03-12
|
3939 |
| 2016-03-06 | 2016-03-13
|
2826 |
| 2016-03-07 | 2016-03-14
|
4043 |
| 2016-03-08 | 2016-03-15
|
2645 |
| 2016-03-09 | 2016-03-10
|
2 |
| 2016-03-09 | 2016-03-16
|
3772 |
| 2016-03-10 | 2016-03-17
|
3177 |
| 2016-03-11 | 2016-03-18
|
338 |
+--------------+-------------------+----------+
8 rows in set (0.31 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging | 0 30 0,13 1/1 * ?
* | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged | 0 15 17 1/1 * ? *
| NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal | 0 30 14 1/1 * ? *
| NULL
|
+----+------------------------------------+------------------+--------------------+---------------+

6 rows in set (0.00 sec)


mysql> insert into scheduler_action values (7,'com.drama.common.ChargingSchedule
r','removeExpiredTrialUsers','0 30 9 1/1 * ? *',NULL);
Query OK, 1 row affected (0.04 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql>
mysql>
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+-----------

----------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13

1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+-----------

----------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+

| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|

| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+-----------

----------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> select * from scheduler_action;
+----+------------------------------------+-------------------------+--------------------+---------------+
| id | class_name
| function_name
| expression
| time_interval |
+----+------------------------------------+-------------------------+--------------------+---------------+
| 1 | com.drama.common.ChargingScheduler | doSubCharging
| NULL
| 5
|
| 2 | com.drama.common.ChargingScheduler | sendOstSms
| NULL
| 30
|
| 3 | com.drama.common.ChargingScheduler | doWeeklyCharging
| 0 30 0,13
1/1 * ? * | NULL
|
| 4 | com.drama.common.ChargingScheduler | PurgeUncharged
| 0 15 17 1/
1 * ? * | NULL
|
| 5 | com.drama.common.ChargingScheduler | sendSms
| NULL
| 60
|
| 6 | com.drama.common.ChargingScheduler | sendPreRenewal
| 0 30 14 1/
1 * ? * | NULL
|
| 7 | com.drama.common.ChargingScheduler | removeExpiredTrialUsers | 0 30 9 1/1
* ? *
| NULL
|
+----+------------------------------------+-------------------------+--------------------+---------------+
7 rows in set (0.00 sec)
mysql> show tables;
+------------------------------------------+
| Tables_in_drama_v3
|
+------------------------------------------+
| Drama_Portal_Stats
|
| MyStatus_Portal_Stats
|
| activity
|
| activity_copy
|
| activity_hst
|
| activity_hst_bak20160125
|
| bookmarks
|
| calendar
|

| char_rating
|
| charging_request
|
| charging_request_20160223
|
| charging_request_renewal
|
| charging_request_renewal_20160223
|
| conf_room
|
| config
|
| discounted_subscriber
|
| drama
|
| drama_active_base_charge_last_two_months |
| drama_cdr_last7
|
| drama_channel
|
| drama_char
|
| drama_content
|
| drama_content_bk
|
| drama_rating
|
| drama_sound_track
|
| drama_subs
|
| drama_survey_base
|
| episode
|
| episode_likes
|
| free_trial_subscriber
|
| freetrial_optins
|
| lahore
|
| live_session
|
| main_menu
|
| nagios
|
| obd_request
|
| obd_subscriber
|
| ost
|
| ost_request
|
| ost_request_before_lanuch_20140513
|
| poll
|
| scheduler_action
|
| scheduler_action_backup
|
| scheduler_actionbk20160310
|
| send_sms
|
| send_sms_20150604
|
| send_sms_20150731
|
| send_sms_20150908
|
| send_sms_20151026
|
| send_sms_20151215
|
| send_sms_20160206
|
| subscriber
|
| subscriber_is_active_0_20160107
|
| subscriber_unsub
|
| unsubs
|
+------------------------------------------+
55 rows in set (0.01 sec)
mysql> select * from freetrial_optins;
Empty set (0.00 sec)

Вам также может понравиться