溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

WMS問題處理的示例分析

發(fā)布時間:2021-11-25 09:33:53 來源:億速云 閱讀:330 作者:小新 欄目:關系型數據庫

這篇文章主要介紹了WMS問題處理的示例分析,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。

采購訂單沒有生成上傳訂單號
pkg_inpurchase_task.p_rk_sc_rkd_zc

iv_yzid    -----  ZDA

iv_djbh ---- KPD00014712

銷售訂單下傳下去后直接轉歷史表

select  * from INTERFACE_OUT_SALE_M  t where  djbh  like '%XSGYMA00220297%'
日志表查詢結果
ORA-01400: 無法將 NULL 插入 ("WMS_ZD"."OUT_SALE_BILLING_M"."RY_KPY")
pkg_inf_new.p_task_xsdd

ov_result ------Y

內復核提示單行子查詢返回多行

select  t.*,t.rowid  from  out_sale_barcode  t where  djbh='XSGYMA00220712'

select  * from  out_sale_task_d  t where  djbh_fpd='2017120594831'
無返回值
將out_sale_barcode表中djbh_fpd='2017120594831' 刪除

查看用戶名密碼
select  t.*,t.rowid from  zhiydoc  t where   dzycode='admin'

proc_decode

中 encodepass 賦予 Kl值

開啟不合格移庫功能
select  t.*,t.rowid from  SYS_DEFFUN   T WHERE   FUN_NAME LIKE '%不合格%'

將can_use 的值1改為0

修改入庫類型,收貨前將rktype 修改成所需類型
select  t.*,t.rowid from in_purchase_orders_m t where  djbh  in ('XSTYMA00029852','XSTYMA00029849','XSTYMA00029848', 'XSTYMA00029847','XSTYMA00029845','XSTYMA00029841','XSTYMA00029840', 'XSTYMA00029839', 'XSTYMA00029838','XSTYMA00029837', 'XSTYMA00029836')

銷退空退寫錯
select  t.*,t.rowid from IN_PURCHASE_ORDERS_m t where djbh='XSTYMA00030579';

update IN_PURCHASE_ORDERS_m set  sf_zx='刪' where djbh='XSTYMA00030579' and sf_zx='否';
update IN_PURCHASE_ORDERS_d set  sf_zx='刪' where djbh='XSTYMA00030579' and sf_zx='否';

數據庫慢了可以先看會話里是否有鎖然后重新分析索引
analyze table out_sale_billing_m compute statistics;
analyze table out_sale_billing_d compute statistics;
analyze table out_sale_billing_m_hty compute statistics;
analyze table out_sale_billing_d_hty compute statistics;
analyze table out_sale_task_d compute statistics;
analyze table out_sale_task_m compute statistics;
analyze table out_sale_task_d_hty compute statistics;
analyze table out_sale_task_m_hty compute statistics;

銷售開票單下傳WMS后無任務就轉歷史
select  t.,t.rowid from   out_sale_billing_m t where  djbh='XSGYMA00281145'
select  t.
,t.rowid from   out_sale_task_d_hty t  where  djbh='XSGYMA00281145'
select  t.,t.rowid from  interface_out_sale_m_hty t where  djbh='XSGYMA00281145'
select  t.
,t.rowid from   out_sale_task_d t where djbh='XSGYMA00281145'
select  t.*,t.rowid from   inf_error_log t where code='XSGYMA00281145'

select  t.*,t.rowid from  interface_out_sale_m_hty t where  djbh='XSGYMA00291738'
看xf_xs 為否,如果是否則查詢RY_YWY中開票員名字是否有  ?。ㄓ寐殕T名字也有用職員ID)
加入執(zhí)行 看過程proc_out_dowm_to_bill是否要執(zhí)行

select  t.,t.rowid from   inf_xsck_bill t  where  djbh ='XSGYMA00322995';
select  t.
,t.rowid from   inf_xsck_bill_old t  where  djbh ='XSGYMA00322995';
select  t.,t.rowid from   inf_error_log t where  code='XSGYMA00322995'
\ORA-01400: 無法將 NULL 插入 ("WMS_ZD"."OUT_SALE_BILLING_M"."RY_KPY")
select  t.
,t.rowid from   out_sale_task_d t where  djbh ='XSGYMA00322995'
查詢出庫任務狀態(tài)
select  t.*,t.rowid from    out_sale_task_d t where  spid ='SPH00014714' and  rwzt<6;

中藥庫內復核確認存盤時提示 ORA-02290: 違反檢查約束條件(wms_zd.ckc_sl_ckyfp_kc_spzkc)
ORA-06512:在 wms_zd.pkg_outsale_pick ,line 11347

--查看商品任務狀態(tài)
select rwzt,t. from out_sale_task_d t where djbh = 'XSGYMA00348786';
--查看此商品總預占數量
select
from out_sale_task_d where rwzt < '6' and  spid = 'SPH00020269';
--查看商品庫存出庫狀態(tài)將此兩表的SL_CKYFP中數量1改為2
select t.,rowid from stock_lot_storagespaces t where spid = 'SPH00020269';
select t.
,rowid from stock t  where spid = 'SPH00020269';

--刪除配送單無法清空暫存區(qū)的數據
UPDATE PS_ZCD_HZ T SET T.SF_FH='是',t.sf_fhwc='是' where t.sf_fh= '否' AND SF_FHWC = '否'
AND SF_TY = '否' and T.DJBH='ZCD00060245'--.rq <= to_date('2019-07-11','YYYY-MM-DD')

--托運單據條件SF_TY='是'

--處理鎖死
select Distinct 'alter system kill session '||chr(39)||b.sid||','||b.serial#||chr(39)||';'

As cmd,b.username,b.logon_time
from v$locked_object a,v$session b
where a.session_id=b.sid;

SELECT /+ RULE /
LPAD(' ', DECODE(L.XIDUSN, 0, 3, 0)) || L.ORACLE_USERNAME USER_NAME,
S.STATUS,
O.OWNER,
O.OBJECT_NAME,
O.OBJECT_TYPE,
S.SID,
S.SERIAL#,
S.MACHINE,
S.TERMINAL,
S.SQL_HASH_VALUE,
S.SECONDS_IN_WAIT,
(SELECT SQL_FULLTEXT
FROM V$SQL
WHERE HASH_VALUE = S.SQL_HASH_VALUE
AND ROWNUM = 1) SQL_TEXT
FROM V$LOCKED_OBJECT L, DBA_OBJECTS O, V$SESSION S
WHERE L.OBJECT_ID = O.OBJECT_ID
AND L.SESSION_ID = S.SID
ORDER BY S.SECONDS_IN_WAIT DESC, O.OBJECT_ID, XIDUSN DESC;

          --殺進程
          ALTER SYSTEM KILL SESSION '35,4293';

                    -- Create table

create table JG_INFO
(
yez_id     VARCHAR2(30) not null,
ruckd_no   VARCHAR2(20) not null,
jiang_cd   VARCHAR2(30) not null,
caoz_staff VARCHAR2(30) not null,
oper_date  DATE default SYSDATE not null,
danw_id    VARCHAR2(30) not null,
shangc_flg VARCHAR2(2) default 'N' not null,
jiang_type VARCHAR2(3) not null,
shangp_id  VARCHAR2(80) not null,
fenpd_no   VARCHAR2(20) default ' ',
tiaom_type VARCHAR2(2) not null,
bzlb       VARCHAR2(2),
phid       VARCHAR2(30),
status     VARCHAR2(6),
billno     VARCHAR2(20),
lineno     VARCHAR2(20),
jgscy      VARCHAR2(20),
hwid       VARCHAR2(20)
)
tablespace USERS
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 16K
minextents 1
maxextents unlimited
);
-- Add comments to the table
comment on table JG_INFO
is '監(jiān)管出庫信息表';
-- Add comments to the columns
comment on column JG_INFO.yez_id
is '業(yè)主內碼';
comment on column JG_INFO.ruckd_no
is '入出庫單號';
comment on column JG_INFO.jiang_cd
is '監(jiān)管碼';
comment on column JG_INFO.caoz_staff
is '操作員';
comment on column JG_INFO.oper_date
is '操作日期';
comment on column JG_INFO.danw_id
is '單位內碼';
comment on column JG_INFO.shangc_flg
is '是否上傳';
comment on column JG_INFO.jiang_type
is '監(jiān)管類型(業(yè)務類型 ;0購進入庫, 1 銷售退回 ,2 銷售出庫, 3 購進退出)';
comment on column JG_INFO.shangp_id
is '商品內碼';
comment on column JG_INFO.fenpd_no
is '分配單編號';
comment on column JG_INFO.tiaom_type
is '條碼類型(1:監(jiān)管碼  2:防竄碼)';
comment on column JG_INFO.bzlb
is '包裝類別(0整件,1中包裝,2小包裝)';
comment on column JG_INFO.billno
is 'ERP單據編號';
comment on column JG_INFO.lineno
is 'ERP細單行號';
comment on column JG_INFO.jgscy
is '監(jiān)管碼刪除用';
comment on column JG_INFO.hwid
is '貨位ID';
-- Create/Recreate indexes
create index IND_JG_INFO_DATE on JG_INFO (OPER_DATE)
tablespace USERS
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 43M
next 1M
minextents 1
maxextents unlimited
);
create unique index PK_JG_INFO on JG_INFO (YEZ_ID, RUCKD_NO, SHANGP_ID, JIANG_CD)
tablespace USERS
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);

感謝你能夠認真閱讀完這篇文章,希望小編分享的“WMS問題處理的示例分析”這篇文章對大家有幫助,同時也希望大家多多支持億速云,關注億速云行業(yè)資訊頻道,更多相關知識等著你來學習!

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

wms
AI