无法在本地主机上启动Oracle NoSQL数据库

时间:2020-03-26 20:27:26

标签: oracle-nosql

尝试在Mac上安装Oracle NoSQL 18.1.27

设置:

$ java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

$ echo $KVROOT
/Users/sn/Software/oraclenosql/kvroot

$ echo $KVHOME
/Users/sn/Software/oraclenosql/kv-18.1.27

使用此命令进行安装:

java -jar $KVHOME/lib/kvstore.jar makebootconfig -root $KVROOT -port 5000 -host localhost -storagedir $KVHOME/kvdata/ -harange 5010,5030 -storagedirsize "1 gb" -store-security none

使用jps测试:

$ jps -m
8866 Jps -m
8826 kvstore.jar start -root /Users/sn/Software/oraclenosql/kvroot
8831 ManagedService -root /Users/sn/Software/oraclenosql/kvroot -class Admin -service BootstrapAdmin.5000 -config config.xml

尝试启动数据库

$ java -jar $KVHOME/lib/kvstore.jar ping -host localhost -port 5000
Could not connect to registry at localhost:5000 Unable to connect to the storage node agent at host localhost, port 5000, which may not be running; nested exception is: 
    java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: 
    java.net.ConnectException: Connection refused (Connection refused)
Can't find store topology: Could not contact any RepNode at: [localhost:5000]

在尝试ping时:

SNA at hostname: localhost, registry port: 5000 is not registered.
    No further information is available
Can't find store topology: Could not contact any RepNode at: [localhost:5000]

日志显示以下内容: adminboot.log

2020-03-26 20:05:07.344 UTC INFO [BootstrapAdmin] Starting in bootstrap mode
2020-03-26 20:05:07.348 UTC INFO [BootstrapAdmin] Starting commandService on rmi://localhost:5000/commandService
2020-03-26 20:05:07.448 UTC INFO [BootstrapAdmin] Successfully created a secure proxy for commandService
2020-03-26 20:05:07.531 UTC INFO [BootstrapAdmin] Starting admin:CLIENT_ADMIN on rmi://localhost:5000/admin:CLIENT_ADMIN
2020-03-26 20:05:07.640 UTC INFO [BootstrapAdmin] Successfully created a secure proxy for admin:CLIENT_ADMIN
2020-03-26 20:05:07.713 UTC INFO [BootstrapAdmin] Started AdminService

我想念什么?

1 个答案:

答案 0 :(得分:0)

您没有启动要尝试ping的NOSQL。如果您想开始:

  1. $ jps -m(如果未启动,则不会显示任何服务)
  2. $ nohup java -jar $ KVHOME / lib / kvstore.jar start -root $ KVROOT&
  3. 再次按Enter即可退出nohup
  4. $现在再次运行jps -m,它将显示进程的运行状态

注意:如果配置正确,则没有问题,否则将引发错误。请遵循正确的文档,然后搜索错误:)

谢谢