UTL_FILE_DIR in 10g [message #167078] |
Tue, 11 April 2006 04:24 |
nirmalnarayan
Messages: 261 Registered: April 2005 Location: India
|
Senior Member |
|
|
Hi,
I tried setting the UTL_FILE_DIR in init.ora file under pfile directory under 10g oracle.
But when trying with the utl_file.fopen it is giving invalid directory path, while checking the value for utl_file_dir in v$parameter it is giving null value.
Any idea how to set it
Thanks and Regards,
nirmal
|
|
|
|
|
|
|
|
Re: UTL_FILE_DIR in 10g [message #167259 is a reply to message #167228] |
Wed, 12 April 2006 03:22 |
JSI2001
Messages: 1016 Registered: March 2005 Location: Scotland
|
Senior Member |
|
|
Quote: | You have to create a pfile from the spfile if u r using Oracle 10g
| No you don't.
Quote: | First shutdown the Database
|
Shutdown 1.
Quote: | Then create a pfile by giving the command
CREATE PFILE='PFILE-NAME' FROM SPFILE='SPFILE-NAME';
| And how do you do that? The database is shut down.
Quote: | Now create the SPFILE from the PFILE by giving the command
|
And how do you do that? The database is shut down.
Quote: | Now startup the Database.
|
This entire method would not work at all. Have you followed your own steps?
If you insist on using this method (which is far more convoluted than is necessary then it would be:
1. Create pfile from spfile.
2. Shutdown the db.
3. Edit the pfile to include the utl_file_dir parameter
4. startup the database to point at the pfile:
startup pfile= pfile loc
5. create spfile from pfile.
6. Shutdown the database
7. startup the database.
Or you could issue
1. alter system set UTL_FILE_DIR = '/tmp' scope=spfile;
2. shutdown immediate
3. startup.
I know which one is the only sensible option.
Jim
|
|
|
|
|
|