diff --git a/org.adempiere.install/install.app.launch b/org.adempiere.install/install.app.launch index 13ba2d1018..2825f83ab9 100644 --- a/org.adempiere.install/install.app.launch +++ b/org.adempiere.install/install.app.launch @@ -16,7 +16,7 @@ - + diff --git a/org.compiere.db.oracle.provider/src/org/adempiere/db/oracle/config/ConfigOracle.java b/org.compiere.db.oracle.provider/src/org/adempiere/db/oracle/config/ConfigOracle.java index 2e4bdf9f08..418290d2a1 100644 --- a/org.compiere.db.oracle.provider/src/org/adempiere/db/oracle/config/ConfigOracle.java +++ b/org.compiere.db.oracle.provider/src/org/adempiere/db/oracle/config/ConfigOracle.java @@ -382,12 +382,17 @@ public class ConfigOracle implements IDatabaseConfig data.setProperty(ConfigurationData.ADEMPIERE_DB_USER, databaseUser); data.setProperty(ConfigurationData.ADEMPIERE_DB_PASSWORD, databasePassword); + String ospath; + if (System.getProperty("os.name").startsWith("Windows")) + ospath = "windows"; + else + ospath = "unix"; // TNS Name Info via sqlplus String sqlplus = "sqlplus system/" + systemPassword + "@" + "//" + databaseServer.getHostName() + ":" + databasePort + "/" + databaseName - + " @utils/oracle/Test.sql"; + + " @utils." + ospath + "/oracle/Test.sql"; log.config(sqlplus); pass = testSQL(sqlplus); error = "Error connecting via: " + sqlplus;