Retrieve the name of tables and its plsql procedure schema

Hello

Help me please pass my last training evaluation

the task is:

between the username and the password and then who will retrieve tables exist and the script for each table.

the output should be like:

user name: -.

table_name1:

table_name1 script

table_name1 script

table_name1 script

table_name2:

table_name2 script

table_name2 script

table_name2 script

.

.

.

and so on

in the last of the production
You should see the following:

No tables for: username: table_numbers

Please help me.

If your boss wants to test your ability to write code and understand the dictionary of data, then you can try something like this:

begin
    for t in (
        select table_name from user_tables order by table_name
    )
    loop
        dbms_output.put_line(t.table_name);

        for c in (
            select * from user_tab_columns c
            where  c.table_name = t.table_name
            order by c.column_id
        )
        loop
            dbms_output.put_line('    ' || rpad(c.column_name,31) || c.data_type);
        end loop;
        dbms_output.new_line();
    end loop;
end;

This just lists the tables and their columns. You must understand how to add more details and to make a set of create table statements.

If it ask for user name and password there must probably be a SQL * more script (.sql file). He could use ACCEPT to invite (there are examples at the bottom of the page).

Tags: Database

Similar Questions

  • How can I get a name of table 1, column A, if column B is a negative number and insert the names of table 2?

    How can I get a name of table 1, column A, if column B is a negative number and insert the names of table 2?

    What is the formula?

    You can do this with a column of "index" in table 1, as this assistance:

    The formula in C2, filled to the bottom:

    IF (B =<>

    That increments a counter each time that it finds a negative number in column B.

    In the second table, you can retrieve a list of negative values in this way:

    The formula in A2, filled to the bottom:

    = INDEX (array 1::A, CORRESPONDENCE (LINE (−1, Table 1::C), 0))

    It takes the line number, the formula is activated, subtracts 1 to the header line and look up the result in the column of table 1 C.  If it finds a match, it feeds the line number to the INDEX page with retrieves the value of the column of table 1A.

    To hide the red triangles of signage wrap the IFERROR formula, like this:

    = SIERREUR (INDEX (table 1::A, CORRESPONDENCE (LINE (−1, Table 1::C), 0)),"")

    Of course, you can also simply filter on column B without the need to set up a column from another table or index.

    SG

  • Please share the Script to retrieve the name of host, HBA, HBAstatus, WWN, pathpolicy and dualpathinfo

    Please share the Script to retrieve the name of host, HBA, HBAstatus, WWN, pathpolicy and dualpathinfo

    Take a look on Re: information on the host hardware with information about the HBA drivers and nic

  • I have the table and its size is full

    I have the table and its size is full when im inseting records, not insert, how do I increase the size of table
    ALTER TABLESPACE ts_tbsp
      ADD datafile 'c:\oracle\product\10.2.0\oradata\df\ts_data01.dbf'
      SIZE 4M
      AUTOEXTEND ON;
    

    Means-
    In tablespace "ts_tbsp", adding a data file 'ts_data01 '.

    AUTOEXTEND ensures in the future if whenever the data file fills an additional size of 4 M is added automatically.

    Once it is created, a new data with the extension .dbf file is created in the folder Oradata.
    Another file dbf (default) includes:-SYSTEM.dbf, SYSAUX.dbf, TEMP.dbf, USERS.dbf, etc.

    See - http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_3002.htm

    HTH.
    Vanessa B.

  • Check a functional index on a table and its metadata

    Hello

    I have a functional base normal index (unique) defined on a table that uses a function of decoding and a combination of the columns of a table.
    For example: decode (status, 'A', column1 | column 2, column1 | Column2 | Column3)

    Now my question is, how do we ask these functional indices of the database to see what exactly is the function...

    On the database when I run a query: -.

    Select in all_indexes where index-name =: index_name, *.

    She retrieves the name of the stored index code as ncs $00025 (don't remember the exact value).

    How will I know what exactly is the function? (from table)

    and is it possible that I can query the data that has been indexed by this unique index, so that I can check why unique constraint is violated in some cases?

    Thank you and best regards,
    Sylvain

    How, we ask these functional indices of the database to see what exactly is the function...

     select * from user_ind_expressions
    
  • I forgot the name of user and password and my email has been deleted! Help!

    Hello! I have a Skype account with an email, I used to have (it's been deleted) and I can not find the user name and password. Skype account is still active by the way, I just can't log in cause I don't have the name of user and password. Is there any other way (except mail) to discover the password/user name?

    Whitout access to registered e-mail, I guess calling the service the customer is your only option, however, if you don't remember the user name or any other information that you can link to the account, retrieve the account may be difficult. If you already use Skype, a computer, you have access to, the %appdata%\skype folder contains a folder with the same name as your username (and all the others who have used the same computer logged in as that user).

    https://support.Skype.com/en/FAQ/FA1170/how-can-i-contact-Skype-customer-service?FromPage=search&fro...

  • How to retrieve forgotten names of users and passwords for windows mail?

    How to retrieve forgotten names of users and passwords for windows mail?

    How to retrieve forgotten names of users and passwords for windows mail?

    Contact your ISP, Internet service provider or your mail server.
    They have all the information to your email account.

  • Is it possible, using ExtendScript, to retrieve the name of a model used in first

    I have an AE Comp used in first instance.  I'm looking for a way to quickly manage the names of the AE model and this model used in the first instance.  The goal is to maintain naming conventions as efficiently and accurately as possible.  I was wondering if there is a way, using ExtendScript (a command in a custom panel) to retrieve the name AE Comp of her in first instance.

    Any projectItem with a path ending with .aep is a likely candidate.

    Our next version provides iteration better the elements in a sequence; You can reach the projectItem of any clip, that should give you what you need.

  • How 2 change the name of image, including its .xmp file?

    How 2 change the name of image, including its .xmp file?

    I suppose that if I change image file name, the file '.xmp' that accompanies it will no longer an appropriate reference to associate. Also, I guess I can just simply change the name of the image file and give its eponymous .xmp. That means, for example, if I have:

    "This1stPhotoOfJane.dng" and "This1stPhotoOfJane.xmp"

    and change their names manually:

    "JanePhoto1.dng" and "JanePhoto1.xmp"

    It would not work.

    So is the simple way to do it?

    I have a bunch of files that I forgot to name who have already gone through the raw editor and now I would like to give them a real name as opposed to a single series of numbers they currently have.

    You should be able to bridge, since by default, the file of the side car is hidden. I think he knows enough to rename both.

    Copy the image and the file in a temporary folder, rename it and check that it actually did. If I myself remember copy or film a raw file would also move or copy the file, then it would be a good time to check that as well.

  • Pick up the names of tables based on the value of the column

    I have a scheme in which I have 10000 tables and I want to pick up the names of tables in the schema where org_id is not equal to 1,
    Note: Org_id here is the column name.

    Could you please provide sql code me or a procedure to achieve this.

    Thanks in advance.

    This lthread can help

    How to find the column name and the name of the table with a value

  • Retrieve the names of files for Linux?

    Hello
    I installed ODI 11 g on windows. and load the multiple file. as you can see that this procedure (script) is used to get the name of the files. using technology "Operating System"
    cmd /c dir D:\test\*.*/b /a:-d > D:\\Filesname.txt. It works well on windows. Now, I want to load these files names that are on the Linux server.
    How will be the script for this
    as my files directory name is Test > > > > that contains files
    Filename.txt > > retrieves the names of the files in the test directory.
    In Linux.

    Thank you

    Concerning

    create a script file using above command and run the script file in odi.

    /Home/user_name/ScriptFile.sh

    It will work.

  • How the names of variables and units used in the binary output file

    My colleague will give me LabView generated from the binary files (*.dat). There are more than 60 variables (columns) in the binary output file. I need to know the names of variables and units, which I think he has already configured in LabView. Is there a way for him to produce a file that contains the name of the variable and unity, so that I'll know what contains the binary file? It can create an equivalent ASCII file with a header indicating the name of the variable, but it does not list the units of each variable.

    As you can tell I'm not a user of LabView, so I apologize if this question makes no sense.

    Hi KE,.

    an ASCII (probably the csv format) file is just text - and contains all data (intentially) written to. There is no special function to include units or whatever!

    Your colleague must save the information it records the names and values in the same way...

    (When writing to text files, it could use WriteTextFile, FormatIntoFile, WriteToSpreadsheetFile, WriteBinaryFile even could serve...)

  • Retrieves the name of the variable

    Hello

    I'm trying to change the OpenG changed? Subvi (see below) so that he will write the new value of the variable sent to 'Variant' if changed on the disk (using the following config VI). To do this, I need to somehow extract the variable name of the variable (any type) which was connected to the entrance of variant of the changed? Sub - VI by VI calling so that I can use it as a key name. Is this possible? This information is still transmitted to the Subvi?

    If you use openg, there is a "Get the name of data" function that retrieves the name of the data passed in the Variant.

  • I'm unable to uninstall Windows Media Player 11, because it seems that the hidden folder $NtUninstallwmp11$ and its content have been accidentally deleted from my computer.

    I'm unable to uninstall Windows Media Player 11, because it seems that the hidden folder $NtUninstallwmp11$ and its content have been accidentally deleted from my computer by another software. I want to go back to the previous version of Windows Media Player (WMP10). Please let me know how to uninstall WMP11 or back to WMP10.

    Please note that the process mentioned in this MS article did not.
    http://support.Microsoft.com/kb/934372
    Thanks in advance.
    original title: impossible to uninstall WMP11

    Hello

    Try to restore the system to the date and time when the computer was working fine.

    Click on the link below.

    http://support.Microsoft.com/kb/306084

    If you are still experiencing a problem, I suggest you try to post in the link mentioned below.

    http://social.technet.Microsoft.com/forums/en-us/category/windowsxpitpro

  • Can I globally change the names of files and or directory to lowercase to uppercase?

    in Windows XP or in Windows 7, globally change the names of files and or directory to lowercase to uppercase?

    A single configuration change probably will not accomplish this.

    Your best bet is probably the freeware "Bulk Rename Utility" program which has a section dedicated to change the case of file names.

    Bulk Rename Utility: <> http://www.bulkrenameutility.co.uk/Main_Intro.php >

    HTH,
    JW

Maybe you are looking for

  • What is the difference between the more late-ash-nexus-5-l and latest-mozilla-central-nexus-5-l?

    I use Firefox OS 2.2 on 5 Nexus.I like later unstable version. I can't understand difference bewteen two past Rome.That means 'ash '? https://FTP.Mozilla.org/pub/B2G/nightly/latest-ash-nexus-5-l/ https://FTP.Mozilla.org/pub/B2G/nightly/latest-Mozilla

  • MainStage new patch problem

    Hi, since a few weeks now, when I try to load a new sound in a new patch that I just created in a new channel strip, the noise will not play. MIDI signal is good, but the yellow line in the space of work, which usually show the range of each channel

  • Tecra M4 - Mainboard double display Hack

    Hello As my Tecra M4 died because of a broken three months CPU fan earlier, I already knew that, this laptop I'd then buy: a Tecra M4 :) I really like this camera. So now I have my new Tecra M4 (40th) and dismantled the old components. (except the mo

  • How to bothAnalog DBL and Analog 2D 1 d DAQmx read.vi wfm

    Hello I use Labview2010 and NIUSB6009 for aquairing data. I need to have two Analog1D waveforms and Analog DBl DAQmx Read.vi 2D. I do continuous sampling. no idea how to get both types of DAQmx Read.vi? Thank you

  • Steam exception error.

    Reinstalled Windows 7 64 on the new SSD hard drive. Steam downloaded and worked well. Even ran a Steam game. I then updated Windows software.  Now the steam does not work. I get an exception error. When I click on the link, it says invalid and deltes