Access Oracle (UNIX) Directory From .NET?
Oct 27, 2009
We have an Oracle 11g R2(UNIX) server. A directory was created on this UNIX box for the purpose of uploading/downloading CSV files.I need to access this directory, programmatically from VB.Net in order to search for a specific file (a log file more precisely) and then open it it programmatically in Notepad from my Vb.Net application. I should also be able to delete or copy it to my local drive.I am trying to find a VB.Net code sample that would allow me to implement this: Read/Write/Open files on an UNIX directory.
View 5 Replies
ADVERTISEMENT
Aug 4, 2010
I have a two ComboBoxes. ComboBox #1 displays...
Directory 1
Directory 2
Directory 3
Whenever I pick any from Directory 1, Directory 2, or Directory 3, I will display all sub-directories of that chosen Directory onto ComboBox #2. If I choose Directory 1, I will populate ComboBox #2 with all the subdirectories of Directory 1, and so on.
[Code]...
I hoped that I did explain that properly. Let me know if I need to clarify something up. Oh and let me stress it again, I'm trying to get the directory structure from a UNIX-based system and I'm trying to display it in VB (windows-based).
View 2 Replies
Jul 6, 2011
I was recently assigned to do some research on how to approach a project. Right now we have an old program written in tcl. From this tcl program ( running on VMS client computer), we are able to run unix commands to execute processes on a unix server. This is done via tcpip. Now, we are thinking of making upgrades to this system . We are wondering if this kind of thing was possible with Visual Basic. Are we able to run a VB program on windows computer to run UNIX commands on a server? If so, what issues might be brought up. If anyone has even the briefest guideline or tip on this,
View 3 Replies
Jan 8, 2009
Is there a way to run a unix script on a unix machine with VB .NET without using a third party software like Rebex ssh?
View 4 Replies
May 17, 2012
I have a table in Oracle with a column userid and i have a userid column in Active Directory. based on this i want to query the Network ID and update in one of the Group in the Active Directory.
View 1 Replies
Apr 17, 2012
have a table in Oracle with a column userid and i have a userid column in Active Directory.based on this i want to query the Network ID and update in one of the Group in the Active Directory.
View 1 Replies
Jun 10, 2009
How to access data from Ms-Acess and oracle?
View 4 Replies
Mar 1, 2012
I need to code the following:
1.Connect to an Oracle database.
2.Execute a query.
3.Insert the query result into an Access database table.
I�m able to solve points 1 and 2. how to code point 3?
View 2 Replies
Mar 1, 2012
I need to code the following:
1.Connect to an Oracle database.
2.Execute a query.
3.Insert the query result into an Access database table.
View 7 Replies
Nov 22, 2011
i have an application with access .accdb as backend.How can i convert the backend to OracleBL (Visual Studio 2010 Ultimate)
View 3 Replies
Nov 9, 2011
Why does the code below cause a memory leak when executed? The error only happens when I use Microsoft Visual Studio 2005 or 2008 in vb.net language. If I use C # is, there is no problem.
Dim strCon As String = "data source=SRV-10G;user id=Test;password=1234"
dim factory as DbProviderFactory = DbProviderFactories.GetFactory("Oracle.DataAccess.Client");
Dim conexao As IDbConnection = factory.CreateConnection
conexao.ConnectionString = strCon
[Code]....
View 2 Replies
Mar 29, 2012
I recently upgraded my system to Windows 7 64bit and ever since then I have had nothing but issues with my code attempting to access an Oracle database. I was using msdaora for my connection string however that does not work in 64bit. I changed over to OraOLEDB.Oracle which everything I can find on Google says to use however it fails every time. I have installed Oracle 11g 2 times now and even tried reinstalling VB.net 2010 and still no luck.
Here is my connection string....
Code:
MyConn.ConnectionString = "Provider=OraOLEDB.Oracle;Server=emsp.grhq.XXXX.com;Data Source=emsp;User Id=XXXX;password=XXXX"
And I am inporting....
Code:
Imports System.Data.OracleClient
Yet when I try it says...
Quote:
Provider cannot be found. It may not be properly installed.
View 10 Replies
Mar 4, 2010
I am reading a csv file in to a datatable in vb.net and making a few checks and appending an extra column. I then want to perform a bulk insert using microsofts Oracle.DataAccess (no choice in this) to an Oracle database. what would be the best way to perform this as there is no bulkImport like in SQLserver.
View 2 Replies
Dec 29, 2009
can you tell me,how can i add a provider for oracle(Microsoft Provider oledb for oracle).Actually i had Microsoft ODBC for oracle but i want to add a provider above mention.
View 2 Replies
Mar 25, 2011
I having a program built in VB.Net and would like to take in the users windows name and then compatre that with a security group in AD, if they are in a certain group then redirect them to the next page otherwise block them.I have tried many ways using many different snippets of code from different forums, but cannot find a code piece of code that works?
View 6 Replies
Jul 23, 2011
My plan is to create a form containing a directory tree showing the 8 Diskdrives in a visual way including the subdirectories. Maybe this is old fashioned and modern suggestions are Welcome. I use Access to store and view movies and pictures.
View 2 Replies
Feb 18, 2012
[code]...
'How to show status access if directory access is denied = true '
View 3 Replies
Mar 28, 2009
I have to convert a data (not the current date) to GMT and represent it as a Unix Epoch.This is what I'm trying - it returns something that looks correct - but I'd like to know if anyone with more experience knows if I am doing this correctly.
Friend Function GetEpoch(ByVal dDate DateInteger
Return (dDate.ToFileTimeUtc DateTime(1970,10000000
[code].....
View 1 Replies
Jan 12, 2008
Is it possible for vb.net to run a unix script?
If so , how to? Which namespace should I use?
View 5 Replies
Mar 10, 2010
I need to access Mozilla FireFox's cache, but the path to it is different in each PC. Well, kind of.
This is the path: C:Users%USERPROFILE%AppDataLocalMozillaFirefoxProfiles*.defaultCache"
The ".default" folder will always have that extension, but the asterisk part is different on each PC.[code]...
View 2 Replies
Sep 18, 2010
I want to know if it is possible to get the Unix Timestamp in VB 2008? I have no idea on how to get it.
(Unix timestamp is the amound of seconds passed since 1 January 1970 00:00)
View 1 Replies
Jul 6, 2010
I'm writing code to parse through a list of file directories and identify which AD groups have access. That info is available in the operating system under the file properties security tab, but I can't find any code examples that retrieve that info in vb.net (or c#). Anyone have code that will do that?
View 1 Replies
May 17, 2009
I am using FolderbrowserDialog to access a folder. when I use FolderBrowserDialog1.RootFolder = string variable, it give me an error message"Conversion from string "x:Patients_Physics_Documents" to type 'Integer' is not valid."(1) how do I pass a predfined folder name to root folder?(2) after I use this dialog box and click ok, how do I obtain the name of this directory?
View 2 Replies
Jun 21, 2010
I am trying to access my website and display the .mp3 files in a certain directory. Through this, i want to have windows media player play the selected file. Either through list box, or combo box. I have tried many different ways. How in the world am i supposed to do this? I do not just want to set the windows media player url to a certain file, like i said, i am trying to get to select the file (in some sort of dialog box) and play that.
View 4 Replies
Apr 27, 2011
I have an ASP.Net portal like application with multiple roles. I have placed the subpages of that role in its own directory adding a web config with an authorization allowing only that role. I have css and javascript in the root directory that can not get access inside the protected role folders. How can I allow these folders css/js to have access to all roles. Sorry if this is easy question I have searched but I am rather new to ASP.NET
View 1 Replies
Oct 25, 2011
I want to programmatically change ACL for all the subdirectories into a containing one. Specially when ACL of a particolar user is found I want to duplicate that ACL, change the security identifier and add the rule.
Look at this code:
cDirectoryInfo = New DirectoryInfo(strPath)
cDirectorySecurity = cDirectoryInfo.GetAccessControl()
cAuthorizationRuleCollection = cDirectorySecurity.GetAccessRules(True, True,
[Code]....
View 5 Replies
May 9, 2012
I wanted to create some CLR functions that will access Active Directory, but I discovered I can't add a reference to "System.DirectoryServices" to my CLR project.
I googled it, and found that I have to add the AD dll as an Assembly to the SQL Server. Like so:
CREATE ASSEMBLY [System.DirectoryServices]
FROM 'C:WindowsMicrosoft.NETFrameworkv2.0.50727System.DirectoryServices.dll'
WITH PERMISSION_SET = UNSAFE
GO
The problem here is that I have to set the "PERMISSION_SET = UNSAFE" to the dll... this means that I have to set the database as "TRUSTWORTHY ON", and this opens a can a worms!
View 5 Replies
Aug 18, 2010
In the code below I got a UnauthorizedAccessException unhandled, access is denied to the directory
'c:WindowsSystem32LogFilesWMIRtBackup'.
A first chance exception of type
'System.UnauthorizedAccessException'
occurred in mscorlib.dll.
How can I make the search only in allowed access directory's???
Dim searchResults As String() = Directory.GetFiles("c:", "*.idw", SearchOption.AllDirectories)
For Each result As String In searchResults
MessageBox.Show(result)
Next
View 3 Replies
Aug 17, 2009
For the application im writing i need to access files on a network server. I have tried different ways, but none of them seem to work.When i try using impersonation i keep getting logon failure (1326). I did try few solutions i found on the net but none seem to work.
View 1 Replies
Aug 8, 2010
I need to make some system calls in my C# applications.Unfortunately, this behaves differently on Linux than on UNIX.Now I used to switch the Operating system at runtime like this
If Environment.OSVersion.Platform = System.PlatformID.Unix Then
' Linux/Unix '
ElseIf Environment.OSVersion.Platform = System.PlatformID.MacOSX Then
[code].....
View 1 Replies