How table data is stored in Oracle db?

Hi,
I would like to know the, order in which the data is store in oracle.
say for e.g.
If I type
select * from emp; -- with out order by
I get record in some order
I would like know the order in which oracle stores the data, say if I insert rec 1, rec 2 .. rec n, does oracle stores in same order.
select * from table;
rec 1
rec 2
rec 3
Is it possible that every time I fire this query(with out any order by clause) the order may differ?

No particular order.
If your query does not specify ORDER BY the actual order of the result is UNDEFINED.
In other words, if you need the rows to be ordered use an order by.

Similar Messages

  • How the data is stored in Info cube...in the back end what will happen???

    Hi Experts,
    How the data is stored in Info cube and DSO...in the back end what will happen???
    I mean  Cube contain Fact table and Dimension tables How the data will store and what will happen in the backend???
    Regards,
    Swetha.

    Hi,
    Please check :
    How is data stored in DSO and Infocube
    InfoCubes are made up of a number of InfoObjects. All InfoObjects (characteristics and key figures) are available independent of the InfoCube. Characteristics refer to master data with their attributes and text descriptions.
    An InfoCube consists of several InfoObjects and is structured according to the star schema. This means there is a (large) fact table that contains the key figures for the InfoCube, as well as several (smaller) dimension tables which surround it. The characteristics of the InfoCube are stored in these dimensions.
    An InfoCube fact table only contains key figures, in contrast to a DataStore object, whose data part can also contain characteristics. The characteristics of an InfoCube are stored in its dimensions.
    The dimensions and the fact table are linked to one another using abstract identification numbers (dimension IDs) which are contained in the key part of the particular database table. As a result, the key figures of the InfoCube relate to the characteristics of the dimension. The characteristics determine the granularity (the degree of detail) at which the key figures are stored in the InfoCube.
    Characteristics that logically belong together (for example, district and area belong to the regional dimension) are grouped together in a dimension. By adhering to this design criterion, dimensions are to a large extent independent of each other, and dimension tables remain small with regards to data volume. This is beneficial in terms of performance. This InfoCube structure is optimized for data analysis.
    The fact table and dimension tables are both relational database tables.
    Characteristics refer to the master data with their attributes and text descriptions. All InfoObjects (characteristics with their master data as well as key figures) are available for all InfoCubes, unlike dimensions, which represent the specific organizational form of characteristics in one InfoCube.
    http://help.sap.com/saphelp_nw04s/helpdata/en/4c/89dc37c7f2d67ae10000009b38f889/frameset.htm
    Check the threads below:
    Re: about Star Schema
    Differences between Star Schema and extended Star Schem
    What is the difference between Fact tables F & E?
    Invalid characters erros
    -Vikram

  • How can i see how large an app is and how much data is stored

    In ios7 I could select an app and see it's size and how much data is stored in using it on my iPhone.
    I can't seem to locate that option in ios8.1
    to refresh and app I had the option of deleting it and reinstalling before based on the information held by the app.
    is this clear?
    MyFitnessPal is taking a long time to load, thought I would see how large the app is and how much info is stored
    but as I've redundantly stated here I can't find that option in my phone now.
    thanks in advance for any help you can offer
    iPhone 5 iOS8.1

    For reference in iOS 7 it is under Settings app > General > Usage.
    According to the manual iOS 8 is the same…
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    (page 177)
    Usage information
    View cellular usage. Go to Settings > Cellular. See Cellular settings on page 179. View other usage information. Go to Settings > General > Usage to:
    Display battery level as a percentage
    See Battery Usage, including the elapsed time since iPhone has been charged and usage by app
    View overall storage availability and storage used per app
    View and manage iCloud storage
    For me it take a few seconds to load, you may find that the app is being slow to open if it is still downloading some data for it's own caches etc. Try to ensure it has a good internet connection. Obviously it could just be that the service in question is also having issues, so consult their support too.

  • How to Table data directly stored as file in FTP location

    Hi All,
    In my process i need to convert table into csv file,i know how to convert as file,but the file will stored into FTP location directly,can any one help regarding this...
    Thanks in Advance...
    Edited by: 947267 on Oct 26, 2012 2:46 AM

    Hi,
    I think you will have to store it locally first and then use the OdiFtpPut Tool in a package.
    Does your requirements allow that ?
    Regards,
    JeromeFr

  • Can anyone explain how data is stored from Oracle GL Summary Accounts?

    Sorry if this is posted in the wrong forum but I wasn't sure which one was more appropriate....
    Basically I would like to know what Oracle does in the background with summary accounts for it to slow down the period close process. I have been told it's because Oracle applies summary balances to (temporary?) tables, which means Oracle GL is multiplying the number of processes it has to run when you close a period.
    Can anyone provide any further info on this?
    Thanks

    Try your chance in one of the more appropriate forum of eBusiness Suite :
    http://forums.oracle.com/forums/category.jspa?categoryID=28
    Nicolas.

  • Send table data through mail in oracle 10g

    Hi ,
    I am trying to send a mail through oracle 10g .
    I can send mail through utl_mail .
    The text that I need to send is data from a table .
    The table contains information about all the employees .
    Table name is person . If the employee is absent on any day without any reason there would be a row of this employee in the table person.
    There is also a column named email in this table .
    I need to write a stored procedure which will send the data about each particular employee to their respective email for all the employees in the person table .
    Can anyone please help me on this .
    Thank you.

    Try this forum thread first:
    Re: send email by procedure
    There are lots of articles on how to accomplish this taks on the web:
    -- utl_smtp example
    http://it.toolbox.com/wiki/index.php/Send_email_from_Oracle_Database
    http://www.databasejournal.com/features/oracle/article.php/3423431/Sending-e-mail-from-within-Oracle.htm
    -- From Application Express product
    http://www.oracle.com/technology/products/database/application_express/howtos/howto_workflow.html
    HTH -- Mark D Powell --

  • How to send files stored under Oracle AS - Portal as a attachments to mail?

    Hi,
    Our Client using Oracle APPlication Server Portal 10.1.2 for data management and employee portal purpose.
    our users used to attach or store the files/documents in Portal i.e. like a file item.
    They want to send some selected files/documents as attachments to a group of people via email
    Is there any possiblity to achieve this please let me know.
    Thanks in advance
    Regards,
    Rajesh

    Hi,
    Our Client using Oracle APPlication Server Portal 10.1.2 for data management and employee portal purpose.
    our users used to attach or store the files/documents in Portal i.e. like a file item.
    They want to send some selected files/documents as attachments to a group of people via email
    Is there any possiblity to achieve this please let me know.
    Thanks in advance
    Regards,
    Rajesh

  • In which table data is stored by text editor

    we enter text in  text editor control.
    but i can't figure out :: it store the text entered in text editor in which table.
    can you help me in this.
    regards.

    Raja,
    firstly my program is working fine, i want to know how FM "READ_TEXT" read text.
    this is coding
    refresh: ltxttab2. clear ltxttab2.
      clear w_thead.
      w_thead-tdobject = 'ZXYZ'.
      w_thead-tdname = mrole.
        w_thead-tdid = 'LTXT'.
      w_thead-tdspras = sy-langu.
      w_thead-tdfuser = sy-uname.
      w_thead-tdfdate = sy-datum.
      w_thead-tdftime = sy-uzeit.
      CALL FUNCTION 'READ_TEXT'
         EXPORTING
         CLIENT                        = SY-MANDT
           ID                            = 'LTXT'
           LANGUAGE                      =  sy-langu
           NAME                          = W_XYZ-TDNAME
           OBJECT                        = 'ZXYZ'
        ARCHIVE_HANDLE                = 0
        LOCAL_CAT                     = ' '
      IMPORTING
       HEADER                        =
         TABLES
           LINES                         = LTXTTAB2
       EXCEPTIONS
         ID                            = 1
         LANGUAGE                      = 2
         NAME                          = 3
         NOT_FOUND                     = 4
         OBJECT                        = 5
         REFERENCE_CHECK               = 6
         WRONG_ACCESS_TO_ARCHIVE       = 7
         OTHERS                        = 8
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    regards

  • SQL  to find which table data is stored?

    I know a table field value.
    I don't know, which table that value is stored. I want to find that table from database.
    What sql will find that?.
    Please post me online links for tricky sql's like this...so i can master sql's of this kind.
    Thanks for ur help.

    Ok, here's my pseudo google DB:
    michaels>  var val varchar2(5)
    michaels>  exec :val := 'as'
    PL/SQL procedure successfully completed.
    michaels>  select distinct substr (:val, 1, 11) "Searchword",
                    substr (table_name, 1, 14) "Table",
                    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
               from cols,
                    table
                       (xmlsequence
                           (dbms_xmlgen.getxmltype ('select ' || column_name
                                                    || ' from ' || table_name
                                                    || ' where upper('
                                                    || column_name
                                                    || ') like upper(''%' || :val
                                                    || '%'')'
                                                   ).extract ('ROWSET/ROW/*')
                       ) t
    --        where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
           order by "Table"
    Searchword  Table          Column/Value                                     
    as          DEPARTMENTS    <DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>    
    as          DEPARTMENTS    <DEPARTMENT_NAME>Treasury</DEPARTMENT_NAME>      
    as          EMPLOYEES      <EMAIL>PVARGAS</EMAIL>                           
    as          EMPLOYEES      <EMAIL>STOBIAS</EMAIL>                           
    as          EMPLOYEES      <FIRST_NAME>Douglas</FIRST_NAME>                 
    as          EMPLOYEES      <FIRST_NAME>Jason</FIRST_NAME>                   
    as          EMPLOYEES      <JOB_ID>AD_ASST</JOB_ID>                         
    as          EMPLOYEES      <LAST_NAME>Tobias</LAST_NAME>                    
    as          EMPLOYEES      <LAST_NAME>Vargas</LAST_NAME>                    
    as          JOB_HISTORY    <JOB_ID>AD_ASST</JOB_ID>                         
    10 rows selected.Not as fast as google, so you better take a cup of tea or two ... ;-)

  • Where and How Forcast data is stored in Demand planning keyfigures

    Hi ALL,
    We are using SCM 4.0 for configuring DP module.
    Our requirement is like this...
    1.we have majorly six users (Managers) who should have an access for relevant planning books.
    2. our client have 'kits' which contains sub components
       in it.(all are materials).
    3.They sell materilas individually and through 'Kits'as
      sub components. (One kit contains sevaral materials
      as sub components with defferent quantities).
    4.Forecast is needed on materials individually and also on kit level.
    5. Dependent demand (sub components) should be added to
    individual material forecast to get final forecast.
    Can any body explain the best way to model this situation?.
    assumptions
    1. Can one planning area is sufficient to deal this situation. (I want to use DP BOM also to capture dependent demand).
    2. how many forecast key figures are required.(for six plannimng books)
    Any one come up with solution is highly appreciated.
    Thanks in advance
    Ramakrishna

    Hi,
    Here are my thoughts:
    As per your description below (and only 2 seconds of design thoughts for me), I believe you need at least 3 Key figures (Stat forecast, dependent demand, Total Demand). Total Demand = Stat Forecast + dependent Demand (to be updated by planning book macro).
    I think you need at least the 2 Characteristics: Kit (kit # whatever), Material (9AMATNR). You may also want to add Country, or whatever location characteristic if you need it.
    In your planning books, you can add the characteristic for Kit and Material. In the shuffler, users may select the kit (w/c effectively selects the materials under it) to forecast on "Kit level". Forecast on material level will then depend on the disaggregation rules that you configure. If you need to forecast on material level, then users will select materials on the shuffler. "Kit level" forecast will then be changed based on aggregation rules.
    Hope this helps.

  • Data Retrieval Speed in Oracle Spatial vs. ESRI ArcSDE

    I would appreciate any opinions regarding data retrieval
    performance between Oracle Spatial and ESRI ArcSDE. Would an end-
    user (using ESRI software) experience significant differences in
    data retrieval speed depending on how the data were stored in
    Oracle (MDSYS.SDO_GEOMETRY verses ESRI Binary/Blob formats).
    Knowing that the ESRI binary formats are tailored to their
    software front-end apps (ArcGIS, ArcMap, ArcCatalog, and
    ArcInfo), wouldn't this be a "non-issue" until the spatial
    dataset gets "large", and even then, wouldn't performance be
    (almost) equal if the spatial indexes were created properly?
    Thanks for your inputs,
    Bruce

    John,
    You can't do that type of query in sql from sql*plus using
    SDEBINARY. HOwever, you can perform spatial queries in ArcMap
    if you are using SDEBINARY.
    You can use the query builder to perform point-in-polygon type
    queries.
    Hope that helps.
    For my two cents, I think SDO_GEOMETRY gives you a more robust
    database to work with, because you have the added power of
    Oracle Spatial functions. If you are using SDEBINARY you are
    limited to only what you can do thru ArcGIS.
    If you are concerned more about performance than accessibility,
    especially with a large number of users, then SDEBINARY might
    be the better choice.
    I love Oracle Spatial and am hoping that the performance issue
    will not be a serious one when we start putting ArcIMS developed
    apps into production.
    Dave

  • How data will storing in Cubes

    Hi experts,
     How the data is storing in cubes, like SQL server data are storing in Page and extents. SO how in SSAS cubes?
    Thanks

    hi ,
    Analysis Services stores it's data in many files. you'll be able to get as below ;
    1.In SQL Server Management Studio connect to SSAS instance -> right click on the server name
    2.Go to properties and check property DataDir. This will be for example: c:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data
    Go to that folder and you will see folder for each database and in there you will find many files that represent dimensions and measure groups.
    Thanks
    Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. http://techequation.com

  • How to create ODBC connection between Oracle 10g and MS SQL Server

    Hi,
    Can someone help us with the steps to create an ODBC connection between Oracle APPS using Oracle 10g database and MS SQL Server.
    Requirement is to extract the transactional data from MS SQL Server on a daily basis and dump it into Oracle tables for an interface to be run. Currently it is being done through Dataloader tool which we feel is causing the data issue with Arabic characters. We want to create the ODBC directly between Oracle and MS SQL Server and check if the data is being pulled correctly.
    The data is in sql server 2000 which has data in Arabic_CI_AS character set which is moved to Oracle 10.2.0.3 database with characterset AL32UTF8. The table data is moved to oracle using the dataloader 3.6 standard edition licensed version. We cannot change the character set of Sql Server 2000.
    Please help
    Thanks
    Shanil

    Hi,
    If you're trying to PULL data from SQLServer into an Oracle database, you wouldnt use Oracle ODBC driver for that, so you may want to post in the Heterogeneous Services forum instead:
    Heterogeneous Connectivity
    If you're trying to PUSH data from SQLServer into an Oracle database, you could use ODBC but most folks use OLEDB for that, and the following note on MOS should help:
    How to Create a Sql Server Linked Server With The Oracle Provider for OLE DB     (Doc ID 191368.1)
    As with any NLS related issue, the first thing to do is dump the codepoints of the data in the Oracle database to see if it is stored validly, rather than relying on what the data "looks like" from some tool or other. It's best to check a single row, with only a few characters in it if you can, and you can do that via
    SELECT DUMP(<columname>,1016) FROM <tablename> WHERE ...
    Hope it helps,
    Greg

  • Writing a stored procedure to import SQL Server table data into a Oracle table

    Hello,
    As a new DBA I have been tasked with writing a stored procedure to import SQL Server table data into an Oracle table. I have been given many suggestions on how to do it from SQL Server but I I just need to write a stored procedure to run it from the Oracle side. Suggestions/guidance on where to start would be greatly appreciated! Thank you!
    I started to write it based on what I have but I know this is not correct :/
    # Here is the select statement for the data source in SQL Server...
    SELECT COMPANY
    ,CUSTOMER
    ,TRANS_TYPE
    ,INVOICE
    ,TRANS_DATE
    ,STATUS
    ,TRAN_AMT
    ,CREDIT_AMT
    ,APPLD_AMT
    ,ADJ_AMT
    ,TRANS_USER1
    ,PROCESS_LEVEL
    ,DESCRIPTION
    ,DUE_DATE
    ,OUR_DATE
    ,OUR_TIME
    ,PROCESS_FLAG
    ,ERROR_DESCRIPTION
      FROM data_source_table_name
    #It loads data into the table in Oracle....   
    Insert into oracle_destination_table_name (
    COMPANY,
    CUSTOMER,
    TRANS_TYPE,
    INVOICE,
    TRANS_DATE,
    STATUS,
    TRANS_AMT,
    CREDIT_AMT,
    APPLD_AMT,
    ADJ_AMT,
    TRANS_USER1,
    PROCESS_LEVEL,
    DESCRIPTION,
    DUE_DATE,
    OUR_DATE,
    OUR_TIME,
    PROCESS_FLAG,
    ERROR_DESCRIPTION)
    END;

    CREATE TABLE statements would have been better as MS-SQL and Oracle don't have the same data types.
    OUR_DATE, OUR_TIME will (most likely) be ONE column in Oracle.
    DATABASE LINK
    Personally, I'd just load the data over a database link:
    insert into oracle_destination_table_name ( <column list> )
    select ... <transform data here>
    from data_source_table@mssql_db_link
    As far as creating the database link from Oracle to MS-SQL ... that is for somebody else to answer.
    (most likely you'll need to use an ODBC driver)
    EXTERNAL TABLE
    If the data from MS-SQL is in a CSV file, just use and external table.
    same concept:
    insert into oracle_destination_table_name ( <column list> )
    select ... <transform data here>
    from data_source_external_table
    MK

  • How to migrate 'table' data type into oracle solution?

    Say, I have following sample code in Sql Server:
    Declare @v1 table(old_value int, new_value int)
    insert into @v1 select old_value, new_value from aTable where....
    declare cur cursor for
    select new_value from @v1 where old_value=...
    what should I use in oracle to convert above code? I was thinking about nested table, but it seems not very suitable here. Any better solutions out there?

    It's been a while since I've done any SQL Server development, but if I recall correctly, a table data type in Transact SQL is used for storing temporary result sets.
    In your example, you seem to be temporaily storing the results of a query in a Transact SQL table, and then opening a cursor to iterate over the results.
    In Oracle PL/SQL, there is usually no need to do this, just open a cursor:
    create or replace procedure test_proc as
    begin
    for curs_rec in (select old_value, new_value from myTable) loop
    ... process each row ...
    end loop;
    end test_proc;
    If you really want your results in an array which your code can iterate over, look into the BULK COLLECT clause of the SELECT statement:
    create or replace procedure test_proc as
    TYPE array_type IS TABLE of myTable%ROWTYPE INDEX BY BINARY_INTEGER;
    my_array array_type;
    begin
    SELECT * BULK COLLECT INTO my_array FROM myTable;
    for idx in my_array.FIRST..my_array.LAST loop
    dbms_output.put_line(my_array(idx).col1);
    end loop;
    end test_proc;
    Note that I have not actually compiled the above code, so there may be syntax errors :)
    Also, prior to 9i you can not BULK COLLECT into a table based on a rowtype (you need to created an array for each attribute).
    SQL Server also allows function which return table types. This is similar to PL/SQL pipelined table functions (available in 9i and higher - see the PL/SQL guide), which can be used to materialize rows which can be processed like any other result set.
    SQL Server also has a concept of temporary tables which is totally different than Oracle's temporary tables. SQL Server developers must often resort to using temporary tables in their stored procedures; in Oracle, this is rarely necessary.

Maybe you are looking for

  • Bought video that shows up on itunes does not show up on ipod

    i have many episodes that i bought from itunes that once worked perfectly but are now messed up. I can play them on Itunes, but I only hear audio and see green and pink lines. When I look for them on my Ipod, they are nowhere to be found. How can I f

  • Java Install,  Cannot insert a key value pair into the secure store fails,

    Dear All, I'm doing Java Intallaion in BI7 on CI and in the midle of installtions we encounter, TRACE      [iaxxejsexp.cpp:199]            EJS_Installer::writeTraceToLogBook() NWException thrown: nw.secureStore.cannotInsertIntoSecureStore: Cannot ins

  • 10.4.11 neinstallation fails

    Hi, I am creating an netinstall image of Intel 10.4.11 from iMac machine. After creating an NBI folder using SIU, I copied libbz2.1.0.3.dylib to Image /usr/lib of image. (As this is a know problem) This process used to work like champ before 6 months

  • Importing multiple bapi's

    Hi, In a java web dynpro app I am desiging I am going to make use of some 20 bapi's. My question: what is the recommended architecture in this case? Do I create two, three models and put 6 bapi calls in each one? Do I create two DC's and put one or t

  • IPad Air update problem!!!

    Hi. I have new iPad Air 16Gb. I pressed check for Updates. While updating, now I see Black screen with Apple logo and white line with 0% indicating. One hour no change!!! What should I do?