Automation scripts for Instant client install\ add TNS entry

Guys,
I'm trying to develop an VB application,which uses data from an Oracle server residing in my neighbour's system.
My system doesn't have oracle client installed.
So, I've made use of Oracle Instant Client package-OCBC.
Now, I'm looking for an automation script that would do the following in order
1)Uzip the instant client into a directory. (say C:\ondemand\instantclient)
2)Add this directory into the PATH environment variable
3)Set up Service Names with tnsnames.ora ie. Create a TNSNAMES.ORA file to configure my Oracle instance connection.
4)Set the TNS_ADMIN environment variable to be the path to the tnsnames.ora
Can someone help me out with automated scripts?
Thanks,
Bhagat

Don't worry. I've solved it.
One of the files I was using stated: Always set the TNS_ADMIN environment variable or registry setting to the full path of the tnsnames.ora file.
I took that to mean including the "tnsnames.ora". It doesn't. It really does mean just the PATH part.
However, with this corrected, I got the pulldown populated. But with only the first part of the name, from the tnsnames.ora file. tnsnames.ora had mydb.<domain>.com. The pulldown only had mydb. Manually adding the .<domain>.com to it worked.
Now on to the next problem. <GRIN>
Cheers,
Eddie

Similar Messages

  • Automated script for deploying, removing, install again the WSP using stsadm command line

    Hi,
    Am having a requirement in my  staging and  prod  env. to add, install,retract and remove wsp.
    In my dev env i used to perform with  Visual Studio ,so i didnt  face any issues regarding retracting and removing the wsp from solution store.
    But in my staging and prod since i dont hav VS installed, i would like to have a automated script[ NOT in POWERSHELL] using stsadm command line tool which adds the solution from a folder [say D:\DeployWSPs in staging and Prod] to the solution
    store  and installed onto a particular web application [  NOT "All WebApplications"].
    and if  the wsp already exists , i need to retract it & remove from solution store and add it and install again.
    can someone pls help me with the  automated script .also if  the folder contains multiple WSPs how can i doa  for each loop [ iterate through  wach ".wsp"  file and perform install/...task].
    i know stsadm -o adddsolution, deletesolution,m retractsolution etc. But the issue is that customer asked me to do this ina automated fashion.  manually entering all these commands is a  cumbersome activity.
    note: when i used powershell on 2 / 3 occasions, the wsp was retracted successfully,but failed to successfully remove from the
    soln store.
    so i thought i will depend upon on stsadm again like old version of SP since its supported.
    Das

    I would recommend you to use Power Shell so that you can do the automation easily. You can use
    power shell for earlier version of SharePoint as well. 
    Look why removing the solution is getting failed. May be you are trying to remove before the solution is retracted. Wait for retract and remove the solution. Refer to the following post for more information
    http://www.codeproject.com/Articles/570011/PowerShellplus-plusWaitplusforplusRetractplus-fpl
    http://consultingblogs.emc.com/mattlally/archive/2011/03/29/sharepoint-server-2010-multiple-solution-deployment-script.aspx
    Cheers,

  • Connectionstring to be used in ASP for instant client ??

    Hi,
    I'm trying to use oracle instant client for one of my projects.
    I have installed basic, sqlplus and ODBC for instant client.
    I have set all the environment variables. I have the tnsnames.ora and sqlnet.ora
    So far I have succeeded in connecting to a DB Server through sqlplus. I also created a DSN successfully using the driver "Oracle in instantclient10_2" which gets installed when I install instant client ODBC. These indicate that mos tof settings are right. It is good so far.
    Now I'm trying to use a connection string in ASP which connects to a DB server using this instant client.
    I need one DSN connection string and one DSN-less connection string.
    So far I have tried the following:-
    1)
    Driver={Oracle in instantclient10_2};Server=<Service Name>;Uid=<UserID>;Pwd=<Password>;
    This resulted in the error:-
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    [Oracle][ODBC][Ora]ORA-12560: TNS:protocol adapter error
    2)
    StrCon.Open "Driver={Oracle in instantclient10_2};Dbq=<Server IP address>:<port>/<serviceName>", "UserID", "Password"
    This resulted in the error:-
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    [Oracle][ODBC][Ora]ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Can you please help me out with these?
    Thanks in advance
    Jai

    Hello,
    I tried to use either of the 2 connections you gave but I still get an error:
    DSN
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    Specified driver could not be loaded due to system error 5 (Oracle in instantclient10_2).
    DSN-less Connectionstring:
    Specified driver could not be loaded due to system error 5 (Oracle in instantclient10_2).
    Thanks in advance,
    Do you have an idea as why this happens?

  • SDK for Instant Client not available?

    Hello all,
    I'm new to using Oracle and I successfully setup my first 11XE install last week. I'm excited to begin using it but I can't get the OCI driver to compile so I can use it in PHP.
    I have the linux/amd64 Instant Client 10.1 from the Oracle website but it does not have the headers file.
    The docs say I need SDK for Instant Client but it is not listed on the downloads page for Instant Client. The docs also say there is a 11.1 version of IC but no trace of that either.
    Is there another page which has all of these files?
    I get as far as this in the configure script: "checking for oci.h... configure: error: I'm too dumb to figure out where the include dir is in your instant client install"
    Thanks for your help!

    You could search the 'net for instant client downloads x86-64, click relevant link, search page for SDK. Versions from 11.2, 11.1 and 10.2 releases should exist on found page.
    Note that a dedicated forum exist, {forum:id=190}.
    Edit:
    added forum link
    Edited by: orafad on Jan 16, 2012 10:52 PM

  • ODBC Driver for Instant Client

    Hello.
    First of all I would like to thank Oracle for giving us the Instant Client. It seems to be the solution for making stand-alone client application in a very simple way. Thanks!
    Even Though, I need to know if there is a way to download the so called "ODBC Supplement". I suppose it's a Windows ODBC Driver for Instant Client.
    Thanks!

    Here's a Registry script to set up a sample 10g-driver data source. After this I used MS Access 2002 to connect to a 9i database. It found all the table names, etc, and read fine from some of them, but others came back with some kind of error such that Access reported the row as already Deleted. I have not done any more research, yet.
    REGEDIT4
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources]
    "SS585D_ORA10_SYS"="Oracle in bin"
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\SS585D_ORA10_SYS]
    "Driver"="C:\\OraWin10\\Bin\\SQORA32.DLL"
    "ServerName"="SS585D"
    "Description"="Sys SS585D using Oracle 10 driver"
    "DSN"="SS585D_ORA10_SYS"
    "User"="ABC"
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers]
    "Oracle in bin"="Installed"
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Oracle in bin]
    "APILevel"="1"
    "CPTimeout"="60"
    "ConnectionFunctions"="YYY"
    "Driver"="C:\\OraWin10\\bin\\SQORA32.DLL"
    "DriverODBCVer"="03.51"
    "FileUsage"="0"
    "Setup"="C:\\OraWin10\\bin\\SQORAS32.DLL"
    "SQLLevel"="1"
    As for the ODBC admin program, I used RegMon and FileMon to watch it in action. It loads the 10g setup DLL okay and reads various ODBC values from the registry, then GPF's. I think I'm seeing some kind of buffer overrun problem. I can send logs to anybody who gives me an e-mail address. Mine is [email protected]

  • MIT Kerberos integration via Oracle ASO for Instant Client

    Is Oracle planning on adding support for the Oracle ASO module (specifically for the use of MIT Kerberos authentication) to the Oracle Instant Client?
    Last time I checked (about 2 years ago) they had not, but I'm hoping they are working on it.
    Update: I originally posted this back in Feb 2007, and now it's June 2007...... No replies..... Does anyone know if Oracle will add support for MIT Kerberos Authentication to the Instant Client?
    Message was edited by:
    dkwhisle

    I haven't seen many requests of ASO support being requested for Instant Client nor have I heard of it being included any time soon (in any Instant Client-related press). You should pose the question to Oracle support or your Oracle sales representative.

  • Difference between two queries for no client installed

    I have created a collection for all discovered computers with no client installed using the following query:
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.Client is null
    If I go to Monitoring -> Client Status -> Client Activity and click on the link next to the pie chart for no clients installed I get a completely different result and they neither query contains the same computers as each other.
    Anyone know what the exact query the link in the monitoring section is using and why the results between the two are completely different?
    If would expect them to match up or at the very least that my first query should be the source of truth.

    If I use:
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.Client is null OR SMS_R_System.Client = 0
    and use the same limiting collection as the built in monitoring query  "All Desktop and Server Clients" I actually get 0 results from the query.  If I use "All Systems" as the limiting collection I still only get the same results
    that I do with out also querying for "equals 0" as well.
    I read one article that said that "equals 0" actually shows you the clients had the CCM client but it was uninstalled where "is Null" returns systems that never had the CCM client.
    I don't know if this is accurate but it doesn't explain why a built in monitoring query would return inaccurate results.  It only returns a fraction of the non-client systems that the above query returns and as mentioned, the systems returned in one
    are not included in the other.

  • Missing sdk download for instant client for Linux

    Hi,
    I'm following Ubuntu community documentation here https://help.ubuntu.com/community/PHPOracle to get started developing php/oracle applications.
    My problem is that the sdk download is missing. It is in the list here http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html but the link for it is missing. I don't see anything else looking like sdk or development files for instant client.
    Can anyone tell me where the download is?
    Thank you

    How about the following link:
    http://www.oracle.com/technetwork/topics/linuxsoft-082809.html

  • How to add tns entry in names server

    Hi,
    Can anyone tell us, How to add tns entry in names server
    Thanks

    In the Net Manager utility, in the left-hand pane left click Oracle Names Servers, left click on your nameserver.
    Click the "+" button in the upper left, that should be enough to get you started- sorry, all our 9i installs have gone away, can't exactly recall the nix X gui version of client program, but I think* its netmgr, should be in OH/bin.
    If you're running a java OEM console that cames with 9i clients, Net Manager is available on that little Butler tab.
    And for the command line version, running the namesctl utility- you can save a tns entry with the connect string and run it in a file, just like sqlplus, with an @filename:
    vi newtns.txt
    register newtns -d (DESCRIPTION=(ADDRESS_LIST=...(SERVICE_NAME=NEWTNS.MYCO)))
    $ namesctl
    @newtns.txt
    query newtns *
    reload -- nameserver sync
    query newtns *
    exit
    $ Edited by: clcarter on Jul 7, 2011 3:26 PM
    added cmdline version

  • SQL*Plus add-on for Instant Client Package on Solaris-SPARC 32bits ???

    Hi,
    I need sqlplus for a solaris 32bits platform, but following this page
    http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html, if I choose Solaris 32-bit (SPARC), it doesn't give a link to download Instant Client Package - SQL*Plus (as it does if I choose Solaris 64-bit (SPARC) or Windows 32-bit).
    I don't understand why... :(

    SQL*Plus is not supported on the 32-bit versions of 64-bit platforms. Please use the 64-bit version of SQL*Plus. Thanks!

  • Can I install Oracle XE on a system that has the Instant Client installed?

    Hello,
    After installing Oracle XE (Oracle Database Express Edition 11g Release 2 for Windows x64) on my Windows 8.1 64-bit system, I can not connect to the "Get started" url (http://127.0.0.1:8080/apex/f?p=4950).
    The output of "Start database" shows:
    The OracleXETNSListener-service is being started.
    The OracleServiceXE-service is being started.
    The OracleServiceXE-service has been started.
    The OracleXETNSListener service refuses to start. Could the presence of the Instant Client have something to do with this?
    The Instant Client is installed in C:\Apps\Oracle, with a tnsnames.ora in C:\Apps\Oracle\network\admin.
    Oracle XE is installed in C:\Apps\OracleXE.
    There is a system wide environment variable ORACLE_HOME, pointing to C:\Apps\Oracle.
    In the registry under HKLM\Oracle there are keys KEY_odac, KEY_ORACLE_HOME, KEY_XE, ODP.NET and OracleMTSRecoveryService.
    HKLM\Oracle\KEY_ORACLE_HOME\ORACLE_HOME = C:\Apps\Oracle
    HKLM\Oracle\KEY_XE\ORACLE_HOME = C:\Apps\OracleXE\app\oracle\product\11.2.0\server
    Thanks,
    George

    XE was the last installed Oracle product. I installed it on my development laptop, so I can use an Oracle database when not connected to the company network.
    The instant client was broken by the XE install. Uninstalling Xe fixes this, even without a reboot.
    The output of tnsping is:
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 21-APR-2015 07:18:00
    Copyright (c) 1997, 2014, Oracle.  All rights reserved.
    Message 3511 not found; No message file for product=NETWORK, facility=TNSTNS-03505: Message 3505 not found; No message file for prod
    uct=NETWORK, facility=TNS
    The Oracle related directories in the PATH environment variable are (in this order):
    C:\Apps\OracleXE\app\oracle\product\11.2.0\server\bin
    C:\Apps\Oracle\
    C:\Apps\Oracle\bin\

  • ORA-12154 when connects. Instant client installed.

    Hi. I am installed instant client 10.2 and cannot connect to database : give error ORA-12154: TNS:could not resolve the connect identifier specified. I am using Linux. I am set TNS_ADMIN and put into this directory file tnsnames.ora with all necessary instances, but have not no one result.

    Add the following line to sqlnet.ora in the directory to which TNS_ADMIN points:
    TRACLE_LEVEL_CLIENT = SUPPORT
    Then try again and examine the *.trc file created. This should tell you what's wrong.
    Yours,
    Laurenz Albe

  • USername and password for Instant Client

    Hi,
    Im trying to install the instant client on my desktop for an SQL plus remote server. When I run sqlplus.exe it asks me for a username and password.. where do I get that from?

    That would be the user name and password for the database you are trying to connect to. The DBA may be in charge of creating accounts and handing out passwords-- if not, he should know who is.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Please help me to debug a bug for instant client on linux x86-64

    I am a c junior programmer, I wrote a c demo based on <Call Interface Programmer's Guide>,but i found failed sometimes and successful somtimes when i run my demo on linux x86-64.
    I wondered why it was failed sometimes and successful sometimes, so i used command strace to debug my demo.
    I found my demo was failed when called function getsockopt  whose third argument was negative. The following code:
    getsockopt  (5, SOL_SOCKET, SO_SNDBUF, [-8683868481690533888], [4]) = 0
    my demo run successful when the third argument of function getsockopt was positive.The following code:
    getsockopt(5, SOL_SOCKET, SO_SNDBUF, [4636081913715490816], [4]) = 0
    I downloaded rpm package of instant client for linux x86-32 and installed, the same demo worked perfectly on linux x86-32.
    Did instant client for linux x86-64 has a bug?
    any advise would be great.
    Thank you!

    thanks.
    I have solved this problem that result in my c demo.
    I was a wrong way to use this function OCIBindByName. I ignored it's Indicator Variables must be 0 , -1 or -2.

  • OneDrive for Business sync prompts for ODfB client install

    Working with a client that has installed Office 2013 ProPlus on an image that is being deployed. Users currently logon to their computer with a local account (Active Directory in process of being deployed).  User is "migrated" and begins
    to logon to Active Directory.  User now logs on to the O365 portal and accesses their OneDrive site, not yet populated with documents.  User clicks "sync" and is prompted to install a OneDrive for Business client, even though it has
    already been installed as part of Office 2013 ProPlus.  Install proceeds and Internet Explorer closes.  Once install has completed, user logs on to O365 portal and attempts to sync OneDrive.   User is prompted again to install the appropriate
    client.
    I have tried clearing IE cache, launching IE in InPrivate mode and using Chrome.   Same behavior.
    Any suggestions?
    Thanks,
    [email protected]

    New fun behavior noted:
    New behavior.  Similar scenario:   User logging on to PC with a local account.   Office 2013 ProPlus, including ODfB is installed.   User is NOT currently using ODfB.  Using Word
    2013, Excel 2013, PPT 2013, Outlook 2013 ( connecting to Office 365 mailbox) and Lync 2013 (connecting to Lync Online) are being used by the users.  Users machine is joined to a domain, User local account profile is migrated to domain profile.  
    User logs into PC with domain account.  ( Matching the Office 365 account, typically [email protected] ).  User logs into Outlook and Lync with no issues.  User logs into the Office 365 Portal, selects OneDrive, and selects Sync. 
    "Sync this library to your device for easy access" window appears.  User selects Sync now..  User is presented with "Sign in  Call us overprotective, but we need to verify you account again before opening "https://realgoods-my.sharepoint.com""
    windows.  User enter his email address and clicks Next.  User is then presented with "Sign In" windows and enters User ID and password.  User is then presented with the "Overprotective" window.  This happens 3 times
    until user gets "We cannot connect to the specified SharePoint site." error message.
    IE browser cache has been cleared.  Steps have been followed to clear all document cache files.  sharepoint.com, microsoftonline.com, office365.com have been added to the Trusted Sites zone and added to IE compatibility list.
    Any clues on this one as well????
    R,
    Dale
    [email protected]

Maybe you are looking for