Oracle 9i UTL_FILE.FOPEN throwing READ_ERROR
Hi
while running the package containg UTL_FILE.FOPEN
I am getting an error for reading the file on this statement :
v_file_handler := UTL_FILE.FOPEN(i_directory_path,i_file_name,'R');This happens in UNIX ,LINUX and windows NT server .
kindly suggest , whether this is an OS error (technical problem) or something else .
thanx in advance ,
Ashutosh .
Hi
the UTL_FILE.FOPEN only opens an existing flat file on your OS , the UTL_FILE.GET_LINE reads from the file.
many reasons to generate a read error .
the file can be corrupted, the file doesn't exists or you havent configured the UTL_FIL_DIR parameter in the init.ora file which should be on the machine where the database is.
make sure you have the correct file name and the parameter is set.
also try to handle the exception.
WHEN UTL_FILE.READ_ERROR THEN
RAISE_APPLICATION_ERROR (-20204, SQLCODE || ' ' || SQLERRM);
UTL_FILE.FCLOSE(v_filehandle);
like this you can get the exact error code and message.
Regards
Tony G.
Similar Messages
-
PL/SQL package using utl_file.fopen gets invalid_path error
The init.ora file has utl_file_dir = * in it. When writing a package trying to utilize the utl_file.fopen the invalid_path error always occurs. What is the fix to resolve the path error?
create or replace package body TEST_UTL_FILE is
-- Purpose : Sample package that uses UTL_FILE procedure(s)
-- ===========================================================================================================
-- Process Request
-- ===========================================================================================================
procedure Process_Request is
-- Local Variable(s)
v_file_id sys.UTL_FILE.FILE_TYPE;
v_buffer varchar2(32767);
begin
v_file_id := sys.utl_file.FOPEN('D:\Oracle\XMLFiles',
'Sample1.xml',
'R');
sys.utl_file.GET_LINE(v_file_id, v_buffer);
return;
exception
-- Error number -29280
WHEN UTL_FILE.INVALID_PATH THEN
RAISE_APPLICATION_ERROR(-20001, 'invalid_path');
-- Error number -29281
WHEN UTL_FILE.INVALID_MODE THEN
RAISE_APPLICATION_ERROR(-20001, 'invalid_mode');
-- Error number -29282
WHEN UTL_FILE.INVALID_FILEHANDLE THEN
RAISE_APPLICATION_ERROR(-20001, 'invalid_filehandle');
-- Error number -29283
WHEN UTL_FILE.INVALID_OPERATION THEN
RAISE_APPLICATION_ERROR(-20001, 'invalid_operation');
-- Error number -29284
WHEN UTL_FILE.READ_ERROR THEN
RAISE_APPLICATION_ERROR(-20001, 'read_error');
-- Error number -29285
WHEN UTL_FILE.WRITE_ERROR THEN
RAISE_APPLICATION_ERROR(-20001, 'write_error');
-- Error number -29286
WHEN UTL_FILE.INTERNAL_ERROR THEN
RAISE_APPLICATION_ERROR(-20001, 'internal_error');
-- Error number -29287
WHEN UTL_FILE.invalid_maxlinesize THEN
RAISE_APPLICATION_ERROR(-20001, 'invalid_maxlinesize');
-- Error number -29288
WHEN UTL_FILE.invalid_filename THEN
RAISE_APPLICATION_ERROR(-20001, 'invalid_filename');
-- Error number -29289
WHEN UTL_FILE.access_denied THEN
RAISE_APPLICATION_ERROR(-20001, 'access_denied');
-- Error number -29290
WHEN UTL_FILE.invalid_offset THEN
RAISE_APPLICATION_ERROR(-20001, 'invalid_offset');
-- Error number -29291
WHEN UTL_FILE.delete_failed THEN
RAISE_APPLICATION_ERROR(-20001, 'delete_failed');
-- Error number -29292
WHEN UTL_FILE.rename_failed THEN
RAISE_APPLICATION_ERROR(-20001, 'rename_failed');
-- Error number unknown
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20001, 'other_error');
end Process_Request;
end TEST_UTL_FILE;
Errors:
ORA-20001: invalid_path
ORA-06512: at "SYS.TEST_UTL_FILE", line 21
ORA-06512: at line 3 -
Invalid_path exception while using UTL_FILE.FOPEN
Hi
I am getting invalid_path exception while using the UTL_FILE.fopen subprogram. I tried finding out the reason but could not solve it. Please help.
Below is my piece of code.
create directory utldr as 'e:\utldir';
declare
f utl_file.file_type;
s varchar2(200);
begin
dbms_output.put_line('1');
f := utl_file.fopen('UTLDR','utlfil.txt','r');
dbms_output.put_line('2');
utl_file.get_line(f,s);
dbms_output.put_line('3');
utl_file.fclose(f);
dbms_output.put_line('4');
dbms_output.put_line(s);
exception
when utl_file.invalid_path then
dbms_output.put_line('invalid_path');
end;
the result is:
1
invalid_pathI am executing it from sys. The same user who created the directory.
The output is as below:
SELECT * FROM dba_directories
OWNER DIRECTORY_NAME DIRECTORY_PATH
SYS MEDIA_DIR d:\avale\rel4\demo\schema\product_media\
SYS LOG_FILE_DIR d:\avale\rel4\assistants\dbca\logs\
SYS DATA_FILE_DIR d:\avale\rel4\demo\schema\sales_history\
SYS EMP_DIR E:\Oracle Directory
SYS REMOTED \\10.1.1.12\oracle directory
SYS UTLDR e:\utldir
SELECT * FROM dba_tab_privs WHERE table_name='UTLDR'
GRANTEE OWNER TABLE_NAME GRANTOR PRIVILEGE GRANTABLE HIERARCHY
PUBLIC SYS UTLDR SYS READ NO NO -
Error while using UTL_FILE.FOPEN
sir,
when i write procedure using utl_file.fopen i am getting error as it must be declared PLS-00201. what mistake, i am doing.
yours
dr.s.r.bhattachari was under the impression that there will be a moderator who will redirect the question even by mistake we post? is it not?Absolutely not. On the APEX forum we are in the fortunate position of having members of Oracle's APEX team actively involved, but neither they nor any of the other contributors perform the role of moderator or have administrative access to the forum system. The OTN team who do only really perform "moderation" when there has been a breach of the OTN Terms and Conditions.
If your question has obviously been posted in the wrong forum, or someone thinks you will get a better response elsewhere then generally they'll suggest this, as above. -
Problem in using UTL_FILE.FOPEN with filename containing accent characters
select value from nls_database_parameters where parameter = 'NLS_CHARACTERSET';
VALUE
AL32UTF8
declare
l_output UTL_FILE.FILE_TYPE;
filename varchar2(100) := 'Avenue des Champs-Élysées.txt';
begin
l_output := UTL_FILE.FOPEN ('UPLOAD_DIR', filename, 'W');
utl_file.put_line (l_output, 'Testing');
utl_file.fclose(l_output);
end;
The file in the UPLOAD_DIR becomes "Avenue des Champs-Élysées.txt"
can anyone tell me what NLS settings I should use in order to create file with correct filename ?symplik wrote:
The file in the UPLOAD_DIR becomes "Avenue des Champs-Élysées.txt"And what does the o/s file system support and what is the operating system's NLS settings?
If there is a mismatch between what you do in your code in Oracle, and what the o/s is configured for, then this type of "+translation+" error is to be expected. -
Query Regarding UTL_FILE.fopen() -
Guys hope you all doin well-
I am using Oracle 9i release 2 -
I am having problem while i am trying to open a file using the UTL_FILE builtin package -
I created the directory as well where the file is located, that i want to access
While i am executing the utl_file.fopen function returns record
location in varchar2 ,
filename in varchar2 ,
open_mode in varchar2 ,
max_linesize in binary_integer default
returns the following error ORA-29283: invalid file operation
The description of the error i found is:
ORA-29283: invalid file operation
Cause: An attempt was made to read from a file or directory that does not exist, or file or directory access was denied by the operating system.
Action: Verify file and directory access privileges on the file system, and if reading, verify that the file exists
The file exists and the user has the privileges to access the file too - but still having problems
please help -
if any buddy has the idea please share -
Thanks
Y.V.Hello Y.V.
Have you set the parameter utl_file_dir? Please check. In most of the cases the problem is because of this parameter
You can set it to directory that you want to access. Or else you can set it to * (which means) that UTL_FILE would be able to read from any directory on which Oracle Binary Owner has got access. Please be careful when setting this to *
To check the parameter use query:
select name,value from v$parameter
where name ='utl_file_dir';
Regards
Sudhanshu
OCP DBA -
Oracle XE - UTL_FILE - shared printer
Hi,
I am trying to recreate a production environment on XE.
I am trying to send a print command to a shared printer (share name label01).
The machine running the XE database is called cobrademo.
When I try the following command utl_file.fopen('\\cobrademo\label01', 'test.txt','w'), I get ora-29280 invalid directory path.
When I change the directory to a directory on the cobrademo machine it works fine.
The solution of mapping util_file to a shared printer is also working in production.
The XE service is running as a user called OracleDBA, that has also been granted access to the shared printer.
Any ideas?
Thanks.cleme1a wrote:
When I try the following command utl_file.fopen('\\cobrademo\label01', 'test.txt','w'), I get ora-29280 invalid directory path.2 basic issues. The Oracle server needs to be able to resolve that NetBIOS hostname to an IP address. Secondly, the current Windows user that is running the Oracle server process, needs to have access to that UNC (read and write in your case).
A simple method to test is to logon as that Windows user (usually <i>Oracle</i>) on the Oracle database server. Open a command console window. Type the following:
+{noformat}net view \\cobrademo{noformat}+
If this fails, then get the IP address of that cobrademo server and add the following like to c:\Windows\System32\Drivers\Etc\lmhosts :
<i><ipaddress> cobrademo </i>
If the net view command works, attempt to access (read, write or map) the NetBIOS share/service called label01. E.g.
+{noformat}echo "This is a test" > \\cobrademo\label0{noformat}+
This needs to work in an automated fashion - thus no keyboard/user input such as specifying a username and/or password to make the NetBIOS calls and access work.
PS. Note that this is not a question related to either the SQL or PL/SQL languages. Please choose an appropriate forum for your question's subject matter in future. Thanks. -
Cannot create a file using UTL_FILE.FOPEN
Dear All,
I am using this syntax for creating a file in window
i have declare this like this
l_file_id UTL_FILE.file_type;
l_file_name := 'DHL_'||110570284||'_'||TO_CHAR(SYSDATE,'ddmmyyyy')||'.txt'
l_file_id :=UTL_FILE.FOPEN('C:\D2R',l_file_name,'W');
Is this syntax work?
My database version is oralce 10g
ThanksFirst of all, UTL_FILE is PL/SQL package and is executed on database server side, not on client side. Therefore, it is trying to create file in directory C:\D2R on database sefrver. So if you want to create file in directory C:\D2R on your client box - you can't. Next point - you are specifying directory explicitly which old and obsolete syntax. It requires, for security reasons to add C:\D2R to init.ora parameter UTL_FILE_DIR, otherwise UTL_FILE will raise an error. You should use directory objects:
CREATE DIRECTORY dir AS 'C:\D2R';and grant READ/WRITE on it to users. Then use:
l_file_id :=UTL_FILE.FOPEN('DIR',l_file_name,'W'); -- use directory name in upper caseAnd keep in mind, as I already mentioned UTL_FILE is PL/SQL package and is executed on database server side which means it runs under OS user oracle. Therefore OS user oracle must have write permission on C:\D2R.
SY. -
UTL_FILE.FOPEN in PL/SQL
Hi,
I want to use UTL_FILE.FOPEN in PL/SQL procedure. I keep getting an exception when I try to open the file.
FDebug := UTL_FILE.FOPEN('D:\SQL', 'debug.txt', 'w');
UTL_FILE.PUT_LINE(FDebug, 'Hello World');
UTL_FILE.FCLOSE(FDebug);
I believe the problem is that the directory is inaccessible.
I read in another post that the UTL_FILE_DIR must be set in the init.ora file. However, I do not have an init.ora file. I am willing to add one but do not know how.
Any help would be aprreciated.
Thank You,
Scott
nullUp to 8i, Oracle refused to access a file that is not pointed to in the utl_file_dir parameter in the init<sid>.ora file.
In Oracle 9i, in order to access a file, either the utl_file_dir parameter must be set, or one has to create a directory as create or replace directory dir_temp as 'c:\temp'; -
Oracle 11g : UTL_FILE query
Hi,
I am having 2 server. One server has oracle database while on another one is application server where all the data files and application specific shell scripts are kept. We are connecting to database via the application server.
I am using Oracle 11g:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for HPUX: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
I know that using UTL_FILE in PL/SQL procedure we can create file on the server (where oracle is installed).
My requirement is generated some report which will involve writing to more than 2 files simultaneously. I know I can easily do this in PL/SQL procedure.
But my issue is that due to space issue I cannot generate the files on database server and need to generate the same on the application one (client side)
Queries:
1] Is it also possible to create file on client machince instead of server in my case the application server via PL/SQL because I read that in Oracle 11g
UTL_FILE provides file access both on the client side and on the server side.
2] If yes any idea, how is this possible?
3] If not, is there any way by which I can write to 2 or more file simultaneously on the client using oralce. I know SQL*Plus can spool file on client. But it is only one file at a time.
Rgds,
AmolLooking at the 11g documentation you are probably referring to:
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/u_file.htm#BABDEJDH
where it says...
>
UTL_FILE provides file access both on the client side and on the server side. When run on the server, UTL_FILE provides access to all operating system files that are accessible from the server. On the client side, as in the case for Forms applications, UTL_FILE provides access to operating system files that are accessible from the client.
>
This is referring to client installed forms applications where it provides a local UTL_FILE functionality that accesses the local file system. It doesn't mean that UTL_FILE within PL/SQL that is running on the database server can access the client machine's file system as this would also be a breach of network security. -
Broken korean characters while using utl_file.fopen
Hi,
I have korean data in a table and I need to extract it out.
Am using utl_file.fopen for this. It extracts, but korean characters are coming broken...
Is there some setting (NLS_LANG etc) that I need to do? I tried NLS_LANG korean_korea.KO16KSC5601 but didn't help...
Thanks,
SachinPlease post this question in the Database forum for an appropriate response: General Database Discussions
Regards,
OTN -
Hi everyone..
I am using utl_file to write delimited data into text files.In the utl_file.fopen i changed the default l "max line size" to 32767 when i got some error regarding the line size.After changing that that max line size paramaterer,I am getting lot of space after each line.
Does that max line size parameter means that every line "should" be that size? why i am getting lot of space after each line?
question1:
======
How to remove that empty spaces that i got after each line in my text file?
FILEHANDLE := UTL_FILE.FOPEN('TEST_UTL_FILE','file_name.txt', 'W',32767);And i am trying to find the length of the string that i am passing it utl_file.put_line
I am trying to insert that length to a "test" table ,so that i can check the max length of each line that is passing to the utl_file.
I have this insert command in my PL/SQL block
insert into test_number_char (num) values (dbms_lob.getlength(EXTRACTED_STRING)); and the data type of "num" column is number(20,0)
I am getting the following error .
ERROR getting members -1461 ORA-01461: can bind a LONG value only for insert into a LONG columnquestion 2:
=======
How to get the length of the string that i am writing into file?
Thanks
phaniHi Phani,
>
question1:
======
How to remove that empty spaces that i got after each line in my text file?
>
something like this,
string := Rtrim(string,' ');question 2:
=======
How to get the length of the string that i am writing into file?
>
look at this,
SQL> Set Serveroutput on
SQL> Create or Replace Directory SOME_DIR As 'C:\Temp';
Directory created
SQL> Create table Test_ As (Select dbms_random.string('X',10) as Txt From dual Connect by Level <= 2500);
Table created
SQL>
SQL> Declare
2 v_column Varchar2(30);
3 l_utl_dir Varchar2(30) := 'SOME_DIR';
4 l_utl_file Varchar2(30) := 'Some_File.txt';
5 l_header Varchar2(32767) := Null;
6 l_utl_id UTL_FILE.FILE_TYPE;
7 Begin
8 DBMS_OUTPUT.ENABLE(32767);
9
10 l_utl_id := UTL_FILE.FOPEN( location => l_utl_dir
11 , filename => l_utl_file
12 , open_mode => 'w'
13 , max_linesize => 32767);
14
15 For i IN (SELECT Rowid
16 FROM TEST_) Loop
17
18 For x IN (SELECT COLUMN_NAME
19 , TABLE_NAME
20 FROM ALL_TAB_COLS
21 WHERE TABLE_NAME = 'TEST_') Loop
22
23 Execute Immediate 'select ' || x.column_name || ' from ' ||
24 x.table_name || ' where rowid = :pi_input'
25 INTO v_column
26 Using IN i.Rowid;
27
28 l_header := l_header || v_column || ' ';
29
30 End Loop;
31 End Loop;
32
33 UTL_FILE.PUT_LINE( file => l_utl_id
34 , buffer => l_header );
35
36 UTL_FILE.FCLOSE(file => l_utl_id);
37
38 DBMS_OUTPUT.PUT_LINE( LENGTH( l_header ) );
39 End;
40 /
27500
PL/SQL procedure successfully completedHope this helps,
Christian Balz -
Unable to create file using : =utl_file.fopen
Hi Team,
My issue is file is not getting created, i checked the permissions of the directory.
No error is received while executing the below script .
declare
f1 utl_file.file_type;
begin
f1:=utl_file.fopen('TAX_CODE_OUT_FILE_PATH','test.txt','W');
utl_file.put_line(f1,'memocan');
utl_file.fclose(f1);
end;
Any suggestion why file is not getting created ?i tried the following :
declare
V1 VARCHAR2(32767);
f1 utl_file.file_type;
begin
F1 := UTL_FILE.FOPEN('TAX_CODE_OUT_FILE_PATH','in.txt','R');
UTL_FILE.GET_LINE(F1,V1,32767);
UTL_FILE.FCLOSE(F1);
end;
Error is thrown as following ;
Error report:
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 537
ORA-29283: invalid file operation
ORA-06512: at line 6
29283. 00000 - "invalid file operation"
*Cause: An attempt was made to read from a file or directory that does
not exist, or file or directory access was denied by the
operating system.
*Action: Verify file and directory access privileges on the file system,
and if reading, verify that the file exists.
Any suggestions ?? -
Procedure using utl_file.fopen
Hi ,
I want to open a file ,read it line by line and if i find one particular word i want to display the whole line.
I tried writing a procedure but not getting desired output.
DECLARE
x utl_file.file_type;
y varchar2(200);
BEGIN
x:= utl_file.fopen('TRACE1',DB_ora_111_trc.txt','R');
LOOP
BEGIN
UTL_FILE.GET_LINE(x,y);
if x='select' then
dbms_output.put_line(x);
end if;
EXCEPTION
WHEN NO_DATA_FOUND THEN EXIT ;
END;
END LOOP;
utl_file.fclose(x);
END;
Here i am opening a tkprof file and trying to grep for select word and if it is found,display the whole select query.The above is not showing any output.Kindly assist me since i am new to coding.
Thanksuser10698496 wrote:
Hi,
I am getting only these much as my output . I want to see entire select query.DECLARE
f utl_file.file_type;
s varchar2(2000);
BEGIN
f := utl_file.fopen('TRACE1','DB_ora_1118250.trc.txt','R');
LOOP
BEGIN
UTL_FILE.GET_LINE(f,s);
if lower(s) like '%select%' then
dbms_output.put_line(s);
end if;
EXCEPTION
WHEN NO_DATA_FOUND THEN EXIT ;
END;
END LOOP;
utl_file.fclose(f);
END;
SELECT uid,tname,str,acol,hcol,TO__CHAR(u_time,'DD-MM-YYYY
SELECTgroup,name,address1,state,country,fax_no,
PL/SQL procedure successfully completed.
Ok, so that is telling us that you have your queries split over multiple lines?
In that case you need to "switch on" the output of lines from the moment you find a "select" and then switch it off again when you get a line that indicates the end of the select. So let's assume your selects end with a ";" as the last character on the last line of the select, you can do something like this...
DECLARE
f utl_file.file_type;
s varchar2(2000);
in_select boolean;
BEGIN
f := utl_file.fopen('TRACE1','DB_ora_1118250.trc.txt','R');
in_select := false;
LOOP
BEGIN
UTL_FILE.GET_LINE(f,s);
if lower(s) like '%select%' or in_select then
dbms_output.put_line(s);
in_select := not(s like '%;'); -- stop when we get to ";" at end of a line.
end if;
EXCEPTION
WHEN NO_DATA_FOUND THEN EXIT ;
END;
END LOOP;
utl_file.fclose(f);
END;
Also i attempted to cut only table name from the output select query.I tried something like o :=substr(s,instr(s,'from')+4);PFB the code and output.Pls let me know where am i going wrong.
DECLARE
2 f utl_file.file_type;
3 s varchar2(2000);
4 op varchar2(1000);
5 BEGIN
6 f := utl_file.fopen('TRACE_EXTRACT','DB_ora_1118250.trc.txt','R');
7 LOOP
8 BEGIN
9 UTL_FILE.GET_LINE(f,s);
10 if lower(s) like '%select%' then
11 op :=substr(s,instr(s,'from')+4);
12 dbms_output.put_line(op);
13 end if;
14
15 EXCEPTION
16 WHEN NO_DATA_FOUND THEN EXIT ;
17 END;
18 END LOOP;
19 utl_file.fclose(f);
20 END;
21 /
ECT uid,tname,str,acol,hcol,TO__CHAR(u_time,'DD-MM-YYYY
ECTgroup,name,address1,state,country,fax_no,
that's because there is no "from" on those lines, so the result of the instr is 0 and you are adding 4, so you are getting all characters from character 4 onwards.
What you need in conjunction with my above suggestion is something like this...
DECLARE
f utl_file.file_type;
s varchar2(2000);
in_select boolean;
BEGIN
f := utl_file.fopen('TRACE1','DB_ora_1118250.trc.txt','R');
in_select := false;
LOOP
BEGIN
UTL_FILE.GET_LINE(f,s);
if lower(s) like '%select%' or in_select then
dbms_output.put_line(s);
if lower(s) like '%from%' then
dbms_output.put_line('TABLES: '||substr(s,instr(s,'from'+5))); -- +5 to get past the from and the space character after it.
end if;
in_select := not(s like '%;'); -- stop when we get to ";" at end of a line.
end if;
EXCEPTION
WHEN NO_DATA_FOUND THEN EXIT ;
END;
END LOOP;
utl_file.fclose(f);
END;
/ -
Oracle not starting up throwing error
My listener problem is solved but the DB dosent start up and throws this error, I also have a dump of the startup.log and the copy of init.ora file.
[oracle@localhost ~]$ ./oracle.sh start
Starting Oracle: Password:
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 24-DEC-2009 23:01:32
Copyright (c) 1991, 2005, Oracle. All rights reserved.
TNS-01106: Listener using listener name LISTENER has already been started
Password:
Failed to auto-start Oracle Net Listene using /ade/vikrkuma_new/oracle/bin/tnslsnr
Processing Database instance "sales": log file /u01/app/oracle/oracle/product/10.2.0/db_1/startup.log
OK
startup.log
/u01/app/oracle/oracle/product/10.2.0/db_1/bin/dbstart: Starting up database "sales"
Thu Dec 24 23:02:00 IST 2009
logger: Can't find init file for Database instance "sales".
logger: Error: Database instance "sales" NOT started.
init.ora
# $Header: init.ora 06-aug-98.10:24:40 atsukerm Exp $
# Copyright (c) 1991, 1997, 1998 by Oracle Corporation
# NAME
# init.ora
# FUNCTION
# NOTES
# MODIFIED
# atsukerm 08/06/98 - fix for 8.1.
# hpiao 06/05/97 - fix for 803
# glavash 05/12/97 - add oracle_trace_enable comment
# hpiao 04/22/97 - remove ifile=, events=, etc.
# alingelb 09/19/94 - remove vms-specific stuff
# dpawson 07/07/93 - add more comments regarded archive start
# maporter 10/29/92 - Add vms_sga_use_gblpagfile=TRUE
# jloaiza 03/07/92 - change ALPHA to BETA
# danderso 02/26/92 - change db_block_cache_protect to dbblock_cache_p
# ghallmar 02/03/92 - db_directory -> db_domain
# maporter 01/12/92 - merge changes from branch 1.8.308.1
# maporter 12/21/91 - bug 76493: Add control_files parameter
# wbridge 12/03/91 - use of %c in archive format is discouraged
# ghallmar 12/02/91 - add global_names=true, db_directory=us.acme.com
# thayes 11/27/91 - Change default for cache_clone
# jloaiza 08/13/91 - merge changes from branch 1.7.100.1
# jloaiza 07/31/91 - add debug stuff
# rlim 04/29/91 - removal of char_is_varchar2
# Bridge 03/12/91 - log_allocation no longer exists
# Wijaya 02/05/91 - remove obsolete parameters
# Example INIT.ORA file
# This file is provided by Oracle Corporation to help you customize
# your RDBMS installation for your site. Important system parameters
# are discussed, and example settings given.
# Some parameter settings are generic to any size installation.
# For parameters that require different values in different size
# installations, three scenarios have been provided: SMALL, MEDIUM
# and LARGE. Any parameter that needs to be tuned according to
# installation size will have three settings, each one commented
# according to installation size.
# Use the following table to approximate the SGA size needed for the
# three scenarious provided in this file:
# -------Installation/Database Size------
# SMALL MEDIUM LARGE
# Block 2K 4500K 6800K 17000K
# Size 4K 5500K 8800K 21000K
# To set up a database that multiple instances will be using, place
# all instance-specific parameters in one file, and then have all
# of these files point to a master file using the IFILE command.
# This way, when you change a public
# parameter, it will automatically change on all instances. This is
# necessary, since all instances must run with the same value for many
# parameters. For example, if you choose to use private rollback segments,
# these must be specified in different files, but since all gc_*
# parameters must be the same on all instances, they should be in one file.
# INSTRUCTIONS: Edit this file and the other INIT files it calls for
# your site, either by using the values provided here or by providing
# your own. Then place an IFILE= line into each instance-specific
# INIT file that points at this file.
# NOTE: Parameter values suggested in this file are based on conservative
# estimates for computer memory availability. You should adjust values upward
# for modern machines.
# You may also consider using Database Configuration Assistant tool (DBCA)
# to create INIT file and to size your initial set of tablespaces based
# on the user input.
# replace DEFAULT with your database name
db_name=sales
db_files = 80 # SMALL
# db_files = 400 # MEDIUM
# db_files = 1500 # LARGE
db_file_multiblock_read_count = 8 # SMALL
# db_file_multiblock_read_count = 16 # MEDIUM
# db_file_multiblock_read_count = 32 # LARGE
db_block_buffers = 100 # SMALL
# db_block_buffers = 550 # MEDIUM
# db_block_buffers = 3200 # LARGE
shared_pool_size = 3500000 # SMALL
# shared_pool_size = 5000000 # MEDIUM
# shared_pool_size = 9000000 # LARGE
log_checkpoint_interval = 10000
processes = 50 # SMALL
# processes = 100 # MEDIUM
# processes = 200 # LARGE
parallel_max_servers = 5 # SMALL
# parallel_max_servers = 4 x (number of CPUs) # MEDIUM
# parallel_max_servers = 4 x (number of CPUs) # LARGE
log_buffer = 32768 # SMALL
# log_buffer = 32768 # MEDIUM
# log_buffer = 163840 # LARGE
# audit_trail = true # if you want auditing
# timed_statistics = true # if you want timed statistics
max_dump_file_size = 10240 # limit trace file size to 5 Meg each
# Uncommenting the line below will cause automatic archiving if archiving has
# been enabled using ALTER DATABASE ARCHIVELOG.
# log_archive_start = true
# log_archive_dest = disk$rdbms:[oracle.archive]
# log_archive_format = "T%TS%S.ARC"
# If using private rollback segments, place lines of the following
# form in each of your instance-specific init.ora files:
# rollback_segments = (name1, name2)
# If using public rollback segments, define how many
# rollback segments each instance will pick up, using the formula
# # of rollback segments = transactions / transactions_per_rollback_segment
# In this example each instance will grab 40/5 = 8:
# transactions = 40
# transactions_per_rollback_segment = 5
# Global Naming -- enforce that a dblink has same name as the db it connects to
global_names = TRUE
# Edit and uncomment the following line to provide the suffix that will be
# appended to the db_name parameter (separated with a dot) and stored as the
# global database name when a database is created. If your site uses
# Internet Domain names for e-mail, then the part of your e-mail address after
# the '@' is a good candidate for this parameter value.
# db_domain = us.acme.com # global database name is db_name.db_domain
# FOR DEVELOPMENT ONLY, ALWAYS TRY TO USE SYSTEM BACKING STORE
# vms_sga_use_gblpagfil = TRUE
# FOR BETA RELEASE ONLY. Enable debugging modes. Note that these can
# adversely affect performance. On some non-VMS ports the db_block_cache_*
# debugging modes have a severe effect on performance.
#_db_block_cache_protect = true # memory protect buffers
#event = "10210 trace name context forever, level 2" # data block checking
#event = "10211 trace name context forever, level 2" # index block checking
#event = "10235 trace name context forever, level 1" # memory heap checking
#event = "10049 trace name context forever, level 2" # memory protect cursors
# define parallel server (multi-instance) parameters
#ifile = ora_system:initps.ora
# define two control files by default
control_files = (ora_control1, ora_control2)
# Uncomment the following line if you wish to enable the Oracle Trace product
# to trace server activity. This enables scheduling of server collections
# from the Oracle Enterprise Manager Console.
# Also, if the oracle_trace_collection_name parameter is non-null,
# every session will write to the named collection, as well as enabling you
# to schedule future collections from the console.
# oracle_trace_enable = TRUE
# Uncomment the following line, if you want to use some of the new 8.1
# features. Please remember that using them may require some downgrade
# actions if you later decide to move back to 8.0.
#compatible = 8.1.0starts up the instance and shuts down immediately.
Here is the log
/u01/app/oracle/oracle/product/10.2.0/db_1/bin/dbstart: Starting up database "sales"
Thu Dec 24 23:26:47 IST 2009
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 24 23:26:47 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> Connected to an idle instance.
SQL> ORA-00371: not enough shared pool memory, should be atleast 62198988 bytes
SQL> Disconnected
/u01/app/oracle/oracle/product/10.2.0/db_1/bin/dbstart: Database instance "sales" warm started.
Maybe you are looking for
-
Can't create web photo gallery with modified RAW files
I can use CS-2 to create a web photo gallery using unmodified RAW files, this seems to work fine. However, after I tweak the exposure of a RAW file and a .xmp file has been created, if I try to create a web photo gallery, the program goes through the
-
Printing sales order confirmation if order changes
Hi all, I have to implement some changes in output control to achieve a particular requirement. Business wants sales order confirmations to get re-printed if and only if some changes in the sales order were cought. For example if the quanity of a po
-
I purchased a song as a gift and I want to know if it was received
I purchased a song as a gift. Is there any way I can confirm it was received without asking the person the gift was for?
-
Iam trying to have users request for the Active directory resource. Once they submit the request the request can go to the requesters' administrator. I have created a pre-populate adapter which will fill up all the reqd fields. So, as soon as a User
-
Keeps restarting on its own says because of a problem
My brandnew macbook pro has started continually every ten mins or so restarting and saying its because of a problem. Sometimes sluggish!