Where the stored function

Hello

OS: Windows xp
Oracle: 10.2.0.1

Please below, cut and paste from sqplus session:
Enter user-name: sys/*** as sysdba

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> create user test identified by test
  2  quota 0 on system;

User created.

SQL> grant connect to test;

Grant succeeded.

SQL> grant create procedure to test;

Grant succeeded.

SQL> ALTER USER TEST QUOTA 0 ON USERS;

User altered.

SQL> select username,default_tablespace from dba_users where username='TEST';

USERNAME                       DEFAULT_TABLESPACE
------------------------------ ------------------------------
TEST                           USERS
SQL> connect test/test;
Connected.
SQL> create or replace function mysysdate return date
  2    is
  3    begin
  4    return sysdate+10;
  5    end;
  6    /

Function created.

SQL> select sysdate,mysysdate from dual;

SYSDATE   MYSYSDATE
--------- ---------
08-DEC-09 18-DEC-09

SQL> connect sys/*** as sysdba
Connected.
SQL> select object_name from dba_objects where owner='TEST';

OBJECT_NAME
--------------------------------------------------------------------------------
MYSYSDATE

SQL> select segment_name,tablespace_name from dba_segments where owner='TEST';

no rows selected

SQL>
My question is how this user is able to create the function, still is not having any default tablespace and quota zero on system tablespace. In which tbs has retained this function and if sys has set a zero quota on the tablespace default then why he demonstrated 'USERS' as default tablespace? How and why oracle that it allow to create and save the function without any quota?

kindly tell me how and why it works.

concerning
Nisha

It's strange thread, it is much misconception or at least misunderstanding.
As already said, but ignored somehow, all the code function/procedure/package/relax/view /... are stored in the SYSTEM tablespace, regardless of the default tablespace and the quota of the user logged in with to create these objects. These objects have no (lines of code) segment, a segment is a use/allocation of space, that's why you have not any mention of these objects in xxx_segments or xxx_extents.
So, it's not a problem with the database or quota | user default tablespace (who manage the use of the space), but attached to the grant, you must create/procedure/package/trigger/view /...

Nicolas.

Tags: Database

Similar Questions

  • Dial the stored function return array

    Hi all

    I have a function as follows:
    create or replace TYPE string_table IS the TABLE OF VARCHAR2 (2000);
    create or replace TYPE ARRAYTYPE is VARRAY (20) OF VARCHAR2 (30);
    create or replace FUNCTION getEmpArray (s varchar2, varchar2, st string_table t) RETURN ARRAYTYPE AS
    ARRAYTYPE l_data: = ARRAYTYPE();
    BEGIN
    l_data.extend; l_data (l_data. (Count): = s; l_data.extend; l_data (l_data. (Count): = t; l_data.extend; l_data (l_data. (Count): = St (1); L_data RETURN;
    END;

    I want to call this function from StoredFunctionCall
    Code:
    Fun StoredFunctionCall = new StoredFunctionCall();
    fun.setProcedureName ("getEmpArray".toUpperCase ());

    Object [] arr = new Object() {"aa", "Valentine", "bbb"};

    ArrayDescriptor = arrDescriptor
    ArrayDescriptor.createDescriptor ("string_table".toUpperCase (),
    connection);
    ARRAY arrayToPass = new ARRAY (arrDescriptor, arr);

    fun.addUnamedArgumentValue ("a");
    fun.addUnamedArgumentValue ("b");
    fun.addUnamedArgumentValue (arrayToPass);

    fun.setResult ("FUNCTION_RESULT"); to get result by this name

    List of vector < DatabaseRecord > = session.executeSelectingCall (fun);

    But the Exception
    PLS-00382: expression is of the wrong type
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    Error code: 6550
    Call: START? : = GETEMPARRAY (?,?,?); END;
    link = > [= > FUNCTION_RESULT, a, b, oracle.sql.ARRAY@21fbc01]


    Please help me

    Published by: fbg on 26/04/2010 21:52

    A few questions,

    1 JDBC does not support the type of TABLE PLSQL, you must use a type VARRAY, or wrap the TABLE function call in a function that takes a VARRAY.
    TopLink also has support for PLSQL types in his PLSQLStoredProcedureCall class, but no support is currently available for StoredFunctions.
    You can pass the VARRAY type for the argument of the TABLE.

    2. your function returns a VARRAY, so you must set the type in the result of StoredFunctionCall.
    We are currently the API to set a table for the result type, so you must directly access first parameter of the call or use a StoredProcedureCall (and convert your function of a procedure).

    You can also investigate a cursor of returning from a procedure stored instead of the varray.

    You can also directly access the JDBC connection and make the call using JDBC code.

    Feel free to connect these issues EclipseLink.

    ---
    James: www.eclipselink.org

  • Need to call the stored function

    How can I call a stored function that accept the Date paramterasn return String paramtere
    I use Jdeveloper p4
    ADF BC + JSF

    User,

    You import java.util.Date - should be java.sql.Date.

    John

  • External hard drive where the stored images has been corruptd. The images recorded, but now cannot connect with LR

    I got LR cc 2015 put in place so that the images have been imported on my external hard drive and lightroom files were stored there. This hard drive has failed, but I was able to save all my files (original) and I transferred to a new external hard drive. Now, I can't get LR to recognize the new drive and location. LR albums have? next to them. I would appreciate any help you can give me that I have try to reconnect LR with the new source of my images. Sorry, I'm not very technologically.

    Tom

    There are 153 images in this catalog, all on 1 external. Which does not seem right, or you expect very different numbers, could you give me an idea of what numbers you expect?

    This seems to be an empty catalog with any folder. It seems to me that you have opened an empty catalog somehow. Could you please try file-> open the recent item and see if any of the other catalogues listed is the one you want? If this does not work, could you please try to restore a recent backup of your catalog file and see if the situation is resolved?

  • Is there a file where are stored the data pause & rewind live TV in Windows Media Center?

    Is there a file where are stored the data pause & rewind live TV in Windows Media Center? More to the point - how can I save the time shift buffer in WMC?

    I would like to know if it is possible to find the data that Windows Media Center is to store during her watch TV Online. I don't speak data WMC stores by itself to allow the use of the function of pause & rewind live TV, how to find files that you have saved yourself by pressing the Red record button.

    For example, I often live TV playing on the computer in the background while I do something else. Can I see or hear a brief fact/clip/segment of interest that flashes by and I think, ' I wish I had recorded that. " If I go back to the bit I wanted to capture and hit record, it will not capture the part I want, it will start recording from the point, the program has achieved in real time.

    Does anyone know where the actual data of the TV are kept so that I can retrieve these clips that interest me, but were never recorded by me manually? I found the "TempRec" in the folder "Recorded TV" - anyone know how to convert this video (if indeed it is the location where you store temporary data for pause & rewind live TV)?

    If not, is it possible to enable a feature in WMC, which automatically starts the recording of TV channels as soon as you go to them? This way I can record everything, then just cut all the scenes of interest using Movie Maker. If not, are there other Win7 compatible programs that will do this?

    Thank you.

    Apparently, there is a way to achieve the goal.

    A nice gentleman from the Germany wrote dll that create a "time-shift buffer recording" add-in for WindowsMedia Center (for Vista and XP only) which can be found at:

    http://thegreenbutton.com/forums/p/3...83.aspx#162083

    For Windows 7, there would currently be via a 3rd party of program, i.e. PowerCinema 6, which records from any point in the time shift buffer zone - I don't know why Microsoft has not also incorporated this feature into WMC for have other programs third 3rd (including EyeTV for the Mac).

    Unfortunately, suggestions from another forum to change file extensions in .tmp .dvr-ms TempSBE and double-click on the file to read the file of time lag in WMC, does not work in Windows 7 x 64 (the message in this forum has been regarding the Vista x 64), however, I have not tried with other versions of Windows - I would like to know if anyone has had some luck using this method.

    Even if it had worked, I think I would have always preferred the usability and features of a program that does the job for me, like Power Cinema - damage, it could not have been WMC. What do you think?

    Thank you.

  • Where the images of the workspace are stored at the Apex 4.2

    Hi guys,.

    I downloaded images on the apex by selecting the workspace Image downloading. Now I want to export all images so that I do not need to download them all again in case something happens to my machine and I should be able to import all the images in one click/command in the new installation of. But I don't know where the pictures of the workspace are stored. Are images stored on the local file system or in the database? If in the database then the schema that I need to export and I will be able to import all the images in the exported file? In the case of OS file system and which directory (full path) he holds?

    Thanks and greetings

    Tushar Lapani

    Hey Tushar,

    Tushar Lapani wrote:

    I downloaded images on the apex by selecting the workspace Image downloading. Now I want to export all images so that I do not need to download them all again in case something happens to my machine and I should be able to import all the images in one click/command in the new installation of. But I don't know where the pictures of the workspace are stored. Are images stored on the local file system or in the database? If in the database then the schema that I need to export and I will be able to import all the images in the exported file? In the case of OS file system and which directory (full path) he holds?

    Images that you download via Shared component-> files-> Images

    get downloaded in the WWV_FLOW_FILES.

    You can query on WWV_FLOW_FILES to see your downloaded files.

    select
        id, flow_id, name,
        filename, title, mime_type,
        doc_size, dad_charset, created_by,
        created_on, updated_by, updated_on,
        last_updated, content_type, language,
        description, file_type, file_charset
     from
        wwv_flow_files;
    

    Include all your images and files in your application using the supporting function of the object, so whenever wen you export your application at this time, your images and your include files also get exported with the application.

    1. go to your Application -> support objects component shared icon before

    Installation -> Install Scripts ->, click Create button -> to Create Scripts for install files (under tasks) under

    According to this, you will get a list of all the CSS, image and static files to downloaded in your application, select the checkbox of the files you want to include in the export file.

    2. application -> support-> tab objects export

    Include definitions of object support in export - Yes

    Also see this Doc online: export an Application and related files and Application Deployment

    Hope this helps you,

    Kind regards

    Jitendra

  • my photos on an external drive. my catalog is also stored there, (in the case where I have to change computers. where are stored my backups to the catalog? (can't find them!

    as noted, my pix is on an external drive (pc), my catalogs are on the same drive. where are my backups being stored i cant seem to find them. If I open the folder lightroom with the name of the catalog on the outside, all I see is a bunch of files labeled 1,2,3, etc. and has, b, c.

    shouldn't there be a folder labeled bacvkups?

    If you have enabled the option to make catalog backups (you?) then your backups are in any case, indicate when the backup dialog box is displayed when you close Lightroom. If you enable the option to make backups of catalog, then you have not all backups.

    Yoou can use the search function of your operating system to find the files on all hard disks that have a name that ends with. LRCAT to find all possible backups.

    Note: the functionality of catalog in Lightroom backup makes a Backup of your file to catalog only. He doesn't have backups of your photos, you have to do it through other methods.

    Note: backups SHOULD go on a different drive than the originals; you make a terrible mistake if you put them on the same disk as the original.

  • TYPE A USER ID NUMBER BRINGS UP AN ID USER STORED WHICH SHOULD BE DELETED... WHERE IS STORED THIS USERID... IMPOSSIBLE TO FIND IN THE FILE OF SAVED PASSWORDS

    TYPE A USER ID NUMBER BRINGS UP A STORED USER ID AND THE PASSWORD COMBINED IN A SINGLE STATEMENT.
    IT SHOULD BE DELETED.
    IMPOSSIBLE TO FIND ALL REFERENCES TO THE WEBSITE IN THE FILE OF SAVED PASSWORDS.
    WHERE ARE STORED THE DATA COMBINED ID AND PASSWORD, AND HOW IT CAN BE CLEAR.
    THE WEB SITE IS NOT SAVE INFORMATION.

    It would be built-in to Firefox form fill.
    Click the field, and enter a character. If something comes along,
    highlight the fact that by using the arrow keys. Then press DELETE (Mac = delete the shift).
    Repeat if necessary.

  • Where are stored the "last Sessions"? I'm changing from Win XP to Windows 7 Pro and want to save/access of previous Sessions.

    The question comes down to my needs. Where are stored the "last Sessions"? I backed up my drive "C", My Documents, my pictures, etc., so I should be OK with bookmarks. But, I would also like to be able to access previous sessions.

    The current session is stored in sessionstore.js file in the Firefox profile folder.
    There are also backups in the folder sessionstore-backups that you can copy the sessionstore.js file make Firefox to use this file.

    You can use this button to go to the Firefox profile folder currently in use:

  • What is the name of the file where the contacts are stored.

    I need to restore my contacts from a backup. What is the name of the file where the contacts are stored?

    According to the contacts or the premises or in iCloud:

    ~/Library/application support/address book/metadata for local contacts

    ~/Library/application Suport/address book/Sources find the iCloud account and file metadata

    However, if your backup is located in Time Machine, open the contacts application and any asset, enter Time Machine. Go back in time to find contacts. Select them and click on restore.

  • where the themes are stored in ff23

    where can I find out where are stored the themes and how to save them, so I do not lose the themes I added you please try to HELP
    Themes are found in Add-ons, I keep losing my themes in the field of the add-on
    When the themes are found on the computer so I can make a backup of the themes that I keep losing

    Discover FEBE
    from the Mozilla Add-ons Web Page.

  • How to remove mail from the Mail Archives?  Where are stored the archived messages?

    Where are stored the archived messages?    I tried to remove them, but they reappear in the file archive.  In addition, now all my messages in the Inbox are automatically archived.  Why is this?

    If you use Gmail, go to the website of the email and check the settings there.

  • Where is stored the elements of location bar list?

    When the URL by typing in the location bar a menu item drop-down list is displayed.

    Is there somewhere in firefox where the list of items is stored?
    If so, is that in a format I can go through and see each item?

    Thank you

    That data is stored in the places.sqlite file in the profile folder. A program or SQLIte manager add-on allows to query and view this data.

  • where are stored the movies?

    Hi gurus,

    where are stored the movies? My drive is "full", I inactivated the iCloud, I deleted all the files in 'Photo' and I have a lot of movies and pictures in the hard drive, can someone help me please?

    Thanks in advance

    Try the movies folder in your user folder, or whether they are in the downloads folder.

    You could do a Spotlight search using the file appropriate for example .mp4 extension

    then scroll down to display in the Finder to get the path.

  • I need to see what is in a cookiefile, where the cookies are stored?

    I need to know where the cookies are stored files, so I can study what happens in them (cookiefile).

    Hi pasmark,

    You should take a look at the article delete cookies to remove the information from Web sites is stored on your computer. It will show you how to view, manage, and delete cookies in Firefox.

    Hope this helps!

Maybe you are looking for