How to invoke Reverse Engineer database objects utility
Hi,
I am using oracle designer 6.0 with patch 7 and oracle 8.1.7
can you please guide me how to get the database object ( like table defition ) into the orale designer application.
Regards,
Gouri
Gouri,
In the Design Editor, select the
'Generate' -> 'Capture Design of' -> 'Server Model...'
menu item.
- Suresh
Similar Messages
-
How to delete/mark obsolete database objects from ODI model?
Hi,
ODI never deletes objects while reverse engineering.
So is it way to automate deletion or marking obsolete database objects (dropped or renamed fields, constraints) from an ODI model?
Does someone use ODI Java API (http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e17060/overview-tree.html) or direct updating SNP_% repository tables to do it?I can help you with marking obsolete database objects.
In the model, there is an option "Display the metadata changes in the Model Tree". Check this.
This will show you what has changed or is obsolete. -
How to import Oracle 8i database objects into an Oracle 10g database ?
Hi all,
We plan to use Oracle 10g , but untill now we use Oracle 8i 8.1.7.4.1 .
I want to know how to import all of our Oracle 8i objects stuff to the new Oracle 10g database ; and should I create tablespaces or can I import simply the Oracle 8i tablespaces.
Thank you very much indeedIf you use 1 database schema for your application , export the schema only
for example
export NLS_LANG env before
export hr/hr file=hr.dmp log=hr.dmp
On 10g
======
create the user,tablespaces etc
import the user
run the utlrp.sql
you are ready
export NLS_LANG env before
import system/password file=hr.dmp log=hr.dmp fromuser=hr touser=hr -
How to map XML to database object ?
Hello,
We are trying to convert XML file into XMLType object and then to our custom object type using registered XSD definition. So we doing this : clob with xml -> XMLObject -> our MMS_T object.
The problem we experienced with transfering values of "type" and "status" attributes to object values MMS_T.TYPE and MMS_T.STATUS. Note that types MMS_T and ERROR_T are automatically created during schema
(XSD) registration. See and try Listing 1.
The second Listing contains anonymous pl/sql block with our testcase, please run it after registering schema. The output You will get should look like this one :
Schema based
Well-formed
<?xml version="1.0" encoding="UTF-8"?>
<mms-provisioning xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xdb="http://xmlns.oracle.com/xdb" type="subscription"
status="error">
<error code="1">Some error</error>
<serviceID>iDnes</ser
Type:,Status:,Error:1-Some error,ServiceID:iDnes,Method:SMS,MSISDN:+420602609903
The problem is visible on the last line, where "Type" and "Status" object attributes should have its values that should come from XML, but they haven't. Where we were wrong ?
Please help,
Thanks & Regards,
Radim.
Note
====
When we are trying to do xml.schemaValidate() in our example, it raises folowong errors :
ORA-31154: invalid XML document
ORA-19202: Error occurred in XML processing
LSX-00310: local element or attribute should be namespace qualified
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at line 27
Listing 1
=========
declare
xsd clob:=
'<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified"
attributeFormDefault="unqualified"
xdb:mapStringToNCHAR="false"
xdb:mapUnboundedStringToLob="false"
xdb:storeVarrayAsTable="false"
>
<xs:element name="mms-provisioning" xdb:SQLType="MMS_T">
<xs:complexType>
<xs:sequence>
<xs:element name="error" minOccurs="0" xdb:SQLName="ERROR" xdb:SQLType="ERROR_T">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="code" type="xs:decimal" use="required" xdb:SQLName="CODE" xdb:SQLType="NUMBER"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="serviceID" type="xs:string" xdb:SQLName="SERVICEID" xdb:SQLType="VARCHAR2"/>
<xs:element name="method" type="xs:string" xdb:SQLName="METHOD" xdb:SQLType="VARCHAR2"/>
<xs:element name="msisdn" type="xs:string" xdb:SQLName="MSISDN" xdb:SQLType="VARCHAR2"/>
</xs:sequence>
<xs:attribute name="type" type="type_t" use="required" xdb:SQLName="TYP" xdb:SQLType="VARCHAR2"/>
<xs:attribute name="status" type="status_t" use="required" xdb:SQLName="STATUS" xdb:SQLType="VARCHAR2"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="status_t">
<xs:restriction base="xs:string">
<xs:maxLength value="30"/>
<xs:enumeration value="new"/>
<xs:enumeration value="pending"/>
<xs:enumeration value="subscribed"/>
<xs:enumeration value="error"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="type_t">
<xs:restriction base="xs:string">
<xs:maxLength value="30"/>
<xs:enumeration value="subscription"/>
<xs:enumeration value="unsubscription"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>';
begin
dbms_XMLSchema.RegisterSchema (
SchemaURL => 'http://www.eurotel.cz/xsd/mms-provisioning.xsd', SchemaDoc => xsd
end;
Listing 2
=========
declare
o mms_t;
doc clob :=
'<?xml version="1.0" encoding="UTF-8"?>
<mms-provisioning type="subscription" status="error">
<error code="1">Some error</error>
<serviceID>iDnes</serviceID>
<method>SMS</method>
<msisdn>+420602608696</msisdn>
</mms-provisioning>';
xml XMLType;
begin
xml := XMLType.createXML(XMLData => doc,schema => 'http://www.eurotel.cz/xsd/mms-provisioning.xsd'); --
if xml.isSchemaBased() = 1 then
dbms_output.put_line('Schema based');
else
dbms_output.put_line('Non-Schema based');
end if;
if xml.isFragment() = 1 then
dbms_output.put_line('Fragment');
else
dbms_output.put_line('Well-formed');
end if;
--Crashes with errors
--xml.schemaValidate();
dbms_output.put_line(substr(xml.getstringval(),1,255));
xml.toObject(o,schema => 'http://www.eurotel.cz/xsd/mms-provisioning.xsd', element => 'mms-provisioning');
dbms_output.put_line(
'Type:'||o.typ||
',Status:'||o.status||
',Error:'||o.error.code||'-'||o.error.sys_xdbbody$||
',ServiceID:'||o.serviceid||
',Method:'||o.method||
',MSISDN:'||o.msisdn);
end;
/thanks for the reply
my source XML response will be looking something like this (it will be reponsed in a long string):
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<SOAP-ENV:Header>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<status>
<retCode>00</retCode>
<retCodeDesc>OK</retCodeDesc>
<rRobjectId>09002347802d2981</rRobjectId>
<rFileSize>7</rFileSize>
<rTotalPages>1</rTotalPages>
</status>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
my RFC is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:sap-com:document:sap:rfc:functions" targetNamespace="urn:sap-com:document:sap:rfc:functions">
<xsd:element name="ZRFC_SET_DOCUMENT.Response">
<xsd:complexType>
<xsd:all>
<xsd:element name="RETCODE" type="xsd:string" minOccurs="0" />
<xsd:element name="RETCODEDESC" type="xsd:string" minOccurs="0" />
<xsd:element name="RFILESIZE" type="xsd:string" minOccurs="0" />
<xsd:element name="RROJECTID" type="xsd:string" minOccurs="0" />
<xsd:element name="RTOTALPAGES" type="xsd:string" minOccurs="0" />
</xsd:all>
</xsd:complexType>
</xsd:element>
</xsd:schema> -
How to create a new database object?
i login at sys or system, then enter below:
create database project;
the error is < privileges deny >
what is going wrong???
nullKelvin (guest) wrote:
: i login at sys or system, then enter below:
: create database project;
: the error is < privileges deny >
: what is going wrong???
The full format of the command is
create database project
controlfile reuse
datfile '?/oradata/system.dbf' size 250M reuse
autoextend on next 100M maxsize 550M
logfile '?/oradata/redo1.rdo' size 30M reuse,
'?/oradata/redo2.rdo' size 30M reuse
maxdatafiles 256;
To execute this command do this:
sqlplus /nolog <<EOF
connect internal
startup force nomount
create database project
controlfile reuse
datafile '?/oradata/system.dbf' size 250M reuse
autoextend on next 100M maxsize 550M
logfile '?/oradata/redo1.rdo' size 30M reuse,
'?/oradata/redo2.rdo' size 30M reuse
maxdatafiles 256;
alter tablespace system minimum extent 64k;
create rollback segment rb_t;
alter rollback segment rb_t online;
@?/rdbms/admin/catalog
@?/rdbms/admin/catproc
EOF
and your project database will be created.
null -
How can I open a database object for view or edit using a command in Oracle SQL Deveveloper?
I find browsing or search for object in a large database to be slow and too cumbersome.Shift-F4 (pop-up descrribe) on a table name in the worksheet will let you view table details, but there is no quick edit.
You can use filters on the object browser to reduce the number of visible objects. -
Delete Database Object or database diagram
Hello.
how could I delete a database object? I tried using right click but dont know how to delete the database object. The same problem is qhen I try to delete a database diagram, please could you help me?
Thanks a lot!Emilio,
If you are talking about Offline Database Objects and want to completely remove them, you can select the appropriate node in the Navigator and then do 'File | Erase from Disk', the same is true for the Database Diagram. If you want to remove a Database Object from the Diagram, then you can invoke the context menu and again choose 'Erase from Disk' to fully erase the object, or you can choose 'Delete' to just remove the object from the Diagram bur remains in the Navigator.
Hope that helps,
Lisa Sherriff
JDev QA -
I was trying to reverse engineer database information into a data model diagram in visio 2000.
I received the following error :
Encountered a fatal error during reverse engineer of information from database
My Database version is
Oracle9i Enterprise Edition 9.2.0.5.0 64bit
Is it true that Visio does not support Oracle 9i (as I was told) ? If so, is there any freeware on internet where I can do the same (reverse engineer)
ThanksYou can use most any ERD product to reverse engineer an existing system: oracle designer, ERWin ,ER/Studio, etc....
But it is likely to be a very manual process.
If the application does not make use of database defined FK, UK, and PK then you will likely be forced into reading source and/or running traces on application processes to follow the DML.
HTH -- Mark D Powell -- -
Populate and see database objects in portal
We have 2 servers.
- A database server1
- Application server2.
we've installed 10G and import all data (from 8.7.1) in our database server1.
We've installed the mandatory Infrastructure database and application server 10G in our application server2.
Now we need to use Portal.
How to populate and see database objects which are in database server1 using Oracle Portal in the application server2.
Thanks
Rgds
LausanneWe have 2 servers.
- A database server1
- Application server2.
we've installed 10G and import all data (from 8.7.1) in our database server1.
We've installed the mandatory Infrastructure database and application server 10G in our application server2.
Now we need to use Portal.
How to populate and see database objects which are in database server1 using Oracle Portal in the application server2.
Thanks
Rgds
Lausanne -
How can we create an entity object using multiple tables?
Hi All,
I'm a newbie to OAF.
I'm trying to create a simple page using OAF.
While creating Entity object, there is an option to add the database objects from which we can create our Entity Object.
There we can enter only one database object.
If suppose I need to create a Entity object by using mutiple data base objects, how can I add other database objects?
Is there any option for multiple selection of database objects there?
Thanks in AdvanceUser,
a). You should use the [url http://forums.oracle.com/forums/forum.jspa?forumID=210]OA Framework Forum for this question.
b). Entity objects always correspond to a single table. I think you want to create a View object instead.
c). Really, you want to be using the OA Framework forum.
John -
Reverse Engineer / Import Selected Objects
Hello All,
I am new to ODI tool and trying to understand, how to reverse engineer / import selected objects? I am unable to do this.
For instance, I have 10 tables in database, I want to import/reverse engineer 3 of them, how do I this in one go? I am able to do this, one by one.
Your Help is appreciated.
Thanks,
Andy.Hi
Create a model.--> click on selective reverse engineering---> check New Datastore and object to reverse engineer. then you can select 3 tables out of 10 tables.
what do you mean by import here ?
Are you trying to import 3 tables from ODI ?
Thanks -
Designer 9i reverse engineer my database
I have Designer 9i with repository on Oracle 9i server.
I would like to reverse engineer my database from Oracle 8.17 server on a different computer - connection.
How do I do that? Beging from scratch, what do I need, do I need to create new Application system? I probably would need one... Can I connect this specific applicatino system to a specific database?
How to get the tables (and other objects)?
What tool do I use? Database design transformer says - I don't have any entities in a.s.
Entity relationship diagramer - that would be for designing probably, not for reverse engineering.
Please help
ThanksRok
You can do everything you have asked.
The best way is to do the following:
- Create an application system and name it appropriately.
- Use the Design Editor tool
- On the menu there is a option to "Design Capture" (this is reverse engineering).The menu path is Generate/Capture Design of/Server Model
- This will ask you to enter the connect string for the db you want to capture
- Then you will be presented with the objects in that db and you can choose which ones you want to capture
The rest is simple from there.
To help you I would suggest you go to the URL http://otn.oracle.com/products/designer/demos.htm on this site and at the bottom of the
page is a demo section on Server Design and Generation. Take a look at the one titled: Capturing Database Designs in the Design Editor
This will demo the step above. The other demos may also be useful as you want to change the data model or generate new schemas
Regards
Mark -
Modeling database have reverse engineer functionality ?
whether can use Jdeveloer10g Modeling database functionality to reverse the online table schema from Oracle database ?
Hi,
Yes there are two methods of reverse engineering tables.
The first is with your project selected in the Navigator go to File | New, go to the following node by expanding the tree in the New Gallery dialog 'Database Tier -> Offline Database Objects'. Now select the 'Offline Database Objects Imported from Database' and press OK, this will now invoke a wizard which will take you through the rest of the steps to import the tables.
The second method is create a connection in JDeveloper to your schema, with your project selected in the Navigator go to File | New, go to the following node by expanding the tree in the New Gallery dialog 'Database Tier -> Offline Database Objects'. Now select 'Database Diagram'. Enter a name for the diagram and press OK. A new blank diagram will now be created. You can now expand your schema in the Connections Navigator and multi-select the tables you want to reverse engineer, you can then just drag and drop these from the Navigator onto the diagram.
Thanks,
Lisa Sherriff
JDeveloper QA -
How to create Entity object for Non Database Object.
Friends,
I have a requirement something like, I will be getting some huge amount of data from external system via CORBA, I have to display the data in jsff page in <af:table>. My requirement is If User updates any of the row I need to identify what are all the rows user updated and Need to invoke again a CORBA call for only UPDATED Rows.
Basically here, I am not dealing anything with the Database, I assume using Entity we can find out a status of the row whether the row is updated/deleted/created .
How can I create an Entity object in this case.
Any help will be highly appreciated !!!
ThanksThe basics steps are described here http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcadveo.htm#sm0328
and here http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcadvvo.htm#sm0341
You need to change the underlying data source from pl/sql to meet your requirements (CORBA).
Timo -
SRDemo tutorial- Reverse engineer TopLink Java Objects from existing DB tab
Hi,
In the tutorial, what does reverse engineer objects from existing tables means?
Thanks!It means that JDeveloper will create Java classes that interact with the database, based on existing tables in the database.
Maybe you are looking for
-
Questions on upgradeing my ibook further
Hi Kanari here! I'm close to geting a job and once I do I was hoping to get a 128 or 512 mb ram stick from welovemacs.com. once that's done i was going to find a cd of panther either on craigslist or on ebay. I've already updated my os to 9.2.2 and t
-
Using java on windows vista 64 bit
Hi, I am using a program for the univercity which use java, and it work fime on 32 bit operation systems such as ubuntu linux and XP/vista... but when I try to run it on the vista 64 bit on my AMD Athlon 64 bit I get the msg: Exception in thread "mai
-
SAP CRM 7.0 WebUI: change history is not working
Hi specialists Our change history is working - but only in SAPGUI. I found no way to activate / customize it for the WebUI. The corresponding Assignment Block is simply blank. On the other hand - in the SAPGUI its working like it is mentioned to do.
-
Photoshop CS6 continually crashes on save
I know I'm not the only one with this issue. I got rid of my most recent preferneces already and uninstalled my last extension but still am crashing on almost every save! Can anybody see the issue? Thanks much. Here is the log: Process: Adobe Pho
-
Hi... 1. In Partial CENVAT credit scenario we require to create the seperate TAXCODE which splits the excise entry and adds the remaining value in Material Price. Can you suggest the customization settings for that..? 2. Taxcodes are mainly used in T