Bug: "COMMENT ON COLUMN" script generated incorrectly
SQL developer can generate table script when select SQL tab from a Table.
I set the Tool->Preferences->Database->ObjectViewer Parameters->Uncheck "Show Schema". I expected no any schema prefix in any script, but I still got schema prefix show in "COMMENT ON COLUMN" statement.
a bug?
Tao
Hello Joop,
thanks for the update. I'm looking forward to the final release, then.
Best regards,
Blama
Similar Messages
-
Confusion over DBCA script generated for manual RAC DB creation
Version:11.2.0.4/RHEL 6.3
We would like to create our 3-node RAC DB manually. DBCA cannot meet our requirement because our redo log files, datafiles, tempfiles and control files are placed in a complicated manner . If we use DBCA , we will have to spend a lot of time configuring to our requirements after the DB creation.
I generated the DB creation scripts from DBCA (DB Name = BRCFPRD )
DBCA placed the db creation scripts in the specified directory in all the 3 nodes !!
They all have almost the same contents . The only difference being the instance name (BRCFPRD12.sql for Node2, ... etc).
Scripts in each node have the createDB.sql statement which has CREATE DATABASE "BRCFPRD" statement. Why is this ? The database need to be created only from one node. Then why did DBCA place createDB.sql in all nodes ?
I just want to run the script from just one node , say Node1 and it should create the 3-Node RAC DB. How can I do this manually?
-- The scripts genereated by DBCA in Node1
apex.sql
BRCFPRD1.sh
BRCFPRD1.sql
context.sql
CreateClustDBViews.sql
CreateDB.sql
CreateDBCatalog.sql
CreateDBFiles.sql
cwmlite.sql
emRepository.sql
init.ora
interMedia.sql
JServer.sql
lockAccount.sql
ordinst.sql
owb.sql
postDBCreation.sql
spatial.sql
xdb_protocol.sql
-- The contents of the main shell script BRCFPRD1.sh
$ cat BRCFPRD1.sh
#!/bin/sh
OLD_UMASK=`umask`
umask 0027
mkdir -p /optware/product/admin/BRCFPRD/adump
mkdir -p /optware/product/admin/BRCFPRD/dpdump
mkdir -p /optware/product/admin/BRCFPRD/hdump
mkdir -p /optware/product/admin/BRCFPRD/pfile
mkdir -p /optware/product/cfgtoollogs/dbca/BRCFPRD
umask ${OLD_UMASK}
ORACLE_SID=BRCFPRD1; export ORACLE_SID
PATH=$ORACLE_HOME/bin:$PATH; export PATH
echo You should Add this entry in the /etc/oratab: BRCFPRD:/optware/product/oracle/11.2.0:Y
/optware/product/oracle/11.2.0/bin/sqlplus /nolog @/optware/product/BRCFPRD1.sql
-- Contents of BRCFSPRD1.sql
$ cat BRCFPRD1.sql
set verify off
ACCEPT sysPassword CHAR PROMPT 'Enter new password for SYS: ' HIDE
ACCEPT systemPassword CHAR PROMPT 'Enter new password for SYSTEM: ' HIDE
ACCEPT sysmanPassword CHAR PROMPT 'Enter new password for SYSMAN: ' HIDE
ACCEPT dbsnmpPassword CHAR PROMPT 'Enter new password for DBSNMP: ' HIDE
host /optware/product/oracle/11.2.0/bin/orapwd file=/optware/product/oracle/11.2.0/dbs/orapwBRCFPRD1 force=y
host /grid/product/11.2.0/bin/setasmgidwrap o=/optware/product/oracle/11.2.0/bin/oracle
host /optware/product/oracle/11.2.0/bin/srvctl add database -d BRCFPRD -o /optware/product/oracle/11.2.0 -p +DATA/BRCFPRD/spfileBRCFPRD.ora -n BRCFPRD -a "DATA,ARCH_DG"
host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD1 -n cimprd175
host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD3 -n cimprd177
host /optware/product/oracle/11.2.0/bin/srvctl add instance -d BRCFPRD -i BRCFPRD2 -n cimprd176
host /optware/product/oracle/11.2.0/bin/srvctl disable database -d BRCFPRD
@/optware/product/CreateDB.sql
@/optware/product/CreateDBFiles.sql
@/optware/product/CreateDBCatalog.sql
@/optware/product/JServer.sql
@/optware/product/context.sql
@/optware/product/xdb_protocol.sql
@/optware/product/ordinst.sql
@/optware/product/interMedia.sql
@/optware/product/cwmlite.sql
@/optware/product/spatial.sql
@/optware/product/emRepository.sql
@/optware/product/apex.sql
@/optware/product/owb.sql
@/optware/product/CreateClustDBViews.sql
host echo "SPFILE='+DATA/BRCFPRD/spfileBRCFPRD.ora'" > /optware/product/oracle/11.2.0/dbs/initBRCFPRD1.ora
@/optware/product/lockAccount.sql
@/optware/product/postDBCreation.sql
-- Contents of CreateDB.sql in Node1
$ cat /optware/product/CreateDB.sql
SET VERIFY OFF
connect "SYS"/"&&sysPassword" as SYSDBA
set echo on
spool /optware/product/CreateDB.log append
startup nomount pfile="/optware/product/init.ora";
CREATE DATABASE "BRCFPRD"
MAXINSTANCES 32
MAXLOGHISTORY 1
MAXLOGFILES 192
MAXLOGMEMBERS 3
MAXDATAFILES 3000
DATAFILE SIZE 700M AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE SIZE 600M AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
SMALLFILE DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE SIZE 20M AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
SMALLFILE UNDO TABLESPACE "UNDOTBS1" DATAFILE SIZE 200M AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
CHARACTER SET AL32UTF8
NATIONAL CHARACTER SET AL16UTF16
LOGFILE GROUP 1 SIZE 28672M,
GROUP 2 SIZE 28672M
USER SYS IDENTIFIED BY "&&sysPassword" USER SYSTEM IDENTIFIED BY "&&systemPassword";
set linesize 2048;
column ctl_files NEW_VALUE ctl_files;
select concat('control_files=''', concat(replace(value, ', ', ''','''), '''')) ctl_files from v$parameter where name ='control_files';
host echo &ctl_files >>/optware/product/init.ora;
spool offIf you look at scripts generated in Node2 and Node3 , you can see all scripts except the instance specific ones are commented using REM .
REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl add instance -d STOMPER -i STOMPER1 -n ugxtlprd186
REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl add instance -d STOMPER -i STOMPER2 -n ugxtlprd187
REM host /u01/product/oracle/11.2.0.3/dbhome_1/bin/srvctl disable database -d STOMPER
REM @/u01/product/CreateDB.sql
REM @/u01/product/CreateDBFiles.sql
REM @/u01/product/CreateDBCatalog.sql
REM @/u01/product/JServer.sql
REM @/u01/product/context.sql
<snipped > -
SQL LDR LKM generating incorrect CTL file
Hi,
The LKM for SQL LDR is generating incorrect CTL file for a fixed length data file. Due to this the ODI is erring out.
Here are the contents of the CTL file:
SnpsOutFile "-File=//Myserver/myfile.ctl"
OPTIONS (
SKIP=0,
ERRORS=0,
DIRECT=TRUE
LOAD DATA
INFILE "//Myserver/myfile.RDY"
BADFILE "//Myserver/myfile.bad"
DISCARDFILE "//Myserver/myfile.dsc"
DISCARDMAX 1
INTO TABLE ORA_SCHEMA.C$_0RAW_TABLE
C1_CHAR9 POSITION(:),
C2_CHAR2 POSITION(:),
C3_CHAR6 POSITION(:),
C4_CODE POSITION(:),
C5_RAWG_CODE POSITION(:),
C6_E_NUMBER POSITION(:),
C7_T_NUMBER POSITION(:),
C8_C_COLOR POSITION(:),
C9_D_COLOR POSITION(:),
C10_R_CODE POSITION(:)
Why is "POSITION(:)" not getting the numbers before and after ":" ?
I reverse engineered this file and have the correct values for "Physical Length" and "Logical Length"
TIA,
AnkitHi Ankit,
I think the column transformation mappings are set on the Source (radio button) in the Integration Interface Mapping window.
Change the column transformation mappings to be executed on STAGE .
It should resolve this issue.
Thanks,
Sutirtha -
Cannot save script generated web page
I found that safari cannot save a script generated page by (File -> Save as). I've written a simple test page as follow:
<html>
<body>
<script>
function OpenPopUpWin()
var generator=window.open('','save_win', 'width=645,height=600,resizable=yes,menubar=yes,toolbar=no,directories=no,locat ion=no,scrollbars=yes,status=yes');
generator.document.write('testing');
generator.document.close();
</script>
test (<-this link call the OpenPopUpWin() function)<br>
</body>
</html>
Does anyone have similar problem before? Is it a bug in safari? Are there any workarounds if I want to save the page?I guess I'm still not understanding your problem. I took your original script, made the one change as mentioned in my earlier post, and it worked.
It's quite likely/possible that Apple filter javascript embedded in posts - all sorts of nasty things could happen if they didn't, but you're not using Safaro to create your pages, are you?
Just as an example, this seems to do what you describe - copy and paste it into a new text document and see what happens:
<pre class=command><html>
<body>
<script>
function OpenPopUpWin()
var generator=window.open('','save_win', 'width=645,height=600,resizable=yes,menubar=yes,toolbar=no,directories=no,locat ion=no,scrollbars=yes,status=yes');
generator.document.write('testing');
generator.document.close();
</script>
<a href="#" OnClick="OpenPopUpWin()'>test</a> (<-this link call the OpenPopUpWin() function)
</body>
</html>
</pre> -
Revision: 13067
Revision: 13067
Author: [email protected]
Date: 2009-12-17 12:48:20 -0800 (Thu, 17 Dec 2009)
Log Message:
Fix for html-wrapper ant task generates incorrect wrapper files for flash player version detection.
QE notes: None.
Doc notes: None
Bugs: SDK-18826
Reviewed By: Paul
Tests run: checkintests
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-18826
Modified Paths:
flex/sdk/branches/3.x/modules/antTasks/src/flex/ant/HtmlWrapperTask.javaCould you try creating a new Firefox profile to see if that helps?
8. Make a new profile
Chris -
Revision: 1751
Author: [email protected]
Date: 2008-05-15 14:21:43 -0700 (Thu, 15 May 2008)
Log Message:
Bug: BLZ-174 - MessageClient.testMessage() is incorrectly doing a string compare for the subtopic header of an inbound message against the subtopic value (which may contain wildcards) that the Consumer is using.
QA: No - customer verified the fix.
Doc: No
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-174
Modified Paths:
blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/MessageClient.java
blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/MessageService.javaIf you create a metadatatype with a single metdata block, and you reference that in your vm/cm cell attribute using a *one* based index, Excel seems to see the link and it honors it when saving the spreadsheet.
So, I ended up with something like:
<c ... cm="1"/> (I'm dealing with cell metadata, but the concept is equivalente to value metadata)
<metadataTypes count="1">
<metadataType name="MyMetaType" .../>
</metadataTypes>
<futureMetadata count="1" name="MyMetaType">
<bk>
<extLst><ext
uri="http://example" xmlns:x="http://example"><x:val>87</x:val></ext></extLst>
</bk>
</futureMetadata>
<cellMetadata count="1">
<bk><rc
t="1" v="0"/></bk> <!-- this is what gets referenced as cm=1 on the cell -->
</cellMetadata>
Hope this helps. -
Select from table in group of columns and generate a sequence number
I have to select data from a table in group of columns and generate a sequence for every group resetting the sequence to start from 1 onwards.
For example:
Data:
Col1 Col2 Col3 Col4
A NA KA 2009-08-13
B NA KA 2009-08-13
C NA KA 2009-08-13
A NA KA 2009-08-13
B NA KA 2009-08-13
A NA KA 2009-08-13
Expected output from Select Statement:
Col1 Col2 Col3 Col4 Seq_No
A NA KA 2009-08-13 1
A NA KA 2009-08-13 2
A NA KA 2009-08-13 3
B NA KA 2009-08-13 1
B NA KA 2009-08-13 2
C NA KA 2009-08-13 1
How can this be possible with a SELECT statement? Is it possible to assign seq numbers for a group of columns and reset it when it changes? In the above example, all columns form the key to generate the seq number
I know it can be done using Stored procedures and that is how I am doing it now by introducing a temporary table.
Can anyone help me in this regard? Please let me know if the question is vague to understand!
Thanks,
Nachiwith t as(select 'A' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
union all
select 'B' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
union all
select 'C' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
union all
select 'A' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
union all
select 'B' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual
union all
select 'A' col1,'NA' col2 ,'KA' col3,'2009-08-13' col4 from dual)
select t.*,row_number() over (partition by col1,col2,col3,col4 order by col1,col2,col3,col4) from tYou can replace partition by col1,col2,col3,col4 with only columns that you need for grouping condition
and also order by you can just do on the column you need. -
Adobe Request: multi-column scripts
Hi guys/gals,
We're looking for examples of multi-column scripts as we develop Story. If any of you here have real-world examples and want to share them, please send me a private message on how we can get them.
Thanks in advance for any assistance!
DennisI don't have any to hand, but I recall working on a medical program as a grip that used one. The format was 4 columns, Program time, video, graphic, and audio. It worked as both a shooting and editing script.
I've been trying to get a producer I work with to buy some software so we can have such a script, instead of his preferred "winging it" style of working, which usually means I go scrounging for a shot in post because we don't have enough footage. -
Any body has any idea where i can download the WLST Script Generator?
It used to be under codesamples of BEA where it is no longer available after the oracle aquisition of bea.
the name of the jar file is: wlstScriptGenerator.jar for WLS 9.x and 10.xThe number '1129323703654' is a stringified time stamp. If you convert that number to a date you will get,
from java.util import Date
d = Date(1129323703654L)
print d
Fri Oct 14 17:01:43 EDT 2005
Right now there is no way to control the names, the script generator uses the stringified timestamp for each script that it creates (to make the script names unique).
Thanks,
-satya
BEA Blog: http://dev2dev.bea.com/blog/sghattu/ -
I'm looking for an XML script generator using an editor. I'd like to present input fields for XML attributes and values, with a title, without any XML decorations. Basically I'd like to provide a template for presentation of user input fields coupled with a template for generating an XML script from user inputs. I'm new to XML. Is there anything like this out there or do I have to build it?
thanks
artWell yeh, I've looked at some of them briefly Remembering I'm a novice, what I'm look for is a customizable tool which will display attributes and values on the screen with my custom layout. I'm starting to look at Stylus Studio and they mention using an XSLT Style Sheet, and I will be looking at that now. I'd rather not spend much of the rest of my short life reading documents, they begin to get overwhelming. What I was hoping for was a visual construction tool (as in the swing tools or in Microsoft's Visual Sturdio) or a way of tailoring the displays so that unneeded output is removed.
Any ideas? Most particularly, anything in the open software marketplace?
art -
Does Adobe Story Free have a Type and Template for Stageplay format and if so where do I click for it? In the Type button I could only find, Screenplay, TV script, AV script, Two column script, and other but nothing for Stageplay.
Does Adobe Story Free have a Type and Template for Stageplay format and if so where do I click for it? In the Type button I could only find, Screenplay, TV script, AV script, Two column script, and other but nothing for Stageplay.
-
Oracle contracts generating incorrect start dates/pricing
Hi,
Oracle contracts generating incorrect start dates/pricing
Semi Annual Invoices being automatically generated with the incorrect start date/pricing.
We have 8 years of pricing instead of 6 yrs. Contracts are being terminated and recreated to correct immediate billing issues.
Please help me out Why Oracle contracts generating incorrect start dates/pricing.
Thanks In Advance,Which Apps release is this happening in?
-
Bug - Create script generates checksum error
There is a bug in the SQL Workshop where if a user clicks Home > SQL Workshop > Drop down menu for SQL Scripts > Create, a check sum error is generated. This is happening on apex.oracle.com 3.2.1.00.11.
The menu is on 4500:3002 and the error displays on 4500:60.Hi xraygirl
try the below, youll need to change the name of your window to suit.
tell application "System Preferences" to activate
delay 2
tell application "System Events"
tell process "System Preferences"
click menu item "Displays" of menu "View" of menu bar 1
delay 3
--tell button "Detect Displays" of group 1 of tab group 1 of window "Display" to click
click button "Detect Displays" of group 1 of tab group 1 of window "Philips 190S" -- change the name of your window
end tell
end tell
Budgie -
Sql developer database diff generating incorrect diff scripts
I am wondering whether this may have to do with incorrect preference settings. Note I am NOT diffing 2 schemas that I log in as. That shouldn't matter. I log in as a DBA user.
I am getting alot of alter statements such as
alter table add constraint NOT NULL
This errors out because the table already has a NOT null constraint.
I then checked both databases to make sure I didn't run my diffs in the wrong direction. Both databases have this NOT NULL constraints.
I just checked a create table statement. The table exists in both databases. What am I missing here? Is there some setting in preferences about how database diff works?Can reproduce same issue in 11gR1.. DIFF works fine in 10gR2.
I noticed that 10gR2 allows something like:
DBMS_METADATA.SET_TRANSFORM_PARAM(th,'SEGMENT_ATTRIBUTES',0);
and 11GR2 returns error similar to error SQLNAVIGATOR returns while running diff:
DBMS_METADATA.SET_TRANSFORM_PARAM(th,'SEGMENT_ATTRIBUTES',0);
end;
Error report:
ORA-31600: invalid input value 0 for parameter SEGMENT_ATTRIBUTES in function SET_TRANSFORM_PARAM
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "SYS.DBMS_METADATA_INT", line 8424
ORA-06512: at "SYS.DBMS_METADATA_INT", line 9484
ORA-06512: at "SYS.DBMS_METADATA", line 3950
Its safe to assume that this is SQLDEVELOPER bug. Hope it will be addressed sometime.
Edited by: user5420304 on Jun 15, 2010 10:29 AM -
Rewind and script generates a bug
Hello,
I have on my first screen an animation.
When people come back to the first screen, i want to jump the animation.
I go directely to the frame, at the end of animation.
I put this script and it's working.
time is variable, that i create.
Check if (time is greater than 100)
begin
Continue
rdcmndGotoFrameAndResume := 570
rdcmndResume := 571
end
Or Else
begin
time := 110
end
So from my menu on first page, the button "chapter3" jump to slide 43, who is my chapter 3.
When i click on rewind, i come back on my menu, (frist screen), and i click again on "chapter3".
I don't have the jump to slide 43, and stays on the first screen.
Anyone have an idea please ?
ThanksHello everyone,
I made animation on first page and when i want to come back to the first page, i want to jump this animation.
My animation is from frame 0, to the 570. When i click on rewind, i want to be on frame 570 of the first slide.
Thanks.
Maybe you are looking for
-
Orcl:query-database gives error when using to_char function in select stmt
hi Use Case : We get a csv file ("bank_import_<MMDDYYYYY>.csv") from the bank containing the transactions occured for the month. The date in the filename is retrieved into string and i need to convert this string to the format "MON-DD-YYYY". This is
-
Error in Sun XML schema for servlet2.4 deployment descriptor?
Hi, I'm including the new XML schema for version 2.4 of the servlet standard in my web.xml deployment descriptor, using http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd When I try to save the XML file, XMLSpy reports an error in the schema file itself
-
Why are my floats not working?
Hi! Once again, I'm puzzled! Here I have two examples: http://www.doktorwear.com/test/tuotteet.htm http://www.doktorwear.com/test/tavalliset.htm On the first one, the floats for the divs that contain the images are working great. But on the second on
-
"Batch Synchroniz​ation" in Parallel Model
Hi, I'm working on a project with up to 15 UUTs which are supposed to be running using the parallel model, since they have to be able to start and stop separately. There are conditions in which all active UUTs are paused and restarted upon request. C
-
How can I cancle the job that created by SGEN
Dear all, How can cancle the job that created by SGEN. after i run the T-code SGEN. I have shutdown the server. But after i restart the Server, the job is dead. but can not be cancled by SM37. When i terminate the job in the SGEN it can not