Get the filename with utl_file package
HelloI'm running on oracle version 10.2.0.3.0.
Are there opportunities scan the oracle Center and get all the file names in plsql table using the utl_file package?
Thank you!
Cann't do you with UTL_file, you use java or other external language. as
create or replace type List as table of varchar2(255);
/
create or replace and compile java source named "FileList"
as
import java.io.*;
import java.sql.*;
import oracle.sql.*;
import oracle.jdbc.driver.*;
public class FileList
{
public static ARRAY getList(String directory) throws SQLException
{
File path = new File( directory );
Connection conn =
new OracleDriver().defaultConnection();
ArrayDescriptor descriptor =
ArrayDescriptor.createDescriptor( "LIST", conn );
return new ARRAY( descriptor, conn, path.list() );
}
}
/
CREATE OR REPLACE FUNCTION GETFILES_FUN( DIR_PATH_V VARCHAR2) return List
AS language java name 'FileList.getList(java.lang.String )
return oracle.sql.ARRAY.ARRAY';
/
select * from TABLE ( cast (GETFILES_FUN( 'c:\\' ) as List) );
Concerning
Singh
Tags: Database
Similar Questions
-
I can't create a shortcut to the site on my desktop, when I click on the url bar I can drag on the browser to open a new, but as I drag him on my desktop I get the circle with the line through it, one that looks like a no entry sign. Help
Try to drag the image to id web site (favicon) on the left side of the address bar, instead of the URL.
-
C20/SX20: is there a way to get the cdr with loss/jitter of the stats?
I'm trying to get a report with loss/jitter, but doesn't cdr can not find a way to do it.
(a) TMS is able to report COR but only on the participants/duration/encryption/protocol of appeal
(b) C20 web gui has information but only with a number of clicks on and only for a call each time
(c) API C20 (cli) I found some commands, but nothing for the loss/jitter
I tried xstatus Diagnostics appeal channels-> only for calls in progress.
tried xHistory recent CallLogs | Call-> nothing usableIs it possible to get the cdr with jitter/loss for each C20/SX20 counters in a framework?
Methods to obtain these data is exactly what you have listed and must be carried out during the call.
-
Get the date with the millisecond of the table
I want to get the date with milliseconds in table format in the variable. How to get there?
SQL > create table test_date (col1 date);
Table created
SQL > insert into test_date values (sysdate);
1 row inserted
SQL > commit;
Validation complete
SQL > select * from test_date;
COL1
-----------
18/12/2009
Here I have to get datewith "millisecond" format and put it into the variable varchar2 (50) and pass this
to Java.
SQL > select to_char (COL1, ' mm/dd/yyyy hh24:mi:ss. FF') of test_date;
Select to_char (COL1, ' mm/dd/yyyy hh24:mi:ss. FF') of test_date
ORA-01821: date format not recognized
SQL >
Thank you
Khaldiuser601042 wrote:
I want to get the date with milliseconds in table format in the variable. How to get there?SQL > create table test_date (col1 date);
Your data col1 type should be TIMESTAMP.
See you soon
Sarma. -
Get the installation with a product key files.
I am trying to transfer my copy of windows 7 from one PC to another, but I don't have my installation CD anymore. I used the MagicalJellyBean keyfinder to get my license key, but when I go to http://www.microsoft.com/en-us/software-recovery to get the .iso file, it gives me an error saying:
"Error".
We had a problem with the request for approval. "Please ensure that your product key is a product supported by this site and has been entered correctly, and then try your request again.
I had a friend also try with a key he knew must be valid (never used), and he had the same error, if someone could provide insight as to why he does this?
For 5 years, Microsoft made it fairly easy for users of the Windows 7 operating system to get reinstall media. If you have lost your support disc or installation retail collection; either it has been damaged or defective; You can download a copy of the edition that you have licensed from a membership site called Digital River. More recently, Microsoft ended the availability to reinstall media that you can download as a. File ISO in Digital River, which is a digital reproduction of an optical disc.
It was particularly convenient for people who could not easily get the manufacturer's recovery media, did not want to pay the fees required to get or preferred a clean configuration without the software packaged manufacturers or even a recovery partition does not work. It's easy to use, all you had to do was reinstall and reactivate using the product key located on the certificate of authenticity and download all the drivers on the manufacturers website.
Given that this option is no longer available, what are your options? See the article for more details:
-
Unable to get the max with Intel pro 3945ABG card Wlan download speed
Grettings all,.
I have, as the shows theme, a model of router Philips SNB650 and Intel pro 3945ABG wireless card.
The card supports up to 54Mbps while the router can handel upp to 108mbps. The router is in the same room as my laptop and I recive full force and 45mbps connection. I also have an internet connection of 100/10 Mbps (100 downwards, up to 10). The problem is that I can never reach maxlimit when I download files.One I download since has the same connection as me, and through him, I get 1.45mbps, which is normal with our two connections. However, when I download it and other sources, I never reach more than 1.45mbps a total, counting all together downloads. So when I download 1.45 my brother and someone else, something with connection equalent, the download speed of my brother will decrease, as well as the other connection.
I contacted Philips suport and asked if he could be a setting in the router which does the job in this way, but the answer I got was that I should turn on max-double-sided. I know where to find it, even if they described in their message. Network connections-> network-> properties-> advanced card and it make the change with the duplex mode. But the only option for windows, built in firewall.
I searched on the net for possible solutions, but found nothing. However, I found a few tips about the wireless network card. And that's to go to the device run-> ECS-> NIC in question and make a few changes, such as: Power management (max game, have you tried other variants), roaming Aggressivness (set to max, have you tried other variants) and transmitting power (max by default, tried other variations).
None of the above configurations makes no difference to my network speed. So, now I turn to you, to see if anyone has a solution. Is there a way to change the duplex mode for all wireless network cards?
Perhaps I should mention that I have the latest drivers for my network card, but he had the same problem with the 'old'.
Thanks in advance,
/ MartinHello
I would try to explain what I understand what you're saying.
Even with a 100/10 connection does not mean what download you to. There are a few Web sites on the internet that test true download you have. You might want to try one, because I never downloaded to my max download rate.
It entirely depends on many variables. The Web site you download from (they could cap their downloads to customers at 1 Mb if they chose) etc. Could be your ISP that has the problem etc.
I doubt the computer or settings are the problem. Call your service provider and ask them what the problem is.
-
I click right-properties and I get C:\Windows\system32\rundll32.exe Application not found.
I tried to download fixit and got the OPEN WITH menu.
It sounds like your .lnk and/or your .exe file associations may have been lost.
You can try to fix the ".exe" and ".lnk" file associations:
'Windows XP file Association problems'
<>http://www.dougknox.com/XP/file_assoc.htm >or you can try to do a system restore to a point in time before you had this problem:
"How to restore Windows XP to a previous state"
<>http://support.Microsoft.com/kb/306084 >
If you have a .exe association problem, you may need to run the restore of the system from the command prompt:
"How to start the System Restore tool by using the option of safe mode with the command prompt in Windows XP"
<>http://support.Microsoft.com/kb/304449 >HTH,
JW -
Get the .exe with LaunchExecutable() return value
Hello
I try to get the return value from an .exe file started with LaunchExecutable(). Do you think it is possible or am I wrong?
Thank you!
Adrien T.
Adrien:
If you run the CreateProcess() executable, you can then use GetExitCodeProcess() to read the results.
See more details here: http://digital.ni.com/public.nsf/allkb/E250246D65A6A18D8625659F0065F310
Note that you must have the Windows SDK (aka Win32 API) installed to use CreateProcess/GetExitCodeProcess. The SDK is provided with CVI, but is not installed by default. If you have not installed, reinstall CVI, selecting only SDK or Win32API (depending on the version of the CVI you).
-
Why do I get the "open with" screen every time I try to open a program?
Whenever I try to open a program it shows full-screen. As for example... I opened firefox and it comes up with the open with screen so I take the option of firefox, then it said Open firefox.exe. He said: ' you have chosen to open firefox.exe which is a: application to: C:\program files\mozilla firefox would you like to save this file? "so I press Cancel because it's my only option and then I can use it. So if I try to open anything up as OBJECTIVE online, I get an error message saying "application not found" I push OK and then work.
Hello
· What is the number and the model of the computer?
· Do you remember all the recent changes on the computer before the show?
· What is the service pack installed?
1. try the steps listed in the link below: cannot open files with extensions such as.exe, .com, and.lnk on a Windows XP computer: http://support.microsoft.com/kb/923077
2. online virus scanner and check if any malware or virus detected on the computer activity. You can run the scan for viruses online from the link below: http://www.microsoft.com/security/scanner/en-us/default.aspx
NOTE: Make sure that you select the correct version of the operating system before downloading the scanner)
-
I can't download itunes on my computer its gives me an error saying "this installation package cannot be opened. "Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid windows installer package" can anyone help
Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7
http://support.Apple.com/kb/HT1923Uninstall software, remove programs and solve uninstalling problems
http://www.revouninstaller.com/Remove and reinstall iTunes, QuickTime, and other software components for Windows XP
http://support.Apple.com/kb/ht1925Hello questions, see if that helps: http://www.raymond.cc/blog/archives/2008/02/10/how-to-uninstall-or-remove-bonjour-mdnsresponderexe/
Problem installing iTunes or QuickTime for Windows
http://support.Apple.com/kb/HT1926Turn on Windows 7 'Compatibility Mode' to iTunes:
http://www.PCWorld.com/article/188534/turn_off_windows_7_compatibility_mode_for_itunes.htmlWindows reports that iTunesSetup.exe is not a valid Win32 program
http://support.Apple.com/kb/TS1406First of all check if you have a version of 32 or 64-bit Windows:
1) click the Start button, right-click computer and then click Properties.
(2) in the system, see the system type - it will say either 32 or 64 bits.
(3) download the appropriate version using the links.ITunes download (32-bit):
http://www.Apple.com/iTunes/download/Download 64 - bit:
http://support.Apple.com/kb/DL1037Make sure that the "Windows Installer" service is running, or force start to begin.
(1) open run, and type services.msc, and then press ENTER. You can also go
Control Panel/Admin Tools/Services.(2) locate the Windows Installer in the list of installed services.
(3) check that the status is "started".
If the condition column is empty, right-click Windows Installer, and then select start.(4) If you get the error trying to force start the Windows Installer service,
and then change the Startup Type to automatic (the default value is 'Manual').
and then restart the computer.(5) very Installation Service runs after you restart the system.
Also:
Forum of Apple's Itunes: you can find a solution (if none of the above is of no help) to your problem when you post on their forum.http://discussions.Apple.com/category.jspa?categoryID=150
J W Stuart: http://www.pagestart.com
-
Get the data with more than one of the desired value
Hello
I need to shoot the records with one value of 'Other' more on delivery days fields.
Delivery of fields are Mon, Mar, sea, game, Fri and Sam that indicates where the item will be shipped. The value can be at home, work, or other.
Examples of data include:
cust_id: 123
Article: newspaper
Mon: Home
Kill: Work
Sea: other
game: Home
Fri: other
Sam: other
And here is my request so far.
Select
cust_id,
agenda,
LUN,
Mar,
Kills,
game,
Fri,
Sam
sum (case when (del_mon = 'o' or del_tue =' o 'or del_wed =' o 'or del_thu =' o 'or del_fri =' o ' or del_sat = 'O') then 1)
otherwise 0 end) as day_ctr
of the customer
Could you please help me with the right formula should I get this?
Thank you in advance...Hello
This should do it:
Scott@my11g SQL>with sampledata as ( 2 select 123 cust_id, 'newspaper' item, 'Home' mon, 'Work' tue, 'Other' wed, 'Home' thu, 'Other' fri, 'Other' sat from dual 3 union all 4 select 456, 'newspaper' item, 'Home' mon, 'Work' tue, 'Home' wed, 'Home' thu, 'Home' fri, 'Other' sat from dual 5 ) 6 --#### True query starts here #### 7 select * 8 from sampledata 9 where ( 10 decode(mon,'Other',1,0) 11 +decode(tue,'Other',1,0) 12 +decode(wed,'Other',1,0) 13 +decode(thu,'Other',1,0) 14 +decode(fri,'Other',1,0) 15 +decode(sat,'Other',1,0) 16 )>1 ; CUST_ID ITEM MON TUE WED THU FRI SAT ---------- --------- ---- ---- ----- ---- ----- ----- 123 newspaper Home Work Other Home Other Other
-
In XP, when you try to open any file, get the "Open with" dialog box
After a virus infection that I cleaned up, I now have the 'open with' dialog box popping up whenever I want to open a file. I tried a restore of the system, but to no avail. What do you suggest to me. Thank you
Hello
Try the methods listed in the section below and check if that helps.
How to change or choose the program that starts when you double-click a file in Windows XP
http://support.Microsoft.com/kb/307859I hope this helps.
-
I try to use Windows DVD Maker and copy/convert a file .avi on a DVD and get the following error message when I try to add a .avi file to the queue. I tried this on multiple .avi files:
****************************************************
0 items added successfully
1 file could not be added
The C:\\...avi file is not valid or is corrupted.
****************************************************
Also, I must stress that I have no problem looking at one/play the file on my computer, so I don't think that the file itself is really corrupted.
I have not downloaded another software to help 'fix' this problem.
This is my first time you try to use this software to create a DVD...
Please advise on what I can to help resolve this problem!
Thank you-
Hi KK33,.
I suggest you try the steps suggested by Irfan H, from the following link and check if it helps:
-
Get the location with the name of the city and the country.
Hi, can someone explain the logic behind this?
Once we get the coordinate of the location using the gps, how do we use to get the name of the city or the country?In addition, what is the difference between 'Place' and "Gps Position" in the authorization?
0o0o
Here you will find more specific information:
https://developer.BlackBerry.com/Cascades/reference/qtmobilitysubset__qgeosearchmanager.html#functio... -
Wants to get the field with emphasis
Hello
I added 5 field list in verticalFieldManager and verticalField added to the screen.
Now the problem is that when I click on the menu I want to know that, on what list field, the focus is?
I used the function on the Menu click event
Field field = MainScreen.this.getFieldWithFocus (); but it always returns the VerticalFieldManager
so, how can I get the index of the listField...?
Thank you
Himanshu Lathiya
Try the getLeafFieldwithFocus() method. It will always return no Manager field. You can compare using the instanceof operator.
Maybe you are looking for
-
No cellular service after installing 9.3.1
Service boxes is not available after installing 9.3.1 on iPad 2
-
Keynote app seems to have been broken by Watch OS 2.2 and or iOS 9.3 updates. I used to check my presentations keynote with my watch. More. App closes on the watch before it connects to the iPhone. Someone at - he found a solution yet? I reset, reboo
-
Have recently acquired a used DC7600sff and I installed an operating system, I find editing F10 helmed by a request for a password/key entry. As I have no way to find the original person who put in place I cannot access F10. How delete/remove theF10
-
Try to connect my Sony PVR/DTT player to my Qosmio G40
I'm trying to connect my Sony PVR/DTT player to my Qosmio G40 laptop via windows media player.Once I have a picture on the S-Vidoe option in the set up TV signal and select next it say s it can not find the IR control cable and does not allow me to c
-
Hello I am a beginner in LabView and have questions about the integration of a xy chart. I'm trying to get into a cycle of hysteresis for different frequencies from the data collected in Labview. To do this I need to integrate the dM/dt (H) function,