How do I generate DDL for changes in model
Hi
I'm using SQL Developer 4 to mantain my logical and physical diagramas. I know how to generate the diagram and generate DDL. But how do I only generate the DDL changes?
Regards,
Néstor Boscán
Basically you want to compare the model with the data dictionary, see the big arrow buttons up on the main toolbar.
In depth answer here:
http://www.thatjeffsmith.com/archive/2012/03/diffs-and-alter-scripts-via-oracle-sql-developer-data-modeler/
Similar Messages
-
How does the generate ddl of the ODI works ?
how does the generate ddl of the ODI works and is it used to generate ddl of any technology ?
what is the use of interface in and interface out ?The best way to solve this is to look at the module functions that clears the buffers and use it.
Closed. -
How do I revalue inventory for change in cost?
Hi,
How do I revalue inventory for change in cost? BOM exists for manufactured Portland cement, backflusing relieves inventory per this BOM, however, old cost still appears as valuation for this product. I did a cost estimate for this product (2000000004), marked, and released this product. Effective date of this BOM was 07/01/2009.
kindly help me
Thanks
SuvarnaDear Suvarna,
Once after taking a new released cost estimate for a product,it's stock gets automatically revaluated as per the new price or
say new value.
Can you please confirm whether in the accounting view of the material master you are able to see the last price change date is
same as your cost estimate date.Only then it means the new price was marked and stamped properly and based on the new
standard price the stock get's valuated automatically.
There is no other transaction required for this process.
Check and revert back with your further queries.
Regards
Mangalraj.S -
How much does it cost for changing n81 8gb case
hi
how much does it cost for changing n81 8gb case
in my country (Iran) is 100 dollar and i think in other country is cheaper like UAE . can anybody answer me how much does it cost in other countery?Changing the case yourself will void the warranty. You are highly likely to cause damage unless you know exactly what you are doing.
Also avoid the 3rd party cases from ebay or places like that as most of them don't fit properly.
A nokia care point can fit original nokia covers for you without voiding the warranty.
Care points/service centres and repair info:
UK • Europe • Asia-Pacific • USA •
Canada • Middle East and Africa
Elsewhere: Click here, select your country, go to the support section, then select repair.
Message Edited by psychomania on 19-Aug-2008 06:32 PM -
Generate DDL for objects (just for fun)
I'm been putting together queries that generate DDL. Considering exp/imp ROWS=0 can be used, or DBMS_METADATA there is little point. Though, with restricted access those may not be possible options, but then an external tool like TOAD could do it. Therefore, my justification for this is "just for fun".
Here is one for TABLEs. It does not generate the CONSTRAINTs (which i try to get in the next query), and no storage clauses. This query is also formatted for fixed width font with tabs equivalent to eight characters:
SELECT
SUBSTR
REPLACE
CASE
WHEN Columns.Column_Id = 1 THEN
'CREATE TABLE ' || Columns.Table_Name
|| CHR(10) || '('
|| CHR(10)
END
|| ' ' || Columns.Column_Name
|| RPAD(CHR(09), Tabs - FLOOR((LENGTH(Column_Name) +1) / 8), CHR(09))
|| Data_Type
|| CASE
WHEN Data_Type IN ('CHAR', 'VARCHAR2') THEN '(' || Char_Length || ')'
WHEN Data_Type = 'FLOAT' THEN '(' || Data_Precision ||')'
WHEN Data_Type = 'NUMBER' THEN
CASE WHEN Data_Precision IS NOT NULL THEN '(' || Data_Precision
|| CASE WHEN Data_Scale IS NOT NULL THEN ', ' || Data_Scale END
||')'
END
END
|| CASE
WHEN Data_Default IS NOT NULL
THEN
RPAD
CHR(09),
CASE Data_Type
WHEN 'CHAR' THEN CASE Char_Length WHEN 1 THEN 2 ELSE 1 END
WHEN 'DATE' THEN 2
ELSE 1
END,
CHR(09)
|| 'DEFAULT '
|| (
SELECT
ExtractValue
DBMS_XMLGEN.GetXMLType
SELECT
Data_Default
FROM
All_Tab_Columns
WHERE
Owner = ''' || Columns.Owner || '''
AND Table_Name = ''' || Columns.Table_Name || '''
AND Column_Name = ''' || Columns.Column_Name ||'''
'ROWSET/ROW/DATA_DEFAULT'
FROM
Dual
END
|| CASE
WHEN Columns.Column_Id = Info.Total_Columns
THEN CHR(10) || ');' || CHR(10) || CHR(10)
ELSE ','
END,
',' || CHR(10) || CHR(10),
',' || CHR(10)
1,
181
) Statement
FROM
All_Tab_Columns Columns,
SELECT
Owner,
Table_Name,
MAX(Column_Id) Total_Columns,
MAX(FLOOR((LENGTH(Column_Name) + 1) / 8)) + 1 Tabs
FROM
All_Tab_Columns
WHERE
Owner = 'SYS'
GROUP BY
Owner,
Table_Name
) Info
WHERE
Columns.Owner = Info.Owner
AND Columns.Table_Name = Info.Table_Name
ORDER BY
Columns.Owner,
Columns.Table_Name,
Columns.Column_Id;This next query get CONSTRAINTs. No formatting is used, because it becomes quite unweildy (though, if it used multiple lines, that would change). Another interesting thing is whether the CONSTRAINT names were generated or not. If they were generated, this still uses the old name and does not generate a new one:
WITH
Cons_Columns
AS
SELECT
Owner,
Constraint_Name,
SUBSTR
REPLACE
REPLACE
XMLAgg(XMLElement("A", Column_Name)
'<A>',
'</A>'
4
) || '"' List
FROM
SELECT
Owner,
Constraint_Name,
Column_Name
FROM
All_Cons_Columns
ORDER BY
Position
GROUP BY
Owner,
Constraint_Name
SELECT
'ALTER TABLE ' || Table_Name
|| ' ADD CONSTRAINT ' || Constraint_Name
|| ' '
|| CASE Constraint_Type
WHEN 'C' THEN 'CHECK'
WHEN 'U' THEN 'UNIQUE'
WHEN 'P' THEN 'PRIMARY KEY'
WHEN 'R' THEN 'FOREIGN KEY'
END
|| '('
|| CASE
WHEN Constraint_Type = 'C' THEN
SELECT
ExtractValue
DBMS_XMLGEN.GetXMLType
SELECT
Search_Condition
FROM
All_Constraints
WHERE
Owner = ''' || Cons.Owner || '''
AND Constraint_Name = ''' || Cons.Constraint_Name || '''
'ROWSET/ROW/SEARCH_CONDITION'
FROM
Dual
WHEN Constraint_Type IN ('P', 'R', 'U') THEN
SELECT
List
FROM
Cons_Columns
WHERE
Cons_Columns.Owner = Cons.Owner
AND Cons_Columns.Constraint_Name = Cons.Constraint_Name
END
|| ')'
|| CASE Constraint_Type
WHEN 'R' THEN
SELECT
' REFERENCES (' || List || ')'
FROM
Cons_Columns
WHERE
Cons_Columns.Owner = Cons.R_Owner
AND Cons_Columns.Constraint_Name = Cons.R_Constraint_Name
|| ' ON DELETE ' || Delete_Rule
ELSE ''
END
|| ' ' || DEFERRABLE || ' ' || DEFERRED
|| ' ' || VALIDATED || ' ' || STATUS || RTRIM(' ' || RELY)
|| ';'
FROM
All_Constraints Cons
WHERE
Owner = 'SYS'
ORDER BY
1,
Constraint_Name;Shoblock, thanx!
For NUMBER is was using a wrong COLUMN, and also in the wrong order. Serves me right for not following the documentation. And, i just ignored FLOAT. But not it mostly matches DESC (except this query shows the ", 0" where DESC drop it instead).
I fixed the query above.
The XML part that gets the long has a failure. If the Data_Default contains an XML special char it will get encoded. The way to not encode it, it looks, requires PL/SQL. Which means it would not be done in one query (without a FUNCTION).
I am curious if anyone else is interested in such queries, whether for "fun" or otherwise. -
SQL*Developer 2.1 - Not Generating DDL for Different Users
Using SQL*Developer Version 2.1.0.63 I get an error trying to generate DDL from another user, that has access to many other schemas. It looks to me like Sql Developer is calling the DBMS_METADATA package from within other PL/SQL.
I am receiving the following error:
ORA-31603: object "ACCOUNT_TYPE_LKP" of type TABLE not found in schema "POR_OWN"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "SYS.DBMS_METADATA", line 3241
ORA-06512: at "SYS.DBMS_METADATA", line 4812
ORA-06512: at line 1
I would receive these same errors in SQL Developer 1.5, but the DDL would still generated. It was picking something up, even though it had an error.
Our DBA has not been able to provided a work around. He says you have to login directly as the owner of the objects to use dbms_metdata in this fashion.
Is there any work around for this? I really need to be able to get DDL and I do not want to go back to 1.5 (I like the other new features of 2.1).
Thanks,
TomWe have several users currently using SQL Navigator and/or TOAD. We would like them to switch to SQL developer, but part of their job is to view the source of views in another schema. They have select privileges on the underlying tables and are able to see the source using other tools. Using SQL Developer, they receive on ORA-31603 because it's calling dbms_meta. Note ID 1185443.1 describes the issue and suggests granting the users the SELECT_CATALOG_ROLE.
We are hesitant about granting this role to these users which allows access to ever 1,700 objects, plus execute privileges to 4 objects.
Support indicated that Enhancement Request 8498115 addresses this issue.
Is this something that may be addressed in the next release?
Thanks,
Paul -
How to create the request for change of selection text into other language.
Hi,
In my object requirement is that when login through Japanese language, then on selection screen selection text should appear in Japanese language. For that I have maintained the text in Japanese language the program where we define the selection text there from translation I have maintained the text in Japanese but while maintain the text it didn't ask me for REQUEST, because of that I am not able to transport the changes to next system, so I want know how to create the request for this case.
ThanksHello Chetan,
You could goto the selection screen texts by goto-> selection texts,
Then you could again goto -> Translation
or
Other-> Translation(Not sure )
Then double click on the Program you should be able to see the Texts that need translation, now change something save and come back and try to activate, now it should propose for a new Transport Request.
Either create a new transaport request or give one that you have given for the program.
Hope the issue is resolved. -
How to find the workflow for Change Request for the PO's
Hi All,
We have a PO which is pending and we can't receipt it again nor make payment on this. After checking the Approval history for that PO we found that the change request has been made. The change request was to change the amount to be paid to R39196 instead of R58237.00. We don't know where to check the workflow for the change request to identify the cause.
what i need to know is how to find the workflow for that change request? The other workflows can be checked using the po_header_id for the PO's but i am confused with the change request workflow
Your input will be highly appreciated.
Thanks in advance
Rgds,
SoniaFor 11.5.10.2 run this query to determine the keys to search on:
Select wf_item_type, wf_item_key from APPS.po_change_requests where document_type = 'PO' and Document_num = 'put-PO-number-here'
Then use the keys returned by the query to look up the Workflow in
Workflow Administrator Web Applications / Administrator Workflow / Status Monitor
Search using the results returned in fields "Type Internal Name" and "Item Key" in Status Monitor
The query for change requests on a specific Requisition would be:
Select wf_item_type, wf_item_key from APPS.po_change_requests where document_type = 'REQ' and Document_num = 'put-Req-number-here' -
How do I generate documentation for a sequence file hierarchy?
I am trying to generate documentation for all of the sequence files used in my test suite. Some of the tests are kinda complex with nesting to eight to ten levels with hundreds of sequence files. The sequence file documentation tool will only let you document the active sequence file and there doesn't appear to be any way to recursively search for the sequence files in LV or TS. Does anyone have a way to do this?
Hi lars,
For each sequencefile you will need to create a reference to it by use of the Engine.GetSequenceFile() method.
Next create a new context by using the SequenceFile.CreateNewContext(), use the SequenceFileObj reference returned by the GetSequenceFile() method.
Once you have the SeqenceContext reference, use this as the parameter to the second step which calls a dll in docgen.seq, (sorry can not remember what is called at the moment). The at the moment this parameter is ThisContext reference. Probably best to make a copy of this sequencefile (docgen.seq) and make the modification to the copy.
On the second step, open up the specify module dialog and change the ThisContext to your new variable holding your new SequenceContext. Close the sepecify dialog.
Some where in your cleanups you will need to set the New Sequence Context to Nothing and call the ReleaseSequenceFile() method passing it the sequencefile reference. Releasing the reference to the sequence file maybe a bit tricky because if the engine is still using the reference, then it will not be released.
I have tried this and it did generate a document of a sequencefile not previously loaded. My only problem was releasing the sequencefile.
I am not suggesting that this is a usable solution, because you wouldn't want the dialog window opening up for each sequence file. This maybe a starting point for you.
Regards
Ray Farmer
Regards
Ray Farmer -
How can I fix waiting for changes to be made and error -54 during sync with 7.1.2
After updates my iphone5, ipad mini and ipad 3 to ios 7.1.2 cannot sync any of them due to error-54 or waiting for changes to be applied. Was able to sync all before this update. What is wrong? How can I fix?
Eject the device.
Close and relaunch iTunes.
If the problem continues, restart the computer and the device. -
How to maka an userinterface for changing comports
Hi
I need to to an exe with LV code, that has an easy to use interface for changing comports.
The comport change interface is only to be seen when the user chooses to change comport, once this is done the menu is to disapear untill needed again.
I'm using LV 6.02.
I need examples please!
J;-)Hi,
Insert this subVI in any place of your diagram, where you want to reinit serial port settings.
Good luck.
Oleg Chutko.
Attachments:
Ser_Set.vi 48 KB -
How to use BAPI Program for change workcenter in co02?
Hi Abapers.
Anybody please tell me how to change the workcenter in CO02 using BAPI Programe.
Please give me sample of this.
I will give urs reward of points.
Thanks
Regards,
S.Muthu.Hi,
Use the Function module CR_WORKCENTER_UPDATE
for workcenter change.
It is an update function module so you have to call it in update mode with a COMMIT statement to trigger it.
CALL FUNCTION CR_WORKCENTER_UPDATE IN UPDATE TASK
exporting...
imporing..
COMMIT WORK.
Note: only after the commit statement the function module will be called in update mode.
Regards,
Raj. -
How does the delta works for changes made to Sales Document
Hi Experts,
How does delta for 2LIS_11_VAITM for the changes made to Sales Order Header.....
Example:
If a sales order had 10 line items any changes at the item level are captured by 2LIS_11_VAITM
Could you please update me on how the changes made at Sale Order Header level like Change of contract Date...etc
Does those changes are captured by 2LIS_11_VAITM.......
Please updateHi,
SAP written lots of programs inside the Extractor, so it is not possible to tell how it will work, so you goto RSA2 in ecc and give the datasource and click on display and see the Function module and debug it you will know.
Thanks
Reddy -
How to catch the event for change dropdown value in alv
it has a column output by dropdown in alv. the dropdown type cl_salv_wd_uie_dropdown_by_idx.
now the problem is if change the dropdown value, i want to catch the event to change another column value.
how can i do it?This part contains other ALV initialization code
*... init ColumnSettings
DATA:
lr_column_settings TYPE REF TO if_salv_wd_column_settings.
lr_column_settings ?= wd_this->r_table.
DATA:
lt_columns TYPE salv_wd_t_column_ref.
lt_columns = lr_column_settings->get_columns( ).
DATA:
ls_column TYPE salv_wd_s_column_ref,
lr_col_header TYPE REF TO cl_salv_wd_column_header,
l_tooltip TYPE string.
LOOP AT lt_columns INTO ls_column.
CASE ls_column-id.
WHEN 'PLANETYPE'.
DATA:
lr_drdn_by_key TYPE REF TO cl_salv_wd_uie_dropdown_by_key.
CREATE OBJECT lr_drdn_by_key
EXPORTING
selected_key_fieldname = ls_column-id.
lr_drdn_by_key->set_key_visible( abap_true ).
ls_column-r_column->set_cell_editor( lr_drdn_by_key ).
WHEN OTHERS.
ENDCASE.
ENDLOOP.
DATA:
node_info TYPE REF TO if_wd_context_node_info,
lt_valueset TYPE STANDARD TABLE OF wdr_context_attr_value,
l_value TYPE wdr_context_attr_value.
node_info = wd_context->get_node_info( ).
node_info = node_info->get_child_node( 'FLIGHT_INFO' ).
data : lt_sflight type STANDARD TABLE OF sflight,
ls_sflight like LINE OF lt_sflight.
SELECT * from sflight into TABLE lt_sflight.
LOOP at lt_sflight into ls_sflight.
l_value-value = ls_sflight-planetype.
l_value-text = ls_sflight-planetype.
INSERT l_value into TABLE lt_valueset.
ENDLOOP.
node_info->set_attribute_value_set(
name = 'PLANETYPE'
value_set = lt_valueset ). -
Bug - when generating DDL for table
I'm not sure if this has been logged yet or not, but when i click on the sql tab of a table it generates the ddl to recreate the table fine the first time.
However if i then click on another tab and then come back to the table tab, when i go to the sql tab within this table tab the ddl is still displayed on the tab but it tries to regenerate it and then freezes, i have to kill raptor and restart it.I have the same problems with VIEWS.
Reproducing the error:
Open folder Views
Click on a view (opens window with all the view stuff, Columns, Data etc)
Click on tab SQL
Copy the select part
Open a worksheet and past the selected text
Go back to the View tab SQL with result Raptor hangs...(Generating DLL....)
Maybe you are looking for
-
Why can't I delete this audio clip or unlink it?
Please see uploaded screenshot. The soundtrack here is a continuous clip of music but I have snipped it to coincided exactly with the video clip above, and I've also snipped the Audio 1 clip at the same place. There's nothing above, ie all other tr
-
External HD refuses to let me format it
I have a Free Agent Pro that I was using on my Vista PC, formatted in NTFS. I removed all the files from it, and plugged it into my Imac to format it. Apparently I don't have PERMISSION to do that. Disk Utility won't let me, it grays out the buttons
-
Highlight dates in cal output with awk.
Lately I've stumbled across a problem (read: I had a stupid idea and now really want to make it happen) where I wanted to highlight significant dates in the terminal calendar cal. now I have a "working solution" which highlights the dates, however it
-
Doubts about Query Builder tool
Hi! We are using database link and the developed querys have many schemas. There is possible to use the Query Builder tool for multi Database schemas? How to do? There is possible to create query in Query Builder tool using database link? How to do?
-
How do I remove duplicate listings in iTunes window?
This is not what it seems. Long story short - I just bought a new MBA and migrated from a MB with most of my iTunes library on second partition of internal drive. Because that music did not "migrate," I just dragged it to the new computer. iTunes did