Sap
Sap
Note that the optimizer does not use statistics stored in a user-owned table. The
only statistics used by the optimizer are the statistics stored in the data
dictionary. In order to have the optimizer use the statistics in user-owned tables,
you must import those statistics into the data dictionary using the statistics
import procedures.
In order to move statistics from one database to another, you must first export the
statistics on the first database, then copy the statistics table to the second
database, using the EXP and IMP utilities or other mechanisms, and finally import
the statistics into the second database.
Note: The EXP and IMP utilities export and import optimizer statistics from the
database along with the table. One exception is that statistics are not exported
with the data if a table has columns with system-generated names.
In the following example the statistics for the APPSCHEMA user are collected into a
new table, STATS_TAB, which is owned by DBASCHEMA:
3. This table can be transferred to another server using any one of the below
methods.
SQLPlus Copy:
SQL> insert into dbaschema.stats_tab select * from dbaschema.stats_tab@source;
Export/Import:
exp file=stats.dmp log=stats_exp.log tables=dbaschema.stats_tab
imp file=stats.dmp log=stats_imp.log
Data Pump:
expdp directory=dpump_dir dumpfile=stats.dmp logfile=stats_exp.log tables=
dbaschema.stats_tab
impdp directory=dpump_dir dumpfile=stats.dmp logfile=stats_imp.log
How To Use SQL Profiles for Queries Using Different Literals Using the Force_Match
Parameter of DBMS_SQLTUNE.ACCEPT_SQL_PROFILE (Doc ID 1253696.1)
已经改进:
ZFIF005 会计账簿科目明细表
ZFIF006 会计账簿科目明细表(外币)
ZFIF007 会计账簿科目余额表
ZFIF008 会计账簿辅助明细表
ZFIF009 会计账簿辅助余额表
下阶段任务:
ZCOR009 毛利分析报表
ZFIR003 现金流量表
ZFIR004 供应商往来明细表
ZFIR006 客户往来明细表
s2cloud.DPS_CWBB_CWBB
--user=root --password=DPSsql@123
10.5.10.80
10.5.10.79
[email protected];[email protected]
set [email protected]
set smtp=mail.dfpv.com.cn
set [email protected]
set smtp-auth-password=dfmcyc99!
set smtp-auth=login
set +x
dba_constraints
1.�е����������ó�,���ţ�����ͼ��ޣȵ�λϵͳ��ά����
2.�е�oracle,mysql���ݿϵͳ���ϴ����������Ż�
3.�е�SAP��ά���ֵȹ���
���䣺 [email protected]��[email protected]
������Ƽ�������ϵ����������ͳһ���������䣺 [email protected]��
maximum runtime
/u01/app/oracle/diag/rdbms/esb/ESB_1/trace
[oracle@caoradb001 ~]$ export ORACLE_SID=ESB_2
[oracle@caoradb001 ~]$ export ORACLE_SID=ESB_1
cacpmoc-scan.drac.corp
sqlplus zhao/[email protected]/ESB
TMS_ORDER_DETAIL
343000
RELATEBILL3" distinct 988836
08:43:45
test =
(DESCRIPTION =
(ADDRESS_LIST =
(LOAD_BALANCE = OFF)
(FAILOVER = ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = cacpmoc-scan.drac.corp)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ESB)
)
)
cd /etc/yum.repos.d
wget http://public-yum.oracle.com/public-yum-ol7.repo
��[ol7_addons]��enable����Ϊ1
yum install oracle-ebs-server-R12-preinstall.x86_64 -y
FRM-92050
/d01/VIS/inst/apps/TESTDB_lyg/logs
hostnamectl set-hostname
Summary of Possible Reasons and Solutions for the Problem Where All
Concurrent Requests Stuck in Pending Phase (Doc ID 182154.1)
E3481174532
VIRT represents the total amount of virtual memory used by mysql. It includes all
code, data and shared libraries plus pages that have eventually been swapped out.
USED reports the sum of process rss (resident set size, the portion of memory
occupied by a process that is held in RAM) and swap total count.
esbtst =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.223.41.75)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.223.41.76)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ESB)
(FAILOVER_MODE =
(TYPE = select)
(METHOD = basic)
(RETRIES = 180)
(DELAY = 5)
)
)
)
134033.1
## DB
/R12/PROD/db/tech_st/11.2.0
/R12/PROD/db/apps_st/data
## APP
/R12/PROD/apps/apps_st/comn
/R12/PROD/apps/apps_st/appl
/R12/PROD/apps/apps_st/ora
/R12/PROD/inst
479-539
mkdir -p /u01/StageR12
unzip -d /u01/StageR12 <ZipFile>
Wk495#wdhac
Tools > Internet Options > Security > Trusted Sites > Sites
S0009359614
CVE-2021-44228 (10.0), CVE-2022-22531 (8.7), CVE-2022-22530 (8.7), CVE-2021-44235
(8.4)
select
sql_text
from
dba_hist_sqltext
where
sql_id in
(select distinct maxquerysqlid from
(select * from
(select
snap_id,
maxquerylen,
undoblks,
maxquerysqlid,
to_char(begin_time,'YYYY-MM-DD HH24:MI') begin,
to_char(end_time,'YYYY-MM-DD HH24:MI') end
from
dba_hist_undostat
order by
undoblks desc,
maxquerylen desc
)
where rownum<11
)
);
<CVE-2021-44235 (8.4)>
7.00 SP32-SP39 (*) / 7.01 SP17-SP24 (*) / 7.10 SP22-SP25 / 7.11 SP17-SP20 / 7.02
SP17-SP24 (*) / 7.30 SP13-SP21 / 7.31 SP15-SP30 (*) / 7.40 SP10-SP27 (*) / 7.50
SP00-SP22 / 7.51 SP00-SP13 / 7.52 SP00-SP09 / 7.53 SP00-SP07 / 7.54 SP00-SP05 /
7.55 SP00-SP03 /
7.56 SP00-SP01
·��Ϊ/sapinst/JAVA_COM
����5���
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
TABLE_EXISTS_ACTION=REPLACE logfile=5in.log
3123396
./sapinst SAPINST_SLP_MODE=false
HANA 1709 HANA 1610
COUNT(*)
----------
611119
SUM(BYTES)/1024
---------------
165888
AT_IF_SOCK_CONN_LOG
FTPC 164416
122031.21 42384.79
INDEX_NAME
------------------------------------------------------------
INDEX_TYPE STATUS
------------------------------------------------------ ----------------
DPKBIF_SOCK_CONN_LOG
NORMAL VALID
DXA0IF_SOCK_CONN_LOG
NORMAL VALID
DXA1IF_SOCK_CONN_LOG
NORMAL
====
SQL> select sum(bytes)/1024 from dba_segments where owner='FTPC' and
segment_name='AT_IF_SOCK_CONN_LOG';
SUM(BYTES)/1024
---------------
151360
====
FEEDING_POINT
VMES 40
30.98 9.02
27dwvh8ggzpft
select
ua.inst_id,
ua.current_size_mb,
ua.is_autoextensible,
ua.undo_retention/3600 undo_retention,
um.undo_size_min_mb,
u.undo_size_guarantee_mb,
um.longest_sql/3600 longest_sql,
um.longest_sql_id,
um.max_ora1555_cnt,
um.max_no_space_cnt
from
gv$parameter p,
( -- how much undo is required to guarantee undo retention for
awr_snapshots_count period
select
inst_id,
max(required_undo_mb) undo_size_guarantee_mb
from
(
select
inst_id,
sum(undo_size) over (partition by inst_id order by begin_interval_time rows
&awr_snapshots_count preceding) required_undo_mb
from
(
select
s.instance_number inst_id,
s.begin_interval_time,
round((ss.value - lag(ss.value) over (partition by s.instance_number
order by s.begin_interval_time))/1024/1024) undo_size
from
dba_hist_snapshot s,
v$database d,
dba_hist_sysstat ss,
v$statname n
where
s.dbid = d.dbid and
s.dbid = ss.dbid and
s.instance_number = ss.instance_number and
s.snap_id = ss.snap_id and
ss.stat_id = n.stat_id and
n.name = 'undo change vector size'
)
)
group by inst_id
) u,
( -- minimally required undo as max active blocks
select
uh.instance_number inst_id,
max(activeblks * p.value/1024/1024) undo_size_min_mb,
max(maxquerylen) longest_sql,
max(maxquerysqlid) keep (dense_rank first order by maxquerylen desc)
longest_sql_id,
max(ssolderrcnt) max_ora1555_cnt,
max(nospaceerrcnt) max_no_space_cnt
from
dba_hist_snapshot s,
v$database d,
dba_hist_undostat uh,
v$parameter p
where
s.dbid = d.dbid and
s.dbid = uh.dbid and
s.instance_number = uh.instance_number and
s.snap_id = uh.snap_id and
p.name = 'db_block_size'
group by
uh.instance_number
) um,
( -- current undo setup
select
p.inst_id,
round(sum(bytes)/1024/1024) current_size_mb,
max(t.autoextensible) is_autoextensible,
max(ur.value) undo_retention
from
dba_data_files t,
gv$parameter p,
(select inst_id, value from gv$parameter where name = 'undo_retention') ur
where
t.tablespace_name = p.value and
p.name = 'undo_tablespace' and
p.inst_id = ur.inst_id
group by
p.inst_id
) ua
where
p.inst_id = u.inst_id and
p.name = 'undo_retention' and
u.inst_id = ua.inst_id and
ua.inst_id = um.inst_id
;
SQL_ID 27dwvh8ggzpft
--------------------
UPDATE AT_PP_VEHICLE A SET A.IS_VEXPORT_AUTO_Y = 1 WHERE A.VIN_S = :B1
SELECT O6, O7, O8, O9, O10, O11, ATR_KEY ,MOTOR,MOTOR_TYPE FROM
AT_IF_EXPORT_VIEW_NEW WHERE IS_VEXPORT_AUTO_Y = 0
/sapcd/SWPM
./sapinst
./sapinst SAPINST_SLP_MODE=false
172.19.94.42
vi /etc/hosts
��saphanaprd ��IP�����172.19.4.110��������IP 172.19.4.117
service nscd restart
1.������עnode HANA_PRI
156�� hdbnsutil -sr_enable --name=HANA_one
2.ֹͣ157 HANA�������ݿ
3.��157ִ����עHANA ����
hdbnsutil -sr_register --name=HANA_SEC --remoteHost=sap-hana-op01 --
remoteInstance=00 --mode=syncmem --operationMode=logreplay
4.��157ִ����HANA�������ݿ
ST03N does not collect indirectly called transactions in custom code. This means if
custom code uses a call transaction XYZA, the transaction XYZA is NOT recorded in
ST03N
FORMAT 'bk_%s_%p_%t'
127.0.0.1 localhost
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
172.19.4.117 saphanap02 saphanap02.wdhac.com.cn
172.19.4.110 saphanap01 saphanap01.wdhac.com.cn
#SAP APP
172.19.6.200 sapprdapp sapprdapp.wdhac.com.cn
172.19.6.196 sapprdapp02 sapprdapp02.wdhac.com.cn
172.19.2.232 wdhac-nbu-master
172.19.2.233 wdhac-nbu-media
10.2.9.43
OGG��Ŀ����10.2.9.43 ORACLEVMES-PLM
172.16.16.26
VMES-PLM
[inifile_checker]/replicate = true
LOOP EXECUTE IMMEDIATE 'GRANT SELECT ON ' || x.table_name || ' TO dmpqry'; END
LOOP; FOR x IN (SELECT * FROM user_tables)
set serveroutput on
declare
cursor c1 is select table_name from dba_tables where owner='ATHZBC';
cmd varchar2(200);
begin
for c in c1 loop
cmd := 'GRANT SELECT ON ATHZBC.'||c.table_name||' to dmpqry;';
--execute immediate cmd;
DBMS_OUTPUT.PUT_LINE(cmd);
end loop;
end;
./hdbuserstore list
��1.hana��system replicationʱ��,ͨ��ָ���ݻӽ���ڵԼӿ���
ZCXTSC.TG_GPSQD_ZX to ZCXTSC.TG_GPSQD_ZX
inifile_checker
hdbnsutil -sr_unregister
cdpy
python systemReplicationStatus.py
python landscapeHostConfiguration.py
7v56m4wp4h1uj
10.2.9.38 MYSQL
163424.1
select a.spid from v$process a ,v$session b where a.addr=b.paddr and b.sid in
(select sid from dba_jobs_running);
view ggsevt
UPPER(F.TABLESPACE_NAME) TOT_GROOTTE_MB
------------------------------------------------------------ --------------
D.TOT_GROOTTE_MB-F.TOTAL_BYTES ʹ�ñ� TOTAL_BYTES MAX_BYTES
------------------------------ ---------------- ----------- ----------
MESPDB 268000
241322.81 90.05% 26677.19 3968
DMS5.0-MYSQL5-DEV-10.5.71.31
DMS5.0-DB06-TEST--10.5.71.50
DMS5.0-DB12-TEST--10.5.71.56
/u01/app/11.2.0.4/grid/bin/ocrcheck
1.�鿴��Ч��OCR����
ocrconfig -showbackup
2.�ֶ����� OCR
ocrconfig -manualbackup
# ls /sys/class/scsi_host/
host0 host1 host2
cd /sys/class/scsi_host/
echo '- - -' > /sys/class/scsi_host/host0/scan
echo '- - -' > /sys/class/scsi_host/host1/scan
echo '- - -' > /sys/class/scsi_host/host2/scan
echo '- - -' > /sys/class/scsi_host/host3/scan
echo '- - -' > /sys/class/scsi_host/host4/scan
/dev/sdcd
/dev/sdce
/dev/sdcf
/dev/sdcg
/dev/mapper/360002ac0000000000000001b00024596
PATH
--------------------------------------------------------------------------------
MOUNT_S
-------
/dev/oracleasm/disks/DMS4DBDATA003
IGNORED
TIME_OUT
SQL_CAUGHT_RABAX
/dev/oracleasm/disks/DMS4FRA1
GROUP_NUMBER NAME
------------ ------------------------------
PATH
--------------------------------------------------------------------------------
FAILGROUP TOTAL_MB FREE_MB REDUNDA
------------------------------ ---------- ---------- -------
1 DATADG02_0000
/dev/oracleasm/disks/DMS4DBDATAEX01
DATADG02_0000 1048593 259455 UNKNOWN
1 DATADG02_0001
/dev/oracleasm/disks/DMS4DBDATAEX02
DATADG02_0001 1048593 259464 UNKNOWN
GROUP_NUMBER NAME
------------ ------------------------------
PATH
--------------------------------------------------------------------------------
FAILGROUP TOTAL_MB FREE_MB REDUNDA
------------------------------ ---------- ---------- -------
1 DATADG02_0002
/dev/oracleasm/disks/DMS4DBDATAEX03
DATADG02_0002 1048593 259461 UNKNOWN