Access schema objects without having to specify the user.

I've just created a role in a schema and assigned some priveleges.Then I created a user and granted the role to it. But as the newly created user is not the owner of the schema when I say a simle select query like this:
SELECT EMLOYEENAME FROM EMPLOYEES
I get "table or view does not exist" error. Is there a way I can wirte refer to objects in this schema without having to indicate the owner. So instead of writing SCOT.EMPLOYEES I want to write just EMPLOYEES.

>
I get "table or view does not exist" error. Is there a way I can wirte refer to objects in this schema without having to indicate the owner. So instead of writing SCOT.EMPLOYEES I want to write just EMPLOYEES.
>
Create a public synonym for the object.
CREATE PUBLIC SYNONYM EMP32 FOR SCOTT.EMP;Then you do not need to specify the schema.
--- edited to add doc reference
See CREATE SYNONYM in the SQL Language doc
http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_7001.htm
>
CREATE SYNONYM Purpose
Use the CREATE SYNONYM statement to create a synonym, which is an alternative name for a table, view, sequence, operator, procedure, stored function, package, materialized view, Java class schema object, user-defined object type, or another synonym. A synonym places a dependency on its target object and becomes invalid if the target object is changed or dropped.
>
Edited by: rp0428 on Apr 5, 2012 10:56 PM

Similar Messages

  • HT1918 Created an apple I'd using a wrong e-mail address. Can't access the e-mail to varify the Apple ID in order to be able to change the account settings. Any idea how can change the account information without having to varify the account through the e

    Created an apple I'd using a wrong e-mail address. Can't access the e-mail to varify the Apple ID in order to be able to change the account settings. Any idea how can change the account information without having to varify the account through the e-mail?

    You are trying to find a loophole to circumvent a basic rule that prohibits the transfer of purchased content from one Apple ID to another.
    Content tied to an Apple ID are bound to that Apple ID forever. You can not merge or trade accounts. Well, not (officially) anyway...

  • How can i remove pictures from my droid turbo without having to use the touch screen on the phone at all?

    how can i remove pictures from my droid turbo without having to use the touch screen on the phone at all?  my screen is cracked and i am waiting on a replacement phone.  as far as i can tell in order to access the phone storage through my computer, i have to use the touchscreen to enable it so that the computer will see it as a camera.  I can't do that as the top half of the touschscreen is unresponsive.  any suggestions?  teaches me to use the backup services offered in the future, but i still need a short term solution for this time.

        I'm sorry to hear your screen is cracked spence425. I know its difficult to use the phone while its damaged. I'm happy you are receiving a replacement device. Have you saved any of your pictures and other data to the cloud? Here is a link about the cloud http://vz.to/1mF0GIx . Unfortunately, you will be unable to remove any data from the phone if the screen is unresponsive but if you are looking to transfer data to your new phone, it would have needed to be saved via the cloud first. Keep us posted.
    Kinquana_VZW
    Follow us on Twitter @vzwsupport

  • My iPhone 5S prompts me for my password to an Apple ID email that no longer exists as an account.  How do I change my Apple ID address without having to change the primary address to a non-existent email account?

    I cannot sign into icloud on my phone because the Apple ID is an email account that has been deactivated and deleted.  How can I change my Apple ID without having to change the primary email address to this non-existent account? If I did so, I wouldn't be able to access the account to receive the verification email. Please help!

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  When you do this you may find that the password for your old ID isn't accepted.  If this should happen, and if your old ID is an earlier version of your current ID, you need to temporarily recreate your old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You should not need to verify the old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • HT5570 My six-year old grandson appears to be able to make purchases on the TV without having to enter the password and yet every other device i use (e.g. iPad, iPhone, iPod) is password protected. How is that possible?

    My six-year old grandson appears to be able to make purchases on the TV without having to enter the password and yet every other device i use (e.g. iPad, iPhone, iPod) is password protected. How is that possible when I have to use my password to access such services on all other devices?

    DominicDeBurca wrote:
    My six-year old grandson appears to be able to make purchases on the TV without having to enter the password and yet every other device i use (e.g. iPad, iPhone, iPod) is password protected. How is that possible when I have to use my password to access such services on all other devices?
    Having AppleTV remember the password is optional.
    Logout of iTunes store, log back in and hopefully next time you come to purchase you'll be prompted for your password but decline the option to remember it.  You might also want to look out of parental controls on the unit.
    AC

  • Outlook Add In - Hook into delete event without having to open the email.

    Is it possible to hook into the BeforeDelete command without having to open the email to fire the event. At present my code will hit the BeforeDelete event when the email is open and delete is selected, but it does not fire if deleting without opening
    the email.

    Below is the Property MailItem I have in a class called MailItemContainer:
    /// <summary>/// Gets or sets the Mail Item property/// </summary>public Outlook.MailItem MailItem
                get
                    returnthis.mailItem;
                set
                    if (this.mailItem != null)
                        try
                            ((Outlook.ItemEvents_10_Event)this.mailItem).Forward -= new Outlook.ItemEvents_10_ForwardEventHandler(this.MailItem_Reply);
                            ((Outlook.ItemEvents_10_Event)this.mailItem).Open -= new Outlook.ItemEvents_10_OpenEventHandler(this.MailItem_Open);
                            ((Outlook.ItemEvents_10_Event)this.mailItem).PropertyChange -= new Outlook.ItemEvents_10_PropertyChangeEventHandler(this.MailItem_PropertyChange);
                            ((Outlook.ItemEvents_10_Event)this.mailItem).Reply -= new Outlook.ItemEvents_10_ReplyEventHandler(this.MailItem_Reply);
                            ((Outlook.ItemEvents_10_Event)this.mailItem).ReplyAll -= new Outlook.ItemEvents_10_ReplyAllEventHandler(this.MailItem_Reply);
                            ((Outlook.ItemEvents_10_Event)this.mailItem).Send -= new Outlook.ItemEvents_10_SendEventHandler(this.MailItem_Send);
                            ((Outlook.ItemEvents_10_Event)this.mailItem).Unload -= new Outlook.ItemEvents_10_UnloadEventHandler(this.MailItem_Unload);
                            ((Outlook.ItemEvents_10_Event)this.mailItem).BeforeDelete -= new Outlook.ItemEvents_10_BeforeDeleteEventHandler(this.MailItem_Delete);
                        catch
                    if (value != null && !value.Equals(this.mailItem))
                        this.mailItem = value;                    
                        ((Outlook.ItemEvents_10_Event)this.mailItem).Close += new Outlook.ItemEvents_10_CloseEventHandler(this.MailItem_Close);
                        ((Outlook.ItemEvents_10_Event)this.mailItem).Forward += new Outlook.ItemEvents_10_ForwardEventHandler(this.MailItem_Reply);
                        ((Outlook.ItemEvents_10_Event)this.mailItem).Open += new Outlook.ItemEvents_10_OpenEventHandler(this.MailItem_Open);
                        ((Outlook.ItemEvents_10_Event)this.mailItem).PropertyChange += new Outlook.ItemEvents_10_PropertyChangeEventHandler(this.MailItem_PropertyChange);
                        ((Outlook.ItemEvents_10_Event)this.mailItem).Reply += new Outlook.ItemEvents_10_ReplyEventHandler(this.MailItem_Reply);
                        ((Outlook.ItemEvents_10_Event)this.mailItem).ReplyAll += new Outlook.ItemEvents_10_ReplyAllEventHandler(this.MailItem_Reply);
                        ((Outlook.ItemEvents_10_Event)this.mailItem).Send += new Outlook.ItemEvents_10_SendEventHandler(this.MailItem_Send);
                        ((Outlook.ItemEvents_10_Event)this.mailItem).Unload += new Outlook.ItemEvents_10_UnloadEventHandler(this.MailItem_Unload);
                        ((Outlook.ItemEvents_10_Event)this.mailItem).BeforeDelete += new Outlook.ItemEvents_10_BeforeDeleteEventHandler(this.MailItem_Delete);
            }I have an Outlook AddIn which code is below:/// <summary>
    /// Mutex to control loading and new mails
    /// </summary>
    private System.Threading.Mutex mutexLoad = new System.Threading.Mutex();
    /// <summary>
    /// Gets or sets the mail item list
    /// </summary>
    internal List<MailItemContainer> MailItemList
        get;
        set;
    /// <summary>
    /// Checks the list to see if the item has already been registered.
    /// </summary>
    /// <param name="findItem">The <typeparamref name="Outlook.MailItem">MailItem</typeparamref> to find.</param>
    /// <returns><c>True</c> if found, <c>False</c> if not</returns>
    public bool ContainsMailItem(Outlook.MailItem findItem)
        var found = false;
        foreach (var item in this.MailItemList)
            found = item.MailItem != null && item.MailItem.Equals(findItem);
            try
                found = found || (!string.IsNullOrWhiteSpace(item.MailItem.EntryID) && item.MailItem.EntryID.Equals(findItem.EntryID));
            catch
            if (found)
                break;
        return found;
    /// <summary>
    /// Finds the container for the mailitem in the list if the item has already been registered.
    /// </summary>
    /// <param name="findItem">The <typeparamref name="Outlook.MailItem">MailItem</typeparamref> to find.</param>
    /// <returns>The MailItemContainer object that is used to extend the mail item</returns>
    public MailItemContainer FindMailItem(Outlook.MailItem findItem)
        MailItemContainer mailContainer = null;
        foreach (var item in this.MailItemList)
            if (item.MailItem != null)
                if (item.MailItem.Equals(findItem))
                    mailContainer = item;
                else
                    try
                        if (!string.IsNullOrWhiteSpace(item.MailItem.EntryID) && item.MailItem.EntryID.Equals(findItem.EntryID))
                            mailContainer = item;
                    catch
                if (mailContainer != null)
                    break;
        return mailContainer;
    /// <summary>
    /// This will attempt to get the default values for the user and bind to the outlook events.
    /// </summary>
    private void InitialiseAddIn()
        var success = DA.SQLDataSource.IsDBConnectionValid();
        if (success)
            Utility.UserUpdated -= new EventHandler(this.Utility_UserUpdated);
            try
                Utility.User = DA.User.GetUserByUserId(Utility.UserId.GetValueOrDefault());
                success = Utility.User != null;
                if (success)
                    Utility.Department = Utility.User.Department;
                    success = Utility.Department != null;
                    if (success)
                        this.MailItemList = new List<MailItemContainer>();
                        // Add a handler when an email item is opened
                        this.Application.ItemLoad += new Outlook.ApplicationEvents_11_ItemLoadEventHandler(this.ThisApplication_ItemLoad);
                        // Add a handler when an email item is new
                        this.Application.NewMailEx += new Outlook.ApplicationEvents_11_NewMailExEventHandler(this.ThisApplication_NewMailEx);
                        // Add a handler when the selection changes
                        this.Application.ActiveExplorer().SelectionChange += new Outlook.ExplorerEvents_10_SelectionChangeEventHandler(this.ThisAddIn_SelectionChange);
                    else
                        MessageBox.Show("Your department has not been selected. Click on the \"Call Centre\" option on the menu and press the \"Settings\" button to select your department.", "PSP Call Centre Tracker");
                else
                    MessageBox.Show("Your user profile has not been set up yet. Click on the \"Call Centre\" option on the menu and press the \"Settings\" button to select your department and create a profile.", "PSP Call Centre Tracker");
            catch
                MessageBox.Show("Call Centre Tracker was unable to communicate with active directory.\nTracking will not be enabled for this Outlook session.", "PSP Call Centre Tracker");
        else
            MessageBox.Show("Call Centre Tracker was unable to communicate with database.\nTracking will not be enabled for this Outlook session.", "PSP Call Centre Tracker");
        Utility.UserUpdated += new EventHandler(this.Utility_UserUpdated);
    /// <summary>
    /// The event that fires when the add-in is loaded
    /// </summary>
    /// <param name="sender">The object that fired the event</param>
    /// <param name="e">The evetn args</param>
    private void TrackingAddIn_Startup(object sender, System.EventArgs e)
        this.InitialiseAddIn();
    /// <summary>
    /// This fires when the add-in is closed
    /// </summary>
    /// <param name="sender">The ibject that fired the event</param>
    /// <param name="e">The event args</param>
    private void TrackingAddIn_Shutdown(object sender, System.EventArgs e)
        this.Application = null;
    /// <summary>
    /// Handles the event when the User has been changed.
    /// </summary>
    /// <param name="sender">The object that raised the event</param>
    /// <param name="e">The default event arguments</param>
    private void Utility_UserUpdated(object sender, EventArgs e)
        this.InitialiseAddIn();
    /// <summary>
    /// This is the application_ item load.
    /// </summary>
    /// <param name="item">The mail item.</param>
    private void ThisApplication_ItemLoad(object item)
        if (item is Microsoft.Office.Interop.Outlook.MailItem)
            Outlook.MailItem mailItem = item as Outlook.MailItem;
            try
                this.mutexLoad.WaitOne();
                if (mailItem != null && !this.ContainsMailItem(mailItem))
                    this.MailItemList.Add(new MailItemContainer(mailItem, this));
            finally
                this.mutexLoad.ReleaseMutex();
    /// <summary>
    /// Thises the application_ new mail ex.
    /// </summary>
    /// <param name="entryIDCollection">The entry ID collection.</param>
    private void ThisApplication_NewMailEx(string entryIDCollection)
        var idCollection = entryIDCollection.Split(',');
        var sentFolder = this.Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail);
        var inboxFolder = this.Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
        foreach (var entryId in idCollection)
            var item = this.Application.Session.GetItemFromID(entryId);
            if (item is Outlook.MailItem)
                var mailItem = item as Outlook.MailItem;
                var parentFolder = Utility.GetTopLevelFolder(mailItem);
                if (parentFolder != null && parentFolder.EntryID == inboxFolder.EntryID)
                    var referenceCode = Utility.MatchSubjectReference(mailItem.Subject);
                    try
                        this.mutexLoad.WaitOne();
                        var containerItem = this.FindMailItem(mailItem);
                        if (!DA.TrackingItem.ExistsByReferenceCode(referenceCode, mailItem.ReceivedTime))
                            if (containerItem == null)
                                containerItem = new MailItemContainer(mailItem, this);
                                this.MailItemList.Add(containerItem);
                            containerItem.IsNewItem = true;
                            containerItem.TrackingItem = Utility.RegisterMailIncoming(item as Outlook.MailItem, this.Application);
                    finally
                        this.mutexLoad.ReleaseMutex();
        ////Insert into Detail file and get the refence number
        ////MailInsert("Incoming");
    /// <summary>
    /// This action fires when the selection changes
    /// </summary>
    private void ThisAddIn_SelectionChange()
        var unread = this.MailItemList.Where(d => d.IsNewItem && d.MailItem.UnRead).ToList();
        foreach (var item in unread)
            item.DoUnReadCheck();

  • Is there a way to access my voicemail without having to enter my password every time?

    Is there a way to access my voicemail without having to enter my password every time?  Or is the only way to check emails is to click on the voicemail icon and enter password?

    For that, you would probably have to create a contact and place it on your homescreen. I don't know if there are any settings where you can have the voicemail icon automatically call, although there may be. You can name the contact you place on your homescreen "call voicemail" or "voicemail", though.
    Edit: keep in mind by setting up your voicemail number like I had previously described, anyone with access to your phone will now have access to your voicemails. If you are like me, though, that won't bother you.

  • How can I reset my access passcode w/o having ever synced the device before? I don't remember it and now the ipad is "disabled" from too many failed attempts.

    How can I reset my access passcode without having ever synced the device before? I don't remember my passcode and now the ipad is "disabled" from too many failed attempts.

    You will need to reset the iPad back to factory defaults : iOS: Forgot passcode or device disabled
    What iTunes purchases that you can redownload for free from the stores will show in the Purchased tabs in the App Store and iTunes Store apps, and the Purchased tab in the iBookstore in the iBooks app

  • Is there a wat to bypass a iphone 4 password lock, not the simple 4 digit passcode lock without having to resotre the iphone?

    Is there a way to bypass a iPhone 4 password lock, not the simple 4 digit pass code lock without having to restore the iPhone? My friend owns her phone but upgraded to the iPhone 5s and wants to get her baby photos and videos off the old phone.
    She can provide ownership of the device but is very worried that she cannot access the phone without a restore as she cannot remember her password for the old phone. Can she go into an Apple store and can they do something to bypass the password when she proves ownership the device to them?
    Any help is greatly appreciated

    No. They can't bypass the lock screen password. All they could do would be restore the phone, which will wipe it.

  • Can I view a single page of a document, previously created in Microsoft Word, in its entirety on the screen (ipad or iphone) without having to drag the page, i.e. one page per screen?

    Looking to choose an app for viewing word documents, but need to be able to view a complete page per screen (preferably full screen) without having to 'nudge' the screen 'up' to view the bottom of the page.
    Will Pages do the job?

    Not exactly.
    You will find yourself nudging the page up or down a bit. Earlier versions of iOS Pages allowed "full page view" but that really wasn't full page either. You can squeeze the view to fit, but as soon as you release it, the document springs back to normal size - it is only about a line off from what you are looking for.
    An alternative would be to view a Pages Document as a PDF and view the PDF in an app such as GoodReader - there you can see both the top and bottom edges of each page. There are many other PDF viewers available in the App Store.
    Hope this helps.

  • Can I transfer my entire playlist from itunes to my ipad without having to recreate the playlist again?

    Can I transfer my entire playlist from itunes to my ipad without having to recreate the playlist again?

    Tammiev36 wrote:
    It is not setting up my playlist it is just auto filling from the playlist
    I do not understand.  Is it filling a playlist from the songs in a different playlist?

  • HT3819 Can I authorize mulitple apple ids on the same device so that what is purchased on either account will be loaded in both devices without having to use the same ID?

    Can I authorize mulitple apple ids on the same device so that what is purchased on either account will be loaded in both devices without having to use the same ID?
    My wife has a laptop and an iphone 4s, I have a laptop and and iphone 4s, our two sons have our old iphone 3s, we have an old laptop for our sons to use.  Our old iphones for our sons are deactivated as phones - so they are used as i-touches for songs, pictures and aps.  I want to use icloud (which I'm new to) to hopefully have all four iphones and all three computers stay synced with at least music - if not aps and pictures.  My wife has an apple ID and I have one.  I'd like to authorize all three laptops for both apple IDs so that we will still have our own accounts, but everything either of us buys will be automatically loaded into all three laptops and all four iphones.  Can this be done?
    Thanks,
    sstultzcostello

    Each person in your home can have their own Apple ID provided it is tied the their own separate email address.
    iTunes permits up to five authorized computers connected to a single Apple ID: iTunes Store- About authorization and deauthorization.
    For this all to work well, however, each user in your household should have a separate user account on the computer they commonly use.

  • How do i transfer a single CD on to my back up hard drive without having to transfer the whole itunes library?

    How do I transfer a single CD recently loaded on to itunes to my hard drive without having to transfer the whole itunes library?

    Copy just those files. But that isn't ideal. You really want a differential system that efficiently updates the backup set with all new and updated files.  See Backup your iTunes for Windows library with SyncToy for a suggested strategy.
    tt2

  • I would like to play music from my iPhone 5 on the speakers attached to my computer at work. I don't have the authority to download itunes onto the computer. Can I play the music from the phone without having itunes on the computer?

    I would like to play music from my iPhone 5 on the speakers attached to my computer at work. I don't have the authority to download itunes onto the computer. Can I play the music from the phone without having itunes on the computer?

    KiltedTim wrote:
    The cable would be much cheaper than the Scotch!
    But much less fun or satisfying.
    Signed,
    An IT guy 

  • How do I set up a .pdf form to save filled data without having to print the form?

    How do I set up a .pdf form to save filled data without having to print the form?  I have provided my clients a lifecycle .pdf form they can use to record data for unique client meetings.  They want the ability to save their completed data whenever they use the form under a unique file name.  I've told them the only way I know how to do this is to print the completed form as a .pdf document and then save it. 
    Is their a way to save the data to a unique file name without printing the filled form?
    Is there a way to reset the form with blank fields after saving? or to add a clear fields button?
    Thanks.

    If you reader extend  a pdf using livecycle reader extensions then you can save the filled in data - this is true if you are using Adobe reader to view the PDF's. If you open it in Acrobat then the functionality is already there.

Maybe you are looking for