更新时间:2024-04-18 GMT+08:00
分享

数据库相关

  1. sybase
    1. Sybase环境下需要修改字符集,不修改可能会出现乱码以及因为大字段导致的数据库异常退出

      解决步骤:

      在服务器上打开MS-DOS窗口,进入sybase安装目录中的charsets\cp936目录,如:

      cd sybase\charsets\cp936

      输入以下命令加载cp936字符集:

      charset –Usa –P –SWHDS binary.srt cp936
      图1 加载

      进入isql,查询cp936字符集的id

      图2 查询

      设置default character set id参数值为171(即cp936对应的id)

      图3 设置

      完成后,重启实例两次(第一次启动会失败)

    2. Sybase环境下,恢复备份包以及某些操作会出现提示锁不够的问题

      解决步骤:

      修改锁使用数量

      sp_configure "number of locks",100000

      如果不够,继续增加到30W

    3. Sybase环境下,提示错误:Space available in the log segment has fallen critically low in database 'tempdb'. All future modifications to this database will be suspended until the log is successfully dumped and space becomes available.

      解决步骤:

      tempdb默认参数3M太小,修改至200M

      1> sp_cacheconfig 'tempdb_cache','200m','mixed' 2> go 1> sp_bindcache 'tempdb_cache',tempdb 2> go

      需要重启

  2. oracle

    Oracle环境下,提示ORA-12519: TNS:no appropriate service handler found可能是数据库上当前的连接数目已经超过了它能够处理的最大值

    解决步骤:

    select count(*) from v$process --当前的连接数 
    select value from v$parameter where name = 'processes' --数据库允许的最大连接数 

    修改最大连接数:

    alter system set processes = 500 scope = spfile; 

    重启数据库:

    shutdown immediate; 
    startup;
  3. db2

    db2环境下,展开左树上计划任务节点,报错::[jcc][10120][11936][3.52.95] 操作无效:已关闭 Lob。 ERRORCODE=-4470, SQLSTATE=null

    解决步骤:

    按下面格式配置默认连接池的url。

    jdbc:db2://192.168.1.222:50000/testdb:driverType=4;fullyMaterializeLobData=true;fullyMaterializeInputStreams=true;progressiveStreaming=2;progresssiveLocators=2;

    testdb为数据库名。注意,最后有个分号。

  4. mysql

    MySQL环境下,初始化插件失败

    提示如下错误:

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'platform_pluginmgr' defined in file [/var/lib/tomcat/webapps/qbi/WEB-INF/classes/com/esen/platform/plugin/ActivexPluginsManager.class]: Invocation of init method failed; nested exception is com.esen.exception.RuntimeException4I18N: 初始化插件管理器失败!

    解决步骤:

    [mysqld]段下面添加max_allowed_packet =20M,添加完毕重启MySQL服务器。Windows修改my.ini,linux修改/etc/my.cnf

    [mysqld]
    max_allowed_packet =20M

    另外还需要加上表名不区分大小写参数

    Lower_case_table_names=1
  5. Hive
    1. ABI中打入Hive驱动之前,需要将提供的Hive驱动中,按路径查找org\json\包,删掉org\json整个文件夹。
    2. 如果没有按照(1)中删除org\json整个文件夹,直接在ABI中打入Hive驱动,如果出现打印设置页面报错:Cannot read property ‘length’ of undefinde 或者提示报错:gc overhead limit exceeded(内存不够)

      解决步骤:

      在提供的Hive驱动中,按路径查找org\json\包,删掉org\json整个文件夹后,重启服务器即可。

分享:

    相关文档

    相关产品