How to query database to retrieve code to create existing objects(nonPLSQL)

Hi,
I would like to know how to query the database so I can pull out the SQL required to create objects. I can already get the code for PL/SQL objects such as triggers and procedures by using DBA_SOURCE, however I also need to pull out code for objects like indexes, synonyms, libraries and views that are not stored in DBA_SOURCE. My colleague has suggested creating an index file from a metadata export however I only want code for broken objects and I need it to run automatically across all my databases with a single windows command script. Can anyone help me with this? TOAD manages to get the code for the objects but if it isn't stored in the DB then maybe it's creating it on the fly.
Thanks
Adam

If you run an export with rows=N, you can produce a file with all the scripts.
Otherwise you might want to look at DBMS_METADATA.
We would just reference the original scripts in our source control, but hey, we're crazy like that.

Similar Messages

  • Help, how to Query database using pagination

    hi,
    how to Query database using pagination for the large data,
    any API to do this?
    thank you in advance!

    Hi,
    You can specify XmlQueryContext::Lazy as your evaluation type, and only call XmlResults::next() as many times as you need results from it.
    John

  • How to query the Product short code of EBS products?

    I need to get all the Product short code of all EBS products. Is there any table record such kinds of short codes? thanks!

    Hi,
    However, these product codes are not associated with corresponding products and product families.
    do you know how to query the product name , product short codes and product familiy together?Script to get Codelevels Summary in R12 and 11i
    Re: Script to get Codelevels Summary in R12 and 11i
    PS: all these tables are public to query or just allow oracle internal usage?As Apps user, you should be able to query these tables. For other database users, you need to check if the users have select privilege to access the tables or not.
    Regards,
    Hussein

  • How to invoke a Java Custom Code after creating a resource in OIM Console

    Greetings.
    I want to invoke a custom code after creating the resource "OID User" on the OIM Administration Console. For example invoke a custom code that creates The Form's resource access descriptor (RAD) on the OID.
    I have read the Developer's Guide for Oracle Identity Manager book but I don't get how to solve my requirement.
    Should I use a "Java Task" on the design Console?
    Could Anybody provide me the detailed steps to do that?
    Thanks
    Ramiro Ortíz.

    Greetings.
    I want to invoke a custom code after creating the resource "OID User" on the OIM Administration Console. For example invoke a custom code that creates The Form's resource access descriptor (RAD) on the OID.
    I have read the Developer's Guide for Oracle Identity Manager book but I don't get how to solve my requirement.
    Should I use a "Java Task" on the design Console?
    Could Anybody provide me the detailed steps to do that?
    Thanks
    Ramiro Ortíz.

  • HOW CAN I KNOW THE FUNCTION CODE OF CREATE NEW SESSION

    <b>HOW</b> CAN I KNOW THE FUNCTION CODE OF CREATE NEW SESSION?
    THANKS...

    Hi
    Please put a "/n" (to open a new session after killing the current session)
    or "/o" (to open a new session without killing the current session)
    or "/i" (to end the current session) before the below T Codes as per your requirement...
    Try thistoo <b>O0</b>
    <u><b>demo-like programs</b></u>
    RSIMC000
    RSIMC001
    RSIMC002
    RSIMC003
    RSIMCTRX
    RSIMCTST
    Reward all helpfull answers
    Regards
    Pavan

  • How to query Database via Mobile WebDynpro with Java Dictionary?

    Hi all,
    I'm developing a simple mobile webdynpro appplication using Dictionary(DC). My Question is, how the Java Dictionary can query/insert/update/delete the underlying default database tables? I'm reluctant to use EJB as it is just for a simple application. Is there any quick and simple way to achieve this?
    Any help would be much appreciate.

    Hi,
    Dictonary project will helps you in creating tables in the backendand creating the same context structure in your WebDynpro application..
    But for doing update/add records you need to write code .Please check this How to create tables in Database when webdynpro project is deployed
    Regards, Anilkumar

  • How to query Database with Parameters  and configure null value response?

    Hi,
    1.When capture attributes from forms & after applying several logics, passing to a DB table using an API, how to get relevant values for a given parameter in another DB table ?
    2.When a DB table is queried, if the value does not exist, how to configure the response message ?
    Thanks.

    Okay, you've provided exactly what John S. asked for - and no more. This is helpful, but not enough. I think we're going to need a use case to understand exactly what you are asking. What should the user see? What does the user do next? What should happen in the database and in the application when the user does this?
    However, I'll try to read between the lines a bit, and get you part of the way there. To query the database with parameters in ADF BC, you need a View Object (VO). The simplest thing to do is create the SELECT command behind the VO with some bind variables and add the bind variables to your VO. At that point, you will get an ExecuteWithParameters operation in the Data Control. You can drag that operation onto a JSF page and it will give you an option to create a parameter form to let the user fill in the parameters to set the bind variables, and a button to execute the query with these values. Any table or form based on that same VO will show the selected data.
    A Trinidad or ADF Rich Faces table will have an attribute to let you define some text to show the user if no data was retrieved by the query. But there are other ways to determine if data was retrieved which you can use to control other ways to display this information. For instance, I have a page that has an outputText component that has a "rendered" attribute to show the text only when there was no data retrieved by a query.

  • Standby databse for a query database

    Hi,
    Can I use a standby database to make a query database.
    My idee is :
    create a standby database on production,
    daily open this one in read/only,
    and nightly recover standby database.
    Is it available ?
    thanks in advance for your help.
    gnom92.

    There is no rule of thumb. It really depends on how much REDO is generated by the primary database. If the primary is CPU-bound processing transactions 24 hours a day, it will take a lot longer to recover the standby than it would if the primary has a moderate transaction volume.
    If you have tested your recovery plan recently, you can probably make a pretty good estimate, since that is basically what the standby is doing. If it takes you an hour to apply a day's worth of archive logs to recover your system, it will take an hour to recover your standby database (assuming identical hardware & software configuration).
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Re: How to create the Object R3TR NROB Y_BKRS

    Dear Experts,
    Can any one please give me the transaction code to create the object      R3TR NROB Y_BKRS.
    Thank you

    Transaction SNRO.
    J.N.N.

  • How to query a distant database without using db link in pl/sql

    Hi
    I have two different distantly located databases say d1,d2
    There is a table dept which had deptno (primary key),department name as columns .
    I need to query database d2 on the basis of the deptno present in database d1.
    In database d2 , there are some tables which have columns as deptno.
    I cannot use DB link .
    Is there any other method that I can use from Pl/sql ?
    Is it possible thru XML ?
    PLs let me know in details .
    regards
    SHUBH

    You need to have an Oracle Apache Server installed. It can be on any platform that has connectivity to the Oracle Server. Preferably on the same server as Oracle itself.
    The Apache Server is installed in its ORACLE_HOME/Apache/Apache. It should have been configured by the installer. All you need to do is to create a DaD (Database Access Descriptor) for MOD_PLSQL. This is a custom Apache Module that provides direct access to PL/SQL via OCI. DaDs are defined in the ORACLE_HOME/Apache/modplsql/conf directory. There are README files, sample files and a dads.conf file in which you need to define a URL to assign as the service for your database, the Oracle username and password to use to logon, and the database connection details (e.g. TNS alias).
    The Apache Server needs to be restarted for the changes to take effect (using either opmnctl or apachectl).
    Let's say the URL path defined is /mydatabase. When Apache receives a URL that starts with /mydatabase, it passes it to MOD_PLSQL. MOD_PLSQL looks in the dads.conf for the database to connect to. The rest of the URL contains the PL/SQL package or function to call, e.g.
    /mydocuments/scott.p123.procABC&emp_id=123
    Where procedure procABC is called in packahe p123 in the Scott Schema. The variable EMP_ID is passed with value 123. Thus the procABC definition will look as follows in the package:
    procedure procABC( emp_id number ) is
    begin
      .. code..
    end.;This proc can write HTML data - i.e. dynamically create a HTML response page. Or it can create an image or any other Mime type that the browser can handle.
    Oracle provides a bunch of PL/SQL packages for that. E.g. HTP and OWA packages.
    This in a nutshell is how MOD_PLSQL is used to allow a web browser URL to be passed directly to a PL/SQL procedure.
    The details are under Oracle Application Server PL/SQL (http://download-west.oracle.com/docs/cd/B14099_12/web.htm). Two manuals are applicable:
    * mod_plsql User's Guide
    * Web Toolkit Reference
    It is not complex to use. In fact, the easiest to get all this going is to install HTMLDB 2. Download the Oracle 10G Companion CD for your platform (even if you're running 9.2). Install HTMLDB (this will be in a seperate ORACLE_HOME and will not touch your existing Oracle installation). This will install the latest Apache and MOD_PLSQL software from Oracle. Also HTMLDB is built entirely on MOD_PLSQL and with PL/SQL procedures - and serves as Microsof Access type web interface for developing and deploying web applications on Oracle using PL/SQL. Very powerful and flexible and very easy to use.

  • POST-QUERY trigger cannot retrieve the database field in TEMPLATE.fmb

    I have tried to create a form using TEMPLATE.fmb in Oracle Apps R11i. I found that the POST-QUERY trigger cannot retrieve the database field (which is display item property) properly. Can anyone tell me how to retrieve the displayed database fields? Thanks for any helps.

    POST-QUERY would fire after the query has been executed, it does not do the actual data retrieve.
    See if the items you have put have the data source properties set and are not control items.
    btw, this forum is for OA users, you would get better response to your query if you post it in forms forum
    Thanks,
    Tapash

  • How to use query-database() function in transformation?

    Hi All,
    How to use query-database() function in transformation?
    It is giving four fields but if i write select query in sqlquery field it is saying select node is not found....
    plz help me out
    Regards
    Pavankumar
    Edited by: [email protected] on Jul 29, 2009 2:49 AM

    Hi,
    To answer your query:-
    http://abhishek-soablog.blogspot.com/2008/08/orclquery-database.html
    Cheers,
    Abhi...

  • How to determine the connection string to a SQLite database, in C# code

    Hello. I'm trying to figure out how to specify the connection string to a SQLite database, I would like to access using the following code:
    string connectionString = null;
    SqlConnection connection;
    SqlCommand command;
    SqlDataAdapter adapter = new SqlDataAdapter();
    DataSet ds1 = new DataSet();
    string sql = "SELECT DataName, Data, Id, UserId, DateLastUpdated FROM MainTable";
    connectionString = "Data Source=C:\\SQLITEDATABASES\\SQLITEDB1.sqlite;Version=3;";
    connection = new SqlConnection(connectionString);
    try
    connection.Open();
    command = new SqlCommand(sql, connection);
    catch
    The value I assigned to the variable connectionString, in the code above, I obtained somewhere from the Internet. It does not work. I'm using Visual Studio 2013, against the file sqlite-netFx451-setup-bundle-x86-2013-1.0.96.0.exe, which
    I installed, and got from
    here.
    My application's App.config file looks as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <configSections>
    </configSections>
    <connectionStrings>
    <add name="DC_Password_Saver.Properties.Settings.DC_Password_SaverConnectionString" connectionString="data source=&quot;C:\Users\patmo_000\Documents\Visual Studio 2013\Projects\DC Password Saver\DC Password Saver\DC Password Saver.db&quot;" providerName="System.Data.SQLite.EF6"/>
    </connectionStrings>
    <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
    </startup>
    </configuration>
    I tried to use the value assigned to connectionString in the XML settings above, replacing single backslash characters with double backslash characters, because the Visual Studio editor flagged them as unrecognizable, and wound up with the
    following.
    SqlDataAdapter adapter = new SqlDataAdapter();
    DataSet ds1 = new DataSet();
    string sql = "SELECT DataName, Data, Id, UserId, DateLastUpdated FROM MainTable";
    connectionString = "data source=&quot;C:\\Users\\patmo_000\\Documents\\Visual Studio 2013\\Projects\\DC Password Saver\\DC Password Saver\\DC Password Saver.db&quot;";
    connection = new SqlConnection(connectionString);
    The above code however does not work either. So again, does anyone know how I can specify in C# code, a connection string to access my SQLite database? Thanks in advance for your reply.

    What does SQLite connection strings has to do with WPF?
    You will find some valid connection strings here:
    https://www.connectionstrings.com/sqlite/
    But you cannot use the SqlConnection class to connect to a SQLite database. You will need to download and add a reference to the System.Data.SQLite library and then use the SQLiteConnection class:
    connection = new System.Data.SQLite.SQLiteConnection(connectionString);
    try
    connection.Open();
    command = new System.Data.SQLite.SQLiteCommand(sql, connection);
    catch
    Please refer to the following article for more information and an example of how to connect and read and write data from an SQLite database using C#:
    http://blog.tigrangasparian.com/2012/02/09/getting-started-with-sqlite-in-c-part-one/.
    There is contains a link where you can download the required assemblies.
    Hope that helps.
    Please remember to mark helpful posts as answer to close your threads and then start a new thread in an approproate forum if you have a new question.

  • How to extract the Physical Query(database Query)

    Hi ,
    How to extract the Physical Query(database Query) from obiee which was fired in obiee
    Regards
    Ranga

    Hi Ranganath,
    Have a look the following links.
    Setting Logging level:
    http://gerardnico.com/wiki/dat/obiee/loglevel
    How to see physical query:
    http://gerardnico.com/wiki/dat/obiee/manage_session_log
    If you are new to OBIEE, spend some hours on the following blog to learn from basics to advanced level.
    http://gerardnico.com/wiki/
    http://obiee101.blogspot.com/
    http://www.rittmanmead.com/blog/
    Hope it helps you.
    Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • How to compile a piece of code from the database

    I've created my own object navigator which is also able to view the code of a certain object. (HTML)
    I'm trying to create a function to compile this code again to the database.
    I've tried "execute immediate" but this has the downside that It can only parse 32kb of text and that every object I create in this manner will not compile correctly. ("success but with compilation errors")
    How can I compile my own objects?

    If your objects already exist in the database, try
    EXECUTE IMMEDIATE 'ALTER FUNCTION function_name COMPILE' ;
    Of course if you make changes, one of your options is to compile using SqlPlus (using a script).
    You could also create an external proc (Java or C) to compile the objects.
    I've created my own object navigator which is also able to view the code of a certain object. (HTML)
    I'm trying to create a function to compile this code again to the database.
    I've tried "execute immediate" but this has the downside that It can only parse 32kb of text and that every object I create in this manner will not compile correctly. ("success but with compilation errors")
    How can I compile my own objects?

Maybe you are looking for

  • Need Help with Linksys router broadband-b

    I have a Linksys wireless-B broadband router for some reason it just went crazy on me. My wireless card is a wireless - G . Now when i had Verizon DSL  i  got this router and a USB  wireless adaptor from verizon. I had the usb adaptor on my wife comp

  • Saving scripts into repository doesn't work in UCCX 8.0 Editor

    In UCCX 5 and 7 you could open scripts from repository in Editor running on any machine, and you could save them to repository also. In UCCX 8, I'm only able to open scripts from repository, but not save them, I get an error. TAC claims that this is

  • How do i remove music and a resync my ipod shuffle

    how do i remove music and resync my ipod shuffle with new music

  • Buy more than 1 iPhone 3G?

    Hey, My uncle bought an iPhone 3G from the Apple Store about 4 months ago with the 2-year-contract of at&t of course. Currently, he wants to buy another one. Will he have to buy it with another contract or what? How much will it cost him? Is it possi

  • How to do HTTP getRequest() with windows NTLM authentication from OBPM..??

    Hello All, Please share your expert ideas how me can do HTTP getRequest() with windows NTLM authentication from OBPM..?? I am not sure even whether its possible or not, if not what could be the alternative way to do integration with MS SharePoint ??