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,
~Raj
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.
Similar Messages
-
LRM -00109:could not open parameter file Oracle 10g in Solaris 10
Hallo! I have just installed Oracle 10g in Solaris 10.When I logged into sqlplus / as sysdba if found that I was connected to an idle instance. When I tried to startup open the db, the following error appeared
Connected to an idle instance.
SQL> startup open;
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/export/home/oracle/product/10.2.0/db_1/dbs/initsolaris.ora'
My pfile has the name init.ora and not initsolaris.ora.How can I change the settings to make the Oracle database start via pfile init.ora.
Eventually,I would like the db to read the spfile spfileorcl.ora during the startup.How can I achieve this?
Thanks4joey1 wrote:
Hallo! I have just installed Oracle 10g in Solaris 10.When I logged into sqlplus / as sysdba if found that I was connected to an idle instance. When I tried to startup open the db, the following error appeared
Connected to an idle instance.
SQL> startup open;
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/export/home/oracle/product/10.2.0/db_1/dbs/initsolaris.ora'
My pfile has the name init.ora and not initsolaris.ora.How can I change the settings to make the Oracle database start via pfile init.ora.
By default, oracle will look first for a spfile named "spfile<ORACLE_SID>.ora". Lacking that, it will try to find "init<ORACLE_SID>).ora.
Eventually,I would like the db to read the spfile spfileorcl.ora during the startup.How can I achieve this?
Once you have started the db (I believe a startup nomount will be sufficient) you can issue CREATE SPFILE ... Details are in the fine SQL Reference manual found at tahiti.oracle.com
BTW, "open" is the default behavior of "startup", so no need to specify it. A simple "startup" does the same thing.
Thanks -
Impact of job_queue_processes parameter in oracle 10g
We have recently migrated 9i database to 10g.During business hours we will reduce the parallel jobs running to 5 and during night hours we set to 20.
After migration to 10g we faced major performance impact.Rest of the parameter we kept same as oracle 9i except obsolete.
Would change of this parameter will impact this performance?
What are other parameter we should check?
Can anyone help me regardng the performance improvement.This causes major business impact.
Thanks
RaghavendraHi,
When does you database becomes perticularly slow? In the day time ot night time?
What are the scheduled job (apart from queues) on your database? Is there any relation between the scheduled jobs running and your database slowing down?
Is there a stats collection job? Is it taking same time as before or taking longer?
Run this SQL,
select s.username,b.sid, a.STATISTIC#, name, b.value
from v$sesstat b, v$statname a, v$session s
where a.STATISTIC# = b.STATISTIC# and ( name like '%physical%' or name like '%consist%' )
and b.sid = s.sid and s.program not like 'oracle@%'
order by 2,4
Do you know about the views I have used in there? You can figure out the session with extensive read, write and select activities from here. Also, you will need to apply your logic there.
Best luck. -
How do I clear query parameter in Oracle 10g ADF
HI ,
My question is
1. when i am navigating to page B from Page A its querying data and showing . And I have same Pgae B which is attached to Menu also
so . How do i trace whether I am comming from menu or comming from Page A ..??
2. if i moved to page A and searched with some criteria , after then I moved to Page B from Menu , again come back to Page A from Menu
its retaining the old search criteria in the page . not clearing my search criteria . ( as a result what is happening its not showing the data whatever
in the Table ) . In order to show my existing data , i need to clear and then again clicking page B in Menu then only its showing the data .
so how to clear query parameter[email protected] wrote:
HI ,
My question is
1. when i am navigating to page B from Page A its querying data and showing . And I have same Pgae B which is attached to Menu also
so . How do i trace whether I am comming from menu or comming from Page A ..??Add a setActionListner and set a sessionscope variable according to the action?
>
2. if i moved to page A and searched with some criteria , after then I moved to Page B from Menu , again come back to Page A from Menu
its retaining the old search criteria in the page . not clearing my search criteria . ( as a result what is happening its not showing the data whatever
in the Table ) . In order to show my existing data , i need to clear and then again clicking page B in Menu then only its showing the data .
so how to clear query parameter -
DBIO_Expected parameter in Oracle 10g v.2..
Hi ,
How can i get the value of current DBIO_Expected parameter. It is assumed to be 10 milliseconds.....
Thanks ,
SimonHi ,
SQL> SELECT * FROM DBA_ADVISOR_DEF_PARAMETERS WHERE PARAMETER_NAME='DBIO_EXPECTED';
ADVISOR_NAME PARAMETER_NAME PARAMETER_VALUE PARAMETER_TYPE IS_DEFAULT IS_OUTPUT IS_MODIFIABLE_ANYTIME DESCRIPTION
ADDM DBIO_EXPECTED 10000 So the above value is the default value....(10 milliseconds)...
Many thanks,
Simon -
Could not update the kernel parameter when oracle 10g Installation.
Hi,
I tried to update ip_local_port_range in sysctl.conf file.
vi /etc/sysctl.conf
net.ipv4.ip_local_port_range=1024 65000
After changing the value i executed following command,
sysctl -p
Error : Unknown error 22 setting key 'net.ipv4.ip_local_port_range'
Please helpYou didn't specify if you are on a linux based OS, it looks like you are, but it would be so kind on your side if you clearly specify the OS version and which DB version you are planning to install.
When I perform installations of DB10gR2 on OEL4/OEL5 or RHEL4/RHEL5 i issue this commands:
echo net.ipv4.ip_local_port_range = 1024 65000 >> /etc/sysctl.conf
Once the kernel parameter have been set, the kernel must be re-read with the /sbin/sysctl -p command.
~ Madrid
http://hrivera99.blogspot.com -
Email parameter for message part in oracle 10g
hi..
i m sending email using oracle 10g form , using desname , desformat , subject ,from
it working successfully now i hv to add message body in that email like
Dear Sir,
Please find attachment.
Thanks & Regards
ABC
there is destype ,desname ,desformat ,subject ,from in built parameter to set subject , from , to , format to send email , but i want to write message part is there any parameter in oracle 10g ??
Thanks..Is your problem that you do not know how to send an email from Oracle 10g? If so then you use the UTL_MAIL package.
Here's an example of calling it as part of a scheduler chain, not strictly what you're asking for but this lets you define success and failure steps and call each one based on the status of previous steps.
BEGIN
DBMS_SCHEDULER.CREATE_PROGRAM (
program_name =>'prg_Export_Success',
program_type =>'PLSQL_BLOCK',
program_action =>q'[BEGIN
UTL_MAIL.SEND (
sender => 'who_its_from',
recipients => '[email protected]',
subject => 'subject line',
message => 'the message',
mime_type => 'text/plain; charset=us-ascii');
END;]',
number_of_arguments => 0,
enabled => TRUE,
comments => 'Email success');
end;
BEGIN
DBMS_SCHEDULER.DEFINE_CHAIN_STEP (
chain_name => 'Export',
step_name => 'stp_EXPORT_SUCCESS',
program_name => 'PRG_EXPORT_SUCCESS');
END;
/... then define appropriate rules. -
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. -
Note 830576 - Parameter recommendations for Oracle 10g
hi all DBA experts.
I am not good familiar with Oracle database while i read a Note 830576 - Parameter recommendations for Oracle 10g. in which SAP General Recommendation:
You should delete obsolete initialization parameters from the profile.
To determine which obsolete parameters are currently set, proceed as follows:
SQL> SELECT NAME FROM V$OBSOLETE_PARAMETER WHERE ISSPECIFIED = 'TRUE';
when i execute above command then result is no rows selected
while there are many parameters in above SAP Note which are already obsolete and not set in initSID.ora file.
for exp. the parameter OPTIMIZER_INDEX_COST_ADJ is showing
#### OPTIMIZER MODE
#optimizer_index_cost_adj = 10
as you know that this parameter is very important regarding System Performance.
now please guide me . I have to set these parameter or no need while there is not showing any parameters against obsolete command.
waiting you valuable reply.
Regards,hi both,
thanks for knowledge sharing with me other SDN users,
Dear Orkun,
Ok. At this stage, I can recommend you that apply what they have suggested,
in the message. So, you already did a part of it by configuring
Oracle parameters, already.
SAP support sent me this file (PRD_Parameters)
*** INFORMATION 1 ***
*** INFORMATION 2 ***
*** INFORMATION 3 ***
*** INFORMATION 4 ***
*** INFORMATION 5 ***
*** INFORMATION 6 ***
*** INFORMATION 7 ***
*** INFORMATION 8 ***
*** INFORMATION 9 ***
*** INFORMATION 10 ***
*** INFORMATION 11 ***
_b_tree_bitmap_plans
_fix_control (4728348)
event (10753)
event (38087)
event (10183)
optimizer_index_cost_adj
star_transformation_enabled
event (10027)
event (10028)
event (10411)
event (10629)
event (14532)
_fix_control (5705630)
_fix_control (5765456)
_optimizer_mjc_enabled
_sort_elimination_cost_ratio
event (10091)
event (10142)
event (38068)
event (38085)
event (44951)
parallel_execution_message_size
parallel_threads_per_cpu
query_rewrite_enabled
log_archive_dest_1
log_archive_format
max_dump_file_size
optimizer_features_enable
log_archive_dest
_push_join_union_view
_cursor_features_enabled
_first_spare_parameter
event (10049)
db_writer_processes
parallel_max_servers
db_cache_size
pga_aggregate_target
processes
sessions
dml_locks
job_queue_processes
log_checkpoint_interval
remote_login_passwordfile
sga_max_size
shared_pool_reserved_size
sort_area_retained_size
sort_area_size
statistics_level
workarea_size_policy
they only highlighted these following parameters from above
**** INFORMATION 8 *** DB Patchset: 10.2.0.4.0
**** INFORMATION 9 *** DB Mergefix: 0 (released before 2008-07-11)
FYI... recently, i applied the Oracle Patches 10.2.0.4 in this sequence
MS Windows x86-64 (64-bit)
Patchset_10204_MSWIN-x86-64aa.bin
Patchset_10204_MSWIN-x86-64ab.bin
Patchset_10204_MSWIN-x86-64ac.bin
OPatch
OPatch_10205_Generic_v0.zip
Generic (32-bit / 64-bit)
p8350262_10204_Generic.zip
p7592030_10204_WIN_GENERIC.zip
p9254968_10204_WIN_GENERIC.zip
10204_Patch44_MSWIN-x86-64.zip
p9584028_102040_Generic.zip
p9843740_10204_Generic.zip
and please tell me , still i have to apply highlighted parameters or now no need.
Regards, -
SAP Note 830576 - Parameter recommendations for Oracle 10g
As per SAP Note 830576 - Parameter recommendations for Oracle 10g, I have tried to change the value for
parameter "db_file_multiblock_read_count".
In sql prompt it shows:
SQL> show parameter DB_FILE_MULTIBLOCK_READ_COUNT
NAME TYPE VALUE
db_file_multiblock_read_count integer 128
and in brtools it shows:
58 - db_file_multiblock_read_count both no * yes 128
But I got the following error, when i tried to set it null
1 * Parameter description (desc) ..... [db block to be read each IO]
2 * Parameter type (type) ............ [integer]
3 * Current parameter value (parval) . [128]
4 * Value in spfile (spfval) ......... []
5 # New parameter value (value) ...... [null]
6 - Scope for new value (scope) ...... [both]
7 # Database instance (instance) ..... []
8 ~ Comment on update (comment) ...... []
9 - SQL command (command) ............ [alter system reset db_file_multiblock_read_count scope = spfile sid = '*'; alter system reset db_file_multiblock_read_count scope = memory sid = 'MBD']
BR0662I Enter your choice:
c
BR0280I BRSPACE time stamp: 2008-08-14 18.19.22
BR0663I Your choice: 'c'
BR0259I Program execution will be continued...
BR0280I BRSPACE time stamp: 2008-08-14 18.19.23
BR0301E SQL error -32010 at location BrSqlExecute-1, SQL statement:
'/* BRSPACE / alter system reset db_file_multiblock_read_count scope = spfile sid = '''
ORA-32010: cannot find entry to delete in SPFILE
BR1017E Execution of SQL statement 'alter system reset db_file_multiblock_read_count scope = spfile sid = '*'; alter system reset db_file_multiblock_read_count scope = memory sid = 'MBD'' failed
BR0669I Cannot continue due to previous warnings or errors - you can go back to repeat the last action
BR0280I BRSPACE time stamp: 2008-08-14 18.19.23
BR0671I Enter 'b[ack]' to go back, 's[top]' to abort:
Kinldy let me know, what could me wrong.Hi Markus,
As per your suggestion we have downloaded the files from UCLIB_3-20000978.SAR. But now getting the error as
sapccmsr -DCCMS -j2ee pf=profile value
INFO: use SAPLOCALHOST hostname
INFO: CCMS agent sapccmsr working directory is /usr/sap/ccms/XX1_00/sapccmsr
INFO: CCMS agent sapccmsr config file is /usr/sap/ccms/XX1_00/sapccmsr/csmconf
INFO: Central Monitoring System is [XX1]. (found in config file)
INFO: additional Central Monitoring System is [AS2]. (found in config file)
ERROR: Cannot open Monitoring Segment 0 rtc = 245
Last reported error: [249] CCMS monitoring segment has wrong EYE CATCH. It seems to be created as non-unicode segment.
This program runs as unicode. Please use non-unicode version
Please suggest
Thanks,
Anu -
ORACLE 10g : Datapump-Import : Error: unknown parameter name 'REMAP_TABLE'
Hi,
I am working on Oracle 10g. When executed import datapump script in the UNIX box with option “RMAP_TABLE” I received the error “unknown parameter name 'REMAP_TABLE' “Can you please give me solution for it?
Scripts :-
impdp eimsexp/xyz TABLES=EIMDBO.DIVISION DIRECTORY=DATAMART_DATA_PUMP_DIR DUMPFILE=expdp_DATAMART_tables_%u_$BATCH_ID.dmp LOGFILE=impdp_DATAMART_tables.log REMAP_TABLE=EIMDBO.DIVISION:EIM2DBO:YR2009_DIM_DIVISION
Note :- The YR2009_DIM_DIVISION table is available in the target database. It is without partition table. The EIMDBO.DIVISION is partition table.
Thanks,See your post here
ORACLE 10g : Datapump-Import : Error: unknown parameter name 'REMAP_TABLE'
Srini -
In Oracle 10g global support system,I have set parameter of NLS_DATE_FORMAT.I am wondering about that whether it could affect the default value of NLS_TIMESTAMP_FORMAT?
Message was edited by:
frank.qiantest@ORCL> select sysdate from dual;
SYSDATE
24-NOV-06
Elapsed: 00:00:00.00
test@ORCL> DECLARE
2 checkout TIMESTAMP(3);
3 BEGIN
4 checkout := '22-JUN-2004 07:48:53.275';
5 DBMS_OUTPUT.PUT_LINE( TO_CHAR(checkout));
6 END;
7 /
22-JUN-04 07.48.53.275 AM
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
test@ORCL> alter session set nls_date_format="MM/DD/YYYY";
Session altered.
Elapsed: 00:00:00.00
test@ORCL> select sysdate from dual;
SYSDATE
11/24/2006
Elapsed: 00:00:00.00
test@ORCL> DECLARE
2 checkout TIMESTAMP(3);
3 BEGIN
4 checkout := '22-JUN-2004 07:48:53.275';
5 DBMS_OUTPUT.PUT_LINE( TO_CHAR(checkout));
6 END;
7 /
22-JUN-04 07.48.53.275 AM
PL/SQL procedure successfully completed.
test@ORCL> alter session set NLS_TIMESTAMP_FORMAT = 'DD/MM/YYYY HH:MI:SS.FF';
Session altered.
Elapsed: 00:00:00.00
test@ORCL> DECLARE
2 checkout TIMESTAMP(3);
3 BEGIN
4 checkout := '22-JUN-2004 07:48:53.275';
5 DBMS_OUTPUT.PUT_LINE( TO_CHAR(checkout));
6 END;
7 /
22/06/2004 07:48:53.275
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
test@ORCL>
test@ORCL> -
How to change timeout parameter value in Oracle 10g R2
Anyone knows how to change timeout parameter value in Oracle 10g Database R2?
Waheed Azhar wrote:
actually i am getting ORA-01013 exception which directly relates to the timeout value but i think it's hidden parameter...What makes you think it's a hidden parameter?
A search of MetaLink for that error turns up a number of hits, most of which a very situational specific. Exactly what are you doing when you get this error? Are you connecting over an ODBC connection? Are you getting it on a connection request? At db shutdown? During a long-running query? -
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. -
Oracle 10g on solaris 10 : kernel parameter warning
I am installing oracle 10g on Solaris 10.
I have a warning on kernel parameter missing (shminfo_shmmax for example) during the system check.
I understood that with the 10 version of solaris these parameters are replaced by ressources control and I have checked them. They are correctly setted.
Need I do something before continue the install to release the warning or can I bypass this issue and continue the install as I have no warning ?
Thanks for your answers.
Sorry for my english.You are right. Since Solaris 10 kernel parameters settings in /etc/system is obsolete and some parameters are deprecated.
The steps how to configure required parameters you can find in my paper (step #1.): http://ivan.kartik.sk/oracle/install_ora10gR2_solaris.html
I bypass this issue and continue the install as I have no warning You can safely bypass this issue during installation process but you should set these parameters after installation.
Maybe you are looking for
-
Error while trying to add a new field in search criteria by VO extension
Hi, I am trying to add a new field by using the VO extension to a seeded OAF page used to search Repository contracts. I get the following error on opening the page after I have compiled my code on server and bounced apache. Message not found. Applic
-
What does this error mean and how can i correct it
when i compiled my program on a different computer it worked fine but i brought it home and i get the following error what should i do? F:\programming\SortInput.java:8: cannot access MyInput bad class file: .\MyInput.class class file has wrong versio
-
I have a PCI 7830r board. I need to output a sinewave voltage output.I saw several examples using buffered DMA output to do that. But in FPGA Wizard, in the step of choosing time engines, there is only " Buffered DMA input", no "Buffered DMA output"
-
IDVD won't burn a disc.
The "burn" cycyl of iDVD ejects the disc before the burn cycle is complete. There are two minutes left each time. I have tried burning projects that have burned successfully in the past, with the same result. What am I doing wrong? Thanks.
-
[NEW] fontforge and ec-fonts-mftraced
I uploaded both packages to the ftp server. Here are the PKGBUILDs anyway. #$Id: $ #Contributor: thegnu <[email protected]> pkgname=ec-fonts-mftraced pkgver=1.0.1 pkgrel=1 pkgdesc="a font package required by lilypond" url="http://www.lilypond.org/"