Personal Oracle 9i utl_file_dir parameter
Need some help please.
I have a problem with utl_file_dir parameter not being set.
utl_file_dir = * in my init.ora file.
Using SQLPlus , I can see the v$parameter for utl_file_dir is null;
I have just gone to 9i Personal v2 from 8i where everything worked ok.(standalone pc)
None of my existing procedures using utl_file will work now. I get
"Invalid directory path" because utl_file_dir is not set up.
My init.ora file is "c:\oracle91\admin\bills\pfile\init.ora.032003152232
which is also confusing.
Thanks for any help you can give.
Thanks for the reply, however,
I renamed my c:\oracle91\database\spfile<oracle-instance>.ora file and rebooted.
I got these messages when I tried a SQLPlus connection.
"Oracle not available" and "Shared memory realm does not exist".
Any other suggestions or method to set this parameter?
Thanks.
Similar Messages
-
UTL_FILE_DIR parameter in Oracle 10g
Hi all,
I've a question regarding UTL_FILE_DIR parameter being deprecated in 10g.
My question, if anyone is doing File I/O based on UTL_FILE_DIR on 10g without problems?
I did a small test on Windows which was successful, but I would still want to make sure there aren't any potential risks related to using this parameter on 10g.
I would appreciate valuable feedback from you all.
The reason for using this parameter instead of directory objects is to avoid changes in our huge code base during migration.
Thanks in advance,
~RajIt isn't.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select name, value, isdeprecated
2 from gv$parameter
3 where name = 'utl_file_dir';
NAME VALUE ISDEP
utl_file_dir FALSE
SQL> That said it is definitely not best practice to use it.
Creating a DIRECTORY object is far more secure and far more maintainable. -
Setting the utl_file_dir parameter in 10g
I want to set the 'utl_file_dir' parameter. From the internet I found that I can do it from OEM (the web-based one) by choose 'All initialisation Parameters...SPFile Tab...' (Refer to http://otn.oracle.com/obe/obe10gdb/bidw/blast/blast.htm#t0c).
However will this be temporary until the instance restarts? Also, will the change take effect after the restart of instance?There is another way you can specifiy the utl_file_dir in 10g without bouncing...
Specify the UTL_FILE_DIR in 10g :-
Two way you can specify the UTL_FILE_DIR:-
a) Using Spfile (Database Bouncing is require)
b) Using DIRECTORY (Database Bouncing is not required)
a) Using Spfile (Database Bouncing is require)
i) Login as sys user:-
SQL> conn sys@oratest as sysdba
Enter password:
Connected.
SQL>
SQL> show parameters utl
NAME TYPE VALUE
utl_file_dir string
SQL>
SQL>
SQL>
SQL> alter system set utl_file_dir='/u01/preproc/output', '/u01/app/oracle/admin/ARGOS/output' scope=SPFILE;
System altered.
SQL> show parameters utl
NAME TYPE VALUE
utl_file_dir string
SQL>
SQL> SHUTDOWN IMMEDIATE
ORACLE instance shut down.
SQL>
SQL> STARTUP
ORACLE instance started.
Total System Global Area 160504432 bytes
Fixed Size 453232 bytes
Variable Size 134217728 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
Database mounted.
Database opened.
SQL>
SQL> show parameters utl
NAME TYPE VALUE
utl_file_dir string '/u01/preproc/output', '/u01/app/oracle/admin/ARGOS/output'
SQL>
b) Using DIRECTORY (Database Bouncing is not required)
SQL> connect system/xxxx@oratest
SQL> SELECT d.owner, t.privilege, d.directory_name
FROM user_tab_privs t, all_directories d
WHERE t.table_name(+)=d.directory_name
ORDER BY 1,3,2
OWNER PRIVILEGE DIRECTORY_NAME
SYS ADMIN_DIR
SYS READ DATA_FILE_DIR
SYS WRITE DATA_FILE_DIR
SYS READ DATA_PUMP_DIR
SYS WRITE DATA_PUMP_DIR
SYS READ LOG_FILE_DIR
SYS WRITE LOG_FILE_DIR
SYS MEDIA_DIR
SYS READ MY_DIR
SYS WRITE MY_DIR
SYS READ MY_DIR_LOG
SYS WRITE MY_DIR_LOG
SYS SUBDIR
SYS WORK_DIR
SYS XMLDIR
Here, OWNER sys has read,write permission to above DIRECTORY_NAME.
i. Create a directory for UTL_FILE_DIR FOR PL/SQL package outputs.
$ mkdir -p /u01/preproc/output
$ chown -R oracle:oinstall /u01/preproc/output
$ chmod -R 755 /u01/preproc/output
SQL> connect system/xxxx@oratest
SQL> CREATE OR REPLACE DIRECTORY UTL_FILE_DIR as '/u01/preproc/output';
Directory created.
GRANT 'read,write' ACCESS to the Specific User.
SQL> GRANT read,write ON DIRECTORY UTL_FILE_DIR to PREPROC;
Grant succeeded.
SQL> GRANT read,write ON DIRECTORY UTL_FILE_DIR to JOB_TICKET_SCHEMA;
Grant succeeded.
SQL> GRANT read,write ON DIRECTORY UTL_FILE_DIR to DISE;
Grant succeeded.
SQL> GRANT read,write ON DIRECTORY UTL_FILE_DIR to PLAYPEN
Grant succeeded.
REVOKE 'read,write' ACCESS from the Specific User.
SQL> REVOKE read,write ON DIRECTORY UTL_FILE_DIR from PLAYPEN;
Revoke succeeded. -
Logmining without utl_file_dir parameter.
Dear All,
I want to know if it is possible to mining a data without utl_file_dir in oracle. I am using oracle 11g RAC. Because in production system it is not possible to down to set utl_file_dir parameter.It isn't.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select name, value, isdeprecated
2 from gv$parameter
3 where name = 'utl_file_dir';
NAME VALUE ISDEP
utl_file_dir FALSE
SQL> That said it is definitely not best practice to use it.
Creating a DIRECTORY object is far more secure and far more maintainable. -
Connecting graph from personal oracle
while trying to connect graph builder from
personal oracle 8.0 , following error do
come
PDE-PER-001 INTERNAL ERROR , null password given , logon denied.
missing mandatory parameter.
while running graphs from report - following
error come
Error occur while runing the called developer
component --- unable to create pl/sql developer environment contentYou mean that once I have my Oracle8i Enterprise Edition Release 8.1.6.1.0 server up I will have to use the EXP Export utility of 8.1.6.1.0 to export the database from the Personal Oracle Version 8.1.7.0.0
-
Difficulties connecting with oci8 to Personal Oracle 8 on Win98
After looking through responses to other similar difficulties posted, I still can't seem to get this working.
I have Personal Oracle 8 running on Win98 on a laptop. I'm using Sun jdk117 and trying to connect with oci8 because the thin driver won't work without a TCP/IP listener which I understand Personal Oracle doesn't support.
There's an entry in my PATH pointing to c:\jdbc where the oci805jdbc.dll file is, and an entry in CLASSPATH pointing to c:\jdbc\classes111.zip .
To start with I'm using a simple connect program which shouldn't do much more than make a connection and close it again (please see below).
The program compiles fine, but when I run it all I get is:
C:\apache\jserv11b3\servlets>java connect2
in main()
connect instantiated
in tryconnect()
going to attempt connect
java.lang.UnsatisfiedLinkError: no oci805jdbc in shared library path
at java.lang.Runtime.loadLibrary(Compiled Code)
at java.lang.System.loadLibrary(System.java:561)
at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:186)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:127)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:170)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java:126)
at connect2.tryconnect(connect2.java:19)
at connect2.main(connect2.java:42)
C:\apache\jserv11b3\servlets>
I can't see any reason why there should be problems linking oci805jdbc.dll as PATH definitely has an entry pointing to the directory where it is located.
Doubtless I'm doing something silly, or I'm missing some essential configuration parameter.
Thanks for any helpful suggestions.
program code:
import java.sql.*;
class connect2
public int tryconnect()
throws ClassNotFoundException , SQLException
System.out.println("in tryconnect()");
/* Load the Oracle Driver */
Class.forName ("oracle.jdbc.driver.OracleDriver");
System.out.println ("going to attempt connect");
try
/* get the connection */
Connection conn =
DriverManager.getConnection("jdbc racle ci8:@laptop:1521:ORCL", "system", "manager");
catch (SQLException e)
System.out.println ("Database Connect Failed");
System.out.println (e.getMessage());
return (1) ;
return (0);
public static void main(String argv[])
throws ClassNotFoundException , SQLException
System.out.println ("in main()");
/* Create the instance */
connect2 c = new connect2();
System.out.println ("connect instantiated");
/* Call the tryconnect. Returns 0 if success , 1 if failed */
int Csuccess = c.tryconnect();
if (Csuccess == 0 )
System.out.println("Successfully Connected");
nullThanks for your kind response.
I'll have a look through the docs and see if I can find out how to get the TCP/IP listener running with Personal Oracle.
I've been trying to use oci805jdbc.dll from the jdbc80520-nt.zip download file.
Since the original post I've been trying to get the connection working with the Sun JDBC-ODBC bridge, but all I get is:
C:\apache\jserv11b3\servlets>java connect2
in main()
connect instantiated
in tryconnect()
going to attempt connect
Database Connect Failed
[Microsoft][ODBC Driver Manager] Data source name not found and no default drive
r specified
The java code is identical apart from:
Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
and
Connection conn =
DriverManager.getConnection("jdbc dbc:LAPTOP;database=ORCL", "system", "manager");
The relevant entry in tnsnames.ora is:
LAPTOP.WORLD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = BEQ)(PROGRAM = oracle80)(ARGV0 = oracle80ORCL)(ARGS = '(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=BEQ)))'))
(CONNECT_DATA =
(SID = ORCL)
Many thanks for any help. -
Creating a database on Personal Oracle 9i on Windows 2000
Hi,
Well, I cannot create database on Personal Oracle 9i on Windows 2000 via Database Configuration Assistant. Same problem occurs during installation. Here is the message:
CreateProcess: null -new -sid DES -startmode m error=2
Does anyone know anything about it?
Please reply...
Thank you...Apply the lastest patch to the OS and try.
Joel Perez -
Installation Problem Personal Oracle 8.0.4 on Windows 2000
When trying to install Personal Oracle 8.0.4 on a Windows 2000 machine, i get an Error:
"Unable to delete the NT Service for the SQL *Net V2 Listener".
No previous installation of Personal Oracle is present on this machine as it's a newly installed OS.
Any Help would be appreciatedI tried installing Oracle 8i Personal Edition in Windows 2000. The installer loads and it start installing the files, except when it goes half way through the installation, it quits. I don't know if this is a bug in 8i Personal Edition or not. Because I am unable to install the software on my machine.
-
How to Download Personal Oracle
After trying several times to download Personal Oracle 9i, I perused this discussion group seeking a solution to a problem that I was having and finding that others were encountering the same problem.
Perhaps you have encounted a difficulty in unzipping the Personal Oracle downloads... I and others have reported the fact that there are mutltiple CRC errors in the downloaded file when you try to unzip it.
Well, after analysing the problem I have found a solution and surprise surprise it is marketedly similar to a problem I discovered with Oracle over 3 years ago... a problem which their tech support insisted had to do with the tuning of my companies server... well now I am not so sure that the problem is not inherant within Oracles handling of LOB's on the web. But instead of arguing an old point... let me detail for our users HOW TO DOWNLOAD AND INSTALL there ORacle products.
Step by step:
1. Download the product
2. Download a second copy of the product and save it with a slightly different name
3. Unzip both copies with Winzip 8 or better. You must unzip them into seperate directories. Save the unzip log which tells you which files contained CRC errors.
4. Examine both logs and choose the version that contained the fewest CRC errors.
HERE IS THE SECRET... as in the problem my old employer discovered years ago... the errors occur randomly in LOB downloads... therefore the chance of the same file being corrupt in both downloads is very low.
5. The log will tell you which directory is being extracted and which file was corrupt... search the log for the string CRC in Wordpad... then find the missing file in the alternate tree and copy it to the working copy.
6. Repeat for each corrupt file.
7. when completed you can install the product from your working directory.
Its not pretty... but it works.
After searching for work for the last two months I thought it would be a good idea to refresh my skills with the latest version of Oracle... thank you Oracle for forcing me to use my skills to analyse your problems and develop a wotkaround... I now appreciate Postgres even more... I just wish there were employers who recognised that open source software is better supported than commercial products.
Anyone have a job lead in Denver for a developer with 20 years experiance?Hello...
Simply amazing what it takes to download the 9i.
In fact I am still trying out your tip, and have had to work on 3 different ZIP sets so far!!
Still have one or two files that refuse to download right! (Especially the big ones).
I hope I get closer and closer to the final good set of install files soon!
Anyway, from what you say, it sounds like Oracle employs certain airheads... -
hi,how can i resolve this problem?
i use personal oracle with a tcp/ip connection and if i run a
report(developed with report builder oracle) i receive a
compiler error .if i run this same form on the server,the form
has no problem.
the only different is a client's call with tns (the listner is
start up)
thank and sorry for my bad englishHi, how are you?
I read your file. On my computer, I got the same problem. First I installed Personal Oracle 8.15 version under window 98. The oracle home is e:\orale\ora81. Then I installed Form 8i in the orale home e:\oracle\ora. After installation, there are two SQLPLUS. One is under ora81 and another is ora. The one which is in e:\oracle\ora81 is working and it can bring up the database. Another one and Forms don't work. They can not connect to the local database. It means my client which is under e:\oracle\ora can't connect to my server which is under e:\oracle\ora81. I think I shoud set up the connection in tnsnames.ora by using Net8 Easy Config. I did it. It failed. Can you help me?
Thanks.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by harry dhillon ([email protected]):
No, you shouldn't have to to.
If you have Personal Oraacle 8 running properly on your PC, then you can just connect to the database from Developer V6 using your normal username/password. For example, if you log on to SQLPLUS as scott/tiger, then the same will work for your forms and reports. You don't even need to enter a connect string. I have it working OK on a Windows '98 PC, with Personal Oracle 8i, and Forms v6i.<HR></BLOCKQUOTE>
null -
Personal Oracle 8.1.6 on Win 98
I tried to install persaonal Oracle 8.1.6 on Win 98 and when I start the Oracle using svrmgrl I got the following error
Cannot open registry
software\oracle\homeo\SID_LIST
starting with default sid
Then it asks for password. I tried all passwords and finally got error
ORA-01031 - Cannot logon to Oracle 8i
I have used UNIX. What is the equivalent of ORACLE_SID and ORACLE_HOME of UNIX in WIN 98. Where all sid's of all startup and shutdown databases are stored.
Any body knows.
nullThere is NO need to have to installations of PO8 on single machine,you can create two or more instances of databases.
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Sunil:
Is it possible to have two Databases on a single instllation of personal oracle 8.1.6 on win 98.
If not, is it possible to install personal oracle 8.1.6 two times on the same win 98 PC, on diffrent dir/oracle home and use both at the same time.<HR></BLOCKQUOTE>
null -
Personal Oracle 8.1.5, Installation Problem
I installed Personal Oracle (Windows NT)8.1.5 and
I installed Oracle Client 8.1.6
Personal Oracle (main database: ZEUS) works fine! only if I am at network.
As soon as I undock my laptop, personal Oracle does not allow me to get connection through sqlplus.
I checked listeners:
File:D:\Oracle\Ora81\NETWORK\ADMIN\listener.ora
ZEUS =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = sashb)(PORT = 1521))
(PROTOCOL_STACK =
(PRESENTATION = TTC)
(SESSION = NS)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(PROTOCOL_STACK =
(PRESENTATION = TTC)
(SESSION = NS)
seems they are fine. sql.ora - looks like fine as well!
File: D:\Oracle\Ora81\NETWORK\ADMIN\sqlnet.ora
SQLNET.CLIENT_REGISTRATION = sashb
NAMES.PREFERRED_SERVERS =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = sashb)(PORT = 1521))
configuration file ... find!
Configuration File:D:\Oracle\Ora81\NETWORK\ADMIN\tnsnames.ora
ZEUS.LAN.MIL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = SASHB)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ZEUS)
EXTPROC_CONNECTION_DATA.LAN.MIL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
The question is very simple, why the personal Oracle works inside network, and it does not work if I undock my system?
If I need to make any changes, what changes must be done?
It is window NT, Service pack 5.
Personal Oracle installed with default settings at D: drive, with default directory settings.
PS.
I tryed to shutdown database, listeners, and startup listeners, and after this database--did not help. I check registry... seems fine.
What is missed?
Thank you very much.
Alexandernewbie (guest) wrote:
: Hi, All
: I tried to install oracle 8.1.5 on RH6.0,
: and I download the patch for enlightment,
: the installation works well until CREATE DATABASE.
: I got the error message "ORA-01012 not logged on".
: Does anybody know what's the problem?
: Thanks,
Hi,
try to
export NLS_LANG=american
In my case it helped. I described the strange behaviour of
svrmgrl in detail in another post.
Greetings
Rolf
null -
How to install Developer 6.0 Personal Oracle
When I install personal Oracle 8 (trial)on my pc (Windows NT 4 sp4)I don't have problem and it work well. The problem is when I install developer 6.0,(in a different folder) I can't log on any applications any more.
Thank for your help
Patrice (Quebec)
[email protected]IF you do not use that "miserable" Personal Oracle 8.04, but using the far much better Personal Oracle 8.1.5 you can mail me at [email protected]
HTH
Martin -
JDBC Driver for Personal Oracle 7.0
I have Personal Oracle 7.0 setup on my PC. I need to install JDBC driver for it. Where Can I get it? Thanks.
www.oracle.com
-
Problem in installing Personal Oracle 8 and develper 6i on win me
I install personal oracle 8 on my home computer . First time it
install perfectly . After restart my computer i start database,
It mounts and then i use sql + to connect and make some queries.
all is working perfectly ..
Then after i install develper 6i forms on my computer it intall
completely with no errors. After restart my computer i install
develper 6i reports on my computer which is hardly half install
then make some errors .,. which is about a file "msvcrt32.dll".
After that error i mount database which is also make errors
like ....." The ORACLE80.exe file os linked to missing export
NZ*).dll:nztpvec" ORA-12203 CANNOT ATTACH TO ORACLE 8 .
Well i m using Windows ME. and i dont want to reformet and
reinstallation of all other softwares on my computer.
Well if anybudy know what is that error and how to solve it .
Please let me know , i will ever thankfull to them
Well i know my softwares is perfect. there is no errors in CDS
and software.
AnwerI dont think Oracle 8.1.7 works on Windows XP.
Maybe you are looking for
-
Can I Exchange My MW600 For A Different Colour?
Hi, I bought my MW600 less than 3 weeks ago in Singapore. At the point of sale, I asked the salesperson if a WHITE version is available, and he said that NO it is not. I then bought the Black version as I was eager to try out a Sony Ericsson Bluetoot
-
Im trying to connect my iPod to my computer.
I already tried the support page. I uninstalled fully iTunes which resolved the issue but it came back and I dont want to re-uninstall everything. What can I do? +it is detected by my computer
-
Sky HD boxes or a load of rubbish
I have been with sky over 20 years and in the past few years I have been really disappointed were do I start well the first time I had the HD box for about 3 months I had the box replaced more then 3 time's and now 2 years on I kept getting messages
-
How do I sync with my PC so that the folders become albums - they are all going into My Pictures.
-
I'm posting this here because there's probably some newbie mistake that I'm making but I don't know what it is. For those who don't know ser2net lets you connect a serial cable to a device and then other computers on your network can access that dev