Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how can i read files from a pl/sq l program

Answers were Sorted based on User's Feedback



how can i read files from a pl/sq l program..

Answer / mahesh

by using utl_file (built-in package)

Is This Answer Correct ?    5 Yes 0 No

how can i read files from a pl/sq l program..

Answer / guru

__________________________________________________________
DECLARE
fileHandler UTL_FILE.FILE_TYPE;
BEGIN
fileHandler := UTL_FILE.FOPEN('/tmp', 'myfile', 'R');
UTL_FILE.PUTF(fileHandler, 'Look ma, I''m writing to a
file!!!\n');
UTL_FILE.FCLOSE(fileHandler);
EXCEPTION
WHEN utl_file.invalid_path THEN
raise_application_error(-20000, 'ERROR: Invalid path
for file or path not in INIT.ORA.');
END;
/
________________________________________________________



Thanks

Is This Answer Correct ?    3 Yes 0 No

how can i read files from a pl/sq l program..

Answer / swayamji

SELECT TEXT FROM USER_SOURCE WHERE NAME LIKE '<SUB PROGRAM
NAME>'

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More SQL PLSQL Interview Questions

What is intersect?

1 Answers  


Can we connect to postgresql using sql developer?

0 Answers  


declare l1 number := null; l2 number :=null; begin if l1=l2 then message('equal'); else if l1<>l2 then message('not equal'); else message('else'); end if; end if; end; What will be the output ?

7 Answers   Oracle,


what is a trigger in mysql? Define different types of trigger. : Sql dba

0 Answers  


What is sqlservr exe?

0 Answers  


Can there be more than one function with a similar name in a pl/sql block?

0 Answers  


What is cost in sql execution plan?

0 Answers  


What are the types of operators available in sql?

0 Answers  


difference between pl/sql table and normal pl/sql table

2 Answers  


Can we write create command in the plsql block?if possible how?

2 Answers  


Are sql views compiled?

1 Answers  


What is an index in sql with example?

0 Answers  


Categories