SOLVED: ODBC setup without using ORACLE_{HOME,BASE,SID} possible?

Hi All,
I've installed instant client 11.1.0.6 on RHEL linux.I can connect with sqlplus with connection string like
sqlplus user/pass@//host/service. ORACLE_{HOME,BASE,SID}, TNS_ADMIN are not set. That works fine. Can I achieve the same with odbc and isql? I would like to be able to run isql DSN and all the configuration of the DSN should go into /etc/odbc.ini and I shall not set up ORACLE_{HOME,BASE,SID}, TNS_ADMIN. Is that possible? If yes, how?
Thank you in advance.
Regards,
Alexander.
Message was edited by:
user652028
Edited by: user652028 on Aug 26, 2008 2:41 AM

Thank you for the answer!
I tried your recipe and it works! Great!
I wonder if it is possible to take it a step further and connect only providing the DSN and no setup in the environment at all.
All the configuration should be in odbc.ini. Does it make any difference if the application connects using SQLConnect()
or SQLDriverConnect()?
Regards,
Alexander.

Similar Messages

  • How to invoke the app by touching the screen (without using the home button)

    Kindly  provide the solutions for the following issues
    1.       How to invoke the app by touching the screen (without using the home button)
    2.       Estimated lifespan running an iPad3 continuously 24x7
    awaiting for your valuable response.
    Thanks and regards,
    Sathya.

    1.  You can only invoke an app by touching its icon.
    2.  All depends on what your app does.

  • HT201412 Is there a way to reboot an ipod without using the home button?

    My iPod touch 4th gen is unresponsive and needs a reboot, however the home button doesn't work. How can I reboot it without using the home button?

    To reset the iPod without the hardware buttons,
    - Reset network settings: Settings>General>Reset>Reset Network Settings. You will have to rejoin wifi networks and repair BT devices

  • How to use ODBC SQLDriverConnect() without using tnsnames.ora file

    I have an ODBC application that connects to an Oracle 10g database. Currently, my SQLDriverConnect() function call uses the following connection string:
    DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
    This requires an entry in the tnsnames.ora file that looks like this:
    MyDB.world =
    (DESCRIPTION = (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server1.intel.com)(Port = 1521)
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server2.intel.com)(Port = 1521)
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server3.intel.com)(Port = 1521)
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server4.intel.com)(Port = 1521)
    (LOAD_BALANCE = yes)
    (CONNECT_DATA = (SERVER = DEDICATED)
    (SERVICE_NAME = MY_SRVC))
    However, I would really like to be able to connect using ODBC without having to create that entry in the tnsnames.ora file. I have tried to substitute the DBQ=MyDB.world with the entire (DESCRIPTION=..... string from the original tnsnames.ora file, but it returns the error:
    ORA-12154: TNS: Could not resolve the connect identifier specified.
    I have heard others are able to use sqlplus with no tnsnames.ora file and the do specify the entire (DESCRIPTION=.... string on the sqlplus connection string, but is this possible to do using the ODBC SQLDriverConnect() function? If so, do I need to use a different keyword/value pair other than DBQ=?
    Any help on this would be greatly appreciated.
    Thank you.

    How would that work in a load balanced configuration? Take a closer look at the tnsnames.ora example I included in my original post. I have 4 ADDRESS= sections to denote 4 servers that are part of the load balanced environment.
    Also, I'm not familiar with that syntax, I need to use the syntax supported by the SQLDriverConnect() API function, which looks like this:
    DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
    I don't know as SQLDriverConnect() would accept an alternative syntax. But the more important issue here is the ability to specify those 4 servers in the load balanced configuration as indicated by that tnsnames.ora entry.

  • Dual monitor setup without using the ADC?

    Would it be possible to run a dual monitor setup using a DVI splitter cable from my (2009)Mac Pro?
    I've seen some old forums referring to the 2006 models saying that this wouldn't work and instead you'd get the same image on both screens but the newer Mac Pros state they have "Dual-Link DVI ports".
    Just wondering whether this means what I think it means and you can connect two monitors via a dual link cable and get essentially, two monitors running independently as opposed to the same thing on both??
    Hope it's staightforward and me just being slow.

    The GT120 features one Dual Link DVI-I port and one Mini DisplayPort .
    The DVI-I is Dual Link capable, and also can be directly adapted to VGA.
    Single-Link DVI is a serial interface that carries three data bits in each signaling interval, as well as control signals. In general, Single-Link supports displays up to 1920 wide. Dual Link DVI is the same except that it carries six data bits in each signaling interval, supporting displays over 1920 wide.
    DVI screen drawing is very similar to VGA screen drawing, and the data sent are digital "scan lines" left-to-right row data, top-to-bottom with entire screen data sent about every 60 Hertz. Analog VGA signals are sent at the same time on a separate set of pins.
    DisplayPort and its Mini variant are inherently a packet interface, but can be coerced to produce a "Dual Mode" signal that approximates Single-Link DVI. Getting Dual-Link DVI or VGA from DisplayPort interface requires a non-trivial converter than contains chips and requires power.
    Executive Summary:
    If you have one display that is wider than 1920 or VGA, attach to the DVI-I connector with an appropriate cable.
    Running a Mini DisplayPort display from the Mini DisplayPort requires only a cable.
    Single-Link DVI can be had from the Mini DisplayPort with a cheap adapter.
    Dual-Link DVI or VGA requires an expensive Active Powered converter which can cost US$100.

  • Enable ACL on XSAN without using OD. Is it possible?

    I've tried using fsaclctl - but no results. How to enable ACL on XSAN?

    Are you using xSAN 2 or 1.4? With v2, you can stop the volume and open it's settings, checking ACL's. Oddly, I'm curious to why ACL's would make your permissions management easier. It generally in my experience has made it far more difficult to deal with permissions from different macs when enabled since there are additional "layers" of users above those assigned by XSAN directly.
    If you have any OSX Server product running on the XSAN, you can start up a Directory Service on it. Just make sure all your XSAN clients and controllers have that machine's IP or Servername (xserve1.local) designated in the the app found in Applications/Utilities/Directory Utility. While it isn't maybe best practice to have the Metadata controller doubling as an OD server, it isn't really a huge deal if your SAN is small. Any performance hits on the SAN would be minimal compared to the huge task of keeping up with all your mac's users and settings all the time.
    Making your own simple OD server would work as long as your XSAN isn't part of a larger network. My company has Active Directory for the main LAN and the addition of a simple but separate OD for xSAN users has caused many problems when those same macs write to the LAN volumes.

  • How can i transfer foots from ipad/iphone to my mac, without using iphoto? is it possible to have the albums on the may too?

    Can  anyone help me?

    You can import photos/videos from the Camera Roll on both with iPhoto or with the Image Capture application on your Mac.

  • Is there a tap or gesture to get to home without using home button?

    Does anyone know if there is a tap or gesture on the screen to get you back to teh main menu without having to click the home button? for example I started some music and then wanted to access the web. once in cover flow there doesnt seem to be a way to escape to the main menu without using the home button? am I mistaken ?

    As far as I know, you must press the Home button in the situation you described. A gesture that always takes you home would be a welcomed addition, though. But in actuality, what's the difference between pressing the Home button once as opposed to making a gesture or tap on the screen itself?

  • Dual monitor setup without Xinerama or TwinView

    I've searched the forum looking for anyone who is using a dual display setup without using Xinerama or TwinView.  There are plenty of discussions to the contrary, but I running one window manager (DWM) on my primary monitor and anything else on the secondary monitor.  I don't care about dragging between displays or any of the other features of Xinerama and TwinView offer, but my current implementation is rather crude. 
    So, I'm looking for a discussion on the this topic.
    Current setup:
    * Thinkpad T61 with NVIDIA M140 graphics
    * Samsung 24" external monitor (245bw)

    Procyon wrote:
    Vintendo wrote:I would like two instances of dwm, one for each screen.
    Default dual head does this. So no twinview or xinerama.
    Edit: and you run it with
    DISPLAY=:0.0 setsid dwm &
    DISPLAY=:0.1 setsid dwm &
    You can even use two different executables built from different config.h. It's fun to experiment with.
    and you setup the resolutions via xorg.conf "screen" section right?

  • [SOLVED] Hibernate works when using rmmod, but not SUSPEND_MODULES

    I've been having trouble hibernating (or suspending) an ASUS U36JC laptop.
    Running pm-suspend causes the computer to hang on a blank screen with
    an unblinking cursor. I have found that this is caused by two modules not
    suspending properly, ath9k and ehci_hcd.
    Using rmmod to remove the modules makes suspend work:
    # rmmod ath9k
    # rmmod ehci_hcd
    # pm-suspend # Suspend will now work
    So I created a file /etc/pm/config.d/modules containing the line:
    SUSPEND_MODULES="ath9k ehci_hcd"
    But in this setup (without using rmmod) the original problem is back!
    The computer hangs on a blank screen with an unblinking cursor after
    I run suspend.
    The log file /var/log/pm-suspend.log shows that the modules are unloaded:
    Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:
    Unloading kernel module echi_hcd...Done.
    Unloading kernel module ath9k...Done.
    What could be causing the SUSPEND_MODULES solution to fail when the
    rmmod solution works?
    Thanks,
    Last edited by maw09 (2012-02-14 22:42:20)

    maw09 wrote:Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:
    Unloading kernel module echi_hcd...Done.
    Unloading kernel module ath9k...Done.
    Interesting question, I don't have an answer.
    But: Did you retype the output above, or is the log really calling it "echi_hcd" ??

  • Get "Creation Script" of the existing table ( in SQL database) using C# and without using SMO dlls

    Hi All,
    I need to get the "Creation Script" of the existing table using c# and without using SMO dlls (is it possible? I don't know).
    I.e. In SQL Management Studio -> right click on any table -> Script table as -> Create To  - > open in the new query editor window. This will give you the schema of the table with the constraints of the table.
    For E.g. In Northwind database, for the table "Categories", I would like to get it as show below
    USE [Northwind]
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[Categories](
        [CategoryID] [int] IDENTITY(1,1) NOT NULL,
        [CategoryName] [nvarchar](15) NOT NULL,
        [Description] [ntext] NULL,
        [Picture] [image] NULL,
     CONSTRAINT [PK_Categories] PRIMARY KEY CLUSTERED
        [CategoryID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    I would like to get the same schema using c#. Please help.
    Thanks & Regards,
    Kalai.

    SMO is the easiest way to get this. This is what Management Studio uses. If you can't use SMO, get a Profiler trace of the queries that SMO executes when generating the script and execute the same using ADO.NET.
    Regards,
    Farooq Mahmud
    Support Escalation Engineer 
    •  Microsoft Health Solutions Group

  • How to connect to AD without using ADWS?

    How to connect to AD without using ADWS? Is it possible to do it? If yes, can teach me how to connect to AD and find their attributed?

    Hi Noobycy,
    There are few tools to find AD attributes without ADWS. See options you have below
    1.ADFIND -
    http://www.joeware.net/freetools/tools/adfind/  This is a command Line tool
    2.
    The ADSIEDIT tool
    from the Windows Support Tools is a great tool to "explore" the AD.
    http://technet.microsoft.com/en-us/library/cc731547.aspx
    3. ADUC -
    http://www.boostsolutions.com/blog/how-to-find-attributes-of-objects-in-active-directory/
    Regards, MassonTech

  • How to create Users/Roles for ldap in weblogic without using admin console

    Is it possible to create Users/Roles for ldap in weblogic without using admin console? if possible what are the files i need to modify in DefaultDomain?
    or is there any ant script for creating USers/Roles?
    Regards,
    Raghu.
    Edited by: user9942600 on Jul 2, 2009 1:00 AM
    Edited by: user9942600 on Jul 2, 2009 1:58 AM

    Hi..
    You can use wlst or jmx to perform all security config etc.. same as if it were perfomred from the admin console..
    .e.g. wlst create user
    ..after connecting to admin server
    serverConfig()
    cd("/SecurityConfiguration/your_domain_name/Realms/myrealm/AuthenticationProviders/DefaultAuthenticator")
    cmo.createUser("userName","Password","UserDesc")
    ..for adding/configuring a role
    cd("/SecurityConfiguration/your_domain_name/Realms/myrealm/RoleMappers/XACMLRoleMapper")
    cmo.createRole('','roleName', 'userName')
    ...see the mbean docs for all the different attributes, operations etc..
    ..Mark.

  • Opening new window without using javascript..

    Hi,
    This is the second time iam posting this question. I didnt get satisfactory answer to my previous post..
    Is there any possibility of displaying a new window on button click using only JSF and without using javascript? if yes please tell me how to do..
    Thanks...

    Yes, with target="_blank" in a link or a form.Thanks for ur valuable suggestion. I changed the button to link.
    Its working fine now without JavaScript.
    Now i got another requirement. When user select some items and press a button in the new popup window, the window must close on button click and the parent window must refresh. This must also be done without using JavaScript.
    Is this possible? Please give me an idea to do this.
    Thanks.

  • Displaying X� ,X� and so on  without using graphics

    Hi I want to disply X� X� and so on without using graphics.
    Is it possible if yes how.
    thanks
    dharmendra

    answered in http://forum.java.sun.com/thread.jsp?forum=31&thread=354790

Maybe you are looking for

  • Unable to checkin  Original in PLM Web UI

    Hello Gurus, I am unable to checkin the originals  PLM Web UI and also a duplicate content version gets created. Please see the attached screen shot. The below message stays for few seconds and then disappears automatically I checked the content vers

  • Downloaded program. Hard drive failed and program lost. Any way to retrieve it?

    I purchased my iMac in Dec. of '07 and purchased iWork shortly thereafter by download. Unfortunately my hard drive failed and I didn't have a backup so I lost not only my iWork but also my Snow Leopard update. Is there any way to retrieve these (espe

  • Can't create working DVD in Encore CS3

    Hi, I'v created an Encore CS3 project which works perfectly when built to a flash (.swf) and the buttons, menus & videos all works perfectly in the preview in Encore. I've tried burning DVDs two ways: 1. directly from Encore 2. burn an image to my ha

  • VMM 2013 R2 Manager - Remote Control issue

    Hello Everyone, Looks like Im having a remote control to the VMM server issue. Everytime I try to connect to console of the VM machine, I get this error: "An authentication error has occurred Code: 0x80004005" Remote computer: servername.mydomain.com

  • Assignment Number causes Billing Split

    Dear SD Experts, Good Day! Assignment Number is causing the billing to split. Is there any way to skip this checking? I would like to combine different deliveries (with different assignment number) into 1 billing. Thanks, Soo