I started working on utl_files. When i Am working on this topic I struck with an error: Quote:ORA-29280: invalid directory path. Below are the steps I followed to work on utl_files,
STEP1: connect sys as sysdba
STEP2: @$ORACLE_HOME/rdbms/admin/utlfile.sql
STEP3: create or replace directory utl_data_files as '/home/oracle/siva/data/'; --(the directory path is already exists in the OS)
STEP4: below is the code
DECLARE out_file UTL_FILE.file_type; linebuf varchar2(1999); directory_name varchar2(100):='utl_data_files'; BEGIN out_file:=UTL_FILE.fopen(directory_name,'emp.dat','W'); for emp_cur in (SELECT * FROM scott.EMP)
[code].....
STEP5: then it's giving the below result/error info
I am testing to find out that by using utl_file, if I finish reading all the entries in the file, then I encounter no_data_found, just want to make sure I get no data found when all entries in the file are read
SQL> create or replace directory my_docs as 'c:photos';
create or replace procedure myproc is
v_line VARCHAR2(2000); -- Data line read from input file v_file UTL_FILE.FILE_TYPE; -- Data file handle v_dir VARCHAR2(250) := 'my_docs'; -- Directory containing the data file
[Code]....
/so I execute this procedure and I get
ERROR at line 1: ORA-29280: invalid directory path ORA-06512: at "SYS.UTL_FILE", line 33 ORA-06512: at "SYS.UTL_FILE", line 436 ORA-06512: at "MYPROC", line 12 ORA-06512: at line 2
how change the default directory path from server to our local system directory in external table while loading the data from csv file to table actually my default directory 'abc'(installed oracle server directory) in external tables , now i want to change that default directory to my local(c:Sm(not installed oracle s/w)).
I restored a date in my database (the backup of that date was taked by a snap on Windows Server 2003), now I try to startup the database it gives me the following error
ORA-02778: Name given for the log directory is invalid
Tue May 06 09:42:15 2008 Starting background process EMN0 EMN0 started with pid=53, OS id=13704 Tue May 06 09:42:16 2008 Shutting down instance: further logons disabled Tue May 06 09:42:18 2008 Stopping background process QMNC Tue May 06 09:42:19 2008
10) create service Oradim NEW SID ORA10G SYSPWD ORACLE STARTMODE AUTO SPFILE
11) then i have check service is started or not in Control panel- administrative tools - sevices--OracleserviceORA10g---started
12) i have Shut down previously started database
13) Connect to SQL promp
F:oracleproduct10.2.0db_1in> set oracle_sid=ora10g
F:oracleproduct10.2.0db_1in>SQLPLUS
SQL*Plus: Release 10.2.0.5.0 - Production on Thu Jul 14 16:46:59 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Enter user-name: SYS AS SYSDBA Enter password: Connected to an idle instance.
14)than create spfile SQL> CREATE SPFILE FROM PFILE = 'F:ORACLEPRODUCT10.2.0ADMINORA10GPFILEINIT.ORA';
File created.
15) than i have run this command
SQL> startup nomount ORA-02778: Name given for the log directory is invalid
== i have attached my orcl init.ora file and my new init.ora file also here ====== my orcl init.ora file here that i have used here for this database ====
I don't want to set this path on every machine. I want to set its dynamic path so that on which even I machine, I run the applicaiton, it will directly find AcroRd32.exe from any drive either C: or D: or anything else...
It might be Acrobat Reader 9.0 or 8.0 whatever version will be installed on client machine...I want to set path according to that..So that whatever version it would be, it doesnt affect the application..
How to use the DLL? My DLL is loaded on the client host in the C: Documents and Settings USER webutil. When you try turning to the library, I get an error:
WUL-928 [CApiFunctions.set_invokeoncespec ()] EXAMPLE.DLL library is not available or does not contain a function MYFUNCTION
create table test ( avarchar2(10), bvarchar2(10) ) / insert into test values ('A', 'B');
[Code]...
We want to get the path from "A" to "E". In other words, if we start with any value of the column "a" we have to reach the "maximum" value of the column "b".
"maximum" in sense that we don't find the value of "b" in "a".
Example : --------- E is not found in the column a, so E is the maximum of A. - N is the maximum of K - Z is the maximum of Q and the maximum of S
select ... from ... where a = 'A' should return E.
I need to change data file path, and i got some document also but one thing confusing me, we need to offline the Tablespace, so my concern is all the table space like system, sys, user, temp etc. need to offline and then alter the database?
I want to find the path between two nodes from oracle Hierarchical Table.
Consider the following case --- NodeId --- ParentId ============= 1 >>>>>> 0 2 >>>>>> 1 3 >>>>>> 2 4 >>>>>> 3 5 >>>>>> 0 6 >>>>>> 5
Here I want to query in the database table that whether there is a path between node 3 and node 5 ? The previous query you provided work up to root node.
Here my expected result is 3-->2-->1-->0-->5
Again if I query in the table to get the path between 1 and 3 , I want to get the output in the following way - 1-->2-->3
So the query need to work in both the cases. Where root nod can act as an intermediate node or not.
I have tried with sys_connect_by_path and wm_concat
with mst as ( select id1,name1,value1 from test_conn c where ((c.name1='WORKFLOW_TYPE' and NVL2(:p_workflow_type,decode(:p_workflow_type,' SELECT ALL',' SELECT ALL',c.value1),0)=NVL2(:p_workflow_type,:p_workflow_type,0)) or (c.name1='SOURCE_TYPE' and NVL2(:p_source_type,decode(:p_source_type,' SELECT ALL',' SELECT [code]....
but unable to group it by Id, all comes under one column
The source server (9.2) is /oracle/data/xxx the destination will be /u02/oradata/xxx how do I get the imp to change the paths.
I know you can't do db_file_name_convert, as that only works in dataguard with rman, and it looks like you can only set compatible down to 10.2, it's a very small DB, (5Mb) but it's a live license server DB, I need it intact.
I tried a straight import, but that just barfed with "IMP-00015: following statement failed because the object already exists:" on every statement.
EDIT: it's lying, the /oracle path doesn't exist, just FYI.
we have a very critical application running and the backend database is 10.2.0.3. we are planing on upgrading to 10g to 11.2.0.2 and looking ways to look with minimal downtime off production. steps for upgrade with very minimal downtime of appliction?
I am find about an algorithm of shortest path with visits certain nodes.I have a table of Links with this fields: ID_Link, City1, City2 and distance...You have informations about shortest path with visits?
We upload a file on our library on weekly basis. I wanted to fetch the latest uploaded file path/URL from a folder through PL/SQL, but not sure if it's possible.
Recently i faced with a situation of redirecting a report output to a particular path in my server, and then opening the output by using web.show_document.
I was successful in redirecting it too a path , however i am not able to open the file using URL. We should setup virtual path in orion-web.xml and proceed further.
I pointed the output to an existing virtual path as below in my orion_web.xml file.
D:OraHome_2 oolswebhtml
and tried opening the output through the url
<<<server_name>/forms/html/filename.extn>>>
however i was not able to add new virtual path here .
i m using oracle d2k i want to open a pdf file given proper path of C:Program FilesAdobeReader 9.0ReaderAcroRd32.exe but i want to use only AcroRD32. exe without using proper path how i use it
I have noticed several posts here on the topic of image path in APEX.I have just upgrated to APEX 2.2.3,Uploaded an image via the application into the default images are, nothing too fancy,Trying to show this image in the logo area of the application, The image will not show.
This is hosted with a hosting firm, so I am not running the software on my own, just administering the workspace.In application user interface, I have the Logo field set to:
also, and same issue.When I want to assign an image to a list item, it works because I simply have to pick/select from available images in the folder.But in this case, there is no selecting of the image as an option. I must supply the path.Read the documentation, and some cases here, and still no solution. This seems to be a known issue.