Can't access User type using Synonyms/Grant

Hi,
We have a Stored Proc and it accepts a usertype. We are sending info from Java using JDBC and trying to get the results back. If I use the owner of the schema for connection it works fine. If I use a different schema user which has synonyms and grant access to the storeproc and userobject program does not work. Here is the stripped down code. If any one faced this problem please respond to [email protected].
In the program I used QStore_user as user. QStore_user has Synonyms for USERTABLE, GET_NEXT_ID. Owner of these objects is QSTORE_OWNER. QSTORE_OWNER provided Grant 'Execute' to both of these for QSTORE_USER. If I change the java code to use QSTORE_OWNER it works fine.
Java Sample Program
====================
* This sample can be used to check the JDBC installation.
* Just run it and provide the connect information.
// You need to import the java.sql package to use JDBC
import java.sql.*;
import oracle.sql.*;
import oracle.jdbc.driver.*;
import oracle.jdbc.dbaccess.*;
// We import java.io to be able to read from the command line
import java.io.*;
class JdbcArrayCheckup
public static void main(String args[])
throws SQLException, IOException
// Load the Oracle JDBC driver
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
System.out.print("Connecting to the database...");
System.out.flush();
System.out.println("Connecting...");
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@DKING-W2K:1521:WASDB", "qstore_user", "qstore_user");
System.out.println("connected.");
Object[] elements = {"Sasi","Mahesh","Deepak"};
String currentName = "Sasi";
ArrayDescriptor arrayDesc = ArrayDescriptor.createDescriptor("USERTABLE", conn);
     System.out.println("Got Array Descriptor");
     oracle.sql.ARRAY inp_array = new oracle.sql.ARRAY(arrayDesc,conn,elements);
     System.out.println("inp_array = " + inp_array);
// Create a Callable statement
     CallableStatement callStmt = conn.prepareCall("{? = call GET_NEXT_ID(?,?)}");
     System.out.println("created callable statement");
     // Call setArray to set input array
     callStmt.setArray(2,inp_array);
     System.out.println("set Array done for User ID array");
     callStmt.setString(3,currentName);
     System.out.println("set String done for Policy ID");
     callStmt.registerOutParameter(1,Types.VARCHAR);
     System.out.println("registered out Parameters");
     // Execute the query
     ResultSet rset = callStmt.executeQuery();
     System.out.println("executed query");
     String userID = callStmt.getString(1);
     System.out.println("after getting next assigned ID = " + userID);
     // close the result set, the statement and connect
rset.close();
callStmt.close();
conn.close();
System.out.println("Your JDBC installation is correct.");
Database Temp Function
======================
function GET_NEXT_ID (input_userid_list USERTABLE,
     input_policy_id varchar2
return VARCHAR2
     is
     counter NUMBER;
     return_user_id varchar2(30);
     /* UserTable is defined as follows -
     create or replace type usertable as table of varchar2(30);
     BEGIN
          for counter in 1..input_userid_list.COUNT LOOP
               dbms_output.put_line('tempuser id = ' || input_userid_list(counter) );
          end loop;
          dbms_output.put_line('out of the loop');
          return_user_id := 'Mahesh';
          return return_user_id;
END GET_NEXT_ID;
DataType
===========
create or replace type usertable as table of varchar2(30)
Error
=======
Connecting to the database...Connecting...
connected.
Exception in thread "main" java.sql.SQLException: ORA-21700: object does not exi
st or is marked for delete
ORA-06512: at "SYS.DBMS_PICKLER", line 16
ORA-06512: at "SYS.DBMS_PICKLER", line 52
ORA-06512: at line 1
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java, Compiled Code)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java, Compiled Cod
e)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:822
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
va, Compiled Code)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
a:1371)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1900)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
edStatement.java:363)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
ement.java:407)
at oracle.jdbc.oracore.OracleTypeADT.initMetadata(OracleTypeADT.java:420
at oracle.jdbc.oracore.OracleTypeADT.init(OracleTypeADT.java:343)
at oracle.sql.ArrayDescriptor.initPickler(ArrayDescriptor.java:1002)
at oracle.sql.ArrayDescriptor.<init>(ArrayDescriptor.java:132)
at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:97)
at JdbcArrayCheckup.main(JdbcArrayCheckup.java:36)
press any key to exit...
If you do not want this console to remain after the VM exits,
clear the "Keep Executed App Console" setting in your Visual Cafe
environment options
Other INFo
===========
Running select * from all_synonyms where table_owner = 'QSTORE_OWNER' under QSTORE_USER results in
QSTORE_USER     USERTABLE     QSTORE_OWNER     USERTABLE     
QSTORE_USER     GET_NEXT_ID     QSTORE_OWNER     GET_NEXT_ID     
select * from all_tab_privs where table_schema = 'QSTORE_OWNER' under QSTORE_OWNER results in
QSTORE_OWNER     QSTORE_USER     QSTORE_OWNER     GET_NEXT_ID     EXECUTE     NO
QSTORE_OWNER     QSTORE_USER     QSTORE_OWNER     USERTABLE     EXECUTE     NO

Might be possible that the usernmae & password you are using is not working on the route ... make sure that you are using correct username & password .... if not then reset the router so that the password also gets resetted & you can use Admin password without any username ...
Once resetted you need to reconfigure the router ... .& open the port 8080 for remote access ....

Similar Messages

  • Can we access popularity trends using client side script?

    Hi, 
     I have a requirement to show the hit count for my image library's item(s). When ever I am opening an image from the image library, I just wanted to show the hit counts. For this I have created a Number column and updating this column by using CSOM
    when ever hit happens to that particular item. 
    The problem arises here, for visitors ( who has read only permission to the site) I am not able to update the column due to permission issue. Since we all know that we can't elevate the privilege from client side script. And also our design says that we
    can't give the contribute permission to all the users at the library level. How can we update the count at item level even when the visitors are opening an item from the image library? 
    Please help me... 
    Thanks in advance
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

    972454 wrote:
    can we access 11gr2 oracle using 11g r1 OWB Client? NO .. Oracle 11gR2 db is accessible only from OWB11gR2 client
    we have 11g r1 database installed on our machine, and 11g r2 OWB client on other machine.
    Please help. we are unable to connect.
    Sorry this is different from your 1st question.
    For your information OWB11gR2 client can access 11g r1 database
    Regards
    Gaurav

  • Can't access my gmail using the gmail app. States your browser's cookie functionality is turned off. please turn on. How do i do that???

    Can't access my gmail using the gmail app. States your browser's cookie functionality is turned off. please turn on. How do i do that???

    what if I don't want to accept cookies? I didn't have to before I upgraded

  • If I copy a CD (either music or audio) on my Windows based Pc can I access the copy using itunes?

    If i copy a Cd (either music or audio) on my Windows based PC can I access the copy using itunes.  I have a ipod Nano, 7th generation.

    You should use iTunes to "rip" (encode) the songs directly into your iTunes library from the CDs.  This article provides a good description of how that is done using iTunes.
    http://www.macworld.com/article/1156861/howto_rip_cds.html
    If you use some other program to encode the content on those CDs, you can add any audio files that are in a format that iTunes can play (such as MP3 and AAC) to your iTunes library.  "Windows Media" files are not playable by iTunes, but the Windows version of iTunes can convert them while importing (as long as the files do not use DRM).

  • I just installed Adobe InDesign CC 2014 and now I can't scale objects/type using Command+Shift Key. Has anyone else had this problem and if so, any solution?

    I just installed Adobe InDesign CC 2014 and now I can't scale objects/type using Command+Shift Key. Has anyone else had this problem and if so, any solution?

    There is a conflict with third party software or your system keyboard shortcuts. Lately, there have been many postings about conflicts with Chrome extensions so check there first.
    It's not a new problem. I wrote about it on InDesignSecrets.com in 2006:
    The Missing Keystrokes Mystery | InDesignSecrets

  • HT5312 I can not access purchase anything using my Apple ID because I forget my security question to verify that it's me and forgot my password to my rescue email up change my security question. What do I do?

    I can not access purchase anything using my Apple ID because I forget my security question to verify that it's me and forgot my password to my rescue email up change my security question. What do I do?

    You need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (105875)

  • Can't access Users & Groups in System Preferences :(

    I can't access Users & Groups in System Preferences please help thanks

    Check the following:
    First, do you see the "User and Group" icon?
    If not, open the "presentation" menu and look under the "personalize" option to see if the icon is uncheck.
    Second, try to set a new account and see if you can access it from that account.
    Repair disk permission

  • IOS4 issue on 3GS-can't access pictures or use camera!

    I updated my 3GS with the iOS 4 software as soon as it was available. I did all the things Apple adviced me to do prior to the update- such as transfer bought items and backup my iphone.
    After updating the 3GS with iOS 4 everything seemed to be going well, except for 2 things.....I can't start the camera and I can't reach my pictures.......when I click on either- the iphone starts connecting to the picture library, but after 4-5 secs the program shuts down and I'm back in home-mode!
    I've tried to restore from factory settings but the same thing remains (and restore with previous saved security backup)...can't access pictures or use the camera.
    Although if I restore and set up as "new iphone" instead of backing up previous settings and media everything works! Camera works and I can enter picture area (although off course it is empty.....being a new iphone)
    So there seems to have been a problem with the backup prior to the iOS4 update.....
    Funny thing is that when I have the iphone connected to the pc and I look at iTunes....there is 1.65 GB of pictures on my iphone...although I just can't see it.....
    Also in the previous iTunes there used to be a tab for "pictures" just like "movies" "Music" "tv-shows" etc etc......no the "picture" tab is missing.........?!?!
    My wife also has a 3GS and I did the software update on hers.....and there everything works just fine!!
    I have so far come to the conclusion that I could restore to factory settings and start fresh with the option "set up as new iphone", but then I would loose all contacts.....all programs and email settings........which is a pain in the butt.........
    I'd appreciate if someone could help me because the help desk in Norway (Apple resellers) don't have a clew.....
    Anyone?!?
    Thanks in advance

    Someone gave me help in my own thread. They used a Mac program and deleted files, but Im on Windows 7.
    I used iBackupBot 3.0.7
    Just load it up (I had my phone connected). The select a backup and then select 'Browse and export media' button then on the pop up window is a complete list of all my missing media. There is an export button in the top corner.
    I have all my photos and videos back now YAY!
    Thanks all!

  • HT1212 if my ipad wifi only was stolen can the current user restore use using recovery mode?

    if my ipad mini wifi only was stolen can the current user restore use using recovery mode?
    Activation lock was on before it was taken and it is registered to me

    Not if the thief does not have your AppleID and passcode AND you set
    a password to be entered before the screen can be unlocked.

  • As Admin I can't access users home folder - (usershare)

    How can I access user's home folders
    Setting up a new server and copied users home from SBS 2003 but having setup all the users I cannot access the users home folders as Admin at the Server console.
    Obviously I can login to a users PC and upload the files from the but...
    This is something I need to do frequently for users.
    *** Edit ***
    If I enable the disabled "Administrator" account - I am then able to access the folders!
    (I would like to keep Administrator account disabled)
    I added Admin to the Administrators group but that didn't work either!
    I suppose I I work around by enabling administrator account but would much rather allow Admin to have same rights.
    ChrisS

    Hi
    There is a GPO that controls the Redirected Folders.... the default in SBS is to restrict users redirected folders exclusively. That means 'Administrators' can not access the files, only the specified users who own it.
    Ironically i also find this restricts viewing the files on these folders in the proper backup
    To fix this you need to do a number of steps.
    1. First of all remove the tick from the GPO for Exclusive access to redirected folders. When this is done any new users you add, the administrators (security group) will be able to access the folders and files.
    However this will not fix the ones made when the PO exclusivity was enabled. To fix this there are methods on this forum about PowerShell access, and guides, all very complicated... but neded if you can;t access your users accounts. Like you I created 3
    users before noticing this GPO issue.
    I found a way around it.
    User 1 is restricted.
    1. So go to a client computer and log on as User 1
    2. navigate to \\server\redirected folders\User 1
    3. Select the Documents folder and right click, properties, security
    4. Add the Administrators (note the s, administrators, not administrator) and give Full Control
    5. Do the same to the Desktop Folder
    You need to do this for each User that is restricted, as each User that is restricted. Each User owns their Desktop and Documents folder and can therefore apply whatever security they like to it.
    The difference the GPO exclusive makes is whether or not Adminsitrators are added to the security for those folders, you are just manully setting this up
    You do not need to take ownership, do not need to run powershell. Admitedly if your users are remote users, and you are never at the clients with the server, then I agree maybe the Ownership and Powershell route is the way to go, but odds are you will visit
    the client and be able to do this on site s the user is logged in. This is the quickest and Easiest way
    Tris

  • Can you access the internet using wifi only on an iPhone 4?

    How can you access the internet using WiFi only (no service) on an iPhone 4?

    Assuming your connected to wifi - go to safari.

  • How can I access user permission for specific items in Sharepoint 2013 via REST API?

    I want to access user permissions for specific items like lists, documents, folders etc. via the REST API.
    Currently I am hitting the following endpoint:
    http://win-5a8pp4v402g/sharepoint_test/site_1/_api/web/getUserEffectivePermissions('win-5a8pp4v402g\\Sharepoint User 2')
    However the response looks like this:
       "d":
           "GetUserEffectivePermissions":
               "__metadata":
                   "type": "SP.BasePermissions"
               "High": "0",
               "Low": "0"
    I cant understand why high and low are both 0? I have added the user to a specific group. Also this is the same result for each of the users. Another thing to note is that I havent added the "Guest" user in the sharepoint server. So when I hit the endpoint for the Guest user, it still shows the same response. So I know there is something I am doing wrong.I want to access permission of a user for a specific item, say a document using the REST API. Can someone tell me how? What would be the endpoint?

    Thanks for the reply. Although this works for Lists, I need to get permissions of documents too. Here is what I have tried:
    http://win-5a8pp4v402g/sharepoint_test/site_1/_api/web/GetFileByServerRelativeUrl('/sharepoint_test/site_1/Documents/file1.txt')/GetUserEffectivePermissions(@user)?@user='i%3A0%23%2Ew%7Cwin-5a8pp4v402g%5Csharepoint%20user%201'
    And the response is:
       "error":
           "code": "-1, Microsoft.SharePoint.Client.ResourceNotFoundException",
           "message":
               "lang": "en-US",
               "value": "Cannot find resource for the request GetUserEffectivePermissions."
    Clearly this doesnt work for a file. Whats wrong?

  • Can't access adobe website using safari 7

    I can't access adobe.com on my late 2008 MacBook running Mavericks OS X. Every time I try to access the website it says that Safari "can't connect to the server adobe.com"
    I've tried resetting Safari and restarting my computer. I have Adobe Lightroom 3 installed on my computer.
    Any help would be appreciated!

    You, or someone using your computer, may have hacked the system to redirect queries to certain servers. The file modified is /etc/hosts.
    The easiest way to fix the hosts file is to restore it from a backup that predates the modification, or to copy the unmodified file from another Mac. If you can't do that, then do as below.
    Back up all data before proceeding.
    If you have more than one user account, you must be logged in as an administrator.
    Triple-click anywhere in the line below on this page to select it:
    open -e /etc/hosts
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting. A TextEdit window should open. At the top of the window, you should see this:
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting.  Do not change this entry.
    127.0.0.1                              localhost
    255.255.255.255          broadcasthost
    ::1                                        localhost
    fe80::1%lo0                    localhost
    Below that, you may see some other lines. The first 10 lines should be exactly as above, apart from differences in the blank space within lines. Otherwise you can't use this procedure—STOP and ask for guidance.
    If the contents of the TextEdit window are as described, close it, then enter the following command in the Terminal window in the same way as before (by copy and paste):
    sudo sed -i~ '11,$d' /etc/hosts
    This time you'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. If you don’t have a login password, you’ll need to set one before you can run the command. You may get a one-time warning to be careful. Confirm. Quit Terminal.
    If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. Log in as one and start over.
    That will fix the hosts file. There is now a copy of the old hosts file with the name "hosts~" in the same folder as "hosts". You can delete the copy if you wish. Don't delete the file named "hosts".

  • Oracle BI Publisher - can not access Shared Folder , using Oracle BI Server

    Hi there,
    We have an installed OBIEE and BIP (BI Publisher) system which is the security setting of BIP using "Oracle BI Server".
    Our OBIEE security is using the combination of LDAP (authentication) and Relational Table (for grouping user privillege)
    The integration connection between OBIEE and BIP is successfull, and I can connect using Administrator to the BIP
    But when I assign a general user using group : XMLP_Admin (define in rpd file and relational table), the user can log in to BIP, but can NOT access the Shared Folder.
    the error desc : "Error 500: SRVE0199E: OutputStream already obtained"
    Anyone can help ?
    Thanks a lot
    -toni

    Did you define Roles and Permissions to the shared folder from BIP Admin?
    -Prakash

  • Can't access firefox after using it as primary browser for a few years?

    I've been using Firefox for a few years with AOL dial-up access. I just switched to Comcast and after a few days I lost my connection to Firefox. The icons are there but the program won't come up. The first few days I could just use the Firefox icon to access my internet connection and then it just quit. Also was having some problems with Facebook via Firefox (kept getting error messages) just before this happened/ Please help. I can't access all my saved bookended addresses.

    There are some malware infections that make it hard to run programs (EXE) files. Hopefully you do not have one of those.
    Could you check whether it is a problem with your shortcut by starting Firefox a different way:
    Start menu > Run, type or paste the following and then press the Enter key or click Go:
    firefox.exe

Maybe you are looking for

  • Problems after upgrading to iOS 7.1.2.

    After upgrading iPhones 5c and 4s to iOS 7.1.2., the phones have troubles in establishing a call connection. It takes considerably longer time and the phones are inaccessible for incoming calls. Does anyone encounter similar problems? Troubleshooting

  • Saving xml files in oracle database

    hi all anyone who could tell me how can i save xml files in the database?

  • Release Strategy vs. Delete (Purchase Requisition)

    When my Purchase Requisition hasn't got a Release Strategy I can mark it as deleted using BapiDelete from the Purchase Requisition business object. But when is has got a Release Strategy I can not. Is it right? Am I missing something? Or maybe haven'

  • My free trial won't update

    Every time I try to download a free trial of Adobe Photoshop CS5.1 Extended, it keeps going back to a free trial I downloaded from March of 2011. I have had no trouble with this happening since downloading free trials from March 2011, but all of a su

  • My external hard drive (Seagate backup plus) has stopped working on my macbook 10.8.5

    I've been using Seagate Backup Plus for a year now and suddenly it has stopped working on my Macbook Pro (mountain lion 10.8.5). When I plug it in, it lights up and I can hear it running, but it won't show on my macbook. I've checked on Disk Utility