Closed GoogleCodeExporter closed 9 years ago
sorry. step3 is:
D:\temp>java -cp d:\temp\h2-1.2.135.jar org.h2.tools.Shell -url jdbc:h2:tcp://lo
calhost:9101,localhost:9102/testdb -user test -password test
Exception in thread "main" org.h2.jdbc.JdbcSQLException:
この操作には管理権限が
必要です
Admin rights are required for this operation; SQL statement:
SET CLUSTER 'localhost:9101,localhost:9102' [90040-135]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
at org.h2.message.DbException.get(DbException.java:167)
at org.h2.message.DbException.get(DbException.java:144)
at org.h2.message.DbException.get(DbException.java:133)
at org.h2.engine.User.checkAdmin(User.java:195)
at org.h2.command.dml.Set.update(Set.java:84)
at org.h2.command.CommandContainer.update(CommandContainer.java:70)
at org.h2.command.Command.executeUpdate(Command.java:199)
at org.h2.engine.Engine.openSession(Engine.java:164)
at org.h2.engine.Engine.getSession(Engine.java:125)
at org.h2.server.TcpServerThread.run(TcpServerThread.java:118)
at java.lang.Thread.run(Thread.java:619)
at org.h2.engine.SessionRemote.done(SessionRemote.java:528)
at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:114)
at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:325)
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.jav
a:223)
at org.h2.engine.SessionRemote.createSession(SessionRemote.java:217)
at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:111)
at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:95)
at org.h2.Driver.connect(Driver.java:58)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at org.h2.tools.Shell.runTool(Shell.java:140)
at org.h2.tools.Shell.main(Shell.java:78)
Original comment by litail...@gmail.com
on 20 May 2010 at 11:20
You are right, this doesn't work currently. I will remove the admin check
in Set.update(), case SetTypes.CLUSTER in the next version.
Thanks for reporting!
Original comment by thomas.t...@gmail.com
on 28 May 2010 at 1:53
This should be fixed now in version 1.2.137
Original comment by thomas.t...@gmail.com
on 6 Jun 2010 at 10:50
Original issue reported on code.google.com by
litail...@gmail.com
on 20 May 2010 at 6:58