USB Flash Drive -- tnsnames.ora

I would like to be able to run the SQL Developer from a USB flash drive. Everything works great except I have a tnsnames.ora file referenced in my connections.
Does anyone know if there is a location in the SQL Developer folders that I can place the tnsnames.ora file, so that it would be read by SQL Developer. I would like to be able to plug in the USB drive without setting TNS_ADMIN or having oracle home, and was wondering if the software would also check a directory as an option.
The reason I like the tnsnames.ora, is that I have a RAC'd environment with multiple servers and the simple connection tab does not allow me to enter multiple servers. Thanks.

Hello all,
I'm evaluating SQL Developer today (7/11/2007) and I wanted to describe a technique my company uses to start apps that require an Oracle environment to be created prior to startup. We use a command file for this purpose. The .cmd file resides in the same folder as the application executable (sqldeveloper.exe in this case) and looks like this -
------------ sqldeveloper.cmd ------------------------------------------------------------------------
@echo off
setlocal
REM cd to the system drive just in case..
c:
cd %TEMP%
REm this file sets some Oracle variables
call X:\Oracle.10gR2.EN.001\dba\oracle.cmd
REM cd to the location where sqldeveloper was placed
cd "C:\Program Files\sqldeveloper"
REM specifiy the folder where the tnsnames.ora resides
set TNS_ADMIN=X:\Oracle.10gR2.EN.001\network\admin
REM start the app, in this case SQL Developer
start sqldeveloper.exe
The file X:\Oracle.10gR2.EN.001\dba\oracle.cmd in the call command above contains -
set ORACLE_HOME=X:\Oracle.10gR2.EN.001
set TNS_ADMIN=X:\Oracle.10gR2.EN.001\%ORA_SETUP%\%ORA_NAMES_SRV%
set ACCESS=C:\Program Files\Ora01.102
path %ACCESS%;%ORACLE_HOME%\bin;%windir%\System32;%windir%
set API=%ORACLE_HOME%\dbs
set OLEDB=%ORACLE_HOME%\oledb\mesg
set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
set SQLPATH=%ORACLE_HOME%\DBS
set SQLPLUS=%ORACLE_HOME%\sqlplus\mesg
set OO4O=%ORACLE_HOME%\oo4o\mesg
set NLSRTL33=%ORACLE_HOME%\ocommon\nls\mesg
set NLSRTL32=%ORACLE_HOME%\ocommon\nls\mesg
set ORA_NLS32=%ORACLE_HOME%\ocommon\nls\admin\data
set ORA_NLS33=%ORACLE_HOME%\ocommon\nls\admin\data
The X: drive above is a network drive where Oracle utilities are installed, so I don't actually have to have them installed on my PC. The tnsnames.ora is also maintained by the DBA, so no one needs to have it (or the Oracle client) on his/her own PC. This drive is automatically mapped to my PC at startup.
When I start up SQL Developer by double-clicking on a shortcut pointing to the .cmd file, it reads the tnsnames.ora specified above. When I switch the Connection Type in the Connection dialog box from Basic to TNS, my tnsnames.ora entries appear in the Network Alias dropdown.
One issue I'm noticing with this approach is that when I right-click on the Connections node and select New Connection, it takes a few minutes to read the tnsnames.ora, and when it finally returns control, it lists each tnsnames node multiple times in the dropdown. None of my other apps (TOAD for example) do this. However, this is a minor issue, shouldn't stop me from using the tool.
Hope this helps..

Similar Messages

  • MSI P965 Neo-F (MS-7235) problem booting from USB flash drive

    Hi, all!
    I was wondering if someone can help me. I am trying to install Windows 7 x64 on my 320GB HDD that is connected to my MSI P965 Neo-F (MS-7235) mobo (The CPU is a Core2Duo 6600 with 6GB of RAM). I created a bootable USB 8GB flash drive using Microsoft's "Windows 7 DVD USB Download Tool" and bootsect.exe (Needed to create a boot sector on the USB drive) from the MS store. I successfully tested the resulting bootable USB drive using freeware MobaLiveCD (Sorry, you'll have to Google "mobalivecd" since this forum doesn't seem to allow external links) running under Windows XP SP3 x86 (32bit). Under MobaLive's QEMU, Windows 7 setup loaded its files and produced an error message basically saying that it could not install Windows 7 x64 under an x86 OS (No surprise there since QEMU is emulating a 32bit processor - The point is that the bootable USB drive I created works).
    I then went into my mobo's CMOS and under Advanced BIOS Features -> Boot Sequence -> 1st Boot Device, set the value to "USB-HDD" and rebooted my machine. The USB drive probably was not detected by the mobo under that setting because it proceeded to boot from my HDD which is the 2nd Boot Device. I repeated the same process using each one of the  four USB ports in the rear of the mobo (I don't have the optional USB panel that the MSI users manual mentions) to no avail. I also tried setting the 1st Boot Device to "USB-FDD" and repeated the process for each USB port but the mobo still will not boot from the USB drive (It does not recognize it). When I set the 1st Boot Device to "USB-ZIP" and rebooted, the mobo hangs after "Verifying DMI Pool Data ..." which is no surprise since I am not using a USB ZIP drive but a USB flash drive. It appears that under that setting, it recognizes that there is a USB device attached but it is expecting a response (From a USB ZIP drive). I had no idea it would be this frustrating to boot from a USB flash drive! If anyone knows how to make this mobo boot from a USB flash drive, please let me know. Any assistance would be greatly appreciated. Thanks!
       

    Quote from: RemusM on 12-June-14, 17:51:30
    The P965 Neo motherboard is 8 years old, so don't expect miracles. .... You need to format the USB stick in the proper way. You may use this utility to do it: hxxp://www.prime-expert.com/flashboot/ Also, it's a good idea to use the first (USB0) connector (controlled by Intel ICH8) for the USB flash drive. Good luck.
    Thank You for your fast response, RemusM!
    I'm not looking for a miracle. I'm just looking for a mobo that does what it is supposed to do: Allow me to boot from a USB flash drive (I don't think that is too much to ask for even from a board that was made in 2006)!
    Thanks for recommending FlashBoot. I see under their "Why FlashBoot" section that it "... does not shift to user the burden of choice between "USB-ZIP" and "USB-HDD" at format time and proper BIOS setup at boot time. ... and every USB disk is formatted in such way that it will work in every environment properly, regardless of current BIOS setting.", so I will give it a try and let you know about the results afterwards.

  • Efi update via usb flash drive?

    I would like to know if there is a way to perform an efi update via a usb flash drive?

    tried the latest 2010 build, got the same problem: 'missing operating system' and again in ubuntu the flash drive is an unknown filesystem.
    tried again on a different computer and got the same error.. how frustrating!
    edit: just to clarify i used the following command 'sudo dd if=path/to/image.img of=/path/to/device' i also changed directory to where the image file is and tried again without absolute referencing the path for 'if=' both of which returned that the command had been completed successfully in terminal.
    edit: tried using again with a different USB stick (Maxell 4GB), again terminal returned 'x amount of files successfully copied to sdc1'.
    .. something different happened this time, i didn't get the same error as before, instead the text 'grub' appears with a blinking cursor. nothing else.
    Last edited by muckymouse (2010-05-07 23:54:10)

  • Move a big file from a mac system to a windows 8 laptop usb usb flash drive

    Hello i am using a 32 gb flash drive to copy a 10gb file from mac os x to my flash drive. Then i want to insert that flash drive to my windows 8 pc and store it there.
    I cant use a network connection to transfer files because i dont have a ethernet cable or an network connection yet. So i must use a smart procedure for making my mac communicate with my pc at home. I cant use any other types of sharing methods except for a usb flash drive. So i know that the mac cannot detect NTFS filesystems and i cant use FAT32 even though mac recognizes it because FAT 32 is unable to store large files abotu 10GB of size. Now i have to use i think ext3 or ext4 or also HFS but when i successfully copy the file from mac to flash drive then insert it into my pc, the windows 8 OS will not detect the windows pc because i dont think windows is made to detect these filesystems by default.
    So i have tried using, HFS explorer and ext2/ext3/ext4 volume manager and ext2exploer or GPARTED live cd's latest version's copy and paste functions but they seem to not work propely and there is a problem, i cannot  see any flash drive in HFS explorer even though my drive is formatted as hfs.
    So i need a program that can detect HFS or ext3/4 formatted flash drives and is able to copy a file from there straight to my windows 8 NTFS hard drive or a folder in it.
    I have checked my firewall settings and defense settings. I am the administrator of my pc and i have even removed the windows password and the mac one but still i get lots of issus JUST to copy a file between a pc and a mac. Remmember that i have to copy files FROM a mac system running snow leopard to my windows 8 pc not the OTHER WAY were i have to copy from the windows to a mac.
    Please tell me as much as possable about software out there and tell me software that costs money. I am able to buy any good software for doing this.
    Thanks in advance.
    raghav

    Take the flash drive to the PC and format it as exFAT.
    (95473)

  • How to install USB flash drive in windows 7

    Could anyone please help to install USB flash drive to Windows 7. This will enable me to hook up keyboard and mouse to my laptop. Thank you so very much for any assistance.   

    Hi,
    Could you please help us to know what is your computer, Please use the following instructions for find out the model/product of your machine:
      http://h10025.www1.hp.com/ewfrf/wc/document?lc=en&​cc=us&docname=c00033108
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Follow up question on recovery data on USB flash drive

    HP instructions say the 32 GB flash drive should NOT be branded as Windows 8 compatible.   I bought a Sandisk 32 GB yesterday for  $20 on sale,   but it says on the back it is compatible.
    Other more/or less expensive  flash drives did not address whether compatible with Windows 8.
    I have  Windows 8.1
    Thanks in advance for your help...
    This question was solved.
    View Solution.

    Hi,
    If the flash drive is listed as 'Windows 8 compatible' it cannot be used - the reason is because the HP Recovery Media creation software looks for an external device and flash drives marked Win 8 compatible show as internal drives. 
    In the example below, the 32 Gb usb flash drive 'Dave G' shows as an internal drive which cannot be used, while the usb flash drive 'Removable Disk H' would work.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • How Can I Back Up My iTunes Library To A USB Flash Drive?

    I have around 5GB of files in my iTunes Library and I don't want to have to use multiple blank cds (dvds) to get my files onto my new iMac. On top of that I can't my cd-writer doesn't work. So I bought an 8GB USB Flash Drive and I just want to know how I can get my iTunes Library to back up to my USB Flash Drive.

    Is all your music, as well as your iTunes folder, in My Music? If so, copy your My Music folder to the drive. That will back up all the songs, and the iTunes library files, which happen to be located in iTunes/iTunesMusic.
    In case you are asking how to copy: Close iTunes. Insert the USB drive into the machine and open it like a folder. Then you can use drag and drop to put stuff in it.

  • How do I browse & play .mp3 files from a USB flash drive using Labview 8.0?

    I'm a tester & want to test USB flash drives connected to PC.
    I want to browse the file system & playback the audio files, .jpeg files etc in the USB drive. I've Labview 8.0. When I searched for some examples or VIs which can detect the USB flash drive, couldn't find any. So if you could point me in the right direction, I can find a solution to my problem.
    Thanks.
    Solved!
    Go to Solution.

    You probably won't find specific examples for this.  A USB flash drive is mounted by the OS and appears as a new memory storage device to all software on the PC, including LabVIEW.  You can certainly write a LabVIEW program to open files on the stick and play/run them but I would create a VI that wrote files to the stick and then read them back and checked them for bit-level errors.  Keep in mind that your OS might be doing parity checking under the hood which would make your test rather meaningless.
    BTW, testing memory by looking at pics or listening to MP3s would be useless of course.  A human can't see or hear bit-level errors in a high bandwidth data stream.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Looking for All on one with USB Flash Drive Print/Scan support

    I am looking for an All in One Print/scan/copy. It should support print from USB Flash drive and scan to the same.
    Thanks

    Hi,
    You may check the HP Officejet 6600/6700 models which support USB Flash drivers.
    You may find the flash driver specifications listed within the Memory Device specifications below:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03058896&cc=us&dlc=en&lang=en&lc=en&product=505...
    As well you may check the HP Officejet 8600 Series which supports both USB Flash Driver and Memory cards, its specifications can be located below:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02858465&cc=us&dlc=en&lang=en&lc=en&product=432...
    Both of the products above provide Print, Scan, Copy and Fax functionality.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • As a new MacBook user I plug in my USB Flash Drive but don't know how to access its contents. Please help. Thanks.

    as a new MacBook user, when inserting my USB Flash Drive, I do not know how to access its contents. Please help. Thanks.

    Open a new Finder window, Finder > File > New Finder Window, and it should appear on the left under Devices.
    If you don't see it there, or to get it to show up on the Desktop: Finder > Preferences... General tab, check External disks to have it show on the Desktop,  Or Sidebar tab, check External disks under DEVICES.

  • After I installed Lion, my MacBook Pro can no longer detect my external hard drives or my USB flash drives. What should I do?

    After I installed Lion, my MacBook Pro can no longer detect my external hard drives or my USB flash drives. What should I do?

    And me -- My Mac at work running Snow Leopard reads the drive normally. My home Mac (on Lion) can't even find it....
    Yet another Leo let-down.....

  • USB Flash Drive no longer shows on Desktop, it does appear in disk utility. I recently upgraded to 10.8 from 10.6 on both iMac and Macbook and the drive does the same on both.

    I updated my Snow Leopard to Mountain Lion and have had only minor issues with some software but I plugged in a USB flash drive and went to format it, it now appears only in disk utility and not on the desktop. I have tried restarting and reseting with the drive in and out, I tried it into my macbook and it does exactly the same there. I can't do anything in Disk Utility so can't access it in any way and it says errors if I try to eject it from DU. I'm not normally stumped but I can't figure this out at all. I'm hoping that someone here could give me an idea that I haven't thought of as it's a large Flash Drive and I really would like to keep using it.
    Thanks in advance for any help anyone can offer.

    If it has the same (bad) behavior on two different systems then there is a very good chance that the  drive is toast.
    BTW you'll get better response to your questions if the question actually reflects the problem you are having. In this case it would have been better to say you couldn't access the drive rather then that it doesn't show on the desktop.
    regards

  • USB flash drive not recognized by Macbook Leopard 15.1

    Hi
    Until last week my macbook was able to recognize my USB flash drives and my IPOD in Itunes and also as an independant drive.
    Last week it started to give trouble. It simply does not recognizes any USB flash drives I plug in as well as my IPOD music into Itunes.
    This is very strange since it is recognizing the HP all in one. It scans and prints. I purchased this HP all in one last week and installed the software for it. I am not sure how this could have affected that I cannot mount any USB drives.
    Can you please help? Anyone?
    Thanks.
    Viri

    Hi
    Welcome to Apple discussions
    Can you see the devices if you use Utilities/Disk Utility? Maybe you need to reformat them. Take care, reformatting will lose the data on the device.
    Bob

  • If i use a usb flash drive which is both os and windows compatible can i transfer files from my mac to a windows pc using the same usb flash drive?

    if i use a usb flash drive which is mac os and windows compatible can i use it to copy files from the mac to a windows machine. i have to do some training abroad and wnat to take the files on a usb from the mac but they will only have a windows operating system available to me.

    Generally, it's not the flash drive that makes it compatible, but the formatting used on it.  In Disk Utility on a Mac, the format is called MS-DOS (FAT).  In Windows, I believe it is called FAT32.
    A USB flash drive formatted that way should be readable and writable on both Mac OS X and Windows.  But you may want to try a "trial run" before relying on it for the trip.

  • [SOLVED]USB flash drive no longer showing up in /dev

    My USB flash drives are no longer showing up in /dev. I also don't see them in /dev/disks/... either. Dmesg outputs:
    [731969.826862] usb 1-1: new high-speed USB device number 5 using ehci_hcd
    Any ideas on where to start?
    Last edited by nadman10 (2012-09-26 22:12:22)

    ls -l outputs:
    Bus 001 Device 005: ID 0781:5530 SanDisk Corp. Cruzer
    Couldn't open device, some information will be missing
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 64
    idVendor 0x0781 SanDisk Corp.
    idProduct 0x5530 Cruzer
    bcdDevice 1.00
    iManufacturer 1
    iProduct 2
    iSerial 3
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
    (Bus Powered)
    MaxPower 200mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 2
    bInterfaceClass 8 Mass Storage
    bInterfaceSubClass 6 SCSI
    bInterfaceProtocol 80 Bulk-Only
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x02 EP 2 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 1
    Bus 002 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
    Couldn't open device, some information will be missing
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 1.10
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 8
    idVendor 0x045e Microsoft Corp.
    idProduct 0x0040 Wheel Mouse Optical
    bcdDevice 3.00
    iManufacturer 1
    iProduct 3
    iSerial 0
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 34
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xa0
    (Bus Powered)
    Remote Wakeup
    MaxPower 100mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 3 Human Interface Device
    bInterfaceSubClass 1 Boot Interface Subclass
    bInterfaceProtocol 2 Mouse
    iInterface 0
    HID Device Descriptor:
    bLength 9
    bDescriptorType 33
    bcdHID 1.10
    bCountryCode 0 Not supported
    bNumDescriptors 1
    bDescriptorType 34 Report
    wDescriptorLength 72
    Report Descriptors:
    ** UNAVAILABLE **
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0004 1x 4 bytes
    bInterval 10
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Couldn't open device, some information will be missing
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 9 Hub
    bDeviceSubClass 0 Unused
    bDeviceProtocol 0 Full speed (or root) hub
    bMaxPacketSize0 64
    idVendor 0x1d6b Linux Foundation
    idProduct 0x0002 2.0 root hub
    bcdDevice 3.05
    iManufacturer 3
    iProduct 2
    iSerial 1
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
    Self Powered
    Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 9 Hub
    bInterfaceSubClass 0 Unused
    bInterfaceProtocol 0 Full speed (or root) hub
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0004 1x 4 bytes
    bInterval 12
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Couldn't open device, some information will be missing
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 1.10
    bDeviceClass 9 Hub
    bDeviceSubClass 0 Unused
    bDeviceProtocol 0 Full speed (or root) hub
    bMaxPacketSize0 64
    idVendor 0x1d6b Linux Foundation
    idProduct 0x0001 1.1 root hub
    bcdDevice 3.05
    iManufacturer 3
    iProduct 2
    iSerial 1
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
    Self Powered
    Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 9 Hub
    bInterfaceSubClass 0 Unused
    bInterfaceProtocol 0 Full speed (or root) hub
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0002 1x 2 bytes
    bInterval 255

Maybe you are looking for