Data base creation
hi,
I am new with data bases in Java. I need to build a servlet that saves data in data base. I would like to use mySQL. I really don't know nothing about mySQL and JDBC, only that it is free and it uses SQL (which I knows).
What should I know and have in order to make this? what jars and what servers should I find? where can I find an example of how to create a data base and use it?
thanks, Naor.
The JDBC tutorial....
http://java.sun.com/docs/books/tutorial/jdbc/index.html
The mysql site....
http://dev.mysql.com/
I suggest that the read the license carefully first.
Similar Messages
-
Problem In Data Base Creation... Oracle 10g server in windows server 2008
I have installed Oracle 10g server in windows server 2008 and the domain & active directory r created now i am trying to create the databse i am getting usual error (tns protocol adapter error ) in the 2% i have removed the domain and the active directory from windows then i created but this is not a solutions i need to create the data base in the domain server...
this is a forms forum.
please post in Database Installation -
Hi,
on FSCM 91, Tools 8.49
in which peopleSoft table can we see the database creation time ?
Any kind of DB (Oracle, Sqlserver,DB2).
Thanks.For SQL Server try
select name, crdate from master..sysdatabases where name = 'YOURDBNAME'
Edited by: RCC on Apr 4, 2013 9:53 AM
Any data in the tables is going to be refreshed down from production, so if you want to use a table to store this info I recommend building it into your refresh process. Sometimes it's nice to create a table outside of the PeopleSoft database such as in a administration schema or consolidated admin database that you insert into each refresh, it's nice to have the history sometimes. -
Dear Friends,
I had installed oracle 9i using database configuration assitance for learning purpose. Installation was successful. Now, is it possible to view the database creation script of the above created database. If it is possible, kindly share the steps. Thanks in advance.CHeck out the alert log of the created Database and you will find the scripts as commands in it.
Or go to ORACLE_HOME and search for demobld.sql
regard
Pravin -
Oracle9i Data base creation "ASAP"
I have installed the software only and not created database.
When I try to login for creatin the database.
I just logged in using the
Z:\>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on Fri Jun 27 13:02:36 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect / as sysdba
ERROR:
ORA-12560: TNS:protocol adapter error
SQL>
My database is under OS Authentication
The OS user am logging in is ORA_DBA group.
Can anybody help me doing this
ASAPHi,
You could use the Database Configuration Assistant located at Configuration & Management Tools. If you want create "everything" from scratch yourself, I guess starting with creating a service (oradim) and password (orapwd) for the instance are amongst the first things you should do.
Best of luck,
-J. -
Creation of field in data base table
Hi,
I want to create a field in data base table , which holds the float values but i don't want to use the FLTP data type, why bcoz if i use this data type in selection screen of the table the the field is not appeqring, i dont want to go for the option QUAN bcoz there i need to define the ref table and ref field.
please explain what is the way to create this field.
regards
KrishnaUse NUMC
Awrd POints if useful
Bhupal -
Transfer of xml file elements to data base columns
hi all,
i have to store xml file's data(element values) into the data base(table columns).
i heard that we can acheive this by XSU.
IS it is mediator between xml and db? if yes how to install it.
i tried something as below
with t as (
select xmltype('<Message-Header>
<Message-Id>1234</Message-Id>
<Sender-Company-ID>4569</Sender-Company-ID>
<Sender-Company-Name>abc company</Sender-Company-Nam
<Sender-User-ID>AA</Sender-User-ID>
<Recv-Company-ID>050</Recv-Company-ID>
<Recv-Company-Name>XYZ pvt.ltd</Recv-Company-Name>
<Creation-Time>20101019 15:59:39</Creation-Time>
</Message-Header>') as xml from dual
)but i am getting following error. can anybody explain about this
SQL> ed
Wrote file afiedt.buf
1 with t as (
2 select xmltype('<Message-Header>
3 <Message-Id>1234</Message-Id>
4 <Sender-Company-ID>4569</Sender-Company-ID>
5 <Sender-Company-Name>abc company</Sender-Company-Name>
6 <Sender-User-ID>AA</Sender-User-ID>
7 <Recv-Company-ID>050</Recv-Company-ID>
8 <Recv-Company-Name>XYZ pvt.ltd</Recv-Company-Name>
9 <Creation-Time>20101019 15:59:39</Creation-Time>
10 </Message-Header>') as xml from dual
11* )
SQL> /
with t as (
ERROR at line 1:
ORA-01041: internal error. hostdef extension doesn't existPlease help me..
my db version is Oracle Database 10g Release 10.2.0.1.0 - ProductionHi,
What are you trying to achieve with a single WITH clause and no SELECT?
Please see this from the documentation if you want to use it properly :
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#i2077142
Apart from its true purpose of subquery factoring, the WITH clause is often use here and there to simulate a table content, but you'll always need a SELECT.
Maybe that's what you were trying to do?
As for your question, starting with release 10.2, Oracle provides XMLTable to shred XML documents into relational structures.
For example,
with t as (
select xmltype('<Message-Header>
<Message-Id>1234</Message-Id>
<Sender-Company-ID>4569</Sender-Company-ID>
<Sender-Company-Name>abc company</Sender-Company-Name>
<Sender-User-ID>AA</Sender-User-ID>
<Recv-Company-ID>050</Recv-Company-ID>
<Recv-Company-Name>XYZ pvt.ltd</Recv-Company-Name>
<Creation-Time>20101019 15:59:39</Creation-Time>
</Message-Header>') as xml from dual
select x.*
from t,
XMLTable(
'/Message-Header'
passing t.xml
columns
message_id number path 'Message-Id',
sender_company_id number path 'Sender-Company-ID',
sender_company_name varchar2(30) path 'Sender-Company-Name',
sender_user_id varchar2(30) path 'Sender-User-ID',
recv_company_id varchar2(30) path 'Recv-Company-ID',
recv_company_name varchar2(30) path 'Recv-Company-Name',
creation_time varchar2(30) path 'Creation-Time'
) x
;If you're working in PL/SQL, and the XML resides in a variable, you can directly do (with necessary datatype conversion in the SELECT) :
insert into your_table ( <your_columns_list> )
select <your_columns_list>
from XMLTable(
'/Message-Header'
passing your_xml_var
columns
message_id number path 'Message-Id',
sender_company_id number path 'Sender-Company-ID',
sender_company_name varchar2(30) path 'Sender-Company-Name',
sender_user_id varchar2(30) path 'Sender-User-ID',
recv_company_id varchar2(30) path 'Recv-Company-ID',
recv_company_name varchar2(30) path 'Recv-Company-Name',
creation_time varchar2(30) path 'Creation-Time'
) x
; -
How to check the validation at data base level as well as current user ente
Dear all
i have creation page in that item code will not enter the duplicate values
in that creation page contains advanced table
user will click on create 15 blank records using add another row
suppose in first row user will enter LAPTOP assume this item code
in this case i need to raise exception through databse level
in second row also user enter LAPTOP1 in this case exception will not raise becaause data is not there at databse
in third row user will enter LAPTOP1 in this case item is not there in data base but it is there in second row in this case
i need to raise exception
how to achieve this
Thanks in Advance
SreekanthYou can validate this in form submission.
1. Call a method in AMImpl.java
2. loop the ViewObjects and check the values
3. If you find a match, throw the error
--Prasanna -
Hi all : Issue is data base Please attach see file , copy this file to desktop ,, then run create table vi ,,, as you see its will save the data in access . Please see I took the this example from national instrument example directory C:\Program Files\National Instruments\LabVIEW 8.5\examples\database but I add some objects My problems are : 1- Every one can insert to epos.mdb and do changes 2- I want if I insert same number in column 1 , massage appeared that say this number is in data base , and don't saved it , if this number doesn't exist then application will saved it How can I do that? thanks
Attachments:
database.zip 239 KBthe exemple just cover the creation of a table, but not the insert record.
I do not have the database add on but I am using a database not connected yet to Labview.
To answer your question you should first use create table with the database app(like access: simpler)
next find the function vi to (findRecord(like query) and Numberof record and insert record. -
Hi
i wolud like to interact with oracle database in atg so i created one ds file that is xml file after creation of ds file where i have to register that ds file in order to interact with data base in atgI believe you are referring to datasource xml. If you are on Weblogic you need to define the datasource from Weblogic console and it will create the corresponding xml in your domain's config/jdbc. If you are on JBoss you can create the datasource xml using an existing datasource xml which are already provided both in ATG and JBoss. Change the datasource name, driver, jdbc url and other parameters as per your setup and copy this datasource xml to your JBoss server's deploy directory. It will be loaded when you start that JBoss server. Then on ATG side, you will have to update /atg/dynamo/service/jdbc/JTDataSource component to provide it the same JNDI name that you specified in your datasource xml.
-
Difference between data dictionary and data base
Hi,
Please give me clear view on data dictionary and data base.
Thanks
marganiHi Margini,
Please check the forms u can find the lot of answers
Here is a link
http://www.sapdb.info/abap-data-dictionary/
What is a data dictionary?
Data Dictionary is a central source of data in a data management system. Its main function is to support the creation and management of data definitions. It has details about
· what data is contained?
· What are the attributes of the data?
· What is the relationship existing between the various data elements?
Best regards,
raam -
How to export a data as an XML file from oracle data base?
could u pls tell me the step by step procedure for following questions...? how to export a data as an XML file from oracle data base? is it possible? plz tell me itz urgent requirement...
Thankz in advance
BalaSQL> SELECT * FROM v$version;
BANNER
Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
5 rows selected.
SQL> CREATE OR REPLACE directory utldata AS 'C:\temp';
Directory created.
SQL> declare
2 doc DBMS_XMLDOM.DOMDocument;
3 xdata XMLTYPE;
4
5 CURSOR xmlcur IS
6 SELECT xmlelement("Employee",XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",
7 'http://www.oracle.com/Employee.xsd' AS "xsi:nonamespaceSchemaLocation")
8 ,xmlelement("EmployeeNumber",e.empno)
9 ,xmlelement("EmployeeName",e.ename)
10 ,xmlelement("Department",xmlelement("DepartmentName",d.dname)
11 ,xmlelement("Location",d.loc)
12 )
13 )
14 FROM emp e
15 , dept d
16 WHERE e.DEPTNO=d.DEPTNO;
17
18 begin
19 OPEN xmlcur;
20 FETCH xmlcur INTO xdata;
21 CLOSE xmlcur;
22 doc := DBMS_XMLDOM.NewDOMDocument(xdata);
23 DBMS_XMLDOM.WRITETOFILE(doc, 'UTLDATA/marco.xml');
24 end;
25 /
PL/SQL procedure successfully completed.
. -
Im trying to build user expiration into my registration form, but I cant get the form to send back the date registering.
in my data base i have tried every thing from timestamp to datetime. I can get a timestamp but it is not functioning with the expiration?just have a look at my tutorial Login tables: installation & configuration where the required column attributes are explained and where you can obtain a fully functional SQL dump for a typical ADDT "login" and (optionally) "login_stats" table.
BTW, "expiration" will have to be an "int" column.
Cheers,
Günter -
Regarding Header And Footer in Data type Creation
Hi All,
Can Any One Please Send me One Screen Shot Developed with Header And Footer in the Data type Creation
I want to Know How to Create And where to create that in DT Creation
And Why Do we need Both of these in DT Creation
Regards
VamsiHi,
Will u Please send One Screen With These Details, So that I Can Uderstand More
ID : [email protected]
Please send
Regards
Vamsi -
Quota Generation not happen's on Pro data basis .
Dear experts,
Time evalution status - 1.
1.Employee service 0 - 5 years - 24 Days entitlement
2.Employee service 5 - 10 years - 29 days entitlement.
when generating quota for employee less than five years its calculating correctly.when come's to employee more than 5 years its not calculating on pro-data basis of employee joining month. Instead of Month it's looking at the year and calculating it.
DOJ of employee
Mar-09
Year
TOTAL quota accrued
2009
20
2010
24
2011
24
2012
24
2013
24
Client requirement
System calculation as of now
2014
28
29
Calculation part.
below screen shot show how system calculating and how client needed.
how this scenario can be configured.
Regards
VinodhCheck the Deduction rule for that Quota
once check the Groupings for ESG and PSA
V_001P_ALL
V_503_ALL
Maybe you are looking for
-
Profit center as COPA characteristic
Dear Guru , All my sites are profit center and i want to capture information at site level in copa and for the same i need to create a copa characteristic. My confusion is what should be my characteristic : Profit center or Site...... Regards Nitish
-
Two things. I have an Enquiry Form on my site and every now and then I receive a reply which is totally blank and although some fields are mandatory (name, email address), which I have set a behaviour for. I am puzzled how this gets through the syste
-
Stuck on a warning dealing with NSOperations.
thephotoQueue = [[[NSOperationQueue alloc] init] autorelease]; [thephotoQueue setMaxConcurrentOperationCount:1]; NSInteger i; for (i = 0; i <=kNumImages -1; i++) NSInvocationOperation* thephotoOp = [[NSInvocationOperation alloc] initWithTarget:self s
-
How can i update my iPhone with an externally downloaded iOS?
hello and merry christmas for you all. My iPhone 4s is having issues with the screen.. like when it shows everything but i cant tap on anything. Anyways, i talked to a friend of mine who works in an authorized apple reseller shop and he told me he do
-
When I try to download a cd, the download screen does not pop up
When I try to download a cd, the download screen does not pop up to give me an option to download.