How to remove temporary tables $ ODI scheme. ?

Hi Expertise,

I am trying to remove the tables $ I receive when executing my Interfaces, procedures, and packages.
I use this code I found in google.


I created an option named tempSchema with value ODI (my diagram) that I work


DECLARE

NUMBER OF V_COUNT;

V_TABLE VARCHAR2 (300);

stmt varchar2 (300);

BEGIN

SELECT COUNT (DISTINCT TABLE_NAME) IN V_COUNT ALL_TABLES WHERE

OWNER = '< % odiRef.getOption ("tempSchema") % >' AND TABLE_NAME LIKE ' % $_ % ';

WHILE(V_COUNT>0) LOOP

SELECT DISTINCT TBL_NAME IN V_TABLE FROM ALL_TABLES WHERE

OWNER = '< % = odiRef.getOption ("tempSchema") % >' AND TABLE_NAME LIKE ' % $_ % ' AND ROWNUM = 1;

stmt: = 'DROP TABLE' |' < % = odiRef.getOption ("tempSchema") % > '. ' -'|| V_TABLE | "cascade constraints PURGE';

EXECUTE IMMEDIATE stmt;

commit;

V_COUNT: = V_COUNT-1;

END LOOP;

END;

Please find the screenshot of my option

drop.png

screenshot of my procedure

drop1.png

While I am running the procedure, I get an error invalid SQL statement.

Please help me by dropping tables.

Thank you

Shakur.

I am able to understand the code proutt .

and even I am able to delete the tables now that I had it is.

ODI is creating tables with ' ' on each side. So just I need to add ' ' on each side of the drop command.

Tags: Business Intelligence

Similar Questions

  • How to remove temporary files and free up space on my XP computer?

    How to remove temporary files.   How do you free up space.    What are cookies.    I can delete these help, it's full... can someone help me on this... I like this pc I would go better... any suggestions... on the way...  Yes, she's old...

    * original title - could someone help... Please thank you all... *.

    CCleaner is a very good tool for the removal of temporary files, simply use it to remove temporary files, do not use the cleaning of recording functions.  Registry cleaning is mainly a wasted effort and it causes more harm than good.  You can get CCleaner here: http://www.piriform.com/ccleaner

    John

  • How to remove temporary files, waiting to be written to disk when the computer starts? __

    How to remove temporary files, waiting to be written to disk when the computer starts?

    Hi Reasman,

    Welcome to the Microsoft answers site!

    To clear pending files, select the files/folders in the 'Files to add to the CD/DVD' box and press DELETE. However, if you want to delete all files, click the CD/DVD drive and select 'Clear the staging area' from the context menu.

    You can manually delete the files that are stored in the following location:

    %USERPROFILE%\Local Settings\Application Data\Microsoft\CD Burning folder

    I hope this helps!

    Kind regards
    Gokul - Microsoft Support

  • How to create temporary tables in stored procedures.

    Hello

    I am new to oracle, I have a requirement where I need to run a query in a loop for different values of where condition. Here, I need to record the results of the query on each iteration. After the end of the loop, I need to send the results to the front end. I did a lot of research for the concept of the temporary table in oracle, but I found myself unresolved except headaches. Everyone is showing how to create temporary tables in general but not in stored procedure.

    Bad, I need the concept of temporary tables, or is there an alternative way to store temporary results. My procedure looks like this.

    create or replace
    procedure uspMatchCode (parWord varchar2, p_recorderSet to types.cursor_type)
    as
    smallint parCnt;
    Start
    parcnt: = 0;
    Select count (1) in parCnt of...;
    If parcnt > 0 then
    Open for P_recorderSet
    Select field1, field2, field3,... of table1, table2, table2 where < < condition > >
    on the other
    -Here, I want to create a temporary table and store the result for the loop shape into the temporary table.
    CREATE TEMPORARY TABLE global my_temp_table (NUMBER of Column1, Column2) ON COMMIT DELETE ROWS.
    FOR parCnt in 0.3
    loop
    INSERT into my_temp_table select Field1, Field2, field3,... from table1, table2, table2 where < < condition > >
    end loop;
    Open for P_recorderSet
    Select * from < < temporary table > >
    end if;
    end;

    Any help would be great to check me on the problem.

    Thank you
    Kiran.

    This is a change to the query Kiss has posted:

    with data_text like)
    Select regexp_substr (' sales financing marketing ',' [^] +', 1, level ") val
    of tconnect by level<= length('sales="" finance="" marketing')-="" length(replace('sales="" finance="" marketing','="">
    )
    Select * from t, data_text, where t.colname like '% "| data_text. Val |' %'

    This will help you. Please change the column names and the name of the table as a result

  • How to remove temporary files in FF?

    Before moving to FF, I have used IE for my browser. When he slowed down, there was an option to remove the temporary files. Usually, that solved the problem. I don't understand how to do this in FF. Is there a way to do this?

    Thank you cjake

    Temporary Internet files are called the "cache" in Firefox. The cache should not affect performance in Firefox, but just to be sure, here how to remove:

    1. Click the Firefox button
    2. Click on Options
    3. Click on the Advanced section
    4. In the Advanced tab, click the network tab
    5. Click the clear now button beside the sentence that shows how much space your cache hard drive back.

    However, you can also take a look at this article if Firefox is a bit slow:

    https://support.Mozilla.com/en-us/KB/Firefox%20is%20slow

  • How to remove the table border

    Dear Kings.

    I was trying to remove the borders of tables (my coding below).

    This encoding does not "result: undefined"? How to remove all borders from the table. Please suggest friends.

    var mTables = app.activeDocument.stories.everyItem().tables.everyItem();  
    with (mTables) {  
      topBorderStrokeWeight = 0;
      bottomBorderStrokeWeight = 0;
      leftBorderStrokeWeight = 0;
      rightBorderStrokeWeight = 0;
      }
    alert("Done")
    

    Thank you in advance to all

    Try this,

    if(app.activeDocument.stories.everyItem().tables.length>0)
    {
    app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().bottomEdgeStrokeWeight = 0;
    app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().topEdgeStrokeWeight = 0;
    app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().leftEdgeStrokeWeight = 0;
    app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().rightEdgeStrokeWeight = 0;
    }
    
  • How to remove the Tables of HFM Application in SQL

    Hi gurus

    1. how to remove the HFM Application Tables in SQL?
    Its manual removal but each application having 120-150 tables? How to do this in one fell swoop?

    I deleted some applications using the workspace / shared services, but still its display under HFM under the Tables of SQL Server.

    Please help me

    concerning
    Smilee

    Hi Smilee,

    1. If the application opens in the web management interface, go to Taskflows management module and make sure that no taskflows exist yet for this application. Remove any existing taskflows.

    2. If demand exists in Shared Services, right-click on the demand for Shared Services and try to remove the application from here

    3. stop Hyperion Shared Services and all the Windows of financial management processes and backups of the relational database of the two patterns.

    4. check the relational database of Hyperion Shared Services repository, in the "ces_apps" table and make sure that there are no lines containing the appname "EXAMPLE." If the line still exists you should enlist the help of Oracle Global Support software to clean Hyperion Shared Services before proceeding.

    5. it is possible to remove all content removed from the relational database of financial management application. Must be very careful when handling manually tables database that permanent damage can be done at the application and other applications if the wrong content is removed.

    (a) first remove all tables, indexes, sequences, and the package objects that begin with the name of the application
    (b) remove all tables starting HSV_appname_xxxxxx
    (c) remove all rows in tables referring to demand HSX_CLUSTER_xxxxx.
    (d) delete all the HSV_ACTIVITY_KILL_USERS, HSV_ACTIVITY_NO_ACCESS, HSV_ACTIVITY_SESSIONS and HSV_ACTIVITY_USERS and HSV_USERS_ON_SYSTEM lines that refer to the name of the application.
    (d) remove the line containing the name of the application from the HSX_DATASOURCES table.

    6. the next time that all Hyperion services are restarted, the application must be removed safely from Windows client.

    You can contact your DBA to write a query on how to remove it.

    Hope this helps,

    Thank you
    Charles Babu J

  • How to remove temporary files

    How to delete temporary internet files and cookies? Thanx

    Hello

    Please try

    Tap Settings, Apps, Chrome, clear the cache. You can also clear dada, if you wish.

    Kind regards.

  • How to remove several tables in a statement

    I could used to run the below syntax to remove several tables in MS SQL, but it is not work in Oracle looks, I use free Oracle SQL Developer. Not a big deal, but want to know if this is possible. Thank you


    DROP TABLE A, B, C, D, F

    You can't do it in a single SQL statement, you can write a pl/sql script:

    begin
    execute immediate 'drop table a';
    execute immediate 'drop table b';
    execute immediate 'drop table c';
    execute immediate 'drop table d';
    end;
    /
    

    Max
    http://oracleitalia.WordPress.com

  • How to remove the table raster?

    Hi man raster.

    I use the drop table command to remove georaster and raster table, like this:
    drop table city_images; / * drop table georaster * /.
    drop table city_images_rdt; / * drop table raster * /.
    and then I create the same table, but I can't import raster data to georaster.
    I use drop table command right?

    Best regards
    qlin

    for the names of georaster tables, it's OK. but for RTD names, each name RTD must be unique across the entire database. so this could be the cause of the error mesg if you had two identical names of RTD in different schemas.

  • How to remove temporary files when I close Firefox?

    I want to delete the temporary files when I close Firefox. How to do this task.

    Hi brnkitty,

    You should take a look at this article on empty cache. It will show you how to set up Firefox to clear the output cache.

    Hope this helps!

  • does anyone know how to remove temporary sites off business catalyst

    When I connect to my account everything that appears is my main site (which is the only fully hosted) and when I go to 'My Details' to find my temporary accounts (under the tab drop-down "default site"), he asks me change the default - but I hesitate to do that I don't want to change MY settings from main site and also I do not know if it will give me the option to delete temporary sites.

    Thank you

    PS - Is not it assumes that a number of tech support to call this when even paid subscription?

    Hello

    You can delete your test sites using the partner portal,

    http://www.BusinessCatalyst.com/Admin/index.aspx?to=PartnerPortal

    To see more options, refer to this document

    How to cancel or delete a site

    Let me know if you have any question.

  • How to remove temporary files from Photoshop?

    I use Mac a friend and in Photoshop, from time to time he always tells me that the scratch disk is almost full and cannot perform actions until I get rid of things on the computer. I delete the files, but after a while he continues to to - I would rather just delete temporary files from Photoshop instead of files of my friend. But I was not able to find any where - where is this folder? or what I should enter in a search?

    You don't need to do it manually.

    You can clear the scratch disk:

    Edit-Purge-All

    You will lose your history if you do this (all cancellations).

    Basically you run of space on the drive system - not a good situation. I would like to talk to your friend to check maybe some files and then remove them. Or buy a firewire drive and use it as a scratch disk.

    Do not delete the files from your friend if you want to stay friends.

    PBC

  • How to remove temporary internet files

    Easy to find in Internet Explorer under tools/options, but can't find it in Firefox

    "Clear the Cache": Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

  • Working with temporary tables in PL/SQL processes

    So I'm trying to write a PL/SQL process and I have some difficulty. Here's what I do:

    -Create temporary tables
    -Put the data in them
    -Use the data in temporary tables to fill the main status table
    -Remove temporary tables

    I'm running into some problems when I try to create the tables. If I do as I would in SQL Server:

    SELECT field1, Field2
    IN TempTable1
    Of


    Then, I get an error saying that there is no such thing as TempTable1. If I say:

    CREATE TABLE TempTable1 AS
    SELECT field1, Field2
    Of


    Then I get "found CREATE, Expecting CASE or another statement." I know that to truncate or remove tables in a PL/SQL, I use EXECUTE IMMEDIATE. I do the same thing for the creation of a table? If this is the case, how can I use run immediately on a query with apostrophe inside multi-line?

    Thank you!

    Use of temporary tables in Oracle is different from MS Sql Server.
    In Oracle, you create tables Temp the same way you would normally create a permanent table.
    Search syntax "create a global temporary table.
    Oracle global temporary tables are visible to all connections, but don't share all the data.
    The data are visible only for connections that introduced the data and are removed on commit / rollback, or when the connection ends.
    So Structure is permanent, data is temporary and exclusive to a single connection.

    If your process should look like this:

    Create global temporary tables - once - at the same time, you create all of the other tables in your system.

    -Fill the temporary tables.
    -use the data in temporary tables to fill the main report table
    -remove the data from the temporary tables.

    Information on the Temp in Oracle tables:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14231/tables.htm#sthref2213

    HTH
    Thomas

Maybe you are looking for

  • HP Scanjet 200: scanjet 200

    When I Scan photos to a resolution of 300 DPI or less using WIA it gives me an image corrupted with horizontal lines. What will I do to fix this?

  • destroyed the rear part

    Hello. recently, I dropped my phone and the back of it, it is really destroyed. What I can do. where can I replace it. Thank you. no God's solution

  • of fingerprints not available in the security solution Customer tab

    ThinkPad W510 Windows 7 x 64 Version client security solution 8.30.0031.00 Version of the fingerprint software 5.9.4 I uninstalled and reinstalled the fingerprint software and the option is still grayed out in the client security solution. Whats up w

  • model matching program

    Hello I created a program that pattern matching on a video. I want the program to open a template to use for the corresponding model model and allow the user to select a model from an image in Labview and then use this model as the corresponding mode

  • Edge of b/w for the Switch from blackBerry Smartphones and MOBILE on Blackberry Curve 9380

    Hey, a few days back I bought Blackberry Curve 9380. Basically, I am new to the world of Blackberry. Usually when I'm at home, I prefer to use GSM only coz I have Wi - Fi. But when I swtich off the coast of data usage, connect to Wi - Fi, the browser