How to generate database schema from CMP?
I'm using JDeveloper 10g to design J2EE application in the Up-bottom manner. Then I have written UML model with CMP beans and now I would like deploy the model to the database. Is there a wizard to automaticly generate database schema from CMP beans?
Marek
Here are some links that might help you:
The Oracle XML Developer's Kits (XDK) contain the basic building blocks for reading, manipulating, transforming and viewing XML documents. Includes XML Schema Processor: supporting Java, C, and C++, allows use of XML simple and complex datatypes.
http://otn.oracle.com/tech/xml/xdkhome.html
Building Server-Side XML Schema Validation
Discusses how XML Schema can be used within Oracle9i to validate XML documents.
http://otn.oracle.com/tech/xml/xdk_sample/xdksample_093001.html
How XML Schemas Simplify Dynamic Content Management
With XML Schema now a W3C Recommendation, compare Document Type Definitions to XML Schema.
http://otn.oracle.com/tech/xml/htdocs/SchemDTD.html
Regards,
-rh
Similar Messages
-
How to Request Database Schema from a Linked DB
How does one Request Database Schema to be added to your workspace when that Schema is in a linked DB ?
You can't do that.
Scott -
WCF-SQL and XML EXPLICIT How to generate a schema from add Generated Items...
Hi
I have a stored procedure in which it returns a select that I have configured using FOR XML EXPLICIT. The query returns in a single column the exact XML that I require.
However, When I add generated items (outbound) in Visual Studio against the SP it only gives me a single element which is the column name (a guid) not the structure of the xml. I have tried FOR XML EXPLICIT, XMLDATA with no luck
Surely there is a way to generate the schema within biztalk for a custom XML structure I want to create.
Thanks
Biztalk DeveloperYes, it is generating you un typed message for the stored procedure . As you are using WCF SQL adapter you don't need to specify the XML auto clause inside your Stored Procedure .
You can also take referece from below MSDN blog
http://blogs.msdn.com/b/biztalkmusings/archive/2009/10/05/a-simple-biztalk-server-2009-wcf-sqlserver-adapter-example.aspx
Thanks
Abhishek -
What is the best way to create a database schema from XML
What is the best way to create a database schema from XML?
i have a complex XML file that I want to create a database from and consistently import new XML files of the same schema type. Currently I have started off by mapping the XSD into Excel and using Mysql for Excel to push into MySQL.
There must be a more .net microsoft solution for this but I cannot locate the topic and tools by searching. What are the best tools and way to manage this?
Taking my C# furtherHi Saythj,
When mentioning "a database schema from XML", do you mean the
XML Schema Collections? If that is what you mean, when trying to import XML files of the same schema type, you may take the below approach.
Create an XML Schema Collection basing on your complex XML, you can find
many generating tools online to do that.
Create a Table with the above created schema typed XML column as below.
CREATE TABLE youTable( Col1 int, Col2 xml (yourXMLSchemaCollection))
Load your XML files and try to insert the xml content into the table above from C# or some other approaches. The XMLs that can't pass the validation fail inserting into that table.
If you have any question, feel free to let me know.
Eric Zhang
TechNet Community Support -
Generating database tables from Java classes
Hi,
I've encountered a number of tools which will create Java classes from database tables (e.g. JDeveloper has this functionality, Abator provides this for iBATIS, etc...).
However, I've not been able to locate any tools that perform the opposite job - i.e. given a Java class, it generates a database table (or, presumably, some SQL).
It's been suggested to me that Hibernate might provide this sort of capability, but if anybody has any experience of doing this, in any tool, I'd be interested to hear about it.
Thanks,
Alistair.Many thanks for the pointers.
duffymo: I've taken a look at Middlegen (http://boss.bekk.no/boss/middlegen/index.html) but it seems that the first step is to specify the database schema, whereas I'm looking to generate the schema from existing code. Or have I missed something?
Alistair. -
How to generate XML data from Lotus Notes to migrate to SharePoint by passing XML to SharePoint.?
Ramesh SYou could use XMLQuery to return the data from your tables as XML, that would give you a CLOB.
An example using the SCOTT schema might be like this:
SELECT XMLQuery(
'for $i in ora:view("DEPT")/ROW
return <Department dname="{$i/DNAME}">
<Employee>
{for $j in ora:view("EMP")/ROW
where $j/DEPTNO eq $i/DEPTNO
return ($j/ENAME, $j/JOB, $j/SAL)}
</Employee>
</Department>'
RETURNING CONTENT) FROM DUAL;In the docs you can find more information about its use:
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10492/xdb_xquery.htm -
How to create database link from oracle to sql server
Please help with how to create database link from oracle to sql server
Best regards,
VishalPlease help with how to create database link from oracle to sql server
Best regards,
Vishal
Hi Vishal,
I found a lof of information regarding how to create a database link from Oracle to SQL Server, please see:
https://www.google.co.in/?gws_rd=cr&ei=vd3XUvGFO8TgkAXqlYCADg#q=how+to+create+database+link+from+oracle+to+sql+server
We discuss SQL Server related issue in this forum. If you have any more question regarding Oracle, please post it in Oracle communities forum for better support.
Regards,
Elvis Long
TechNet Community Support -
How to move database objects from one user to another user
Could someone help how to move database objects from one user to another user
Thanks in advanceThanks a lot for the reply.
Actually I wanted to know whether there is any command to change the owner ship of the table.
For ex table1 belongs to user1. can the owner of table1 to be changed to owner2.
directly using an oracle command. I knew that it can be done using import and export, since the table was 200 million thought the rename command would be faster instead of import and export.
Thanks Billy for letting me know that it is not possible using oracle query. -
How to generate an idoc from invoice cancellation (VF11)
Hi
How to generate an idoc from invoice cancellation (VF11)?
Can someone help ..
Regards
PratikshaHi,
You can generate an IDOC from invoice cancellation.Define a new "Z" output type for this cancellation billing document type and select the medium as 5(EDI).Check with your ABAPer for this.
Regards,
Krishna. -
How to create Default Schema from within the application
Hi friends
I am creating users using the following within my application using this syntax
BEGIN
APEX_UTIL.CREATE_USER
(:P124_USER_ID, :P124_USER_NAME,:P124_USER_FIRST_NAME,:P124_USER_LAST_NAME,' ',:P124_USER_EMAIL_ID,'xxxx');
END;
The default workspace for the user is set as blanks. I would like to set it to be the default workspace as per the current logged in user.
Can you help me with the syntax for this
thank you in advance
LaxmiLaxmi,
The subject of the post is "How to create Default Schema from within the application".
But your question asks how to set the "default workspace" for a newly created user.
Those are different questions and not the ones I think you need answered.
Let me answer this question "How can you set the default schema for an account when creating the account and set it to the same value used for the default schema attribute of the administrator account used to authenticate to the currently running application?".
In the apex_util.create_user call use named parameter notation and fetch the information about the currently logged-in user first, e.g.,declare
l_workspace varchar2(256);
l_user_name varchar2(256);
l_first_name varchar2(256);
l_last_name varchar2(256);
l_web_password varchar2(256);
l_email_address varchar2(256);
l_start_date varchar2(256);
l_end_date varchar2(256);
l_employee_id varchar2(256);
l_allow_access_to_schemas varchar2(256);
l_person_type varchar2(256);
l_default_schema varchar2(256);
l_groups varchar2(256);
l_developer_role varchar2(256);
l_description varchar2(256);
begin
apex_util.fetch_user (
p_user_id => apex_util.get_current_user_id,
p_workspace => l_workspace,
p_user_name => l_user_name,
p_first_name => l_first_name,
p_last_name => l_last_name,
p_web_password => l_web_password,
p_email_address => l_email_address,
p_start_date => l_start_date,
p_end_date => l_end_date,
p_employee_id => l_employee_id,
p_allow_access_to_schemas => l_allow_access_to_schemas,
p_person_type => l_person_type,
p_default_schema => l_default_schema,
p_groups => l_groups,
p_developer_role => l_developer_role,
p_description => l_description);
apex_util.create_user(
p_user_id => :P124_USER_ID,
p_user_name => :P124_USER_NAME,
p_first_name => :P124_USER_FIRST_NAME,
p_last_name => :P124_USER_LAST_NAME,
p_email_address => :P124_USER_EMAIL_ID,
p_web_password => 'xxxx',
p_default_schema => l_default_schema);
end;Scott -
How to generate .DTD file from IDOC?
Dear All,
On behalf of my colleague,
How to generate .DTD file from IDOC? I want to generate this file for importing into the WebMethod Tool. Please share relevant content regarding the same.
IDOC name is: BOMMAT01
Let me know if you need any other information.
Regards,
JKHi Jitendra,
When PI receives idoc from ECC it will be in xml format.
Are you telling that you want to convert this xml to .dtd file?
check this for converting xml into .dtd file.
How to convert XML file into DTD or XSD
could you please explain about what you are doing in this requirement?
After importing into WebMethod what is the next action?
do they want to send the file to PI? -
How to generate random numbers from 1 to 5
How to generate random numbers from 1 to 5
-1110340081
Solved!
Go to Solution.(You should not mark a post as solution unless it actually contains a solution to the original problem)
Do you want to share your code? Did you test to make sure that all numbers equally probable?
LabVIEW Champion . Do more with less code and in less time . -
How to generate load commands from cap (ijc)
I don't understand how to generate load command from cap (in my case ijc)-file.
This is the example from GPShell, first command of three:
Command --> 1. 80E80000EFC48203DE01001ADECAFFED01020400011048656C6C6F576F726C64303030305F5002001F001A001F00140031006E00180147004E0036000000F1000A0005003503010004003103000107A0000000620101060210A0000000090003FFFFFFFF8910710002000110A0000000090005FFFFFFFF8913000000030014011048656C6C6F576F726C64303030305F410031060018438003020001070200000041004480020081010108810000070147000A40188C0002188D00058700181100FFAD007B0003037B00039210210303038B0004538901AD00058B0006188B00077A05308F0008181D1E1100FF538C00097A0020
questions:
1. Why the length of each command is equal to EF (239 bytes)? Maybe 239 bytes + Mac len + cla, ins, p1,p2, cmdLen. I mean, will the length always be EF?
2. C48203DE - what is it. In the GP221 i found:
'C4' 1-n Load File Data Block Mandatory. So if it is right, is the 8203DE - Load File Data Block? Because real data from my ijc-file starts after DE - 01001...
3. Is all data from the file used for load? (i notised that the last command does'nt used all the rest bytes)So, I will help myself
CAP is zip, but with other filename extension. Inside there are following files:
Applet.cap
Class.cap
ConstantPool.cap
Debug.cap
Descriptor.cap
Directory.cap
Header.cap
Import.cap
Method.cap
RefLocation.cap
StaticField.cap
Order of reading these files for loading by commands 80E8 the following:
loading Header.cap (51 byte)
loading Directory.cap (36 byte)
loading Import.cap (55 byte)
loading Applet.cap (19 byte)
loading Class.cap (19 byte)
loading Method.cap (6779 byte)
loading StaticField.cap (13 byte)
loading ConstantPool.cap (397 byte)
loading RefLocation.cap (663 byte)
loading Descriptor.cap (1005 byte)
loading Debug.cap (12115 byte)
But ijc the file is not cap (zip) and while I didn't understand how to load ijc -
Generate XML Schema from Oracle Database
Is there a utility that would allow our team to generate XML Schemas directly from existing Oracle databases? Or do you have a suggestion on how to achieve this?
Thank you.Hey, The Schema Processor is available in the Technologies section on this site. Just download it and see the samples. You will get the way for doing it. If you are having problems then just call me.
Bye.
null -
Generate database schema in XML from database structure
hi
I want to generate the entire database schema in XML from database structure. (Same feature is provided by Altova XMLSpy).
It would be great if there was some API that does the process of parsing the database structure and generating the XML automatically. A similiar feature is provided by Apache DdlUtils' API, but a stable version is not yet available...
Please help!
Thanks in advance.Nikhil,
There is a wealth of information available on the Internet regarding the XML capabilities of the Oracle database.
Have you done an Internet search for "SQL XML Oracle"?
Good Luck,
Avi.
Maybe you are looking for
-
I recently had to buy a new laptop as my pc no longer worked. I can't get my iTunes media folder off my old pc so how do I get my library onto my new laptop as I don't want to create a new library and erase everything off my iPhone.
-
Problem with a movie...
Hi, I wasnt sure where to post this so I hope this is okay. I downloaded Sweet Home Alabama(the movie) a couple days ago, and I watched it, and half of the credits are cut off, which aslo means like about half of the picture is cut off. What do I do?
-
Hi I have just bought a MacPro to be used as a server for a small office but want to use an old Apple 17 inch LCD Studio Display with an ADC connector. I was surprised to find that the MacPro only has DVI ports...? Anyway will one of these ADC-DVI co
-
Any Headphones I plug into my Macbook it only Plays sound out of the Left Earphone??
I got New headphones and after about a week i noticed when I plugged it in it only played sound out of the left headphone, i plugged it into my phone and I pod and it Played out of both, then I plugged in different headphones into my Macbook and had
-
Import flv - why the video get repeated on live?
Captivate 5.5 am using import flv option to insert flvs, flv size vary from 11 MB to 20 MB. the delivery method is progressive download. i have uploaded SWF and Flvs on Amazon, slide content is playing well but am facing A/V repeating problem in flvs