03 2024 档案

摘要:当数据库的连接数达到上限后,后续的登陆操作都会报ORA-00020错误,这里给出ORA-00020错误的模拟及处理方法。1.调整数据库的processes参数到251)由于processes参数是静态参数,调整时需要使用“scope=spfile”选项进行调整。sys@ora11g> alter s 阅读全文
posted @ 2024-03-29 14:02 Iven_lin 阅读(550) 评论(0) 推荐(0) 编辑
摘要:若想顺利的使用闪回数据库功能,需要先将数据库置于闪回数据库状态。此文记录开启闪回数据库功能的步骤,注意调整过程需要重启数据库并确保数据库处于归档模式。1.确认数据库是否开启Flashback Database功能若未开启,则继续,若已经开启,请从此小文儿飘过~~SYS@ora11g> select 阅读全文
posted @ 2024-03-29 13:59 Iven_lin 阅读(122) 评论(0) 推荐(0) 编辑
摘要:Flashback Database闪回数据库功能极大地降低了由于用户错误导致的数据丢失的恢复成本。这是一种以空间换取缩短恢复时间的解决方案,这是值得的。这里给出闪回数据库的使用方法,体验一下这种恢复操作的便利性。1.使用Flashback Database的前提条件1)启用了flashback d 阅读全文
posted @ 2024-03-28 14:53 Iven_lin 阅读(159) 评论(0) 推荐(0) 编辑
摘要:Oracle的Flashback Drop闪回删除功能给出我们一种误DROP删除表的便捷恢复方式,实现这种功能的原理是Oracle的“回收站”(RecycleBin)功能。注意,如果被删除的表原先是存放在SYSTEM系统表空间上,则不支持此功能。1.Flashback Drop功能 恢复被错误dro 阅读全文
posted @ 2024-03-28 12:17 Iven_lin 阅读(39) 评论(0) 推荐(0) 编辑
摘要:通过以下实验,来验证Bitmap位图索引较之普通的B-Tree索引锁的“高昂代价”。位图索引会带来“位图段级锁”,实际使用过程一定要充分了解不同索引带来的锁代价情况。1.为比较区别,创建两种索引类型的测试表1)在表t_bitmap上创建位图索引SEC@ora11g> create table t_b 阅读全文
posted @ 2024-03-28 11:38 Iven_lin 阅读(30) 评论(0) 推荐(0) 编辑
摘要:存储过程头 create or replace package p_view_param_test is --参数一 function set_baseid(val varchar2) return varchar2; function get_baseid return varchar2; --参 阅读全文
posted @ 2024-03-20 09:21 Iven_lin 阅读(301) 评论(0) 推荐(0) 编辑
摘要:--核销 SELECT hou.NAME org_name, rct.trx_number, rct.trx_date, hca.account_number customer, hpt.party_name customer_name, 'ARD' source_table, ard.line_i 阅读全文
posted @ 2024-03-20 09:02 Iven_lin 阅读(29) 评论(0) 推荐(0) 编辑
摘要:DECLARE l_rowid ROWID; cursor cur is select pvs.SEGMENT1 vendor_code, pvs.VENDOR_NAME from po_vendors pvs where not exists (select 1 from fnd_lookup_v 阅读全文
posted @ 2024-03-20 09:00 Iven_lin 阅读(42) 评论(0) 推荐(0) 编辑
摘要:select fpg.applications_system_name, fpg.release_name, fpg.aru_release_name from fnd_product_groups fpg; 阅读全文
posted @ 2024-03-20 08:58 Iven_lin 阅读(21) 评论(0) 推荐(0) 编辑
摘要:select u.user_name, app.application_short_name, fat.application_name, fr.responsibility_key, frt.responsibility_name, fff.function_name, fft.user_func 阅读全文
posted @ 2024-03-20 08:54 Iven_lin 阅读(42) 评论(0) 推荐(0) 编辑
摘要:模块: WIP 相关表:inv.mtl_material_transactions 物料事务处理表 (transaction_source_id 与 we.wip_entity_id 连接) inv.mtl_transaction_lot_numbers 物料事务处理批次号表(transaction 阅读全文
posted @ 2024-03-20 08:47 Iven_lin 阅读(157) 评论(0) 推荐(0) 编辑
摘要:EBS 统计特定开头的请求 select t.user_concurrent_program_name, b.concurrent_program_name from fnd_concurrent_programs_tl t, fnd_concurrent_programs b where b.ap 阅读全文
posted @ 2024-03-20 08:45 Iven_lin 阅读(7) 评论(0) 推荐(0) 编辑
摘要:select username usuario_oracle, count(username) numero_sesiones from gv$session group by username order by numero_sesiones desc; 阅读全文
posted @ 2024-03-20 08:35 Iven_lin 阅读(25) 评论(0) 推荐(0) 编辑
摘要:create or replace function IS_INTEGER(VAR_VALUE IN VARCHAR) return NUMBER is Result NUMBER;begin Result := TO_NUMBER(VAR_VALUE); return Result;EXCEPTI 阅读全文
posted @ 2024-03-19 14:40 Iven_lin 阅读(22) 评论(0) 推荐(0) 编辑
摘要:--性能最差的SQL SELECT * FROM ( SELECT PARSING_USER_ID EXECUTIONS,SORTS,COMMAND_TYPE,DISK_READS,sql_text FROM v$sqlarea ORDER BY disk_reads DESC) WHERE ROW 阅读全文
posted @ 2024-03-19 14:35 Iven_lin 阅读(6) 评论(0) 推荐(0) 编辑
摘要:declare jobname number; begin dbms_job.submit(jobname ,存储过程名称;',trunc(sysdate)+12/24+05/24/60+01/24/60/60,'sysdate+5/24/60'); commit; end; 注释:trunc(sy 阅读全文
posted @ 2024-03-19 14:32 Iven_lin 阅读(96) 评论(0) 推荐(0) 编辑
摘要:declarebegin <<outer>> for i in reverse 1 .. 3 loop <<inner>> for i in 4 .. 6 loop dbms_output.put_line('outer' || outer.i); dbms_output.put_line('inn 阅读全文
posted @ 2024-03-19 14:13 Iven_lin 阅读(27) 评论(0) 推荐(0) 编辑
摘要:select t1.table_name, t1.column_name, t1.nullable, t1.data_type || '(' || t1.data_length || ')', t2.comments from all_tab_cols t1, all_col_comments t2 阅读全文
posted @ 2024-03-19 14:04 Iven_lin 阅读(9) 评论(0) 推荐(0) 编辑
摘要:-- EBS 修改EBS账号密码 DECLARE l_success boolean; BEGIN l_success := FND_USER_PKG.ChangePassword('OPERATIONS', 'welcome123'); IF l_success THEN DBMS_OUTPUT. 阅读全文
posted @ 2024-03-19 13:46 Iven_lin 阅读(80) 评论(0) 推荐(0) 编辑
摘要:CREATE OR REPLACE FUNCTION cux_trans_source(p_trans_id NUMBER) RETURN VARCHAR2 IS ln_type_id NUMBER; ln_source_line_id NUMBER; ln_trx_source_line_id N 阅读全文
posted @ 2024-03-19 11:53 Iven_lin 阅读(10) 评论(0) 推荐(0) 编辑
摘要:inv_quantity_tree_pub.query_quantities(p_api_version_number => 1.0, x_return_status => l_return_status, x_msg_count => l_msg_count, x_msg_data => l_ms 阅读全文
posted @ 2024-03-19 09:35 Iven_lin 阅读(100) 评论(0) 推荐(0) 编辑
摘要:SELECT * FROM xle_entity_profiles; 阅读全文
posted @ 2024-03-19 09:33 Iven_lin 阅读(10) 评论(0) 推荐(0) 编辑
摘要:WSH_NEW_DELIVERY_ACTIONS.Confirm_Delivery(p_del_rows => l_delivery_id_tab, p_action_flag => l_action_flag, p_intransit_flag => l_intransit_flag, p_clo 阅读全文
posted @ 2024-03-19 09:32 Iven_lin 阅读(12) 评论(0) 推荐(0) 编辑
摘要:--lv_msg_count : 为api返回参数,为消息的个数。 --根据消息的具体情况,循环次数要做相应调整。加大次数,消息内容就多,反之则少.if lv_msg_count > 0 then lv_mesg := chr(10) || substr(fnd_msg_pub.get(fnd_ms 阅读全文
posted @ 2024-03-19 09:29 Iven_lin 阅读(11) 评论(0) 推荐(0) 编辑
摘要:create or replace procedure get_inv_quantity(p_organization_id in number, p_inventory_item_id in number, p_lot_number in varchar2, p_subinventory_code 阅读全文
posted @ 2024-03-19 09:24 Iven_lin 阅读(35) 评论(0) 推荐(0) 编辑
摘要:--erp系统里的bom展开函数: declare l_grp_id number; l_session_id number; l_org_id number; l_levels_to_explode number := 10; l_module number default 2; -- bom = 阅读全文
posted @ 2024-03-19 09:21 Iven_lin 阅读(13) 评论(0) 推荐(0) 编辑
摘要:1.根据科目取得或创建CCID. fnd_flex_ext.get_segs('SQLGL', 'GL#', gcc.chart_of_accounts_id, gcc.code_combination_id); fnd_flex_ext.get_ccid(application_short_nam 阅读全文
posted @ 2024-03-19 09:18 Iven_lin 阅读(14) 评论(0) 推荐(0) 编辑
摘要:DECLARE l_last_scheduled_close_date DATE; l_le_sysdate DATE; &mdash; l_prior_period_open BOOLEAN; l_new_acct_period_id NUMBER; l_duplicate_open_period 阅读全文
posted @ 2024-03-19 09:15 Iven_lin 阅读(8) 评论(0) 推荐(0) 编辑
摘要:--BOM_EXPLOSION_temp是一个临时表,在展BOM的时候,是一个很有用的表,存放了组成料件层次。默认时是没有记录的,加入下列的语句: DECLARE l_group_id NUMBER; l_error_message VARCHAR2(1000); l_error_code NUMB 阅读全文
posted @ 2024-03-19 09:10 Iven_lin 阅读(44) 评论(0) 推荐(0) 编辑
摘要:--组织表select * from hr_organization_units_v--AR 事物处理安全性限制begin mo_global.set_policy_context('S', '82');end; -- 备份事物处理create table bak.RA_CUSTOMER_TRX_A 阅读全文
posted @ 2024-03-19 09:05 Iven_lin 阅读(13) 评论(0) 推荐(0) 编辑
摘要:库存模块select oap.status 关闭状态, oap.period_name 所属期间, oap.organization_id 组织id, (select name from hr_organization_units x where x.organization_id = oap.or 阅读全文
posted @ 2024-03-19 09:03 Iven_lin 阅读(5) 评论(0) 推荐(0) 编辑
摘要:问题起源 我们在数据库中存储了利率等信息是小于1的查询出结果后直接转换为字符串,这时候就有问题了比如0.5取出来后变成.5 这时候放到前端显得不伦不类。 解决 to_char 修改数字的格式, 常用的集中情况如下: SELECT 1, TO_CHAR(.08, 'fm999999999990.00' 阅读全文
posted @ 2024-03-18 22:13 Iven_lin 阅读(171) 评论(0) 推荐(0) 编辑
摘要:select * from po_document_types_all_tl 阅读全文
posted @ 2024-03-18 22:10 Iven_lin 阅读(15) 评论(0) 推荐(0) 编辑
摘要:select appl.product_code 应用, appl.application_short_name 应用简称, gld.name 帐套, gps.period_name 期间, gps.closing_status 期间状态 --期间状态:'N' => 从未打开,'F' => 将来可输 阅读全文
posted @ 2024-03-18 22:09 Iven_lin 阅读(48) 评论(0) 推荐(0) 编辑
摘要:select * from po_lookup_codes polc where polc.lookup_type = 'AUTHORIZATION STATUS'; 阅读全文
posted @ 2024-03-18 22:05 Iven_lin 阅读(30) 评论(0) 推荐(0) 编辑
摘要:--DEMO --存储过程实现流水号 create or replace procedure cux_get_serial_number(p_model_name in varchar2, --模块 参数1 p_start_no in varchar2, --前缀 参数2 p_length in n 阅读全文
posted @ 2024-03-18 22:02 Iven_lin 阅读(66) 评论(0) 推荐(0) 编辑
摘要:解决方法:把一揽子采购协议或者PO的状态改成暂挂,重新审批 阅读全文
posted @ 2024-03-18 21:59 Iven_lin 阅读(32) 评论(0) 推荐(0) 编辑
摘要:接收入库的种类接收入库可以按照数据来源分为2种: 1. 对于po订单以及发放的接收入库; 2. 对于内部请购单生成的sales order(后面的部分简称so)的接收入库; 接收入库还可以按照入库方式分为3种: 1. 直接入库:接收后自动入库; 2. 标准入库:先接收,后入库,分两个步骤; 3. 需 阅读全文
posted @ 2024-03-18 21:43 Iven_lin 阅读(158) 评论(0) 推荐(0) 编辑
摘要:--插入时不产生日志, --alter table cux_mtl_material_vmi2024038 nologging; --记录时间 --set timing on; declare cursor cur is select mmt.organization_id, mmt.subinve 阅读全文
posted @ 2024-03-18 21:39 Iven_lin 阅读(41) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示