問題タブ [utl-file]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1752 参照

plsql - Replacement of fnd_file with utl_file for logging in plsql

My package code contains fnd_file.put_line for logging purpose. I need to replace this with utl_file.put_line what will be the minimum lines of code I should write. there are 100+ occurences of fnd_file.put_line in my code for 14 procedures. Please explain what is the difference between utl_file and fnd_file? and give me the sample code as well.

My question is:

Can you please explain if the code is on server then how to give the directory location. It will include the server details as well. Please clarify with the example.

PS: I can see this package is part of concurrent programming.Is utl_file in scope?

0 投票する
1 に答える
1018 参照

oracle - ファイルから最後の空白行を削除する

ファイルからデータを取得するコードがあります。ファイルには最後の空/空白行が含まれています。たとえば、ファイルに4つのレコードが含まれている場合、5行目が空白の場合、コードが実行されるとロールバックされるため、その空白行を削除するにはどうすればよいですかその空白行が原因でトランザクション全体が終了し、「データが見つかりません」という例外がスローされます。以下は私のコードです:

0 投票する
1 に答える
430 参照

database - Oracle 10g で UTL_FILE を使用してテーブルに挿入された行数を出力するにはどうすればよいですか?

DB にテーブル TEST_TABLE があり、ストアド プロシージャを使用していくつかの値を挿入したいと考えています。SP の完了後に TEST_TABLE に挿入された行数を出力するにはどうすればよいですか??...UTL_FILE パッケージを使用してこれを行い、データ ロードを監視するためにテキスト ファイルを生成したいと考えています。