Taking backup of procedures,triggers,functions....
Hi to all
i have one user....i want to take backup of procedures ,triggers,functions of that user....as the no of procedure n triggers n functions r above 200...how i can take back up of this things i have to import this user at my client side.....as i have done export command but it didn't take procedures,triggers n functions...
tell me some way....
thank u in adbance...
bye
Oracle Version : 10g
Example
Used "exclude" clause with "expdb"
The following is an example of using the EXCLUDE statement.
expdp hr/hr DIRECTORY=dpump_dir1 DUMPFILE=hr_exclude.dmp EXCLUDE=VIEW,PACKAGE, FUNCTIONhttp://download-west.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_export.htm#sthref111
Similar Messages
-
Stored Procedures, Triggers and Functions
Can someone tell me the name of the table(s) in which procedures, functions and triggers are stored?
Procedure and function in USER_SOURCE
triggers in USER_TRIGGERS
Can someone tell me the name of the table(s) in which procedures, functions and triggers are stored? -
How to run the Oracle Triggers,Functions and Procedures from java
Hi ,
I want to execute the Oracle's Triggers, Functions and Procedures from java as like executing the SQL commands by using Execute statements.
Or can we have some other option for doing this.
Plz help me ...you can use CallableStatement interface of JDBC to execute any DBMS triger,stored procedure ....
refer any of the JDBC book for extra help
hope you got it
Azeem Ahmed -
Without calling stored procedure or functions from database
Hi,
I am using Jdeveloper 11.1.1.5.0.
=>How to do PL/SQL procedures and functions in ADF without calling stored procedure or function from DB?S, PL/SQL procedures and functions are done in Application Module class or in managed bean..By calling the stored procedures or functions from DB.
But I am asking how to do if DB doesn't have any procedures,triggers and functions. -
How can I use the procedures and functions in my library
hello, all
I have a pl/sql library MYLIB.pld, MYLIB.pll and MYLIB.plx.
How can I invoke procedures and functions there in JDeveloper?
Thanks.
DamonI am indeed using ADF BC to re-develop the oracle application.
Here is my situation:
We have an oracle form application.
Our objective is to try to re-use the existing sources in the form application as much as possible:
1. tons of procedures and functions in a pl/sql library(a file with extension name portfolioLib.pll or portfolioLib.plx);
2. tons of form-level triggers, data-block triggers and item-triggers;
3. tons of database stored procedures and triggers;
After doing a research on JDeveloper, we decide to use ADF Swing+ADF BC to re-develop the application.
My opinion for the above three kinds of sources in our form application is:
for 1: we try to move most of procedures and functions into database(except Form build-in);
for 2: we try to wrap those triggers in a SQLJ class;
for 3: we try to call database procedures and functions with PreparedStatment or CallableStatement;
I just do a test on a post-query trigger on a data-block:
I created a sqlj file, named testSQLJ.sqlj in the test.view package;
I tried to call it in createInstanceFromResultSet of testDeptVOImpl.java which is test.model package,
I was told that testSQLJ cannot be found there. why?
How can I call some classes from test.view package in some classes of test.model?
I read some documents about how to deal with post-query trigger in JDeveloper: create a view with SQL statement, but it seems that it does not support pl/sql statement there.
Can you give me some opinion about the above stuff?
I really appreciate your help.
Damon -
Difference between Stored Procedure & Stored Function
I want to know the difference between Procedure Procedure & Stored Function in compiler in oracle 10g.
Thanks in advanceI've been guilty of doing that myself but you can put a when others exception in a procedure also :-)
You can have an issue in forms triggers where it throws an exception for no known reason and the only way to throttle it is to have the everything exception. I think there is a bug in there that is exposed under some circumstances and everyone has run into it, that's my theory. You're definitely right that having the everything exception in the code leads to impossible to debug problems. I think we could use some error handling enhancements.
I'd like to see an all-purpose error function in forms. Instead of the customer having to program to catch all the various kinds of errors that can occur, plsql, database, forms, .... I'd like to be able to configure the form to have a built in error handling system show the error with an option to programatically handle the error unseen. The forms thing that it shows errors on the bottom of the screen does not work at all in my experience where we deploy forms. Windows by default has large icons and they cover up the error area. Even if you get the user to change the icons to small the users never see those messages. And they will not display errors in forms via the help menu either. (help,display error). I would like to be able to filter error messages, translate error messages with some kind of translation table (make user understandable), and have them pop up on the screen in a window.
I think some of the database functions that are "error-happy" should be provided in additional constructs. It is a design decision to have this throw an exception when the record doesn't exist:
select mycolumn into myfield from sometable where mykey = 'X';
I think many of us would prefer to have it simply not throw an exception if the record doesn't exist, so we don't have to remember what on earth the exception was called, and test the results of myfield and/or a status field.
How else to do this? How about this?:
minselect mycolumn into myfield, mystatus from sometable where mykey = 'X';
Here we define a new form of select called minselect that is reluctant to throw exceptions, but puts a status code in
the status field should someone have to know the difference of whether myfield was null in an existing record or if there was no qualifying record.
What's with the minselect? Well we would have a minselect and a maxselect that would find ONE qualifying record, the min or the max to get around that exception problem #2, select returning multiple values. (We would have the status reflect the fact there were multiple values.) -
Views, Procedures, Triggers being marked as invalid
Oracle 11g 11.2.0.2
Windows 64-bit
Standard Edition
Why are Views, Procedures, Triggers being marked as invalid when there has been NO ACTIVITY against the database?
I can correct them today (by recompiling, no changes are necessary); however tomorrow the same Views, Procedures, Triggers will be marked as invalid.
I can guarantee that there has been NO ACTIVITY in that time frame.
Is there some view I can check to verify that there was no activity in that timeframe?
ThanksI modified your query slightly, so I could see the results for the schema owner:
SELECT *
FROM user_objects
WHERE last_ddl_time > (SELECT Max(last_ddl_time) - 1
FROM user_objects)
Here are the results:
{Code}
OBJECT_NAME SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_TIME TIMESTAMP STATUS TEMPORARY GENERATED SECONDARY NAMESPACE EDITION_NAME
S1_CONTRACT_FORMAT_VIEW 116264 VIEW 16-JUL-2012 02.13.03 PM 15-MAR-2013 04.28.42 PM 2012-07-16:14:13:03 VALID N N N 1
S1_QUANTITY_ENTRY 113211 113211 TABLE 16-JUL-2012 02.01.19 PM 15-MAR-2013 04.30.15 PM 2013-03-15:16:30:15 VALID N N N 1
S1_PLC_DATA 113432 113432 TABLE 16-JUL-2012 02.01.51 PM 15-MAR-2013 04.30.30 PM 2013-03-15:16:30:30 VALID N N N 1
FIN_BALANCE_FORWARD_LOCATION 161145 161145 TABLE 15-MAR-2013 04.27.58 PM 15-MAR-2013 04.28.32 PM 2013-03-15:16:27:58 VALID N N N 1
PK_FIN_BALANCEFORWARD_LOCATION 161146 161146 INDEX 15-MAR-2013 04.27.58 PM 15-MAR-2013 04.27.58 PM 2013-03-15:16:27:58 VALID N N N 4
FIN_BALANCE_FORWARD_LOCAT_NDX1 161147 161147 INDEX 15-MAR-2013 04.28.20 PM 15-MAR-2013 04.28.20 PM 2013-03-15:16:28:20 VALID N N N 4
FIN_BALANCE_FORWARD_LOCAT_NDX2 161148 161148 INDEX 15-MAR-2013 04.28.20 PM 15-MAR-2013 04.28.20 PM 2013-03-15:16:28:20 VALID N N N 4
S1_COMMODITY_TESTER 161149 161149 TABLE 15-MAR-2013 04.29.51 PM 15-MAR-2013 04.30.03 PM 2013-03-15:16:29:51 VALID N N N 1
PK_COMMODITY_TESTER 161150 161150 INDEX 15-MAR-2013 04.29.51 PM 15-MAR-2013 04.29.51 PM 2013-03-15:16:29:51 VALID N N N 4
9 rows selected But, I now have 9 Functions that afre marked as invalid; if I do a recompile they are OK.
There was NOTHING happening to that database; it was a WEEKEND whn no-one would access it. -
How to find out list of procedures and functions inside a package
How I can find out the list of Procedures and Functions inside a Package.
Look at ALL_PROCEDURES and ALL_ARGUMENTS.
-
To build web based application for taking backup
Actually , I have prepared menu based scripts for taking backup.
Now what i want to make is WEB BASED APPLICAATION for taking backup. My idea is to build the Web Pages which will call the scripts which i have already buit . But I don't know how through Web Pages I am able to go in the server and call the scripts .
If anybody having any idea regarding this . Pls guide me I am very thankful to him/her.
Thanx
Waiting for valuable adviceDear Sandeep Saini,
You may develop the web application is used SDK DI Server.
Please refer to SDK help and sample for more information about DI Server.
Best Regards
Jane Jing
SAP Business One Forum team -
How to Call Procedure or Function
Hi,
How to call a procedure or function in apex, Please let me know
Thanks
SudhirHi,
This post might help
Re: How to Call procedure In Processes
Regards,
Jari -
How to write procedure or function or any sql statement for requirement
Hi,
i have a table named letter,it contains 2 columns named as letter_id and letter_content.
select * from letter;
letter_id letter_content
103 Dear MFR
103 This is in regards to the attached DM List
103 Please Credit us after reviewing it.
103 Thanks
103 Regards
103 xxxx
108 Dear customer
108 This is to inform that ur DM List is as follows
108 Credit us according to the Dm after reviewing it.
108 Thanks
108 Regards
108 xxxx
now my requirement is,i need send a parameter as letter_id to a procedure or function in pl/sql in oracle,the output should be as follows:
if we will pass parameter(letter_id) = 103 then it displays as follows:
Dear MFR
This is in regards to the attached DM List.Please Credit us after reviewing it.
Thanks
Regards,
XXXXX.
if we will pass parameter(letter_id) = 108 then it should displays as follows:
Dear customer,
This is to inform that ur DM List is as follows. Credit us according to the Dm after reviewing it.
Thanks
Regards,
XXXXX.
---------------------------------------------------------------------------------------------------------i am really appriciate ur help.
thank u so much for ur suggestions.
when i am uning line_seq its giving an error
ORA-00904: "LINE_SEQ": invalid identifier
so,in my table i had created a sequense named content_seq.
select * from letter;
content_seq letter_id letter_content
1 103 Dear MFR
2 103 This is in regards to the attached DM List
3 103 Please Credit us after reviewing it.
4 103 Thanks
5 103 Regards
6 103 xxxx
7 108 Dear customer
8 108 This is to inform that ur DM List is as follows
9 108 Credit us according to the Dm after reviewing it.
10 108 Thanks
11 108 Regards
12 108 xxxx
then i had used ur code as follows:
select linefrom ( select content_seq , letter_content || case content_seq when 2 then ' ' || lead(letter_content) over (partition by letter_id order by content_seq) end as line from letter where letter_id = 103 )where content_seq <> 3;
LETTER_CONTENT
Dear MFR
this is in regards to the attached DM List Please credit us after reviewing it
thanks
Regards
EXP
but when i take letter_id = 108 the format is comming different.it was unable to combine 2lines.
Message was edited by:
user579585
Message was edited by:
user579585 -
How to reconcile procedure or function in a mapping using OMB Plus?
HI,
Could any one please explain, how to reconcile a procedure or function used in a mapping?
Thank you,
Regards,
Gowtham Sen.Hi,
You can only reconcile Inbound (from Procedure to the mapping) :
OMBRECONCILE PROCEDURE \
'/[Project_name]/[Module_name]/[Procedure_name]
TO MAPPING '[Mapping_name]' \
OPERATOR '[for example name of a Post-Mapping Process in the mapping]' \
USE (RECONCILE_STRATEGY 'REPLACE', MATCHING_STRATEGY 'MATCH_BY_OBJECT_ID')
Hope that will help.
Best Regards
Samy -
Use of Procedure and Functions in ADF BC
Hi,
In ADF 11g
1. can I use oracle function and procedures ( having in and OUT parameters) to expose as service interface
2. if yes , How can this be done. and what are the allowed data types as input to procedure/function and can be returned by procedure/function
3. How the transaction control will be achieved using ADF BC service interface.
E.g. one ADF BC creates orders in order details and second creates Order lines in Order lines table. Now if order is created successfully but line creation fails then I want order to be rolled back also.
Thanks.google it out.
How to get two out param which is used in Procedure
http://sameh-nassar.blogspot.in/2010/01/create-plsql-function-and-call-it-from.html
http://adf-tools.blogspot.in/2010/09/adf-function-call-from-el-statement-in.html
http://adf-tools.blogspot.in/2010/03/adf-plsql-procedure-or-function-call.html
http://adfhowto.blogspot.in/2010/11/call-db-procedure-or-function-from-adf.html
Re: use of Procedure and Functions in ADF BC -
How can I catch a resultset thrown out by PL/SQL procedure or function.
hi,
I want to write a program in java which receives a resultset
from PL/SQL , how can I do that.
I don't want to create the resultset by passing a simple sql
statement, I want the sql statement to be executed in the
procedure or function,
which in turn returns a PL/SQL table of records, or refcursor,
and capture it in the resultset.Here's a quick note on how I do it:
1. RETURN a REF CURSOR from your PL/SQL function.
2. In your Java program, you declare the return type from the
Statement as OracleTypes.CURSOR.
/* Prepare your PL/SQL function call here */
CallableStatement mystatement = myconnection.prepareCall
( "BEGIN ? := myfunction( p_param => ? ); END;" );
/* Register the Oracle REF CURSOR as the return type */
mystatement.registerOutParameter(1, OracleTypes.CURSOR);
/* Set any additional input parameters to your function */
mystatement.setString(2, "Param value");
3. When you fetch the cursor from your Statement, do getObject
() and then cast the Object as a ResultSet e.g.:
mystatement.execute);
ResultSet rs = (ResultSet) mystatement.getObject(1);
/* Now you can iterate through the ResultSet in the same way as
for any other JDBC ResultSet */
while (rset.next())
/* Fetch the values from your REF CURSOR here */
mystatement.close();
There may be better ways to do this, but it works for me.
Regards,
Chris I've put in a few more details above. Sorry I can't copy in a
whole chunk of code for you, but this should be enough to get
you started. I would recommend the Wrox Press book on
application programming with Oracle 8i, as it includes lots of
examples of many different tools for Oracle 8i e.g. JDBC, EJB,
BC4J, Portal, XML etc.
Good luck,
Chris -
Error while taking backup through RMAN in 10g XE
While taking backup through RMAN in XE instance , an error comes out.
The contents of oxe_backup_current file is as below :
XE Backup Log
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Jul 6 15:49:51 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: XE (DBID=2635631092)
RMAN>
echo set on
RMAN> shutdown immediate;
using target database control file instead of recovery catalog
database closed
database dismounted
Oracle instance shut down
RMAN> startup mount;
connected to target database (not started)
Oracle instance started
database mounted
Total System Global Area 805306368 bytes
Fixed Size 1261444 bytes
Variable Size 209715324 bytes
Database Buffers 591396864 bytes
Redo Buffers 2932736 bytes
RMAN> configure retention policy to redundancy 2;
old RMAN configuration parameters:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
new RMAN configuration parameters:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
new RMAN configuration parameters are successfully stored
RMAN> configure controlfile autobackup format for device type disk clear;
RMAN configuration parameters are successfully reset to default value
RMAN> configure controlfile autobackup on;
old RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters are successfully stored
RMAN> sql "create pfile=''/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/spfile2init.ora'' from spfile";
*sql statement: create pfile=''/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/spfile2init.ora'' from spfile*
*RMAN-00571: ===========================================================*
*RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============*
*RMAN-00571: ===========================================================*
*RMAN-03009: failure of sql command on default channel at 07/06/2011 15:50:57*
*RMAN-11003: failure during parse/execution of SQL statement: create pfile='/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/spfile2init.ora' from spfile*
*ORA-27086: unable to lock file - already in use*
*Linux Error: 11: Resource temporarily unavailable*
Additional information: 8
Additional information: 16476
RMAN> backup as backupset device type disk database;
Starting backup at 06-JUL-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=102 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00003 name=/usr/lib/oracle/xe/oradata/XE/sysaux.dbf
input datafile fno=00005 name=/usr/lib/oracle/xe/oradata/XE/ftress_data_log01.dbf
input datafile fno=00006 name=/usr/lib/oracle/xe/oradata/XE/ftress_data_lrg01.dbf
input datafile fno=00001 name=/usr/lib/oracle/xe/oradata/XE/system.dbf
input datafile fno=00009 name=/usr/lib/oracle/xe/oradata/XE/ftress_indx_log01.dbf
input datafile fno=00010 name=/usr/lib/oracle/xe/oradata/XE/ftress_indx_lrg01.dbf
input datafile fno=00002 name=/usr/lib/oracle/xe/oradata/XE/undo.dbf
input datafile fno=00004 name=/usr/lib/oracle/xe/oradata/XE/users.dbf
input datafile fno=00008 name=/usr/lib/oracle/xe/oradata/XE/ftress_data_sml01.dbf
input datafile fno=00012 name=/usr/lib/oracle/xe/oradata/XE/ftress_indx_sml01.dbf
input datafile fno=00011 name=/usr/lib/oracle/xe/oradata/XE/ftress_indx_mdm01.dbf
input datafile fno=00007 name=/usr/lib/oracle/xe/oradata/XE/ftress_data_mdm01.dbf
channel ORA_DISK_1: starting piece 1 at 06-JUL-11
channel ORA_DISK_1: finished piece 1 at 06-JUL-11
piece handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2011_07_06/o1_mf_nnndf_TAG20110706T155057_718dw649_.bkp tag=TAG20110706T155057 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
Finished backup at 06-JUL-11
Starting Control File and SPFILE Autobackup at 06-JUL-11
piece handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/2011_07_06/o1_mf_s_755797849_718dwofy_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 06-JUL-11
RMAN> configure controlfile autobackup off;
old RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
new RMAN configuration parameters are successfully stored
RMAN> alter database open;
database opened
RMAN> delete noprompt obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 2
using channel ORA_DISK_1
Deleting the following obsolete backups and copies:
Type Key Completion Time Filename/Handle
Backup Set 3 06-JUL-11
Backup Piece 3 06-JUL-11 /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2011_07_06/o1_mf_nnndf_TAG20110706T133443_7184wr4d_.bkp
Backup Set 4 06-JUL-11
Backup Piece 4 06-JUL-11 /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/2011_07_06/o1_mf_s_755789675_7184x7fp_.bkp
deleted backup piece
backup piece handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2011_07_06/o1_mf_nnndf_TAG20110706T133443_7184wr4d_.bkp recid=3 stamp=755789684
deleted backup piece
backup piece handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/2011_07_06/o1_mf_s_755789675_7184x7fp_.bkp recid=4 stamp=755789699
Deleted 2 objects
RMAN>
Recovery Manager complete.
RMAN error: See log for details.I think it is trying to overwrite exiting file. Either give a different name or cleanup the files in preferred location.
Maybe you are looking for
-
Display of report in excel format.
Hi, How to display a report in excel format?? I have the display details in an internal table. Is it possible for the output to come in excel format as soon as we run the pgm other.than downloading from list or grid format..If so how to do it?
-
Downloading using Snow Leopard-Where does the DL reside?
I have been using leopard along with third-party "Speed Download" without difficulty. When I switched to Snow Leopard each download began with a Safari screen turning totally gray(blank!) while the address bar showed progress of the download through
-
Can't pair 5S with MacBook Pro
When trying to pair the iphone 5S with the MacBook Pro, i'm told MacBook not supprted in this iphone. Worked fine with previous phone (4S). Thanx, Boe
-
It's been 2 weeks and my apps aren't updating!
I tried updating and it says waiting but it hasn't done anything for 2 weeks and it is driving me crazy! How can I get it to finally update!?!?!?!
-
Extrude and bevel banding... how do you make the gradient smooth?
Hi, I've got a shape that I want to make 3D using extrude and bevel tool but despite making the blend steps the highest possible amount, I still have banding. I'm using CS6. And there's no gradient on the flat image (it began as white). Any ideas?