Can I connect to SQL * more as SYS after connecting as a user and then run a GRANT?

Oracle 11 g 2

Linux RHEL 6.3

SQL * Plus 11.2.0.2 on Windows 7

------------------------------------------------

I am running a script SQL through SQL * more connected as "DOE, JOHN".

In the SQL script, I need to connect as SYS to make a GRANT EXECUTE on a SYS package (e.g. GRANT EXECUTE ON DBMS_CRYPTO to JOHN;).

But it fails with the following error:


GRANT EXECUTE ON TO JOHN DBMS_CRYPTO
*
ERROR on line 1:
ORA-01917: user or role 'JOHN' does not exist

But of course, 'JOHN' are.  The rest of the SQL script is running "DOE, JOHN" without any problem.

The code segment of SQL script in question is:

connect sys/password as sysdba
GRANT EXECUTE ON DBMS_CRYPTO TO ROYSECITYDATA;  <-fails here
to connect/DOE

Please advise on what my being the issue.

tx103108 wrote:

I connect to a remote database.  All dbs distance have the same instance name as they are all images.  I see where you're going (I think).  Should I try

I'll try to connect sys/password@MYDB

Sounds like a plan... (the instance_name returned with what you expected? or something else?)

Tags: Database

Similar Questions

  • How can I connect my nokia 6600 and a laptop via bluetooth

    How can I connect my nokia 6600 and a laptop via bluetooth to send information?

    This is so complicated. I have this suite of pc to 6600 installed in my laptop and I can't connect it.

    Can someone help me?

    Hello

    have you tried connecting your phone via bluetooth toshiba Device Manager?
    Device Manager is operating the BT device automatically then maybe the pc suite does not work.

    Welcome them

  • Can I connect a Bluetooth monitor and bike cadence monitor simultaneously for 5 s iPhone

    Can I connect a Bluetooth monitor and bike cadence monitor simultaneously for 5 s (iOS 9.2) iPhone?

    Hi thepaulbarlow,

    Welcome to the communities of Apple Support! I'm sure we can help you with your question. In general, the iPhone should be capable of supporting multiple Bluetooth devices, as described in the following article:

    Manage the health data from multiple sources on your iPod touch, iPhone, or Apple Watch - Apple Support

    If you have any questions for matching one or the other device, you can find information and the steps in the following article useful:

    Get help to connect a secondary Bluetooth device with your iPhone, iPad or iPod touch - Apple Support

    See you soon

  • I can not connect on my user profile who is also the administrator. I get a message that the password is incorrect, however I have not changed the password. s not now what it was

    I can't connect to my user profile who is also the administrator.  I get a message that the password is incorrect, however I have not changed the password. My 11 year old niece used the pc last (play online games) and I was informed that it was a download/installation, but do not now what it was. I can't download or update any information on the pc that this requires the admin password. I am currently using the guest account, that does not give me access to all programs and the pc is running a little slower than ususal. Your help with this questions is appreciated.

    the operating system is Windows Vista Home Basic 32-bit.

    Hello

    If your niece has changed the password, or you have a corrupted system, this Information Microsoft will help you.

    Here are the different circumstances where it can help you.

    You will need to borrow a Microsoft DVD from a friend, Recovery DVD a manufacturer without these special work options available.

    If you are unable to connect to Windows 7 or Windows Vista, you can use the Windows Vista System Restore feature, or the Windows 7 system restore feature.

    You may be unable to connect to Windows Vista or Windows 7 in the following scenarios:

    • Scenario 1: You recently set a new password for the protected administrator account. However, you don't remember the password.
    • Scenario 2: You type the correct password. However, Windows Vista or Windows 7 does not accept the password because the system is damaged.
    • Scenario 3: You delete a protected administrator account. Now, you cannot connect to another administrator account.
    • Scenario 4: You change an administrator account protected with a standard user account. Now, you cannot connect to another administrator account.

    And as you say that your niece may have downloaded something, that something could have been malicious, that can cause problems with password.

    Download, updatre and scan your system with Malwarebytes AntiMalware in Mode safe mode with networking:

    http://www.Malwarebytes.org/products/malwarebytes_free

    And here's how to go in Safe Mode options; Select safe mode with networking from the list of options:

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    See you soon.

  • I can't connect to my user account name, and it does not accept my password.

    I can't connect to my user account name, and it does not accept my password.

    Hi Jillgatewood,

    You did a recovery password file? You can use it to reset your password. Unfortunately if you have lost or forgotten your password, you will need to consult this article KB http://support.microsoft.com/kb/189126/en-gb

  • I can't connect to my user profile. I am the administrator and cannot connect

    original title: problems with user profile

    I can't connect to my user profile. I am the administrator and can not connect at all.  password has not been changed.

    I can't connect to my user profile. I am the administrator and can not connect at all.  password has not been changed.

    What is the FULL error message?
    This one? .... Cannot load the user profile and the user profile service does not log

    If Yes, read on...
    You have another admin account , you can connect?
    If so, please do and do a system restore, if no help, run the Microsoft Support tutorial below.

    If you don't have another admin account, go into safe mode.
    Here's how to get safe mode:
    Shut down your computer > turn it back on and immediately and repeatedly tab key F8 until you see a black and white screen. The top/down arrow and selectSafe Mode with network.

    In the window of logon in safe mode...
    1 can connect to your account administrator in safe mode?
    If so, do a restore system first, if no help, run the Microsoft tutorial support listed below.

    2. If you can't log into your own account, you see another admin next to your account in the logon screen?
    If you do, that one is the built-in Administrator account. By default, there is no password. Connect to it and new do a first system restore, if not help, run the Microsoft tutorial support listed below.

    If you are able to log on in safe mode, do a system restore. Choose a date when you were able to log in NORMAL MODE as your restore point.
    How to do system restore: http://www.vistax64.com/tutorials/76905-system-restore-how.html

    Tutorial from Microsoft support :
    http://support.Microsoft.com/kb/947215
    There are several methods,go through one by one.
    Method 3 has a "fix it for me" application
    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • I can't connect to creative cloud, and so I can not install the Photoshop account I paid for.  I changed my ID adobe several times, but I can't connect to creative cloud, he always says I have the wrong password.  Help, please. Thank U

    I can't connect to creative cloud, and so I can not install the Photoshop account I paid for.  I changed my ID adobe several times, but I can't connect to creative cloud, he always says I have the wrong password.  Help, please. Thank U

    Hello

    Please contact the support.

    Contact the customer service

    Concerning

  • Can I use CC on more than two devices (I have 3 Mac and 1 PC in the House) if I deactivate those that I do not?

    Can I use CC on more than two devices (I have 3 Mac and 1 PC in the House) if I deactivate those that I do not?

    Thank you

    Hi ingrid,.

    You can use Adobe Creative cloud on 2 machines.

    If you disconnect from the creative cloud on 1 machine which you use so you can activate it on another computer.

    Please see the help document:

    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

    Kind regards

    Sheena

  • WorkflowCA: [SYS] ORA-01017: name of user and password invalid. connection refused

    Hello

    Please help me, I'm getting below error when I set up the wizard of Configuration Workflow 2.6.4.0.0 - Linux


    Workflow Configuration Assistant 2.6.4.0.0 - Linux
    WFCA version: WorkflowCA.java 26.106 29/06/2005-04:33
    WorkflowCA:
    WorkflowCA: Configuration of current workflow...
    WorkflowCA: Kills Feb 16 21:08:57 GMT + 05:30 2010
    WorkflowCA:
    WorkflowCA: Screen-1024, height-768 screen width-
    WorkflowCA:
    WorkflowCA: Graphical User Interface Mode
    WorkflowCA:
    WorkflowCA:
    WorkflowCA: Start to test the connection, which takes less than 3 minutes.
    WorkflowCA:
    WorkflowCA: Test for SYS account login
    WorkflowCA: [SYS] ORA-01017: name of user and password invalid. connection refused

    WorkflowCA: Unable to connect to jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=abc.d.com)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=PROD)))
    java.lang.Exception: invalid connection
    at oracle.apps.fnd.wf.install.db.WorkflowCA.createJDBCConnection(WorkflowCA.java:4806)
    at oracle.apps.fnd.wf.install.db.WorkflowCA.createSYSConnection(WorkflowCA.java:4902)
    at oracle.apps.fnd.wf.install.db.WorkflowCA.schemaCreation(WorkflowCA.java:1039)
    at oracle.apps.fnd.wf.install.db.WfFrame.actionPerformed(WfFrame.java:2051)
    at oracle.ewt.button.PushButton.processActionEvent (unknown Source)
    at oracle.ewt.lwAWT.LWButton.processActionEvent (unknown Source)
    at oracle.ewt.button.PushButton.processEventImpl (unknown Source)
    at oracle.ewt.lwAWT.LWComponent.redispatchEvent (unknown Source)
    at oracle.ewt.lwAWT.LWComponent.processEvent (unknown Source)
    at oracle.ewt.button.PushButton.activate (unknown Source)
    at oracle.ewt.lwAWT.AbstractButton.processMouseReleased (unknown Source)
    at oracle.ewt.lwAWT.AbstractButton.processMouseEvent (unknown Source)
    at java.awt.Component.processEvent(Component.java:5266)
    at java.awt.Container.processEvent(Container.java:1966)
    at oracle.ewt.lwAWT.LWComponent.processEventImpl (unknown Source)
    at oracle.ewt.button.PushButton.processEventImpl (unknown Source)
    at oracle.ewt.lwAWT.LWComponent.redispatchEvent (unknown Source)
    at oracle.ewt.lwAWT.LWComponent.processEvent (unknown Source)
    at java.awt.Component.dispatchEventImpl(Component.java:3968)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1778)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    WorkflowCA: Kills Feb 16 21:09:19 GMT + 05:30 2010
    WorkflowCA: java.lang.Exception: invalid connection (0)
    WorkflowCA: end...

    The respect of
    Rerry

    Hello

    OH, / as sysdba dba using password file

    How to check is there any file password and where?

    already mentioned in document valid

    $ls - ltr $ORACLE_HOME/dbs/orpw *.

    After the release

    Please check and come back.

    Concerning

  • When playing xbox live and someone turns on the laptop he loses the connection to the server and then resets modem

    when im playing left 4 dead 2 versus and kids turns to the top turn of the page to play counterstrike he says: interruption of the connection to the server and then resets my modem or router

    I had the Charter to come out, they ran the new line and I always have problem help me please

    Hello

    ·         What operating system do you use?

    Step 1:

    I suggest you to update the firmware of the router on the manufacturer's Web site and verify that it helps. For more information on how router update contact your router manufacturer's support site.

    Step 2:

    Try to assign the static IP address for an Xbox 360 and the laptop and check if it helps.

    To assign a static IP address for your laptop:

    one) click Start > Control Panel > network and Internet > network and sharing Center and click on change adapter settings.

    (b) select your network adapter. (if you have more than one list) Right-click on the adapter and choose 'Properties' from the list.

    (c) under "this connection uses the following items," click once on "Internet Protocol Version 4 (TCP/IPv4) to select it and then click on the button 'Properties'.

    (d) click the radio button for "use the following IP address:" enter the static IP address, you want to use in the IP address box.

    (e) press "Tab" when you are finished and that the "Subnet mask" value should automatically populate with the correct value.

    (f) Finally, you will need to enter the IP address of your default gateway and the IP addresses of your favorite servers and auxiliary DNS.

    (g) the default gateway is the IP address of your router. The DNS addresses are usually provided to you by your ISP.

    (h) click on 'OK' to save your changes, and then click 'OK' again on the local area network connection properties window. You have now assigned to your computer a static IP address in Windows

    To assign a static IP for Xbox:

    (a) turn on the console and press "Guide" on the controller to bring up the quick menu.

    (b) go to the 'Settings' tab, then open "System Settings." The dashboard opens and the 'System settings' menu.

    (c) select 'Network settings' in the menu new. Another list of menu options is displayed. Choose "Configure network." This opens the network configuration menu, where you can set a static IP address. Note your IP address, subnet mask and gateway.

    (d) change your settings 'IP' to 'Manual' instead of 'automatic '. This will allow you to manually select your IP address and other settings. It can also erase your current settings, that's why you need to write.

    (e) change the last three digits of the IP address. Enter the same numbers for the subnet mask and the gateway that you saved in step 3. Press 'B' to exit from the menu and save the changes

  • If I work for an hour or more first the cursor starts to behave correctly and then the program gets stucked

    my pc is stuck. I doubt that the fan provided within the system does not work. The problem is if I work for an hour or more first the cursor starts to behave correctly and then the program gets stucked and the pc needs a forced closure. And where the driver is placed at the bottom is very hot.

    Original title: Stucks

    Hello

    In addition to becoming the fan if it does not, if it is a desktop computer, clean the inside with a can of compressed air.

    If it's a laptop, check the vents for hair, dust, etc. and do not use a laptop when it is based on material surfaces: bedspreads, blankets, etc.

    If the problem persists, if this is a laptop (as you say only pc, no office or laptop), take it to a local computer and reliable repair shop and get them to open and clean the dust inside...

    Here is an interesting discussion about the reasons of your problem (IF your laptop):

    http://PC-trickandsolution.blogspot.com.au/2011/07/fix-laptop-overheating-shutdown-problem.html

    NB: > however 9 out of 10 cases of overheating are caused by obstruction of the air flow.

    See you soon.

  • How can I get the installer for my application check the operating system type and then install the correct driver type?

    I have a request that I wrote and have been use and distribute for awhile. The installer I created for this application is an additional installer to install a driver for the USB connection. The USB connection is actually a virtual COM Port. The problem is that the people who drafted modified driver setup the installation program itself. They used to have an installer that would check for 32-bit or 64-bit OS and then install the appropriate driver.

    Now, they have two distinct installation programs: one for the other for 32-bit and 64-bit. They let the user know their OS and install the appropriate driver. I'd rather not have to rely on my users to do. From what I've seen the creater Installer provides that an executable to be run after the application installs.

    Is it possible to have the installer of the application, check the type of OS and then run the correct executable file after installing my application? I think that I could write an Installer 'wrapper' that checks the type of operating system then executes the correct Installer. But I expect a better solution.

    Thank you
    Joe

    So, I make it work!

    The trick is to find a way to determine what type of OS you are using. The method I used was, indeed, read the environment variable. A buddy of mine sent me this link:

    http://StackOverflow.com/questions/2401756/how-to-find-if-the-machine-is-32bit-or-64bit One of the phrases he bibliography the Processor_Architecture environment variable.

    It seemed like a reasonable idea. So I started to research how read LV it environment variables turns out, you do it by reading a registry key. There is an example of LV on how to read a registry key. But I did not know where they are in the registry. So, I searched the Processor_Architecture registry. I found it in HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment.

    According to the article in the link, this value will already be x 86 for a 32 bit OS, or something with 64 inside. I just check the response for x 86 string. If it is, I just run the x 86 version of the driver Installer. Otherwise, I run the x 64 version.

    It turned out to be as simple as that.

    I hope this helps someone.

    Joe

  • where can I find my document saved that I worked from an e-mail, and then saved using backup on the Word icon?

    where can I find my document saved that I worked from an e-mail, and then saved using backup on the Word icon?

    Here are two things to try:
     
    The file is saved in the Temporary Internet Files folder. To locate the path, open the attachment to new then, and now Alt, press F, and to open the Save as window. In the save window slot, right-click on another file in the list, and then click Properties. On the general tab, copy the full path to the location. Then, open a Windows Explorer window and paste the path copied into the address field. This is where the edited file was saved.
     
    Since Christmas

    Copy this line:

    Search-MS:DisplayName=temp%20Files&crumb=ext%3AZZZ*&crumb=location:shell:cache%5CContent.IE5

    Now press Windows-E, Ctrl-Alt-D-V

    ZZZ change to the extension of the file you edited, and then press enter.

    This should show all the recently saved files in temporary Internet files with this extension. Good luck!

    PS Si the file is, please copy in your documents folder before anything else. Open the copy to work.

  • Direct mail disconnects after sending an e-mail and then connect without a restar the computer what is the problem

    Direct mail disconnects after sending an e-mail and then will reconnect until the computer is restared why?

    Hello

    ·        Is it limited only to live mail?

    ·        It's a Windows Live Mail client?

    You did changes to the computer before the show?

    Check the status of the question in the clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: after a repair, be sure to configure the computer to start as usual as mentioned in step 7 in the above article.

    You can also post your question in the forum of Live Mail for assistance:

    Windows Live Mail Forum

    http://www.windowslivehelp.com/forums.aspx?ProductID=15

  • I can't find application webcam on my PC after formattting, but the hardware and the software is in the Device Manager

    I can't find application webcam on my PC after formattting, but the hardware and the software is in the Device Manager

    I can't find application webcam on my PC after formattting, but the hardware and the software is in the Device Manager

    You need to reinstall the driver of web cam and related demand.

Maybe you are looking for

  • CPU fan broke on Satellite A215-S7444

    Hello My Satellite A215-S7444 CPU fan stopped working which causes my CPU become very hot. After 5 minutes of idle my laptop turns off which makes it almost useless to my laptop.After reading a few forums, I decided to disassemble my laptop to check

  • 6700 WIRELESS SCANNING

    Printer is set up wireless and print very well.  I can't scan to she and I watched so many options that I do not know what way to go today.  I need a simple solution. :-)  I tried to install and reinstall using the USB, and the configuration and rest

  • Including a carriage return when you write in a single register using Modbus

    I use a NI USB to RS - 232 to connect with a Watlow EZ-Zone PM controller using Modbus Protocol and will have bad to write a value (set temperature) to the controller.  I got when reading registry values, so I know that my settings are correct.  I al

  • Recovery installation problem

    Hello I have a hard time with some Acer tech... I change HARD drive because the last of them have crash, I said tech acer how can I recover my windows, they told me buy recovery DVDs, I buy but it is not possible to install the new dident hdd being t

  • Backup with Vista

    Why is - this save you photos to a flash can not drive in Vista?