Need to get a list of the tables used in a PC using a query to USER_SOURCE

We would like to re - design an integration application using synonyms, pointing to a DB link. Now, we use the names of the tables.  The tables can be found in a remote database.

We want to deal with in our local database instead of the treatment in the 32 remote DBs.

To determine the size of the re-design and development, we want to know how many different tables, we used in our package which has more than 6,000 lines of code.

When we issue you with this query:

Select text From User_Source Where Name = 'INT_PKG' and Type = 'PACKAGE BODY' and Lower (Text) Like '% % ';

We get lines like this:

IN double v_ret_val;

OF cmn_reg_reports m, case_reg_reports c

OF case_master c

OF case_assess

OF the double

OF case_master

etc.

Now I want the output voltage:

Double

cmn_reg_reports m, case_reg_reports

case_master

case_assess

Basically, I want to get a list of tables that I used in this package.

How can I do it using REGULAR EXPRESSIONS?

Why need to fetch from user_source... !

Instead you can easily get Table reference in the user_dependencies procedure!

Look for them

REFERENCED_OWNER, REFERENCED_NAME to REFERENCED_TYPE = "TABLE".

Select

referenced_owner,

referenced_name,

referenced_type

Of

dba_dependencies

where

name = "proc_name".

and

owner = 'owner_name '.

AND referenced_type = 'TABLE ';

Tags: Database

Similar Questions

  • How to get a list of the tables more fragmented in Oracle?

    Is there a SQL on how to get a list of the tables more fragmented in the Oracle DBMS?

    Update the statistics on the table and try this, you should see very fragmented tables upstairs with high wasted_space.

    select table_name,round((blocks*8),2) "size (kb)" ,
                                round((num_rows*avg_row_len/1024),2) "actual_data (kb)",
                                (round((blocks*8),2) - round((num_rows*avg_row_len/1024),2)) "wasted_space (kb)"
    from dba_tables
    where (round((blocks*8),2) > round((num_rows*avg_row_len/1024),2))
    order by 4 desc
    

    I changed the query a little because the ORDER BY will not work if we concat | ' Ko ' with the column because this makes the output a character column data.
    And added a WHERE condition to see that these tables where the total size is greater than the actual size of data.

    Published by: zahid79 on July 23, 2010 13:40

  • You can get a list of the records in a table in Word or Excel file?

    I want to include an annotated list of contents of the folder in a Word document.  Can one get a list of the Explorer of a Word in Excel table?

    Select one of the files and press Ctrl-A. Hold the SHIFT key, then right click and select copy in the path. Switch to your Word or Excel file, and then press Ctrl + V.

    Noel

  • How to get a list of the rooms

    Hello

    How to get the list of rooms associated with an ALCCS (Adobe LiveCycle Collaboration Service) account . I tried to use the caller class and the requestRoomList() method, but I don't get that. If anyone can guide me...

    you need a bit of luck.


    http://www.Adobe.com/2006/mxml"layout ="absolute"xmlns:rtc ="AfcsNameSpace">
       
            Import mx.automation.AutomationManager;
    import com.adobe.rtc.events.AccountManagerEvent;
    import com.adobe.rtc.authentication.AbstractAuthenticator;
    import com.adobe.rtc.util.AccountManager;
               
    private var acmanger:AccountManager;

    private void onRoomListReceiveHandler(event:AccountManagerEvent):void
    {

    }

    private void onLoginSuccessHandler(event:AccountManagerEvent):void
    {
    acmanger.requestRoomList ();
    }

    private void onLoginFaultHandler(event:AccountManagerEvent):void
    {

    var roomList:Array = event.list in the table;

    }

    private void onSync(event:Event):void
    {

    }
    private function createRoom (): void {}
    acmanger = new AccountManager();
    acmanger.accountURL = "https://connectnow.acrobat.com/youraccount";
    acmanger.isAuthenticated = false;
    acmanger. Authenticator = myAccount;
    acmanger. Login());
    acmanger.addEventListener (AccountManagerEvent.ROOM_LIST_RECEIVE, onRoomListReceiveHandler);
    acmanger.addEventListener (AccountManagerEvent.LOGIN_SUCCESS, onLoginSuccessHandler);
    acmanger.addEventListener (AccountManagerEvent.ACCESS_ERROR, onAccessErrorHandler);
    }
    private void onAccessErrorHandler(event:Event):void {}
                   
    }
    private void onCreateRoomHandler(event:AccountManagerEvent):void {}
                   
    }
    ]]>
       
       
           
               
           

       

       
       

  • Where can I get a list of the updates released for Windows 7 for a certain period of time?

    Where can I get a list of the updates released for Windows 7 for a certain period of time, without resorting to the use of windows update program, and having in mind that the list updates installed locally, no full

    Oh, this https://technet.microsoft.com/en-us/windowsserver/bb332157.aspx?f=255&MSPPError=-2147217396 is exactly what I need, thank you very much!

  • How to get a list of the virtual disk?

    Hello

    How can I get a list of the ramdisk with information such as the size, used, type free, ?

    ==================This is my code ========================================

    Object cmobj
    = cb.getServiceUtil (). GetDynamicProperty (hostmor, "configManager");

    ConfigMgr HostConfigManager = cmobj (HostConfigManager);

    ManagedObjectReference ssSystem = configMgr.storageSystem;

    StorageInfo HostStorageDeviceInfo = (HostStorageDeviceInfo) cb.getServiceUtil (). GetDynamicProperty (ssSystem,

    "storageDeviceInfo");

    ======================================================================

    I can get the information of sotrageInfo, but not what I need, I mean, I can't "size, used, free, type, etc." information.

    And I also tried the code below:

    dcmor = ecb.getServiceUtilV25 (). GetDecendentMoRefs (_sic.virtualDiskManager, "Datastore");

    But I get nothing

    Could someone help me?

    I think you are looking for information on data warehouses. You can try the following command PowerCLI:

    Get-Datastore |
    Select-Object -Property Name,CapacityMB,
    @{Name="UsedSpaceMB";Expression={$_.CapacityMB-$_.FreeSpaceMB}},
    FreeSpaceMB,Type
    

    You want to book an information on the disks in the virtual machine, and then you can use the following script:

    Get-VM |
    ForEach-Object {
      $VM = $_
      $VM.Guest.Disks |
      Add-Member -MemberType NoteProperty -Name VM -Value $VM.Name -PassThru |
      Select-Object -Property VM,Path,
        @{Name="CapacityGB";Expression={"{0:N1}" -f ($_.Capacity/1GB)}},
        @{Name="UsedSpaceGB";Expression={"{0:N1}" -f (($_.Capacity-$_.FreeSpace)/1GB)}},
        @{Name="FreeSpaceGB";Expression={"{0:N1}" -f ($_.FreeSpace/1GB)}}
    }
    

    Best regards, Robert

  • I need to print a list of the files in a folder

    I need to print a list of the files in a folder.

    How can I do this without resorting to either a print screenshot or typing everything on hand?

    Thank you.

    I need to print a list of the files in a folder.

    How can I do this without resorting to either a print screenshot or typing everything on hand?

    Thank you.

    Hello

    It is actually very easy to do. See the following article for steps add a menu item print directory for the context menu.

    How to add the feature print directory for files in Windows XP, Windows Vista or Windows 7

    Scroll down to the Windows 7 section and follow the instructions.

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • How can I get a list of the applications that I paid for with my subscription?

    How can I get a list of the applications that I paid for with my subscription?

    Which subscription you have... specialized photography or cloud together?

    Cloud Plans https://creative.adobe.com/plans

    -Special photography Plan includes Photoshop & Lightroom and Bridge & Mobile Lightroom

    -What is in the set of Cloud http://www.adobe.com/creativecloud/catalog/desktop.html

  • Is there a way to get a list of the tools in photoshop?

    How could I go by getting a list of the screening of the tool are currently loaded in the PS?

    Thanks in advance

    I managed to figure, found this piece of code in a different thread and changed to return a list of predefined tools names.

    function getToolPresetNames() {}

    Var ref = new ActionReference();

    ref.putEnumerated (charIDToTypeID ("capp"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));

    var appDesc = executeActionGet (ref);

    var list = appDesc.getList (stringIDToTypeID ('presetManager'));

    var presetNames = [];

    var List.getObjectValue = list (7) .getList (charIDToTypeID ('n'));

    for (var i = 0; i)< list.count;="" i++)="">

    var str = list.getString (i);

    presetNames.push (str); }

    Return presetNames;

    }

  • need to get my pictures off the coast from the old computer to my new on my lightroom, had to download lightroom with my serial number not the fact the new computer doesn't have a cd player

    I fight with this forum, so if I keep asking the same question is because I'm not move here very well. I had to load my lightroom online on my new computer because I don't have a cd driver. Now that I've loaded it I need to get my photos on the old computer. Any ideas on how to do it, and I don't have creative cloud

    Hi tinap50,

    You can use an external hard drive to get all the images from your old computer to the new, then import into Lightroom.

    Kind regards

    Claes

  • How to list all the tables that have no data

    Hi all


    I want to list all the tables that have no data. (registration number is 0)

    Someone help me.

    Thank you
    Thiensu2810

    Select owner, table_name from dba_tables where num_rows = 0;

    This assumes that the table statistics are COMMON.

  • How to insert image from mysql into the table using php and create the checkbox in the table?

    How can I insert image from mysql into the table using php and create the checkbox for each data as a vote? Here is my code...

    WELCOME

    connect_error) {die ("connection failed:".)} $conn-> connect_error); } $sql = "SELECT no, Calon, ID, of course, the Image OF THE candidates." $result = $conn-> Query; If ($resultat-> num_rows > 0) {echo ' '; export data of each line while ($row = $result-> fetch_assoc()) {"echo"}}
    NO Candidate INFO Vote
    " . $row ["no"]. "-" . $row ["Calon"]. "
    -" . $row ['ID']. "
    -" . $row ['class']. "
    "; } ECHO ' ' ;} else {echo '0 results' ;} $conn-> close();?} >

    hope someone can help me because I am a newbie in this program... need to finish this project... Thank you.

    If you have saved the file name in the database, it's pretty simple.

    echo '' . $row['description'] . '';
    

    Is the same for the box:

    echo '';
    

    If you have saved the image file in the database, it is much more complicated. I recommend you store only the file name in the database.

  • Trying to create the table using Clause any Union with Select multiple stmts

    The motion seeks to get the substring of the value to for example.
    If the value is * ASA 2 * then so do ASA
    where as if the value is * 1.5 TST * it sholud come as TST as wise for others too.
    I am trying to execute stmt SQL written but in error as below:

    * ' ORA-00998 must appoint this expression with the alias column 00998.00000 - must appoint this expression with the column alias. "

    CREATE TABLE TEST_CARE AS
    (
    SELECT row_id, old_care_lvl, SUBSTR(old_care_lvl,3), len test_care_lvl FROM
    WHERE LENGTH (old_care_lvl) = 5
    UNION ALL
    SELECT row_id, old_care_lvl, SUBSTR(old_care_lvl,3), len test_care_lvl FROM
    WHERE LENGTH (old_care_lvl) = 7
    UNION ALL
    SELECT row_id, old_care_lvl, SUBSTR(old_care_lvl,3), len test_care_lvl FROM
    WHERE LENGTH (old_care_lvl) = 14
    UNION ALL
    Row_id SELECT, old_care_lvl, SUBSTR (old_care_lvl, 3), LEN test_care_lvl
    WHERE LENGTH = 7 AND old_care_lvl (old_care_lvl) = "Regular."
    );

    I want to create the table using the above given the multiple selection by using the Union ALL clause, but trying to create run query error like "ORA-00998 must appoint this expression with the alias column 00998.00000 - must appoint this expression with the column alias.

    Please guide me how to approach to solve this problem.
    Thanks in advance.

    Try this->

    CREATE TABLE TEST_CARE
    AS
      select *
      from (
              SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
              WHERE LENGTH(old_care_lvl) =5
              UNION ALL
              SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
              WHERE LENGTH(old_care_lvl) =7
              UNION ALL
              SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
              WHERE LENGTH(old_care_lvl) =14
              UNION ALL
              SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3),LEN FROM test_care_lvl
              WHERE LENGTH(old_care_lvl) =7 AND old_care_lvl ='Regular'
          );
    

    N.B.: Not tested...

    Kind regards.

    LOULOU.

  • How to know the tables used in packages of a schema.

    How to know the tables used in packages of a pattern that I have connected.

    SELECT DISTINCT referenced_owner, referenced_name

    Of all_dependencies

    Owner WHERE = "MY_USER_NAME".

    AND type ('PACKAGE', 'BODY of PACKAGE')

    AND referenced_type = 'TABLE '.

  • I want to cancel and get my $$$ back, because the conversion using Adobe export in format PDF to Word does NOT, too many errors and inaccuracies in the Word DOC to use. Please cancel my order AD017941759 as soon as POSSIBLE!  Thank you...

    I want to cancel and get my $$$ back, because the conversion using Adobe export in format PDF to Word does NOT, too many errors and inaccuracies in the Word DOC to use. Please cancel my order AD017941759 as soon as POSSIBLE!  Thank you...

    You will be eager to start here:

    Cancel your subscription or membership. Acrobat, services Cloud of Document PDF

    Be well...

Maybe you are looking for

  • Satellite L655 does not load

    Hello My satellite L655 does not load, BUT it works fine when I charge the battery of my second toshiba laptopalso does not open when I plug just the charger without the battery (led power 3min.from-no at all) charger works finebattery works very wel

  • DaqMX wait the next sample causing slow down Clock.vi

    Hello I have a question about the proper use of DaqMX wait for next sample clock. I read channels analog voltage on a map or pcie-6259. I would like to read as soon as possible make your comments between each of these points of single data points. I

  • How can I show that the phone is busy or loading?

    Hello I'm new to blackberry programming, but until now, it appeared too difficult to do everything like I wanted. but now I'm stuck. I am a communication with a Web service a lot so there quite some time the user must wait. so far I have not any indi

  • How can I identify the answering machine to my question if I can credit?

    I need identify the provider who responds to my questions in order to be able to properly thank them and possibly to continue the topic more in depth.

  • Developments of MS Access under Windows 7

    Software applications developed with MS Access database will run Ok on Windows 7?