[4.0] Incomplete sort for objects in DDL when using Database Export or "quick DDL"
As far as I could see, a similar problem has been reported for earlier versions of SQL Developer, but still seems to apply for some parts in 4.0.0.13.80 under Windows7 64bit with JDK 1.7.0_45 64bit ...
Currently not all objects in a generated DDL using "Quick DDL" or "Tools - Database Export" are sorted evenly ... tables and foreign key constraints seem to be sorted, but common constraints are not.
This is rather annoying when trying to compare the generated scripts of two databases. Or trying to detect changes over lifetime (SVN etc.).
Or is there an option for this I could not find/see so far?
example output from database export of SQLDev 4.0.0.13.80 on the same machine, within some minutes, no configuration change, for a local and a remote database ...
from local:
Questions:
why are there blank lines added for the local database
why aren't the grants in the same order
local database
remote database
GRANT DELETE, INSERT, SELECT, UPDATE ON "FOREIGNSCHEMA"."TABLE_FOR_GRANT" TO "ACCESS_ROLE_FOR_SCHEMA_3";
GRANT REFERENCES ON "FOREIGNSCHEMA"."TABLE_FOR_GRANT" TO "SCHEMA_3";
GRANT REFERENCES ON "FOREIGNSCHEMA"."TABLE_FOR_GRANT" TO "SCHEMA_4";
GRANT SELECT, REFERENCES ON "FOREIGNSCHEMA"."TABLE_FOR_GRANT" TO "SCHEMA_5";
GRANT SELECT, REFERENCES ON "FOREIGNSCHEMA"."TABLE_FOR_GRANT" TO "SCHEMA_6";
GRANT SELECT ON "FOREIGNSCHEMA"."TABLE_FOR_GRANT" TO "SCHEMA_7";
GRANT REFERENCES ON "FOREIGNSCHEMA"."TABLE_FOR_GRANT" TO "SCHEMA_3";
GRANT REFERENCES ON "FOREIGNSCHEMA"."TABLE_FOR_GRANT" TO "SCHEMA_4";
GRANT SELECT, REFERENCES ON "FOREIGNSCHEMA"."TABLE_FOR_GRANT" TO "SCHEMA_5";
GRANT DELETE, INSERT, SELECT, UPDATE ON "FOREIGNSCHEMA"."TABLE_FOR_GRANT" TO "ACCESS_ROLE_FOR_SCHEMA_3";
GRANT SELECT, REFERENCES ON "FOREIGNSCHEMA"."TABLE_FOR_GRANT" TO "SCHEMA_6";
remark: missing SCHEMA_7 is okay, because it is not yet on the remote database
Similar applies to non foreign key constraints, where the unsorted output is even worse ...
Message was edited by: stueckl
Did you ever figure out why SQL Developer isn't exporting the NOT NULL attribute of columns?
I'm running into that on a 9i database, but not on 11g.
Skip
Similar Messages
-
Photoshop hangs for nearly 15 seconds when using Layer > Group Layers or Layer Palette > Group from Layers commands. NOT on creating new group and creating layers and drag-n-dropping layers into group manually in Layer Palette. Got a UI design file with nearly 800 layers and lot of groups. This doesn't occur in smaller files. Using OS X Mavericks, Photoshop CC 2014.2.2, Mid 2014 15-inch Retina Macbook Pro.
I understand that the solution would be just to cut the file into smaller files and design each UI view in a separate file but that would be painful. And it does not seem to be a very hard task to just group layers.Does the document also have a lot of layer comps?
And can you post that document or send me a copy of it so we can see exactly why it is hanging? -
Support for safety camera locations when using off...
I've seen people manually post the file (as text) that you can put in the relevant folder on your phone's data card - but is there any ongoing support for safety camera updates when using your phone's mapping / sat nav offline (ie no data usage)?
Jaff0 wrote:
Doesn't seem like there's any option through the PC map loader program, so the only option seems to be if anybody has posted the file - which may not always happen?
Safetyspots are not updated that often and I am sure someone on the forum would try to help you out if you asked.
Happy to have helped forum with a Support Ratio = 42.5 -
Revision: 10891
Author: [email protected]
Date: 2009-10-06 09:46:47 -0700 (Tue, 06 Oct 2009)
Log Message:
Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants
QE notes: None.
Doc notes: None
Bugs: SDK-22676
Tests run: checkintests
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-22676
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.javaHave you tried using com.adobe.air.crypto.EncryptionKeyGenerator instead?
-
How do you set up a password for a wireless network when using an Airport Extreme?
How do you set up a password for a wireless network when using an Airport Extreme wireless router?
Thanks for the updated information.
Open Macintosh HD > Applications > Utilities > AirPort Utility
Click on the AirPort Extreme icon, then click Manual Setup
Click the Wireless tab below the row of icons
Check to make sure that the setting for Wireless Security reads either WPA2 Personal or WPA/WPA2 Personal
Enter a Wireless Password and Verify Password
Click Update to save any changes and wait a full minute for the AirPort Etreme to restart -
I am using outlook express for my mail. When using internet explorer on PC I could set it up so I could simultaneously see all my inboxes, the mail details and a message preview. Can I do this on my Mac?
About accessing using a browser: I can get in using Firefox or Safari, butI cant set the page up to see all my inboxes at the same time (so I can file emails appropriately) or get a preview to save opening every mail
-
In Attachement List Services for Objects White Screen when I Display a Note
Hi Expert,
Need your assistance.
I am trying to view a note in Vendor Master data but no information provided and I can only see white screen. Below are the steps that I performed:
1. Go to FK03
2. Open a Vendor
3. Click the Services for Objects
4. Attachement List
5. Select a Note
4. Display it
5. Pop up window appreared and no information occurred. Only White screen
Is there's a missing configuration, plugin, or data in my SAP system/workstation?
I tried to login to other PC and it worked.
Just wondering what is missing on my computer.
Your response will be helpful.Hey,
I have the exact same problem as you have described. I also used my ipod as a watch but starting from today, whenever I unlock it the screen turns white until a reset is done. Even a factory reset through itunes didn't fix it.
Have you found any solution?
Bah, this is annoying.
//Gubbar -
PL/SQL: ORA-22806: not an object or REF when Using Record in Package
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
I have declared a record type in my package
create or replace
PACKAGE MYPKG AS
TYPE MYREC IS RECORD (VAL1 varchar2(20), val2 date);
PROCEDURE display_error (pSQLERRM number);
PROCEDURE P_LOAD_DATA (pStartDate Date, pEndDate Date);
FUNCTION F_EPI(refno1 in NUMBER, refno2 in NUMBER) return MYREC;
END MYPKG;
--In My Package Body
FUNCTION F_EPI(refno1 in NUMBER, refno2 in NUMBER) return MYREC is
F_param MYREC;
BEGIN
select myvarchar2, mydate into MYREC from MYTable
where myrefno1 = refno1
and myrefno2 = refno2
Exception
when others then
display_error(SQLERRM);
RETURN F_param;
END F_EPI ;
PROCEDURE P_LOAD_DATA (pStartDate Date, pEndDate Date) IS
insert into atable(myvarchar, mydate)
select F_EPI(refno1,refno2).val1,F_EPI(refno1,refno2).val2 from tab2;
END P_LOAD_DATA;
I get errors
Error(187,7): PL/SQL: SQL Statement ignored
Error(225,7): PLS-00382: expression is of wrong type
Error(225,7): PL/SQL: ORA-22806: not an object or REF
When I compile the package.
When I try to call the function from SQL I get an Invalid datatype error.Hi,
Before posting any query/plsql blocks, please ensure that you have written it clean and complete with less syntax errors. ( at least general syntax errors, you can avoid). Then somebody can have an interest to check your logical error.
About your posting, refer below solution step-by-step. It may help you, about what you are looking for? By the way, you must be knowing, what you are going to to do with. I haven't concentrated about your requirement; as it was not missing in your posting.
drop table test;
create table test(myvarchar varchar2(20), mydate date);
create or replace
package mypkg as
type myrec is record (val1 varchar2(20), val2 date);
--procedure display_error (psqlerrm in number); -- if you are passing sqlerrm, then parameter needs to be string type
procedure display_error (psqlerrm in varchar2);
procedure p_load_data (pstartdate in date, penddate in date);
function f_epi(refno1 in number, refno2 in number) return myrec;
end mypkg;
Package created.
--in my package body
create or replace
package body mypkg as -- added
procedure display_error (psqlerrm in varchar2) -- if you are declared a proc/func in spec, it needs to define in pkg body
is
begin
null; -- you should know, what to do here
dbms_output.put_line('Err -'||sqlerrm);
end display_error;
function f_epi(refno1 in number,refno2 in number)
return myrec
is
f_param myrec;
begin
-- select myvarchar2, mydate into MYREC from mytable
-- where myrefno1 = refno1
-- and myrefno2 = refno2;
select ename, hiredate into f_param from emp -- added demo logic by using emp
where empno = refno1
and mgr = refno2;
return f_param; -- added
exception
when others then
raise; -- if you are using OTHERS then, just raise it
display_error(sqlerrm);
--return f_param; -- what is this?
end f_epi;
procedure p_load_data (pstartdate in date, penddate in date) -- you must be knowing the use of 2 params ???
is
v_rec myrec; -- added
begin -- Added
--insert into atable(myvarchar, mydate)
-- select f_epi(refno1,refno2).val1,f_epi(refno1,refno2).val1 from tab2;
-- demo logic added with static params to call f_epi
v_rec:= f_epi(7499,7698);
insert into test values v_rec;
--null;
end p_load_data;
end mypkg;
Package body created.
SQL> exec mypkg.p_load_data(null,null);
PL/SQL procedure successfully completed.
SQL> select * from test;
MYVARCHAR MYDATE
ALLEN 20-FEB-81
Thanks! -
Exclude certain objects in OM when using the report RHSTRU00
Hi,
I'd like to inquire if there is a way to exclude certain objects from appearing in RHSTRU00? For example,
Organization XYZ contains 3 org units:
Organization A - contains Position A - Employee A
Organization B - contains Position B - Employee B
Organization C - contains Position c - Employee C
Organization XYZ - contains Position XYZ - Employee XYZ
When using the eval path O-S-P with root object Organization XYZ, is there a way to exclude Position XYZ - Employee XYZ from the report output?
Thanks!Hi Kristine Tan ,
Yes, You can exclude the Position when executing the Report RHSTRU00 using Evaluation Path O-S-P.
Click on "Change Structure Conditions" Push button and give the following under structure conditions (Object Filter)
Check Object Type - Root Object Type - Root Object ID - Evaluation Path - Status
S - O - XXXXXXX - O-S-P - 1
Click on Continue.
Then execute. You can see the Positions are not displayed in the report.
Regards
Venu
Edited by: venu gopal on Feb 28, 2011 3:50 PM
Edited by: venu gopal on Feb 28, 2011 3:51 PM
Edited by: venu gopal on Feb 28, 2011 3:52 PM -
Hi everyone,
I have 2x physical servers running Hyper-V 2012 R2. Each hosts several virtual machines. The VHDs of the VMs are stored on several dedicated physical disks to have a performance boost. For exampe if VM A has two VHDs attached I made sure that the VHDs are
on different physical disks to have them not slow-down each other in case of intensive disk accesses.
So far so good. I was looking forward to the replication-feature. The idea is to have the two physical servers have their primary running VMs being replicated to the other physical server and vice-versa. I was hoping to have the chance to choose for each
individual VM where the replicated VHD will be stored. But instead I can only see the one location/path which is configured in Hyper-V Manager when I activate the replication-feature on the server.
Is there by any chance a way how to select the storage location for each VHD/VM if using the replication-feature of Hyper-V 2012 R2?
Thanks in advance.
Cheers,
SebastianSecondly, you could replicate different VMs to different storage locations to perform some of the disk balancing you are trying to perform. Lastly, you could copy the vhd file to a different location
before starting the VM.
.:|:.:|:. tim
Hi Tim,
thanks for the reply. Sorry, but I had some other tasks to take care of, so I wasn't paying enough attention to this thread.
The part I quoted from your reply sounds exactly like the action I'd like to perform, but as you pointed out before this should not be possible.
How can I perform the action (replicating each VM to a storage location) as you mentioned secondly? To sum it up again:
2x physical machines carrying severel HDDs
8+ VMs spread to run on the 2x servers
when setting up replication I can only set the storage-location from server A on B and vice versa B on A
Thanks again for your reply.
Cheers,
Sebastian -
QueryError "It is error for context item undefined when using[err:XPDY0002]
Hi,
I a beginner for DB XML with python, below is my script and i have error
"def next(*args): return _dbxml.XmlResults_next(*args)
RuntimeError: Error: It is an error for the context item to be undefined when using it [err:XPDY0002], <query>:1:12" when i executed my scripts. Pls advice. Thank you.
import sys
from dbxml import *
from bsddb3.db import *
class DbXml:
def createEnvironment(self, home):
""" Create DBEnv and initialize XmlManager"""
try:
environment = DBEnv()
environment.open(home, DB_RECOVER|DB_CREATE|DB_INIT_LOCK|
DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN, 0)
except DBError, exc:
print exc
sys.exit()
try:
mgr = XmlManager(environment, 0)
except XmlException, se:
print se
sys.exit()
return mgr
def closeEnvironment(self):
""" Close DBEnv environment"""
environment = DBEnv()
environment.close()
def createContainer(self, mgr, containerName):
""" Create/open a node container"""
if mgr.existsContainer(containerName) != 0:
mgr.removeContainer(containerName)
try:
return mgr.createContainer(containerName,
DBXML_TRANSACTIONAL|DBXML_ALLOW_VALIDATION,
XmlContainer.NodeContainer)
except XmlException, ex:
print ex
sys.exit()
def putDocument(self, mgr, cont, file, DocName):
""" put xml document in database"""
self.docName = DocName
f = open(file)
q = f.read()
f.close()
try:
# all Container modification operations need XmlUpdateContext
uc = mgr.createUpdateContext()
txn = mgr.createTransaction()
try:
docName = cont.putDocument(txn, self.docName,
q, uc) #, DBXML_GEN_NAME)
txn.commit()
except XmlException, ex:
print ex
txn.abort()
txn = mgr.createTransaction()
doc = cont.getDocument(txn, self.docName)
name = doc.getName()
docContent = doc.getContentAsString()
txn.commit()
print "Document name: ",name,"\nContent: ",docContent
except XmlException, inst:
print inst
if txn:
txn.abort()
def query(self, mgr, cont, queries):
""" Query"""
myQuery = r"collection(" + cont + ")" + "/" + queries
myContainer = mgr.openContainer(cont)
qContext = mgr.createQueryContext()
qContext.setEvaluationType(XmlQueryContext.Lazy)
results = mgr.query(myQuery, qContext)
for value in results:
document = value.asDocument()
name = document.getName()
content = value.asString()
print name, ":", content
if __name__ == "__main__":
dbxml = DbXml()
mgr = dbxml.createEnvironment(".")
cont = dbxml.createContainer(mgr, "test.dbxml")
dbxml.putDocument(mgr, cont, "C:\Documents and Settings\uidc0998\Desktop\\books.xml", "books.xml")
dbxml.query(mgr, "test.dbxml", "bookstore/book/title")
dbxml.closeEnvironment()
Edited by: user10951778 on Mar 31, 2009 5:47 PMHi rucong.zhao,
Below is my xml, may i know what type of namespace or what i should put for namespace? Thank you.
<bookstore>
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book category="WEB">
<title lang="en">XQuery Kick Start</title>
<author>James McGovern</author>
<author>Per Bothner</author>
<author>Kurt Cagle</author>
<author>James Linn</author>
<author>Vaidyanathan Nagarajan</author>
<year>2003</year>
<price>49.99</price>
</book>
<book category="WEB">
<title lang="en">Learning XML</title>
<author>Erik T. Ray</author>
<year>2003</year>
<price>39.95</price>
</book>
</bookstore> -
Why pop up is shown to ask for inputing sales order when using COR1
I want to create a process order with order type PI01, but pop up window is shown to ask for sales order when using COR1. I suppose there is something wrong with material master setting, but I've never set classification to this material.
Please help.Hi Nichole
Is the material assigned to any MRP group , if yes then check the config settings on t-code OPPR, if stg group is assigned. also check the matrial type to default MRP group assignment settings in SPRO>production>mrp>MRPgroup> Define MRP Group for Each Material Type.
regards
Prasad
reward if useful -
Is it possible to use events for objects that do not use swing or awt
Dear Experts
I want to know if events are possible with plain java objects. A simple class that is capable of firing an event and another simple class that can receive that event. My question is
1. If it is possible - then what is the approach that needs to be taken and would appreciate an example.
2. Is Observer Pattern in java going to help?
To explain further i am doing [Add,Modify,Delete,Traverse] Data tutorial using swing in Net beans. I have a ButtonState Manager class that enables and disables buttons according to a given situation. For example if add is clicked the modify button becomes Save and another becomes Cancel. The other buttons are disabled. What i want is the ButtonStateManager class to do a little further - i.e. if Save is clicked it should report to DBClass that it has to save the current record which was just added. I am foxed how this can be done or what is the right way. Thanks for reading a long message. Appreciate your help.
Best regardsThanks Kayaman
i guess i am doing something else maybe it is crazy but i need to work further i guess... i cant post the entire code as it is too big but some snippets
public class DatabaseApplication extends javax.swing.JFrame {
ButtonStateManager bsm;
/** Creates new form DatabaseApplication */
public DatabaseApplication() {
initComponents();
// ButtonStateManager has a HUGE constructor that takes all the buttons as argument!
bsm = new ButtonStateManager(
btnAdd,
btnModify,
btnDelete,
btnQuit,
btnMoveNext,
btnMovePrevious,
btnMoveLast,
btnMoveFirst );One of the methods in the ButtonStateManager Class is as follows
private void modifyButtonState()
btnAdd.setText("Save");
btnModify.setEnabled(false);
btnDelete.setText("Cancel");
btnQuit.setEnabled(false);
...Finally the Crazy way i was trying to do ... using EXCEPTIONS!
void modifyClicked() throws DBAction
if(btnModify.getText().equalsIgnoreCase("MODIFY"))
modifyButtonState();
else
throw new DBAction("SaveAddedRecord");
}And Finally how i was Tackling exceptions....
private void btnAddActionPerformed(java.awt.event.ActionEvent evt) {
try {
bsm.addClicked();
} catch (Exception e1) {
processDBAction(e1.getMessage());
private void processDBAction(String msg)
if(msg.equalsIgnoreCase("SAVEMODIFIEDRECORD"))
System.err.println(msg);
bsm.normalButtonState();
}Edited by: standman on Mar 30, 2011 4:51 PM -
When using "Database diff" selecting other schemas only for compare own objects are shown too!
Hi!
For comparing lot of objects I use a priviliged account z, which can read Schema a and b.
In the compare dialog I set different from the Defaults following Options:
- step 1
- option "Maintain"
- step 3
- button "More"
- select schema a
- button "Lookup"
- mark all objects and shuttle to the right
- repeat for schema b
After the diff report is finished, schema object of account z are listed too, despite I have not selected this.
Best regards
TorstenAh, you're using user Z to select objects from A & B?
On step 2, do you have anything selected that you have not picked an object type for using the 'shuttle' in Step 3?
For example, if you picked, 'procedures' and then in the wizard, didn't pick ANY procedures in A or B, it will by default use ALL of the procedures in Z for the compare. -
Scale does not work for the target movie when using a poster movie
Hello,
I have various size video files that I want to scale to a certain display area on a website. I'm using the scale="tofit" attribute. It works fine for the poster movie but when the target movie is loaded it does not scale! Is this a QT bug or by design? Is there a workaround to this or am I doing things wrong? All help is greatly appreciated.
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="489" height="280" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="autoplay" value="false">
<param name="controller" value="true">
<param name="href" value="heaven.mov">
<param name="pluginspage" value="http://www.apple.com/quicktime/download/indext.html">
<param name="target" value="myself">
<param name="type" value="video/quicktime">
<param name="src" value="movies/PosterTest.mov">
<param name="scale" value="tofit" >
<embed src="movies/PosterTest.mov" href="heaven.mov" width="489" height="280" autoplay="false" controller="true" border="0" pluginspage="http://www.apple.com/quicktime/download/indext.html" target="myself" type="video/quicktime" scale="tofit">
</object>
Dell inspiron 8200 Windows XP ProAfter quite a lot of Googling I found what I was looking for. This solution was quite hard to find. I found it on http://blog.deconcept.com/2005/01/26/web-standards-compliant-javascript-quicktim e-detect-and-embed (I'm using Geoff Stearns's script to embed my movies, it works great!)
Anyway here is a url to the final solution:
http://developer.apple.com/documentation/QuickTime/WhatsNewQT5/QT5NewChapt1/chap ter1_section32.html
Maybe you are looking for
-
How do I install a printer that doesn't show up
I can't get my hp C4250 to show up so I can print. What might I be doing wrong? I have checked all the connections.
-
Always when I close FF 4.0 on my desktop running XP it says it failed to close correctly and is still running ? Same thing happened in another version of FF I believe.
-
The Back Arrow is not working properly in hotmail, using Firefox browser
I have to click the back arrow twice to get it to work. And then it doesn't take me to the previous page I was on. It takes me to my In box. It was very useful when I had my messages sorted to show only "Unread Messages". Hitting the back arrow allow
-
"Exchange 2007 (Offline)"
I've been reading several threads but haven't found this problem yet. I'm one of about a half dozen Mac users in a Windows environment. They updated our e-mail system to Exchange 2007 about a week before Snow Leopard came out, and after a harrowing w
-
When I disconnect from my PC, my nano shuts off and won't come back on. I have tried holding down both the On/Off and the Home buttons -- but nothing...