From 578c876fdebc9df15f4904173e99678b1e5d0c00 Mon Sep 17 00:00:00 2001 From: Jens-Otto Larsen Date: Fri, 2 Aug 2024 22:41:10 +0200 Subject: [PATCH] =?UTF-8?q?Nok=20et=20fors=C3=B8k?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .oracle/oracle-init/00_initdb.sql | 13 +++++++++++++ .oracle/oracle-init/{fplos.sql => 01_fplos.sql} | 0 .../los/oppgave/OppgaveRepositoryTest.java | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .oracle/oracle-init/00_initdb.sql rename .oracle/oracle-init/{fplos.sql => 01_fplos.sql} (100%) diff --git a/.oracle/oracle-init/00_initdb.sql b/.oracle/oracle-init/00_initdb.sql new file mode 100644 index 000000000..97849d487 --- /dev/null +++ b/.oracle/oracle-init/00_initdb.sql @@ -0,0 +1,13 @@ +alter database set TIME_ZONE='Europe/Oslo'; +alter database datafile 1 autoextend on maxsize 2G; +alter system set recyclebin=OFF DEFERRED; +alter system set processes=150 scope=spfile; +alter system set session_cached_cursors=100 scope=spfile; +alter system set session_max_open_files=100 scope=spfile; +alter system set sessions=100 scope=spfile; +alter system set license_max_sessions=100 scope=spfile; +alter system set license_sessions_warning=100 scope=spfile; +alter system set disk_asynch_io=FALSE scope=spfile; +alter system set open_cursors=300 scope=both sid='*'; +alter profile default limit password_life_time unlimited; +alter profile default limit password_verify_function null; diff --git a/.oracle/oracle-init/fplos.sql b/.oracle/oracle-init/01_fplos.sql similarity index 100% rename from .oracle/oracle-init/fplos.sql rename to .oracle/oracle-init/01_fplos.sql diff --git a/src/test/java/no/nav/foreldrepenger/los/oppgave/OppgaveRepositoryTest.java b/src/test/java/no/nav/foreldrepenger/los/oppgave/OppgaveRepositoryTest.java index 25c0fa4b6..d453f28e9 100644 --- a/src/test/java/no/nav/foreldrepenger/los/oppgave/OppgaveRepositoryTest.java +++ b/src/test/java/no/nav/foreldrepenger/los/oppgave/OppgaveRepositoryTest.java @@ -79,7 +79,7 @@ void testHentingAvEventerVedBehandlingId() { } private Long setupOppgaveMedEgenskaper(AndreKriterierType... kriterier) { - var saksnummer = (long) (Math.random() * 10000); + Long saksnummer = (long) (Math.random() * 10000); var oppgave = Oppgave.builder().dummyOppgave(AVDELING_DRAMMEN_ENHET).medFagsakSaksnummer(saksnummer).build(); entityManager.persist(oppgave); for (var kriterie : kriterier) {