Newbie- How to import package, procedures, etc?
I used the "Database export", from Developer computer, to expoty tables,export Procedures,export Packages,etc to a file
from SQl Developer.
In Sql Developer, How do I import those tables, import procedures, import packages to my "LIVE REAL " computer?
I want to copy Package, copy procedure, etc from "Developer computer" to "LIVE REAL DATA" computer?
TIA
Steve42
If you have access to the 2 databases from your sqldev client (and thus have connections set up to both of them), just run the obtained export file from the dev DB as script (F5), using the connection to the production DB (drop-down in the upper right corner).
Have fun,
K.
Similar Messages
-
How to import only procedures, functions, and packages only
Hi everybody...
How to import only procedures, functions, and packages only from one user to another user.
Thanks in advance
palThanks for your reply...i did the following..can you please help from this how to proceed
---------------- getcode.sql -------------------------------
set feedback off
set heading off
set termout off
set linesize 1000
set trimspool on
set verify off
spool &1..sql
prompt set define off
select decode( type||'-'||to_char(line,'fm99999'),
'PACKAGE BODY-1', '/'||chr(10),
null) ||
decode(line,1,'create or replace ', '' ) ||
text text
from user_source
where name = upper('&&1')
order by type, line;
prompt /
prompt set define on
spool off
set feedback on
set heading on
set termout on
set linesize 100
------------------- getallcode.sql -------------------------
set termout off
set heading off
set feedback off
set linesize 50
spool c:\xtmpx.sql
select '@getcode ' || object_name
from user_objects
where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
spool off
spool c:\getallcode_INSTALL
select '@' || object_name
from user_objects
where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
spool off
set heading on
set feedback on
set linesize 130
set termout on
@xtmpx.sql
I did this one user and created the xtmpx.sql
and getallcode_INSTALL.LST.
From this, how to proceed to run these in another user.
Thanks,
Pal -
How can Imported Package of components to be fully editable??
hi people,
with JDeveloper TP3
How To Import a Package of components that are editable and display in the
Application Navigator
Fusion Developer’s Guide for Oracle Application Development 11g
Chapter 35.7 Working with Libraries of Reusable Business Components
Says:
Tip: If you require components that are editable and display in the
Application Navigator. Add additional business components from a
directory that is not currently part of your project's source path, then
open the Project Content page of the Project Properties dialog and
add the parent directory for these other components as one of the
directories in the Java Content list. In contrast to imported packages
of components, additional components added to your project's source
path will be fully editable and will appear in the Application
Navigator.
but i can't even change Control hints.
with JDeveloper TP3
How To Import a Package of components that are editable and display in the
Application Navigator
Fusion Developer’s Guide for Oracle Application Development 11g
Chapter 35.7 Working with Libraries of Reusable Business Components
say:
To create the JAR files, in the Application Navigator right-click the Business
Components project folder and choose Deploy and the ReusableComponents
profile. A Deployment tab appears in the JDeveloper Log window that should display
feedback like:
---- Deployment started. ---- Apr 28, 2007 7:04:02 PM
Running dependency analysis...
Wrote JAR file to ...\ReuseableComponents\deploy\ReuseableComponentsCSMT.jar
Running dependency analysis...
Wrote JAR file to ...\ReuseableComponents\deploy\ReuseableComponentsCSCommon.jar
Elapsed time for deployment: less than one second
---- Deployment finished. ---- Apr 28, 2007 7:04:02 PM
then If you require components that are editable and display in the
Application Navigator Add additional business components from a
directory that is not currently part of your project's source path, then
open the Project Content page of the Project Properties dialog and
add the parent directory for these other components as one of the
directories in the Java Content list
where i didn't find Project Content page of the Project Properties
but i got
Compiling...
Context: selection=rootBusiness.jpr project=rootBusiness.jpr node=rootBusiness.jpr
Validating Business Component: rootbusiness.rootBusiness
copying rootbusiness/rootBusiness.jpx to output directory
Validating Business Component: rootbusiness.entity.Dept
copying rootbusiness/entity/Dept.xml to output directory
Validating Business Component: rootbusiness.entity.Emp
copying rootbusiness/entity/Emp.xml to output directory
Validating Business Component: rootbusiness.entity.FkDeptnoAssoc
copying rootbusiness/entity/FkDeptnoAssoc.xml to output directory
Validating Business Component: rootbusiness.Service.rootAppModule
copying rootbusiness/Service/rootAppModule.xml to output directory
Validating Business Component: rootbusiness.view.DeptView
copying rootbusiness/view/DeptView.xml to output directory
Validating Business Component: rootbusiness.view.EmpView
copying rootbusiness/view/EmpView.xml to output directory
Validating Business Component: rootbusiness.view.FkDeptnoLink
copying rootbusiness/view/FkDeptnoLink.xml to output directory
copying rootbusiness/Service/common/bc4j.xcfg to output directory
Updated file:/C:/JDeveloper/mywork/Root/rootBusiness/classes/META-INF/adfm.xml
[10:16:25 ص] Successful compilation: 0 errors, 0 warnings
and didn't find ReuseableComponentsCSMT.jar or ReuseableComponentsCSCommon.jar
thanks
Message was edited by:
greenApplewith JDeveloper TP3
How To Import a Package of components that are editable and display in the
Application Navigator
Fusion Developer’s Guide for Oracle Application Development 11g
Chapter 35.7 Working with Libraries of Reusable Business Components
Says:
Tip: If you require components that are editable and display in the
Application Navigator. Add additional business components from a
directory that is not currently part of your project's source path, then
open the Project Content page of the Project Properties dialog and
add the parent directory for these other components as one of the
directories in the Java Content list. In contrast to imported packages
of components, additional components added to your project's source
path will be fully editable and will appear in the Application
Navigator.
but i can't even change Control hints. -
Importing packages/procedures into OWB
Is it possible to import packages or procedures into OWB that are stored on a different database?
I want to call a procedure in a mapping that is stored on a different database. I can only import tables and views (as data source ) from other databases.
I can only import PL/SQL packages into OWB if they're stored in the current database.
Does anybody have a solution?
Regards,
MauriceMaurice,
Essentially the import uses a dblink, so you have the option to specify the dblink to another place and you should be able to see/import that pl/sql.
The most elegant and prefered way however is to import the pl/sql into the public transformations node (I'm using OWB 9.0.4). This is a bucket that holds sharable pl/sql and seems to address the need for you.
Here again you create the dblink and point at the remote db schema that owns the pl/sql.
Hope this helps,
Jean-Pierre -
How to know (package , procedures or functions) name for current sessions
Hi all
I'm DBA and i want to find way to get object name whatever (package , procedures or functions) for current running statement in active session.
To clarify when i open session browser from toad i can see active sessions and see current statement for every session but without the name of the object.
Is there any way to know this point.
thanks in advanceselect *
from dba_objects
where object_id in (select nvl(t.PLSQL_ENTRY_OBJECT_ID,-1)
from v$session t
where sid = 452)
Ramin Hashimzade -
How to Find Packages/Procedures using any particular table
Hi,
I want to find out the procedures,packages using any particular table. Please tell me how to find out.>
I want to find out the procedures,packages using any particular table. Please tell me how to find out.
>
You can use the utldtree.sql in the rdbms\admin folder to do that. See my reply in this thread
Re: Finding out all procedures , functions in a tree like structure in sequence
The comments in the script (and in the thread) show how to use it. The script creates a table, a view and a procedure.
Then you just use it like the comments describe. Here is the result for my SCOTT.EMP table. You can see I have a lot of packages and functions and things that depend on that table.
execute deptree_fill('table', 'scott', 'emp');
select * from ideptree
OBJECT_NAME,SCHEMA,NAME,TYPE,STATUS
0. EMP,SCOTT,EMP,TABLE,VALID
1. PAK_TEST1,SCOTT,PAK_TEST1,PACKAGE,INVALID
2. PAK_TEST1,SCOTT,PAK_TEST1,PACKAGE BODY,VALID
1. GET_EMP,SCOTT,GET_EMP,FUNCTION,INVALID
1. THREE_TABLE_EMP_VIEW,SCOTT,THREE_TABLE_EMP_VIEW,VIEW,INVALID
1. TEST_PKG,SCOTT,TEST_PKG,PACKAGE,INVALID
2. TEST_PKG,SCOTT,TEST_PKG,PACKAGE BODY,VALID
1. TEST_F,SCOTT,TEST_F,FUNCTION,INVALID
1. PIPELINE,SCOTT,PIPELINE,FUNCTION,INVALID
1. GETOLDSAL,SCOTT,GETOLDSAL,FUNCTION,INVALID
1. UPDATESAL_RETURNOLDSAL,SCOTT,UPDATESAL_RETURNOLDSAL,FUNCTION,INVALID
1. EMP_HIER_PKG,SCOTT,EMP_HIER_PKG,PACKAGE,INVALID
2. EMP_HIER_PKG,SCOTT,EMP_HIER_PKG,PACKAGE BODY,INVALID
1. EMP_TBL,SCOTT,EMP_TBL,TYPE,INVALID
1. EMP_HIER_PKG,SCOTT,EMP_HIER_PKG,PACKAGE BODY,INVALID
1. TEST_REFCURSOR_PKG,SCOTT,TEST_REFCURSOR_PKG,PACKAGE BODY,VALID
1. DOIT,SCOTT,DOIT,PROCEDURE,VALID
1. DOIT1,SCOTT,DOIT1,PROCEDURE,VALID
1. LSZRPT,SCOTT,LSZRPT,PACKAGE,INVALID
2. LSZRPT,SCOTT,LSZRPT,PACKAGE BODY,INVALID
1. F_GET_NAME,SCOTT,F_GET_NAME,FUNCTION,INVALID
1. TEST_REFCURSOR_PKG1,SCOTT,TEST_REFCURSOR_PKG1,PACKAGE BODY,INVALID
1. TEST2,SCOTT,TEST2,PROCEDURE,INVALID
1. TAX_COST_SP,SCOTT,TAX_COST_SP,PROCEDURE,INVALID
1. V_EMP,SCOTT,V_EMP,VIEW,VALID
2. EMPLOYEES,USER1,EMPLOYEES,SYNONYM,VALID
1. VIEW_EMP_TEST,SCOTT,VIEW_EMP_TEST,VIEW,VALID
1. MASTER_MV,SCOTT,MASTER_MV,MATERIALIZED VIEW,INVALID
1. TEST_VIEW,HR,TEST_VIEW,VIEW,VALID
1. MYEMPVIEW,SCOTT,MYEMPVIEW,VIEW,VALID
1. MYEMPVIEW1,SCOTT,MYEMPVIEW1,VIEW,VALID
1. TEST_NDX,SCOTT,TEST_NDX,VIEW,VALID
1. PKG1,SCOTT,PKG1,PACKAGE,VALID
1. EMP_ACTIONS,SCOTT,EMP_ACTIONS,PACKAGE BODY,INVALID
1. MYPACKAGE,SCOTT,MYPACKAGE,PACKAGE,VALID
1. V_EMP1,SCOTT,V_EMP1,VIEW,VALID
1. IDEXISTS,SCOTT,IDEXISTS,PROCEDURE,VALID
1. VIEW_TEST_EMP,SCOTT,VIEW_TEST_EMP,VIEW,INVALID
1. GET_EMP_REC,SCOTT,GET_EMP_REC,FUNCTION,VALID
1. GET_EMP_CLOB,SCOTT,GET_EMP_CLOB,FUNCTION,VALID -
How to import all tags, etc to upgrade version 3.2
I have all my photos organized in Album version 2.0. After installing version 3.2 how do I import all my old tag, collection and title information?
Version 3.2 found all the pictures but I did not get the related info.Nicholas,
Please understand that these two products are actually quite different.
Photoshop Album is similar to Photshop Album SE, but as you might imagine
given that SE is free, it is NOT the next step UP for Photoshop Album.
Photoshop Elements 3.0 is.
I am not sure if Version 3.2 has the ability to import the tags from 2.0,
but I will get confirmation on that. By now you'd think I should know, but I
run into these things only one at a time.
I should have an answer in a day or two. If it is supposed to pick up the
tags, I will have additional questions for you.
Cheers -
[Urgent]How to import odi procedure from 11g to 10g.
Hi All,
I am trying to import odi code(interface/procedure) from 11g to 10g but gettting xml error.
Please reply as soon as possible.
ThanksForward compatibility for importing odi artifacts is not supported.
-
Newbie: How to install packages from remote desktop?
Hi,
I have installed Solaris using Reduced Network without installing Volume Management. Now, I want to add more packages. I have tried to copy e.g. SUNWmfrun directory from my Windows XP desktop and SFTP/SSH to the remote Solaris server. Maybe because it is not a pkg but a directory; therefore, pkgadd cannot find a package to install. And I fail to use pkgtrans because lack of knowledge. What steps should I do?
Regards,
TerenceIt should be something like
[local]
Server = file:///path/to/packages -
Newbie: How to import text
Hi
CS4, AS2 or AS3 (haven't decided which on to use)
I have text stored in a Sql Server 2005 database, and this text I want displayed inside a textfield in flash movie.
Any ideas how to accomplish this? any guidens whould be greatI am not faniliar with interacting with an SQL database, but the general process of acquiring data from a DB involves Flash using a server side language such as PHP as a middleman to query the DB, collect the data, and echo it back to Flash in a form that it can easily read (most often XML).
Here is a link to a Flash - PHP - MySQL tutorial:
http://www.gotoandlearn.com/play?id=20 -
How to run package procedure using Crontab
Below is my crontab script to run . It is working fine in if I run it manually like
sh crontest
but if i call it in crontab , only echo is working , oracle commands are not working.
my crontab command is -> * * * * * sh /home/oracle/cron/crontest
crontest
#!/bin/sh
echo "Procedure start successfully : $(date) " >> /home/oracle/pro_test
sqlplus -s orpheus/frs@frs_ods<<END
set serveroutput on
exec pkg_orph_adhoc.pro_ca('3478409644','2011-07-01','2011-10-31');
insert into tt values(sysdate);
commit;
exit;
END
********************************************That's correct because crontab does not process your login scripts and hence does not know the Oracle environment. You need to set it up, see below example. Make sure to use the correct SID, which is case sensitive. Note the space between the dot (.) and oraenv to source execute the script, which should be in /usr/local/bin. At a bare minimum you will need to setup ORACLE_HOME and add ORACLE_HOME/bin to your path, which "oraenv" will take care off and more. Oraenv needs ORACLE_SID when in non-interactive mode.
#!/bin/sh
ORACLE_SID=test
ORAENV_ASK=NO
. oraenv -s
sqlplus -s /nolog <<-EOF
set pages 0 feed off
connect / as sysdba
select status from v\$instance;
exit
EOF
# END -
Under Connections, I choose my database, then the user, and from there I view my Tables. I have no need to view Views, Indexes, Packages, Procedures, etc., just the tables (which I am able to filter).
Since the tree containing Views, Indexes, Packages, etc., take up a lot of real estate (I work with multiple databases, each with a specific user, or schema), is it not possible to filter these out?
Thanks!
Edited by: user9956988 on Jun 15, 2010 3:53 PMJust to double check that I'm interpreting the problem correctly, is the following true:
select * from all_objects where object_name = 'DBA_SOURCE'
returns nothing
select * from dba_source where name = your PL/SQL module
returns all the code -
How to import other package into Dictionaries in nwds web dynpro project
Hi
i'm learning JA312, in some topic, there need a method declaration in component controller, the method like this:
public void showContext(IWDContext context),
i can add method in method tab in component controller,but can not add parameter of IWDContext types,because in Dictionaries,there are only com.sap.ide.., and not include com.sap.tc.webdynpro.progmodel.api.
so,how to import package into Dictionaries, for example com.sap.tc.webdynpro.progmodel.api.
a step by step article is preferred. thank youchoose "Java Native Type".
-
Import Package org.jdesktop.swingx.autocomplete ??
how to import Package org.jdesktop.swingx.autocomplete in my code
its Giving error ,,,
i am using Auto Complete Supprt For my Combo Box .......but i am unable to import the package containg nesseary classes like
AutoCompleteSupport support = AutoCompleteSupport.install(
this.comboBox, GlazedLists.eventListOf(elements));
AutoCompleteDecorator.decorate(this.comboBox);
how to import package for the above calsses ,,,or i have to add any Jar File ,,plzz suggestYou have to add the appropriate JAR files to your library to allow use of the features you want, then you do a:
import org.jdesktop.swingx.autocomplete; //in your project. -
Hi all,
please help me on how to Import stored procedure only from .dmp file.
thanks.With the help of ugly_DDL.ksh you can extract the DDLs out of a dmp file. Maybe it is worth a look ..
Maybe you are looking for
-
Opening pdfs on multiple monitors
With Acrobat 9 Pro on secondary monitor and selecting several docs; the first doc opens correctly on the secondary monitor, suceeding docs open on the the primary monitor. Can I get all docs to open on the secondary? Dell XPS400 D2, 1TB, 4GB
-
I have loaded on my husbands library genius which works fine on the PC, the IPod was synced but Genius does not appear. The playlist that we created on the Database shows in the playlist, but Genius is not on the main menu. Has any experienced this p
-
Creating a full project costing template ?
hey all im new to numbers and never used excel.. i noticed on my ipad the employee calucation template and thought it would be awsome to do something very simlar but be able to use it as a specific project costing tool. the template would be the same
-
Regarding the perfomance of a join .
Hi, I have a join with tables MARD,MVKE,MAKT,MARA . Is it a bad habit to join more than 3 tables , is it inversely affect the perfomance. SELECT dmatnr AS material dwerks AS plant dlgort AS slocation dumlme dlabst rmeins k~maktx AS descr
-
Home Hub v1 non-responsive user interface
I haven't used the home hub for a couple of years, but because of ongoing IP profile problems I've got it out of storage to use in place of my Draytek 2600. Using the internet works fine, but more often than not when I'm trying to configure applicati