Versioning of database objects

Hi,
I would like to know if there is a standard Oracle Tool that does version control of Database Objects? (functions, procedures, triggers, ....)
Regards

Hi linkit
What tou mean by version? Did you asking about keeping the duplicate copy for objects? Please specify so that I can help you.
Thanks & Cheers
Antony

Similar Messages

  • Version 2.1.0.63 - Load List of Database Objects Loads Incredibly Slow

    I am using version 2.1.0.63, and when I am browsing the database objects in the connection, they load EXTREMELY slow. With the same database, using other tools, such as PLEdit, the list of objects loads in a small fraction of the time that it takes SQL Developer to load them. Why is it so much slower? Are there options that will make SQL Developer load less details about the objects or something along that line?
    Thanks,
    Kurz

    I am migrating a Microsoft SQL Server 2005 database to oracle 10g. I encounter this problem when I run "Load Database Capture Script Output", It is extremely slow at this step, especially on loading constraints.I am using SQL Developer 2.1.0.63. The size of Microsfot SQL Server db is 6G.

  • Export database objects in Version 3.0

    I'm fairly new to APEX and I need to export some database objects along with my application. I currently have an application on Oracle's site and I need it (along with database tables and sequences) exported to a server that we have onsite. While I can see how to export the application, I'm having trouble understanding how to export my database tables (both structure and data) and sequences. Can somebody point me in the right direction?
    Thanks,
    Brian

    Brian,
    You can navigate to Home>Utilities>Data Load/Unload>Unload to dump (unload) tables to files in text or xml format. You can go to Home>Utilities>Generate DDL to generate DDL for database objects in your schema.
    Scott

  • Find Database Object gives error message in 3.2.20.09.87

    Since updating to SQL Developer 3.2.20.09.87 I've been getting error messages when running Find Database Object. The message on the logging page is: ORA-00942: table or view does not exist
    Followed by:
    select null name, -1 LINE, -1 COL, null USAGE,
    case when obj.object_type like 'JAVA%' then 'JAVA' else obj.object_type end TYPE,
    OWNER, case when obj.object_type like 'JAVA%' then 'JAVA' else obj.object_type end OBJECT_TYPE,
    obj.OBJECT_NAME
    from sys.dba_objects obj where rownum <= 500 and obj.object_type != 'TABLE PARTITION' and obj.object_type != 'TABLE SUBPARTITION' and obj.object_type != 'JAVA CLASS' and object_name like ?
    union all
    select null name, -1 LINE, -1 COL, null USAGE,
    'MATERIALIZED VIEW LOG' TYPE, log_owner OWNER,
    'MATERIALIZED VIEW LOG' OBJECT_TYPE, master OBJECT_NAME
    from all_snapshot_logs where master like ?
    union
    select null name, -1 LINE, -1 COL, null USAGE,
    'DATABASE LINK' TYPE, owner OWNER,
    'DATABASE LINK' OBJECT_TYPE, db_link OBJECT_NAME
    from all_db_links where rownum <= 500 and db_link like ?
    union all
    select c.column_name name, -1 LINE, -1 COL, null USAGE, o.object_type TYPE, c.OWNER, o.object_type OBJECT_TYPE, c.table_NAME OBJECT_NAME
    from sys.all_tab_columns c, all_objects o
    where c.table_name=o.object_name and c.owner = o.owner and rownum <= 500 and c.column_name like ?
    union all
    select name, LINE, COL, USAGE, TYPE, OWNER, OBJECT_TYPE, OBJECT_NAME
    from sys.all_identifiers where rownum <= 500 and name like ?
    My database version is: 10.2.0.4.0
    I'm grateful that SQL Developer peacefully coexists with earlier versions.
    Anything I can do?
    Thanks.

    Hi,
    I cannot seem to find a bug or forum reference for this issue at the moment, but I recall there was some problem on 10g connections where SQL Developer thinks you have DBA view privileges even when you don't. So, on 11g, a user with very basic privileges can do a Find DB Object without seeing the error you got on 10.2.0.4. On 10.2.0.x you should be able to workaround the problem if you can arrange to get grant select_catalog_role for that userid.
    Regards,
    Gary

  • SQL Developer Strangeness with database objects beginning with 'AQ'

    I have two separate but seemingly related issues.
    *1. I am experiencing a situation whereby database objects beginning with the letters 'AQ' are not included when performing a database export from SQL Developer (using the procedure described below).*
    Procedure:
    1. Create any database objects starting with 'AQ'
    2. Tools > Database Export
    3. Check every item in the 'Types to Export' step of the Export Wizard
    4. Progress to the 'Specify Objects' step of the Export Wizard
    Expected:
    The 'Specify Objects' step of the Export Wizard lists all database objects
    Actual:
    The 'Specify Objects' step of the Export Wizard lists all database objects EXCEPT those prefixed with AQ. As these objects are not listed, I am not able to export them.
    *2. Sequences that start with the letters 'AQ' do not appear in the object list*
    Any sequences starting with the letters 'AQ' are missing from the Sequences list in the left panel of SQL Developer.
    At a glance, it appears as though these are symptoms of the same issue that's described in [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=898765&tstart=180]. I have attempted this in versions 1.5.4 and 2.1.1.64 under both Windows XP and Vista. Both exhibit the same problems.
    Thanks.
    Edited by: thrillhouse on 16-Mar-2010 17:27

    I have created a new bug for the first and reopened the bug for the second. In the latter case we fixed the AQ for most nodes, but it seems a few nodes, like the Sequences were not included.
    Sue

  • Unable to backup oracle 8i database objects

    Hi ,
    i got the following error :
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.2.0 - Production
    EXP-00056: ORACLE error 942 encountered
    ORA-00942: table or view does not exist
    EXP-00000: Export terminated unsuccessfullyi am using the Oracle 9i Client to backup the object of an Oracle 8i database.
    is this the cause ?
    previously , my client was still on 8i and it could actually backup both the 8i & 9i database objects
    pls advise
    rgds

    First off, the export and import utilities should be considered useful supplements to a proper physical backup but should not be used as the primary backup method for a production database.
    Second, Oracle pretty much requires that you use the version of the export utility that matches the lowest database version you're working with. You could generate the export files on the machine where the database runs, which guarantees that versions will match up, and move them elsewhere. Or you can have multiple versions of the Oracle client in different Oracle Homes on the same machine.
    Justin

  • Database Object Dependencies - only goes one level deep

    I've run the Database Object Dependencies report and it appears that the report only shows the top level dependencies and not lower level ones. Am I running this report incorrectly or is there something I'm missing.
    For example, it displays the tables and views correctly but does not show any triggers that have been created for a specific table. Additionally, I didn't see any references to database links being used.
    version: 3.1.1.00.09
    thanks
    John
    Edited by: johurj on Dec 8, 2008 2:49 PM
    Edited by: johurj on Dec 8, 2008 2:53 PM
    Edited by: johurj on Dec 8, 2008 2:54 PM

    John,
    The report shows the immediate dependencies for the anonymous blocks and similar code snippets contained within the application components. It's just like if you did this:
    create table footab (n1 number)
    create trigger footrig before insert on footab for each row begin null; end;
    create or replace procedure fooproc
    as
    begin
    for c1 in (select n1 from footab) loop
    null;
    end loop;
    end;
    SQL> select referenced_name from all_dependencies where name='FOOPROC'
    2 /
    REFERENCED_NAME
    SYS_STUB_FOR_PURITY_ANALYSIS
    STANDARD
    FOOTAB
    SQL>
    The table FOOTAB is the only "real" object that the procedure FOOPROC has a dependency on. No mention of the trigger on the table.
    Additionally, I didn't see any references to database links being used.Yes, that would be a possible improvement to the report.
    Scott

  • Is there any command/query/etc, which would allow to understand what database objects (for example tables) are consuming memory and how much of it?

    TimesTen Release 11.2.1.9.6 (64 bit Linux/x86_64)
    Command> dssize;
    PERM_ALLOCATED_SIZE:      51200000
      PERM_IN_USE_SIZE: 45996153
    PERM_IN_USE_HIGH_WATER:   50033464
    TEMP_ALLOCATED_SIZE:      2457600
    TEMP_IN_USE_SIZE:         19680
    TEMP_IN_USE_HIGH_WATER:   26760
    Is there any command/query/etc, which would allow to understand what database objects (for example tables) are consuming memory and how much of it?
    tried to use ttsize function, but it gives some senseless results – for example, for the biggest table, tokens, it produces following output (that this table is 90GB in size – what physically cannot be true):
    Command> call ttsize('tokens',null,null);
    < 90885669274.0000 >
    1 row found.

    Are you able to use the command line version of ttSize instead? This splits out how much space is being used by indexes (in the Temp section of the TT memory segment), which I think is being combined into one, whole figure in the procedure version of ttSize you're using. For example:
    ttSize -tbl ia my_ttdb
    Rows = 4
    Total in-line row bytes = 17524
    Total = 17524
    Command> create index i1 on ia(a);
    ttSize -tbl ia my_ttdb;
    Rows = 4
    Total in-line row bytes = 17524
    Indexes:
    Range index JSPALMER.I1 adds 5618 bytes
      Total index bytes = 5618
    Total = 23142
    Command> call ttsize ('ia',,);
    < 23142.0000000000 >
    1 row found.
    In 11.2.2 we added the procedure ttComputeTabSizes which populates system tables with detailed table size data, and was designed to be an alternative to ttSize. Unfortunately it still doesn't calculate index usage though, and it isn't in 11.2.1.

  • Traitement modules versus database object in Designer 9i

    Hello!
    In our environment, there was Designer 9i installed with non-enabled versioning. So, there is only one Global shared workarea, and all the applications system are granted to public who has all rights, and the developers maintain all the application (database objects and modules).
    Now, we want to revoke the insert, delete and update privileges on database object to the developers.
    The developers continue to maintain their modules and only the DBA, would be able to modify the database objects.
    What is the best way to do it?
    Thanks,
    Malika

    Malika,
    Then you should move the database objects to another workarea and grant only edit priviliges to your DBA - and these objects should be shared to your 'normal' development workarea (where the developers have all privs).
    But why the h*** should you want to do this? Packages, procedures and functions are database objects and should be developed by developers. Imho also views, tables, triggers etc should be developed by developers and not DBA's. A DBA is another kind of expertise than developer. If you try to make the developer's life (work) difficult, they will look for workarounds - and find them. And so making your project less productive and more complex.
    Keep the problem you are trying to solve in mind!
    HTH
    Roel

  • Physical file of the "Database" object keep growing

    Hello,
    My Application is using BDB. Version 4.3.29.
    We are using the Database object for saving our byte array data to BDB(see the code below)
    The written data is initialized by: Byte[] Data = new byte[size].
    And we always use the same key for the insert operation. By the BDB API it should overwrite the existing entry, correct me if I’m wrong)
    The data size may vary, I.e. it can grow, or decrease.
    After monitoring the physical file that sits on dist, we have noticed that the physical file only grows, but never decrease its size. Even when the written data is of a 0 length.
    Please explain the issue. What are we doing wrong? Or what additional parameters should be used in order for the phisical file to change its size.i.e. decrease it.
    Thank you in advance.
    Shira Faigenbaum
    Opening the BDB:
    DataBase m_dataBase = m_DBEnv().openDatabase(transaction, tablePath + File.separator + m_name, null, m_DatabaseConfig);
    The code that we have, for the PUT operation:
    DatabaseEntry keyDbt = new DatabaseEntry(new byte[4]);
    keyDbt.setSize(4);
    keyDbt.setUserBuffer(4, true);
    keyDbt.setRecordNumber(DATA_KEY);
    DatabaseEntry dataDbt = new DatabaseEntry(data);
    dataDbt.setSize(data.length);
    dataDbt.setUserBuffer(length, true);
    synchronized (transaction)
    m_dataBase.put(transaction.getTransaction(), keyDbt, dataDbt);
    }

    Hi,
    There is a bit a lot of code, but here is the program.
    thanks
    Shira
    public class BDBsizeNotReducingExxample
         Environment m_dbEnv;
         private Database m_dataBase = null;
         private byte[] m_serializationBuffer = new byte[256];
         private Object m_data = null;
         public static void main(String[] args)
              BDBsizeNotReducingExxample DbsizeNotReducingExxample = new BDBsizeNotReducingExxample();
              DbsizeNotReducingExxample.opendbEnv();
              DbsizeNotReducingExxample.openDB();
              DbsizeNotReducingExxample.saveData();
         private void opendbEnv()
              try
                   EnvironmentConfig ec = new EnvironmentConfig();
                   ec.setCacheSize(16 * 1024 * 1024);
    ec.setErrorStream(new LogOutputStream());
    ec.setVerboseDeadlock(true);
                   ec.setVerboseWaitsFor(true);           
    ec.setVerboseRecovery(true);      
              ec.setMaxLockers(1024);
                   ec.setMaxLocks(100000);                ec.setMaxLockObjects(100000);               ec.setTxnMaxActive(20);
                   ec.setLogRegionSize(600 * 1024);     
    ec.setLockDetectMode(LockDetectMode.DEFAULT);
    ec.setAllowCreate(true);
                   ec.setTransactional(true);
              ec.setRunRecovery(true);          ec.setInitializeCache(true);
                   ec.setInitializeLocking(true);     ec.setInitializeLogging(true);
                   File f = new File("/Application/Persistency");
                   //open the environment try to open data base without fatal recovery
                   try
                        m_dbEnv = new Environment(f, ec);
                   catch (RunRecoveryException dbrre_1)
                        ec.setRunFatalRecovery(true);
                        m_dbEnv = new Environment(f, ec);
                   //archive and checkpoint at gatherer start up
                   CheckpointConfig cpc = new CheckpointConfig();
                   cpc.setForce(true);
                   m_dbEnv.checkpoint(cpc);
              catch (Exception e)
                   PersistencyUtils.handleFatalException(e);
         private class LogOutputStream extends OutputStream
              public void write(int b) throws IOException
                   //some clss just to print the errors
         private void openDB()
              DatabaseEntry keyDbt = new DatabaseEntry(new byte[4]);
         keyDbt.setSize(4);
         keyDbt.setUserBuffer(4, true);
         keyDbt.setRecordNumber(0);
         DatabaseEntry dataDbt = new DatabaseEntry();
         dataDbt.setReuseBuffer(false);
    try
         String tablePath = "/Application/Persistency/";
         DirUtil.mkdirs(new File(tablePath));
         PersistencyUtils.verifyFreeDiskSpace();
    Transaction transaction = m_dbEnv.beginTransaction(null, null);
    //DatabaseConfig use btree
    m_dataBase = m_dbEnv.openDatabase(transaction, tablePath + "/Data", null, PersistencyUtils.getDatabaseConfig());
    if (m_dataBase.get(transaction, keyDbt, dataDbt, null) != OperationStatus.SUCCESS)
         dataDbt = null;
    transaction.commit();
    catch (Exception e)
         PersistencyUtils.handleFatalException(e);
    if (dataDbt != null)
         byte[] data = dataDbt.getData();
         if (data != null)
              m_serializer.deserialize(m_data, data, 0, data.length);
    private void saveData()
    int length = m_serializer.serialize(m_data, m_serializationBuffer, 0);
    //this function changes the size of the m_serializationBuffer, increase and decrease its size!!!
    adjustSerializationBufferToTheRealLength(m_serializationBuffer, length);
    DatabaseEntry keyDbt = new DatabaseEntry(new byte[4]);
    keyDbt.setSize(4);
    keyDbt.setUserBuffer(4, true);
    keyDbt.setRecordNumber(0);
    DatabaseEntry dataDbt = new DatabaseEntry(m_serializationBuffer);
    dataDbt.setSize(length);
    dataDbt.setUserBuffer(length, true);
    synchronized (currentTransaction)
         m_dataBase.put(transaction.getTransaction(), keyDbt, dataDbt);
    }

  • Versioning for db objects

    Hi Experts,
    Please let me tortoise SVN,Subversion,SVN all of these are are same or is their  any difference all of them.
    If their is any difference then please let me know and which one is better  .
    My requirement is only version control  of my db object(table ,proc..) with opensource tool. My DB is in SQL 2008 R2.
    Thanks

    Guide line of
    SQL Server Database Script Management
    Through TFS
    Part 1 :  
    Environment Preparation
    Part 2 :  
    Initial Source Code upload  to TFS
    Part 3 :  
    Source Control Management
    Part 1 :  
    Environment Preparation
    To start using Team Foundation Server as source control in SQL Server Management Studio (SSMS) you have to install Team Explorer and Team Foundation Server MSSCCI providers. You have to find out the version
    of SSMS is 32-bit or 64-bit. You can check easily by opening SSMS and opening task manager. The *32 at the end of the ssms.exe entry shows it is 32-bit. Now you have to Install Team Foundation Server MSSCCI providers of 32-bit version.
    Part 2 :  
    Initial Source Code upload 
    to TFS
    Step 1:
    Open SQL Server Management Studio -> File -> New -> Project
    Step 2 : Select SQL Server Scripts and write the solution name, browse the location . Click on Open Button. Check the Add source control check box.
    Step 3 : Login to Team Foundation server
    Step 4 :
    Now check in the solution to source controls by click on Check In Button.
    Step 5:
    Now you have to add database objects (tables, Views, Stored procedure etc.) as individual script to SQL Server solution in Script folder. To do that , Go to Add new items .
    Step 6:
    After that check the solution and write your comments .Click on the Check In Button.
    System will display below progress status. In this way first time you have to update all object under the source control .
    Part 3 :  
    Source Control Management
    When you need to work in any script files then do check out and after completion check in the specific files.
    Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

  • Find long running database objects over week (without using V$ views)

    find long running database objects over week (without using V$ views) as v$ views contains information only upto objects resides on main memory . I want to know the objects which takes highest time withing one week.

    Hello,
    welcome to the forum.
    This is the forum for the tool {forum:id=260}. Your question about v$views should be posted in {forum:id=61} or {forum:id=75}. There is a FAQ {message:id=9360002}: especially the part about providing essential informations like 4 digit version number :-)
    Regards
    Marcus

  • How to get the List of Database Objects (Table/View) for a given APEX Page.

    Hi,
    I have an application and that consist of pages like page1,2,3,.....
    *1.* I want a report which can give me the list of all the Pages1,2,3,....
    I am using the following query to acheive this.... THIS IS FINE..
    select a.workspace, a.owner, a.application_name, b.page_id, b.page_name
      from apex_applications a,
           apex_application_pages b
    where a.workspace = b.workspace
       and a.application_id = b.application_id*2. Now, I want for each individual page*, the list all the database objects (tables/views), which that page is using.
    I am using ALL_DEPENDENCIES , but I am not getting the result.
    So, want to know if there any view/table, where I can get the Application Pages & there database object list...
    Thanks,
    Deepak

    Hari,
    Thanks for the response.
    The view APEX_APPLICATION_PAGE_DB_ITEMS will only give me the table name related to any Page Items defined to that page..It will not give me all the database objects..
    suppose we have a Page, having a report based on multiple tables and there is no Page items defined on that page, we will not have any value in this ....DB_ITEMS table. same thing if we have define some PL|SQL(using some table/view) in a Process, that will not be populated in .....DB_ITEMS table. I want some thing like all the database objects (table/views/function/procedure/.....) for a particular Page ID.
    Thanks,
    Deepak

  • Which version of an object is included in a transport request

    Hi experts,
    I have one doubt regarding the transport requests and the object versions included in it.
    We've found in one development that there are differences between the development system and the productive system and all the transport requests, which include this object, have been transported to production.
    The transport requests were transported in the following sequence:
    Order number    Date            Time
    1. D01K904477  29.03.2007 17:41:52
    2. D01K904511  30.03.2007 17:21:54
    3. D01K904425  30.03.2007 17:51:36
    The last order transported contains a previous version of the object.
    From my own experience in other projects I'm not sure whether the transport system it's well configured or not.  I have the idea that the transport requests always include the last version of the object transported.  Probably, it depends on the transport routes... But I'm not sure.
    Any help would be highly appreciated.

    Thank you for your answer Juan.
    This is clear. But my doubt is not solved yet.
    I'm referring to the versions included in an older transport request. 
    In our system If we transport a previous transport request to production, the latest version of the object is overwritten.
    E.g.:
    TR  1    Date: 01/01/2007  (DD/MM/YYYY)  First version of the program
    TR  2    Date: 01/03/2007  (DD/MM/YYYY)  Second version of the program
    1. We transport TR 1 to production.
    2. We transport TR 2 to production.  We have the last version of the program in production.
    3. If we create transport request TR 3 and we include the object in this TR, this TR will include the active version of the object.
    4. If we transport TR 1  to production, latest version is overwritten.  <b><<<< This happens in our system.</b>
    We don't know if this is happenning due to the transport routes configuration.
    Thanks in advance.

  • Forced to remap one database object at a time

    Our application exposes a set of data objects (views) for external reporting. Field/row level data security conditions are built into the view definitions. Different access levels are segmented by schema names and in order to enable report reuse object names are identical between schemas.
    Users granted schema rights based on their access level.
    For example, user A is granted access only to the schema X which contains View1, View2, etc. while user B is granted access only to the schema Y which also contains View1, View2, etc.
    User A can reuse report created by user B (since object names are identical), however s/he cannot do it without first changing the data source location (since their access levels and therefore schema names are different).
    However, "Set Datasource Location" dialog (see sample screenshot below) does not allow one-click schema remapping. "Current Data Source" hierarchy does not directly expose schema name (it is listed as an "Owner" property of the individual table/view object) which forces user to remap one database object at a time by expanding top and bottom trees, highlighting matching objects and clicking "Update" button.
    Our question is: are there any menu items/settings or any other facilities in Crystal Report that would allow us to make re-mapping process less time-consuming?

    Hi Len,
    No, bottom line is the designer is used to "finalize" the report. It's not designed to be use this way. What I suggest you do is create an application that can set location/schema at view time to that person logging in. This way it's all done in the back end and relatively easy to do using one of our SDK's.
    Depending on what development tool and Report engine you use depends on which forum to post your question to. SAP will not create the application for you so you will need to get a developer involved.
    Thank you
    Don
    Senior Technical Assurance Engineer
    Developer Support Team
    Business Objects, an SAP Company

Maybe you are looking for

  • How to pass prompt value to columns with formula?

    Hello guys I have a situation: I have a report with 1 column name 'product' and in this column it has a case statement like 'case when item is ('a','b','c','d') then 'Men' else 'women' end' Then I have created a dashboard prompt of the exact same col

  • Material Listing Error while creating the sales order

    Hi Guru's I have mantained a material in the lisitng for A002 combiantion for SO/DC/Pric. ref. material While creating the sales order is throwing an error as material is not listed so the transaction is not possible. I have done the basic invetingat

  • Why won't Macbook Pro startup properly without external monitor & keyboard?

    If I connect a external monitor and keyboard to my late 2011 Macbook Pro (running Lion) it starts up just fine. But if I try to start it up without these (or any other devices) attached, I get no display on the internal screen and the internal keyboa

  • Adobe Presenter 9  Scorm 1.2 package does not close..Help!

    Hello.  I am in the process of compiling some 90+ SWIF CBTS into SCORM 1.2 conformant LMS Lessons using Adobe Presenter 9.0 and MS Powerpoint 2010. All works like a charm when compiled in 2 different LMS systems up to the end..  The Lesson Window rem

  • Weird...please help!

    I dont know if this belongs here or the ipod forum but I believe it belongs here because of itunes. Okay, everytime I plug in my ipod to update it, i get this message saying "Itunes has encountered a problem and needs to close." and when I went to se