db2错误: SQLCODE=-302, SQLSTATE=22001, SQLERRMC=null

这是一个oracle to db2 的小程序,
从oracle 取出数据保存到db2当中去,刚开始为了验证数据,我就在oracle的select条件加了where只取一条数据,然后可以成功,这一条数据能够插入到db2当中,但是,我一旦把where条件去掉查询全部,然后执行,便会报错,db2数据库实在不熟悉,有没有大神给解答一下.
from tb where transmsnt in (1007093309,1002083638,10
0203640,1002083644,1002083645,1002083653),
是可以的,当去掉where条件便会报错,是java写的jdbc程序.

com.ibm.db2.jcc.b.jm: DB2 SQL Error: SQLCODE=-302, SQLSTATE=22001, SQLERRMC=null, DRIVER=3.50.152
at com.ibm.db2.jcc.b.wc.a(wc.java:571)
at com.ibm.db2.jcc.b.wc.a(wc.java:57)
at com.ibm.db2.jcc.b.wc.a(wc.java:126)
at com.ibm.db2.jcc.b.tk.b(tk.java:1593)
at com.ibm.db2.jcc.b.tk.c(tk.java:1576)
at com.ibm.db2.jcc.t4.db.k(db.java:353)
at com.ibm.db2.jcc.t4.db.a(db.java:59)
at com.ibm.db2.jcc.t4.t.a(t.java:50)
at com.ibm.db2.jcc.t4.tb.b(tb.java:200)
at com.ibm.db2.jcc.b.uk.Gb(uk.java:2355)
at com.ibm.db2.jcc.b.uk.e(uk.java:3129)
at com.ibm.db2.jcc.b.uk.e(uk.java:3238)
at com.ibm.db2.jcc.b.uk.zb(uk.java:568)
at com.ibm.db2.jcc.b.uk.executeUpdate(uk.java:551)
at DB2ORACLE.transfer.Test.test(Test.java:338)
at DB2ORACLE.transfer.Test.main(Test.java:367)

1个回答

C:\Users\Administrator>db2 ? 22001

SQLSTATE 22001: 字符数据,发生右截断;例如,更新或插入值对于列而言太长(字符串),或者日期时间值由于太小而不能赋给主变量。

你检查一下字段的长度和类型,还有一种可能是DB2数据库的版本导致的,你试试换一个版本,DB2的错误确实不友好,都是出现的错误code,你可以在本地安装DB2,然后db2cmd,使用 db2 ? 错误码 来查看

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
急DB2 SQLCODE : -727 SQLSTATE: 56098
急DB2 SQLCODE : -727 SQLSTATE: 56098(在隐式重新绑定或预编译期间出错)求高手解决, sql 在DB2 图形界面可以执行成功
DB2 SQL error: SQLCODE: -1117, SQLSTATE: 57019, SQLERRMC:SWZCYJS
DBCP borrowObject failed: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1117, SQLSTATE: 57019, SQLERRMC: SWZCYJS 2013-08-27 11:31:43 ERROR context.ContextLoader (ContextLoader.java:211) - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/hibernate-context.xml]: Initialization of bean failed; nested exception is org.apache.commons.dbcp.DbcpException: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1117, SQLSTATE: 57019, SQLERRMC: SWZCYJS org.apache.commons.dbcp.DbcpException: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1117, SQLSTATE: 57019, SQLERRMC: SWZCYJS at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:85) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:722) at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:108) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312) at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:73) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:871) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:797) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190) at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1117, SQLSTATE: 57019, SQLERRMC: SWZCYJS at com.ibm.db2.jcc.c.p.a(p.java:2663) at com.ibm.db2.jcc.b.eb.q(eb.java:696) at com.ibm.db2.jcc.b.eb.p(eb.java:572) at com.ibm.db2.jcc.b.eb.l(eb.java:393) at com.ibm.db2.jcc.b.eb.d(eb.java:142) at com.ibm.db2.jcc.b.b.lc(b.java:1274) at com.ibm.db2.jcc.b.b.b(b.java:1198) at com.ibm.db2.jcc.b.b.s(b.java:926) at com.ibm.db2.jcc.b.b.b(b.java:607) at com.ibm.db2.jcc.b.b.a(b.java:593) at com.ibm.db2.jcc.b.b.<init>(b.java:263) at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:163) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:83) ... 48 more 2013-8-27 11:31:43 org.apache.catalina.core.ApplicationContext log 严重: StandardWrapper.Throwable org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/hibernate-context.xml]: Initialization of bean failed; nested exception is org.apache.commons.dbcp.DbcpException: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1117, SQLSTATE: 57019, SQLERRMC: SWZCYJS org.apache.commons.dbcp.DbcpException: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1117, SQLSTATE: 57019, SQLERRMC: SWZCYJS at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:85) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:722) at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:108) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312) at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:73) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:871) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:797) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190) at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1117, SQLSTATE: 57019, SQLERRMC: SWZCYJS at com.ibm.db2.jcc.c.p.a(p.java:2663) at com.ibm.db2.jcc.b.eb.q(eb.java:696) at com.ibm.db2.jcc.b.eb.p(eb.java:572) at com.ibm.db2.jcc.b.eb.l(eb.java:393) at com.ibm.db2.jcc.b.eb.d(eb.java:142) at com.ibm.db2.jcc.b.b.lc(b.java:1274) at com.ibm.db2.jcc.b.b.b(b.java:1198) at com.ibm.db2.jcc.b.b.s(b.java:926) at com.ibm.db2.jcc.b.b.b(b.java:607) at com.ibm.db2.jcc.b.b.a(b.java:593) at com.ibm.db2.jcc.b.b.<init>(b.java:263) at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:163) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:83) ... 48 more 2013-8-27 11:31:43 org.apache.catalina.core.StandardContext loadOnStartup 严重: Servlet threw load() exception com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1117, SQLSTATE: 57019, SQLERRMC: SWZCYJS at com.ibm.db2.jcc.c.p.a(p.java:2663) at com.ibm.db2.jcc.b.eb.q(eb.java:696) at com.ibm.db2.jcc.b.eb.p(eb.java:572) at com.ibm.db2.jcc.b.eb.l(eb.java:393) at com.ibm.db2.jcc.b.eb.d(eb.java:142) at com.ibm.db2.jcc.b.b.lc(b.java:1274) at com.ibm.db2.jcc.b.b.b(b.java:1198) at com.ibm.db2.jcc.b.b.s(b.java:926) at com.ibm.db2.jcc.b.b.b(b.java:607) at com.ibm.db2.jcc.b.b.a(b.java:593) at com.ibm.db2.jcc.b.b.<init>(b.java:263) at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:163) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:83) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:722) at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:108) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312) at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:73) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:871) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:797) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190) at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) InitPropertiesServlet.init---属性文件初始化null 2013-08-27 11:31:44 ERROR impl.DefaultCreatorManager (CommonsLoggingOutput.java:83) - Error loading class for creator 'SpringCreator[content]'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/hibernate-context.xml]: Initialization of bean failed; nested exception is org.apache.commons.dbcp.DbcpException: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1117, SQLSTATE: 57019, SQLERRMC: SWZCYJS org.apache.commons.dbcp.DbcpException: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1117, SQLSTATE: 57019, SQLERRMC: SWZCYJS at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:85) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:722) at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:108) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312) at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:73) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:871) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:797) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190) at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -1117, SQLSTATE: 57019, SQLERRMC: SWZCYJS at com.ibm.db2.jcc.c.p.a(p.java:2663) at com.ibm.db2.jcc.b.eb.q(eb.java:696) at com.ibm.db2.jcc.b.eb.p(eb.java:572) at com.ibm.db2.jcc.b.eb.l(eb.java:393) at com.ibm.db2.jcc.b.eb.d(eb.java:142) at com.ibm.db2.jcc.b.b.lc(b.java:1274) at com.ibm.db2.jcc.b.b.b(b.java:1198) at com.ibm.db2.jcc.b.b.s(b.java:926) at com.ibm.db2.jcc.b.b.b(b.java:607) at com.ibm.db2.jcc.b.b.a(b.java:593) at com.ibm.db2.jcc.b.b.<init>(b.java:263) at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:163) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:83) ... 48 more
DB2函数错误SQLCODE=-390, SQLSTATE=42887
首先我自定义了一个处理日期转换的函数FUN_RE_DATE(),函数定义代码如下: CREATE OR REPLACE FUNCTION DW.FUN_RE_DATE(P_DATE VARCHAR(10)) RETURNS DATE LANGUAGE SQL BEGIN DECLARE V_DATE DATE; -- 定义错误处理 -- 如果发生错误,继续处理 -- 但是把V_DATE设置为2999-12-31 DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET V_DATE=DATE('2999-12-31'); SET V_DATE = DATE(TO_DATE(P_DATE, 'YYYYMMDD')); RETURN V_DATE; END 然后使用该函数: SELECT FDM.FUN_RE_DATE('20121212') FROM SYSIBM.DUAL 报错信息如下: DB2 SQL Error: SQLCODE=-390, SQLSTATE=42887, SQLERRMC=FDM.FUN_RE_DATE;SQL161110102436353, DRIVER=3.50.152 消息: The function "FDM.FUN_RE_DATE" resolved to specific function "SQL161110102436353" that is not valid in the context where it is used.. SQLCODE=-390, SQLSTATE=42887, DRIVER=3.50.152  请各位大神帮忙看看是什么原因!
DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704
今天在备份并恢复数据库后进 可视化工具DbVisualizer 时 发现dbname 下的表中有数据库但用select * from dbname 执行语句去查询是报错
关于DB2的存储过程有些问题望大神解答
之前用ORACLE 然后现在很多不习惯,有没有大神指导一下应该怎么修改。 CREATE PROCEDURE ZFZ111(in xgdate date,out num int) language sql begin declare v_nname varchar(90) ;--新表表名 declare v_csql varchar(2000) ;--建表语句 declare v_insql varchar(2000);--插入语句 declare v_oname varchar(2000)default 'hetl_job_log'; --旧表名 需要分表的表名 declare v_date date ;--系统时间 declare v_time date ;--数据的时间 declare v_year date ;--年份 select current date into v_date from sysibm.sysdummy1; set v_year = substr(v_date,1,4); select dayid into v_time from v_oname ; set v_nname = v_oname||v_year; create table v_nname as (select * from v_oname ) definition only; insert into v_nname select * from v_oname where dayid like '2013%'; end @ 报错 15:07:02 [CREATE - 0 row(s), 0.000 secs] [Error Code: -104, SQL State: 42601] DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=END-OF-STATEMENT;v_nname varchar(90);<psm_semicolon>, DRIVER=3.57.82 15:07:02 [DECLARE - 0 row(s), 0.000 secs] [Error Code: -104, SQL State: 42601] DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=declare v_csql varchar;BEGIN-OF-STATEMENT;<values>, DRIVER=3.57.82 15:07:02 [DECLARE - 0 row(s), 0.000 secs] [Error Code: -104, SQL State: 42601] DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=declare v_insql varchar;BEGIN-OF-STATEMENT;<values>, DRIVER=3.57.82 15:07:02 [DECLARE - 0 row(s), 0.000 secs] [Error Code: -104, SQL State: 42601] DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=declare v_oname varchar;BEGIN-OF-STATEMENT;<values>, DRIVER=3.57.82 15:07:02 [DECLARE - 0 row(s), 0.000 secs] [Error Code: -104, SQL State: 42601] DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=date;declare v_date ;END-OF-STATEMENT, DRIVER=3.57.82 15:07:02 [DECLARE - 0 row(s), 0.000 secs] [Error Code: -104, SQL State: 42601] DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=date;declare v_time ;END-OF-STATEMENT, DRIVER=3.57.82 15:07:02 [DECLARE - 0 row(s), 0.000 secs] [Error Code: -104, SQL State: 42601] DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=date;declare v_year ;END-OF-STATEMENT, DRIVER=3.57.82 15:07:02 [SELECT - 0 row(s), 0.000 secs] [Error Code: -206, SQL State: 42703] DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703, SQLERRMC=V_DATE, DRIVER=3.57.82 15:07:02 [SET - 0 row(s), 0.000 secs] [Error Code: -206, SQL State: 42703] DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703, SQLERRMC=V_YEAR, DRIVER=3.57.82 15:07:02 [SELECT - 0 row(s), 0.000 secs] [Error Code: -204, SQL State: 42704] DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=DB2INST5.V_ONAME, DRIVER=3.57.82 15:07:02 [SET - 0 row(s), 0.000 secs] [Error Code: -206, SQL State: 42703] DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703, SQLERRMC=V_NNAME, DRIVER=3.57.82 15:07:02 [CREATE - 0 row(s), 0.000 secs] [Error Code: -204, SQL State: 42704] DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=DB2INST5.V_ONAME, DRIVER=3.57.82 15:07:02 [INSERT - 0 row(s), 0.000 secs] [Error Code: -204, SQL State: 42704] DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=DB2INST5.V_NNAME, DRIVER=3.57.82 15:07:02 [END - 0 row(s), 0.000 secs] [Error Code: -104, SQL State: 42601] DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=END-OF-STATEMENT;end @;JOIN <joined_table>, DRIVER=3.57.82 ... 14 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.000/0.000 sec [0 successful, 0 warnings, 14 errors]
DB2 -925 2D521 SQL的COMMIT语句不能从CICS或IMS/TM发布 如何解决
Java 调用dB2存储过程报了这个错误 Caused by: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -925, SQLSTATE: 2D521, SQLERRMC: null 不知道如何处理,求大神解答
db2导入时报SQL3319N 创建表时发生 SQL 错误 "-286"
E:\kelan\zjnsWebSite\zjbank1227>db2move zjnsWeb import Application code page not determined, using ANSI codepage 1386 ***** DB2MOVE ***** Action: IMPORT Start time: Thu Aug 29 17:29:29 2013 Connecting to database ZJNSWEB ... successful! Server : DB2 Common Server V9.7. 5 Binding package automatically ... D:\IBM\SQLLIB\BND\DB2COMMON.BND ... successful ! Binding package automatically ... D:\IBM\SQLLIB\BND\DB2MOVE.BND ... successful! * IMPORT: table "DB2INST1"."CMS_ATTACHMENT" -Rows read: 109 -Inserted: 109 -Rejected: 0 -Committed: 109 * IMPORT: table "DB2INST1"."CMS_CHANNEL" -Rows read: 73 -Inserted: 73 -Rejected: 0 -Committed: 73 * IMPORT: table "DB2INST1"."CMS_CHANNEL_ONLINE" -Rows read: 73 -Inserted: 73 -Rejected: 0 -Committed: 73 * IMPORT: table "DB2INST1"."CMS_DOCUMENT" ***ERROR -3319. Check message file tab4.msg! *** SQLCODE: -3319 - SQLSTATE: *** SQL3319N 创建表时发生 SQL 错误 "-286"。 * IMPORT: table "DB2INST1"."CMS_DOCUMENT_ONLINE" ***ERROR -3319. Check message file tab5.msg! *** SQLCODE: -3319 - SQLSTATE: *** SQL3319N 创建表时发生 SQL 错误 "-286"。 * IMPORT: table "DB2INST1"."CMS_EXTENDFIELD" -Rows read: 114 -Inserted: 114 -Rejected: 0 -Committed: 114 * IMPORT: table "DB2INST1"."CMS_GROUP" -Rows read: 8 -Inserted: 8 -Rejected: 0 -Committed: 8 Disconnecting from database ... successful! End time: Thu Aug 29 17:29:45 2013 E:\kelan\zjnsWebSite\zjbank1227>
db2数据库SQL执行报错问题
db2 执行SQL,之前好着 ,突然报这个错是什么原因引起的呢?org.hibernate.exception.GenericJDBCException: DB2 SQL error: SQLCODE: -727, SQLSTATE: 56098, SQLERRMC: 3;-204;42704;MARKSARRAY; 比较着急 先谢谢各位大神了
db2数据库sqlcode -1188
数据库跑存储过程报sqlcode -1188是什么问题 有人知道么
db2导入出现 -355错误,怎么解决
* IMPORT: table "YYGL "."DEF$_AQCALL" ***ERROR -3319. Check message file tab85.msg! *** SQLCODE: -3319 - SQLSTATE: *** SQL3319N 创建表时发生 SQL 错误 "-355"。 * IMPORT: table "YYGL "."DEF$_AQERROR" ***ERROR -3319. Check message file tab86.msg! *** SQLCODE: -3319 - SQLSTATE: *** SQL3319N 创建表时发生 SQL 错误 "-355"。
DB2跑批报错,求解......
将两个DB2数据库(9.7版本的)邦联,从一个库中往另一个库中跑数报错,日志如下,麻烦帮忙解决一下,谢谢! 2015-08-25-10.33.48.338070+480 I115102832E594 LEVEL: Error PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, drda wrapper, report_error_message, probe:10 DATA #1 : String, 16 bytes DRDA Server: DATA #2 : String with size, 17 bytes SRVRIAS169_REPORT DATA #3 : String, 16 bytes Function name: DATA #4 : String with size, 7 bytes do_prep 2015-08-25-10.33.48.338342+480 I115103427E994 LEVEL: Error PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, drda wrapper, report_error_message, probe:20 DATA #1 : String, 16 bytes ODBC native err: DATA #2 : String with size, 6 bytes -30081 DATA #3 : String, 16 bytes ODBC sqlstate: DATA #4 : String with size, 6 bytes 40003. DATA #5 : String, 16 bytes ODBC error txt: DATA #6 : String with size, 331 bytes [IBM][CLI Driver] SQL30081N A communication error has been detected. Communication protocol being used: "TCP/IP". Communica tion API being used: "SOCKETS". Location where the error was detected: "yy.yy.yyy.www". Communication function detecting the error: "send". Protocol specific error code(s): "32", "*", "0". SQLSTATE=08001 2015-08-25-10.33.48.338578+480 I115104422E628 LEVEL: Error PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, drda wrapper, DRDA_Statement::error_report, probe:50 MESSAGE : DRDA Wrapper: DATA #1 : Hexdump, 27 bytes 0x00002AEFEC0C709C : 4465 7465 6374 6564 2063 6F6E 6E65 6374 Detected connect 0x00002AEFEC0C70AC : 696F 6E20 6973 2064 6561 64 ion is dead 2015-08-25-10.33.48.338863+480 I115105051E595 LEVEL: Error PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, drda wrapper, report_error_message, probe:10 DATA #1 : String, 16 bytes DRDA Server: DATA #2 : String with size, 17 bytes SRVRIAS169_REPORT DATA #3 : String, 16 bytes Function name: DATA #4 : String with size, 8 bytes rollback 2015-08-25-10.33.48.339062+480 I115105647E727 LEVEL: Error PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, drda wrapper, report_error_message, probe:20 DATA #1 : String, 16 bytes ODBC native err: DATA #2 : String with size, 6 bytes -99999 DATA #3 : String, 16 bytes ODBC sqlstate: DATA #4 : String with size, 6 bytes 08003. DATA #5 : String, 16 bytes ODBC error txt: DATA #6 : String with size, 64 bytes [IBM][CLI Driver] CLI0106E Connection is closed. SQLSTATE=08003 2015-08-25-10.33.48.339344+480 I115106375E629 LEVEL: Error PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, drda wrapper, DRDA_Connection::error_report, probe:50 MESSAGE : DRDA Wrapper: DATA #1 : Hexdump, 27 bytes 0x00002AEFEC0C70D4 : 4465 7465 6374 6564 2063 6F6E 6E65 6374 Detected connect 0x00002AEFEC0C70E4 : 696F 6E20 6973 2064 6561 64 ion is dead 2015-08-25-10.33.48.339631+480 I115107005E541 LEVEL: Error PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, drda wrapper, FencedDRDA_Server::get_diagnostic, probe:10 MESSAGE : DiagRec han_type DATA #1 : Hexdump, 2 bytes 0x00002AEB9FFEBB48 : 0300 .. 2015-08-25-10.33.48.339997+480 I115107547E555 LEVEL: Warning PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, relation data serv, sqlrr_rollback_with_sqlcode, probe:100 MESSAGE : NLI or DMS force ROLLBACK DATA #1 : Hexdump, 4 bytes 0x00002AEFECCCD1BC : 0100 0200 .... 2015-08-25-10.33.48.340136+480 I115108103E882 LEVEL: Warning PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, relation data serv, sqlrr_rollback_with_sqlcode, probe:150 DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes sqlcaid : SQLCA sqlcabc: 136 sqlcode: -30080 sqlerrml: 38 sqlerrmc: 32 * 0 TCP/IP SOCKETS yy.yy.yyy.www send sqlerrp : SQLGNERR sqlerrd : (1) 0x8026006D (2) 0x00000000 (3) 0x00000000 (4) 0x00000000 (5) 0x00000000 (6) 0x00000000 sqlwarn : (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) sqlstate: 08001 2015-08-25-10.33.48.340836+480 I115108986E456 LEVEL: Error PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, Query Gateway, FencedServer::find_connection, probe:10 MESSAGE : No existing connection found 2015-08-25-10.33.48.340974+480 I115109443E553 LEVEL: Error PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, Query Gateway, sqlqg_FMP_FedRollback, probe:130 MESSAGE : ZRC=0x80260160=-2144992928=SQLQG_ERROR "Error constant for gateway." DATA #1 : String, 36 bytes F1PC rollback and connection is null 2015-08-25-10.33.48.341195+480 I115109997E551 LEVEL: Error PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, Query Gateway, sqlqgFedRbk1, probe:200 MESSAGE : ZRC=0x80260160=-2144992928=SQLQG_ERROR "Error constant for gateway." DATA #1 : <preformatted> Rollback failed for server: SRVRIAS169_REPORT 2015-08-25-10.33.48.341387+480 I115110549E539 LEVEL: Error PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, data protection services, sqlpxrbk, probe:2325 RETCODE : ZRC=0x8026006D=-2144993171=SQLQG_RC_CA_BUILT "Error constant for gateway and the sqlca filled and trustable." 2015-08-25-10.33.48.341534+480 I115111089E537 LEVEL: Severe PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, relation data serv, sqlrrbck_dps, probe:200 RETCODE : ZRC=0x8026006D=-2144993171=SQLQG_RC_CA_BUILT "Error constant for gateway and the sqlca filled and trustable." 2015-08-25-10.33.48.341672+480 I115111627E832 LEVEL: Severe PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, relation data serv, sqlrrbck_dps, probe:250 DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes sqlcaid : SQLCA sqlcabc: 136 sqlcode: -1476 sqlerrml: 6 sqlerrmc: -30080 sqlerrp : SQLRR0F9 sqlerrd : (1) 0x801A006D (2) 0x00000000 (3) 0x00000000 (4) 0x00000000 (5) 0xFFFFFF38 (6) 0x00000000 sqlwarn : (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) sqlstate: 40506 2015-08-25-10.33.48.341794+480 I115112460E533 LEVEL: Severe PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, relation data serv, sqlrrbck, probe:500 RETCODE : ZRC=0x8026006D=-2144993171=SQLQG_RC_CA_BUILT "Error constant for gateway and the sqlca filled and trustable." 2015-08-25-10.33.48.341930+480 I115112994E532 LEVEL: Severe PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, relation data serv, sqlrrbck, probe:57 RETCODE : ZRC=0x8026006D=-2144993171=SQLQG_RC_CA_BUILT "Error constant for gateway and the sqlca filled and trustable." 2015-08-25-10.33.48.342064+480 I115113527E552 LEVEL: Severe PID : 22006 TID : 47191490029888PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : RIAS APPHDL : 0-15888 APPID: xx.xx.xxx.zzz.41545.150819042741 AUTHID : RIAS EDUID : 370 EDUNAME: db2agent (RIAS) 0 FUNCTION: DB2 UDB, relation data serv, sqlrr_rollback_with_sqlcode, probe:300 RETCODE : ZRC=0x8026006D=-2144993171=SQLQG_RC_CA_BUILT "Error constant for gateway and the sqlca filled and trustable."
java jdbc 对 DB2 数据库 做CRUD 操作
本人想通过 java 的jdbc 连接 DB2 数据库,并对数据库进行操作,操了好几天了, 是这样的报错 的 DB2 SQL error: SQLCODE: -805, SQLSTATE: 51002, SQLERRMC: null 自己也去找了这个报错是什么意思, 网上是这样解释的 : -805 在计划中没有发现DBRM或程序包名 解决的办法就是重新绑定 然后自己又去 找 怎么绑定的方法。 我之前一直用的 sql server 这次是第一次 接触 DB2 对于 绑定不怎么了解。 去网上找,几乎没找到合适的资料。也感觉关于 DB2 的资料也比较少, 特来这里看看能不能有位大神来帮助一下 还有在补充一下 这个DB2 数据库不是在本地的 而是在 另一台机器上的。 不过我觉得这不之主要问题吧。 就是补充一下
db2出现 SQLCODE=-440, SQLSTATE=42884, DRIVER=4.12.55
SELECT DISTINCT A.stockcode AS stockcode, B.VHCMODEL AS VHCMODEL, count (A.stockcode) AS STOCKCODESUM, sum (decode (A.STATUS, '3', 1, 0)) AS FACHEJIHUAYINGXIANGTAISHU, sum (decode (A.STATUS, '2', 1, 0)) AS DIAOBOYINGXIANGTAISHU, sum (decode (A.STATUS, '1', 1, 0)) AS DANGRIJIHUATAISHU, sum (decode (A.STATUS, '0', 1, 0)) AS WEIWANCHENGTAISHU, case when decode (count (A.stockcode), 0, 0.00, decode( sum (decode (A.STATUS, '1', 1, 0)))) >= 1 then round (decode (count (A.stockcode), 0, 0.00, decode( sum (decode (A.STATUS, '1', 1))) / ( count (A.stockcode) - sum (decode (A.STATUS, '3', 1, 0)) - sum (decode (A.STATUS, '2', 1, 0))), 4)) * 100 when decode (count (A.stockcode), 0, 0.00, decode( sum (decode (A.STATUS, '1', 1, 0)))) = 0 then 0.00 end AS DANGRIJIHUAWANCHENGLV FROM VHC_WASHTASK_TB A, VHC_LEDJER_TB B WHERE PLAN_NO = '20161115' AND A.VINNO = B.VINNO GROUP BY A.stockcode, B.VHCMODEL ORDER BY A.STOCKCODE 这个是我的sql,在最后一个列中decode出现问题了。求指教怎么修改
linux开启IMB_DB2扩展连接DB2 报错 SQLCODE=-1390
SQL10007N Message "0" could not be retrieved. Reason code: "3". SQLCODE=-1390,实例是有的,本机也可以连接.
DB2连接错误
:~/lib/lib> java -cp .:db2jcc.jar:db2jcc_license_cu.jar:example.jar com.dyf.T url:jdbc:db2://10.87.19.11:50000/SM2 user:*** password:*** SQLException:DB2 SQL Error: SQLCODE=-1001, SQLSTATE=2E000, SQLERRMC=SM2_ADM02, DRIVER=3.59.81 com.ibm.db2.jcc.am.SqlException: DB2 SQL Error: SQLCODE=-1001, SQLSTATE=2E000, SQLERRMC=SM2_ADM02, DRIVER=3.59.81 at com.ibm.db2.jcc.am.dd.a(dd.java:679) at com.ibm.db2.jcc.am.dd.a(dd.java:60) at com.ibm.db2.jcc.am.dd.a(dd.java:127) at com.ibm.db2.jcc.am.jb.a(jb.java:4406) at com.ibm.db2.jcc.t4.ab.q(ab.java:704) at com.ibm.db2.jcc.t4.ab.n(ab.java:530) at com.ibm.db2.jcc.t4.ab.a(ab.java:334) at com.ibm.db2.jcc.t4.ab.a(ab.java:113) at com.ibm.db2.jcc.t4.b.m(b.java:1235) at com.ibm.db2.jcc.t4.b.b(b.java:1108) at com.ibm.db2.jcc.t4.b.c(b.java:696) at com.ibm.db2.jcc.t4.b.b(b.java:682) at com.ibm.db2.jcc.t4.b.a(b.java:365) at com.ibm.db2.jcc.t4.b.<init>(b.java:305) at com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:214) at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:456) at java.sql.DriverManager.getConnection(DriverManager.java:316) at java.sql.DriverManager.getConnection(DriverManager.java:353) at com.dyf.T.main(T.java:31) con:[null] 希望遇到过类似问题的朋友帮忙解答,多谢!
proc编译之后,运行程序显示sqlcode:-1002,怎么解决?小白求帮忙,谢谢
select '1.0.1',40,'4.3.1',case datalength(a.IDENTITUNO) when 11 then 1020004 when 12 then 1020002 else 1029999 end,a.IDENTITUNO,case datalength(a.IDENTITUNO) when 11 then 19 when 12 then 81 else 15 end,a.IDENTITUNO,null,null,null,null,null,distinct(b.netbar_wacode),'a.SITETYPE',STUFF((STUFF(a.ARR,5,1,'-'),8,1,'-')),substring(c.MAC,1,2)+'-'+substring(c.MAC,4,2)+'-'+substring(c.MAC,7,2)+'-'+substring(c.MAC,10,2)+'-'+substring(c.MAC,13,2)+'-'+substring(c.MAC,16,2),c.CLIENT_IP,null,null,0,0,0,0,'704252847'+substring(b.MAC,1,2)+substring(b.MAC,4,2)+substring(b.MAC,7,2)+substring(b.MAC,10,2)+substring(b.MAC,13,2)+substring(b.MAC,16,2),substring(b.MAC,1,2)+'-'+substring(b.MAC,4,2)+'-'+substring(b.MAC,7,2)+'-'+substring(b.MAC,10,2)+'-'+substring(b.MAC,13,2)+'-'+substring(b.MAC,16,2),b.LONGITUDE,b.LATITUDE,'rssi',distinct(b.netbar_wacode)+substring(b.MAC,1,2)+substring(b.MAC,4,2)+substring(b.MAC,7,2)+substring(b.MAC,10,2)+substring(b.MAC,13,2)+substring(b.MAC,16,2)+convert(varchar(4),datepart(yy,a.ARR))+convert(varchar(4),datepart(mm,a.ARR))+convert(varchar(4),datepart(dd,a.ARR))+substring(convert(varchar(11),a.ARR,108),1,2)+substring(convert(varchar(11),a.ARR,108),4,2)+substring(convert(varchar(11),a.ARR,108),7,2),null,null,null,null,null,null,null,21,99,null,0,'ssid',null,null,30,0,from HOTELMASTER a,HOTEL b, GUESTWEBLOG c where a.IDENTITUNO is not nulland a.HOTELID=b.H_ID=c.HOTEL_IDand a.STA='I'and b.online_flad='Y'and length(b.netbar_wacode)=14and a.ARR > to_date('2016-11-11 17:21:23', 'yyyy-mm-dd hh24:mi:ss') sqlcode:-1002.
DB2触发器中的return为什么报错?
CREATE OR REPLACE TRIGGER "BAOPROG"."trg_dbt_sample_code200_upd" AFTER UPDATE on "BAOPROG"."DBT_SAMPLE" referencing old as oldrow new as newrow for each ROW BEGIN ATOMIC declare v_ep varchar(1); set v_ep = '0'; set v_ep = substrb(newrow.smpno, 14, 1); IF substrb(newrow.smpno, 14, 1) <> '0' THEN return; --加了这个return为什么就报错。 END IF; END 出错信息如下: 22:10:58 [CREATE - 0 row(s), 0.000 secs] {0:0} DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=;;0' THEN return;<join_type_without_spec> JOIN <join_operand>, DRIVER=4.13.127 ... 1 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.000/0.000 sec [0 successful, 0 warnings, 1 errors]
应用中程序通过getBean方式 得到spring中 hibernate sessionFactory问题
应用中程序通过getBean方式 得到spring中 hibernate sessionFactory问题: 程序使用正常方式是正常的 然后报错的地方为session.save(Object) 模式已经在配置文件中设定, 且程序中hibernate sql语句正常。 但报错莫名出 现ADMINISTRATOR.I_FITDETAIL,始终找不到原因,请告知。 Hibernate: insert into ADMIN.fitdetail (fit_detail_flag, fit_detail_no, matereil_fit_id, materiel_count, materiel_key, materiel_name, materiel_no, materiel_price, materiel_unit, m_unit_id, total_price, fit_detail_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) 2010-05-20 17:43:01 WARN JDBCExceptionReporter:100 - SQL Error: -723, SQLState: 09000 2010-05-20 17:43:01 ERROR JDBCExceptionReporter:101 - DB2 SQL error: SQLCODE: -723, SQLSTATE: 09000, SQLERRMC: ADMINISTRATOR.I_FITDETAIL;-407;23502;TBSPACEID=2, TABLEID=535, COLNO=1 2010-05-20 17:43:01 ERROR AbstractFlushingEventListener:324 - Could not synchronize database state with session org.hibernate.exception.GenericJDBCException: could not insert: [com.iss.delver.entity.FitDetail] at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2285) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2678) at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1028) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:366) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137) at com.ibm.crl.dis.dao.impl.DISHibernateDAOImpl.createBO(DISHibernateDAOImpl.java:57) at com.ibm.crl.dis.service.DISBaseCRUDService.createBO(DISBaseCRUDService.java:32) at com.ibm.crl.dis.util.DISFeedXMLUtil.invokeCRUDBOByDISService(DISFeedXMLUtil.java:625) at com.ibm.crl.dis.util.DISFeedXMLUtil.crudBOTypeByDISService(DISFeedXMLUtil.java:585) at com.ibm.crl.dis.util.DISFeedXMLUtil.parseReceivedFeedAndBuildReturnFeedForByBO(DISFeedXMLUtil.java:340) at com.ibm.crl.dis.servlet.ReceiveDataFromDISServlet.parseReceivedFeedAndSendFeed(ReceiveDataFromDISServlet.java:68) at com.ibm.crl.dis.servlet.ReceiveDataFromDISServlet.doPost(ReceiveDataFromDISServlet.java:53) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.iss.delver.common.util.ResponseFilter.doFilter(ResponseFilter.java:34) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.iss.delver.common.util.CashFilter.doFilter(CashFilter.java:40) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619) Caused by: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -723, SQLSTATE: 09000, SQLERRMC: ADMINISTRATOR.I_FITDETAIL;-407;23502;TBSPACEID=2, TABLEID=535, COLNO=1 at com.ibm.db2.jcc.c.fg.d(fg.java:1340)
ESQL的函数使用传入的参数总报未定义
请教各位大神,本人写C代码的,本来链接数据库一直用公司的平台封装的函数。今天自己研究了下esql封装几个最简单的函数,但是传给esql函数的参数,总说未定义,是什么问题。 #include <stdio.h> EXEC SQL INCLUDE sqlca; EXEC SQL INCLUDE sqlda; EXEC SQL INCLUDE sqlhdr; EXEC SQL INCLUDE decimal; EXEC SQL INCLUDE locator; EXEC SQL INCLUDE varchar; EXEC SQL INCLUDE datetime; EXEC SQL INCLUDE sqlstype; EXEC SQL INCLUDE sqltypes; EXEC SQL INCLUDE sqlstype; EXEC SQL BEGIN DECLARE SECTION; typedef struct { char usrname[64]; /* 用户名 */ char dbname[64]; /* 数据库名 */ char passwd[64]; /* 密码 */ }db_conn_info; EXEC SQL END DECLARE SECTION; /* 连接至INFORMIX数据库 */ int db_ifx_open(db_conn_info *source) { EXEC SQL CONNECT TO :source->dbname; return sqlca.sqlcode; } /* 断开与INFORMIX数据库的连接 */ int db_ifx_close(db_conn_info *source) { EXEC SQL DISCONNECT :source->dbname; return sqlca.sqlcode; }` 用esql编译总报错: `esqlc: "demo_fun.ec", line 25: Error -33040: Object 'source' was not declared. esqlc: "demo_fun.ec", line 33: Error -33040: Object 'source' was not declared.`
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、PDF搜索网站推荐 对于大部
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 顺便拉下票,我在参加csdn博客之星竞选,欢迎投票支持,每个QQ或者微信每天都可以投5票,扫二维码即可,http://m234140.nofollow.ax.
Vue + Spring Boot 项目实战(十四):用户认证方案与完善的访问拦截
本篇文章主要讲解 token、session 等用户认证方案的区别并分析常见误区,以及如何通过前后端的配合实现完善的访问拦截,为下一步权限控制的实现打下基础。
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入  假设现有4个人
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 欢迎 改进 留言。 演示地点跳到演示地点 html代码如下`&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;music&lt;/title&gt; &lt;meta charset="utf-8"&gt
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。 1. for - else 什么?不是 if 和 else 才
数据库优化 - SQL优化
前面一篇文章从实例的角度进行数据库优化,通过配置一些参数让数据库性能达到最优。但是一些“不好”的SQL也会导致数据库查询变慢,影响业务流程。本文从SQL角度进行数据库优化,提升SQL运行效率。 判断问题SQL 判断SQL是否有问题时可以通过两个表象进行判断: 系统级别表象 CPU消耗严重 IO等待严重 页面响应时间过长
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 c/c++ 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7
通俗易懂地给女朋友讲:线程池的内部原理
餐厅的约会 餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”我楞了一下,心里想女朋友今天是怎么了,怎么突然问出这么专业的问题,但做为一个专业人士在女朋友面前也不能露怯啊,想了一下便说:“我先给你讲讲我前同事老王的故事吧!” 大龄程序员老王 老王是一个已经北漂十多年的程序员,岁数大了,加班加不动了,升迁也无望,于是拿着手里
经典算法(5)杨辉三角
写在前面: 我是 扬帆向海,这个昵称来源于我的名字以及女朋友的名字。我热爱技术、热爱开源、热爱编程。技术是开源的、知识是共享的。 这博客是对自己学习的一点点总结及记录,如果您对 Java、算法 感兴趣,可以关注我的动态,我们一起学习。 用知识改变命运,让我们的家人过上更好的生活。 目录一、杨辉三角的介绍二、杨辉三角的算法思想三、代码实现1.第一种写法2.第二种写法 一、杨辉三角的介绍 百度
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹
面试官:你连RESTful都不知道我怎么敢要你?
面试官:了解RESTful吗? 我:听说过。 面试官:那什么是RESTful? 我:就是用起来很规范,挺好的 面试官:是RESTful挺好的,还是自我感觉挺好的 我:都挺好的。 面试官:… 把门关上。 我:… 要干嘛?先关上再说。 面试官:我说出去把门关上。 我:what ?,夺门而去 文章目录01 前言02 RESTful的来源03 RESTful6大原则1. C-S架构2. 无状态3.统一的接
SQL-小白最佳入门sql查询一
一 说明 如果是初学者,建议去网上寻找安装Mysql的文章安装,以及使用navicat连接数据库,以后的示例基本是使用mysql数据库管理系统; 二 准备前提 需要建立一张学生表,列分别是id,名称,年龄,学生信息;本示例中文章篇幅原因SQL注释略; 建表语句: CREATE TABLE `student` ( `id` int(11) NOT NULL AUTO_INCREMENT, `
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // dosho
漫话:什么是平衡(AVL)树?这应该是把AVL树讲的最好的文章了
这篇文章通过对话的形式,由浅入深带你读懂 AVL 树,看完让你保证理解 AVL 树的各种操作,如果觉得不错,别吝啬你的赞哦。 1、若它的左子树不为空,则左子树上所有的节点值都小于它的根节点值。 2、若它的右子树不为空,则右子树上所有的节点值均大于它的根节点值。 3、它的左右子树也分别可以充当为二叉查找树。 例如: 例如,我现在想要查找数值为14的节点。由于二叉查找树的特性,我们可...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,
程序员:我终于知道post和get的区别
IT界知名的程序员曾说:对于那些月薪三万以下,自称IT工程师的码农们,其实我们从来没有把他们归为我们IT工程师的队伍。他们虽然总是以IT工程师自居,但只是他们一厢情愿罢了。 此话一出,不知激起了多少(码农)程序员的愤怒,却又无可奈何,于是码农问程序员。 码农:你知道get和post请求到底有什么区别? 程序员:你看这篇就知道了。 码农:你月薪三万了? 程序员:嗯。 码农:你是怎么做到的? 程序员:
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU
开源并不是你认为的那些事
点击上方蓝字 关注我们开源之道导读所以 ————想要理清开源是什么?先要厘清开源不是什么,名正言顺是句中国的古代成语,概念本身的理解非常之重要。大部分生物多样性的起源,...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
      11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI 算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下
《C++ Primer》学习笔记(六):C++模块设计——函数
专栏C++学习笔记 《C++ Primer》学习笔记/习题答案 总目录 https://blog.csdn.net/TeFuirnever/article/details/100700212 —————————————————————————————————————————————————————— 《C++ Primer》习题参考答案:第6章 - C++模块设计——函数 文章目录专栏C+...
8年经验面试官详解 Java 面试秘诀
    作者 | 胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。   Java程序员准备和投递简历的实
面试官如何考察你的思维方式?
1.两种思维方式在求职面试中,经常会考察这种问题:北京有多少量特斯拉汽车? 某胡同口的煎饼摊一年能卖出多少个煎饼? 深圳有多少个产品经理? 一辆公交车里能装下多少个乒乓球? 一
so easy! 10行代码写个"狗屁不通"文章生成器
前几天,GitHub 有个开源项目特别火,只要输入标题就可以生成一篇长长的文章。背后实现代码一定很复杂吧,里面一定有很多高深莫测的机器学习等复杂算法不过,当我看了源代码之后这程序不到50
知乎高赞:中国有什么拿得出手的开源软件产品?(整理自本人原创回答)
知乎高赞:中国有什么拿得出手的开源软件产品? 在知乎上,有个问题问“中国有什么拿得出手的开源软件产品(在 GitHub 等社区受欢迎度较好的)?” 事实上,还不少呢~ 本人于2019.7.6进行了较为全面的 回答 - Bravo Yeung,获得该问题下回答中得最高赞(236赞和1枚专业勋章),对这些受欢迎的 Github 开源项目分类整理如下: 分布式计算、云平台相关工具类 1.SkyWalk
相关热词 c# plc s1200 c#里氏转换原则 c# 主界面 c# do loop c#存为组套 模板 c# 停掉协程 c# rgb 读取图片 c# 图片颜色调整 最快 c#多张图片上传 c#密封类与密封方法
立即提问