How to verify user data through an unhelpful DBA

I'm a developer. My organization is large and has separation of duties... i.e. I'm not allowed to touch the production system. The DBA exhibits some sort of anti-social traits and is unhelpful to the point of being harmful. If we request him to run an sql statement and it fails, he offers no insights as to why. Instead, we are left to try and request query after query to try and resolve the issue--which can take days when he could speak up and resolve the issue in seconds.
But my organizations DBA problem isn't yours... instead, here's my current dilema.
Our projects are supposed to get 3 generic accounts that we the developers then alter to suit the application. Those users are named:
<projectname>USR
<projectname>ADM
<projectname>DBA
(I'll use the project name "TEST" in this post)
We requested the rows from DBA_SYS_PRIVS to see that these generic accounts existed and received the following:
GRANTEE                        PRIVILEGE                                ADM
TESTADM                        CREATE SESSION                           NO
TESTDBA                        CREATE SESSION                           NO
TESTUSR                        CREATE SESSION                           NOWe requested an alter user on TESTDBA and it worked fine.
We then requested an alter user on TESTUSR and it returned:
ALTER USER "TESTUSR"
ERROR at line 1:
ORA-01918: user 'TESTUSR' does not existThe only explanation I can think of is that TESTUSR was mistakenly created as a role instead of a user. I'm planning on requesting the contents of the DBA_USERS table and the DBA_ROLES table and see where TESTUSR is located. But what I'm asking here in this forum is if there is a better set of sql statements I could request to be more definitive in researching what happened.
Thank in advance,
Darren

In the actual dump that you got from DBA_SYS_PRIVS, were the GRANTEE names all upper case? Or were some characters lower case as well?
Oracle is normally case insensitive. But if you double-quote identifiers, those identifiers become case sensitive. The failing DDL
ALTER USER "TESTUSR"is using double-quotes so TESTUSR would need to be a case-sensitive match to the user name. Is there any chance that is not the case in your environement?
Barring that, getting a listing from DBA_USERS and DBA_ROLES is probably the way to go.
Justin

Similar Messages

  • How to connect oracle data through BlazeDS in flex 4

    How to connect oracle data through BlazeDS in flex 4

    Hi
                   If u want to connect to the database oracle just paste the Ojdbc14.jar file into the lib folder of blazeds project..
                             Normally blazeds distribution version contains blazeds.war file... upload that war file to the tomcat or any other application server..
                          u will get the build path and in lib folder paste the ojdbc14.jar file to connect to the oracle and do u r stuff at server side java ....
                      if this will reslove ur problem please mark as answered..

  • How to delete user data from damaged iPhone?

    Hi,
    I have a damaged iPhone 3GS that I'm selling for parts on ebay. The device's is currently stuck on "update mode", basically I was updating to iOS 6.1 a while back and in the middle of the process, the phone returned an "hardware error" message and now it's allways stuck on the "connect to itunes" screen.
    No matter what resets I try to do or restores, it wll allways return the "hardware error" message and then to the apple screen and finally to the "connect to itunes" screen.
    So, I decided to sell it for parts since I've bought another (newer) iPhone, but I wanted to make sure that all my user data (accounts, text messages, phone numbers, etc.) was deleted just in case the lucky buyer manages to get it fixed. How can I do this?
    Will the "clear phone data"option on iCloud do the trick, or do I need to do something more?
    I also know that have to remove the iPhone from my iCloud account, is this correct?
    What are procedures can you guys recomend for this?
    Thanks

    I have a "new" piece of information about this issue that might help clarify the problem a bit.
    I plugged it in today to do a final check on it's maladies and this is what happened:
    1.Device starts charging
    2.Device show the "connect to iTunes" screen (the one with the USB and itunes icon)
    3.I connect it to iTunes
    4.iTunes says something like: "This iPhone's software is damaged. A factory reset is required to restore the OS. Your device will be reset to factory settings and all your data will be deleted. After the reset is completed, you will have the possibility to restore your information on the device"
    5. I click "Restore iPhone"
    6. It starts checking for software, extracting software, etc.
    7.I get the apple screen with the loading bar
    8. On iTunes the process stops on the "restoring firmware" step. It gets stuck there for a couple of hours and then eventualy it returns an hardware error
    9. The loading bar on the apple screen gets full, but the iPhone never manages to leave "restore iPhone" mode.
    From all the iTunes messages and procedures that I'm doing, I take it that the iPhone's memory is in fact already wiped clean, am I assuming it right? That's why he won't boot and is stuck on recovery mode?
    Can I also assume that any data I had there cannot be recovered unless I restored it from my laptop/iCloud?
    And finally and just out of morbid curiosity, anyone has an idea about what is wrong with the iPhone? I never managed to figure out what happened or if it's something "fixable".
    Thanks for the help!

  • How to access user data in Lion partition from Snow Leopard?

    How do I access data residing on my Lion partition from the Snow Leopard partition, ie when I boot from the 10.6 partition?
    I have an account on the Lion partition and one on the Snow Leopard partition, with the same short name.
    But if I try to access the data residing on the Lion partition (under my user directory) from Snow Leopard , it says I do not have sufficient privileges.
    How do I best solve this issue?
    My user data basically all resides in the Lion partition, the only reason for keeping the Snow Leopard partition is a programme that has not yet been updated to Lion compatibility, and will not be for another two months. I have to use it daily (until the update).
    TIA
    Marc

    That was too easy :-)
    Thank you.
    As an added quirk I had to open the package with the data files (by right-click, show package contents) and manually change the permissions on the four contained files. I had expected that to happen automatically when changing the packages' permissions.

  • Clean Install 10.8: How to Migrate User Data?

    Hi,
    I'd like to do a clean install of Mountain Lion 10.8 Server and migrate the user data, but I'm not sure how.
    In specific for each user:
    iCal calendars and events
    Mail IMAP messages and folders
    Address Book contacts and groups
    And I think that's it
    The data was originally set up in Snow Leopard 10.6 Server, but has since been upgraded to Lion 10.7 Server. I mention because I think that has bearing on the storage location.
    I suppose I could do an Address Book export. I've attempted to re-import iCal before and the server ends up wanting to send calendar events to every invitee ever listed. I'd like to avoid that scenario again.
    For Mail, could I keep the client-side IMAP folders as-is and then add the new 10.8 IMAP account to Mail before dragging over the whole folder structure? Or should I move it to "On My Mac" first and then do the same? Or is there a server-side way of moving the data store to the newly-installed server?
    Thank you!

    Thanks for your response. I'd read about that approach (a PDF on MacRumours descibing the process), but I'm wondering if I'll be re-introducing older Lion and Snow Leopard elements like folder locations and such if I do it this way.
    Will ML migrate it to the standard location and treat it as though this data had been generated within ML all along?
    Also, I should add, I'm doing this install because I pooched my Lion Server and had to restore from a Time Machine backup. Now everything is messed up and unreliable. Turns out Time Machine doesn't back up iCal events for users! So this is why I'm trying to do this as clean as possible.

  • How to pass delivery date through BAPI while creating a sale order

    Dear frndz,
         I am using 'BAPI_SALESORDER_CREATEFROMDAT1'
    to create a sale order .
        I don't have any problem..
        But I have to pass schedule line delivery date through this bapi .
       I used REQ_DATE in structure BAPISCHDL.
       But I can' t get it.
       Through which parameter can i meet this..
       The sale order should be created line item wise along with my delivery date..
      Any suggestions...
    regards.
    siva

    Dear frnd,
        Danq for your response..I can't use DLV_DATE for this requirement..
        But I used REQ_DATE in the structure BAPISCHEDULE .
       I came to know that the problem i faced previously  was only
    internal data conversion.
        Now am able to pass my delivery date..
        so I am closing the thread..
    Regards.
    siva

  • How to send string data through socket!

    Is there any method to send string data over socket.
    and if client send string data to server,
    How to get that data in server?
    Comments please!

    Thank for your kind answer, stoopidboi.
    I solved the ploblem. ^^;
    I open the source code ^^; wow~~~~~!
    It will useful to many people. I spend almost 3 days to solve this problem.
    The program works like this.
    Client side // string data ------------------------> Server side // saving file
    To
    < Server Side >
    * Server.java
    * Auther : [email protected]
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Server extends JFrame
         private JTextField enter;
         private JTextArea display;
         ObjectInputStream input;
         DataOutputStream output;
         FileOutputStream resultFile;
         DataInputStream inputd;
         public Server(){
              super("Server");
              Container c = getContentPane();
              enter = new JTextField();
              enter.setEnabled(false);
              enter.addActionListener(
                   new ActionListener(){
                        public void actionPerformed(ActionEvent ev){
                             //None
              c.add(enter, BorderLayout.NORTH);
              display = new JTextArea();
              c.add(new JScrollPane(display),
                     BorderLayout.CENTER);
              setSize(300, 150);
              show();
         public void runServer(){
              ServerSocket server;
              Socket connection;
              int counter = 1;
              display.setText("");
              try{
                   server = new ServerSocket(8800, 100);
                   while(true){
                        display.append("Waiting for connection\n");
                        connection = server.accept();
                        display.append( counter + " connection is ok.\n");
                        display.append("Connection " + counter +
                             "received from: " + connection.getInetAddress().getHostName());
                        resultFile = new FileOutputStream("hi.txt");
                        output = new DataOutputStream(resultFile);
                        output.flush();
                        inputd = new DataInputStream(
                             connection.getInputStream()
                        display.append("\nGod I/O stream, I/O is opened\n");
                        enter.setEnabled(true);
                        try{
                             while(true){
                                  output.write(inputd.readByte());
                        catch(NullPointerException e){
                             display.append("Null pointer Exception");
                        catch(IOException e){
                             display.append("\nIOException Occured!");
                        if(resultFile != null){
                             resultFile.flush();
                             resultFile.close();
                        display.append("\nUser Terminate connection");
                        enter.setEnabled(false);
                        resultFile.close();
                        inputd.close();
                        output.close();
                        connection.close();
                        ++counter;
              catch(EOFException eof){
                   System.out.println("Client Terminate Connection");
              catch(IOException io){
                   io.printStackTrace();
              display.append("File is created!");
         public static void main(String[] args){
              Server app = new Server();
              app.addWindowListener(
                   new WindowAdapter(){
                        public void windowClosing(WindowEvent e){
                             System.exit(0);
              app.runServer();
    < Client side >
    * Client.java
    * Auther : [email protected]
    package Client;
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Client extends JFrame
         private JTextField enter;
         private JTextArea display;
         DataOutputStream output;
         String message = "";
         public Client(){
              super("Client");
              Container c = getContentPane();
              enter = new JTextField();
              enter.setEnabled(false);
              enter.addActionListener(
                   new ActionListener(){
                        public void actionPerformed(ActionEvent e){
                             //None
              c.add(enter, BorderLayout.NORTH);
              display = new JTextArea();
              c.add(new JScrollPane(display), BorderLayout.CENTER);
              message = message + "TT0102LO12312OB23423PO2323123423423423423" +
                        "MO234234LS2423346234LM2342341234ME23423423RQ12313123213" +
                        "SR234234234234IU234234234234OR12312312WQ123123123XD1231232" +
                   "Addednewlinehere\nwowowowwoww";
              setSize(300, 150);
              show();
         public void runClient(){
              Socket client;
              try{
                   display.setText("Attemption Connection...\n");
                   client = new Socket(InetAddress.getByName("127.0.0.1"), 8800);
                   display.append("Connected to : = " +
                          client.getInetAddress().getHostName());
                   output = new DataOutputStream(
                        client.getOutputStream()
                   output.flush();
                   display.append("\nGot I/O Stream, Stream is opened!\n");
                   enter.setEnabled(true);
                   try{
                        output.writeBytes(message);
                   catch(IOException ev){
                        display.append("\nIOException occured!\n");
                   if(output != null) output.flush();
                   display.append("Closing connection.\n");
                   output.close();
                   client.close();
              catch(IOException ioe){
                   ioe.printStackTrace();
         public static void main(String[] args){
              Client app = new Client();
              app.addWindowListener(
                   new WindowAdapter(){
                        public void windowClosing(WindowEvent e){
                             System.exit(0);
              app.runClient();

  • How to access archived data through queries

    Hi,
    I would like to know if there is any way to access the archived data through SAP query. I don`t have any infostructure for this archived data.

    You mean mails once present and readable on the iPad, but no longer there (in the, by default, 50-long mail list)?

  • How to verify a date range?

    Hi all,
    I have a form in a page that allow the user to select a date
    interval
    by selecting the start date and the end date.
    Of course, the end date should be greater than the start
    date.
    But how can I check this in dreamweaver?
    Is there a free behaviuor to do such thing?
    Thanks in advance for any suggestion.
    tony ;).

    > It's really just simple date math using whatever server
    side programming
    >language you are using. You could also test using client
    side JS in addition to
    >the server side code. I don't know of any behavior for
    this. But if you are
    >starting to need this type of functionality then you need
    to start learning the
    >basics of programming concepts.
    you are right, but I'm a graphic designer that is 'trying' to
    do some
    programming ;).
    > What scripting language are you using? There
    >are plenty of online tutorials and language references
    online.
    I use php and I'm starting to learn it.
    I found a free behaviour that do all this on the kaosweaver
    web site
    http://www.kaosweaver.com/extensions/details.php?id=19).
    Ciao ;).
    tony

  • How to verify user LDAP group membership

    Hi,
    we are attempting to determine if a user is a member of a specific LDAP group in our directory and if the user is a member it should return TRUE else FALSE (this is done by defining the LDAP attribute 'CN' (property) which returns a result 'CN=<UserName> or returns 'getting 0 entries'. The query we have is
    (&(cn=<username>)(memberOf=CN=<groupname>,DC=domain,DC=com)).
    Any pointers on how to do this ?
    Thank you.

    You could do a couple of things...
    1) Install dsquery (add remote AD tools to your box) and run something like
    dsquery group -u <user name>
    Username would be their login name, yours is "swaupadh" for example. This would return a listing of all the groups they are in and you could regex through that output for the group you are looking for. Use either the Execute Powershell or Execute Windows Command activity here.
    2) Use powershell functions and powershell capability to check for group membership, something like this:
    function Get-GroupMembership($DN,$group){
        $objEntry = [adsi]("LDAP://"+$DN)
        $objEntry.memberOf | where { $_ -match $group}
    //EXAMPLE CALL
    Get-GroupMembership "Cn=kazun,dc=contoso,dc=com" "Backup Operators"
    Then you can regex through the output for the "True" or "False" word and run with that.
    Either should get you what you want.

  • How to get user data in a user profile portlet

    You would think that this would be easy. Its not?
    This was posted in the wrong forum:
    Re: Interaction (ALUI/WCI) Cutom User Profile Portlet
    "I have a custom portlet that returns user specific information using a portal user profile property. It works great when using current user, which is the logged in user. How can I access the user properties for the profile page owner?
    I searched the dev docs without any success, only references to preferences.
    Thanks in advance for your assistance.."
    I want to know the answer as well. Seems that you shouldn't have to query the IDK for this...
    I see 6.5 has an adaptive tag for this.... sigh. time to upgrade.
    Edited by: Joel Collins on Feb 3, 2009 10:56 AM
    in case anyone tries this in 6.1, I ended up using this:
    string sProfileUserID = portletRequest.GetSettingValue(SettingType.UserInfo, "_ProfileUserID");
    int iProfileUserID = int.Parse(sProfileUserID);
    IObjectQueryRow user = userManager.QuerySingleObject(iProfileUserID);
    IExtendedData extendedData = user.GetExtendedData();
    make sure you check off the right check box on the user information page of the web service.
    Edited by: Joel Collins on Feb 3, 2009 2:12 PM

    Did you search in the forum before posting your question? Every week similar question like yours is being posted. Anyway find below the query.
    SELECT LTRIM(MAX(SYS_CONNECT_BY_PATH(EMPNO,';')),';')
    FROM
    SELECT EMPNO,ROW_NUMBER() OVER(PARTITION BY 1 ORDER BY 1) CURR,ROW_NUMBER() OVER(PARTITION BY 1 ORDER BY 1)+1 NEXXT
    FROM EMP
    START WITH CURR=1
    CONNECT BY CURR = PRIOR NEXXT
    Regards,
    Mohana

  • How to send encrypted data through XI. Pls advice urgent

    Hi All,
    There is some customer confidental information that I need to
    send from source system to XI and then to target system.
    So client wants that data to be encrypted.Source and Target system can be File System or can be wsdl files.
    Please send me blogs/docs how this scenario can be made.
    Regards

    Hi,
    For this if you use SOAP Scenarios means you can have the Security settings in the SOAP Adapter itself
    Please search in SDn on SOAP Adapters
    Regards
    Seshagiri

  • How to maintain Master Data through Web Application Designer layout.

    Hi.
    I’m Internship and I have to do something that it doesn’t work.
    I explain to you.
    I have to make a layout via Web Application Designer to permit users to add a line in the master data XST_RFC.
    For that, I did two things:
    First I followed this url : http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/607193d5-cdd5-2b10-c699-8ff04c3124f6?QuickLink=index&overridelayout=true&38392712686871
    The result; I have a problem with the appendix of method execute “DATA : ZL_WORKTEXT Type ZFREETEXT”. Here, SAP doen’t permit me to put XST_RFC (my characteristic to add by the user) but just /BIC/PXST_RFC… So, I tried with that and at the moment of the test in the Wad, the application say me “no Master Data in XST_RFC”. I know that there are no MD in my char, I just want to add once…
    So it doesn’t Work.
    Secondly, after testing, the Function Module test works. When a put an ID in the test page of SAP Logon in parameters, the FM put this ID and create a new line with this new ID. So I had an idea, use directly this function module in a Fox Formula but, when a call my function, I have a problem with variable/parameters type.
    My variable is TYPE XST_RFC , but my parameters is TYPE  /BIC/PXST_RFC….
    My Fox Formula
    DATA NEW_RFC TYPE XST_RFC.
    NEW_RFC = VARV(XVOU_RFC).
    CALL FUNCTION ZBWDSST_XX_MASTERDATAMAINTAIN
    EXPORTING
    VAR_RFC = NEW_RFC.
    My error message Types of parameter VAR_RFC () and variable NEW_RFC(C) are inconsistent
    If you can help me, I work on this issue for 4 days and I waste my time.
    Thanks.
    BR

    Dear All,
    The text flow for 0WS_QUEST & 0WS_QSTNNR is sufficient to make available Criteria from source system questionnaire in BW.
    After the text load (even it does not generate SID) we can already use Tcode SRM_VE_GROUPING & SRM_VE_WEIGHTING for customization of groupping and weighting in BW.
    Regards,
    Viresh

  • How to insert huge data through XSU

    Did any of you try to insert XML data into Oracle database? We have huge data (like thounds of rows), and if we put these data into XML file, it will be a huge file. Can someone give us some ideas on how to take care of it? We encountered insufficient memory message while executing.
    Can the XML parser directly parse character stream rather than a XML file? Is there some limitation on the stream size?
    null

    Steve we actually picked up your book a few days, we will examine chapter 6, and the advanced section of xml loading....
    but I am still suprised that the OracleXMLSave utility uses a dom parser to inject the data...seams very inefficient, since the data really isn't being manipulated at high level..
    does anyone know if the source code is available to these utilities?
    I am beginning to believe that is more effecient to simply convert the XML data to sqlLoader format, and insert the data that way, since this would load much much faster.
    wouldn't it?
    Am I missing something?

  • How to verify employee data

    Hi Gurus,
    Please i need assistance, my client wants when entring employee data in personnal data,  his boss should check his entries and veryfy that it is ok during hiring, this is to check if he has made some mistakes in his entries,
    How can I set his employee data to get to his boss for verification and approval after enries has been made?
    Tanx.
    Maureen.

    Hi,
    Simply you have to maintain Personnel Administrators as bosses and after the hiring action workflow will be trigered to the bosses that new employees have been hired under them. After that Bosses can check the personnel Data in PA 30.
    Regards,
    Kapil

Maybe you are looking for