Extract all DDL of all dbms_jobs
Hi ,
We did export and import of all the schemas , But it didnt import all the dbms_jobs.
So we have to do it manually , Is there any simple way to extract DDL of all the Jobs.
Regards
Kumar
And your Oracle version number is?
Define "DDL of all dbms_jobs."
Do you mean the job definitions (dba_jobs.what) or the procedural code executed by those jobs?
Similar Messages
-
Hi,
Is there a way or a query to find out all DDLs fired on a particular database for today or yesterday?
Thanks,
BRK1) If you can assume that the DDL is all still cached, you could query v$sql
2) If you're in ARCHIVELOG mode and still have the logs from the time in question, you should be able to use LogMiner to extract all the SQL.
3) If you have enabled auditing of DDL, the information would be in your audit trail.
Justin -
Getting DDL for all oracle objects
I am working to get the DDL for all the oracle objects within my schema.
Some how I got the DDL but I can't got the comments associated with the oracle tables.
Shall I know what I am missing in using dbms_package I am currently using ..?
Below is the sql I am using to get DDL
SELECT dbms_metadata.get_ddl(replace(OBJECT_TYPE, ' ', '_'), OBJECT_NAME,OWNER)
FROM DBA_OBJECTS
WHERE OBJECT_TYPE in ('SEQUENCE',
'PROCEDURE',
--'DATABASE LINK',
'PACKAGE',
'PACKAGE BODY',
'MATERIALIZED VIEW',
'TABLE',
'INDEX',
'VIEW',
'FUNCTION')
AND
OWNER = 'Schema_1';
Can I know what needs to be changed to above sql to get comments on oracle tables along with their DDL.
Any advise is highly appreciated.
Thanks
JP>
I am still MISSING ';' after every sql and comments.
>
You only get what you ask for. If you want modifications you have to set the proper transform parameters.
See DBMS_METADATA in the PL/SQL Packages and Types doc
http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_metada.htm
See SET_TRANSFORM_PARAM and SET_REMAP_PARAM Procedures and table 74-22 that list the parameters you can use
Here are some examples from Java code that I use depending on flags that have been set
-- set the transforms back to the defaults
String defaultTransform = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'DEFAULT'); END;";
-- do not include referential constraints
String ref_constraints = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'REF_CONSTRAINTS', false); END;";
-- do not include constraints
String constraints = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'CONSTRAINTS', false); END;";
-- do not include the schema prefix
String noschema = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'EMIT_SCHEMA', false); END;";
-- make it look pretty
String pretty = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'PRETTY', true); END;";
-- don't include the physical properties
String physicalProperties = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'PHYSICAL_PROPERTIES', false); END;";
-- don't include the segment attributes
String segmentAttributes = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SEGMENT_ATTRIBUTES', false); END;";
-- include a sql terminator for each statement
String sqlterminator = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SQLTERMINATOR', true); END;";The last one is what you are looking for. -
Looks like this is a new feature but doesn't have enough documentation. Does anyone know what it really is for?
What we want to do is not use GoldenGate for DDL replication in biderctional setup but do it manually in controlled fashion. In streams it maintains internal history of schema changes when DDL changes are applied.
Can someone suggest how to do it with GoldenGate? Please note we receive traffic on both DBs and will be a bidirectional setup.DDL EXCLUDE ALL is a special processing option that maintains up-to-date object metadata for
GoldenGate, while blocking the replication of the DDL operations themselves. You can use
DDL EXCLUDE ALL when using a method other than GoldenGate to apply DDL to the target,
but you want GoldenGate to replicate data changes to the target objects. It provides the
current metadata to GoldenGate as objects change, thus preventing the need to stop and
start the GoldenGate processes. DDL EXCLUDE ALL does not require the use of an INCLUDE
clause.
To prevent all DDL metadata and operations from being replicated, omit the DDL
parameter entirely. The DDL trigger will continue to record the DDL operations to the
history table, unless disabled manually.
Combining DDL parameter options
The following is an example of how to combine DDL parameter options.
DDL &
INCLUDE UNMAPPED &
OPTYPE alter &
OBJTYPE ‘table’ &
OBJNAME “users.tab*” &
INCLUDE MAPPED OBJNAME “*” &
EXCLUDE MAPPED OBJNAME "temporary.tab*"
The combined filter criteria in this statement specify the following:
● INCLUDE all ALTER TABLE statements for tables that are not mapped with a TABLE or MAP
statement (UNMAPPED scope),
❍ only if those tables are owned by “users” and their names start with “tab,”
● and INCLUDE all DDL operation types for all tables that are mapped with a TABLE or MAP
statement (MAPPED scope).
● and EXCLUDE all DDL operation types for all tables that are MAPPED in scope,
❍ only if those tables are owned by “temporary.”
❍ and only if their names begin with “tab.” -
Extracting email address from all mailbox in Exchange 2010
Dear Team,
I've requirement where i need to pull all the email addresses from all user mailbox accounts in exchange 2010. I need all email addresses to which we've send emails to/Communicated with and all received email addresses. Is there any script or Power Shell
command to extract email addresses from all mailboxes in our domain(Send and Receive)
Appreciate your quick help.
Thanks,
Mike BaigNo it is not very clear but this is what I understood...
"which we've send emails from our domain" - From address should be always primary smtp address.
"which we've received emails to our domain" - This can be secondary smtp addresses as well.
To get all email addresses (including secondary smtp addresses) you can use below...
get-mailbox -ResultSize unlimited | Select displayname, primarysmtpaddress, @{Name="Email Addresses";Expression={[string]::join(', ', $_.EmailAddresses)}} | Export-Csv emailaddress.csv -NoTypeInformation
Blog |
Get Your Exchange Powershell Tip of the Day from here -
Hi can anyone tell me if this is normal, my computer has been extracting an adobe download all night???? and it has cost me $60 in pre paid internet already, i hope it is going to work!!!
Where did you choose to download the install files too?
-
Need the find the all DDLs from the schema of 1 year old
Hi,
Can you please provide the information for the following databases, schemas within the given timeframe:
- LMS_MX / BATCH_MX / JMS_MX
– DWH_MX
Start: 01.01.2013
End: 31.12.2013
We need all DDL from the schemas above.
Thanks,
Can anybody help me out ,? how to find such details.?1978276 wrote:
i dont no , how to use audit logs..? can anybody guide me to find the details of 1 year..
Do you have auditing enabled? Default is not enabled for what you want to query. So unless you have specific auditing enabled, and the audit logs for that year period, you are out of luck.
Thus, the details are not available as you did not instruct Oracle to record the details.
Not an Oracle problem. Your problem.
And as rp0428 said - this begs the question as just WHAT is your problem? -
In co-pa extraction,if i select all the fieds,to bw side?
in co-pa extraction,if i select all the fieds,to bw side,?what would the error occur,else it will allow all?
Hi,
It will never give you an error but there are some dependencies which needs to be maintained based on tp get the values in the fields which the are populated.
See this link and it tells you about the depesndecies.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/fb07ab90-0201-0010-c489-d527d39cc0c6
Thanks
Ajeet -
How to search all columns of all tables in a database
i need to search all columns of all tables in a database , i already write the code below , but i've got the error message below when run this script
DECLARE
cnt number;
v_data VARCHAR2(20);
BEGIN
v_data :='5C4CA98EAC4C';
FOR t1 IN (SELECT table_name, column_name FROM all_tab_cols where owner='admin' and DATA_TYPE='VARCHAR2') LOOP
EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM ' ||t1.table_name|| ' WHERE ' ||t1.column_name || ' = :1' INTO cnt USING v_data;
IF cnt > 0 THEN
dbms_output.put_line( t1.table_name ||' '||t1.column_name||' '||cnt );
END IF;
END LOOP;
END;
Error report:
ORA-00933: SQL command not properly ended
ORA-06512: at line 7
00933. 00000 - "SQL command not properly ended"
*Cause:
*Action:
Any help pleaseSQL solutions by Michaels
michaels> var val varchar2(5)
michaels> exec :val := 'as'
PL/SQL procedure successfully completed.
michaels> select distinct substr (:val, 1, 11) "Searchword",
substr (table_name, 1, 14) "Table",
substr (t.column_value.getstringval (), 1, 50) "Column/Value"
from cols,
table
(xmlsequence
(dbms_xmlgen.getxmltype ('select ' || column_name
|| ' from ' || table_name
|| ' where upper('
|| column_name
|| ') like upper(''%' || :val
|| '%'')'
).extract ('ROWSET/ROW/*')
) t
-- where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
order by "Table"or
11g upwards
SQL> select table_name,
column_name,
:search_string search_string,
result
from (select column_name,
table_name,
'ora:view("' || table_name || '")/ROW/' || column_name || '[ora:contains(text(),"%' || :search_string || '%") > 0]' str
from cols
where table_name in ('EMP', 'DEPT')),
xmltable (str columns result varchar2(10) path '.')
TABLE_NAME COLUMN_NAME SEARCH_STRING RESULT
DEPT DNAME es RESEARCH
EMP ENAME es JAMES
EMP JOB es SALESMAN
EMP JOB es SALESMAN
4 rows selected. -
Collapse All and Expand All functionality in Tree
Hi All,
I am using TreeByNestingTableColumn element to display the tree hierarchy .
Does anyone knows how to implement Collapse All and Expand All functionality for this tree (if someone have sample code for these functionality then it will be great for me) ?
Thanks in advance.
Ravi.Hello Ravindra Sahu,
Code for EXPAND ALL button:
*step 1:Access node
lo_nd_tree_hierarchy = wd_context->get_child_node( name = wd_this->wdctx_tree_hierarchy ).
*step2: Extract all the table entries from node which is binded to table
lo_nd_tree_hierarchy->get_static_attributes_table(
IMPORTING
table = lt_tree_hierarchy ).
*step3:set element attribute Expanded to abap_true
loop at lt_tree_hierarchy ASSIGNING <ls_tree_hierarchy>.
<ls_tree_hierarchy>-expanded = abap_true.
endloop.
*step4: Finally the updated data needs to be binded.
lo_nd_tree_hierarchy->bind_table( lt_tree_hierarchy ).
Code for COLLAPSE ALL button:
*step 1:Access node
lo_nd_tree_hierarchy = wd_context->get_child_node( name = wd_this->wdctx_tree_hierarchy ).
*step2: Extract all the table entries from node which is binded to table
lo_nd_tree_hierarchy->get_static_attributes_table(
IMPORTING
table = lt_tree_hierarchy ).
*step3:set element attribute Expanded to abap_true
loop at lt_tree_hierarchy ASSIGNING <ls_tree_hierarchy>.
<ls_tree_hierarchy>-expanded = abap_false.
endloop.
*step4: Finally the updated data needs to be binded.
lo_nd_tree_hierarchy->bind_table( lt_tree_hierarchy ).
Please don't forget giving REWARD points...:-)
Edited by: Bharath Komarapalem on Jul 11, 2008 9:17 AM -
My iPod Touch is running on ios 7. In the last two and a half all the apps of my iPod have been suddenly wiped out twice. I had to download all the apps all over again. Why has it happened?
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
Hi Apple Team, my iphone can't share bluetooth files with my macbook pro. But other devices can share bluetooth files with my mac book pro. Please, kindly open up bluetooth to accept all connections from all devices. Now it difficult for me to share bluetooth files from my mac bookpro to my iphone, unless i attached it through email.
We need it to be acceptable to all devices.
Thank you!You can tell Apple directly at the link below.
http://www.apple.com/feedback/iphone.html -
Select all and deselect all in table control
Hi experts,
I want to make the select all and deselect all options in my table control.
But i can't able to do that one. Kindly suggest me how to do that one.
one more thing, if i select some rows in the table control, and press save it should be saved in some other table. how can i implement that one.
Waiting for ur reply.
Regards...
Arun.Hi Arun,
In the context node that you bind to the table, set the cardinality as 0..n and selection as 0..n. In the UI element Table, set the property selectionMode as 'multi'. Then a toggle button for select/deselect all will appear automatically in your table. You can see it in the top left corner.
For your second question, after selecting the elemets and pressing 'save', in your event handler, do a get_selected_elements( ) on your node. This will return you a set of context elements. Loop through each element and do a get_static_attributes to get the rows. Then you can append these rows to another internal table and bind it to the context. Bind your second table to this node. If the two tables are in different views, the context nodes need to be present in the component controller and mapped to the views.
Hope this helps.
Regards
Nithya -
hey iphone an iphone 3g and i only have about 13 apps and the yellow bar on itunes for my phone is way to big i deleted all my photos all my music every thing i ryed restoring ans all it still takes up space for sum reason ?? please someone help me
If Other (the yellow bar) is too big something is corrupted. The only solution (that I know of) is to restore from your most recent backup using iTunes (see http://support.apple.com/kb/ht1766).
-
2 iphone 4, 1 computer. i upgraded to ios 5 and just updated my wifes phone as well. her phone got wiped of all apps and all my contacts were put on her phone. we had been using the same apple id but different user acct on our laptop. How do i get her phone back to normal??
Have your wife log in to her user account on the laptop. Launch iTunes, then connect her phone to the computer with the USB cable. Sync. That should put back all apps and media. Since you already upgraded her to iOS 5 she'll have to manually enter all her settings and preferences, and organize her home screens.
Maybe you are looking for
-
Application hangs while trying to create a socket
Hello, We have a third party application that makes HTTP connections using a old version of HTTPClient. Recently we have run into problems where the application hangs as one thread seems to hang while trying to create a socket (thread dumps show the
-
How to edit audio file in iTunes, rename file
I finally figured out how to join mulitple tracks I'd ripped from a CD into one file, but now there's space between each track as it plays. Is there a way for me to edit the spaces out? Where do I find the file for the new track? I need to upload it
-
whenever I try to save a PDF document on mu iPad, it will only open up as text in my email and won't give me an option to download and save. Any suggestions?
-
I can not reply to e mails that where sent to me on AOL or opt online. They never get sent out after I hit reply and type them in. Now I am having trouble getting any e mails.
-
Transaction key in Accounting document
Dear gurus, I want to see the transaction/event keys (such as: BPX, GBB,...) for each relevant account in Accounting document but cannot. I remember that just to change layout of the document OR see the detail of the account in that document. But rig