create directory some_dir;
grant read, write on directory some_dir to micky_mouse;
create or replace directory dir_temp as 'c:\temp';
declare
f utl_file.file_type;
begin
f := utl_file.fopen('DIR_TEMP', 'something.txt', 'w');
utl_file.put_line(f, 'line one: some text');
utl_file.put_line(f, 'line two: more text');
utl_file.fclose(f);
end;
/
ที่มา: http://www.adp-gmbh.ch/ora/sql/create_directory.html
ようこそ (Jyokoso) MY BLOG
いらっしゃいませ (hajimemashite) สำหรับผู้เข้าใหม่นะค่ะ ^^V
06 มกราคม 2555
EX.สร้าง directory เก็บ path และ การใช้คำสั่ง อ่าน file
04 มกราคม 2555
03 มกราคม 2555
System is locked!!!
กรณีที่ lockon เข้า server ด้วย SYSTEM แล้วปรากฏว่า ขึ้น
Message นี้
System is locked!!!
ให้เข้าด้วย sys
แล้วใช้คำสั่ง
alter
user system account unlock;
26 ธันวาคม 2554
for update nowait--log user update
BEGIN
SELECT CORDER_ID
INTO vn_corder_id2
FROM CORDER_HEAD
WHERE CORDER_ID = vn_corder_id1
FOR UPDATE NOWAIT;
EXCEPTION WHEN No_Data_Found THEN vn_corder_id2 := NULL;
WHEN Others THEN
IF sqlcode = -00054 THEN
is_locked := TRUE;
END IF;
IF is_locked THEN
show_stop_message('This record can''t be updated at this time because it is reserved for an update. If the record isn''t open for another user then this will clear automatically in 10-20 minutes. Please try again later.');
END IF;
END;
SELECT CORDER_ID
INTO vn_corder_id2
FROM CORDER_HEAD
WHERE CORDER_ID = vn_corder_id1
FOR UPDATE NOWAIT;
EXCEPTION WHEN No_Data_Found THEN vn_corder_id2 := NULL;
WHEN Others THEN
IF sqlcode = -00054 THEN
is_locked := TRUE;
END IF;
IF is_locked THEN
show_stop_message('This record can''t be updated at this time because it is reserved for an update. If the record isn''t open for another user then this will clear automatically in 10-20 minutes. Please try again later.');
END IF;
END;
16 ธันวาคม 2554
set สี font pl/sql
set_item_instance_property('RG_LOAD_TEXT_MASTER.REG_SEQ',CURRENT_RECORD,VISUAL_ATTRIBUTE ,'BLUE');
ไว้ที่ post-query
ไว้ที่ post-query
สมัครสมาชิก:
บทความ (Atom)





