How to create a view in the DB table for some servers

Hello

We need create a country table which will contain data for countries.

I want to create it in such a way that it will be common for all servers - but as a point of view. not the real table, only the data and views do not change.

How can I do?

Thanks in advance

Are you sure you want to say 'tablespace '? A tablespace is a collection of data files. It has nothing to do with the privileges of the object, object namespaces, etc. I'm guessing that you mean that you have two schemas, OBITUARIESCS and ADVERTISEMENTCS. A schema is a collection of objects of database belonged to a particular user. A single table can exist in spaces of multiple tables (assuming it is partitioned). Different schemas can have an infinite number of tables with the same name in the same table. The database schema is the namespace for objects such as tables.

Assuming that you have two schemas in your database, you can create a table of COUNTRIES in the OBITUARIESCS schema. You can then grant SELECT access on the table to another user, ADVERTISEMENTCS, i.e.

GRANT SELECT ON country TO advertisementcs

You can then ask questions (but not change) the COUNTRY code of the property of ADVERTISEMENTCS table

SELECT *
  FROM advertisementcs.country

If you want to be able to remove the prefix in the schema, you can create a synonym. In the ADVERTISEMENTCS schema

CREATE SYNONYM country
  FOR advertisementcs.country

and then when the code of the property of ADVERTISEMENTCS wants to query the countries table, it can just

SELECT *
  FROM country

Justin

Tags: Database

Similar Questions

  • Adobe Captivate 7 - How to create a custom without the function table of contents table of contents?

    Hello

    I want to create a table of contents in my E-Learning-project because the automatically generated TOC of Adobe Captivate 7 includes all the features I need to check for example chapters which are the groups in the film strip.


    I use master slides in my project.
    The table of contents, I need must be designed and programmed as follows:

    1 intro / title slides

    9 chapters

    The progress of the work - 3 status - all chapters should be moved by symbols in the table of contents

    Symbol 1: chapter has not yet begun (just an empty box)

    Side 2: chapter is work in progress (a square with a green triangle inside)
    Side 3: chapter is finished that means that all of the slides in this chapter are read (the square is filled with a green square)

    All the chapters and Points to the table of contents must be clickable (links) maybe with a mouse over effect (change in colour of mouse) and should start to the first slide of this chapter.

    The chapter which is open must be written in bold with one blue color, others who are not open to be written in the normal font with a black color

    I think it's a little complex, but solutionable.

    I think I need to create three symbols of the buttons form, advanced actions that tend to fade and fade out named symbols.

    Is there someone who can describe the process of creation? Where should I place all the functions, actions and so on? On the slide master?

    Thank you for the answers!

    The only thing I can say about it is that I build it in Flash, so it could be dynamic and reusable.

    If you take the time to build a PC inside it only works for one project. Certainly you would have a base to work from, but for a another edition project wouldn't be fun.

    If you need HTML5, I think it would be much more difficult to build a dynamic table of contents.

  • Get-view do not show anything for some servers

    One of my colleagues has created a script to extract some VM PCI slot numbers the script seems simple like this and work for (most) servers.

    $ServerName = "Test01".

    $vmview = (get-View - ViewType VirtualMachine-filter @{"Name" = $ServerName}).config.hardware

    $AllSasControllers = $vmview. Device | Where {$_.} DeviceInfo.Summary - eq 'SAS LSI Logic'}

    foreach ($SasController to $AllSasControllers)

    {

    Write-Host "Pci slot number:" $SasController.SlotInfo.PciSlotNumber

    }

    It worked before, but since a few days on 3 virtual machines which are one of the 6 we want to check returns no results more. All 3 VM is connected to the same vCenter, while others are connected to another. Knowing this, we'll try another VM in the vCenter (defective)... .strange return these results...

    On a defective VM, I note that:

    $AllSasControllers is filled with the results

    But the slotinfo property is empty, so far I can only see this behavior on 3 virtual machines that worked fine before.

    We did a few add/remove disk shares a few weeks on all VM 6 on the two vCenters. (may be a clue)

    One has obtained clues where to look?

    After a restart of vCenter problem seems to have disappeared, requires that certain inconsistencies of data or something.

  • How to create an association in the default programs for email control panel?

    Since installing Windows 7 and by creating a Windows Live hotmail email account, I can send and receive emails here and through my original email with Fullnet account.  But I am unable to answer email addresses in Craig's list, I get a message that there is no e-mail program or I need to create an association.

    Since installing Windows 7 and by creating a Windows Live hotmail email account, I can send and receive emails here and through my original email with Fullnet account.  But I am unable to answer email addresses in Craig's list, I get a message that there is no e-mail program or I need to create an association.

    Have a look here:
    http://email.about.com/od/windowslivehotmailtips/Qt/How_to_Make_Windows_Live_Hotmail_Your_Default_Email_Program.htm If you find my answer helpful, please click the button "Vote as helpful"! Thank you! My Blog

  • How to create a Viewer without buying the image? I want to be able to save the images I'm looking a subject without purchase or download.

    How to create a Viewer without buying the image? I want to be able to save the images I'm looking a subject without purchase or download.

    After talking to the Customer Service, I now get it. Thank you.

    That is to say: down arrow recorded a watermark image in the gallery without you buy. You can download an overview lores on your desktop for motorhomes with this same arrow, but it is unfortunately a watermark (unlike the DPC). You can also copy and send a link to the Gallery clients to review before you buy.

  • How to create an association in the Set associations Control Panel?

    When I try to open attachments to emails that have pps file it is said, this file does not have a program associated with it for performing this action. Create an association in the Set associations Control Panel. How to create an association in the Set associations Control Panel?

    1: If you do not PowerPiont or PowerPoint Viewer, you need at least the Viewer.

    PowerPoint 2007 Viewer:
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=048DC840-14E1-467D-8DCA-19D2A8FD7485&displaylang=en

    2: create a file association.

    1. download and save the attachment to the office.
    2. right click on the saved file.
    3. Select: Open with on the shortcut menu.
    4. click on: choose [default] program.
    5 PowerPiont select: (Or PPViewer).
    6. check: always use the selected program to open this type of file.
    7. click on OK.

    3: Edit the registry here if necessary.

    Cannot open. PPS directly from Windows Mail or Windows Live Mail attachments
    http://www.Winhelponline.com/articles/149/1/Unable-to-open-PPS-attachments-directly-from-Windows-mail-in-Windows-Vista.html

    Bruce Hagen ~ MS - MVP [Mail]

  • How to create a view?

    Hi all

    11.2.0.1


    I have tables EMP and DEP, and their structures are the ff:

    DEP (depno, depname)
    EMP (emp_id, depno)

    I want to create a view EMP_VIEW (emp_id, status).

    The status value is "Active" (if depno exists in DEP) or 'Inactive' (if depno is null or not depno corresponding to the DEP).

    How to create this view?

    Thank you very much

    zxy

    Check this box

    SQL> insert into emp(empno,ename) values (1234,'test');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> create or replace view emp_view as  select e.empno, nvl2( d.deptno,'Active','Inactive') Status from emp e left outer join dept d on e.deptno=d.deptno;
    
    View created.
    
    SQL> select * from emp_view;
    
         EMPNO STATUS
    ---------- --------
          7369 Active
          7499 Active
          7521 Active
          7566 Active
          7654 Active
          7698 Active
          7782 Active
          7788 Active
          7839 Active
          7844 Active
          7876 Active
          7900 Active
          7902 Active
          7934 Active
          1234 Inactive
    
    15 rows selected.
    
  • How to create a '. '. The URL file"of a Web page I visit

    How to create a '. '. The URL file"of a Web page I visit

    Check these

    deskCut {web link}
    This extension adds desktop shortcut creation for the
    context menu for Windows, Linux and Mac.

    My CopyFixer {web link}
    Use Ctrl + C when nothing selected to copy the page title and the url in
    various (base model) format.

    Send the URL of the tab {web link}
    Send a list of URLS tab browser to email, webmail or the Clipboard

  • How to create a link on the web to use in an e-mail?

    I don't know how to create a link on the web that I can put in the e-mail addresses. Could you help me please? I know it must be very simple, because thousands of others do regularly. Thank you.

    Katy Anderson

    You can use file-> Send link or copy the web address of the address bar and paste it into an email.

    You are using an older version of Firefox (3.0.7) - you need to update as soon as possible

  • How to create a button like the one pictured here

    How to create a button in the button "print" below?

    I was actually thinking of doing it two separate buttons placed side by side. The "print" button, of course would be just updated the Boolean value, that is easy. But the drop down menu is a bit more difficult. I tell myself that I could customize a drop down, but because I was not able to play with it in LabVIEW (don't have it at home) I don't know if you can change the alignment of the drop-down box actually etc. The decline is down to the location of the box and look like something you can change in the control editor?

    I guess I could also use correct .net? But I'll try to keep it all with just control editing in LabVIEW if possible. Thank you.

    for (imstuck).

    I use a listbox multicolumn and toggle visibility is when the user clicks the button.  I've attached an example:

    ~ Simon

  • How to create IT strategy using the BES administrator API

    Hi all

    Can tell me, how to create IT strategy using the BES administrator API.

    Please provide me with the code example.

    Thanks in advance.

    Kind regards

    Sampath

    Hi Sebastian,.

    The Administration of BlackBerry API does not support the creation of it political. This feature is currently with the development of control and review for a future version of the BlackBerry Web Services for the Administration of the company.

    Kind regards

  • How to create an autohide like the android player actionbar

    How to create an actionbar as the android player, auto-hide after a few seconds and use the gesture to bring back.

    xhotkey wrote:

    How to create an actionbar as the android player, auto-hide after a few seconds and use the gesture to bring back.

    no out-of-the-box

    I have a problem some time ago:

    https://www.BlackBerry.com/jira/browse/BBTEN-196

    You can vote

    in the meantime you can do it by yourself:

    https://github.com/EKKE/snippet-Cascades-hide-ActionBar

    and video

    http://Vimeo.com/ekkescorner/Cascades-hide-ActionBar

  • Create a view using the table

    Hi all

    I am beginner in Oracle.

    I have a two-column table that I use to create a view documents/statement once it meets the qualification.

    The table has fields. 1 number and 2. Group. If there is more than 3 records found on this table with the same NUMBER and the GROUP he should create this table view.

    Thank you

    Pramod Devkate

    The training is therefore two lines for a ticket and the agent. When the third row is added, create a line in the summary table. Later a fourth line is added to the table of training for this ticket and the agent, but we do not update the line in the summary table. We only touch the summary table when the third row is added to the training table, then it is only updated by the application. Very well

    INSERT INTO summary (ticket, agent, total_travel, total_mtts)

    Select ticket agent, sum (travel), sum (mtts)

    training

    where (ticket, agent) not in

    (select the ticket agent summary)

    Group ticket, agent

    having count (*) > 2.

    This inserts in the table only notes and agent ID that do not exist already.

  • How to create a DataControl from the Java file

    How to create a data from the Java file control

    Hello
    Try like that after the example, you will get the answer

    1. Create Page.java

    public class {Page}
    private String pageName;
    private String pageAction;
    public Page() {}
    Super();
    }

    public Page (pageName, pageAction String String) {}
    Super();
    this.pageName = name of the page;
    this.pageAction = pageAction;
    }

    {} public void setPageName (String pageName)
    this.pageName = name of the page;
    }

    public String getPageName() {}
    Returns the name of the page;
    }

    {} public void setPageAction (String pageAction)
    this.pageAction = pageAction;
    }

    public String getPageAction() {}
    pageAction return;
    }
    }

    2. create PageList.java

    import java.util.ArrayList;
    import java.util.List;

    public class PageList {}

    private pages = new() ArrayList list;

    public PageList() {}
    Super();
    pages. Add (New Page ("Page title 1", "page 1"));
    pages. Add (New Page ("Page title 1", "page 1"));
    pages. Add (New Page ("Page title 1", "page 1"));
    pages. Add (New Page ("Page title 1", "page 1"));
    pages. Add (New Page ("Page title 1", "page 1"));
    }

    public void setPages (list of pages ) {}
    This.pages = pages;
    }

    public {list getPages()
    return pages;
    }
    }

    3. right click in the PageList.java and choose CreateDataControl

    then refresh the DataControl and focus on which a DataControl as PAgeList will be created

    Kind regards
    Felix

  • create a view with the double data type

    I have Windows XP with 10g 10.2.0.1.0

    I need to create a view of the double and with the type of data, such as NUMBER (5.2), NUMBER or VARCHAR2 (20).
    such as:
    create see test (view_test varchar2 (20)) as (select view_test from double)


    Help, please. Thanks in advance.

    It seems a little strange, but you can do something like this with the CAST function:

    SQL> create view dual_view as
      2  select cast(null as number(5,2)) col1
      3        ,cast(null as date)    col2
      4        ,cast(null as varchar2(30)) col3
      5  from   dual;
    
    View created.
    
    SQL> desc dual_view
     Name                                      Null?    Type
     ----------------------------------------- -------- -------------------------
     COL1                                               NUMBER(5,2)
     COL2                                               DATE
     COL3                                               VARCHAR2(30)
    

    I used the NULL values, but you can use the actual values if you wish.

Maybe you are looking for

  • HP Photosmart M415 digital camera

    My digital camera makes strange photos that appear to be cut in half with blue stuff in them. Is it possible to keep my camera to do this PS how can I change my name to g-mister, my friend set up the account and I really don't like the name, he chose

  • Have not received the email for a week and does not solve the problem.

    Check hotmail account everyday and see no new messages. But I know that I get at least 10 a day, most bills online and confirmations.  Not very saavy, need help base!

  • HP color laserjet m451 print 2nd page upside down, why?

    I have a HP Color laserjet m451dn which has a capacity of dulpex automatic. I created a two page brochure in Adobe InDesign CS3. In printing the file, it prints the second page upside. I have front and back on or go back upstairs, the 2nd page is ups

  • He has lost his mind!

    I bought a 4 GB Sansa Clip 2 months.  Everything worked great for a few weeks, and then he suddenly lost everything I had put on it.  Radio has always worked fine, and it takes a load without problem, so I just used a radio until I had time to reload

  • Windows 8 - Panel crashes

    I installed Windows 8 on an HP dv6-6096 nr, I bought in May 2011. I did an upgrade to Windows 7 Home Premium. Every time I hightlight Control Panel, the machine returns to the desktop. How can I fix it? I thave updated my video drivers. I say what ot