View of the existing tables logic model
Hello!I'm new to the Oracle sql developer Data Modeler.
I use Version 2.1.1.64 of the oracle sql developer.
I've created connections to a scheme called "you".
I use this pattern for my development with apex 4 and oracle 10g xe.
For an application, I use this schema tables (I created these table with apex).
Now, I want to display the model logical and physical this tables with oracle sql developer Data Modeler.
I have not found a tutorial how to do this.
And I have no idea how start up!
Can someone help me?
Thank you!
Gerhard
I would recommend oyu get the most recent version. You can import existing templates using older versions of the Data Modeler but I don't know if it's available through SQL Developer in earlier versions.
I don't not know umbutu so help oyu it. For windows, that you just download the file and unzip it. When you start the exe file it will automatically migrate your connections.
Tags: Database
Similar Questions
-
How to create a view in the DB table for some servers
Hello
We need create a country table which will contain data for countries.
I want to create it in such a way that it will be common for all servers - but as a point of view. not the real table, only the data and views do not change.
How can I do?
Thanks in advanceAre you sure you want to say 'tablespace '? A tablespace is a collection of data files. It has nothing to do with the privileges of the object, object namespaces, etc. I'm guessing that you mean that you have two schemas, OBITUARIESCS and ADVERTISEMENTCS. A schema is a collection of objects of database belonged to a particular user. A single table can exist in spaces of multiple tables (assuming it is partitioned). Different schemas can have an infinite number of tables with the same name in the same table. The database schema is the namespace for objects such as tables.
Assuming that you have two schemas in your database, you can create a table of COUNTRIES in the OBITUARIESCS schema. You can then grant SELECT access on the table to another user, ADVERTISEMENTCS, i.e.
GRANT SELECT ON country TO advertisementcs
You can then ask questions (but not change) the COUNTRY code of the property of ADVERTISEMENTCS table
SELECT * FROM advertisementcs.country
If you want to be able to remove the prefix in the schema, you can create a synonym. In the ADVERTISEMENTCS schema
CREATE SYNONYM country FOR advertisementcs.country
and then when the code of the property of ADVERTISEMENTCS wants to query the countries table, it can just
SELECT * FROM country
Justin
-
Create procedure upsert (name of the existing table, incoming table name)
Is it possible to create a procedure that makes a merge (upsert) with only two parameters:
- Existing Table name - name of table that will have data merged into it.
- Incoming Table name - name of the table that has developed data day/news.
The method would be:
- Use primary keys on the "existing" table as the condition links
- Fact and update if exists and insert new
- no record
- no clues
- no removal clause
Oracle 11g
MERGE < tip > < table_name >
USING < table_view_or_query >
(< CONDITION >)
WHEN MATCHED THEN < update_clause >
DELETE < where_clause >
WHEN NOT MATCHED THEN < insert_clause >
[ERRORLOG < log_errors_clause > < reject limit < integer | unlimited >];
< table_name > - from input parameter
< table_view_or_query > -socket input parameter
< condition > - primary key links (how search a single/multiple primary keys and return the list?)
< update_clause > - update all columns (other than KP, how to get and use a dynamic list of columns)
< where_clause > - not used
< insert_clause > - insert new records for all columns (including the PK (s))
declare
p_source varchar2 (30): = "EMP_X";
p_target varchar2 (30): = "EMP_Y";
query varchar2 (32000);
function get_cols (p_table in varchar2) return varchar2 is
VARCHAR2 (32000) retval;
Start
Select the Group (order of column_id) listagg (column_name, ',')
in retval
of user_tab_cols
where table_name = p_table
Table_name group;
Return retval;
end;
function get_keys (p_table in varchar2) return varchar2 is
VARCHAR2 (4000) retval;
Start
Select listagg (cc.column_name, ',') in the Group (order by cc.position)
in retval
from user_constraints c,.
user_cons_columns cc
where cc.table_name = p_table
and c.constraint_type = 'P '.
and cc.table_name = c.table_name
and cc.constraint_name = c.constraint_name
C.table_name group;
Return retval;
end;
function merge (p_merge1 varchar2, p_merge2 varchar2, p_link varchar2) return varchar2 is
Merge1 varchar2 (32000): = p_merge1 | «, » ;
merge2 varchar2 (32000): = p_merge2 | «, » ;
VARCHAR2 (32000) retval;
Start
then merge1 is not null
loop
retval: = retval | » t.'|| substr (Merge1, 1, InStr (Merge1, ',') - 1) |'s =.' | substr (merge2, 1, InStr (merge2, ',') - 1);
Merge1: = substr (merge1, instr(merge1,',') + 1);
merge2: = substr (merge2, instr (merge2, ',') + 1);
If merge1 is not null then
retval: = retval | p_link;
end if;
end loop;
Return retval;
end;
Chopper (p_cols p_keys varchar2, varchar2) return varchar2 is
passes varchar2 (32000): = ', '. p_cols | «, » ;
keys varchar2 (32000): = ', '. p_keys | «, » ;
VARCHAR2 (32000) retval;
Start
While the keys! = «, »
loop
If instr (passes, substr (keys, 1, instr(keys,',',1,2))) = 1 then
cols: = substr (collars, instr(cols,',',1,2));
on the other
cols: = substr (passes, 1, instr (passes, substr (keys, 1, instr(keys,',',1,2))) | substr (collars, InStr (collars, ',', InStr (passes, substr (Keys, 1, InStr(Keys,',',1,2))), 2) + 1);)
end if;
keys: = substr (keys, instr(keys,',',1,2));
end loop;
return trim (both ',' collar);
end;
Start
query: = 'merge'. p_target |' t ' |' using (select ' | get_cols (p_source): ' from ' | p_source |') s '.
' on ('|) Merger (get_keys (p_target), get_keys (p_source), 'and') |') ' ||
"When matched then update set ' | '. Merger (Chopper (get_cols (p_target), get_keys (p_target)), Chopper (get_cols (p_source), get_keys (p_source)), ',').
«When not matched then insert ('|)» get_cols (p_target) |') values (s.'|) Replace (get_cols (p_source),', ', ', s') |') ';
dbms_output.put_line (Query);
end;
Fusion in EMP_Y t using (select EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO EMP_X) s on (t.EMPNO = s.EMPNO and t.ENAME = s.ENAME) when matched then update set t.JOB = s.JOB, t.MGR = s.MGR, t.HIREDATE = s.HIREDATE, t.SAL = s.SAL, t.COMM = s.COMM, t.DEPTNO = s.DEPTNO when not matched then insert (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO) values (s.EMPNO, s.ENAME, s.JOB, s.MGR, s.HIREDATE, s.SAL, s.COMM, s.DEPTNO)
Concerning
Etbin
-
Adding column not null in the existing table.
How to add a column not null in the existing table?
explain.
Thank youcreate table abc_ex(a number); alter table abc_ex add(b number not null); desc abc_ex
If for use then change to ALTER column extising
Published by: nkvkashyap on May 27, 2013 21:49
-
referential integrity with a view to the parent table
Is it possible to create a foreign key that uses a view as the parent table?
CREATE TABLE one
+ (id NUMBER CONSTRAINT a_pk PRIMARY KEY, +)
name VARCHAR2 (32));
CREATE TABLE b
+ (name of the b_pk VARCHAR2 (32) CONSTRAINT PRIMARY KEY, +)
address VARCHAR2 (32));
CREATE VIEW b_view AS SELECT * FROM b;
ALTER VIEW b_view ADD CONSTRAINT b_view_pk PRIMARY KEY (name) DISABLE NOVALIDATE;
ALTER TABLE an ADD CONSTRAINT a_fk
B_view (name) REFERENCES of FOREIGN KEY (name);
"After issuing the last alter statement I get the error: ' ORA-02270: no unique or primary key corresponding to this list of columns.
If I use just the table b of referential integrity, everything works. Is this just a limitation of the use of the view with a PK defined as disable novalidate? Is there a workaround to use the view?
Thank you
mcslainAFAIK, you can create constraints on views, purely for the sake of documentation.
Sense: these constraints are never implemented, they must be defined using the NOVALIDATE keywords to DISABLE.And since these constraints, say the b_view_pk in your case, are DISABLED/NOVALIDATE, you cannot have a foreign key (ENABLED), which points to them.
Pouvez have you a foreign key pointing at them is DISABLED/NOVALIDATE too, however.
But I bet it's not what you want. -
Add the constraint not NULL in the existing table that has null values
Hello
I want to add a constraint not null to and an existing table, but the table already contains values null in this column.
EMP
Emp_id name
1 axada
2
3 sdkdd
Here is already the data IE 2 empid is Null as name. I must add a fool of constraint not null which new values will not be null, but I don't want to change the data of exisitng alreadt which is null.
Hello
"The opposite": NOVALIDATE does not validate the data that is ALREADY in the table, but do not allow the insertion of a NULL value.
Have you tried my sample code?
CREATE TABLE MaTable (x NUMBER PRIMARY KEY, y NUMBER);
INSERT INTO myTable VALUES (1, 123);
INSERT INTO myTable VALUES ( 2, NULL );
INSERT INTO myTable VALUES (3, 456);
ALTER TABLE mytable MODIFY (y NOT NULL NOVALIDATE );
INSERT INTO myTable VALUES (4, 678);
INSERT INTO myTable VALUES ( 5, NULL );
SELECT * FROM MyTable;
'2' line was inserted with null before the creation of the NOT NULL constraint, this line remains "as what" at the end of the trial.
'5' line trying to insert a NULL value after creating the NOT NULL constraint, which is denied.
Best regards
Bruno.
-
Compress all the existing table ain dat
Hello
We use oracle 11.2.0.3 and wish to evaluate the performance of compression in terms of reduction of time takes to reports aganis the tables run.
Had a quick serach and can see alter table compress but speaks only of data inserted/updated updated after the operationexecute of compress is compressed.
Do not want to have to create a separate, compressed table and replace other table with that.
Is it possible to compress all the existing dat aof existing table?
Also could what kind of performance gain magntitudes we expect performance report using the compression compared to identical but uncompressed tabel?
Also it is a data warehouse and the large fact table already has the default compressed index bitmpa.
Tlamking on the compression of the table here.
Thank you
Published by: user5716448 on March 5, 2013 05:57Depending on your hardware, you can use alter table move and change the index on a table of size fairly decent rebuild in less than 10 minutes, but if you really make the look works online in the dbms_redefinition package. See the manual of the PL/SQL Package and Types, then look at the note support for Oracle at the following address:
Master note: an overview of redefining online tables (DBMS_REDEFINITION) [ID 1357825.1]
HTH - Mark D Powell.
-
How to stop refreshing materialized views if the source table is null
any ideas?Probably not what you were hoping for, but here's a few ideas.
Your account shows - 113 (85 pending)
1. How about helping to keep the forum clean by examining your 85 not resolved previous issues and give credit relatively USEFUL or RESPONDED to those who helped you in the past.2. read the FAQ at the top right of the page and view information about your system and your software so that we know what you're working with.
3 ask your question in the body of the thread. Don't tell "of ideas.
What is your question? Is this an academic question or you have a real problem that needs to be addressed?
If you have a problem producing the DDL for the materialized view, and information about the type of discount that has been set up for this. Is there a newspaper view materialized on the underlying tables?
The simple answer to your quest is to use UPDATE them on REQUEST and check the base tables before making a manual
a: the best answer depends on what version of Oracle you are using and what is your actual configuration. Are your
MVs in REFRESH GROUPS? Who can make a difference in the response.How can anyone help with this issue if you do not provide the information needed (FAQ)? Why is - someone MUST help if you show you don't appreciate help in marking questions to which answered once you have helped.
-
Adding data to the existing Table
Hello..
IAM, try to import the oracle dump file. but the tables in dump files already exist in my database. How can I add data to existing tables... pls suggest me.
Thank you.You don't say what you use the tool...
If you use the traditional import utility (imp) then you can tell him to ignore the fact that there is already a table: IGNORE = Y.
And I can't import datapump has similar features.
-
Create table replaces the existing table in mssql
In a program that allows us to update our sites, we use the function 'create an array' of MS SQL to create missing tables in databases.
Thousands of time we used it, if a table already exists with the same name of the table in the create table MS SQL survey command an error.
In fact, MS SQL documentation indicates that only if you include the optional 'replace' command, will be a replaced existing table.
But today, we used this program on a new host, that we are trying, and the create table command actually did replace an existing table with a new table, delete all the records from the old table.
I'm trying to understand what this would allow the settings at the server level.
This is the code we use:
< CFQUERY NAME = "recipe" DATASOURCE = "recipe" dbtype = "ODBC" username = "" #ruser # "password =" #rPASS #">"
Create table recipecats)
RecipecatID int IDENTITY(1, 1) NOT NULL PRIMARY KEY,
recipecatdescription NVARCHAR (50) NULL)
< / cfquery >Are you sure that this is not just to create another table with the same name, but one
different owner?I saw the strangeness (it's probably just weird for me because I am ignorant)
of what is happening), I can READ a table owned by another user without
calling the name of the table with its owner, and when I go to CREATE a table
of the same name, it is actually created as my current user and subsequently when
you ask the name of the full table, I get the results of one, is not new
the former. If I'm right in the name of the table, I can ask both/either. Kind
way similar CF hunting around different scopes when you aren't eligible one
reference to a variable.Also, your code should probably be testing to see if the table exists
before you try to create it anyway. "Just try and catch.
"If it errors" is not considered as 'test' if there is--
Adam -
Report Generation Toolkit - keep the existing table
Previously, I used the TXT (CSV) files to store test data. Some tests to run for 1000 hours and collect anywhere from a few lines of thousands of data from more than 100,000 rows of data. Using this approach, I have to write macros VBA to parse and format of these data, which are very time-consuming. I'm looking to try to use the LabVIEW Toolkit for generation report (GTA) to write directly in an Excel spreadsheet and do some steps on the fly as the VBA macro, to help reduce the processing time and manual work on the analysis of the data.
However, my concern is that sometimes one must quit school essay through a long trial and then continue and add data to the existing data. I don't see how using the GTA. I guess you would have to locate the latest data from the spreadsheet... using a TXT file, LabVIEW is done automatically. In Excel, I use VBA code like this:
RowMax is SheetRD.Cells ("A", SheetRD.Rows.Count). End (xlUp) .row
The GTA has features like that, or I'll have to call a macro and then work with the returned value of RowMax?
You can use Excel get last Row.vi of the specific generation of report-> Excel-> General Excel palette. Add 1 to get the line empty next.
Ben64
-
ORA-08103 export newspaper despite the existing table
Hi all
my database is on oracle 11G.
I ran a backup of my database of production export and I met the following exception error in my log:
. . export of table TABLE_NAME_1234
EXP-00056: ORACLE error 8103
ORA-08103: object no longer exists
I logged in my database to see that this table, TABLE_NAME_1234 exists.
the error indicates that the object no longer exists...
What could be the reason?
Thank you
KKMay be at the start of the export of the table, the table has been truncated by some other session in the database.
Can you try to resume the export and return.
AnandPublished by: Anand... on October 12, 2010 11:52
-
However, as it's an exdisplay I don't have books or CDs and do not have a backup disk. How can I fix my blue screen? When I can not open in Safe Mode, I clearly need a VISTA installation disc but how can I get on these without having to buy AGAIN
Hello tamster2708,
Whatever your machine a display model of the manufacturer "must" give you an option to restore your PC to factory conditions. This is done in two ways. (1) a Windows DVD is provided. (2) the operating system is on a hidden partition on the hard drive of the system. Chances are yours is this one.
As you have no literature tell you what keys press when to start your machine which will allow you to access the recovery partition, I suggest you to contact the store you purchased your machine from and to ask their technical support how are you suppose to go on the restoration of your machine to factory conditions.
You might alos visit PC manufacturers Web site and look to the top of the brand and the model of your machine, just in case they have a downloadable guide. If you can download a user guide, browse and search for "restoring your PC back to factory conditions" this will then tell you how to restore program.
If your machine is not a copy of the operating system on a hidden partition then ask the shop how you are going to get an OS DVD, ensuring that you point out that 'they' should have provided a way for you to restore your system should any problems arise.
This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.
John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com
-
list by commas must be build as a table using the existing table column
Hi all
I have table with a comma separate value, column container
Select 1 emp_id, edu 'BSc, MCA' double
Union of all the
Select 2 Emp_id, 'b.SC., MBA' double
Union all
Select 3 Emp_id, 'Bsc, MEd' of the double
and I need to replace as follows
Emp_id edu
1 BSc
1 MCA
2 BSc
2 MBA
3 Bsc
3 MEd
How to achieve...
Iqbal
Notes on the Oracle: split delimited by a comma the way of RegExp string, second part
-
Creating a filter for the existing table
Hello
I have a table and initially I didn't intend to use the filter on the table... but due to needs sudden I have to add the filter to the table and I can not afford to recreate the table.
My version of jdev is 11.1.1.6
Thank you
TarunHello
Add the property
-filterModel
-sortProperty
-filterable = trueconcerning
Peter
Maybe you are looking for
-
transfer of downloads on iMac on external hard drive
How can I transfer music from my iMac to a portable external hard drive
-
Hello I'm trying to generate a report using a template. In my model, I use cross references to refer to a bookmark. For example, in the first page, I created a bookmark for my name, and in the header, I've created a reference refer to my name. The pr
-
Computer will have 2 years in April. Had no problems until last week when it crashed. Could not get going by the restoration of the State of origin. Now runs very slowly and has very high CPU usage. Internet often stops. Fan runs all the time,
-
Hello I have a new 8GB fuse and a lot of my collection of music taken from the Ogg format. These are read without any problem in programs like Foobar and players (iAudio and iRiver).So, I am very surprised that they do not play on my rocket. Maybe so
-
Ladies and gentlemen, could you be so kind and help me? I have this "simple" script To display all extensions on internal disks, but it does not work. It seems that %Disk%:\ or % disc position must be constant, not variable pitch. Or something else i