WebRowSet Problem with database columns defined as TEXT??
Hello,
Can somebody help me on this subject. (http://forum.java.sun.com/thread.jspa?forumID=31&threadID=778586)
I have the same problem with TEXT column when I try to populate the WebRowset.
Thanks,
Stephane
OK,
I change my postgresql driver for the lastest version (postgresql-8.2-506.jdbc3.jar) for JVM 1.5 and it's find...
This driver support the javax.sql.
St�phane
Edited by: Borealis on Oct 15, 2007 12:43 PM
Similar Messages
-
Strange problem with Database LInk
Hi Everyone,
I have strange problem with Database Link in Oracle 11g Express Edition;
There are two computers: computer-server and computer-client. Tnsnames.ora are the same on both computers ie.
CT =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof)(PORT = 1521))
(CONNECT_DATA = (SERVICE_NAME = XE)
I created database link :
Create database link zdalny
Connect to <user_id> identified by <password>
using ‘CT’;
Client can’t connect with server when I am using above command. But when I change “using” for using ‘krzysztof:1521’ or using ‘krzysztof’ or using ‘server IP:1521’ – everything is ok.
Why I am asking. Because in all materials which I am reading about Oracle command with using ‘CT’ should be working correct. But there is not. Do you know, why?
Thanks in advance and apologize for my English.
Rgds
KrzysztofKrzysztof Szymaniak wrote:
Thanks for all replies.
Below is server's tnsnames.ora
CT =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
12154. 00000 - "TNS:could not resolve the connect identifier specifie
Rgds
Krzysztof
PS. I tried with using 'XE' - not working.Assuming that is the correct tnsnames, of course XE is not working. You don't have a tnsnames entry for 'XE'.
You need to be aware that when using a dblink, the client is the db in which the link is defined, not the desktop from which you connect to that database.
I think you need to start here:
http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/
http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/ (Help! I can’t connect to my database )
http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/ (Help! I can’t connect to my database (part duex) )
The fact that your client (db link) is a database doesn't change anything taught in the above. -
Problem with checkbox column in matrix
Hello.
I have a little problem with checkbox column in matrix.
Column is binded to the UserData.
It has ValOn="Y", ValOff="N".
I use C++. It is wird problem. In matrix I have 10 columns - scrollbar role and if You want see checkbox column, You must role to the right. If this column is on the screen, and I use:
checkcell->PutChecked(VARIANT_TRUE);
then the checkbox is cheched, and if the checkbox isn`t on the screen and I use this comment - it nothing happening.
I tried to use ValOn="Y", PutChecked...
The problem i solved if the column is on the screen - if the column is first in matrix or second, but if it`s last I have a big problem.
My column with checkbox is not editable, but I tried to make it editable, check it, and then make it uneditable - the same efect.
How can I solve it ?
Sorry for my english.
Kamil WydraHello Kamil,
I am not sure about your problem, but here is an example of how to use checkbox in UI API.
First, create the matrix with checkbox column in Screen painter, and the output is an xml file, like this. Type as 121 indicates that it is a check box.
- <column AffectsFormMode="0" backcolor="-1" description="" disp_desc="0" editable="0" right_just="0" title="Rented" type="121" uid="Rented" val_off="N" val_on="Y" visible="1" width="41">
<databind alias="U_RENTED" databound="1" table="@VIDS" />
<ExtendedObject />
Second, bind the column to table from DB. This is a bug of 2004 Screen Painter, so if you are using 2005 Screen Painter, there is no problem.
Third, when you open the form, you can check and uncheck the cell.
BTW, please set the editable of the column to true.
Hope this helps,
Nick -
Problem with database schema objects in the entity object wizard
Hi All,
When creating a new entity object, I am facing a problem with database schema objects in the entity object wizard, database schema objects (check boxes for tables,synonyms...) are disabled. Actually I am using a synonym but I am not able to select the synonym check box.
Can any of you folks tell me how to enable the database schema objects (check boxes for tables,synonyms...).
Thanks in Advance.
Raja.MMake sure your using rite version of jdeveloper..
Make sure your using apps schema and check whether your able perform DML operations in the schema vis sql developer.
--Prasanna -
Problem with database connectivity
Hi guys,
I'm having a problem with database connectivity . I'm using the mySQL database & org.gjt.mm.mysql driver.
I've kept the org folder under the directory where the Database.java program is residing .
My program is as follows:
import java.sql.*;
public class Database
Connection con;
public void connect()
System.out.println("In connect.");
public Connection connectDB(String username,String password,String database)
try
Class.forName("org.gjt.mm.mysql.jdbc.Driver");
String url="jdbc:mysql:"+database;
con=DriverManager.getConnection(url,username,password);
catch(SQLException e)
System.out.println("SQL Exception caught:"+e);
catch(Exception e)
System.out.println("Exception e caught:"+e);
return con;
public static void main(String args[])
try
Connection c;
Database db=new Database();
c=db.connectDB("root","","//192.168.0.2/squid");
System.out.println("Connection created.");
c.close();
catch(Exception e)
System.out.println("Exception caught:"+e);
It gets compiled but gives the following error when run.
Exception e caught:java.lang.ClassNotFoundException: org.gjt.mm.mysql.jdbc.Driver
Connection created.
Exception caught:java.lang.NullPointerException
I don't know why the class is not found.Pl . help me rectify my mistake.Is there any other path to be set?
Thanks.You need to run it with the JDBC driver in the classpath
java -classpath .;[mySqlJdbcDriver.jar] Database -
Problem with last column in footer - 11G
Hello,
I have a problem with displaying sum in footer for af:table .
The footer connected to attributeValues which defined in the pageDef.
I have 3 columns in the footer, the two first are shown fine, but last one is empty , althouh they are defined the same way.
Replacing the order of columns did not resolve the problem, because still the last column is not shown.
Any help will be appriciated.
pageDef:
<attributeValues id="BalancesDetailsViewSumCountUsed"
IterBinding="InitBvBalancesDetailsViewIterator">
<AttrNames>
<Item Value="SumCountUsed"/>
</AttrNames>
</attributeValues>
<attributeValues id="BalancesDetailsViewSumDifference" IterBinding="InitBvBalancesDetailsViewIterator">
<AttrNames>
<Item Value="SumDifference"/>
</AttrNames>
</attributeValues>
Jspx:
column c2 is fine , but c3 is empty
<af:column sortProperty="CountUsed" sortable="false" id="*c2*"
headerText="#{res['balances.countUsed']}" width="80px">
<af:outputText value="#{row.CountUsed}">
<f:convertNumber groupingUsed="false"
pattern="#{bindings.BalancesAMBalancesDetailsView.formats.CountUsed}"/>
</af:outputText>
<f:facet name="footer">
<af:outputText value="#{bindings.BalancesDetailsViewSumCountUsed.inputValue}">
<f:convertNumber groupingUsed="false"
pattern="#{bindings.BalancesDetailsViewSumCountUsed.format}"/>
</af:outputText>
</f:facet>
</af:column>
<af:column sortProperty="Difference" sortable="false" id="*c3*"
headerText="#{res['balances.difference']}" width="80px">
<af:outputText value="#{row.Difference}">
<f:convertNumber groupingUsed="false"
pattern="#{bindings.BalancesAMBalancesDetailsView.formats.Difference}"/>
</af:outputText>
*<f:facet name="footer">*
*<af:outputText value="#{bindings. BalancesDetailsViewSumDifference.inputValue}">*
*<f:convertNumber groupingUsed="false"*
*pattern="#{bindings. BalancesDetailsViewSumDifference.format}"/> </af:outputText>*
*</f:facet>*
</af:column>
Thanks!Thanks you all!
I found the problem. The iterator which sum the coulmn was at the last after the second sum, so it return null.
So I replaced the hasNext() function with getAllRowsInRange() and now it is OK. -
Problems with varchar2 column and a select statement
Hi to all,
I am new to ODP...so I would really appreciate your help..
I am having problems with using the following code:
con.ConnectionString = "User Id=bla;Password=bla;Data Source=bla;";
string cmdQuery = "SELECT * from try where data ="+textBox1.Text+"";
OracleCommand cmd = new OracleCommand(cmdQuery);
cmd.Connection = con;
cmd.CommandType = CommandType.Text;
OracleDataReader reader = cmd.ExecuteReader();
while (reader.Read())
MessageBox.Show(reader.GetString(0)+"");
cmd.Dispose();
con.Close();
where:
data is the name of a field in the table
textBox1 is the name of a text box where the user inserts the values..
The error that appears is "Invalid identifier"..
I hope it makes sense...and please help...Hi,
I'm fairly sure it IS the single quotes actually. Print out the string you're trying to excute, then try it outside odp.net, does it work?
For example:
SQL> select * from dual where dummy=foo;
select * from dual where dummy=foo
ERROR at line 1:
ORA-00904: "FOO": invalid identifier
SQL> select * from dual where dummy='foo';
no rows selected
Cheers,
Greg -
Problem with database in dreamweaver 8
Hi,
I am workting with Dreamweaver 8 and WAMP5 1.4.5 (php 5.1
Apache 1.3 MySQL 4.1)
I have created a connexion MySQL in Dreamweaver 8
When I open "database" in the application panel I can see the
4 tables of my database but when I click on each table to see the
fields it doen't show any and indicate there is no field.
THANKS in advance for you HELPLet's start at the top. What is your Operating System? What
do you see
when you point your browser at ''
http://localhost''?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Springbok_yfc" <[email protected]> wrote in
message
news:ectqni$3cg$[email protected]..
> Hi there
>
> No too long ago I purchased Dreamweaver 8 and I am
currently designing a
> website for an organisation but I am having diffculties
setting up the
> Access
> Database..I have no problem with connecting Dreamweaver
8 to the database.
> So
> in order to get a solution to my difficulties I have
been doing alot of
> tutorials that I got from online, but for some reason
after I have done
> everything the tutorials asked of me and its time to
preview the live
> data..a
> pop up message appears saying the Page cannot be
displayed. Is this a
> glitch
> within Dreamweaver 8 itself? And if so will the updates
be able to fix
> this
> problems? What I would really like to do is store news
etc...in a database
> and
> then have the database shown on the website as a news
archive. Can anyone
> please help me with this?
>
> Kind Regards
> Heinrich
> -
Problem with Stacked Columns in Business Graphics
Hi,
Has anyone used the stacked columns chart type in business graphics? Am facing a problem with this.
I am using the SimpleGraphics example demo with 2 dataseries, the values ranging from 0-10. It works fine if the chart type is Columns (this is default). When I change the chart type to stacked_columns, the graph goes for a toss. The y-axis range automatically changes to 0-1 (values as 0, 0.2, 0.4 ... 1.0) and it does not display stacked columns as expected.
Is there any specific property(s) that need to be set for this chart type?
Appreciate any quick response.
cheers,
VittalHi friend,
See the link below it is having the solution of hiding the columns in smart forms
Hide table columns in smart form?
Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
I think this will solve your issue if you still have queries please revert back to me i will help you.
Thanks,
Sri Hari -
Problem with dynamic columns in smartforms.
Dear SDN Experts,
I have a requirement in smartforms for dynamic columns.
i have used template with 10 columns, So from these 10 columns,Columns may vary monthly MIN 2 to MAX 10 depending on
readings with them for that month.
i cannot fix column headings also,Because headings also changes dynamically.
So Problem is if there is no data in columns,Columns is displayng empty.
For EX: In this month i have 2 columns data remaining all columns is displaying empty boxes.
Please suggest me a solution is this posible in smartforms if i use table also.
<removed by moderator>
Regrds,
MNR
Edited by: Thomas Zloch on Sep 11, 2011 3:50 PMHi friend,
See the link below it is having the solution of hiding the columns in smart forms
Hide table columns in smart form?
Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
I think this will solve your issue if you still have queries please revert back to me i will help you.
Thanks,
Sri Hari -
Problem with shared column mapping
I have a problem with mapping different fields onto the same column. In most cases Kodo handles it very well but one tough case it does not
Modification references contract N-1 using contract_id field
Contract back references two modifications out of all modification owned by THIS contract (last_modification and executed_modifcation)
when both modifications are not null it works fine since I make sure both fields point to modification owned by the same contract
hovewer when I set one of the fields (executed_modifcation) to null (after it was not null) Kodo attempts to set not only executed_modifcation field to null but contract_id as well. Which obviously not desired
I understand that it is a pretty hard corner case. Do you think you can handle it or it is a dead end?
Attached are my filesAbe,
I fully agree with your analysis. In my case we can use precedence of direct
mappings over reference mapping in null situation.
However as you noted, there are cases when we have only references and so
you can not say which mapping is more important. However since we are
resolving NULL issue here, I am not sure we need to know precedence of
references - not null case should always take precedence. In other words:
priority 1: direct mapping
priority 2: not null reference
priority 3: null reference
Of course all three cases are subject rule of not changing value of shared
column
"Abe White" <[email protected]> wrote in message
news:[email protected]...
I admit that I didn't go through all your metadata, but I do believe that
3.0 final will handle this case. My plan is to implement updates such
that direct field mappings always take precedence over foreign key
mappings.
Let's say column CONTRACT_ID is used by int field contractId and is
also used by field lastModification as part of an FK to a Modification
instance (which I believe is close to your mapping). Because contractId
is a simple field rather than a foreign key, Kodo will give it the final
say on nulling/defaulting the CONTRACT_ID column. So if you null the
lasetModification field, CONTRACT_ID will retain the value of the
contractId field. Any non-null value of the lastModification field will
stilly have to jive with the contractId field, though, or else we'll
throw an exception like we do currently when you try to set 1 column to
multiple values.
I believe this solves the common case of shared
columns between direct mappings and FK mappings. There are other cases
in which multiple FK mappings overlap on certain columns, and this does
not solve nulling problems in those instances. However, I think those
cases are very rare and not worth the effort. Correct me if I'm wrong
and your situation actually is one of sharing columns between multiple
FKs and no primitives after all. -
PROBLEM WITH DATABASE CONFIGURATION ASSISTANT
Hello, i've a problem with a Oracle DB 10g Personal Edition connected to Oracle BPEL 10.1.2.0 on the same machine with WINXP home edition service pack2.
Both installations were very difficult, but now my problems is that when i launch the DCA and follow the wizard, at the ended i've this message and the creation fails:
UNABLE TO FIND ERROR %ORACLE_HOME%\RDBMS\opw<lang>.msb
Can anyone help me?
Thanks.
Danielewell, before i don't restarted the machine...now, with restart, i've set a both paths in Oracle_Home.
C:\OraBPELPM_1
C:\oracle\10.1.0\Db_1
I've installed, in two different directory, Oracle Database 10g Personal Edition, and Oracle BPEL 10.1.2.0.0
The BPEL is connect with DB and it executes sql statement -sqlplus works here now- but the patch procedure don't works now. The patching is needed.
The slqsplus and DCA from DB don't works.
REGEDIT:
key_OraDb10g_home1 ---> Oracle_Home C:\oracle\product\10.1.0\Db_1
Oracle_Home_KEY SOFTWARE\ORACLE\KEY_OraDb10g_home1
Oracle_Home_NAME OraDb10g_home1
KEY_OraBPELPM_1 ----> Oracle_Home C:\OraBPELPM_1
Oracle_Home_NAME OraBPELPM_1
Daniele -
Serious problem with database need help
hello experts
i am working with MS-ACCESS and connecting it with java programing
now the problem with me are
according to my need i have to create a table that contain Autonumber field
but when i insert element in this table by query
String query1 = "insert into Forum (Subject,Author,Date,Reply) values('"+param1+"','"+username+"','"+dateformat+"',"+reply+")";
st1 = con1.createStatement(); it gives sql exception but when i remove
autonumber field and make it simple field it works ok but i want to keep autonumber field and thn want to insert it
is it possible to create a dynamic table in ms-access through java query like
String query3 = "create table"+"topicId"+"( message varchar(1000) NOT NULL,author varchar(50) NOT NULL, date varchar(30) NOT NULL)";
here topic id some variable that contain table name
i think problem is that MS-ACCESS has no varchar data type plz help me
The complete code i written is as follow
<html>
<%@ page language="java" import="java.sql.*,java.text.*" %>
<head>
<title> Processing the post request </title>
</head>
<body background ="images/modbkgnd.jpg" bgproperties="fixed" >
<%
String param1="",param2="",topicId="";
Connection con1=null;
Statement st1=null;
ResultSet rs1=null;
int a=2,reply=0;
java.util.Date date = new java.util.Date();
DateFormat df ;
df = DateFormat.getDateInstance(DateFormat.FULL ,java.util.Locale.UK);
String dateformat = df.format(date);
String username = (String)session.getAttribute("forumlogin");
param1=request.getParameter("Subject");
param2 =request.getParameter("message");
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con1 = DriverManager.getConnection("jdbc:odbc:lingua");
String query1 = "insert into Forum (Subject,Author,Date,Reply) values('"+param1+"','"+username+"','"+dateformat+"',"+reply+")";
st1 = con1.createStatement();
out.print("hello i am here");
boolean posubject = st1.execute(query1);
out.print("hello i am here");
String query2 = "select *from Forum";
rs1 = st1.executeQuery(query2); //retriving table id for creating
out.print("hello i am here"); // message table
while(rs1.next())
topicId = rs1.getString(1);
String query3 = "create table"+"topicId"+"( message varchar(1000) NOT NULL,author varchar(50) NOT NULL, date varchar(30) NOT NULL)";
boolean createtable = st1.execute(query3);
out.print("hello i am here");
if(createtable)
String query4 = "insert into"+"topicId"+"values('"+param2+"','"+username+"','"+dateformat+"')";
boolean insertmess = st1.execute(query4);
}catch(SQLException ex){
out.print("sql exception");
finally
st1.close();
con1.close();
%>
</body>
</html>hello experts
first i change my Date to date and thn try but it was not working.
and thn i try as dinesh_tcs said
i change my query as
String query3 = "create table"+"topicId"+"( message string NOT NULL,author string NOT NULL, date string NOT NULL)";
but nothing help me
one more thing actually i don,t want to insert manually the field of autonumber what i want that my query work when i leave the autonumber field to insert values in the table ( or whatever way i want to insert values in that table by keeping autonuber given by MS_ACCESS)
plz do the change in code i have maintained above or if not possible thn write the query that u have tested -
Hello
We use MaxDB for our SAP Systems and for our own applications(none SAP)
We upgradet our none-SAP Database from 7.7 to 7.8.02.21.
Then we tried the new Database Studio.
With problems!?
We have a schema BWALLE and a user BWPROGI.
When connecting to the database with SQL-Studio as BWPROGI we can see the schema BWALLE and all our tables.
When connecting to the database with Database Studio as BWPROGI we can't see the schema BWALLE and we can't see our tables??!!
We see 2 users BWPROGI and DBABW(the administrator).
Under BWPROGI there are no schemas!??
Under DBABW there are schemas(dbabw,domain,sysinfo) and all the tables/views belonging to these schemas.
What do we miss???
Why can we access our tables/views/indexes with SQL-Studio and not with Database-Studio.
Any help welcomed
Regards
Albert
Edited by: Albert Beermann on Nov 23, 2011 10:45 AM
Some more informations:
We have a group BWALLE nouser BWALLE.
The owner of the Schema BWALLE is the group.
The user BWPROGI is member of the Group BWALLE.
When connecting with SQL Studio as BWPROGI we see the schema BWALLE and all tables in the schema.
When connecting with MAXDB Maestro as BWPROGI we see the schema BWALLE and all tables.
When connecting with Database Studio as BWPROGI we can't see the schema BWALLE and don't see any table.
Connecting with SQL-Studio as BWPROGI shows the tables in schema BWALLE and we can read,update,... the data,
but with MAXDB 7.8 we get an error when doubleclicking on a table to look at the table structure.
With MAXDB Maestro everything works as expected.
Regards
AlbertHello
How to do this???
Alter user BWPROGI DBA??
BWPROGI is member of group BWALLE and for group members i can only set mode resource or standard!
Or do you mean something else?
Regards
Albert -
Please Help: Problem - Combining database fields in a text object
Hello
Thank you for viewing my thread and any helpful feedback you may provide. I am having trouble with the "Combining database fields in a text object" tutorial in the Help under: Quick Start\Quick Start for new users\Combining database fields in a text object.
After following the steps and previewing, I see the last name, first name stacked on top of each other in preview and design view. I don't know why this is happening. Can anyone point me in the right direction so the text is displayed the same way as it is in the Help?
Thanks
MHi,
I don't think the field is actually in the text object but just stacked on top of it.
When you double-click on the text object, you the cursor should be inside it now. Is the database field in there? If not, then you can drag and drop it into the text object where you want it to go.
You will know if it's going in because the edit cursor will show you where in the text object it will drop.
The other way to do it is to drop the database field on the report somewhere and copy it to the clipboard and paste it into the text object.
Good luck,
Brian
Maybe you are looking for
-
Windows 7 Install - Blackscreen/USB drive
Hello, I'm trying to install Windows 7 Home Premium (64bit) on my iMac (late 2009) and unable to get past the dread blackscreen that is posted on the Apple Support help pages (http://support.apple.com/kb/TS3173). I've reformated the USB drive, added
-
Problems with quotes when using processXSL...
Hi! I need some help solving a problem with getting processXSL to output the quote (") character in a text file. (Oracle Release 9.2.0.6.0) CREATE TABLE tmp_lob(tmp_clob clob); SET SCAN OFF DECLARE l_xml_doc dbms_xmldom.DOMDocument; l_xsl_d
-
Streamline query ? Taking too long
First I wanted to say thanks to all in this forum, its been a huge help learning sql. Hoping someone can take a look at this query. It works but it takes a very long time to run. maybe there is a way to streamline it. right now its using one project
-
Partner of partner function SLFN0003 could not be changed
Hello, I want to resolve the Support Team by Category instead of SAP Component. The Support Team is determined by the Rule AC13200137 and uses the Category instead of SAP Component to determine the correct Support Team (SLFN0003). I've tested the rul
-
Where do you select which program you want to open files with a particular extension?
Where do you go to select which program should open files with particular extensions?