giving the grant for the creation of a temporary table only

Hello...
I want to give grants to create only temporary tables in a schema.
any other grant should not be here strictly...

I created the widout user following grants... plss suggest me how can I give grants to create only temporary tables...


create the user user_name
identified by password
default tablespace table_space
temporary tablespace TEMP
DEFAULT profile
unlimited quota on table_space;

Grant select on V_$ user_name SESSION;

Thank you...

Published by: user12780416 on March 25, 2011 08:32

As has been pointed out, it would be * very * unusual to want to have a user may create global temporary tables, but no permanent tables. I'm very difficult to imagine a scenario where this would be appropriate.

However, if you grant the user the CREATE TABLE privilege and do not grant the user on any permanent tablespace quota, they would be unable to create permanent tables but should be able to create global temporary tables. You should make sure that you do not grant UNLIMITED TABLESPACE user that would give them an unlimited quota on all areas of storage. If you are using 11g and you have enabled the creation of segment delayed, users would be able to create tables in storage that they have no quota on property that they would not be able to insert data into the tables.

Justin

Tags: Database

Similar Questions

  • Ask about the creation and filling I$ table on different condition

    Hello
    I have a question about the creation and filling I$ table on a different condition. In which condition the I$ table creation? And these conditions are given below:

    (1) * source and transit area * are on the same server (that is to say target is located on another server)
    (2) * gathering and target area * are on the same server (IE source is on another server)
    (3) * source, transit area and target * are * different 3 * Server
    Source 4), area transit and target are on the same server
    Thank you

    I'm not quite clear to your question. Always try my best to erase it.

    In your all over requirement I$ table will be created.
    If the same staging as target (a database, a user) then all temporary tables are created in this user
    If the scaffolding is different from the target (a database, two users (A, B)), then all temporary tables will be created under that user A (lets consider) and the data will be inserted into the target table that is present to user B

    Staging is different from the target (two database, two users (A1, A2), architecture not recommended) if all temporary tables will be created under that user A1 (A1 of the databases) and the data will be inserted into the target table which is present in user A2 (A2 data base)

    If the source, staging, the target will be under a database then no. LKM is required, IKM is sufficient to load the data into the target. Especially for this, you can see an example given by Craig.
    http://S3.amazonaws.com/ora/ODI-Simple_SELECT_and_INSERT-interface.swf

    Thank you.

  • ORA-14456: can not rebuild the index on a temporary table

    change the IND_DEBITDOCUMENT TABLESPACE INDEXDATA index rebuild
    *
    ERROR on line 1:
    ORA-14456: can not rebuild the index on a temporary table


    why it is given such error?

    Thanks in advance.

    This information is always kept to user_ | all_ | dba_ tables, in this case in the temporary column.

    Obvious, isn't it?

    ---------
    Sybrand Bakker
    Senior Oracle DBA

  • Problem with the creation of New and subfolders only appear is not in the list

    Thunderbird is allowing the creation of some New & subfolders, but they aren't always in the list each time.

    Photo shows the current list, but they tried to get money records IMarEST & Bank. (My apologies for Hypersnap stamps)
    Sorry, but the photo is not download!

    I use the Windows x 86 Version 8.1 - Thunderbird 31.6.0

    How to subscribe to see the imap folders:

    • Right click on your email account name, and then select 'subscribe '.
    • IMAP folders available on the server will be listed.
    • Select the ones you want to add to your e-mail client
    • Click the button to subscribe.
    • Press the OK button
  • Cannot query the records to a temporary table

    Hello. I have a procedure that fills a temporary table. After that, I need query the records from the temporary table. I tried to run a report after the execution of the procedure, but it doesn't show any output. I checked the procedure and it works very well cause I can query the records when I tried passing the output of an 'ordinary' table But I need to move to a temporary table and need to interview there. How can I do this? Help, please. Thank you.

    Now, it works. I found the solution. Instead of using the text of two elements, I used global variables. I thought I already did, but I guess it was at the beginning, when I have not used the query in the From Clause. Thanks a lot to you Abdetu, Inol, and Andreas for assistance. I learn a lot from you guys. I couldn't solve this without your help. Keep it up and God bless you.

  • Display of the overall data in temporary Tables

    Hello

    We have three - DEV, QA, and Production environments. During the development and quality assurance, it would be useful to be able to view the data in a global temporary Table for another session. For example, if we run something in one of our applications that populates the table, it would be useful to query that data to a toad / session sqlplus for debugging purposes.

    Others that the conversion of the TWG for a regular table in DEV and QA, is possible to access these data?

    See you soon

    Simon

    No, it is not possible from now... :)
    The data in a global temporary table is private, such as the data inserted by a session is accessible only by this session.

    Soon :)
    Renjith Malet

  • Searching for documents following the creation of a Lookup Table

    Hello

    Please excuse my ignorance, but I just created a table of choice by using the wizard in SQL Studio. Fine text has been replaced by numbers. My problem is that when I do a search now using a drop-down list based on a query that that returns records based on other numbers as well. It's so "2" refers to an element research takes something that contains a 2: 2,21,22, etc. How can I get the query to return a value for the selected number and not anything that contains this number?

    and)
    InStr (upper ("MODEL_ID"), upper (nvl (: P40_REPORT_SEARCH, "MODEL_ID"))) > 0
    )

    Kind regards

    Swelch

    Published by: Steve Welch on March 9, 2012 12:03

    Here are two possible solutions

    and (instr(upper('~'||"MODEL_ID"||'~'),upper(nvl('~'||:P40_REPORT_SEARCH||'~',"MODEL_ID"))) > 0)
    

    or

    AND model_id = NVL(:P40_REPORT_SEARCH, model_id)
    

    The first is often used for components such as shuttles. I think I added the special characters in the right place - not tested/verified against my previous example
    The second is perhaps more appropriate for your scenario, based on your data.

    Scott

  • What to fill in 'field of the temporary table' for global temporary tables?

    Hello

    I use the Data Modeler 4.0.1.836 and everything that I put in the box 'the scope of the table temp' for a global temporary table doesn't seem to affect the DDL script about the ON COMMIT PRESERVE/DELETE the LINES option. The script poster ON COMMIT PRESERVE ROWS always anything.

    Yet, some of my temporary tables must be created as ON COMMIT DELETE ROWS.

    Using the Data Modeler wrote about it:

    Scope of the temporary Table:

    For a class as a temporary table, you can specify a scope, such as the Dimension or the Session.

    Not sure what 'Dimension' has to do with the scope here, but it makes no difference.

    I tried to put 'Session', 'Dimension', 'Operation', but no luck. So what is the text for the script generate ON COMMIT DELETE ROWS?

    Thank you

    Hello

    The temporary Scope of Table property (on page Types of Classification of the table properties dialog box) is purely documentary.

    To set ON COMMIT DELETE ROWS you must expand the browser for the relational model and find the node for the relevant Oracle physical model.  If you develop it you will find an entry there for your Table. Double-click on that to get the physical model properties dialog box for your table, and you will find a "Temporary" facility that has options (Preserve Rows), YES (Delete Rows) YES or no.

    David

  • How to add the new column in existing table to our desired location?

    How to add the new column in existing table to our desired location?

    For example, I have to add the new column 'course' before the salary column in the emp table.

    I think the best way is to add the column at the end of the table and create a new view with the order of the columns...

    Another option...

    places the data into a temporary table and recreate the table with the correct order of the columns, and then insert data to the table from the temporary table

    Refer

    Add column (from table) in the desired position

    Example:

    CREATE TABLE temp_my_user LIKE)

    SELECT * FROM password);

    DROP TABLE password;

    (Password) CREATE TABLE

    userID NUMBER

    , first name VARCAHR2 (25)

    , middleInitial VARCHAR2 (1)

    (, name VARCHAR2 (25));

    INSERT INTO password (userID, firstName, lastName)

    (SELECT username

    first name

    lastName

    OF temp_my_user);

    DROP TABLE temp_user;

  • Create temporary table in the procedure

    I have a procedure which can be called at any time by multiple users. So I cann't use table in there, because on each call, the table is truncated and inserted. How can I create a temporary table in the procedure?

    Temporary tables in Oracle are different from other RDBMS like SQL Server.

    In Oracle, you create a global temporary table ONCE as part of the design of your database.

    create a global temporary table MyTableName (... columns...) on commit preserve rows;

    You can then use this table in your code as you would any other table.

    The difference is that any data that you insert in this table are only available/visible so that the code runs in the session, and if delete you / truncate the table it only removes the data for this session.  In this way, several sessions we can table without interfering with each other.

    (Note: instead of "preserve" you can change this to "delete" If you want that deleted data automatically when a commit is issued in your session, otherwise the data will be automatically deleted at the end of the session)

  • How do I get the output of a function table

    Hi all

    Kindly share your idea.


    I need the outputs of a function table only.

    Database version: oracle 10.1.0.2.0

    login_details:

    login_id branch_code

    admin 1
    Admin1 2
    Test 1
    user 1

    I need output for the query function below.

    Select login_id from login_details where branch_code = '1';

    If I create a function:


    FUNCTION to CREATE or REPLACE fn_get_login (pvBranch varchar2)
    IS BACK SYS_REFCURSOR
    REF_TEST SYS_REFCURSOR;
    BEGIN
    OPEN FOR REF_TEST
    Login_id SELECT FROM login_details WHERE branch_code = pvBranch;
    RETURN REF_TEST;

    END;
    /


    Select * from login_master where login_id in (select fn_get_login('01') from double);


    and get

    ORA-00932: inconsistent data types: expected - got CURSER

    Edited by: 887268 October 8, 2012 12:25

    You cannot use a Ref cursor in a table, because it isn't a result set of data, it's just a pointer to a request for enforcement.

    {: identifier of the thread = 886365}

    A ref cursor must be used if you want to refer the request to an external application.

    Transfer data back to a function is to use a pipeline for example function

    SQL> CREATE OR REPLACE TYPE num_descript AS OBJECT(num number, descript varchar2(30))
      2  /
    
    Type created.
    
    SQL>
    SQL> CREATE OR REPLACE TYPE tbl_num_descript AS TABLE OF num_descript
      2  /
    
    Type created.
    
    SQL>
    SQL>
    SQL> CREATE OR REPLACE PACKAGE reftest AS
      2    FUNCTION pipedata(p_choice number) RETURN tbl_num_descript PIPELINED;
      3  END;
      4  /
    
    Package created.
    
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY reftest AS
      2    FUNCTION pipedata(p_choice number) RETURN tbl_num_descript PIPELINED IS
      3      v_obj num_descript := num_descript(NULL,NULL);
      4      v_rc  sys_refcursor;
      5    BEGIN
      6      IF p_choice = 1 THEN
      7        OPEN v_rc FOR SELECT empno as num, ename as descript FROM emp;
      8      ELSIF p_choice = 2 THEN
      9        OPEN v_rc FOR SELECT deptno as num, dname as descript FROM dept;
     10      END IF;
     11      LOOP
     12        FETCH v_rc INTO v_obj.num, v_obj.descript;
     13        EXIT WHEN v_rc%NOTFOUND;
     14        PIPE ROW(v_obj);
     15      END LOOP;
     16      CLOSE v_rc;
     17      RETURN;
     18    END;
     19  END;
     20  /
    
    Package body created.
    
    SQL> select * from table(reftest.pipedata(1));
    
           NUM DESCRIPT
    ---------- ------------------------------
          7369 SMITH
          7499 ALLEN
          7521 WARD
          7566 JONES
          7654 MARTIN
          7698 BLAKE
          7782 CLARK
          7788 SCOTT
          7839 KING
          7844 TURNER
          7876 ADAMS
          7900 JAMES
          7902 FORD
          7934 MILLER
    
    14 rows selected.
    
    SQL> select * from table(reftest.pipedata(2));
    
           NUM DESCRIPT
    ---------- ------------------------------
            10 ACCOUNTING
            20 RESEARCH
            30 SALES
            40 OPERATIONS
    
    SQL>
    

    but of course, it is wise to just use pure SQL that in order to mix the PL/SQL in queries in the form of best performance features.

    Perhaps explain what problem you are trying to solve when trying to use a function, and we can advise you on the best options.

  • Ordinary table from the temporary table vs

    Hello
    What is the difference between a temporary table and a regular ODI table.

    I created a temporary table mapping. Works very well. Now, I added the column in the mapping. To make it work, I have to drop the temporary table that created starting from my previous run or add the column in the temporary table. So I was wondering what is the difference between temp and a regular table in terms of maintenance.

    How can I make adding new dynamic columns.

    -app

    Just to add to what others have said.

    (Temporary interface or yellow Interface) to create (Temp Table or Table Stagging)
    -------------------------------------------------------- ----------------------------------------------------------------

    This method is used to create a temporary Table or Stagging table so that you can export your data before the load in the main target.
    Also its always good practice to create them in the scheme of work (where $ tables are created), except if you required in your database schema.
    This interface are marked by yellow color
    Also these Interface can be dragged directly into all other Interfaces.

    The main reason why they are not removed or delete which is then we cannot call in the following Interface to load the target.

    tables of $
    ------------

    Here's the ODI tables it creates before loading the data into the target as ODI works with ELT concept where his charges into a temporary table (C$, I$, $ J etc.). ODI after loading data in these tables $ can do the necessary transformation and finally load into the target table.
    Once the loaded data to compeltely there ' won't be any use of these tables so they let down, even if you have not deleted by havingthe option
    Delete temporary objects - not in LKM and IKM. Generally used for debugging, but once you have finished debugging, make sure that you return Yes, ODI else will not remove these tables of $.

    How can I make adding new dynamic columns.

    Although I see no reason to drop the temporary table or tables intermediaries. Its good to drop in the database and run your IKM, but again please find a way to do it using revenge for your reference.

    Step 1 - create a copy of your IKM

    Step 2 - Add another command called Drop Target Table and use the following code

     Drop table  <%=snpRef.getTable("L", "TARG_NAME", "A")%> 
    

    Move it before you create the target Table.

    Step 3. Added an option - Drop Table target, so that you can specify whether to drop or not. Go on command and option and instead of always run, check the Drop target only Table option.

    That way if you do not want to delete the target table, it used to other specify Yes.

    I hope this helps.

  • How to insert into a GLOBAL TEMPORARY TABLE and get the data from it?

    The requrement is
    Split the string ENTRY point on the base and store it in a Collection. And the values of the collection will be stored in a global temporary table. Then, I'm updating some other table based on the data from the temporary table.

    There is in fact no error message. But there is no data in the temporary table and also no change in the update statement

    First of all, I'm creatiing a global temporary table only once outside the procedure.

    CREATE GLOBAL TEMPORARY table GLt (data_element number)


    create or replace procedure test_proc (p_in_string VARCHAR2) is
    i the number: = 0;
    number of POS: = 0;
    CLOB lv_str: = p_in_string;
    p_delim VARCHAR2 (1): = ', ';

    TYPE t_array IS TABLE OF VARCHAR2 (20) INDEX directory.
    t_array channels;

    BEGIN

    -cutting of string input and store in the strings (i) collection

    POS: = instr (lv_str, p_delim, 1, 1);
    WHILE (pos! = 0) LOOP
    i: = i + 1;
    Strings (i): = substr(lv_str,1,pos-1);
    lv_str: = substr (lv_str, pos + 1, length (lv_str));
    POS: = instr (lv_str, p_delim, 1, 1);
    IF pos = 0 THEN
    Strings (i + 1): = lv_str;
    END IF;
    END LOOP;

    run immediately "drop table TWG;
    run immediately ' CREATE GLOBAL TEMPORARY table (data_element number) TWG on commit preserve rows ";

    FORALL i in strings.first... Strings.Last
    INSERT INTO VALUES TWG (strings (i));
    commit;

    Update first_tbl set PIN is "XXX" where first_col in (select data_element from TWG);.
    commit;

    END test_proc;

    Published by: cedric b on January 25, 2013 12:59

    Remove the two execute immediate line. They are wrong.

    And then use the table in your code that you created at the beginning. The name is GLT.
    And delete the first commit. This validation would empty the temporary table of GLT.

    You get an error? Or it does not work as expected?

    Also, show how you call the procedure.

    Published by: Sven w. January 25, 2013 14:45

  • Approval for the creation of the organization workflow

    Hello

    I need to set up a workflow approval for the creation of the organization. When the administrator tries to create a new org, approval should go to an administrative group. The org should get created once the approval is made. I configured a workflow approval for the purpose of resource Xellerate organization. I created a unconditional task where the assignment tab has the admin group. When I test, the org is created without going through the approval process. Is could someone please tell me what I'm missing?

    Thank you
    PETREA

    Published by: red1 22 January 2011 08:38

    Go to the tab resource Grant > organization > select dummy Org > fill object

    Try this with XELSYSADM.

    You will see the org model.

    _____________

    Step additional---> >

    Create dummy Org
    Go in manage Org
    Select dummy Org
    Select the management group
    Click on assign
    All users

  • Emergency aid for the creation of the planning your application

    Hello

    IAM new planning. I have planning and configured (creation planning instance, Datasource). When I connect to the workspace and you want to create the new planning application. The wizard opens successfully. After giving the name of the application calendar, currency type, type of Plan, etc... When I click Finish to create a new planning application, it says * ' year error occurred while processing this page.» Check the log for details. * but I have observed something the app was created in Essbase databases and schema. If anyone can tell me wats the exact prob. where can I see the details of the journal. Help me.

    Thanks in advance.

    Hello

    Databases will not be created until you have created until you refresh to essbase of in planning, you are not at this stage. Only an essbase application will be created.

    What I suggest do you, is remove the essbase application. Then run planning in the start menu and not as a service, this means that you will get the error messages displayed in the window.
    Then try and make creating application again and see what errors are produced.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for

  • How to connect an old Fatar SL880 Mid-keyboard directly on a mac?

    Hello world I inherited an old midi keyboard Fatar SL880. There is no USB port, only two midi-out. I would like to connect directly to a mac and do work with some sounds. Does anyone know how to do this please? Thanks for your time, Richard Post edit

  • Connection of Skype and reconnection

    I just upgraded to the latest version of Skype, and now it just keeps connection and disconnection. I do not mean that she signed me, but my status will be online for two seconds and then, it will go offline and then I'm online again for a few second

  • ThinkPad onelink pro dock carbon lenovo x 1 Ethernet port has stopped working

    Hello guys,. So after a few windows security updates my docking station ethernet port stopped working, it does not detect a physical cable connected. I've upgraded to the latest firmware for the dock but no luck, stops on the port to save energy also

  • No message, no beep on Satellite P100-113?

    I changed the machine he went to the post OFFICE but has frozen on.I waited 3 minutes or so and that it restarted. No result no POST no beep without backlight of the screen but the amusements work he checks also the dvd player but that's all.tried up

  • OfficeJet pro 6970: Officejet Pro 6970 won't see paper of 6 x 8 size

    Brand new Officejet Pro 6970 run under Windows on a new Dell desktop PC 10. I am trying to print photos in 6 x 8 "(150 x 200mm) size selection menus but the paper do not have this option." All specifications & status of documentation that this format