midsuit
This commit is contained in:
parent
31aee6b0d0
commit
ff64aab5ca
22
db/.project
22
db/.project
|
@ -1,11 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>db</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>db</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
|
|
24
doc/.project
24
doc/.project
|
@ -1,12 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>doc</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>doc</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>migration</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>migration</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
</listAttribute>
|
||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
|
||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.JAVA_COMMAND" value="java"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
|
||||
|
|
|
@ -41,4 +41,15 @@
|
|||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
<filteredResources>
|
||||
<filter>
|
||||
<id>1728283054134</id>
|
||||
<name></name>
|
||||
<type>22</type>
|
||||
<matcher>
|
||||
<id>org.eclipse.ui.ide.multiFilter</id>
|
||||
<arguments>1.0-name-matches-false-false-._*</arguments>
|
||||
</matcher>
|
||||
</filter>
|
||||
</filteredResources>
|
||||
</projectDescription>
|
||||
|
|
|
@ -63,6 +63,8 @@ Export-Package: bsh,
|
|||
org.idempiere.cache,
|
||||
org.idempiere.distributed,
|
||||
org.idempiere.expression.logic,
|
||||
org.idempiere.fa.exceptions,
|
||||
org.idempiere.fa.feature,
|
||||
org.idempiere.fa.service.api,
|
||||
org.idempiere.model,
|
||||
org.idempiere.print,
|
||||
|
|
|
@ -458,6 +458,8 @@ public final class FactLine extends X_Fact_Acct
|
|||
setUser2_ID (m_docLine.getUser2_ID());
|
||||
if (getUser2_ID() == 0)
|
||||
setUser2_ID (m_doc.getUser2_ID());
|
||||
|
||||
if(m_doc != null) set_ValueNoCheck("DocumentNo", m_doc.getDocumentNo());
|
||||
// References in setAccount
|
||||
} // setDocumentInfo
|
||||
|
||||
|
|
|
@ -474,5 +474,6 @@ public class MInventoryLine extends X_M_InventoryLine
|
|||
public boolean isSOTrx() {
|
||||
return getMovementQty().signum() < 0;
|
||||
}
|
||||
|
||||
|
||||
} // MInventoryLine
|
||||
|
|
|
@ -443,24 +443,24 @@ public class MUser extends X_AD_User implements ImmutablePOSupport
|
|||
if (Value == null || Value.length () == 0)
|
||||
Value = "noname";
|
||||
//
|
||||
String result = cleanValue(Value);
|
||||
if (result.length() > 8)
|
||||
{
|
||||
String first = getName(Value, true);
|
||||
String last = getName(Value, false);
|
||||
if (last.length() > 0)
|
||||
{
|
||||
String temp = last;
|
||||
if (first.length() > 0)
|
||||
temp = first.substring (0, 1) + last;
|
||||
result = cleanValue(temp);
|
||||
}
|
||||
else
|
||||
result = cleanValue(first);
|
||||
}
|
||||
if (result.length() > 8)
|
||||
result = result.substring (0, 8);
|
||||
super.setValue(result);
|
||||
// String result = cleanValue(Value);
|
||||
// if (result.length() > 8)
|
||||
// {
|
||||
// String first = getName(Value, true);
|
||||
// String last = getName(Value, false);
|
||||
// if (last.length() > 0)
|
||||
// {
|
||||
// String temp = last;
|
||||
// if (first.length() > 0)
|
||||
// temp = first.substring (0, 1) + last;
|
||||
// result = cleanValue(temp);
|
||||
// }
|
||||
// else
|
||||
// result = cleanValue(first);
|
||||
// }
|
||||
// if (result.length() > 8)
|
||||
// result = result.substring (0, 8);
|
||||
super.setValue(Value);
|
||||
} // setValue
|
||||
|
||||
/**
|
||||
|
@ -511,11 +511,11 @@ public class MUser extends X_AD_User implements ImmutablePOSupport
|
|||
try {
|
||||
random = SecureRandom.getInstance("SHA1PRNG");
|
||||
// Salt generation 64 bits long
|
||||
byte[] bSalt = new byte[8];
|
||||
byte[] bSalt = new byte[16];
|
||||
random.nextBytes(bSalt);
|
||||
// Digest computation
|
||||
String hash;
|
||||
hash = SecureEngine.getSHA512Hash(1000,password,bSalt);
|
||||
hash = SecureEngine.getSHA512Hash(10,password,bSalt);
|
||||
|
||||
String sSalt = Secure.convertToHexString(bSalt);
|
||||
super.setPassword(hash);
|
||||
|
|
|
@ -28,6 +28,8 @@ import javax.crypto.Cipher;
|
|||
|
||||
import org.adempiere.base.Core;
|
||||
import org.adempiere.base.IKeyStore;
|
||||
import org.bouncycastle.crypto.generators.BCrypt;
|
||||
import org.bouncycastle.crypto.generators.OpenBSDBCrypt;
|
||||
|
||||
/**
|
||||
* Default implementation of {@link SecureInterface} for encryption and decryption.
|
||||
|
@ -357,17 +359,10 @@ public class Secure implements SecureInterface
|
|||
*/
|
||||
public String getSHA512Hash (int iterations, String value, byte[] salt) throws NoSuchAlgorithmException, UnsupportedEncodingException
|
||||
{
|
||||
MessageDigest digest = MessageDigest.getInstance("SHA-512");
|
||||
digest.reset();
|
||||
digest.update(salt);
|
||||
byte[] input = digest.digest(value.getBytes("UTF-8"));
|
||||
for (int i = 0; i < iterations; i++) {
|
||||
digest.reset();
|
||||
input = digest.digest(input);
|
||||
}
|
||||
digest.reset();
|
||||
byte[] input = value.getBytes("UTF-8");
|
||||
String output = OpenBSDBCrypt.generate(input, salt, iterations);
|
||||
//
|
||||
return convertToHexString(input);
|
||||
return output;
|
||||
} // getSHA512Hash
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,10 @@ import java.security.NoSuchAlgorithmException;
|
|||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.bouncycastle.crypto.PasswordConverter;
|
||||
import org.bouncycastle.crypto.generators.BCrypt;
|
||||
import org.bouncycastle.crypto.generators.OpenBSDBCrypt;
|
||||
|
||||
/**
|
||||
* Secure engine for encryption and decryption
|
||||
*
|
||||
|
@ -232,10 +236,8 @@ public class SecureEngine
|
|||
hexSalt = "0000000000000000";
|
||||
|
||||
try {
|
||||
valid= SecureEngine.getSHA512Hash(1000, planText, Secure.convertHexString(hexSalt)).equals(hashedText);
|
||||
} catch (NoSuchAlgorithmException ignored) {
|
||||
log.log(Level.WARNING, "Password hashing not supported by JVM");
|
||||
} catch (UnsupportedEncodingException ignored) {
|
||||
valid = OpenBSDBCrypt.checkPassword(hashedText, planText.getBytes("UTF-8"));
|
||||
} catch (Exception ignored) {
|
||||
log.log(Level.WARNING, "Password hashing not supported by JVM");
|
||||
}
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
</listAttribute>
|
||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
|
||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
|
||||
|
|
|
@ -1,115 +1,115 @@
|
|||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: AfterImport.sql,v 1.2 2006/05/28 22:52:07 jjanke Exp $
|
||||
***
|
||||
* Title: After Import
|
||||
* Description:
|
||||
* - General Info
|
||||
* - Create Context
|
||||
* - Check Imported User and list ivalid objects
|
||||
* You can ignore import warnings as long as this does not
|
||||
* return error messages or records.
|
||||
************************************************************************/
|
||||
|
||||
SELECT 'DB_Name=' || SYS_CONTEXT('USERENV', 'DB_NAME')
|
||||
|| ', Language=' || SYS_CONTEXT('USERENV', 'LANGUAGE')
|
||||
|| ', Host=' || SYS_CONTEXT('USERENV', 'HOST')
|
||||
|| ', IP=' || SYS_CONTEXT('USERENV', 'IP_ADDRESS')
|
||||
|| ', User=' || SYS_CONTEXT('USERENV', 'CURRENT_USER')
|
||||
|| ', ID=' || SYS_CONTEXT('USERENV', 'CURRENT_USERID')
|
||||
|| ', Session=' || SYS_CONTEXT('USERENV', 'SESSIONID')
|
||||
AS "DBInfo"
|
||||
FROM DUAL
|
||||
/
|
||||
SET serveroutput ON
|
||||
|
||||
-- Recompile invalids
|
||||
BEGIN
|
||||
DBA_Cleanup();
|
||||
DBA_AfterImport;
|
||||
-- DBA_Recompile(NULL); -- called in DBA_AfterImport
|
||||
END;
|
||||
/
|
||||
-- Correct DataFile sizing
|
||||
DECLARE
|
||||
CURSOR Cur_TS IS
|
||||
SELECT FILE_NAME, Tablespace_Name, Bytes/1024/1024 as MB
|
||||
FROM DBA_DATA_FILES
|
||||
WHERE (TABLESPACE_NAME='USERS' AND BYTES < 100*1024*1024)
|
||||
OR (TABLESPACE_NAME='INDX' AND BYTES < 100*1024*1024)
|
||||
OR (TABLESPACE_NAME='TEMP' AND BYTES < 100*1024*1024);
|
||||
v_CMD VARCHAR2(300);
|
||||
BEGIN
|
||||
FOR ts IN Cur_TS LOOP
|
||||
DBMS_OUTPUT.PUT_LINE('Resize:');
|
||||
v_CMD := 'ALTER DATABASE DATAFILE ''' || ts.FILE_NAME
|
||||
|| ''' RESIZE 100M';
|
||||
DBMS_OUTPUT.PUT_LINE(' executing: ' || v_CMD);
|
||||
EXECUTE IMMEDIATE v_CMD;
|
||||
v_CMD := 'ALTER DATABASE DATAFILE ''' || ts.FILE_NAME
|
||||
|| ''' AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED';
|
||||
DBMS_OUTPUT.PUT_LINE(' executing: ' || v_CMD);
|
||||
EXECUTE IMMEDIATE v_CMD;
|
||||
END LOOP;
|
||||
END;
|
||||
/
|
||||
|
||||
/** Database Sizing
|
||||
** Oracle 10g should use Automatic Shared Memory Management -
|
||||
** Example 300MB
|
||||
*
|
||||
* ALTER SYSTEM documentation
|
||||
http://download-east.oracle.com/docs/cd/B14117_01/server.101/b10759/statements_2013.htm#SQLRF00902
|
||||
*
|
||||
SELECT Name, Value, Description, IsDefault FROM v$parameter
|
||||
WHERE Name LIKE '%cursor%' OR Name LIKE '%process%' OR NAME LIKE '%servers%' ORDER BY 1
|
||||
/
|
||||
SELECT Name, Value/1024/1024 "MB", Description, IsDefault, Update_Comment FROM v$parameter
|
||||
WHERE Name LIKE '%_pool_size' OR Name LIKE 'sga%'
|
||||
/
|
||||
ALTER SYSTEM SET statistics_level = TYPICAL Comment='Adempiere' SCOPE=BOTH
|
||||
/
|
||||
ALTER SYSTEM SET sga_target = 314572800 Comment='Adempiere' SCOPE=BOTH
|
||||
/
|
||||
ALTER SYSTEM SET open_cursors = 900 Comment='Adempiere' SCOPE=BOTH
|
||||
/
|
||||
|
||||
/** Oracle 9i needs to set explicitly (and restart)
|
||||
** Example 300MB
|
||||
ALTER SYSTEM SET sga_max_size=314572800 SCOPE=SPFILE
|
||||
/
|
||||
ALTER SYSTEM SET large_pool_size=33554432 SCOPE=SPFILE
|
||||
/
|
||||
ALTER SYSTEM SET java_pool_size=67108864 SCOPE=SPFILE
|
||||
/
|
||||
/** SELECT 32*1024*1024 FROM DUAL **/
|
||||
|
||||
-- Any invalids
|
||||
SELECT Object_Type "Type", Object_Name "Invalid", Status
|
||||
FROM User_Objects
|
||||
WHERE Status <> 'VALID'
|
||||
/
|
||||
-- Trigger Info
|
||||
SELECT Trigger_Name AS Trigger_NotEnabled, Status
|
||||
FROM User_Triggers
|
||||
WHERE Status != 'ENABLED'
|
||||
/
|
||||
-- Constraint Info
|
||||
column Constraint_Problem format a40
|
||||
column Table_Name format a40
|
||||
set linesize 200
|
||||
SELECT Constraint_Name AS Constraint_Problem, Status, Table_Name
|
||||
FROM User_Constraints
|
||||
WHERE Status <> 'ENABLED'
|
||||
/
|
||||
SELECT *
|
||||
FROM USER_ERRORS
|
||||
/
|
||||
COMMIT
|
||||
/
|
||||
EXIT
|
||||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: AfterImport.sql,v 1.2 2006/05/28 22:52:07 jjanke Exp $
|
||||
***
|
||||
* Title: After Import
|
||||
* Description:
|
||||
* - General Info
|
||||
* - Create Context
|
||||
* - Check Imported User and list ivalid objects
|
||||
* You can ignore import warnings as long as this does not
|
||||
* return error messages or records.
|
||||
************************************************************************/
|
||||
|
||||
SELECT 'DB_Name=' || SYS_CONTEXT('USERENV', 'DB_NAME')
|
||||
|| ', Language=' || SYS_CONTEXT('USERENV', 'LANGUAGE')
|
||||
|| ', Host=' || SYS_CONTEXT('USERENV', 'HOST')
|
||||
|| ', IP=' || SYS_CONTEXT('USERENV', 'IP_ADDRESS')
|
||||
|| ', User=' || SYS_CONTEXT('USERENV', 'CURRENT_USER')
|
||||
|| ', ID=' || SYS_CONTEXT('USERENV', 'CURRENT_USERID')
|
||||
|| ', Session=' || SYS_CONTEXT('USERENV', 'SESSIONID')
|
||||
AS "DBInfo"
|
||||
FROM DUAL
|
||||
/
|
||||
SET serveroutput ON
|
||||
|
||||
-- Recompile invalids
|
||||
BEGIN
|
||||
DBA_Cleanup();
|
||||
DBA_AfterImport;
|
||||
-- DBA_Recompile(NULL); -- called in DBA_AfterImport
|
||||
END;
|
||||
/
|
||||
-- Correct DataFile sizing
|
||||
DECLARE
|
||||
CURSOR Cur_TS IS
|
||||
SELECT FILE_NAME, Tablespace_Name, Bytes/1024/1024 as MB
|
||||
FROM DBA_DATA_FILES
|
||||
WHERE (TABLESPACE_NAME='USERS' AND BYTES < 100*1024*1024)
|
||||
OR (TABLESPACE_NAME='INDX' AND BYTES < 100*1024*1024)
|
||||
OR (TABLESPACE_NAME='TEMP' AND BYTES < 100*1024*1024);
|
||||
v_CMD VARCHAR2(300);
|
||||
BEGIN
|
||||
FOR ts IN Cur_TS LOOP
|
||||
DBMS_OUTPUT.PUT_LINE('Resize:');
|
||||
v_CMD := 'ALTER DATABASE DATAFILE ''' || ts.FILE_NAME
|
||||
|| ''' RESIZE 100M';
|
||||
DBMS_OUTPUT.PUT_LINE(' executing: ' || v_CMD);
|
||||
EXECUTE IMMEDIATE v_CMD;
|
||||
v_CMD := 'ALTER DATABASE DATAFILE ''' || ts.FILE_NAME
|
||||
|| ''' AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED';
|
||||
DBMS_OUTPUT.PUT_LINE(' executing: ' || v_CMD);
|
||||
EXECUTE IMMEDIATE v_CMD;
|
||||
END LOOP;
|
||||
END;
|
||||
/
|
||||
|
||||
/** Database Sizing
|
||||
** Oracle 10g should use Automatic Shared Memory Management -
|
||||
** Example 300MB
|
||||
*
|
||||
* ALTER SYSTEM documentation
|
||||
http://download-east.oracle.com/docs/cd/B14117_01/server.101/b10759/statements_2013.htm#SQLRF00902
|
||||
*
|
||||
SELECT Name, Value, Description, IsDefault FROM v$parameter
|
||||
WHERE Name LIKE '%cursor%' OR Name LIKE '%process%' OR NAME LIKE '%servers%' ORDER BY 1
|
||||
/
|
||||
SELECT Name, Value/1024/1024 "MB", Description, IsDefault, Update_Comment FROM v$parameter
|
||||
WHERE Name LIKE '%_pool_size' OR Name LIKE 'sga%'
|
||||
/
|
||||
ALTER SYSTEM SET statistics_level = TYPICAL Comment='Adempiere' SCOPE=BOTH
|
||||
/
|
||||
ALTER SYSTEM SET sga_target = 314572800 Comment='Adempiere' SCOPE=BOTH
|
||||
/
|
||||
ALTER SYSTEM SET open_cursors = 900 Comment='Adempiere' SCOPE=BOTH
|
||||
/
|
||||
|
||||
/** Oracle 9i needs to set explicitly (and restart)
|
||||
** Example 300MB
|
||||
ALTER SYSTEM SET sga_max_size=314572800 SCOPE=SPFILE
|
||||
/
|
||||
ALTER SYSTEM SET large_pool_size=33554432 SCOPE=SPFILE
|
||||
/
|
||||
ALTER SYSTEM SET java_pool_size=67108864 SCOPE=SPFILE
|
||||
/
|
||||
/** SELECT 32*1024*1024 FROM DUAL **/
|
||||
|
||||
-- Any invalids
|
||||
SELECT Object_Type "Type", Object_Name "Invalid", Status
|
||||
FROM User_Objects
|
||||
WHERE Status <> 'VALID'
|
||||
/
|
||||
-- Trigger Info
|
||||
SELECT Trigger_Name AS Trigger_NotEnabled, Status
|
||||
FROM User_Triggers
|
||||
WHERE Status != 'ENABLED'
|
||||
/
|
||||
-- Constraint Info
|
||||
column Constraint_Problem format a40
|
||||
column Table_Name format a40
|
||||
set linesize 200
|
||||
SELECT Constraint_Name AS Constraint_Problem, Status, Table_Name
|
||||
FROM User_Constraints
|
||||
WHERE Status <> 'ENABLED'
|
||||
/
|
||||
SELECT *
|
||||
FROM USER_ERRORS
|
||||
/
|
||||
COMMIT
|
||||
/
|
||||
EXIT
|
||||
|
|
|
@ -1,94 +1,94 @@
|
|||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: BackupCold.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Cold Backup
|
||||
* Description:
|
||||
* Generate OS cold Backup script
|
||||
* Change the parameter variables p_ as required
|
||||
* Run as system
|
||||
************************************************************************/
|
||||
SPOOL BackupCold.bat
|
||||
DECLARE
|
||||
p_backupLocation VARCHAR2(255) := 'D:\Backup';
|
||||
p_unix BOOLEAN := FALSE;
|
||||
p_useZip BOOLEAN := TRUE;
|
||||
p_zipCmd VARCHAR(60) := 'wzzip ';
|
||||
--
|
||||
v_delimiter VARCHAR(10);
|
||||
v_remark VARCHAR(10);
|
||||
v_copy VARCHAR(60);
|
||||
v_sid VARCHAR(30);
|
||||
v_cmd VARCHAR2(2000);
|
||||
--
|
||||
CURSOR CUR_DataFiles IS
|
||||
SELECT Name
|
||||
FROM v$datafile;
|
||||
CURSOR CUR_CtlFiles IS
|
||||
SELECT Name
|
||||
FROM v$controlfile;
|
||||
BEGIN
|
||||
-- OS Specifics
|
||||
IF (p_unix) THEN
|
||||
v_delimiter := '/';
|
||||
v_remark := '# ';
|
||||
v_copy := 'cp ';
|
||||
ELSE
|
||||
v_delimiter := '\';
|
||||
v_remark := 'Rem ';
|
||||
v_copy := 'copy ';
|
||||
END IF;
|
||||
--
|
||||
SELECT Value
|
||||
INTO v_sid
|
||||
FROM v$parameter
|
||||
WHERE Name ='instance_name';
|
||||
p_backupLocation := p_backupLocation || v_delimiter || v_sid;
|
||||
--
|
||||
DBMS_OUTPUT.PUT_LINE(v_remark || 'Backup script for "' || v_sid || '" to ' || p_backupLocation);
|
||||
DBMS_OUTPUT.PUT_LINE(v_remark || 'This script is automatically created by ColdBackup.sql and may need to be edited';
|
||||
DBMS_OUTPUT.NEW_LINE;
|
||||
--
|
||||
DBMS_OUTPUT.PUT_LINE(v_remark || 'mkdir ' || p_backupLocation);
|
||||
DBMS_OUTPUT.NEW_LINE;
|
||||
|
||||
DBMS_OUTPUT.PUT_LINE('sqlplus "system/manager@%AccortoDBService% AS SYSDBA" @%AccortoHome%\util\orastop.sql');
|
||||
DBMS_OUTPUT.NEW_LINE;
|
||||
|
||||
IF (p_useZip) THEN
|
||||
DBMS_OUTPUT.PUT_LINE(p_zipCmd || p_backupLocation || v_delimiter || v_sid || '.zip ');
|
||||
DBMS_OUTPUT.PUT(' ');
|
||||
END IF;
|
||||
FOR f IN CUR_DataFiles LOOP
|
||||
IF (p_useZip) THEN
|
||||
DBMS_OUTPUT.PUT(' ' || f.Name);
|
||||
ELSE
|
||||
DBMS_OUTPUT.PUT_LINE(v_copy || f.Name || ' ' || p_backupLocation);
|
||||
END IF;
|
||||
END LOOP;
|
||||
IF (p_useZip) THEN
|
||||
DBMS_OUTPUT.NEW_LINE;
|
||||
DBMS_OUTPUT.PUT(' ');
|
||||
END IF;
|
||||
FOR f IN CUR_CtlFiles LOOP
|
||||
IF (p_useZip) THEN
|
||||
DBMS_OUTPUT.PUT(' ' || f.Name);
|
||||
ELSE
|
||||
DBMS_OUTPUT.PUT_LINE(v_copy || f.Name || ' ' || p_backupLocation);
|
||||
END IF;
|
||||
END LOOP;
|
||||
IF (p_useZip) THEN
|
||||
DBMS_OUTPUT.NEW_LINE;
|
||||
END IF;
|
||||
DBMS_OUTPUT.NEW_LINE;
|
||||
|
||||
DBMS_OUTPUT.PUT_LINE('sqlplus "system/manager@%AccortoDBService% AS SYSDBA" @%AccortoHome%\util\orastart.sql');
|
||||
END;
|
||||
/
|
||||
SPOOL OFF
|
||||
EXIT
|
||||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: BackupCold.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Cold Backup
|
||||
* Description:
|
||||
* Generate OS cold Backup script
|
||||
* Change the parameter variables p_ as required
|
||||
* Run as system
|
||||
************************************************************************/
|
||||
SPOOL BackupCold.bat
|
||||
DECLARE
|
||||
p_backupLocation VARCHAR2(255) := 'D:\Backup';
|
||||
p_unix BOOLEAN := FALSE;
|
||||
p_useZip BOOLEAN := TRUE;
|
||||
p_zipCmd VARCHAR(60) := 'wzzip ';
|
||||
--
|
||||
v_delimiter VARCHAR(10);
|
||||
v_remark VARCHAR(10);
|
||||
v_copy VARCHAR(60);
|
||||
v_sid VARCHAR(30);
|
||||
v_cmd VARCHAR2(2000);
|
||||
--
|
||||
CURSOR CUR_DataFiles IS
|
||||
SELECT Name
|
||||
FROM v$datafile;
|
||||
CURSOR CUR_CtlFiles IS
|
||||
SELECT Name
|
||||
FROM v$controlfile;
|
||||
BEGIN
|
||||
-- OS Specifics
|
||||
IF (p_unix) THEN
|
||||
v_delimiter := '/';
|
||||
v_remark := '# ';
|
||||
v_copy := 'cp ';
|
||||
ELSE
|
||||
v_delimiter := '\';
|
||||
v_remark := 'Rem ';
|
||||
v_copy := 'copy ';
|
||||
END IF;
|
||||
--
|
||||
SELECT Value
|
||||
INTO v_sid
|
||||
FROM v$parameter
|
||||
WHERE Name ='instance_name';
|
||||
p_backupLocation := p_backupLocation || v_delimiter || v_sid;
|
||||
--
|
||||
DBMS_OUTPUT.PUT_LINE(v_remark || 'Backup script for "' || v_sid || '" to ' || p_backupLocation);
|
||||
DBMS_OUTPUT.PUT_LINE(v_remark || 'This script is automatically created by ColdBackup.sql and may need to be edited';
|
||||
DBMS_OUTPUT.NEW_LINE;
|
||||
--
|
||||
DBMS_OUTPUT.PUT_LINE(v_remark || 'mkdir ' || p_backupLocation);
|
||||
DBMS_OUTPUT.NEW_LINE;
|
||||
|
||||
DBMS_OUTPUT.PUT_LINE('sqlplus "system/manager@%AccortoDBService% AS SYSDBA" @%AccortoHome%\util\orastop.sql');
|
||||
DBMS_OUTPUT.NEW_LINE;
|
||||
|
||||
IF (p_useZip) THEN
|
||||
DBMS_OUTPUT.PUT_LINE(p_zipCmd || p_backupLocation || v_delimiter || v_sid || '.zip ');
|
||||
DBMS_OUTPUT.PUT(' ');
|
||||
END IF;
|
||||
FOR f IN CUR_DataFiles LOOP
|
||||
IF (p_useZip) THEN
|
||||
DBMS_OUTPUT.PUT(' ' || f.Name);
|
||||
ELSE
|
||||
DBMS_OUTPUT.PUT_LINE(v_copy || f.Name || ' ' || p_backupLocation);
|
||||
END IF;
|
||||
END LOOP;
|
||||
IF (p_useZip) THEN
|
||||
DBMS_OUTPUT.NEW_LINE;
|
||||
DBMS_OUTPUT.PUT(' ');
|
||||
END IF;
|
||||
FOR f IN CUR_CtlFiles LOOP
|
||||
IF (p_useZip) THEN
|
||||
DBMS_OUTPUT.PUT(' ' || f.Name);
|
||||
ELSE
|
||||
DBMS_OUTPUT.PUT_LINE(v_copy || f.Name || ' ' || p_backupLocation);
|
||||
END IF;
|
||||
END LOOP;
|
||||
IF (p_useZip) THEN
|
||||
DBMS_OUTPUT.NEW_LINE;
|
||||
END IF;
|
||||
DBMS_OUTPUT.NEW_LINE;
|
||||
|
||||
DBMS_OUTPUT.PUT_LINE('sqlplus "system/manager@%AccortoDBService% AS SYSDBA" @%AccortoHome%\util\orastart.sql');
|
||||
END;
|
||||
/
|
||||
SPOOL OFF
|
||||
EXIT
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2002 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: BeforeExport.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Before Export
|
||||
* Description:
|
||||
* - Delete Temporary Data
|
||||
************************************************************************/
|
||||
|
||||
DELETE T_Report
|
||||
/
|
||||
DELETE T_Replenish
|
||||
/
|
||||
DELETE T_Spool
|
||||
/
|
||||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2002 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: BeforeExport.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Before Export
|
||||
* Description:
|
||||
* - Delete Temporary Data
|
||||
************************************************************************/
|
||||
|
||||
DELETE T_Report
|
||||
/
|
||||
DELETE T_Replenish
|
||||
/
|
||||
DELETE T_Spool
|
||||
/
|
||||
EXIT
|
|
@ -1,93 +1,93 @@
|
|||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2003 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: CheckDB.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: TabeSpace Sizing
|
||||
* Description:
|
||||
* Make sure, that Tablespace
|
||||
* USERS is 150 MB, 10 MB Autoextend
|
||||
* INDX is 100 MB, 10 MB Autoextend
|
||||
* TEMP is 100 MB, 10 MB Autoextend
|
||||
* Set SGA Size (optional)
|
||||
* Executed with System user and parameter %ADEMPIERE_DB_USER% from RUN_Env
|
||||
************************************************************************/
|
||||
|
||||
-- Check existance
|
||||
SELECT 'Tablespace USERS does not exist - You need to create it first' AS Missing FROM DUAL
|
||||
WHERE NOT EXISTS (SELECT * FROM DBA_TABLESPACES WHERE TABLESPACE_NAME='USERS');
|
||||
SELECT 'Tablespace INDX does not exist - You need to create it first' AS Missing FROM DUAL
|
||||
WHERE NOT EXISTS (SELECT * FROM DBA_TABLESPACES WHERE TABLESPACE_NAME='INDX');
|
||||
SELECT 'Tablespace TEMP does not exist - You need to create it first' AS Missing FROM DUAL
|
||||
WHERE NOT EXISTS (SELECT * FROM DBA_TABLESPACES WHERE TABLESPACE_NAME='TEMP');
|
||||
|
||||
/*****
|
||||
* Changing System Parameters
|
||||
* directly - (e.g. 400 MB for 10 Users)
|
||||
ALTER SYSTEM SET SGA_MAX_SIZE=400M COMMENT='400MB' SCOPE=SPFILE;
|
||||
ALTER SYSTEM SET SHARED_POOL_SIZE=100M SCOPE=SPFILE;
|
||||
ALTER SYSTEM SET DB_CACHE_SIZE=200M SCOPE=SPFILE;
|
||||
ALTER SYSTEM SET JAVA_POOL_SIZE=40M SCOPE=SPFILE;
|
||||
ALTER SYSTEM SET LARGE_POOL_SIZE=10M SCOPE=SPFILE;
|
||||
** indirectly - sqlplus "system/manager@adempiere AS SYSDBA"
|
||||
CREATE PFile='pfileAdempiere.ora' FROM SPFile;
|
||||
* creates file in $ORACLE_HOME\database or $ORACLE_HOME/dbs
|
||||
* edit file and then overwrite the fila via
|
||||
CREATE SPFile FROM PFile='pfileAdempiere.ora';
|
||||
*****/
|
||||
|
||||
-- Create System Record - OK, if it fails
|
||||
-- Schema is parameter.
|
||||
INSERT INTO &1..AD_System
|
||||
(AD_System_ID,AD_Client_ID,AD_Org_ID,
|
||||
IsActive,Created,CreatedBy,Updated,UpdatedBy,
|
||||
Name, UserName, Info)
|
||||
SELECT 0,0,0,'Y', SysDate,0,SysDate,0, '?','?','?'
|
||||
FROM Dual
|
||||
WHERE NOT EXISTS
|
||||
(SELECT * FROM &1..AD_System WHERE AD_System_ID=0);
|
||||
|
||||
-- Add Info - OK, if fails
|
||||
UPDATE &1..AD_System
|
||||
SET Info = (SELECT SYS_CONTEXT('USERENV', 'DB_DOMAIN')
|
||||
|| ',' || SYS_CONTEXT('USERENV', 'DB_NAME')
|
||||
|| ',IP=' || SYS_CONTEXT('USERENV', 'IP_ADDRESS')
|
||||
|| ',' || SYS_CONTEXT('USERENV', 'HOST')
|
||||
|| ',' || SYS_CONTEXT('USERENV', 'INSTANCE')
|
||||
|| ',UID=' || SYS_CONTEXT('USERENV', 'CURRENT_USER')
|
||||
|| ',' || SYS_CONTEXT('USERENV', 'CURRENT_USERID')
|
||||
|| ',C#=' || (SELECT COUNT(*) FROM &1..AD_Client)
|
||||
FROM DUAL),
|
||||
Updated=SysDate;
|
||||
COMMIT;
|
||||
|
||||
set serveroutput on
|
||||
-- Correct sizing
|
||||
DECLARE
|
||||
CURSOR Cur_TS IS
|
||||
SELECT FILE_NAME, Tablespace_Name, Bytes/1024/1024 as MB
|
||||
FROM DBA_DATA_FILES
|
||||
WHERE (TABLESPACE_NAME='USERS' AND BYTES < 100*1024*1024)
|
||||
OR (TABLESPACE_NAME='INDX' AND BYTES < 100*1024*1024)
|
||||
OR (TABLESPACE_NAME='TEMP' AND BYTES < 100*1024*1024);
|
||||
v_CMD VARCHAR2(300);
|
||||
BEGIN
|
||||
DBMS_OUTPUT.PUT_LINE('Resize:');
|
||||
FOR ts IN Cur_TS LOOP
|
||||
v_CMD := 'ALTER DATABASE DATAFILE ''' || ts.FILE_NAME
|
||||
|| ''' RESIZE 100M';
|
||||
DBMS_OUTPUT.PUT_LINE(' executing: ' || v_CMD);
|
||||
EXECUTE IMMEDIATE v_CMD;
|
||||
v_CMD := 'ALTER DATABASE DATAFILE ''' || ts.FILE_NAME
|
||||
|| ''' AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED';
|
||||
DBMS_OUTPUT.PUT_LINE(' executing: ' || v_CMD);
|
||||
EXECUTE IMMEDIATE v_CMD;
|
||||
END LOOP;
|
||||
END;
|
||||
/
|
||||
|
||||
EXIT
|
||||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2003 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: CheckDB.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: TabeSpace Sizing
|
||||
* Description:
|
||||
* Make sure, that Tablespace
|
||||
* USERS is 150 MB, 10 MB Autoextend
|
||||
* INDX is 100 MB, 10 MB Autoextend
|
||||
* TEMP is 100 MB, 10 MB Autoextend
|
||||
* Set SGA Size (optional)
|
||||
* Executed with System user and parameter %ADEMPIERE_DB_USER% from RUN_Env
|
||||
************************************************************************/
|
||||
|
||||
-- Check existance
|
||||
SELECT 'Tablespace USERS does not exist - You need to create it first' AS Missing FROM DUAL
|
||||
WHERE NOT EXISTS (SELECT * FROM DBA_TABLESPACES WHERE TABLESPACE_NAME='USERS');
|
||||
SELECT 'Tablespace INDX does not exist - You need to create it first' AS Missing FROM DUAL
|
||||
WHERE NOT EXISTS (SELECT * FROM DBA_TABLESPACES WHERE TABLESPACE_NAME='INDX');
|
||||
SELECT 'Tablespace TEMP does not exist - You need to create it first' AS Missing FROM DUAL
|
||||
WHERE NOT EXISTS (SELECT * FROM DBA_TABLESPACES WHERE TABLESPACE_NAME='TEMP');
|
||||
|
||||
/*****
|
||||
* Changing System Parameters
|
||||
* directly - (e.g. 400 MB for 10 Users)
|
||||
ALTER SYSTEM SET SGA_MAX_SIZE=400M COMMENT='400MB' SCOPE=SPFILE;
|
||||
ALTER SYSTEM SET SHARED_POOL_SIZE=100M SCOPE=SPFILE;
|
||||
ALTER SYSTEM SET DB_CACHE_SIZE=200M SCOPE=SPFILE;
|
||||
ALTER SYSTEM SET JAVA_POOL_SIZE=40M SCOPE=SPFILE;
|
||||
ALTER SYSTEM SET LARGE_POOL_SIZE=10M SCOPE=SPFILE;
|
||||
** indirectly - sqlplus "system/manager@adempiere AS SYSDBA"
|
||||
CREATE PFile='pfileAdempiere.ora' FROM SPFile;
|
||||
* creates file in $ORACLE_HOME\database or $ORACLE_HOME/dbs
|
||||
* edit file and then overwrite the fila via
|
||||
CREATE SPFile FROM PFile='pfileAdempiere.ora';
|
||||
*****/
|
||||
|
||||
-- Create System Record - OK, if it fails
|
||||
-- Schema is parameter.
|
||||
INSERT INTO &1..AD_System
|
||||
(AD_System_ID,AD_Client_ID,AD_Org_ID,
|
||||
IsActive,Created,CreatedBy,Updated,UpdatedBy,
|
||||
Name, UserName, Info)
|
||||
SELECT 0,0,0,'Y', SysDate,0,SysDate,0, '?','?','?'
|
||||
FROM Dual
|
||||
WHERE NOT EXISTS
|
||||
(SELECT * FROM &1..AD_System WHERE AD_System_ID=0);
|
||||
|
||||
-- Add Info - OK, if fails
|
||||
UPDATE &1..AD_System
|
||||
SET Info = (SELECT SYS_CONTEXT('USERENV', 'DB_DOMAIN')
|
||||
|| ',' || SYS_CONTEXT('USERENV', 'DB_NAME')
|
||||
|| ',IP=' || SYS_CONTEXT('USERENV', 'IP_ADDRESS')
|
||||
|| ',' || SYS_CONTEXT('USERENV', 'HOST')
|
||||
|| ',' || SYS_CONTEXT('USERENV', 'INSTANCE')
|
||||
|| ',UID=' || SYS_CONTEXT('USERENV', 'CURRENT_USER')
|
||||
|| ',' || SYS_CONTEXT('USERENV', 'CURRENT_USERID')
|
||||
|| ',C#=' || (SELECT COUNT(*) FROM &1..AD_Client)
|
||||
FROM DUAL),
|
||||
Updated=SysDate;
|
||||
COMMIT;
|
||||
|
||||
set serveroutput on
|
||||
-- Correct sizing
|
||||
DECLARE
|
||||
CURSOR Cur_TS IS
|
||||
SELECT FILE_NAME, Tablespace_Name, Bytes/1024/1024 as MB
|
||||
FROM DBA_DATA_FILES
|
||||
WHERE (TABLESPACE_NAME='USERS' AND BYTES < 100*1024*1024)
|
||||
OR (TABLESPACE_NAME='INDX' AND BYTES < 100*1024*1024)
|
||||
OR (TABLESPACE_NAME='TEMP' AND BYTES < 100*1024*1024);
|
||||
v_CMD VARCHAR2(300);
|
||||
BEGIN
|
||||
DBMS_OUTPUT.PUT_LINE('Resize:');
|
||||
FOR ts IN Cur_TS LOOP
|
||||
v_CMD := 'ALTER DATABASE DATAFILE ''' || ts.FILE_NAME
|
||||
|| ''' RESIZE 100M';
|
||||
DBMS_OUTPUT.PUT_LINE(' executing: ' || v_CMD);
|
||||
EXECUTE IMMEDIATE v_CMD;
|
||||
v_CMD := 'ALTER DATABASE DATAFILE ''' || ts.FILE_NAME
|
||||
|| ''' AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED';
|
||||
DBMS_OUTPUT.PUT_LINE(' executing: ' || v_CMD);
|
||||
EXECUTE IMMEDIATE v_CMD;
|
||||
END LOOP;
|
||||
END;
|
||||
/
|
||||
|
||||
EXIT
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
SET ECHO ON
|
||||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: CreateUser.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Create or replace directory for data pump
|
||||
* Description:
|
||||
* Parameter: Directory
|
||||
* Run as system
|
||||
************************************************************************/
|
||||
CREATE OR REPLACE DIRECTORY ADEMPIERE_DATA_PUMP_DIR AS '&1'
|
||||
/
|
||||
EXIT
|
||||
SET ECHO ON
|
||||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: CreateUser.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Create or replace directory for data pump
|
||||
* Description:
|
||||
* Parameter: Directory
|
||||
* Run as system
|
||||
************************************************************************/
|
||||
CREATE OR REPLACE DIRECTORY ADEMPIERE_DATA_PUMP_DIR AS '&1'
|
||||
/
|
||||
EXIT
|
||||
|
|
|
@ -1,36 +1,36 @@
|
|||
SET ECHO ON
|
||||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: CreateUser.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Drop User and re-create new
|
||||
* Description:
|
||||
* Parameter: UserID UserPwd
|
||||
* Run as system
|
||||
************************************************************************/
|
||||
DROP USER &1 CASCADE
|
||||
/
|
||||
CREATE USER &1 IDENTIFIED BY &2
|
||||
DEFAULT TABLESPACE USERS
|
||||
TEMPORARY TABLESPACE TEMP
|
||||
PROFILE DEFAULT
|
||||
ACCOUNT UNLOCK
|
||||
/
|
||||
GRANT CONNECT TO &1
|
||||
/
|
||||
GRANT DBA TO &1
|
||||
/
|
||||
GRANT RESOURCE TO &1
|
||||
/
|
||||
GRANT UNLIMITED TABLESPACE TO &1
|
||||
/
|
||||
ALTER USER &1 DEFAULT ROLE CONNECT, RESOURCE, DBA
|
||||
/
|
||||
GRANT CREATE TABLE TO &1
|
||||
/
|
||||
EXIT
|
||||
SET ECHO ON
|
||||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: CreateUser.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Drop User and re-create new
|
||||
* Description:
|
||||
* Parameter: UserID UserPwd
|
||||
* Run as system
|
||||
************************************************************************/
|
||||
DROP USER &1 CASCADE
|
||||
/
|
||||
CREATE USER &1 IDENTIFIED BY &2
|
||||
DEFAULT TABLESPACE USERS
|
||||
TEMPORARY TABLESPACE TEMP
|
||||
PROFILE DEFAULT
|
||||
ACCOUNT UNLOCK
|
||||
/
|
||||
GRANT CONNECT TO &1
|
||||
/
|
||||
GRANT DBA TO &1
|
||||
/
|
||||
GRANT RESOURCE TO &1
|
||||
/
|
||||
GRANT UNLIMITED TABLESPACE TO &1
|
||||
/
|
||||
ALTER USER &1 DEFAULT ROLE CONNECT, RESOURCE, DBA
|
||||
/
|
||||
GRANT CREATE TABLE TO &1
|
||||
/
|
||||
EXIT
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2002 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: Daily.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Daily Tasks
|
||||
* Description:
|
||||
* - Recompile
|
||||
* - Cleanup
|
||||
************************************************************************/
|
||||
DECLARE
|
||||
Result VARCHAR2(2000);
|
||||
BEGIN
|
||||
DBA_Recompile(Result);
|
||||
DBMS_OUTPUT.PUT_LINE(Result);
|
||||
DBA_Cleanup();
|
||||
END;
|
||||
/
|
||||
EXIT
|
||||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2002 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: Daily.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Daily Tasks
|
||||
* Description:
|
||||
* - Recompile
|
||||
* - Cleanup
|
||||
************************************************************************/
|
||||
DECLARE
|
||||
Result VARCHAR2(2000);
|
||||
BEGIN
|
||||
DBA_Recompile(Result);
|
||||
DBMS_OUTPUT.PUT_LINE(Result);
|
||||
DBA_Cleanup();
|
||||
END;
|
||||
/
|
||||
EXIT
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2003 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: Start.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Start Database
|
||||
* Description:
|
||||
* Start the script via
|
||||
* sqlplus "system/$ADEMPIERE_DB_SYSTEM AS SYSDBA" @$IDEMPIERE_HOME/utils/$ADEMPIERE_DB_PATH/Start.sql
|
||||
************************************************************************/
|
||||
set pause off
|
||||
set echo on
|
||||
startup
|
||||
exit
|
||||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2003 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: Start.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Start Database
|
||||
* Description:
|
||||
* Start the script via
|
||||
* sqlplus "system/$ADEMPIERE_DB_SYSTEM AS SYSDBA" @$IDEMPIERE_HOME/utils/$ADEMPIERE_DB_PATH/Start.sql
|
||||
************************************************************************/
|
||||
set pause off
|
||||
set echo on
|
||||
startup
|
||||
exit
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2003 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: Stop.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Stop Database and save configuration in trace
|
||||
* Description:
|
||||
* Start the script via
|
||||
* sqlplus "system/$ADEMPIERE_DB_SYSTEM AS SYSDBA" @$IDEMPIERE_HOME/utils/$ADEMPIERE_DB_PATH/Stop.sql
|
||||
************************************************************************/
|
||||
set pause off
|
||||
set echo on
|
||||
ALTER DATABASE BACKUP CONTROLFILE TO TRACE;
|
||||
shutdown transactional
|
||||
exit
|
||||
/*************************************************************************
|
||||
* The contents of this file are subject to the Adempiere License. You may
|
||||
* obtain a copy of the License at http://www.adempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: Adempiere ERP+CRM
|
||||
* Copyright (C) 1999-2003 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: Stop.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
|
||||
***
|
||||
* Title: Stop Database and save configuration in trace
|
||||
* Description:
|
||||
* Start the script via
|
||||
* sqlplus "system/$ADEMPIERE_DB_SYSTEM AS SYSDBA" @$IDEMPIERE_HOME/utils/$ADEMPIERE_DB_PATH/Stop.sql
|
||||
************************************************************************/
|
||||
set pause off
|
||||
set echo on
|
||||
ALTER DATABASE BACKUP CONTROLFILE TO TRACE;
|
||||
shutdown transactional
|
||||
exit
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
-- Connection Test
|
||||
SELECT 'Success ' AS Connection FROM DUAL
|
||||
/
|
||||
EXIT
|
||||
|
||||
-- Connection Test
|
||||
SELECT 'Success ' AS Connection FROM DUAL
|
||||
/
|
||||
EXIT
|
||||
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
/*************************************************************************
|
||||
* $Id: CreateUser.sql,v 1.1 2006/12/27 17:51:58 globalqss Exp $
|
||||
***
|
||||
* Title: Drop User and re-create new
|
||||
* Description:
|
||||
* Parameter: UserID UserPwd
|
||||
* Run as postgres
|
||||
************************************************************************/
|
||||
DROP DATABASE &1;
|
||||
|
||||
DROP USER &1;
|
||||
|
||||
CREATE USER &1 WITH CREATEDB CREATEUSER PASSWORD '&2'
|
||||
|
||||
CREATE DATABASE &1
|
||||
WITH ENCODING='UNICODE'
|
||||
/*************************************************************************
|
||||
* $Id: CreateUser.sql,v 1.1 2006/12/27 17:51:58 globalqss Exp $
|
||||
***
|
||||
* Title: Drop User and re-create new
|
||||
* Description:
|
||||
* Parameter: UserID UserPwd
|
||||
* Run as postgres
|
||||
************************************************************************/
|
||||
DROP DATABASE &1;
|
||||
|
||||
DROP USER &1;
|
||||
|
||||
CREATE USER &1 WITH CREATEDB CREATEUSER PASSWORD '&2'
|
||||
|
||||
CREATE DATABASE &1
|
||||
WITH ENCODING='UNICODE'
|
||||
OWNER=&1;
|
|
@ -1,49 +1,49 @@
|
|||
/*************************************************************************
|
||||
* The contents of this file are subject to the iDempiere License. You may
|
||||
* obtain a copy of the License at http://www.idempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: iDempiere ERP+CRM
|
||||
* Copyright (C) 1999-2002 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: Daily.sql,v 1.1 2006/12/27 globalqss Exp $
|
||||
***
|
||||
* Title: Daily Tasks
|
||||
* Description:
|
||||
* - Cleanup
|
||||
************************************************************************/
|
||||
|
||||
-- Temporary Tables
|
||||
DELETE FROM T_Aging;
|
||||
|
||||
DELETE FROM T_DistributionRunDetail;
|
||||
|
||||
DELETE FROM T_InventoryValue;
|
||||
|
||||
DELETE FROM T_Replenish;
|
||||
|
||||
DELETE FROM T_Report;
|
||||
|
||||
DELETE FROM T_ReportStatement;
|
||||
|
||||
DELETE FROM T_TrialBalance;
|
||||
|
||||
DELETE FROM T_Selection;
|
||||
|
||||
DELETE FROM T_Selection2;
|
||||
|
||||
DELETE FROM T_Spool;
|
||||
|
||||
-- Search Info
|
||||
DELETE FROM AD_Find;
|
||||
|
||||
-- Processes older than a week
|
||||
DELETE FROM AD_PInstance WHERE Created < now()-7;
|
||||
|
||||
-- Errors older than 1 week
|
||||
DELETE FROM AD_Error WHERE Created < now()-7;
|
||||
|
||||
-- Acknowledged Notes older than a day
|
||||
DELETE FROM AD_Note WHERE Processed='Y' AND Updated < now()-1;
|
||||
|
||||
--
|
||||
COMMIT;
|
||||
/*************************************************************************
|
||||
* The contents of this file are subject to the iDempiere License. You may
|
||||
* obtain a copy of the License at http://www.idempiere.org/license.html
|
||||
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
|
||||
* express or implied. See the License for details. Code: iDempiere ERP+CRM
|
||||
* Copyright (C) 1999-2002 Jorg Janke, ComPiere, Inc. All Rights Reserved.
|
||||
*************************************************************************
|
||||
* $Id: Daily.sql,v 1.1 2006/12/27 globalqss Exp $
|
||||
***
|
||||
* Title: Daily Tasks
|
||||
* Description:
|
||||
* - Cleanup
|
||||
************************************************************************/
|
||||
|
||||
-- Temporary Tables
|
||||
DELETE FROM T_Aging;
|
||||
|
||||
DELETE FROM T_DistributionRunDetail;
|
||||
|
||||
DELETE FROM T_InventoryValue;
|
||||
|
||||
DELETE FROM T_Replenish;
|
||||
|
||||
DELETE FROM T_Report;
|
||||
|
||||
DELETE FROM T_ReportStatement;
|
||||
|
||||
DELETE FROM T_TrialBalance;
|
||||
|
||||
DELETE FROM T_Selection;
|
||||
|
||||
DELETE FROM T_Selection2;
|
||||
|
||||
DELETE FROM T_Spool;
|
||||
|
||||
-- Search Info
|
||||
DELETE FROM AD_Find;
|
||||
|
||||
-- Processes older than a week
|
||||
DELETE FROM AD_PInstance WHERE Created < now()-7;
|
||||
|
||||
-- Errors older than 1 week
|
||||
DELETE FROM AD_Error WHERE Created < now()-7;
|
||||
|
||||
-- Acknowledged Notes older than a day
|
||||
DELETE FROM AD_Note WHERE Processed='Y' AND Updated < now()-1;
|
||||
|
||||
--
|
||||
COMMIT;
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
-- Connection Test
|
||||
SELECT 'Success ' AS Connection;
|
||||
-- Connection Test
|
||||
SELECT 'Success ' AS Connection;
|
||||
|
|
|
@ -36,4 +36,15 @@
|
|||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
<filteredResources>
|
||||
<filter>
|
||||
<id>1728283068913</id>
|
||||
<name></name>
|
||||
<type>22</type>
|
||||
<matcher>
|
||||
<id>org.eclipse.ui.ide.multiFilter</id>
|
||||
<arguments>1.0-name-matches-false-false-._*</arguments>
|
||||
</matcher>
|
||||
</filter>
|
||||
</filteredResources>
|
||||
</projectDescription>
|
||||
|
|
|
@ -1,7 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
<classpathentry kind="src" output="target/classes" path="src">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
|
|
@ -25,8 +25,14 @@
|
|||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
|
|
|
@ -1,16 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry exported="true" kind="lib" path="lib/content-type.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/accessors-smart.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/lang-tag.jar"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/nimbus-jose-jwt.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/json-smart.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/oauth2-oidc-sdk.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/nimbus-jose-jwt.jar"/>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
|
||||
<classpathentry exported="true" kind="lib" path="lib/lang-tag.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/accessors-smart.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/content-type.jar"/>
|
||||
<classpathentry kind="src" output="target/classes" path="src">
|
||||
<attributes>
|
||||
<attribute name="module" value="true"/>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
|
|
|
@ -25,8 +25,14 @@
|
|||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
|
|
|
@ -18,8 +18,8 @@ Bundle-ActivationPolicy: lazy
|
|||
Require-Bundle: org.adempiere.base;bundle-version="11.0.0",
|
||||
org.eclipse.core.runtime;bundle-version="3.24.100"
|
||||
Bundle-ClassPath: lib/nimbus-jose-jwt.jar,
|
||||
lib/oauth2-oidc-sdk.jar,
|
||||
lib/json-smart.jar,
|
||||
lib/oauth2-oidc-sdk.jar,
|
||||
lib/lang-tag.jar,
|
||||
lib/accessors-smart.jar,
|
||||
lib/content-type.jar,
|
||||
|
|
|
@ -4,8 +4,8 @@ bin.includes = META-INF/,\
|
|||
.,\
|
||||
OSGI-INF/,\
|
||||
lib/nimbus-jose-jwt.jar,\
|
||||
lib/oauth2-oidc-sdk.jar,\
|
||||
lib/json-smart.jar,\
|
||||
lib/lang-tag.jar,\
|
||||
lib/accessors-smart.jar,\
|
||||
lib/content-type.jar
|
||||
lib/content-type.jar,\
|
||||
lib/oauth2-oidc-sdk.jar
|
||||
|
|
|
@ -37,6 +37,7 @@ import org.adempiere.base.sso.ISSOPrincipalService;
|
|||
import org.adempiere.base.sso.SSOUtils;
|
||||
import org.compiere.model.I_SSO_PrincipalConfig;
|
||||
import org.compiere.model.MSysConfig;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.Language;
|
||||
import org.compiere.util.Util;
|
||||
|
||||
|
@ -224,6 +225,8 @@ public class OIDCPrincipalService implements ISSOPrincipalService {
|
|||
if (metaData == null) {
|
||||
String discoveryURI = principalConfig.getSSO_ApplicationDiscoveryURI();
|
||||
Issuer issuer = new Issuer(discoveryURI.substring(0, discoveryURI.indexOf("/.well-known/openid-configuration")));
|
||||
// CLogger log = CLogger.getCLogger(OIDCPrincipalService.class);
|
||||
// log.warning("log discovery : "+discoveryURI + " truncated : "+discoveryURI.substring(0, discoveryURI.indexOf("/.well-known/openid-configuration")));
|
||||
metaData = OIDCProviderMetadata.resolve(issuer);
|
||||
}
|
||||
return metaData;
|
||||
|
|
|
@ -1,7 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" output="target/classes" path="src">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
|
|
@ -25,8 +25,14 @@
|
|||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
|
|
|
@ -1,7 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" output="target/classes" path="src">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
|
|
@ -25,8 +25,14 @@
|
|||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>utils_dev</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>utils_dev</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
|
|
Loading…
Reference in New Issue