⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 users.out

📁 derby database source code.good for you.
💻 OUT
字号:
ij> --connect 'wombat;create=true;user=dan;password=MakeItFaster';WARNING 01J01: Database 'wombat' not created, connection made to existing database instead.ij(CONNECTION1)> autocommit off;ij(CONNECTION1)> prepare p1 as 'CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(?,?)';ij(CONNECTION1)> execute p1 using 'values(''derby.database.defaultConnectionMode'', ''noAccess'')';0 rows inserted/updated/deletedij(CONNECTION1)> execute p1 using 'values(''derby.database.fullAccessUsers'', ''francois,jeff,howardR,ames,kreg'')';0 rows inserted/updated/deletedij(CONNECTION1)> remove p1;ij(CONNECTION1)> commit;ij(CONNECTION1)> autocommit on;ij(CONNECTION1)> disconnect;ij> connect 'wombat;shutdown=true;user=francois;password=paceesalute';ERROR 08006: Database 'wombat' shutdown.ij> connect 'myDB;create=true;user=dan;password=MakeItFaster';ij(CONNECTION1)> autocommit off;ij(CONNECTION1)> prepare p2 as 'CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(?,?)';ij(CONNECTION1)> execute p2 using 'values(''derby.database.defaultConnectionMode'', ''noAccess'')';0 rows inserted/updated/deletedij(CONNECTION1)> execute p2 using 'values(''derby.database.fullAccessUsers'', ''jerry,kreg,dan,jamie,ames,francois'')';0 rows inserted/updated/deletedij(CONNECTION1)> remove p2;ij(CONNECTION1)> commit;ij(CONNECTION1)> autocommit on;ij(CONNECTION1)> disconnect;ij> connect 'myDB;shutdown=true;user=dan;password=MakeItFaster';ERROR 08006: Database 'myDB' shutdown.ij> -- beetle 5468disconnect all;ij> -- Specifically test JBMS users.---- check allowed users in wombat db.connect 'wombat;user=kreg;password=visualWhat?';ij> connect 'wombat;user=jeff;password=HomeRun61';ij(CONNECTION1)> connect 'wombat;user=ames;password=AnyVolunteer?';ij(CONNECTION2)> connect 'wombat;user=howardR;password=IamBetterAtTennis';ij(CONNECTION3)> connect 'wombat;user=francois;password=paceesalute';ij(CONNECTION4)> show connections;CONNECTION0 - 	jdbc:derby:wombatCONNECTION1 - 	jdbc:derby:wombatCONNECTION2 - 	jdbc:derby:wombatCONNECTION3 - 	jdbc:derby:wombatCONNECTION4* - 	jdbc:derby:wombat* = current connectionij(CONNECTION4)> disconnect all;ij> -- check allowed users in myDB db.-- also check USER flavorsconnect 'myDB;user=jerry;password=SacreBleu';ij> create table APP.t1(c1 char(30) check (UPPER(c1) <> 'JAMIE'));0 rows inserted/updated/deletedij> insert into APP.t1 values CURRENT_USER;1 row inserted/updated/deletedij> connect 'myDB;user=kreg;password=visualWhat?';ij(CONNECTION1)> insert into APP.t1 values USER;1 row inserted/updated/deletedij(CONNECTION1)> connect 'myDB;user=ames;password=AnyVolunteer?';ij(CONNECTION2)> insert into APP.t1 values SESSION_USER;1 row inserted/updated/deletedij(CONNECTION2)> connect 'myDB;user=dan;password=MakeItFaster';ij(CONNECTION3)> select * from APP.t1;C1                            ------------------------------JERRY                         KREG                          AMES                          ij(CONNECTION3)> update APP.t1 set c1 = {fn user() };3 rows inserted/updated/deletedij(CONNECTION3)> select * from APP.t1;C1                            ------------------------------DAN                           DAN                           DAN                           ij(CONNECTION3)> connect 'myDB;user=francois;password=paceesalute';ij(CONNECTION4)> update APP.t1 set c1 = USER;3 rows inserted/updated/deletedij(CONNECTION4)> connect 'myDB;user=jamie;password=MrNamePlates';ij(CONNECTION5)> select * from APP.t1;C1                            ------------------------------FRANCOIS                      FRANCOIS                      FRANCOIS                      ij(CONNECTION5)> update APP.t1 set c1 = USER;ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'APP.T1'.ij(CONNECTION5)> show connections;CONNECTION0 - 	jdbc:derby:myDBCONNECTION1 - 	jdbc:derby:myDBCONNECTION2 - 	jdbc:derby:myDBCONNECTION3 - 	jdbc:derby:myDBCONNECTION4 - 	jdbc:derby:myDBCONNECTION5* - 	jdbc:derby:myDB* = current connectionij(CONNECTION5)> disconnect all;ij> ---- some negative cases---- Invalid login'sconnect 'wombat';ERROR 08004: Connection refused : Invalid authentication.ij> connect 'wombat;user=badUser1;password=YeeHa!';ERROR 08004: Connection refused : Invalid authentication.ij> connect 'wombat;user=badUser2;password=YeeHa!';ERROR 08004: Connection refused : Invalid authentication.ij> connect 'myDB;user=dan;password=MakeItSlower';ERROR 08004: Connection refused : Invalid authentication.ij> connect 'myDB;user=jamie;password=LetMeIn';ERROR 08004: Connection refused : Invalid authentication.ij> connect 'wombat;user=francois;password=Corsica';ERROR 08004: Connection refused : Invalid authentication.ij> -- Invalid database usersconnect 'myDB;user=howardR;password=IamBetterAtTennis';ERROR 04501: Database connection refused.ij> connect 'wombat;user=jerry;password=SacreBleu';ERROR 04501: Database connection refused.ij> connect 'wombat;user=jamie;password=MrNamePlates';ERROR 04501: Database connection refused.ij> show connections;No connections available.ij> connect 'wombat;user=francois;password=paceesalute';ij> connect 'myDB;user=jerry;password=SacreBleu';ij(CONNECTION1)> -- Database shutdown - check user - should failconnect 'myDB;shutdown=true';ERROR 08004: Connection refused : Invalid authentication.ij(CONNECTION1)> connect 'myDB;user=jamie;password=LetMeIn;shutdown=true';ERROR 08004: Connection refused : Invalid authentication.ij(CONNECTION1)> connect 'wombat;user=jerry;password=SacreBleu;shutdown=true';ERROR 04501: Database connection refused.ij(CONNECTION1)> show connections;CONNECTION0 - 	jdbc:derby:wombatCONNECTION1* - 	jdbc:derby:myDB* = current connectionij(CONNECTION1)> -- Database shutdown - check user - should succeed-- beetle 5367connect 'wombat;user=francois;password=paceesalute;shutdown=true';ERROR 08006: Database 'wombat' shutdown.ij(CONNECTION1)> connect 'myDB;user=jerry;password=SacreBleu;shutdown=true';ERROR 08006: Database 'myDB' shutdown.ij(CONNECTION1)> show connections;No current connectionij> -- JBMS System shutdown - check user - should failconnect ';user=jamie;password=LetMeIn;shutdown=true';ERROR 08004: Connection refused : Invalid authentication.ij> disconnect all;ij> -- JBMS System shutdown - check user - should succeedconnect ';user=francois;password=paceesalute;shutdown=true';ERROR XJ015: Derby system shutdown.ij> -- beetle 5390-- the server does not shut down properly in network server;ij> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -