Is it possible to have 2 tables with the same name in an Orable database?

Hello,
I'm a complete Oracle newbie so please excuse my question if it's stupid.
I was trying to create 2 tables with the same name using different tablespaces but it does not seem to work. Like this (second time just change the name of the tablespace):
CREATE TABLE test_tbl (
  id INTEGER,
  status VARCHAR2(10),
  last_modified DATE DEFAULT SYSDATE
TABLESPACE tblspc1Is it in general in Oracle possible to acquire this goal?
Thanks a lot!
P.S. I have already created the needed tablespaces
CREATE TABLESPACE tblspc1 DATAFILE 'tblspc1.dbf' SIZE 10MEdited by: 808239 on 02-Mar-2011 02:18

It is not possible to create two tables with same name in same schema.
A user can own one schema with his own name and another with the schema name SYS.
For this you have to grant sysdba privilage to the user and then have to connect using sys password or with the password specified in password file.
But this still you have to access to the table in sys schema using sys.table_name.
Hope Answered tthe Question.

Similar Messages

  • Oracle Forms - two forms have element with the same name. How to address?

    Hi all
    We test application in Oracle Forms 10G, often there are several forms opened simultaneously.
    And now question – what to do if two or more forms have element with the same Block Name and Name?
    For example:
    //forms:button[(@name=’TOOLBAR_EXIT_FORM_0’)]
    How to address these elements?

    to aamat:
    "The names are not the same"
    OpenScript gives them the same name, it consists of block name + element name + index. it doesn't take form name into consideration, so it gets
    //forms:button[(@name=’TOOLBAR_EXIT_FORM_0’)]

  • Reference all tables with the same name

    If I have multiple worksheets that each have an identically structured table "Test", is it possible to create a formula in a cell of another worksheet that references the same range of cells in every table "Test"? So far I haven't found a way to reference cells in a table with an ambiguous name without having to prepend the worksheet name to the reference like so: 'Worksheet 1' :: Test :: B3:C4. What I want to be able to do is say Test :: B3:C4 and have the formula reference B3:C4 in all "Test" tables.
    Thanks!

    You've picked the correct descriptive term. Such a reference would indeed be "ambiguous".
    You might be able to reference a set of disconnected ranges of cells, but each range would have to be explicitly described.
    You might be able to collect the values in the cells into a single array in a single table, then reference that array in your formula.
    Regards,
    Barry
    PS: "Sheets" in Numbers have little in common with "Worksheets" in MS Excel. Using the Numbers vocabulary can help keep the distinction more clear, and avoid unwarranted expectations.
    B.

  • WCF-SQL table operation on tables with the same name.

    Hello,
    My situation involves generating table operation schemas (Insert, Update, Delete, Select) for tables in two different SQL databases.  These tables happen to have the same name.  For the sake of discussion lets call the tables dbo.Customer.  However,
    these tables have different fields in them.  When generating the schemas to be used by BizTalk, they end up as the same message type like so:
    Database1: http://schemas.microsoft.com/Sql/2008/05/TableOp/dbo/Customer#Update
    Database2: http://schemas.microsoft.com/Sql/2008/05/TableOp/dbo/Customer#Update
    To my understanding, I can't simply change the namespaces or root nodes to be unique since this structure is expected by the SQL Adapter (shown here: https://msdn.microsoft.com/en-us/library/dd788023.aspx).  I had a couple thoughts on a solution: 
    Use schema versions to differentiate between the two different table schemas.
    Use a unique namespace and root node for the schemas.  Then, create a custom pipeline component to modify them to the standard as it is sent to SQL server.
    Modify the schema so support both tables with all columns in both tables.
    I don't really like any of these solutions, so I am hoping somebody in the community has run into this situation before and has something better.
    -Richard

    You don't really have to do anything other than make sure the particular message gets routed always to the correct database.
    Having duplicate MessageType's is only a problem if you're relying on the automatic resolution of the XmlDisassembler and that would only be a concern on the Response side.
    To get around that, just create a custom Pipeline with the XmlDisassembler and set the Document Schemas list to only the one for that Port.

  • Dynamic Internal Table with the same name

    Hey Guys
    I have a question.
    I know that we can create dynamic internal table taking a struct dynamically.
    But I have 2 ques on the same subject.
    1. Can we create an internal table based on a type that we have locally declared eg
    types: begin of ty_demo.
               var1(1) type c,
               var2     type p,
              end of ty_demo.
    2. If an internal table is already declared based on the above type say data: i_tab type standard table of ty_demo.
        If i need to enhance the struct of this internal table. Can i do that by dynamically redefining it based on a different structure but keepin the same name i_tab.
    In a nut shell I cannot change the name of my itab but I want to enhance the structure.
    I Hope I am clear.
    Help will be greatly apprcieated.
    Thanks
    Sameer

    hai.
    we can create an internal table based on a type that we have locally declared, but you have to use data instead of types like.
    data: begin of ty_demo.
    var1(1) type c,
    var2 type p,
    end of ty_demo.
    check the example notes for dynamic itab .
    Dynamic internal table is internal table that we create on the fly with flexible column numbers.
    For sample code, please look at this code tutorial. Hopefully it can help you
    Check this link:
    http://www.****************/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm
    Sample code:
    DATA: l_cnt(2) TYPE n,
    l_cnt1(3) TYPE n,
    l_nam(12),
    l_con(18) TYPE c,
    l_con1(18) TYPE c,
    lf_mat TYPE matnr.
    SORT it_bom_expl BY bom_comp bom_mat level.
    CLEAR: l_cnt1, <fs_dyn_wa>.
    Looping the component internal table
    LOOP AT it_bom_expl INTO gf_it_bom_expl.
    CLEAR: l_cnt1.
    AT NEW bom_comp.
    CLEAR: l_cnt, <fs_dyn_wa>, lf_mat.
    For every new bom component the material data is moved to
    temp material table which will be used for assigning the levels
    checking the count
    it_mat_temp[] = it_mat[].
    Component data is been assigned to the field symbol which is checked
    against the field of dynamic internal table and the value of the
    component number is been passed to the dynamic internal table field
    value.
    ASSIGN COMPONENT c_comp_list OF STRUCTURE <fs_dyn_wa> TO
    <fs_check>.
    <fs_check> = gf_it_bom_expl-bom_comp.
    ENDAT.
    AT NEW bom_mat.
    CLEAR l_con.
    ENDAT.
    lf_mat = gf_it_bom_expl-bom_mat.
    Looping the temp internal table and looping the dynamic internal table
    *by reading line by line into workarea, the materialxxn is been assigned
    to field symbol which will be checked and used.
    LOOP AT it_mat_temp.
    l_nam = c_mat.
    l_cnt1 = l_cnt1 + 1.
    CONCATENATE l_nam l_cnt1 INTO l_nam.
    LOOP AT <fs_dyn_table2> ASSIGNING <fs_dyn_wa2>.
    ASSIGN COMPONENT l_nam OF STRUCTURE <fs_dyn_wa2> TO <fs_xy>.
    ENDLOOP.
    IF <fs_xy> = lf_mat.
    CLEAR lf_mat.
    l_con1 = l_con.
    ENDIF.
    Checking whether the material exists for a component and if so it is
    been assigned to the field symbol which is checked against the field
    of dynamic internal table and the level of the component number
    against material is been passed to the dynamic internal table field
    value.
    IF <fs_xy> = gf_it_bom_expl-bom_mat.
    ASSIGN COMPONENT l_nam OF STRUCTURE <fs_dyn_wa> TO <fs_check>.
    CLEAR l_con.
    MOVE gf_it_bom_expl-level TO l_con.
    CONCATENATE c_val_l l_con INTO l_con.
    CONDENSE l_con NO-GAPS.
    IF l_con1 NE space.
    CONCATENATE l_con1 l_con INTO l_con SEPARATED BY c_comma.
    CLEAR l_con1.
    l_cnt = l_cnt - 1.
    ENDIF.
    <fs_check> = l_con.
    l_cnt = l_cnt + 1.
    ENDIF.
    ENDLOOP.
    AT END OF bom_comp.
    At end of every new bom component the count is moved to the field
    symbol which is checked against the field of dynamic internal table
    and the count is been passed to the dynamic internal table field
    value.
    ASSIGN COMPONENT c_count OF STRUCTURE <fs_dyn_wa> TO <fs_check>.
    <fs_check> = l_cnt.
    INSERT <fs_dyn_wa> INTO TABLE <fs_dyn_table>.
    ENDAT.
    ENDLOOP.
    regards.
    sowjanya.b

  • Using variable with the same name as field name?

    I have a complex proc where I have variables with the same name as field name used on a query. something like this:
    SELECT a.id_table WHERE a.id_table = id_table
    where the last id_table is a parameter sent to the proc:
    declare procedure myproc(id_table int)
    Is there any way or notation to declare the variable inside the query as a variable or I have to use a different name?

    Well, variables are not the only thing you have to change if you want to switch to Oracle.
    Although I don't think it is good practice (to use variable name same as column name), here is one example how you can achieve it using EXECUTE IMMEDIATE and bind variable
    SQL> select deptno, count(1)
      2  from scott.emp
      3  group by deptno;
        DEPTNO   COUNT(1)
            30          6
            20          5
    10 3
    SQL> set serveroutput on
    SQL> declare
      2  deptno varchar2(10);
      3  i number;
      4  begin
      5  deptno:=10;
      6  execute immediate
      7  'select count(1) from scott.emp where deptno=:deptno' into i using deptno;
      8  dbms_output.put_line('OUT ---> '||i);
      9  end;
    10  /
    OUT ---> 3
    PL/SQL procedure successfully completed.
    SQL> Message was edited by:
    tekicora
    Message was edited by:
    tekicora

  • Is it possible to have two files with the same name on my Zen To

    Hia,
    Is it possible to have two mp3 files with the same name?; I.e if I'm ripping a Bach CD, there are several tracks that have the name preludium, and I hate to do the rename.
    Also, will I be able to sync my Zen so that It will only recieve new files that have been added since I last connected my Zen to my computer?
    regards,
    Fredrik

    I believe same filename is OK because the Zen Player does not really care about filename. As far as I know, the Zen database of the tracks in the player is based on the track information such as Title, Artist, Album and Genre. This means you cannot have two tracks of the same Title, Artist, Album and Genre in the Zen Player.

  • I notice that in the new update to Firefox if I have two bookmark folders with the same name Firefox will end up deleting one of them.

    Both of these problems with the bookmarks started occurring after I installed the latest update to Firefox.
    I frequently have bookmark folders of the same name under the older version of Firefox and it has never been a problem before. It is now, and I notice that after I've created two folders with the same name Firefox will end up deleting one of the folders, almost always the older of the two folders (the one created first, chronologically).
    I have also noticed that with the new update Firefox will occasionally fail to open all bookmarks in Tabs if I've asked it to do so. I can simply close Firefox and reopen the program and it will work again, but I don't know why this bug is occuring in the first place.

    You are using two IP address ranges.. which results in the printer being cut off from the other network..
    Why do you have two networks?? It is always better in home situations to run one network.
    If you have work setup with an enterprise level router you can setup routes between the two networks.. this is not possible on domestic level apple routers.

  • I have two iphone 4's with the same name on one computer.  Can I change the name of one so that I can sync each phone separately

    I have two iphone 4's with the same name on one computer.  Can I change the name of one so that I can sync contacts separately?

    How to rename your device in iTunes

  • I made a movie in iMovie then deleted the clips in it. I have reimported the clips in an event with the same name as previously and some clips in the movie are still saying source slip missing even though they are there. What can I do?

    I made a movie in iMovie then deleted the clips in it. I have reimported the clips in an event with the same name as previously and some clips in the movie are still saying source slip missing even though they are there. Some clips are fine in the movie, but most are just black and when I hover over them, it says source clip missing. How to I fix this? Thank You

    I did that too, then I did a migration assistant to a new Mac and ALL of my movies have Source Clip Missing now, even though the original clips are still in the iPhoto Videos.  I can stand to re edit one or two projects, but not ALL.

  • Is it possible to create a Clone database with the same name of source db ?

    Is it possible to create a Clone database with the same name of source db using RMAN ...
    DB version is 11.2.0.2
    Is it possible to clone a 11.2.0.2 database to 11.2.0.3 home location directly on a new server . If it starts in a upgrade mode , it is ok ....

    user11919409 wrote:
    Is it possible to create a Clone database with the same name of source db using RMAN ...
    yes
    >
    DB version is 11.2.0.2
    Is it possible to clone a 11.2.0.2 database to 11.2.0.3 home location directly on a new server . If it starts in a upgrade mode , it is ok ....yes
    Handle:     user11919409
    Status Level:     Newbie (10)
    Registered:     Dec 7, 2009
    Total Posts:     102
    Total Questions:     28 (22 unresolved)
    why do you waste time here when you rarely get any answers to your questions?

  • Is it possible to search for multiple folders with the same name and...

    Is it possible to search for multiple folders with the same name and then select them all and change the permissions on just those folders .i.e. Search for the budget folders in all client folders and lock them down to just the project managers. Without having to go to each folder and apply the permissions.

    user11919409 wrote:
    Is it possible to create a Clone database with the same name of source db using RMAN ...
    yes
    >
    DB version is 11.2.0.2
    Is it possible to clone a 11.2.0.2 database to 11.2.0.3 home location directly on a new server . If it starts in a upgrade mode , it is ok ....yes
    Handle:     user11919409
    Status Level:     Newbie (10)
    Registered:     Dec 7, 2009
    Total Posts:     102
    Total Questions:     28 (22 unresolved)
    why do you waste time here when you rarely get any answers to your questions?

  • I have photos with the same numer but they are different photos how can I fix that?

    I have photos with same names but they are different photos. Can I rename these photos ? How can I do this?

    you can save a file with the same name by dragging and dropping from iphoto to a Finder folder
    but (and there are always buts) you can only do up to 4 photos at a time
    any more and you are not given the option
    This is the error message you get:
    An item named “IMG_8770.JPG” already exists in this location. Do you want to replace it with the one you’re moving?
    4 or lesss  your options are:
    Keep Both       Stop       Replace
    5 or more your options change
    Skip     Stop    Replace
    it will add a space and a 2 to the name
    IMG_8816.JPG  turns to IMG_8816 2.JPG
    this is the solution I was looking for; let the computer do the name change
    Cheers!

  • AMT subsystem failure.  The licensing subsystem has failed catastrophically you must reinstall or call customer support.  Which never answers.  I have reinstalled with the same issues not sure whatelse to do?

    this message appear when I launch any program within the CS3 suite
    AMT subsystem failure.  The licensing subsystem has failed catastrophically you must reinstall or call customer support.  I call automated system which refers me to this site.  I have reinstalled with the same issues not sure what else to do?

    Try this Help article
    Error: "The licensing subsystem has failed catastrophically." when you start a Creative Suite 3.x application
    Nancy O.

  • I have two iPods that show up with the same name on my iTunes account.  How do I separate them?

    I have two iPods that show up with the same name on my iTunes account.  How do I correct so that I can put different music on each ipod?

    I figured it out.  Thanks.

Maybe you are looking for

  • How do I take cell phone numbers off of my iCloud account.

    I have all of my devices under the same accounts, both itunes and icloud.  I originally used the smae itunes account on all my family member devices so that we could share all of our purchases.  And the same cloud account so that we can share calande

  • Error while activating the Master Data InfoSource for attributes

    Hai Im trying to load the attributes for master data characteristics . I created the InfoSource and when im trying to activate it .   Then it gives the following error like below Diagnosis An error occurred in the program generation: Program / Templa

  • Regarding Creation of Custom IDOC

    Hi, This is Abdullah Shaik. I want to create an IDOC from the existing IDOC. Some times I need to add some segments to the existing IDOC. Can anybody plz let me know the process how to create the Customized IDOC from the Standard IDOC? Thanks & Regar

  • IPhoto 11 - Lost Video's

    Just made a smart album for all my video's. 180 items: 144 photos and 36 videos, My question is why are their not 180 video's. - The thumbnail when clicked goes to the exclamation mark, with the face tag. - The items date and file size seem correct.

  • Erratic slowdowns on Win 7 machines

    Due to corporate requirements, all the company pc's must be updated or replaced with Win 7 systems.  The first system I completed began life using LV 2011 with Win 7 and for the most part, things work pretty good though there are some glitches.  Once


HashFlare