Home > 204 sqlstate > 42704 error code - 204

42704 Error Code - 204

Contents

new Controller DB Technote (troubleshooting) Problem(Abstract) Administrator is attempting to connect to (or create a new) Controller database, error code 204 sqlstate 42704 which is based on DB2. Administrator launches Controller Configuration, and launches db2 sql error sqlcode 204 sqlstate 42704 the 'Database Conversion Utility'. User clicks 'Create DB'. An error appears. throws an error that includes "DB2

Sqlcode 204 Sqlstate 42704 Ibm-db2

SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=.USER_TABLES". Symptom When the 'Create DB' button is pressed: Creating new empty Database Running DB Step: initial Running script batch: script/db2_createDB.batch Running script:

Com.ibm.db2.jcc.am.sqlsyntaxerrorexception: Db2 Sql Error: Sqlcode=-204, Sqlstate=42704

script/db2/sequence_xdbtrickle_seq.sql Running script: script/db2/table_xdb00.sql ** ERROR: com.ibm.db2.jcc.am.io: DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=DECLARE sSql VARCHAR2(4000); BEGIN ;BEGIN-OF-STATEMENT;, DRIVER=3.57.82 ** ERROR: com.ibm.db2.jcc.am.io: DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=.USER_TABLES, DRIVER=3.57.82 When the 'Connect' button is pressed: ** ERROR: com.ibm.db2.jcc.am.io: DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=.USER_TABLES, DRIVER=3.57.82 Cause There are several possible causes for similar "SQLCODE=-204, SQLSTATE=-42704" errors. TIP: is an undefined name.. sqlcode=-204, sqlstate=42704 See separate IBM Technote #1681892 for more examples. This Technote specifically relates to the scenario where the cause is that the USER_TABLES object does not exist in the DB2 Controller tablespace. In turn, this is because the database was not created when the DB2 server was using/running-in Oracle Compatibility Mode. More Information: "SQLCODE=-204, SQLSTATE=42704" is a DB2 error code indicating 'object does not exist'; in this case, it is indicating that either the USER_TABLES object is not present, or that the user does not have access to read this. USER_TABLES is an Oracle compatibility feature. Therefore the "SQLCODE=-204, SQLSTATE=42704" error (referencing USER_TABLES) typically implies that Oracle Compatibility was not switched on when the Controller Tablespace was created. Environment Controller with DB2 database. Diagnosing the problem Use the command DB2SET to check the DB2 server's settings. Steps: The following is based on DB2 server running on Windows: Click "Start - Programs - IBM DB2 - DB2COPY1 (Default) - Command Line Tools - Command Window" Type "db2set"

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss http://stackoverflow.com/questions/20919298/db2-sql-error-sqlcode-204-sqlstate-42704 the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow https://web.liferay.com/community/forums/-/message_boards/message/896814 Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each 204 sqlstate other. Join them; it only takes a minute: Sign up DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704 up vote 4 down vote favorite 1 I created local database in DB2 called "TestDB" then I created table called "TestTable". I found that the table is put under schema name is "yasmin". I am trying to connect to the DB2 database using code 204 sqlstate JDBC but I got this exception R SQLException information [1/4/14 11:32:59:289 EST] 0000004d SystemErr R Error msg: DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=DB2ADMIN.TESTTABLE, DRIVER=3.61.86 [1/4/14 11:32:59:290 EST] 0000004d SystemErr R SQLSTATE: 42704 [1/4/14 11:32:59:290 EST] 0000004d SystemErr R Error code: -204 [1/4/14 11:32:59:290 EST] 0000004d SystemErr R com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=DB2ADMIN.TESTTABLE, DRIVER=3.61.86 I tried many solutions on the internet Like set schema but unfortunately doesn't work. This is the JDBC code I used String urlPrefix = "jdbc:db2:"; String url; String user; String password; String empNo; Connection con; Statement stmt; ResultSet rs; url = urlPrefix + "//127.0.0.1:50000/TestDB"; user = "db2admin"; password = "db2admin"; try { // Load the driver Class.forName("com.ibm.db2.jcc.DB2Driver"); System.out.println("**** Loaded the JDBC driver"); // Create the connection using the IBM Data Server Driver for JDBC and SQLJ con = DriverManager.getConnection (url, user, password); // Commit changes manually con.setAutoCommit(false); System.out.println("**** Created a JDBC connection to the data source"); stmt = con.createStatement(); con.createStatement(); System.out.println("**** Created JDBC Statement object"); // Execute a query and generate a ResultSet instance rs = stmt.executeQuery("

Search Forums Home » Liferay Portal » English » 1. Installation / Deployment / Setup Recent Posts Statistics RSS (Opens New Window) Answer (Unmark) Mark as an Answer Threads [ Previous | Next ] HELP:DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704 petar banicevic May 27, 2008 5:05 PM RE: HELP:DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704 petar banicevic July 12, 2008 12:38 PM RE: HELP:DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704 Namrata Hangal August 7, 2012 1:43 AM RE: HELP:DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704 Boris Yurkevich October 31, 2012 3:22 AM RE: HELP:DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704 Hitoshi Ozawa November 1, 2012 5:01 PM RE: HELP:DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704 Henri Charles July 14, 2016 11:39 PM HELP:DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704 May 27, 2008 5:05 PM Answer petar banicevic Rank: Junior Member Posts: 72 Join Date: May 27, 2008 Recent Posts QUESTION:What mean these warnings and can I ignore them?Can I fix them ???Thank youPS:I created database on db2 with UTF-8 codeset ==================================(e.g. CREATE DATABASE LPORTAL ON 'C:' USING CODESET UTF-8 TERRITORY US COLLATE USING SYSTEM; )And when launching portal I get following messages:==================================Starting Liferay Enterprise Portal 5.0.1 (Luther / Build 5001 / April 14, 2008)22:12:56,484 INFO [DynamicDialect:80] Determining dialect for DB2/NT 822:12:56,500 INFO [DynamicDialect:106] Using dialect org.hibernate.dialect.DB2Dialect22:12:58,125 INFO [PortalImpl:184] Portal lib url /C:/Program Files/liferay-portal-tomcat-6.0-5.0.1/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/util/PortalImpl.class22:12:58,125 INFO [PortalImpl:209] Portal lib directory /C:/Program Files/liferay-portal-tomcat-6.0-5.0.1/webapps/ROOT/WEB-INF/lib/22:13:02,609 WARN [ReleaseLocalServiceImpl:83] DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704, SQLERRMC: DB2ADMIN.RELEASE_22:13:02,609 INFO [ReleaseLocalServiceImpl:96] Create tables and populate with default data22:13:07,281 WARN [DBUtil:3

 

Related content

42704 sql error

Sql Error table id toc tbody tr td div id toctitle Contents div ul li a href Is An Undefined Name Sqlcode - Sqlstate a li li a href Sql n Is An Undefined Name Sqlstate a li ul td tr tbody table p using DbConv to create new database Technote troubleshooting Problem Abstract Administrator creates brand new blank DB database Administrator logs onto the Controller application server relatedl launches 'Controller Configuration' and creates a new database connection to sqlcode - sqlstate sqlerrmc the database Administrator clicks 'connect' and then clicks 'Create DB' An error appears sqlcode sqlstate ibm-db Symptom

42704 error code

Error Code table id toc tbody tr td div id toctitle Contents div ul li a href Db Error a li li a href Errorcode Sqlstate a li li a href Sql n Is An Undefined Name Sqlstate a li ul td tr tbody table p new relatedl Controller DB Technote troubleshooting Problem Abstract Administrator error code sqlstate is attempting to connect to or create a new sql error Controller database which is based on DB Administrator launches Controller Configuration and launches the p h id Db Error p 'Database Conversion Utility' User clicks 'Create DB' An error appears throws

b2 sql error sqlcode=-204 sqlstate=42704 sqlerrmc

B Sql Error Sqlcode - Sqlstate Sqlerrmc table id toc tbody tr td div id toctitle Contents div ul li a href Sqlcode Sqlstate Ibm-db a li li a href Is An Undefined Name Sqlcode - Sqlstate a li li a href Sqlcode - Sqlstate a li li a href Sqlcode - Sqlstate In Mainframe a li ul td tr tbody table p new Controller DB Technote troubleshooting Problem Abstract Administrator is attempting to connect to or create relatedl a new Controller database which is based on db sql error sqlcode sqlstate DB Administrator launches Controller Configuration and launches the

b2 sql error sqlcode=-204 sqlstate=42704

B Sql Error Sqlcode - Sqlstate table id toc tbody tr td div id toctitle Contents div ul li a href Sql Code a li li a href Sqlcode Sqlstate Ibm-db a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta relatedl Discuss the workings and policies of this site About db sql error sqlcode - sqlstate Us Learn more about Stack Overflow the company Business Learn more about hiring developers ibm db sqlcode - sqlstate or posting ads with us Stack Overflow

db2 sql error sqlcode 204 sqlstate 42704 sqlerrmc

Db Sql Error Sqlcode Sqlstate Sqlerrmc table id toc tbody tr td div id toctitle Contents div ul li a href Sqlcode - Sqlstate Sqlerrmc a li li a href Is An Undefined Name Sqlcode - Sqlstate a li li a href Db Sqlstate a li ul td tr tbody table p new Controller DB Technote troubleshooting db sql Problem Abstract Administrator is attempting to connect to or create p h id Sqlcode - Sqlstate Sqlerrmc p a new Controller database which is based on DB Administrator launches Controller Configuration com ibm db jcc am sqlsyntaxerrorexception db sql error sqlcode

db2 sql error sqlcode=-204

Db Sql Error Sqlcode - table id toc tbody tr td div id toctitle Contents div ul li a href Com ibm db jcc am sqlsyntaxerrorexception Db Sql Error Sqlcode - Sqlstate a li li a href Sqlcode - Sqlstate a li li a href Db Sql Error Sqlcode a li ul td tr tbody table p new Controller DB Technote troubleshooting Problem Abstract relatedl Administrator is attempting to connect to or db sql error sqlcode - sqlstate create a new Controller database which is based on DB Administrator p h id Com ibm db jcc am sqlsyntaxerrorexception Db Sql

db2 sql error sqlcode 204 sqlstate

Db Sql Error Sqlcode Sqlstate table id toc tbody tr td div id toctitle Contents div ul li a href Db Sqlcode Sqlstate a li li a href Is An Undefined Name Sqlcode - Sqlstate a li li a href Sqlcode - Sqlstate In Mainframe a li li a href Ibm Technote a li ul td tr tbody table p new Controller DB Technote troubleshooting Problem Abstract p h id Db Sqlcode Sqlstate p Administrator is attempting to connect to or create a sqlcode sqlstate ibm-db new Controller database which is based on DB Administrator launches Controller Configuration and p

db2 sql error 204

Db Sql Error table id toc tbody tr td div id toctitle Contents div ul li a href Sqlcode - Sqlstate a li li a href Sqlcode - a li li a href Sqlcode - Sqlstate Sqlerrmc a li li a href Db Sql Error Codes a li ul td tr tbody table p new Controller DB Technote troubleshooting Problem Abstract Administrator is attempting to connect to or create relatedl a new Controller database which is based on DB com ibm db jcc am sqlsyntaxerrorexception db sql error sqlcode - sqlstate Administrator launches Controller Configuration and launches the 'Database Conversion

db2 sql error sqlcode=-204 sqlstate=42704

Db Sql Error Sqlcode - Sqlstate table id toc tbody tr td div id toctitle Contents div ul li a href Sqlcode - Sqlstate Sqlerrmc a li li a href Sqlcode - Sqlstate a li li a href Sqlcode Sqlstate Ibm-db a li li a href Sqlcode a li ul td tr tbody table p new Controller DB Technote troubleshooting Problem Abstract Administrator is attempting to connect to or create relatedl a new Controller database which is based on DB com ibm db jcc am sqlsyntaxerrorexception db sql error sqlcode - sqlstate Administrator launches Controller Configuration and launches the 'Database

db2 sql error 42704

Db Sql Error table id toc tbody tr td div id toctitle Contents div ul li a href Sqlcode - Sqlstate Sqlerrmc a li li a href Is An Undefined Name Sqlcode - Sqlstate a li li a href Sqlcode - Sqlstate a li ul td tr tbody table p new Controller DB Technote troubleshooting relatedl Problem Abstract Administrator is attempting to connect to or sqlcode - sqlstate create a new Controller database which is based on DB p h id Sqlcode - Sqlstate Sqlerrmc p Administrator launches Controller Configuration and launches the 'Database Conversion Utility' User clicks 'Create DB'

error code =-204 sqlstate=42704

Error Code - Sqlstate table id toc tbody tr td div id toctitle Contents div ul li a href Db Sql Error Sqlcode Sqlstate Sqlerrmc a li li a href Sql n Is An Undefined Name Sqlstate a li li a href Sqlstate Postgresql a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers relatedl to any questions you might have Meta Discuss db sql error sqlcode sqlstate the workings and policies of this site About Us Learn more p h id Db Sql Error Sqlcode Sqlstate Sqlerrmc p about

error db2 sql error sqlcode=-204 sqlstate=42704

Error Db Sql Error Sqlcode - Sqlstate table id toc tbody tr td div id toctitle Contents div ul li a href Sqlcode - Sqlstate Sqlerrmc a li li a href Is An Undefined Name Sqlcode - Sqlstate a li li a href Sqlstate a li ul td tr tbody table p new Controller DB Technote troubleshooting Problem Abstract Administrator is attempting to connect to or create a new relatedl Controller database which is based on DB Administrator launches com ibm db jcc am sqlsyntaxerrorexception db sql error sqlcode - sqlstate Controller Configuration and launches the 'Database Conversion Utility' User

error sqlcode=-204 sqlstate=42704

Error Sqlcode - Sqlstate table id toc tbody tr td div id toctitle Contents div ul li a href Sqlcode - Sqlstate Sqlerrmc a li li a href Sqlcode - Sqlstate a li li a href Sql n Is An Undefined Name Sqlstate a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta relatedl Discuss the workings and policies of this site About Us db sql error sqlcode - sqlstate Learn more about Stack Overflow the company Business Learn more about hiring developers

error sqlcode=-204 sqlstate=42704 sqlerrmc

Error Sqlcode - Sqlstate Sqlerrmc table id toc tbody tr td div id toctitle Contents div ul li a href Is An Undefined Name Sqlcode - Sqlstate a li li a href Sql n Is An Undefined Name Sqlstate a li li a href Sqlcode - Sqlstate In Mainframe a li ul td tr tbody table p clicking Upgrade inside Database Conversion Utility dbconv Technote troubleshooting Problem Abstract User launches Controller Configuration User opens relatedl Database Connections and chooses connection User clicks green db sql error sqlcode sqlstate play button to open Database Conversion Utility User chooses UDL file and

information returned for the error includes sqlcode 204 sqlstate 42704

Information Returned For The Error Includes Sqlcode Sqlstate table id toc tbody tr td div id toctitle Contents div ul li a href Sqlcode - Sqlstate a li li a href Sql n Is An Undefined Name Sqlstate a li li a href Sqlcode - Sqlstate Sqlerrmc - a li ul td tr tbody table p using DbConv to create new database Technote troubleshooting Problem Abstract Administrator creates brand new blank relatedl DB database Administrator logs onto the Controller application com ibm db jcc am sqlsyntaxerrorexception db sql error sqlcode - sqlstate server launches 'Controller Configuration' and creates a new