Faydalı SQL'ler
Tools üzerinde lock'lı objectlerin lock'ını kaldırma:
Business Component:
UPDATE siebel.s_buscomp SET obj_locked_flg = 'N', obj_locked_date = NULL, obj_locked_by = null, obj_locked_lang = null WHERE NAME = 'BC_ADI'
Applet:
UPDATE siebel.s_applet SET obj_locked_flg = 'N', obj_locked_date = NULL, obj_locked_by = null, obj_locked_lang = null WHERE NAME = 'APPLET_ADI';
View:
UPDATE siebel.s_view SET obj_locked_flg = 'N', obj_locked_date = NULL, obj_locked_by = null, obj_locked_lang = null WHERE name = 'VIEW_ADI';
Table:
UPDATE siebel.s_table SET obj_locked_flg = 'N', obj_locked_date = null, obj_locked_by = null, obj_locked_lang = null WHERE tab.name = 'TABLO_ADI';
Business Service:
UPDATE siebel.s_service SET obj_locked_flg = 'N', obj_locked_date = NULL, obj_locked_by = null, obj_locked_lang = null WHERE NAME = 'BS_ADI';
Project:
UPDATE siebel.s_project SET locked_flg = 'N', locked_date = NULL, locked_by = NULL WHERE name = 'PROJECT_ADI';
Appletin yeraldığı view'ları bulan sorgu:
where
wti.applet_name = 'APPLET_ADI'
and wti.VIEW_WEB_TMPL_ID = wt.row_id
and wt.view_id = w.row_id;
Parametreye göre job bulan sorgu:
where status = 'ACTIVE'
and action_id in (
select row_id from siebel.S_SRM_ACTION
where row_id in (
select action_id from siebel.S_SRM_ACT_PARAM
where param_value like '%Job_Parametresi (WF Adı vs.)%'
)
);
Hata mesajına göre ruleset ve action set bulma:
e.evt_name AS event, e.evt_sub_name AS sub_event,
e.actn_cond_expr AS conditional_expr, s.NAME AS action_set,
a.NAME AS action, rs.NAME AS rule_set, r.NAME AS RULE, l.msg_text
FROM siebel.S_CT_ACTION_SET s,
siebel.S_CT_ACTION a,
siebel.S_VALDN_RL_SET rs,
siebel.S_VALDN_RULE r,
siebel.S_ISS_VALDN_MSG m,
siebel.S_ISS_VMSG_LANG l,
siebel.S_CT_EVENT e
WHERE a.ct_actn_set_id = s.row_id
AND a.svc_context LIKE
'"Rule Set Name", "' || rs.NAME || '", "Enable Log", "%"'
AND rs.status_cd = 'Active'
AND r.rule_set_id = rs.row_id
AND r.valdn_msg_id = m.row_id
AND l.par_row_id = m.row_id
AND e.ct_actn_set_id = s.row_id
AND l.lang_id = 'ENU' --hata mesajının dili
AND L.MSG_TEXT like '%HATA_MESAJI%'
select * from siebel.S_CT_ACTION_SET acs,siebel.S_CT_ACTION ac
where ac.SVC_CONTEXT like '%WF_ADI%'
and acs.ROW_ID=ac.CT_ACTN_SET_ID;
srm_req.row_id,
srm_act.display_name,
srm_req.status,
srm_req.ACTL_START_DT,
srm_req.ACTL_END_DT
FROM
siebel.s_srm_request srm_req,
siebel.s_srm_action srm_act
WHERE
srm_act.row_id = srm_req.action_id
and srm_req.ACTL_END_DT<=:bitis_tarihi
and srm_req.ACTL_START_DT>=:baslangic_tarihi
and srm_req.ACTL_START_DT is not null
ORDER BY
srm_req.ACTL_START_DT DESC;
u.login AS user_id,
v.name AS view_name,
resp.name AS responsibility
FROM
siebel.s_resp resp,
siebel.s_app_view v,
siebel.s_app_view_resp view_resp,
siebel.S_PER_RESP per_resp,
siebel.S_PARTY p,
siebel.S_USER u
WHERE v.row_id = view_resp.view_id
AND view_resp.resp_id = resp.row_id
AND per_resp.per_id = p.row_id
AND resp.row_id = per_resp.resp_id
AND u.row_id = p.row_id
AND v.name ='view_name'
ORDER BY u.login desc;
select * from DBMAin.db_login_params order by insert_date desc;
insert into DBMAin.db_login_params (username,osuser,ip_address,machine,db,trigger_control,insert_date) values (VALUES);

Yorumlar
Yorum Gönder