Error Received When Trying To Create DSN From The Command Line

All,
Your help is greatly appreciated in advance. I am having trouble packaging Oracle 10G for a batch file deployment. Everything is done except for getting the DSN created which is causing me major problems. We am working with the Oracle 10G R2 10.2.0.1.0 Client on Windows XP Professional SP2. The Oracle database resides on a Windows 2000 Professional Server SP4 running Oracle 9i.
Our Environment: I am creating two packages of the Oracle 10G client. The first is for a batch file distribution via LANDesk and the other package is for normal batch file install if someone from IT is installing this from a user's desk. Both scripts are really identical the only differences are how they are laid out. I only need help with the DSN creation as everything else is ready to go. I am going to focus on the Non-LANDesk batch file as once I fix this in one script the other one should also be fixed.
The Problem: The batch script copies the neccesary files to the temporary directory. I then extract the setup files to the temp folder. I run a custom Oracle install using the RSP file from a recorded install. After the install is complete I copy the TNS Names file to the proper location. I then try to call a CMD file with the ODBC command seen below the main script.
Script (May be easier to read if you download using link below):
@ECHO ON
::This batch files installs Oracle 10G Release 2 Version 10.2.0.1.0 with a Custom Response File
::Installation is Interactive
::All files are extracted from the ZIP file via the 7-Zip command line tool
::The Net Configuration Assistant TNS Names File is copied to its proper location
::The CCR ODBC connection is created once the install is complete
::All folders used for installation are cleaned up-deleted
@ECHO Setting Variables
set NetworkPath=\\dc-landesk\SoftwareForLDAgent\Oracle10G-R2-10.2.0.1.0\Non-LD
set DefaultPackagePath=C:\Program Files\LANDesk\LDClient\sdmcache\SoftwareForLDAgent\Oracle10G-R2-10.2.0.1.0\Non-LD
set ExtractionPath=C:\Temp_Oracle10G
set TempInstallFromPath=C:\Temp_Oracle10G\SetupFiles
set FileFolderCleanupPath=C:\Program Files\LANDesk\LDClient\sdmcache\SoftwareForLDAgent
@ECHO Creating Directories
mkdir "C:\Program Files\LANDesk\LDClient\sdmcache\SoftwareForLDAgent\Oracle10G-R2-10.2.0.1.0\Non-LD"
@ECHO Copying Files to DefaultPackagePath
copy /Y "%NetworkPath%\7za.exe" "%DefaultPackagePath%"
copy /Y "%NetworkPath%\CCR-ODBC.cmd" "%DefaultPackagePath%"
copy /Y "%NetworkPath%\Oracle10GCustom.rsp" "%DefaultPackagePath%"
copy /Y "%NetworkPath%\SetupFiles.zip" "%DefaultPackagePath%"
copy /Y "%NetworkPath%\tnsnames.ora" "%DefaultPackagePath%"
@ECHO Changing to Extraction Directory
cd "%DefaultPackagePath%"
@ECHO Extracting Files to path with no spaces
"%DefaultPackagePath%\7za.exe" x SetupFiles.zip -o%ExtractionPath% -aoa
@ECHO Please Open the "Task Manager" manager, Sort by "CPU" Descending
@ECHO Watch Task Manager For Javaw.exe, press any key when the process Disappears
@ECHO Install using Custom Response File
"%TempInstallFromPath%\setup.exe" -responseFile "%DefaultPackagePath%\Oracle10GCustom.rsp" -force -silent -noconsole
pause
@ECHO Copying NETCA (Net Configuration Assistant) TNS Names File to proper Location in Oracle Product Directory
copy /Y "%DefaultPackagePath%\tnsnames.ora" "C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora"
@ECHO Creating ODBC Connections Using Oracle Driver installed by this Batch File
call "%DefaultPackagePath%\CCR-ODBC.cmd"
@ECHO Waiting 20 seconds before proceeding
ping -n 21 127.0.0.1 >NUL
@ECHO Remove Temp Files and Folders created during Install
rmdir /S /Q %ExtractionPath%
del /Q "%DefaultPackagePath%\*.exe"
del /Q "%DefaultPackagePath%\*.ora"
del /Q "%DefaultPackagePath%\*.rsp"
del /Q "%DefaultPackagePath%\*.reg"
del /Q "%DefaultPackagePath%\*.zip"
rmdir /S /Q %FileFolderCleanupPath%
@ECHO The Oracle 10G installation has been Completed
pause
ODBC Script
odbcconf.exe /a {CONFIGSYSDSN "Oracle in OraClient10g_home1" "DSN=CCR|Description=CCR_data|SERVER=BWB|Database=CCR"}
As soon as the command is called I see the following error message appear.
"CONFIGSYSDSN: Unable to create a data source for the 'Oracle in OraClient10g_home1' driver: Could not load the setup or translator library with error code -2147467259"
The really strange thing though is that if I let the main part of the script run (Not the ODBC call) and then immediately manually start the ODBC call script it works just fine. So, I don't really understand why the script can't add it itself. Or, I can go the Administrator Tools>Data Sources (ODBC)>and then add it manually which also works. I have tried just pasting the command directly in the main script, therefore, bypassing the call feature but it doesn't make a difference.
Link (Zip with all scripts mentioned above): http://www.cbridegum.com/Fourms/Oracle/Files.zip
Has anyone ever seen this kind of issue before? Does anyone have any idea on how to fix this? Any thoughts or suggestions would be great.
Thanks so much for your help in advance,
Clif Bridegum

All,
I thought it may be related to spaces in the path in which the script was called from. I tried having the ODBC command script in another directory but the same thing happens. It will give me the "CONFIGSYSDSN: Unable to create a data source for the 'Oracle in OraClient10g_home1' driver: Could not load the setup or translator library with error code -2147467259". As soon as the script is done running I can manually double click the script and it adds the DSN fine.
Thanks,
Clif Bridegum

Similar Messages

  • I get an error message when trying to download apps from the app store.  "safari can not open the page because the address is invalid".  Please help!!

    i get an error message when trying to download apps from the app store.  "Safari can not oprn the page because the address is invalid"

    You can't use Safari to download iPad apps. Only use iTunes/App Store.
     Cheers, Tom

  • Getting error NSURLErrorDomain error -1100 when trying to get updates from the App Store.  Are updates still available for OS below Maverick?

    Started getting this error today (01/14/2014) when trying to download updates from the App Store for my MBAir 11" mid 2013.  Error:  NSURLErrorDomain error -1100
    Are updates still available for OS below Maverick?

    That error may result from connecting to a cellular network via a phone or mobile broadband device. If that's what you're doing, try another network.

  • Problem with running a java program from the command line

    I have this code:
    package pkg;
    import jxl.*;
    import java.io.File;
    public class TestClass {
         public static void main(String[] args) {
              try{
                   Workbook book = Workbook.getWorkbook(new File("d:/testWorkspace/excFile.xls"));
                   Sheet sheet = book.getSheet(0);
                   String s=sheet.getCell(4, 2).getContents();
                   System.out.println(s);     
              }catch (Exception e){System.err.println(e);}
    }I've wrote it in Eclipse, added jxl.jar to the buildpath, and it works fine.
    Then I tried to run it from the command line and I did it like this:
    D:\testWorkspace\testProject\bin> java -cp \jxl.jar pkg.TestClassThe result was:
    Exception in thread "main" java.lang.NoClassDefFoundError: pkg/TestClass
    Caused by: java.lang.ClassNotFoundException: pkg.TestClass
    ...but the file TestClass.class DOES exist in the folder d:\testWorkspace\testProject\bin\pkg\ and the file jxl.jar IS on the root of drive D (like I already wrote, it worked fine inside the Eclipse).
    So, my question is: How to run this code from the command line?
    I have no idea what went wrong.
    Can someone help me, please?

    The current directory is not implied in the classpath.
    D:\testWorkspace\testProject\bin> java -cp .;d:\ pkg.TestClassor
    D:\testWorkspace\testProject\bin> java -cp .;d:\jxl.jar pkg.TestClassI always forget which is right since I never work with jars...

  • From an iPhone 5, I receive the following error message when trying to download content from a radio show app:  "Alert Could not parse feed."   How do I fix?

    From an iPhone 5, I receive the following error message when trying to download content from a radio show app:  "Alert Could not parse feed."   How do I fix?

    Since you're using a 3rd party app, suggest contacting the app developer or looking at their support site for help.

  • When trying to download stuff from the app store it says unexpected error and doesnt download

    When trying to download stuff from the app store it says unexpected error and doesnt download

    It's happen to me and maaaaaannnny others. You can either Create. New account and delete the old one.  If that don't help uninstalling and reinstlling iTunes may help. 

  • Get error message when trying to launch bridge from CC 64 bit.

    Get error message when trying to launch Bridge from Photoshop CC 64 bit.  "Cannot complete command because extension cannot be loaded."  Need fix.  Thanks.

    Hi Adobe Bubba,
    Please uninstall the software, run the cleaner tool, restart your machine and install again.
    Cleaner tool: http://www.adobe.com/support/contact/cscleanertool.html .
    Regards,
    Romt Sinha

  • Error message when trying to create a unique name

    Why do I keep getting an Error message when trying to create a unique name for a location on your site. I am simply looking to use your free 2GB space to store some pics and vids but keep getting an error message.

    How come Leopard let me use the WGM in standard mode?
    While SA complains that it won't work in Standard Configuration, WGM does not. There is some fault in the logic of this for which I don't have an explanation.
    If I want to get control on Dock, selection of Home folder, config of Proxy... which I think are basic things, do I really need the advanced mode?
    If you wish to have complete control of all client settings, yes. There really is no disadvantage of using an Advanced configuration other than the learning curve.
    So if I switch to advanced mode, there is good chance I won't get this error message anymore, right?
    Yes.

  • Has anyone heard of error 45054 when trying to purchase music from itunes?

    Has anyone run into error 45054 when trying to purchase music from itunes?

    I had this problem just recently.
    I discovered that the problem was located here: ROOT / Users / Shared  -- if you open that and the "adi" folder has a little red minus symbol in its corner, your permissions have somehow been lost. (If you can't see your root directory, open Finder Preferences and, under sidebar, check "Hard disks." That will make your root drive visible.)
    If the "adi" folder has the red minus symbol, right-click the folder and select GET INFO.
    Sharing & Permissions is probably set to "System: Read & Write | wheel: Read Only | everyone: No Access"
    If so, your user account has no permissions, and that means iTunes can't use the folder properly.
    To fix this, first unlock the folder using the padlock icon in the bottom-right corner of "get info." You will have to supply your admin password to do this.
    Then click the little + sign in the bottom left corner to add a user, and select your user ID from the list of choices. Give yourself Read & Write permissions. (Alternatively, you could change the permissions of "everyone" to Read & Write; others have done that, but I was leery of doing it).
    Re-lock the folder when you're done.
    Hopefully that will solve it.

  • Unknown error 54 when trying to sync music from my computer to an i phone 5

    message. unknown error 54 when trying to sync music from my computer to my i phone 5

    I don't see error 54
    iTunes: Possible iTunes Store errors

  • 2nd gen A TV I can hear but not see on the TV when trying to stream TV from the iPad2

    2nd Gen ATV I can hear but not see on the TV when trying to stream TV from the iPad2

    You can look at the ipad under settings, general, about and see if it's 4.3.3.
    Or when you connect the ipad to the computer with itunes, it'll tell you on the first tab if you need an update.

  • I recently upgraded to Mac OS X.  I hadn't try to access anything in iWorks 09 since the upgrade, until now.  I get an error message when trying to open any of the iWorks 09 applications.  What's the fix for this?

    I recently upgraded to Mac OS X.  I haven't tried to access anything in iWorks 09 since the upgrade, until now.  I get an error message when trying to open any of the iWorks 09 applications.  What's the fix for this?

    Follow Sonicray's advice and when you post try to give as much info about your Mac, your OS, etc... Fill out your Profile info.

  • Jar file runs from the command line, but not when I double click it

    Hello, I'm running windows xp. I've created an executable jar file and it runs fine from the command line when I type;
    java -jar wizard.jar
    but, when I double click it . . . nothing.
    Any ideas?

    nothing ? that's weird, windows XP should prompt you to select the program you want to use in order to open Jar files (and give you this silly piece of advice to search the web for the appropriate program)
    you might want to check what program (if any) got associated with .jar extensions :
    in Windows Explorer : Tools => Folder Options => File Types
    hth

  • How to create an alias from the command line

    Hi
    I would like to know how to create an alias (for a file, not a command) from the command line. I don't want to use the ln command, as an alias has more interesting features than soft/hard links... Is there an Apple specific tool to do this?
    Thanks
    -Jerome
      Mac OS X (10.4.10)  

    The only straightforward way that I am aware of for creating a "Finder" alias from the command line is using AppleScript via 'osascript'. Of course, it's not really a command line solution since the "Finder" has to be running. Anyway, something along the lines of:
    <pre style="overflow:auto; padding: 5px; width: 500px ; font-size: 10px; border:1">osascript -e 'tell application "Finder" to make alias file to POSIX file "/full/path/to/file" at POSIX file "/full/path/to/folder"'</pre>

  • Running a jar from the command line

    I am trying to run a Jar from the command line. I have a number of classes in a package called "trainnn".
    I put all the classes into a jar
    jar cvf name.jar trainnn\*.classI then creat a file called mainClass.txt with the line (with a blank return line after it, where QueryMatch has the main). This file was placed in the same directory as the package and the jar file
    Main-Class: QueryMatch
    then
    jar cmf mainClass.txt network.jar G:/TrainNN/src/trainnn/QueryMatch.classthis worked fine.....but it is from here I have problems when I try run the jar
    java -jar network.jarbut get this error.
    Exception in thread "main" java.lang.NoClassDefFoundError: QueryMatch
    I cant figure out this error, I have tried specifying the exact path in the mainClass.txt file but that didnt work.
    Any ideas
    Thanks in advance.

    Hi,
    To start a java app in the command line with "java -jar yourJarFile.jar", the jar needs to have a mainfest file "MANIFEST.MF" in a folder called "META-INF". The manifest file would have to contain the name of your starting class, e.g. it could look like thisManifest-Version: 1.0
    Main-Class: com.yourCompany.yourProject.YourClass Hope that helps. Cheers, HJK

Maybe you are looking for

  • How to print onto a legal size paper

    I'm trying to print a document sent to me as an original PDF 8.5 x 16 document onto a legal size page (8.5 x 14).  I don't have the advanced skills necessary to print in Adobe beyond the basics, and don't have the time to take a course or read the co

  • Getting at a dead iBook's data

    Looks like my iBook's bit the dust. The genius at the local Apple store told my girlfriend (who took it in for me) that it was either the logic baord or the DC adapter, but that from the sound he could hear from the power connector it was probably th

  • Router drops connection

    Hi, I have a WRT300N that acts as a router/DHCP in a small home network. I have a p2p program, DC++, which requires port forwarding to work correctly. I have setup this in the router, port 1412 and the computer ip address to forward to. The problem i

  • Runtime error (syntax error) when defining a new logical system

    Hi! I get a short dump when trying to define a logical system, the field <b>clidep</b> does is not defined in function module <b>SCPR_BCSET_PROT_GET_TABKEYS</b>: CALL FUNCTION 'SCPR_HI_DB_SCPRACTR_READ'     EXPORTING       TABLENAME     = wa_tabnames

  • Can you skew a "picture within picture"?

    Hi all, I have this video clip: http://www.computershy.com/tv_720.jpg I'd like to insert a video clip (or a still graphic) from one of my instructional videos onto the tv screen (so that it looks like he's watching one of my programs). iMovie 09 make