Moving a set of tables and related procedures

Hi,
I have created a set of tables, procedures, functions, and triggers for a particular application on a db at home. Now.. I need to move it to the university. However, the university does not allow us to run sqlldr or imp.. As such, how would I be able to move the tables and data over ??
Is there a function available to generate a set of .sql files from a given set of tables so that it can be run on the servers down at the university ??
Any help would be appreciated
Thanks
Jega

I beleive you are looking for recreation of DDL's??
OEM,DBAstudio or DBartisan or any kind of oracle tool will have functionality to edit the code of stored procedure / trigger.
using them, u can just get back the source code for the trigger/procs etc.
for table, OEM/dbastudio will shall show you the DDL sql itself...
OR get it form dictionary!! as follows, stripp off the unwanted columns (except TEXT) SPool the output to a .sql file!!
SQL> ed
Wrote file afiedt.buf
1 select distinct name, text from user_source where type='FUNCTION'
2* order by name
SQL> break on name
SQL> column name format a15
SQL> column text format a70
SQL> set pagesize 100
SQL> /
NAME LINE TEXT
IS_NUMBER 1 function is_number( chk_data_in
2 varchar2 )
3 return boolean
4 is
5 dummy number(38,4);
6 begin
7 dummy := to_number(chk_data_in);
8 return true;
9 exception
10 when value_error then
11 return false;
12 when others then
13 raise;
14 end;
RANKS 1 FUNCTION RANKS ( p_salary IN NUMBER )
2 RETURN NUMBER AS
3 v_rank NUMBER(6,0) :=0 ;
4 CURSOR salary_cursor IS
5 SELECT DISTINCT sal
6 FROM emp
7 ORDER BY sal DESC ;
8 BEGIN
9 FOR v_salary_rec IN salary_cursor LOOP
10 v_rank := v_rank + 1 ;
11 EXIT WHEN v_salary_rec.sal = p_salary ;
12 END LOOP ;
13 RETURN( v_rank );
14 END;

Similar Messages

  • User define table and store procedure install

    Hi there,
    I like to deploy an addon, there are User define tables and store procedure need add to database, I wonder which chance is properly to add them, if add these user define objects in time of install, we can not get the enough information that connect to SQL server, and also create UDT need DIAPI. if put create UDT and UDsp in addon program, the problem is which DIAPI funciton or object can execute create store procedure SQL string.
    Thanks for any help.
    Lanjun

    R. Schwachofer,
    Thank you very much,
    the way call isqlw.exe to run SQL script is a good way when install, but I confuse with two questions about this way. first, run isqlw.exe should provid loginid and password of SQL server, these two information need additional install dialog to get; second if use isqlw.exe the store procedure only create to the current company database, when create new compay DB the store procedure does not exist in new DB.
    so I still do not know which way is the proper way to create SP for addon.
    Thanks in advance.
    Lanjun

  • Object Tables and Relational Tables

    the statement below are they true for both Object and Relational tables?
    Rows are stored in extents
    can rows can be made up of one column
    collection types can be used in a column
    Thanks!

    >
    Rows are stored in extents
    >
    Yes - in the sense that rows are stored in 'blocks' and extents are comprised of one or more blocks. So since rows are in blocks and blocks are in extents then rows are in extents.
    >
    can rows can be made up of one column
    >
    Yes
    CREATE TABLE ONE_COLUMN_TABLE (NAME VARCHAR2(30));collection types can be used in a column
    >
    yes
    CREATE TYPE num_varray AS VARRAY(10) OF NUMBER(12, 2)
    CREATE TABLE varray_table (col1 num_varray)
    INSERT INTO varray_table VALUES (num_varray(100, 200))

  • Table and related table keys

    Hi, 
    Have two tables, related, and wish to not use form / subform to handle relationship.
    What is the best way to assign PK in primary table to FK in related table?
    L
    Leon

    Have two tables, related, and wish to not use form / subform to handle relationship.
    What is the best way to assign PK in primary table to FK in related table?
    Hi Leon,
    I don't know what the underlying thought of your question. And also why you do not wish to use the form / subform relationship. I think you mean the parent-child relation? In all my applications I do not use that parent-child relation either. In fact
    what is normally used as a subform is in my systematics another main form. This gives me the possibility to "walk along relations" in a two-way direction, for any relation.
    I am sure there are more best ways for the PK. For every table I use an autonumber PK. The FK in a related table is of type long. I have experienced that the shorter the key is, the faster the retrieval is. And the long type is in my opinion the
    best.
    Using a strict naming convention for the field of the PK related to its table, and the field of the FK, I have managed that all relations are generated completely automatic.
    Imb.

  • Set up table and transaction data delta load init

    Dear experts,
    I am following a document left by my predecessor on "post processing activities" for BI prod post go-live.
    And for transaction data it says to :
    1. execute init with data transfer infopack manually
    2. execute delta update infopack manually
    3. go to ECC : delete setup data (lbwg)
    4. setup the tables for  (OLIxxBW)
    5. then finally activate Process chains.
    Is this sequence correct?
    Shouldn't I first delete the setup table, setup the tables and then execute the infopackages??
    Regards,
    Alice

    Hi,
    The sequence is correct ,and after this you need to run the job for the collective run in SAP ,which is based on your delta queue.
    i.e if you choose direct delta it is not required ,but if you use 'queued delta' then you need to run the collective run to move the delta from the extraction queue to delta queue .This job should run before the delta load.
       It is better to fill the set-up table during downtime .ie.no documents posted during the set-up table run. But if you dont have an option you can fill the set-up table during operation hours ,but need fo follow certain steps to get all the delta data. You may need to use 'Init without delta transfer' or early delta initialization in the infopackage .You need ODS as a data target to achieve this . Please search SDN ,you will get more information about this.
    Thanks.

  • PowerPivot tables and stored procedures

    What can I use to dynamically create a PowerPivot table in excel, using a stored procedure as a data source?
    Onyx12

    Hi there
    Thank you for your response.
    Here's what I'm trying to achieve and I stand under correction. I have a stored procedure which I want to mirror it's query result as a Pivot Table in Excel, and have done so by hard coding the execution code and imported it to Excel. But now I'm trying
    to find out if there is another way to do this, in Excel though. I've been looking at solutions which include building macros, but I'm afraid SSMS does not support them. And even so, I'm not sure if building a macro is an ideal solution in this case. In essence,
    I'm trying to retrieve data using a stored procedure, through the use of TSQL code in Excel. Please see query I've provided to Excel, using PowerPivot. I hope I've articulated myself thoroughly.
    DECLARE @RC int
    DECLARE @as_at_date datetime
    DECLARE @all_versions bit
    DECLARE @include_motor bit
    DECLARE @include_reserve bit
    -- TODO: Set parameter values here.
    SET @as_at_date = GETDATE()
    SET @all_versions  = 0
    SET @include_motor  = 0
    SET @include_reserve  = 0
    EXECUTE @RC = [dbo].[usp_claims_by_reserve] 
       @as_at_date
      ,@all_versions
      ,@include_motor
      ,@include_reserve
    Onyx12

  • Junction table and related tables

    Hi,
    I was given a junction table. Is there a SQL query that I can run on the junction table so that it returns me the 2 related tables? Please help. Thanks.

    Hi Anjela,
    I searched the oracle website and quite a lot of oracle pdfs that I had but could not get any term called "Junction table". Never mind...but I feel you must have termed it wrong. If possible please explain in detail about this which will help in answering your query.
    Regards,
    Murali Mohan

  • Find all Package and their related Procedure Names using a specifc Table

    I have 25 Packages
    Each Package holds 30-35 Procedures
    I need to find out all Packages and Procedures
    Each Procedure handles 5 - 20 Tables as Per The Need of Business Rule.
    I need All Package and Related Procedure Names Where a Specific Table Name Appears(DBA_SOURCE doesn't serve purpose.)
    Early Reply Appreciated.
    Thanks and Regards,

    I tried the solution provided to me, but unfortunately the issue remains the same.
    I was Advised to Execute the SQL utldtree.Sql, and then Execute deptree_fill.
    The output is given by a Table DEPTREE (Columns are: .'NESTED_LEVEL', 'TYPE', 'SCHEMA', 'NAME' and 'SEQ#')
    The output I am getting From the Table DEPTREE is as follows -
    Column TYPE value is PACKAGE; Column NAME Value is ACTUAL PACKAGE NAME
    Column TYPE value is PACKAGE BODY; Column NAME Value is ACTUAL PACKAGE NAME
    This repeats till the count the TABLE Name is found in the same PACKAGE
    Desired Output should be -
    Column TYPE value PACKAGE; Column NAME Value ACTUAL PACKAGE NAME
    Column TYPE value PACKAGE BODY; Column NAME Value ACTUAL PACKAGE BODY NAME
    This should repeat till the count the TABLE Name appears in different PACKAGE BODY of the same PACKAGE
    Warm Regards,

  • Link between Komv structure and related table

    hai,
    I have one problem in CIN.
    In Purchase Order for
    ED - JM01 or JEXC
    CESS -ZECS or JEC1
    CSTLST - JIP1 or JIP2
    stored in KOMV Structure,
    other than KOMV  TABLE where this values are stored..
    (In KONV no values found for that one)
    pLEASE, tell me Table name .....in which i get above condition value
    thank you
    Manoj..

    Hi,
    1)GOTO>SE11>Open the table.
    2)Just beside the CONTENTS & DISPLAY BUTTON-->Click on Graphics Button
    3)New Graphics window ill popup.
    4)check for the forign key and check table button.
    you will find all the related tables,and Relations.
    This will be very helpful for future reference also.
    Hope it resolves the query.
    Regards,
    Gurpreet

  • Billing Set up - Parallel jobs and size of set up table

    Hello All,
    I want to do a billing (13) set up using comp code, sales org and document number range as selection criteria.
    Would it be okay to to run jobs in parallel. I will be setting up jobs for different variants containing different document ranges. Would there be a conflict in running parallel jobs if they belong to same company codes/ sales org?
    Q.2 Is there a limit to which we can fill up the set up table and will need to empty it after transferring the data into BI?
    Thanks!
    Edited by: BI Quest on Oct 7, 2009 6:22 PM

    You can run multiple concurrent setup jobs without an issue. I'd recommend that you only execute 4 concurrently, however, unless you have a huge amount of memory on your source R3/ECC server(s). If you're using the Billing Document as part of the selection criteria, there shouldn't be a conflict. In fact, if you're using Billing Document as the selection criteria for your multiple setups, the Company Code and Sales Org designations really aren't necessary, unless the Billing Document numbering in your source R3/ECC environment has been configured to number based on Company Code and/or Sales Org, whereby you could have duplicate Billing Document numbers and the way to distinguish between them is to further qualify by Company Code and/or Sales Org.

  • How can i enter multiple sales order numbers to set up table

    Hi,
    I need to reload about 8,000 sales orders to the set up table and the SO numbers are very scattered, so i can not enter them as a range. In transaction OLI7BW Sales Document field has no multiple selection option, therefore i have to enter the documents ONE BY ONE! Could you please tell me if there any faster way to enter them?
    regards,
    Tansu Aksu @ CHEP

    Try this link..
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
    Regards.
    PS: if it help you, pls assign points.

  • Data model - is tables and relationships between them are graph or tree

    Hello
    I want to ask if tables in database are nodes of graph what should this graph looks like - like real graph (with
    cycles) or tree ?
    Let the tables are nodes of graph and the relationships between the tables are edges in the graph.
    10x all
    Edited by: user10860289 on Apr 2, 2009 1:37 PM
    Edited by: user10860289 on Apr 2, 2009 1:37 PM
    Edited by: user10860289 on Apr 2, 2009 1:39 PM
    Edited by: user10860289 on Apr 2, 2009 2:04 PM

    You can put the \ tag before and after text to preserve white space.  That likely makes things easier to read if you're trying to post ASCII graphs.
    I wouldn't hesitate to use the proper set of tables and relationships for the entities I was trying to model.  Would I be concerned if my data model were full of loops?  Sure, that might cause me to double-check that I hadn't done something silly.  Would I be concerned if my data model had a loop if that was the best way to model something?  Not at all.
    There is no theoretical answer because the quality of a data model has nothing to do with whether it is more tree-like or more graph-like. 
    Justin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Migrate tables and stored proc from SQLServer 2005 Express to Oracle10G

    How to migrate tables and stored procedures from SQLServer 2005 Express to Oracle10G using SQLDeveloper? thank you very much

    Using Oracle SQL Developer Migration Workbench
    http://www.oracle.com/technology/tech/migration/workbench/index_sqldev_omwb.html

  • Help me with set up table error message please

    Hello
    I am trying to fill set up tables for application 12 in background as I try to schdule the job, I was getting the message " datasource 2lis_12_vchdr contains data still to be transfred".
    I tried twice and both the time i got same message. so I schdule it for running it immediately and it was runnning for 2 hrs and after that I got the same message that " datasource 2lis_12_vchdr contains data still to be transfred".
    so what does this mean ? are the set up tables already filled or I need to do someting else before filling set up tables
    can you please guide where I can check the set up tables have been filled sucessfully.
    I tried in RSA3 and it is showing data there but I am not sure which mode I should select to see the data and  I am also not sure weather this is right place to check the data.
    This is kind of urgent pl. help
    I will assign full points to right answer.
    Krish

    Hello Thank you all for your quick replies,
    can you please suggest the set up table name I have to look in se16 to see the set up table data for application 12 ??
    also as I said I did not checked in RSA7 for any records and starte filling set up tables and now I have started the loading as well, is it ok as I am in dev. system and i have to repeat filling the set up tables ?
    Please suggest.
    note: I will assign points to all the answers
    Regards
    Krish

  • Vistex Set Up table content - DataSource /IRM/LIS_RM_IPBBITM

    Hi Gang,
    Our company is using Vistex, and we have installed the Business Content.  I'm trying to initialize the delta process, but I am return no records.  I am using the programs found in transaction code /IRM/IPBWSPRO to deleted and reload the set up table - still no records!
    I'd like to confirm whether or not the set up tables are being filled.
    Does any one know the technical name of the Vistx set up tables?
    Or how to display the contents of the table?
    Without an error message, it is very difficult to troubleshoot the problem.
    John Hawk

    Hi John,
    Vistex, data sources, are provided as part of the LO Cockpit and you need to do the set up using a program, for filling set up tables and the rest is same as LO Cockpit data sources
    In BW side, I dont think, we have any content delivered for Vistex Modelling. You may have to closely look at the Commission Management module which is delivered and utilise them for your BI Data Model for Billbacks. And theres going to be no issue with most of master data as the ECC ones are still in place for you Billback reports. and make sure that you set the Vistex namespace (Tx, SE06) before you go ahead for BI modelling.
    Filling Setuptable :
    Goto the transaction code /IRM/IPBWSPRO (Here you will fiind the Programs)to deleted and reload the set up table.
    Regards
    Ram.

Maybe you are looking for

  • Making window media video compressions from Final cut

    I am a new Final cut user and need to compress some clips to Wmv standards for internet streaming. Does anyone have any ideas. Thanks for your help ahead of time.. I am overwhelmed.. PowerBook G4   Mac OS X (10.4.5)  

  • Add text to specified index in multicolumn listbox

    Hi! I have smal problem with multicolumn listbox. My application should create list of values where user can increase and decrease values of 1 or more tester at same time. e.g when user gives for tester 1 values 1 - 5, my vi creates list where values

  • Question about Primary Key

    HI I'm going to build a Database to automate center in my university The Database version is Oracle 10g v2 Which data type of primary key should I user? I used number in past but I heard there is more efficient data type for this purpose Thanks

  • The Calendar tab no longer shows in users and groups screen

    To add a user to a node, I used to be able to click on the Calendar tab after adding a new user to the Directory. After upgrading to Calendar 3.5, it no longer shows up! <P> In the file suitespot_server_root/admin-serv/config/dsgw.conf make sure that

  • CS5 Ecore stops responding on startup

    I am running Windows 7 Home Preminum on an HP 17 Envy Laptop. Windows, drivers and CS5 are up to date. Encore stops responding on start up, Windows search for a solution and closes Encore. All other CS5 Pro programs function normally. I have tried al