sbj преди 1 година
родител
ревизия
7586eb512e

+ 5 - 5
pom.xml

@@ -50,11 +50,11 @@
             <artifactId>commons-lang3</artifactId>
         </dependency>
 
-        <dependency>
-            <groupId>com.dm</groupId>
-            <artifactId>DmJdbcDriver17</artifactId>
-            <version>1.7</version>
-        </dependency>
+<!--        <dependency>-->
+<!--            <groupId>com.dm</groupId>-->
+<!--            <artifactId>DmJdbcDriver17</artifactId>-->
+<!--            <version>1.7</version>-->
+<!--        </dependency>-->
 
         <dependency>
             <groupId>com.baomidou</groupId>

+ 1 - 2
src/main/java/com/example/sqlrun/entity/TablespacePartitionRule.java

@@ -1,6 +1,5 @@
 package com.example.sqlrun.entity;
 
-import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
@@ -12,7 +11,7 @@ import lombok.Data;
  * 表空间以及表分区创建规则表
  * @TableName TABLESPACE_PATITION_RULE
  */
-@TableName(value ="BAYONET_BASICS.TABLESPACE_PARTITION_RULE")
+@TableName(value ="NHGIS.TABLESPACE_PARTITION_RULE")
 @Data
 public class TablespacePartitionRule implements Serializable {
     /**

+ 3 - 3
src/main/java/com/example/sqlrun/fixSql/MakeTableSpace.java

@@ -49,11 +49,11 @@ public class MakeTableSpace {
               + ".DBF"
               + "'"
               + " size "
-              + initSize
+              + initSize + "M"
               + " autoextend on next "
-              + nextSize
+              + nextSize + "M"
               + " maxsize "
-              + maxSize;
+              + maxSize + "M";
       HashMap<String, Object> hashMap = new HashMap<>();
       hashMap.put(SpaceEnum.TABLESPACE_SQL.getName(),targetSql);
       hashMap.put(SpaceEnum.DATE.getName(), startDate);

+ 7 - 7
src/main/java/com/example/sqlrun/myEnum/SpaceEnum.java

@@ -1,21 +1,21 @@
 package com.example.sqlrun.myEnum;
 
-/**
- * @author Administrator
- */
-
+/** @author Administrator */
 public enum SpaceEnum {
   TABLESPACE_SQL("tableSpaceSql"),
   TABLESPACENAME("tableSpaceName"),
   DATE("date");
   private String name;
-  SpaceEnum(String name){
+
+  SpaceEnum(String name) {
     this.name = name;
   }
-  public String getName(){
+
+  public String getName() {
     return name;
   }
-  public void setName(String name){
+
+  public void setName(String name) {
     this.name = name;
   }
 }

+ 2 - 2
src/main/resources/application.yaml

@@ -6,8 +6,8 @@ spring:
     hikari:
       idle-timeout: 30000
       maximum-pool-size: 150
-    password: HjYagBWz0iZP094X
+    password: SHHW1234
     url: jdbc:oracle:thin:@//127.0.0.1:1521/orcl
-    username: SYSDBA
+    username: nhgis
   freemarker:
     check-template-location: false