DDL and Apostrophe
If it should not be possible to use the apostrophe everywhere in a ddl statement?
Using SQL Developer 2.1.1.64 and Ora 11 g:
Create Table t (Id Number (10,0));
Insert Into t (Id) VALUES (1);
Insert Into t (Id) VALUES (2);
Create view v_t as select Id as 'bingo' of t;
This sql works amazingly (returns 2 Records):
Select 'bingo' in v_t;
But this isn't, although in my view, that should be:
Select the bingo in v_t;
It returns an error (partly in German)
ORA-00904: "BINGO": ungultiger Bezeichner
00904, 00000 - '% s: invalid identifier '.
Where I'm wrong?
Thanks help OPS!
If you create a case-sensitive object name you should always refer to it in a case-sensitive way. In other words, with the quotes.
Tags: Database
Similar Questions
-
My keys to mark and apostrophe of the speech became unknown symbols, how to change them back?
Hello
What happens when you press these keys?
I suggest you to change the United States keyboard layout and check if this solves the problem.
Refer to this article for help:
http://support.Microsoft.com/kb/306560 -
GoldenGate DDL and sequences of support privileges
Hi, I would like to know if there is a set of minimum privileges necessary for the use of the GoldenGate DDL and sequences support the feature.
On the installation guide for GoldenGate, they give the role dba.
But it's a role with many privileges, I need help to find out what privileges are that this user really requieres.
Thank you.Hello
Grant below privs,
CREATE SESSION, ALTER SESSION, RESOURCE, CONNECT, SELECT ANY DICTIONARY, FLASHBACK ANY TABLE, SELECT ANY TABLE
DML
INSERT, UPDATE, DELETE ON
DDL
CREATE TABLE, ALTER TABLE, DROP TABLE, TRUNCATE TABLE, ALTER TRIGGER, CHANGE the CONSTRAINTS... you must grant privileges to issue DDL operations for
target tables, such as create, alter, drop, truncate, renaming... etc... What are the operations DDL that you want to replicate the same operating privileges must be granted.Grant EXECUTE on DBMS_FLASHBACK, running also on utl_file
For the sequence DDL replication, you must run the script sequence.sql on both the database and grant the privileges below
Source:
EXECUTE on updateSequence
On the target
EXECUTE on replicateSequence
Don't forget to run the sequence of Flush GGSCI command after starting the process.
I hope this will help you.
-
any questions if write us commands DML, DDL, and TCL stored functions.
Hello
Is there any problem if write us DML, DDL, and TCL commands in function stored with the help of the AUTONOMOUS_TRANSACTION PRAGMA.Hello
Yes of course. With DML statements inside the function by using the AUTONOMOUS_TRANSACTION PRAGMA is not very
recommended. It is recommended to use an AUTONOMOUS TRANSACTION for the purpose of logging error only, and
When used in a disorganized manner, it may lead to locks and we will have a problem when you look at the
Trace files.Thank you
Shankar -
The APEX export demand, DDL and data
Hello
How to export an application complete (demand, the ddl and data)? I know how to export the application but don't know about the data in the tables.
Thank youFollwing method 2-
IN SQL Developer... Click on basic tools of data export and follow the screen instructions on... I use this method to export the object and data.
Kind regards
Shijesh -
The track DDL and DML operations happening in the Backend in files...
Hi I have a requirement to track the transaction DDL and DML that passes in the Backend, once the user inserts or updates any Table.How to implement the same anyone can proviode code for the same thing.
Ex: I have several tables in my database if a user triggers the DDL or DML, it should be entered into the log file under
Name of the Table Operation Timestamp
X YYYY-MM-DD Insert HH24:MM:SS
Update Y DD-MM-YYYY HH24:MM:SS
Z remove HH24:MM:SS DD-MM-YYYY
L choose HH24:MM:SS DD-MM-YYYYSelect sql_fulltext, sql_id, module, parsing_schema_name, parsing_user_id, first_load_time, loads, users_executing, rows_processed
v $ sqlarea
where parsing_schema_name = to_char(first_load_time,'dd/mm/yyyy') like ' % 08/11/2007 ' and 'GLENN '-'.
first_load_time desc order;Concerning
Asif Kabir -
Remove the automatic sequence and trigger the DDL for surrogate keys?
Is there a way to remove the shutter and the sequence of creation for surrogate keys when export file DDL?
I know that most of the time the auto sequence and trigger creation is welcome and very convenient.
However I'm migrating from an old model of Designer and here only the necessary sequences are created.
They have a different name and logical trigger is personalized (and generated outside of the Designer).
There is a lot of code package accordingly. So, I prefer to create and use different sequences.
Is there a way to do this? Tips are welcome. Create
Hello
you change preferences - "Data Modeler > model > physics > Oracle"-set "Default auto-increment DDL" and "Identity default DDL" voices against ZERO and generate the DDL for Oracle12c
Philippe
-
Generate the DDL - change is a new column and I want to generate an alter table.
All, morning
I searched and searched all over the Data Modeler and I can't find this option... but I found it easily in the designer.
I hope you can help me.
V3.0.0.665 SQL Developer Data Modeler.
I added a new column to a table, and when I generate the DDL I wish it were an alter table add column rather than a table to create.
This feature is in the designer, so I think it would be in the Data Modeler.
Just in case my description isn't clear, here are the high level steps, then it is clear.
1 create logic model
2. create the relational logic.
3. create the physical relationship.
4 generate the DDL and run in the database. At this point, I'm going to production with my system, and all right.
5. at this point, we have an enhancement request. For the model, it will be a new column in a table.
6. update of the logic model.
7. relational update logic
8 physical update of relational
9 generate the DDL. Here, I would have generate it know that it needs to generate an alter table add column and does not create the table.
This is something I do a lot as all my models are in production. I can't find how to do this step to get data Modeler to generate the altar.
Designer done exceptionally well.
Quite often, it is more than a single column. Changes can be many and made over time and at the time of generating the DDL you remember not every single amendment. To have the tool discover these changes for you and generate the appropriate DDL is a feature that I consider as very high.
I hope that is clear and you can help me.
See you soon
Chris...Hi Chris,
you need to compare your model on database - database relational model even import and use the option 'swap target' - in this case 'expressions of alter' against the database will be generated.
You can watch demonstrations here http://www.oracle.com/technetwork/developer-tools/datamodeler/demonstrations-224554.html
It would probably be more useful http://download.oracle.com/otn_hosted_doc/sqldev/importddl/importddl.html
Sooner or later your changes will require the table to be recreated, and you will need to backup your data - you can consider using the 'Advanced DDL' option - script is generated that will land your table content (including LOBs) to the system of files accessible from the database and restore after changes. Well not try directly on the production system :).Philippe
-
How can I use EXISTS and no SEPARATE in this query? DDL/DML (attached)
Example queries SQL start - from the beginner to the professional by Clare Churcher(sorry about the long example script)
I have 3 tables: Member, entry, tournament (scripts DDL/DML attached below).
The members and tournament tables have no common column. Member.Membertype and Tournament.tourtype are different columns despite the similarity of its content
Table 1. Member MEMBERID LASTNAME FIRSTNAME MEMBERTYPE --------- -------------------- -------------------- -------------- 118 McKenzie Melissa Junior 138 Stone Michael Senior 153 Nolan Brenda Senior 176 Branch Helen Social 178 Beck Sarah Social 228 Burton Sandra Junior 235 Cooper William Senior 239 Spence Thomas Senior 258 Olson Barbara Senior 286 Pollard Robert Junior 290 Sexton Thomas Senior 323 Wilcox Daniel Senior 331 Schmidt Thomas Senior 332 Bridges Deborah Senior 339 Young Betty Senior 414 Gilmore Jane Junior 415 Taylor William Senior 461 Reed Robert Senior 469 Willis Carolyn Junior 487 Kent Susan Social 20 rows selected.
Table 2: Entry MEMBERID TOURID YEAR ---------- ---------- ---------- 118 24 2005 228 24 2006 228 25 2006 228 36 2006 235 38 2004 235 38 2006 235 40 2005 235 40 2006 239 25 2006 239 40 2004 258 24 2005 258 38 2005 286 24 2004 286 24 2005 286 24 2006 415 24 2006 415 25 2004 415 36 2005 415 36 2006 415 38 2004 415 38 2006 415 40 2004 415 40 2005 415 40 2006 24 rows selected.
My requirement:+.Table 3: Tournament TOURID TOURNAME TOURTYPE -------- -------------------- -------------- 24 Leeston Social 25 Kaiapoi Social 36 WestCoast Open 38 Canterbury Open 40 Otago Open
I need to find the names of all those who entered the tournament Open (tournament. Tourtype = open). So I wrote the following query
It gives me a correct result.select distinct m.memberid, m.lastname, m.firstname, t.tourtype from member m inner join entry e on (m.memberid=e.memberid) inner join tournament t on (e.tourid=t.tourid) and upper(t.tourtype)='OPEN' order by m.lastname;
But it means I can write this SQL using operator EXISTS?MEMBERID LASTNAME FIRSTNAME TOURTYPE -------- ---------- ---------- ------------------ 228 Burton Sandra Open 235 Cooper William Open 258 Olson Barbara Open 239 Spence Thomas Open 415 Taylor William Open
The DDL and DML to tables and their data
CREATE TABLE Type( Type VARCHAR2(20) Primary Key, Fee number) / CREATE TABLE Member( MemberID NUMBER Primary Key, LastName VARCHAR2(20), FirstName VARCHAR2(20), MemberType VARCHAR2(20) constraint fk1_member References type(type), Phone VARCHAR2(20), Handicap NUMBER, JoinDate DATE, Coach NUMBER, Team VARCHAR2(20), Gender VARCHAR2(1)) / CREATE TABLE Tournament( TourID NUMBER Primary Key, TourName VARCHAR2(20), TourType VARCHAR2(20)) / CREATE TABLE Entry( MemberID NUMBER constraint fk1_entry References Member(memberid), TourID NUMBER constraint fk2_entry References Tournament(tourid), Year NUMBER, constraint pk_entry Primary Key (MemberID, TourID, Year)) / Insert into Type values ('Junior',150) / Insert into Type values ('Senior',300) / Insert into Type values ('Social',50) / Insert into Member values (118,'McKenzie','Melissa','Junior','963270',30,null,null,null,'F') / Insert into Member values (138,'Stone','Michael','Senior','983223',30,null,null,null,'M') / Insert into Member values (153,'Nolan','Brenda','Senior','442649',11,null,null,'TeamB','F') / Insert into Member values (176,'Branch','Helen','Social','589419',null,null,null,null,'F') / Insert into Member values (178,'Beck','Sarah','Social','226596',null,null,null,null,'F') / Insert into Member values (228,'Burton','Sandra','Junior','244493',26,null,null,null,'F') / Insert into Member values (235,'Cooper','William','Senior','722954',14,null,null,'TeamB','M') / Insert into Member values (239,'Spence','Thomas','Senior','697720',10,null,null,null,'M') / Insert into Member values (258,'Olson','Barbara','Senior','370186',16,null,null,null,'F') / Insert into Member values (286,'Pollard','Robert','Junior','617681',19,null,null,'TeamB','M') / Insert into Member values (290,'Sexton ','Thomas','Senior','268936',26,null,null,null,'M') / Insert into Member values (323,'Wilcox','Daniel','Senior','665393',3,null,null,'TeamA','M') / Insert into Member values (331,'Schmidt','Thomas','Senior','867492',25,null,null,null,'M') / Insert into Member values (332,'Bridges','Deborah','Senior','279087',12,null,null,null,'F') / Insert into Member values (339,'Young','Betty','Senior','507813',21,null,null,'TeamB','F') / Insert into Member values (414,'Gilmore','Jane','Junior','459558',5,null,null,'TeamA','F') / Insert into Member values (415,'Taylor','William','Senior','137353',7,null,null,'TeamA','M') / Insert into Member values (461,'Reed','Robert','Senior','994664',3,null,null,'TeamA','M') / Insert into Member values (469,'Willis','Carolyn','Junior','688378',29,null,null,null,'F') / Insert into Member values (487,'Kent','Susan','Social','707217',null,null,null,null,'F') / Insert into Tournament values (24,'Leeston','Social') / Insert into Tournament values (25,'Kaiapoi','Social') / Insert into Tournament values (36,'WestCoast','Open') / Insert into Tournament values (38,'Canterbury','Open') / Insert into Tournament values (40,'Otago','Open') / Insert into Entry values (118,24,2005) / Insert into Entry values (228,24,2006) / Insert into Entry values (228,25,2006) / Insert into Entry values (228,36,2006) / Insert into Entry values (235,38,2004) / Insert into Entry values (235,38,2006) / Insert into Entry values (235,40,2005) / Insert into Entry values (235,40,2006) / Insert into Entry values (239,25,2006) / Insert into Entry values (239,40,2004) / Insert into Entry values (258,24,2005) / Insert into Entry values (258,38,2005) / Insert into Entry values (286,24,2004) / Insert into Entry values (286,24,2005) / Insert into Entry values (286,24,2006) / Insert into Entry values (415,24,2006) / Insert into Entry values (415,25,2004) / Insert into Entry values (415,36,2005) / Insert into Entry values (415,36,2006) / Insert into Entry values (415,38,2004) / Insert into Entry values (415,38,2006) / Insert into Entry values (415,40,2004) / Insert into Entry values (415,40,2005) / Insert into Entry values (415,40,2006) /
Hello, because you select tournament.tourtype in the SELECTION list, the answer is not really. If you have need of t.tourtype in the SELECT list, you might have:
select m.memberid, m.lastname, m.firstname from member m where exists (select 1 from entry e inner join tournament t on (e.tourid=t.tourid) where m.memberid=e.memberid and upper(t.tourtype)='OPEN');
And you know that the t.tourtype is 'OPEN' anyway, if you do not need to SELECT. So, you may have it, and the answer is Yes:
select m.memberid, m.lastname, m.firstname, 'OPEN' tourtype from member m where exists (select 1 from entry e inner join tournament t on (e.tourid=t.tourid) where m.memberid=e.memberid and upper(t.tourtype)='OPEN');
Published by: Seanmacgc on May 7, 2009 02:09
-
I can't find the digital unicode to insert an apostrophe in the Times New Roman font
Unicode for the Apostrophe
I can't find the digital unicode to insert an apostrophe in the font Times New Roman 12 size. I used the table of characters, as always and apostrophe selected. The code usually comes at the bottom of the right hand of the box, but in this case it doesn't. Can someone advise the code please. I searched through aid, but such a simple, and I would have thought, fundimental issue does not.
Quote the num + 0039 Alt gives me just a closing speech.
If U + 0027 is not the character you want to what?
---
-
How to remove a Custom DDL or ObjectChoiceField
Hi all
I am doing a shopping basket sort of thing...! for this I need to change the dropdownlists dynamically on the selection.
!) When the user selects the button category, main ddl should be updated.
(2) when the user selects a subacaegory of DOF, DOF sub must be courses.
I realized this some how... dynamically, I changed the reference to the ddl and updated. It works fine but the problem is, when an another DOF makes its appearance the previous is there remain only and a new is overwhelming at this point. as a result when the width of the new ddl is lower than the previous ddl, it appeared in her underwear, which kills the look and feel of the screen.
in some ways, I tried to remove the ddl, but it does not work for me.
Please suggest me how to remove the ddl dynamically, when I try to remove it, it gives IllegalArgumentException meaning is the ddl
not this Manager field. I'm removing the same administrator only, but I have not found why it's happening...!
Please help me! Here is my
It's my custom ddl code.
public class CustomComboBox extends ObjectChoiceField { private int width; public boolean itemadded = false; // CustomComboBox()// {//// super("Currency",curr, 0, ObjectChoiceField.FIELD_LEFT);// } public CustomComboBox(String str,String []curr, int width) { super(str, curr, 0, ObjectChoiceField.FIELD_LEFT | ObjectChoiceField.USE_ALL_WIDTH); this.width = width; Font font = this.getFont().derive(Font.EMBOSSED_EFFECT | Font.BOLD, 14); this.setFont(font); } public CustomComboBox(String str,String []curr, int startindex, int width) { super(str, curr, startindex, ObjectChoiceField.FIELD_LEFT | ObjectChoiceField.USE_ALL_WIDTH); this.width = width; Font font = this.getFont().derive(Font.EMBOSSED_EFFECT | Font.BOLD, 14); this.setFont(font); } protected void layout(int width, int height) { setExtent(this.width, 40); } public void paint(Graphics g) { // g.setBackgroundColor(Color.BLUE);// g.clear(); g.setColor(Color.BLACK); super.paint(g); } public void setVisiblity(boolean on) {// this.setVisualState(VISUAL_STATE_DISABLED);// this.setVisualState(VISUAL_STATE_DISABLED_FOCUS); } protected void fieldChangeNotify(int context) { try { this.getChangeListener().fieldChanged(this, context); } catch (Exception exception) { } } }
This is the place where to use this object class
class ItemList extends Manager implements FieldChangeListener{ SubItemList subitems; String []cycleitems = {"Standard", "Kids", "Racers"}; String []spareitems = {"Tyres", "Tubes", "Covers"}; String []healthitems = {"Medicines","Fruits","Drinks"}; String []fitnessitems = {"Walker", "Dumbles"}; String []empty = {" "}; CustomComboBox ddl_cycle, ddl_spares, ddl_fitness, ddl_health, ddl; MyTextField lbl_subcategory;// CustomTextBox txt_qty; ItemList(int index) { super(Manager.VERTICAL_SCROLL | Manager.HORIZONTAL_SCROLL); subitems = new SubItemList(index,0); ddl_cycle = new CustomComboBox("Cycles", cycleitems, 140); ddl_spares = new CustomComboBox("Spares", spareitems, 140); ddl_health = new CustomComboBox("Health", healthitems, 140); ddl_fitness = new CustomComboBox("Fitness", fitnessitems,140); ddl = new CustomComboBox("",empty ,100); lbl_subcategory = new MyTextField("Sub-Category:",Field.FIELD_LEFT, 16);// lbl_qty = new MyTextField("Qty", Field.FIELD_LEFT, 16);// txt_qty = new CustomTextBox(30,20); ddl_cycle.setChangeListener(this); ddl_spares.setChangeListener(this); ddl_health.setChangeListener(this); ddl_fitness.setChangeListener(this); switch(index) { case 0: ddl = ddl_cycle; break; case 1: ddl = ddl_spares; break; case 2: ddl = ddl_health; break; case 3: ddl = ddl_fitness; break; } add(lbl_subcategory); add(ddl); add(subitems); } public void delItems() { subitems.delSubItems(); deleteAll(); } public void setvisibility(boolean on) { ddl.setVisiblity(false); } protected void sublayout(int width, int height) { if(lbl_subcategory != null) { setPositionChild(lbl_subcategory, 0, 25); layoutChild(lbl_subcategory, getScreen().getWidth(), getScreen().getHeight()); } setPositionChild(ddl, 110, 15); layoutChild(ddl, getScreen().getWidth(), getScreen().getHeight()); if(subitems != null) { setPositionChild(subitems, 0, 60); layoutChild(subitems, getScreen().getWidth(), getScreen().getHeight()); } setExtent(360, 150); }
This is the place where works the dynamic change of ddl
class OrderEntryManager extends Manager implements FieldChangeListener{ ItemList items; ButtonField btn_submit; MyButtonField btn_cycles, btn_spares, btn_health, btn_fitness, btn_go; OrderEntryManager(){items = new ItemList(0);btn_cycles = new MyButtonField("Cycles", "orderimg/cycle.png", "orderimg/cycle.png",0x00FFE7AD); btn_spares = new MyButtonField("Spares", "orderimg/spares.png", "orderimg/spares.png",0x00FFE7AD); btn_fitness = new MyButtonField("Fitness", "orderimg/fi.....); add(items); }public void fieldChanged(Field field, int context) { if(field instanceof MyButtonField) { if (((MyButtonField) field).getLabel().equalsIgnoreCase("Cycles")) {// items.delItems();// this.delete(items);// items.setVisualState(VISUAL_STATE_DISABLED); items.setvisibility(false); items = new ItemList(0); add(items); } else if (((MyButtonField) field).getLabel().equalsIgnoreCase("Spares")) {// items.setVisualState(VISUAL_STATE_DISABLED);// items.setvisibility(false); items = new ItemList(1); add(items);// items = itemsnew; } else if (((MyButtonField) field).getLabel().equalsIgnoreCase("Health")) {// items.setVisualState(VISUAL_STATE_DISABLED);// items.setvisibility(false); items = new ItemList(2); add(items);// items = itemsnew; } else if(((MyButtonField) field).getLabel().equalsIgnoreCase("Go")) { } else if (((MyButtonField) field).getLabel().equalsIgnoreCase("Fitness")) {// items.setVisualState(VISUAL_STATE_DISABLED);// items.setvisibility(false); items = new ItemList(3); add(items);// items = itemsnew; } } else if (field instanceof ButtonField) {// if (((ButtonField) field).getLabel().equalsIgnoreCase("Fitness"))// {// items = new ItemList(3);// add(items);// // items = itemsnew; // } if(((ButtonField) field).getLabel().equalsIgnoreCase("Submit")) { synchronized(Application.getEventLock()) { UiApplication.getUiApplication().popScreen(UiApplication.getUiApplication().getActiveScreen()); UiApplication.getUiApplication().pushScreen(new OrderConfirmScreen()); } } } if(items != null) { updateLayout(); } } }
Please suggest me how to remove the ddl for this!
Hi all, I have solved this problem by using ddl.setChoice (String []);
Thank you for all that you.
-
Interrupted SQL statement and start several times with several SQL_EXEC_ID
Hi all
We meet a strange phenomenon, maybe someone can help.
We see that sometimes, when our client runs a single statement, implemented Oracle to process the statement with a special SQL_EXEC_ID, but after a while stops and starts processing the statement along with different SQL_EXEC_ID. Then, after a while, it happens again - stop Oracle processes the statement and start from the beginning with the new SQL_EXEC_ID. This happens again and again until we kill all of the other sessions on the database (then it ends).
What we see exactly: Client executes the statement (sql_id = "2tp7pz6yv87qp"). Monitor us v $ SQL_MONITOR and get this:
SELECT Sql_id, sql_exec_id, to_char (SQL_EXEC_START, "HH24:MI:SS MON-DD-YYYY) SQL_EXEC_START, status OF V$ SQL_MONITOR where sql_id = '2tp7pz6yv87qp' ORDER BY SQL_EXEC_START DESC;
2tp7pz6yv87qp 16777216 28 may 2015 07:19:14 the EXECUTION
After a while check us again and see this:
2tp7pz6yv87qp 16777217 28 may 2015 07:36:17 the EXECUTION
2tp7pz6yv87qp 16777216 28 may 2015 07:19:14 FACT
After a while, we see this:
2tp7pz6yv87qp 16777219 28 may 2015 08:09:58 the EXECUTION
2tp7pz6yv87qp 16777218 28 may 2015 07:53:37 FACT
2tp7pz6yv87qp 16777217 28 may 2015 07:36:17 FACT
2tp7pz6yv87qp 16777216 28 may 2015 07:19:14 FACT
and so on — will happen again and again until we kill all of the other sessions in the database.
When comparing the follow-up of the different SQL_EXEC_IDs SQL reports, we see that each of them did exactly the same job: used the same execution plan, beginning treatment she even read/wrote the same amount of e/s and each of them stopped at the same point during execution. You can see that for each SQL_EXEC_ID execution 'stops' in the middle and never reach the end of the plan. She always stops in the JOIN by HASH and never continue to the next steps in the implementation plan.
When you look more deeply, we see in V$ ACTIVE_SESSION_HISTORY always last thing that happens for every SQL_EXEC_ID is HASH JOIN RIGHT OUTER (SQL_PLAN_OPERATION = HASH and SQL_PLAN_OPTIONS = RIGHT OUTER JOIN). Then comes the new SQL_EXEC_ID and it starts to do the same thing as the previous SQL_EXEC_ID did when it was launched.
Kill all other sessions, run finally ends. We see that the final (successful) SQL_EXEC_ID work and completes his plan to run to completion.
When executing the same single statement (when it comes to the single session in the database), it ends with a single SQL_EXEC_ID. Its SQL monitoring report looks like the final execution when the phenomenon occurs after killing all other sessions.
-We checked that the customer executing the query only once. AWR also only shows simple execution of the query.
-We have reproduced in many different clients (plus SQL, JDBC thin client OIC and DBMS_SCHEDULER job).
-It has no PARALLEL in the query or table.
-In this case for different statements (different INSERT-SELECT and MERGE instructions).
-Version: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
Does anyone have an idea?
Finally found the root cause of the problem.
This phenomenon occurs when the cursor of the active query being invalidated. This can occur in several scenarios, in our case, what happens when we work on a single partition (read or write) and perform DDL operations on different partitions of the same or the tables.
Steps to reproduce:
1 launch long command DML that affect the single partition
2. in the course of executing this SQL, do one of the following values in a session different all 1 minute:
2.1 do the indexes to a different partition unusable: ALTER TABLE X EDIT PARTITION Y UNUSABLE LOCAL INDEX
2.2 rebuild the unusable index of different partition: ALTER TABLE X EDIT PARTITION Y REBUILD UNUSABLE LOCAL INDEX
2.3 a partition different truncate
Support of Oracle we were told that this problem is known and there are several requests for bugs and improvements thereon, for example this one:
Bug 12905327 : TRUNCATE to an INVALID PARTITION TABLE UNNECESSARILY IMMEDIATELY all THE SLIDERS
In our case (ETL process), we used to perform all these operations DDL and DML operations long (we work on different partitions in parallel). In order to solve, we have separated these operations to the different phases in our process and don't be DDL and DML operations at the same time more. This solved the problem for us.
-
Not created in DDL in 4.1.0 sequences were in 4.0.2
Using the same dmd in 4.0.2 and 4.1.0 to export the DDL - version 4.0.2 product 'create sequence' statements, but 4.1.0 does not (I have both versions installed).
When I ran 4.1.0 it migrated the 4.0.2 configuration.
Any ideas?
Hi Andy,.
The DDL generated for the auto increment and identity of the columns is controlled by the properties by default Auto increment DDL and DDL of default identity on the Data Modeler > model > physics > Oracle of the preferences page.
If the value is 'Trigger', or "Default clause" then the sequence must be generated.
The default value in the preferences can be overridden for a column.
In the physical model dialog for the column, select the Auto Increment tab. If the 'Auto incrément DDL' field on this tab isn't empty, it replaces the default in preferences.
David
-
Replicated table DDL has more lines in the target as in the Source
Hello
I'm new on GoldenGate and test DDL support.
On Source
*********
GG version is 12.1.2.0.0 (integrated extraction Mode)
DB version is 11.2.0.4
OS version is 6.4 RHEL 64 bit
GGSCI (source) 1 > news
Program status group Lag time since Chkpt Chkpt
MANAGER RUNNING
EXTRACT RUNNING EXT1 10:00:00 00:00:07
EXCERPT FROM RUNNING EXTPUMP 00:00:00 00:00:04
GGSCI (source) 2 > discovers params ext1
EXTRACT ext1
USERIDALIAS ggown
LOGALLSUPCOLS
UPDATERECORDFORMAT COMPACT
EXTTRAIL /fs1/app/product/ogg/12.1.2.0.0/ogghome1/dirdat/et
DDL INCLUDE MAPPED OBJNAME GGTEST.*
MAP GGTEST.*;
GGSCI (source) 3 > discovers params extpump
EXTRACT extpump
USERIDALIAS ggown
RMTHOST usav1dba12t01, MGRPORT 7809
RMTTRAIL /fs1/app/oracle/product/ogg/12.1.2.0.0/ogghome1/dirdat/rt
MAP GGTEST.*;
GGSCI (source) 12 > ADD SCHEMATRANDATA ggtest
2014-06-04 10:27:55 INFO OGG-01788 SCHEMATRANDATA has been added to the schema ggtest.
2014-06-04 10:27:55 SCHEMATRANDATA OGG-01976 to INFORMATION for planning of the columns was added the ggtest schema.
SQL > create table ggtest.ind in select * from dba_indexes;
Table created.
SQL > select count (*) in IND;
COUNT (*)
----------
4791
On the target
********
GG version is 12.1.2.0.0 (Replicat Mode integrated)
DB version is 11.2.0.4
Version of the OS is RHEL 5.5 64-bit
GGSCI (target) 1 > news
Program status group Lag time since Chkpt Chkpt
MANAGER RUNNING
REPLICAT RUNNING REP1 00:00:00 00:00:07
GGSCI (target) 2 > discovers params rep1
REPLICAT Rep1
SETENV (ORACLE_HOME="/fs1/app/oracle/product/11.2.0/dbhome_1')
SETENV (ORACLE_SID = "POCDB2")
DBOPTIONS INTEGRATEDPARAMS(parallelism 2)
USERIDALIAS ggown
ASSUMETARGETDEFS
HANDLECOLLISIONS
CARD ggtest.*, ggtest.* of the TARGET.
SQL > select count (*) in IND;
COUNT (*)
----------
4946
There is an inconsistency in the number of replicated rows. I can't understand whence the other lines.
Kind regards
Mr. Nagendra
If you can do:
Source:
Select count (*) in dba_indexes;
target:
Select count (*) in dba_indexes;
they match?
create table... select is a ddl and repicated statement as is to the target, so do the following instead of create as selected:
1 truncate the table on two databases of towing, or create the table.
2. insert into ggtest.ind select * from dba_indexes; commit;
3. check the metering
-
Commit and Rollback in the procedure.
Hi all
I use ODI 11.6 and Oracle 11 g.
I have a senario
When I contact_1-> procedure 1-> contact_2
The contact_1 update Table_1
If the procedure_1 is to run successfully then it updates Tab_2
Suppose that the contact_2 will fail which will update the Tab_3
I need to restore the Tab_2 and the Tab_1.
How to proceed in ODI?
So we Commit any type of option in the procedure?
Thank you
Lonylony wrote:
Hi allI use ODI 11.6 and Oracle 11 g.
I have a senario
where I contact_1---> 1---> contact_2 procedureThe contact_1 update Table_1
If the procedure_1 is to run successfully then it updates Tab_2Suppose that the contact_2 will fail which will update the Tab_3
I need to restore the Tab_2 and the Tab_1.
Interface 1 & 2 should use KMs to the DDL and DML operations is a separate transaction.
For your info, most of the KM roped into this. Just check the same once moreOnce the above is done then notes the DML operation that happens in what conversion. Say what is happening in transction1.
The value are committed to do for contact_1
Create your procedure and value commit any commit
In the procedure, set the transaction the same as as ok contact_1 IKM (say transction1)
The value contact_2 commit to yes
Thank you
Fati
Maybe you are looking for
-
10 iOS iphone SMS open without entering a password! You can respond to text messages without entering a password! How to fix my TEXT with my access code?
-
Keithley 6485 error 800, "not consistent with active storage."
Hello I use a Keithley 6485 to acquire a buffer of 40 measures, triggered via triggerlink. The VI works well, but of course, what happens if no trigger is to send to the device? So, after a timeout, the unit is configured again (reset and configurati
-
As stated in the header, various dll refuses copy during installation of Windows XP. And after use to ignore files completely, I find myself with a white box that produces the error 800b0100. At first I thought it was a hard drive problem, but after
-
I just bought the extraordinary that was sent to me for Adobe Photoshop elements 14. If he gave me a choice of operating systems I must have missed it because it shows my download than the windows version. I need the MAC version. I don't have wind
-
Could not import the VUM 5.1 data
I try to import ESX 5.0.0 u2 ISO Image in 5.1 VUM... the end of the process with congestive-> "unable to import data.The Image of 5.1 ESX has been imported without any problems... in the vCenter working ESX4.0 Build 244038 host... ready for upgrade t