首页 > 数据库 >神舟通用数据库安装(交互方式)

神舟通用数据库安装(交互方式)

时间:2024-03-05 10:46:53浏览次数:22  
标签:opt 交互方式 神舟 数据库 00 ShenTong root localhost

环境:
OS:Centos 7
DB:V7

1.介质下载地址
http://www.shentongdata.com/old_bak/iso/wzsyx/ShenTong7.0_linux64.rar

 

2.安装rar
[root@localhost soft]# tar -xvf rarlinux-x64-5.3.0.tar.gz
[root@localhost soft]# cd rar
[root@localhost rar]# make install


3.解压数据库安装包
[root@localhost soft]#rar x ShenTong7.0_linux64.rar
[root@localhost soft]#cd ShenTong7.0_linux64/
[root@localhost ShenTong7.0_linux64]# chmod 755 setup

[root@localhost ShenTong7.0_linux64]# ./setup -console

 

[root@localhost ShenTong7.0_linux64]# ./setup -console
Command line arguments: -console 
Select your language
0  [x] chn
1  [ ] eng
Input selection: 
1
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Target Path
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Select the installation path:  [/opt/ShenTong] 

The target directory will be created: 
/opt/ShenTong
----------------------------------------------------
Enter O for OK, C to Cancel: 
o
----
full
----
Enter Y for Yes, N for No: 
You can choose whether to set the agent password or not
0  [x] No password require(use default password)
1  [ ] Please input a password
Input selection: 
0

You can choose whether to register ha service or not
0  [x] no
1  [ ] yes
Input selection:
0
choose jre version
0  [x] jre1.8
1  [ ] jre1.6
Input selection:
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Setup Shortcuts
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

----------------------------------
Create shortcuts in the Start-Menu
----------------------------------
Enter Y for Yes, N for No: 
----------------------------------
Create shortcuts in the Start-Menu
----------------------------------
Enter Y for Yes, N for No: 
n
------------------------------------------
Create additional shortcuts on the desktop
------------------------------------------
Enter Y for Yes, N for No: 
n
------------------------------
create shortcut for: all users
------------------------------
Enter Y for Yes, N for No: 
n

whether create db
0  [x] no
1  [ ] yes
Input selection: 
1
DB Name: [] 
HXL            ##必须大写,小写好像不管用,数据库无法启动
DB Encoding: [] 
utf8
DB Others: []



Installation was successful
Application installed on /opt/ShenTong
[ Writing the uninstaller data ... ]
[ Console installation done ]

 

到这里数据库已经自动启动了的

[root@localhost opt]# ss -nlp|grep 2003
u_str  LISTEN     0      4096   /tmp/.s.oscar.2003 82276                 * 0                   users:(("oscar",pid=15278,fd=14))
tcp    LISTEN     0      4096      *:2003                  *:*                   users:(("oscar",pid=15278,fd=13))
[root@localhost opt]#

[root@localhost opt]# ps -ef|grep oscar
root     12392     1  0 13:45 pts/2    00:00:00 /opt/ShenTong/bin/oscaragent -e /opt/ShenTong
root     15278     1  0 14:57 pts/0    00:00:01 /opt/ShenTong/bin/oscar -o normal -d HXL
root     15440  3096  0 15:00 pts/2    00:00:00 grep --color=auto oscar

若是oscaragent没有启动的话,可以使人如下方式进行手工启动
/etc/init.d/oscaragentd start

 

 

4.停掉数据库设置大小写不敏感
/etc/init.d/oscardb_HXLd stop


vi /opt/ShenTong/admin/HXL.conf
加入如下项目:
name_case_sensitive=false

 

5.启动数据库
/etc/init.d/oscardb_HXLd start

或是使用如下方式启停
systemctl start oscardb_HXLd.service
systemctl stop oscardb_HXLd.service
systemctl status oscardb_HXLd.service

 

6.登录数据库
./isql -h localhost -p 2003 -d HXL sysdba

密码是:szoscar55

 

 

7.彻底删除数据库

##停掉数据库
systemctl stop oscardb_HXLd.service
/etc/init.d/oscaragentd stop

##删除相关系统服务
[root@localhost system]#cd /usr/lib/systemd/system/
[root@localhost system]# rm -rf oscar*
[root@localhost system]# cd /etc/systemd/system/graphical.target.wants/
[root@localhost graphical.target.wants]# rm -rf oscar*
[root@localhost graphical.target.wants]# cd /etc/init.d/
[root@localhost init.d]# ls
functions netconsole network oscaragentd oscardb_HXLd README
[root@localhost init.d]# rm -rf oscar*

删除数据库目录
[root@localhost opt]# cd /opt
[root@localhost opt]# rm -rf ShenTong/

 

标签:opt,交互方式,神舟,数据库,00,ShenTong,root,localhost
From: https://www.cnblogs.com/hxlasky/p/18053462

相关文章

  • jinq 入门介绍-java中编写数据库查询的简单自然的方式
    拓展阅读linqquerydslJinq是什么?Jinq为开发者提供了一种在Java中编写数据库查询的简单自然的方式。你可以像处理存储在集合中的普通Java对象一样处理数据库数据。你可以使用普通的Java命令遍历和过滤它们,而你的所有代码都将自动转化为优化的数据库查询。最后,Java终于有......
  • GaussDB跨云容灾:实现跨地域的数据库高可用能力
    本文分享自华为云社区《GaussDB跨云容灾:实现跨地域的数据库高可用能力》,作者:GaussDB数据库。金融、银行业等对数据的安全有着较高的要求,同城容灾建设方案,在绝大多数场景下可以保证业务数据的安全性,但是在极端情况下,如遇不可抗力因素等,要保证数据的安全性,就需要采取跨地域的容灾......
  • 数据库系列:大厂使用数据库中间件解决什么问题?
    相关文章数据库系列:MySQL慢查询分析和性能优化数据库系列:MySQL索引优化总结(综合版)数据库系列:高并发下的数据字段变更数据库系列:覆盖索引和规避回表数据库系列:数据库高可用及无损扩容数据库系列:使用高区分度索引列提升性能数据库系列:前缀索引和索引长度的取舍数据库系列:My......
  • C++ mySQL数据库连接池(windows平台)
    C++MySQL数据库连接池新手学了C++多线程,看了些资料练手写了C++数据库连接池小项目,自己的源码地址关键技术点MySQL数据库编程、单例模式、queue队列容器、C++11多线程编程、线程互斥、线程同步通信和unique_lock、基于CAS的原子整形、智能指针shared_ptr、lambda表达式、生产......
  • 【Redis】Redis如何保证和MySQL数据库的数据一致性
    保障MySQL和Redis数据一致性需要使用不同的策略和技术,因为两者是不同的数据存储系统。以下是一些常见的方法:1.数据同步MySQL数据同步至Redis使用事件驱动机制:当MySQL中的数据更新时,通过触发器或者其他事件驱动的机制,将数据同步至Redis。定时任务:定期轮询MySQL数据......
  • Oracle数据库错误:ora-28014:cannot drop administrative users(无法删除管理用户或角色
    1.问题在创建用户test之后,删除时发生错误ora-28014:cannotdropadministrativeusers2.解决由于Oracle数据库要求创建用户必须以C##开头,在创建该用户时,我们设置了altersessionset"_oracle_script"=true;Oracle数据库如何解决创建用户名开头必须要C##问题?但是删除时,由......
  • Ubuntu安装zabbix,初始化数据库报没有这个文件 /usr/share/doc/zabbix-sql-scripts/mys
    报错信息如下: 解决方法:1、先查看是否安装了zabbix-server-mysql,我这里是已经安装过了,但是初始化还是报错找不到文件 2、去zabbix下载对应版本的源码,然后进行手动安装下载链接:https://www.zabbix.com/download_sources#60LTS 3、源码下载后解压,在database文件中找到m......
  • 记一次在oracle数据库中添加全文索引的过程
    前景:在创建全文索引之前,有如下几个内容需要确认下:1.全文索引不支持nvarchar2类型,所以需要创建全文索引的字段的字段类型,如果是这个类型,可以修改为varchar2();2.如果需要创建全文索引的字段包含(1、中文、英文结合,或者纯英文;2、中文、数字结合,或者纯数字的)这几种情况的,需要对......
  • 对象不能从 DBNull 转换为其他类型,数据库空数据映射实体类的时候如何处理数据
    场景是这样的数据库有几个字段是可以为空的、即插入的时候可以不插这些数据,当一条有‘缺口’的数据回到后端映射实体类的时候,会导致对象不能从DBNull转换为其他类型的错误此时可以编写一个通用的方法来处理这种转换publicstaticTConvertDBNull<T>(objectvalue,Tdefaul......
  • 肖SIR__数据库之安装navicat__11.3
    一、安装navicat1、下载navicat 2、解压压缩包 3、点击exe文件 4、输入密钥:NAVH-WK6A-DMVK-DKW35、点击打开:输入连接参数: 6、查看连接好仓库 ......