I have a working ANT build.xml that executes sqlplus to compile PL/SQL. I develop on MacOSX. My coworker is going to start contributing to the same application. He develops on WinXP. The sqlplus exec from ANT returns a TNS ORA-12560 error on WinXP. The identical build.xml works on MacOSX. The run string that ANT should be constructing on WinXP works in the DOS shell. We have set up the TNS_ADMIN environment variable in WinXP. What could I be missing?
Migrating ANT sqlplus execution from MacOSX to Windows, getting TNS error
367 Views Asked by dacracot At
1
There are 1 best solutions below
Related Questions in ORACLE
- Column displays each count
- MAX and GROUP BY - SQL
- Best Practice for adding columns to a Table in Oracle database
- Updating an Oracle row with value from same row
- Retrieving data from Oracle database
- Ibatis execute update sql on oracle, it is not working and no exceptions
- Building an sql execution plan history
- Implementation of Rank and Dense Rank in MySQL
- how to update the date field for this specific condition using oracle query?
- Oracle stored procedure wrapping compile error with inline comments
- Android: How to connect oracle database using Android Java code?
- SQL Conditional Join on Columns
- Multi value wildcard search in ibatis
- Get count of consecutive days meeting a given criteria
- How to update the metadata of a layer in Oracle imported through FME Workbench?
Related Questions in ANT
- Ant build should wait for a child process to complete
- Can Apache Ant be told to cache its XML files?
- How to run FindBugs off of Ivy downloaded JARs
- NoSuchMethodError after cleaning the project
- How do you specify a fop config file for fop.bat in ant script
- Multiple browser execution of sahi scripts at the same time
- Eclipse Auto-build eternal loop
- Getting error when running pig: Cannot locate pig-core-h2.jar. do 'ant -Dhadoopversion=23 jar', and try again
- Keep getting No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'
- How to import / reference a gradle application in android application using command line (ant)
- TestNG ANT: disable ONLY the html reporter
- Cannot compile Java adapter using adapter-builder task (ANT) in MFP v7
- Create checksum and pom for maven repo
- How can I install Apache Ant 1.9.5 and connect it to Android Studio 1.2.1.1 in Windows 8.1?
- Compiling Java with Ant - keep getting error JNI error has occurred
Related Questions in TNS
- ORA-12505 :TNS listener does not currently know of SID given in connect descriptor
- Not able to login by SSO in oracle database when i set TNS_ADMIN parameter
- Connection to Oracle via TNS is not working
- Linking Oracle 10g XE with SQL server using ODBC
- TNS No Listener - Only in Visual Studio, DB tool and all pings work
- python django soaplib response with classmodel issue
- OracleOraDb11g_home1TNSListener service not starting in Windows 10
- Migrating ANT sqlplus execution from MacOSX to Windows, getting TNS error
- ORA-12560: TNS:protocol adaptor error after delete one database
- SQL loader shows error ORA-12546 TNS:permission denied when I try to run it against a remote database
- TNS:could not resolve the connect identifier specified in .NET OracleClient
- grails run-app error (TNS:listener: all appropriate instances are in restricted mode)
- Oracle 12 Client odbc empty TNS
- Oracle tns Pinging error
- Problems resolving Oracle SID via LDAP/OID lookup with Thin JDBC Client
Related Questions in ORA-12560
- ora-12560: TNS Protocol Adapter Error
- Migrating ANT sqlplus execution from MacOSX to Windows, getting TNS error
- What is the exact format of a connection string for Oracle?
- ORA-12560: TNS:protocol adaptor error after delete one database
- Unable to retrieve data from table using nodeJS. error: ORA-12560: TNS:protocol adapter error
- HELPP -- Cannot start OracleServiceORCL
- ORA-12560: TNS: PROTOCOL ADAPTER ERROR PHP, ORACLE, WAMP
- "ORA-12560: TNS:protocol adapter error" VS designer
- Sql plus doesn't show English
- Cannot create connection in Oracle SQL Developer
- ORA-12560: TNS:protocol adapter error
- Cannot connect to Oracle DB from Java - ORA-12560: TNS:protocol adapter error
- Forms [ORA-12560: TNS:protocol adapter error]
- how can I solve ora 12560 TNS protocol adaptor error
- What can cause an intermitent ORA-12560: TNS:protocol adapter error?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I'm not sure from your description whether you're using the ANT SQL Task (http://ant.apache.org/manual/Tasks/sql.html) or if your using the exec task to call Sqlplus. Can you please clarify?
If you're calling sqlplus as an external command, you will be at the mercy of two main things: a) environment variables b) tnsnames.ora file
Windows and unix are different in how they handle specifying where you want to connect. In OSX you'll have the ORACLE_HOME and ORACLE_SID environment variables set. In Windows this would be in the registry. You may also have TNS_ADMIN set which determines where your tnsnames.ora file will be found.
First thing to check would be if you are both using the same tnsnames.ora file.
If you are, have both of you try to run tnsping to verify that the alias is configured properly.
Get back to us with the results of those tests.