You are on page 1of 15

ʹ� � � � � � sed � � � � ɾ � � � 1 �� 6 ���а� Linux � � � ʽ � � � С �

# sed '1,6{/Linux/d;}' sed-demo.txt

TRANLOGOPTIONS _DISABLESTREAMLINEDDBLOGREADER

dba_tab_privs;

select table_name,privilege,owner from dba_tab_privs where grantee='APPS_QUERY';

select * from dba_sys_privs where grantee='APPS_QUERY';


select * from dba_role_privs where grantee='APPS_QUERY';

select privilege from dba_sys_privs where grantee in


(select granted_role from dba_role_privs where grantee='APPS_QUERY' );

sed -i "s/Create View: //g" test.txt


sed -i "s/$/;/"

85395060
65608550

82297927

faw34kbysa473
select * from table(dbms_xplan.display_awr('faw34kbysa473'));

grep "ALGORITHM=UNDEFINED DEFINER=\/`root\/`@\/`localhost\/` SQL SECURITY DEFINER"

select

SQL> select * from dba_sys_privs where grantee='APPS_QUERY';

GRANTEE PRIVILEGE ADM


------------------------------ ---------------------------------------- ---
APPS_QUERY CREATE SESSION NO
APPS_QUERY SELECT ANY TABLE NO

at_pp_order,at_pp_vehicle,at_pp_pmodel,at_pp_model,at_pp_order_bs_plan;

[ogguser@ccwlracnode01 ogg]$ ./ggsci -V

Oracle GoldenGate Command Interpreter for Oracle


Version 12.2.0.2.2 OGGCORE_12.2.0.2.0_PLATFORMS_170630.0419_FBO
Linux, x64, 64bit (optimized), Oracle 12c on Jun 30 2017 16:12:28

Copyright (C) 1995, 2017, Oracle and/or its affiliates. All rights reserved.

administrator:dfccwl@123!

expdp portal/portal155112 dumpfile=portal20190122.dmp directory=dmppath


logfile=portal20190122.log
tables=t_portal_staff_tib,t_portal_dept_tib,t_portal_login_tib,t_portal_staff_org_t
ib,t_portal_dept_relation_tib
expdp ftpc/ftpc dumpfile=tab5.dmp tables=
at_pp_order,at_pp_vehicle,at_pp_pmodel,at_pp_model,at_pp_order_bs_plan
logfile=5.log DIRECTORY=EXP_EMS

impdp ftpc/ftpc directory=DATA_PUMP_DIR dumpfile=tab5.dmp

dfccwl@123!38

at_pp_order,at_pp_vehicle,at_pp_pmodel,at_pp_model,at_pp_order_bs_plan;

export PATH=MYSQL_HOME/bin:$PATH

mkdir -p /mysql_ogg
unzip -d /mysql_ogg 213000_ggs_Linux_x64_MySQL_64bit.zip
cd /mysql_ogg
tar -xvf ggs_Linux_x64_MySQL_64bit.tar
ORA-00600: internal error code, arguments: [kqlfFillBindData:1], [537], [336], [],
[], [], [], []

select * from dba_sys_privs where

select count(*),status from gv$session where username in ('VMES','FTPC') group by


status;
select count(*),status,owner from gv$session group by owner,status;

begin
dbms_job.run(105);
end;

userid ogguser,password oggadmin


1298817.1
initial data load

Oracle Goldengate 11g Implementer's Guide


Oracle Goldengate 11g Handbook
Oracle GoldenGate 12c Implementer's Guide
Working with Oracle GoldenGate 12c
Mastering Oracle GoldenGate
Pro Oracle Goldengate for the DBA

SET GLOBAL validate_password_length = 4;


SET GLOBAL validate_password_number_count = 0;
SET GLOBAL validate_password.policy = LOW;

sourceistable

srvctl stop -d mes -i mes2 ,mes1


srvctl stop asm -n vmesdb2
srvctl stop asm -n vmesdb1
srvctl stop nodeapps -n vmesdb2
srvctl stop nodeapps -n vmesdb1

1.���ϵͳ����Ա�‫�ر���ݿ‬
ͨ������
ͨ Ⱥ����ͳһ�‫�ر‬
srvctl stop instance -d mes -i mes2 ,mes1

yum install mysql80-community-release-el6-8.0.28-1.el6.noarch.rpm

/usr/sbin/oracleasm scandisks

oracleasm createdisk DATA04 /dev/mapper/v7k-data4

col ASMDISK format A15;


col diskgroup format a15;
col PATH format a25;

SELECT SUBSTR(d.name,1,16) AS asmdisk, dg.name as diskgroup , d.path AS PATH FROM


V$ASM_DISKGROUP dg, V$ASM_DISK d WHERE dg.group_number = d.group_number order by
asmdisk,diskgroup;

netstat -n | findstr 10.5.54

begin
dbms_job.run(247);
end;

Errors in file /u01/app/oracle/admin/mes/bdump/mes2_j004_26572.trc:


ORA-12012: error on auto execute of job 247
ORA-06550: line 1, column 96:
PLS-00201: identifier 'AVITOOLS.CHANGEDATEZ99FROMMV' must be declared
ORA-06550: line 1, column 96:
PL/SQL: Statement ignored

grep PLS-00201 alert_mes1.log|sort|uniq -c

ftpc.
oracle��‫¼�ݵ‬ϵͳ,�����ӦĿ¼,
scp * 172.16.16.1:/arch3/exp_bak .

��oracle�û���¼ִ�У�����root��¼��ִ��su -
oracle�л���oracle�û��£�ִ����������
��Դ��172.16.16.1��ִ����‫�ݱ‬expdp����
����
expdp zhao/zhao dumpfile=FTPC1125.dmp schemas=FTPC logfile=FTPC1125.log
DIRECTORY=EXP_EMS
expdp zhao/zhao dumpfile=VMES1125.dmp schemas=VMES logfile=VMES1125.log
DIRECTORY=EXP_EMS
��oracle��172.16.16.51¼�‫��ݵ‬ӦĿ¼��ִ��
scp 172.16.16.1:/arch3/exp_bak/* .
�»���172.16.16.51��ִ��impdp����
���룺
impdp zhao/zhao dumpfile=VMES1125.dmp logfile=INVMES1125.log
DIRECTORY=DATA_PUMP_DIR
impdp zhao/zhao dumpfile=FTPC1125.dmp logfile=INFTPC1125.log
DIRECTORY=DATA_PUMP_DIR

��oracle�û���¼ִ�У�����root��¼��ִ��su -
oracle�л���oracle�û��£�ִ����������
���룺
impdp zhao/zhao dumpfile=VMES1125.dmp logfile=INVMES1125.log DIRECTORY=EXP_EMS
impdp zhao/zhao dumpfile=FTPC1125.dmp logfile=INFTPC1125.log DIRECTORY=EXP_EMS

Errors in file /u01/app/oracle/admin/mes/udump/mes2_ora_1605.trc:


ORA-12012: error on auto execute of job 105
ORA-06550: line 1, column 96:
PLS-00201: identifier 'FTPC.PROC_QM_STOCK_PPM_NO' must be declared
ORA-06550: line 1, column 96:
PL/SQL: Statement ignored

CAUSE
Privileges granted by roles do not work when running a stored procedure.
SOLUTION
Do not use roles to grant privileges to stored procedures;
GRANT them directly to the user.

grep PLS-00201 alert_mes2.log|sort|uniq -c

ORA-12012: error on auto execute of job 247


ORA-06550: line 1, column 96:
PLS-00201: identifier 'AVITOOLS.CHANGEDATEZ99FROMMV' must be declared
ORA-06550: line 1, column 96:
PL/SQL: Statement ignored
Thu Jan 20 20:10:26 2022

SQL> begin
dbms_job.run(247);
end; 2 3
4 /
begin
*
ERROR at line 1:
ORA-12011: execution of 1 jobs failed
ORA-06512: at "SYS.DBMS_IJOB", line 406
ORA-06512: at "SYS.DBMS_JOB", line 275
ORA-06512: at line 2

Execution of Job Fails with ORA-12011 ORA-06512 (Doc ID 151900.1)


Do not use roles to grant privileges to stored procedures;
GRANT them directly to the user.

grant execute on FTPC.PROC_QM_STOCK_PPM_NO to zhao;

ORA-12011: execution of 1 jobs failed


ORA-06512: at "SYS.DBMS_IJOB", line 406
ORA-06512: at "SYS.DBMS_JOB", line 275

db939>show engine innodb status\G;


*************************** 1. row ***************************
Type: InnoDB
Name:
Status:
=====================================
2021-12-23 11:04:28 0x7fc1058a1700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 48 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 2719134 srv_active, 0 srv_shutdown, 8 srv_idle
srv_master_thread log flush and writes: 0
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 82966005
OS WAIT ARRAY INFO: signal count 447445597
RW-shared spins 306470567, rounds 334873795, OS waits 26912402
RW-excl spins 89022195, rounds 1946397252, OS waits 40570907
RW-sx spins 3060782, rounds 27525217, OS waits 46570
Spin rounds per wait: 1.09 RW-shared, 21.86 RW-excl, 8.99 RW-sx
------------------------
LATEST DETECTED DEADLOCK
------------------------
2021-12-21 17:20:26 0x7fc1fd877700
*** (1) TRANSACTION:
TRANSACTION 12225218959, ACTIVE 0 sec starting index read
mysql tables in use 1, locked 1
LOCK WAIT 6 lock struct(s), heap size 1136, 8 row lock(s), undo log entries 3
MySQL thread id 307278, OS thread handle 140466896213760, query id 2420090320
10.5.9.43 seata updating
delete from lock_table where xid = '10.128.45.10:8091:216607391428419584' and
branch_id in
(216607391550054401,216607391696855041,216607391847849985,216607391977873409)

*** (1) HOLDS THE LOCK(S):


RECORD LOCKS space id 320 page no 978 n bits 104 index PRIMARY of table
`cmip_mp`.`lock_table` trx id 12225218959 lock_mode X locks rec but not gap
Record lock, heap no 32 PHYSICAL RECORD: n_fields 11; compact format; info bits 32
0: len 30; hex 6a6462633a6d7973716c3a2f2f31302e352e392e34323a333330362f696e; asc
jdbc:mysql://10.5.9.42:3306/in; (total 103 bytes);
1: len 6; hex 0002d8ae098f; asc ;;
2: len 7; hex 02000042082563; asc B %c;;
3: len 30; hex 31302e3132382e34352e31303a383039313a323136363037333931343238; asc
10.128.45.10:8091:216607391428; (total 36 bytes);
4: len 8; hex 83018b465dd0a000; asc F] ;;
5: len 8; hex 83018b4676d0a001; asc Fv ;;
6: len 30; hex 6a6462633a6d7973716c3a2f2f31302e352e392e34323a333330362f696e; asc
jdbc:mysql://10.5.9.42:3306/in; (total 43 bytes);
7: len 22; hex 745f6966635f6d73675f696e6e65725f707231383032; asc
t_ifc_msg_inner_pr1802;;
8: len 30; hex 663362313937663036613663343634373931613236623035303466656139; asc
f3b197f06a6c464791a26b0504fea9; (total 32 bytes);
9: len 5; hex 99ab6b151a; asc k ;;
10: len 5; hex 99ab6b151a; asc k ;;

*** (1) WAITING FOR THIS LOCK TO BE GRANTED:


RECORD LOCKS space id 320 page no 3955 n bits 104 index PRIMARY of table
`cmip_mp`.`lock_table` trx id 12225218959 lock_mode X locks rec but not gap waiting
Record lock, heap no 36 PHYSICAL RECORD: n_fields 11; compact format; info bits 0
0: len 30; hex 6a6462633a6d7973716c3a2f2f31302e352e392e34323a333330362f696e; asc
jdbc:mysql://10.5.9.42:3306/in; (total 73 bytes);
1: len 6; hex 0002d8ae0980; asc ;;
2: len 7; hex 8200000c270110; asc ' ;;
3: len 30; hex 31302e3132382e34352e31303a383039313a323136363037333931343238; asc
10.128.45.10:8091:216607391428; (total 36 bytes);
4: len 8; hex 83018b465dd0a000; asc F] ;;
5: len 8; hex 83018b467e90a001; asc F~ ;;
6: len 30; hex 6a6462633a6d7973716c3a2f2f31302e352e392e34323a333330362f696e; asc
jdbc:mysql://10.5.9.42:3306/in; (total 43 bytes);
7: len 16; hex 745f646d7369665f6a6b3031395f3031; asc t_dmsif_jk019_01;;
8: len 8; hex 3233373831393637; asc 23781967;;
9: len 5; hex 99ab6b151a; asc k ;;
10: len 5; hex 99ab6b151a; asc k ;;

*** (2) TRANSACTION:


TRANSACTION 12225218867, ACTIVE 0 sec
mysql tables in use 1, locked 1
LOCK WAIT 1436 lock struct(s), heap size 155856, 281 row lock(s), undo log entries
278
MySQL thread id 314557, OS thread handle 140467032905472, query id 2420090150
10.5.9.43 seata updating
delete from lock_table where xid = '10.128.45.10:8091:216607286981861378' and
branch_id in
(216607290647683073,216607290966450180,216607291218108417,216607291406852097,216607
291641733123,216607291864031233,216607292077940738,216607292300238849,2166072925393
14177,216607292744835073,216607292992299009,216607293222985730,216607293466255361,2
16607293675970561,216607293898268673,216607294107983873,216607294359642113,21660729
4615494658,216607294900707329,216607295106228227,216607295399829506,216607295638904
835,216607295869591553,216607296033169409,216607296293216259,216607296490348545,216
607296695869441,216607296888807425,216607297106911233,216607297358569475,2166072975
64090369,216607297765416961,216607298012880897,216607298893684737,21660729914114867
3,216607299837403139,216607300017758209,216607300168753153,216607300365885443,21660
7300600766465,216607300785315841,216607300948893698,216607301108277249,21660730126

*** (2) HOLDS THE LOCK(S):


RECORD LOCKS space id 320 page no 3955 n bits 104 index PRIMARY of table
`cmip_mp`.`lock_table` trx id 12225218867 lock_mode X locks rec but not gap
Record lock, heap no 36 PHYSICAL RECORD: n_fields 11; compact format; info bits 0
0: len 30; hex 6a6462633a6d7973716c3a2f2f31302e352e392e34323a333330362f696e; asc
jdbc:mysql://10.5.9.42:3306/in; (total 73 bytes);
1: len 6; hex 0002d8ae0980; asc ;;
2: len 7; hex 8200000c270110; asc ' ;;
3: len 30; hex 31302e3132382e34352e31303a383039313a323136363037333931343238; asc
10.128.45.10:8091:216607391428; (total 36 bytes);
4: len 8; hex 83018b465dd0a000; asc F] ;;
5: len 8; hex 83018b467e90a001; asc F~ ;;
6: len 30; hex 6a6462633a6d7973716c3a2f2f31302e352e392e34323a333330362f696e; asc
jdbc:mysql://10.5.9.42:3306/in; (total 43 bytes);
7: len 16; hex 745f646d7369665f6a6b3031395f3031; asc t_dmsif_jk019_01;;
8: len 8; hex 3233373831393637; asc 23781967;;
9: len 5; hex 99ab6b151a; asc k ;;
10: len 5; hex 99ab6b151a; asc k ;;

*** (2) WAITING FOR THIS LOCK TO BE GRANTED:


RECORD LOCKS space id 320 page no 978 n bits 104 index PRIMARY of table
`cmip_mp`.`lock_table` trx id 12225218867 lock_mode X locks rec but not gap waiting
Record lock, heap no 32 PHYSICAL RECORD: n_fields 11; compact format; info bits 32
0: len 30; hex 6a6462633a6d7973716c3a2f2f31302e352e392e34323a333330362f696e; asc
jdbc:mysql://10.5.9.42:3306/in; (total 103 bytes);
1: len 6; hex 0002d8ae098f; asc ;;
2: len 7; hex 02000042082563; asc B %c;;
3: len 30; hex 31302e3132382e34352e31303a383039313a323136363037333931343238; asc
10.128.45.10:8091:216607391428; (total 36 bytes);
4: len 8; hex 83018b465dd0a000; asc F] ;;
5: len 8; hex 83018b4676d0a001; asc Fv ;;
6: len 30; hex 6a6462633a6d7973716c3a2f2f31302e352e392e34323a333330362f696e; asc
jdbc:mysql://10.5.9.42:3306/in; (total 43 bytes);
7: len 22; hex 745f6966635f6d73675f696e6e65725f707231383032; asc
t_ifc_msg_inner_pr1802;;
8: len 30; hex 663362313937663036613663343634373931613236623035303466656139; asc
f3b197f06a6c464791a26b0504fea9; (total 32 bytes);
9: len 5; hex 99ab6b151a; asc k ;;
10: len 5; hex 99ab6b151a; asc k ;;

*** WE ROLL BACK TRANSACTION (1)


------------
TRANSACTIONS
------------
Trx id counter 12307113251
Purge done for trx's n:o < 12306935562 undo n:o < 0 state: running but idle
History list length 80729
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 421953519832368, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519846320, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519897768, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519894280, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519882072, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519849808, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519867248, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519889920, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519889048, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519886432, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519885560, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519874224, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519814056, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519866376, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519865504, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519861144, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519858528, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519857656, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519854168, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519852424, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519848064, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519842832, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519838472, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519834984, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519831496, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519830624, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519825392, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519820160, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519816672, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519815800, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519810568, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519812312, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519961424, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519916080, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519977992, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519977120, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519976248, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519975376, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519974504, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519973632, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519908232, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519972760, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519949216, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519971888, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519964040, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519813184, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519807952, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519878584, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519971016, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519970144, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519968400, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519945728, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519943984, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519892536, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519862016, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519966656, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519807080, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519893408, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519900384, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519853296, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519925672, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519811440, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519851552, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519911720, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519887304, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519840216, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519833240, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519823648, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519873352, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519872480, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519868120, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519904744, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519906488, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519881200, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519880328, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519824520, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519922184, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519836728, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519942240, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519938752, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519932648, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519927416, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519855040, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519871608, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519941368, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519828008, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519850680, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519845448, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519879456, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519915208, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519914336, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519902128, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519903000, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519899512, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519895152, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519819288, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519870736, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519821032, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519821904, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519884688, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519864632, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519814928, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519876840, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519896896, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519875968, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519839344, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519822776, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519835856, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519808824, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519933520, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519919568, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519923056, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519837600, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519827136, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519920440, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519907360, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519903872, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519869864, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519863760, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519855912, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519844576, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519828880, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519926544, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519890792, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519848936, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519868992, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519862888, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519859400, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519891664, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519913464, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519934392, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519856784, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519841960, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519921312, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519937008, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519875096, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519829752, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519888176, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519834112, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519882944, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519818416, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519883816, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519860272, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519936136, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519923928, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519877712, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519916952, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519909104, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519896024, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519847192, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519843704, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519841088, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519826264, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519817544, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421953519806208, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 12306935532, ACTIVE 268 sec fetching rows
mysql tables in use 3, locked 1
93 lock struct(s), heap size 24784, 5896 row lock(s), undo log entries 2948
MySQL thread id 336323, OS thread handle 140470673098496, query id 2552834062
10.5.9.43 appuser3 executing
INSERT INTO T_EAP_LOG_INVOKING_USER (
INV_ID,
INV_USERID,
INV_USERNAME,
INV_PLATTYPE,
INV_ACCESSIPS,
INV_ACCESSIP_NUM,
INV_ACCESS_NUM,
INV_ACCESS_FREQUENCY,
INV_DATE
) SELECT
UUID() INV_ID,
INV_USERID,
INV_USERNAME,
INV_PLATTYPE,
GROUP_CONCAT(DISTINCT INV_ACCESSIP) INV_ACCESSIPS,
COUNT(DISTINCT INV_ACCESSIP) INV_ACCESSIP_NUM,
COUNT(1) INV_ACCESS_NUM,
CASE WHEN timestampdiff(second, min(inv_accesstime), max(inv_accesstime)) = 0
THEN 0 ELSE COUNT(1) * 60.0 / timestampdiff(second, min(inv_accesstime),
max(inv_accesstime)) END INV_ACCESS_FREQUENCY,
v_today_int INV_DATE
FRO
Trx read view will not see trx with id >= 12306935596, sees < 12306935528
---TRANSACTION 12306935529, ACTIVE 268 sec fetching rows
mysql tables in use 2, locked 1
20 lock struct(s), heap size 3520, 1240 row lock(s), undo log entries 620
MySQL thread id 336321, OS thread handle 140470668568320, query id 2552833983
10.5.9.43 appuser3 executing
INSERT INTO T_EAP_LOG_INVOKING_FUNC (
INV_ID,
INV_SERVICEURL,

INV_PLATTYPE,
INV_ACCESS_NUM,
INV_DATE
) SELECT
UUID() INV_ID,
INV_SERVICEURL,

INV_PLATTYPE,
COUNT(1) INV_ACCESS_NUM,
v_today_int INV_DATE
FROM
t_eap_log_invoking
WHERE

INV_ACCESSTIME between v_today and v_tomorrow


GROUP BY
INV_SERVICEURL,
INV_PLATTYPE
Trx read view will not see trx with id >= 12306935562, sees < 12306935528
--------
FILE I/O
--------
I/O thread 0 state: waiting for completed aio requests (insert buffer thread)
I/O thread 1 state: waiting for completed aio requests (log thread)
I/O thread 2 state: waiting for completed aio requests (read thread)
I/O thread 3 state: waiting for completed aio requests (read thread)
I/O thread 4 state: waiting for completed aio requests (read thread)
I/O thread 5 state: waiting for completed aio requests (read thread)
I/O thread 6 state: waiting for completed aio requests (read thread)
I/O thread 7 state: waiting for completed aio requests (read thread)
I/O thread 8 state: waiting for completed aio requests (read thread)
I/O thread 9 state: waiting for completed aio requests (read thread)
I/O thread 10 state: waiting for completed aio requests (write thread)
I/O thread 11 state: waiting for completed aio requests (write thread)
I/O thread 12 state: waiting for completed aio requests (write thread)
I/O thread 13 state: waiting for completed aio requests (write thread)
I/O thread 14 state: waiting for completed aio requests (write thread)
I/O thread 15 state: waiting for completed aio requests (write thread)
I/O thread 16 state: waiting for completed aio requests (write thread)
I/O thread 17 state: waiting for completed aio requests (write thread)
Pending normal aio reads: [0, 0, 0, 0, 0, 0, 0, 0] , aio writes: [0, 0, 0, 0, 0, 1,
0, 0] ,
ibuf aio reads:, log i/o's:, sync i/o's:
Pending flushes (fsync) log: 1; buffer pool: 20
1489075468 OS file reads, 2348434300 OS file writes, 1380270974 OS fsyncs
1 pending preads, 0 pending pwrites
2161.62 reads/s, 16384 avg bytes/read, 875.44 writes/s, 510.03 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 19, free list len 129515, seg size 129535, 72584740 merges
merged operations:
insert 71467038, delete mark 54591241, delete 2538
discarded operations:
insert 0, delete mark 0, delete 0
Hash table size 1593833, node heap has 25 buffer(s)
Hash table size 1593833, node heap has 759 buffer(s)
Hash table size 1593833, node heap has 57 buffer(s)
Hash table size 1593833, node heap has 6 buffer(s)
Hash table size 1593833, node heap has 11522 buffer(s)
Hash table size 1593833, node heap has 31 buffer(s)
Hash table size 1593833, node heap has 6 buffer(s)
Hash table size 1593833, node heap has 509 buffer(s)
253001.10 hash searches/s, 11728.67 non-hash searches/s
---
LOG
---
Log sequence number 6278819481493
Log buffer assigned up to 6278819481493
Log buffer completed up to 6278819481493
Log written up to 6278819481493
Log flushed up to 6278819481223
Added dirty pages up to 6278819481493
Pages flushed up to 6278709700373
Last checkpoint at 6278709700373
2100009384 log i/o's done, 733.98 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 6593445888
Dictionary memory allocated 1104805
Buffer pool size 393216
Free buffers 2013
Database pages 378287
Old database pages 139605
Modified db pages 17643
Pending reads 1
Pending writes: LRU 0, flush list 1, single page 0
Pages made young 252044545, not young 5603168813
0.00 youngs/s, 0.00 non-youngs/s
Pages read 1489081603, created 12639780, written 236209853
0.00 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 998 / 1000, young-making rate 0 / 1000 not 4 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 378287, unzip_LRU len: 0
I/O sum[231584]:cur[1022], unzip sum[0]:cur[0]
----------------------
INDIVIDUAL BUFFER POOL INFO
----------------------
---BUFFER POOL 0
Buffer pool size 196608
Free buffers 1007
Database pages 189106
Old database pages 69789
Modified db pages 8361
Pending reads 0
Pending writes: LRU 0, flush list 1, single page 0
Pages made young 126193884, not young 2818636399
0.00 youngs/s, 0.00 non-youngs/s
Pages read 742658428, created 6290431, written 116966250
0.00 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 987 / 1000, young-making rate 1 / 1000 not 26 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 189106, unzip_LRU len: 0
I/O sum[115792]:cur[511], unzip sum[0]:cur[0]
---BUFFER POOL 1
Buffer pool size 196608
Free buffers 1006
Database pages 189181
Old database pages 69816
Modified db pages 9282
Pending reads 1
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 125850661, not young 2784532414
0.00 youngs/s, 0.00 non-youngs/s
Pages read 746423175, created 6349349, written 119243603
0.00 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 999 / 1000, young-making rate 0 / 1000 not 2 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 189181, unzip_LRU len: 0
I/O sum[115792]:cur[511], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
2 read views open inside InnoDB
Process ID=11756, Main thread ID=140471118272256 , state=sleeping
Number of rows inserted 1567765973, updated 162057813, deleted 387706919, read
177440361438
576.97 inserts/s, 50.64 updates/s, 97.39 deletes/s, 112344.85 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================

1 row in set (0.00 sec)

ERROR:
No query specified

db939>

You might also like